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page-entrypoint.js","webpack://parkers/external var \"React\"","webpack://parkers/external var \"jQuery\"","webpack://parkers/webpack/bootstrap","webpack://parkers/webpack/runtime/define property getters","webpack://parkers/webpack/runtime/global","webpack://parkers/webpack/runtime/hasOwnProperty shorthand","webpack://parkers/webpack/runtime/make namespace object","webpack://parkers/webpack/runtime/jsonp chunk loading","webpack://parkers/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","'use strict';\n\nvar $ = require('jquery');\nvar basePage = require('../pages/base-page.js');\n\nvar $ = require('jquery');\nvar analytics = require('../utils/analytics.js');\nvar contactDealerButtonByPhone = require('../components/contact-dealer-button.js');\nvar shortlist = require('../profile/cfs-shortlist.js');\n\nvar classNames = {\n\tshortlistControls: 'for-sale-shortlist-controls',\n\tshortlistCta: 'cta',\n\tdisclaimerIcon: 'tooltip',\n\tforSaleResultItem: 'for-sale-result-item'\n};\n\nfunction showNoSavedCarsPanel(count) {\n\tif (count === 0) {\n\t\tvar panel = $.findByBem(classNames.forSaleResultItem, 'panel');\n\t\tpanel.slideDown();\n\t}\n}\n\nfunction setPhoneInfoClick($context) {\n\tvar $icons = $context.findByBem(classNames.disclaimerIcon);\n\n\t$icons.each(function() {\n\t\t$(this).on('click', function(e){\n\t\t\te.preventDefault();\n\t\t\t$(this).toggleClass('tooltip--displayed');\n\t\t});\n\t});\n}\n\nfunction init() {\n\tshowNoSavedCarsPanel(shortlist.count());\n\t\n\tvar $removeButtons = $.findByBem(classNames.shortlistControls, classNames.shortlistCta, 'remove');\n\n\tif ($removeButtons.length > 0) {\n\t\t$.each($removeButtons, function () {\n\t\t\tvar $button = $(this);\n\t\t\tvar itemId = $button.data('itemid');\n\t\t\tvar stockId = $button.data('stockid');\n\n\t\t\t$button.on('click', function(e) {\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t\tshortlist.remove(itemId);\n\t\t\t\t$(this).closest('li').slideUp();\n\n\t\t\t\tvar count = shortlist.count();\n\t\t\t\tvar counter = $.findByBem('shortlist-count');\n\t\t\t\tcounter.text(count);\n\n\t\t\t\tshowNoSavedCarsPanel(count);\n\n\t\t\t\tanalytics.trackEvent('Shortlist Button - Remove Vehicle', 'Click Shortlist Page', stockId);\n\t\t\t});\n\t\t});\n\t}\n}\n\nbasePage.init = function() {\n\tbasePage.initBasePage();\n\tinit();\n\n\tcontactDealerButtonByPhone.init();\n\n\tvar $context = $('#cfsShortlist');\n\tsetPhoneInfoClick($context);\n};\n\nmodule.exports = basePage;","module.exports = React;","module.exports = jQuery;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t31: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkparkers\"] = self[\"webpackChunkparkers\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [258], () => (__webpack_require__(6475)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","$","basePage","analytics","contactDealerButtonByPhone","shortlist","showNoSavedCarsPanel","count","findByBem","slideDown","init","initBasePage","$removeButtons","length","each","$button","this","itemId","data","stockId","on","e","stopImmediatePropagation","remove","closest","slideUp","text","trackEvent","preventDefault","toggleClass","module","exports","React","jQuery","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}