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EAAAxL,EAAA6J,EAAA,SAAA2B,EAAAhK,GAAA,CAED,IAAyB,IAArB+J,EAA2B,CAC3B,IAAMM,EAAUtS,SAAS6C,cAAc,UACvCyP,EAAQC,UAAY,YACpBD,EAAQvR,UAAUC,IAAI,wBACtBsR,EAAQ5Q,iBAAiB,SAAS,SAAC+E,GAC/BA,EAAE8H,iBAAiB,IACSiE,EADTC,EAAAnG,EACEpM,GAAO,IAA5B,IAAAuS,EAAAlU,MAAAiU,EAAAC,EAAAhU,KAAA2K,MAA8B,KAAnBoI,EAAMgB,EAAA3L,MACb2K,EAAOa,QAAS,EAChBb,EAAOzQ,UAAUmB,OAAO,SAC5B,CAAC,OAAAoO,GAAAmC,EAAAhM,EAAA6J,EAAA,SAAAmC,EAAAxK,GAAA,CAEDqK,EAAQD,QAAS,EACjBC,EAAQvR,UAAUC,IAAI,SAC1B,IAEAoQ,EAAOrO,OAAOuP,EAClB,CACJ,EAtDA,IAAArB,EAAA1S,MAAAyS,EAAAC,EAAAxS,KAAA2K,MAAA8H,GAsDC,OAAAZ,GAAAW,EAAAxK,EAAA6J,EAAA,SAAAW,EAAAhJ,GAAA,CACL,CA2EIyK,CAAmBtM,EACvB,EAEAtB,OAAOhD,oBAAoBiE,EAAAA,GAAYC,iBAAkBO,GACzDzB,OAAOpD,iBAAiBqE,EAAAA,GAAYC,iBAAkBO,GAEhDH,aAAeuM,YACjB7N,OAAO+K,cACH,IAAIC,YAAY/J,EAAAA,GAAYC,iBAAkB,CAC1C+J,OAAQ,CACJ/P,SAAUoG,4BC1LvB,SAASmJ,EAAgBD,GAC5B,OAAO,IAAIsD,WAAYC,gBAAgBvD,EAAM,YACjD,CAEO,SAASwD,IACZ,OAAOhO,OAAOiO,OAASjO,OAAOkO,GAClC","sources":["webpack:///./assets/default/js/components/flowbite/drawer.js","webpack:///./assets/default/js/events.js","webpack:///./assets/default/js/stock/list.js","webpack:///./assets/default/js/utils.js"],"sourcesContent":["import instances from 'flowbite/lib/cjs/dom/instances';\n\nvar __assign =\n (this && this.__assign) ||\n function () {\n __assign =\n Object.assign ||\n function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n\nvar Default = {\n placement: 'left',\n bodyScrolling: false,\n backdrop: true,\n edge: false,\n edgeOffset: 'bottom-[60px]',\n backdropClasses: 'backdrop-blur bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30',\n onShow: function () {},\n onHide: function () {},\n onToggle: function () {},\n};\nvar DefaultInstanceOptions = {\n id: null,\n override: true,\n};\nvar Drawer = /** @class */ (function () {\n function Drawer(document, targetEl, options, instanceOptions) {\n if (targetEl === void 0) {\n targetEl = null;\n }\n if (options === void 0) {\n options = Default;\n }\n if (instanceOptions === void 0) {\n instanceOptions = DefaultInstanceOptions;\n }\n this.document = document;\n this._eventListenerInstances = [];\n this._instanceId = instanceOptions.id ? instanceOptions.id : targetEl.id;\n this._targetEl = targetEl;\n this._options = __assign(__assign({}, Default), options);\n this._visible = false;\n this._initialized = false;\n this.init();\n instances.addInstance('Drawer', this, this._instanceId, instanceOptions.override);\n }\n Drawer.prototype.init = function () {\n var _this = this;\n // set initial accessibility attributes\n if (this._targetEl && !this._initialized) {\n this._targetEl.setAttribute('aria-hidden', 'true');\n this._targetEl.classList.add('transition-transform');\n // set base placement classes\n this._getPlacementClasses(this._options.placement).base.map(function (c) {\n _this._targetEl.classList.add(c);\n });\n this._handleEscapeKey = function (event) {\n if (event.key === 'Escape') {\n // if 'Escape' key is pressed\n if (_this.isVisible()) {\n // if the Drawer is visible\n _this.hide(); // hide the Drawer\n }\n }\n };\n // add keyboard event listener to document\n this.document.addEventListener('keydown', this._handleEscapeKey);\n this._initialized = true;\n }\n };\n Drawer.prototype.destroy = function () {\n if (this._initialized) {\n this.removeAllEventListenerInstances();\n this._destroyBackdropEl();\n // Remove the keyboard event listener\n this.document.removeEventListener('keydown', this._handleEscapeKey);\n this._initialized = false;\n }\n };\n Drawer.prototype.removeInstance = function () {\n instances.removeInstance('Drawer', this._instanceId);\n };\n Drawer.prototype.destroyAndRemoveInstance = function () {\n this.destroy();\n this.removeInstance();\n };\n Drawer.prototype.hide = function () {\n var _this = this;\n // based on the edge option show placement classes\n if (this._options.edge) {\n this._getPlacementClasses(this._options.placement + '-edge').active.map(function (c) {\n _this._targetEl.classList.remove(c);\n });\n this._getPlacementClasses(this._options.placement + '-edge').inactive.map(function (c) {\n _this._targetEl.classList.add(c);\n });\n } else {\n this._getPlacementClasses(this._options.placement).active.map(function (c) {\n _this._targetEl.classList.remove(c);\n });\n this._getPlacementClasses(this._options.placement).inactive.map(function (c) {\n _this._targetEl.classList.add(c);\n });\n }\n // set accessibility attributes\n this._targetEl.setAttribute('aria-hidden', 'true');\n this._targetEl.removeAttribute('aria-modal');\n this._targetEl.removeAttribute('role');\n // enable body scroll\n if (!this._options.bodyScrolling) {\n document.querySelector('body').style.overflow = null;\n }\n // destroy backdrop\n if (this._options.backdrop) {\n this._destroyBackdropEl();\n }\n this._visible = false;\n // callback function\n this._options.onHide(this);\n };\n Drawer.prototype.show = function () {\n var _this = this;\n if (this._options.edge) {\n this._getPlacementClasses(this._options.placement + '-edge').active.map(function (c) {\n _this._targetEl.classList.add(c);\n });\n this._getPlacementClasses(this._options.placement + '-edge').inactive.map(function (c) {\n _this._targetEl.classList.remove(c);\n });\n } else {\n this._getPlacementClasses(this._options.placement).active.map(function (c) {\n _this._targetEl.classList.add(c);\n });\n this._getPlacementClasses(this._options.placement).inactive.map(function (c) {\n _this._targetEl.classList.remove(c);\n });\n }\n // set accessibility attributes\n this._targetEl.setAttribute('aria-modal', 'true');\n this._targetEl.setAttribute('role', 'dialog');\n this._targetEl.removeAttribute('aria-hidden');\n // disable body scroll\n if (!this._options.bodyScrolling) {\n document.querySelector('body').style.overflow = 'hidden';\n }\n // show backdrop\n if (this._options.backdrop) {\n this._createBackdrop();\n }\n this._visible = true;\n // callback function\n this._options.onShow(this);\n };\n Drawer.prototype.toggle = function () {\n if (this.isVisible()) {\n this.hide();\n } else {\n this.show();\n }\n };\n Drawer.prototype._createBackdrop = function () {\n var _a;\n var _this = this;\n if (!this._visible) {\n var backdropEl = document.createElement('div');\n backdropEl.setAttribute('drawer-backdrop', '');\n (_a = backdropEl.classList).add.apply(_a, this._options.backdropClasses.split(' '));\n this.document.querySelector('body').append(backdropEl);\n backdropEl.addEventListener('click', function () {\n _this.hide();\n });\n }\n };\n Drawer.prototype._destroyBackdropEl = function () {\n if (this._visible && this.document.querySelector('[drawer-backdrop]') !== null) {\n this.document.querySelector('[drawer-backdrop]').remove();\n }\n };\n Drawer.prototype._getPlacementClasses = function (placement) {\n switch (placement) {\n case 'top':\n return {\n base: ['top-0', 'left-0', 'right-0'],\n active: ['transform-none'],\n inactive: ['-translate-y-full'],\n };\n case 'right':\n return {\n base: ['right-0', 'top-0'],\n active: ['transform-none'],\n inactive: ['translate-x-full'],\n };\n case 'bottom':\n return {\n base: ['bottom-0', 'left-0', 'right-0'],\n active: ['transform-none'],\n inactive: ['translate-y-full'],\n };\n case 'left':\n return {\n base: ['left-0', 'top-0'],\n active: ['transform-none'],\n inactive: ['-translate-x-full'],\n };\n case 'bottom-edge':\n return {\n base: ['left-0', 'top-0'],\n active: ['transform-none'],\n inactive: ['translate-y-full', this._options.edgeOffset],\n };\n default:\n return {\n base: ['left-0', 'top-0'],\n active: ['transform-none'],\n inactive: ['-translate-x-full'],\n };\n }\n };\n Drawer.prototype.isHidden = function () {\n return !this._visible;\n };\n Drawer.prototype.isVisible = function () {\n return this._visible;\n };\n Drawer.prototype.addEventListenerInstance = function (element, type, handler) {\n this._eventListenerInstances.push({\n element: element,\n type: type,\n handler: handler,\n });\n };\n Drawer.prototype.removeAllEventListenerInstances = function () {\n this._eventListenerInstances.map(function (eventListenerInstance) {\n eventListenerInstance.element.removeEventListener(eventListenerInstance.type, eventListenerInstance.handler);\n });\n this._eventListenerInstances = [];\n };\n Drawer.prototype.getAllEventListenerInstances = function () {\n return this._eventListenerInstances;\n };\n Drawer.prototype.updateOnShow = function (callback) {\n this._options.onShow = callback;\n };\n Drawer.prototype.updateOnHide = function (callback) {\n this._options.onHide = callback;\n };\n Drawer.prototype.updateOnToggle = function (callback) {\n this._options.onToggle = callback;\n };\n return Drawer;\n})();\nexport function initDrawers(document) {\n document.querySelectorAll('[data-drawer-target]').forEach(function ($triggerEl) {\n // mandatory\n var drawerId = $triggerEl.getAttribute('data-drawer-target');\n var $drawerEl = document.getElementById(drawerId);\n if ($drawerEl) {\n var placement = $triggerEl.getAttribute('data-drawer-placement');\n var bodyScrolling = $triggerEl.getAttribute('data-drawer-body-scrolling');\n var backdrop = $triggerEl.getAttribute('data-drawer-backdrop');\n var edge = $triggerEl.getAttribute('data-drawer-edge');\n var edgeOffset = $triggerEl.getAttribute('data-drawer-edge-offset');\n new Drawer(document, $drawerEl, {\n placement: placement ? placement : Default.placement,\n bodyScrolling: bodyScrolling ? (bodyScrolling === 'true' ? true : false) : Default.bodyScrolling,\n backdrop: backdrop ? (backdrop === 'true' ? true : false) : Default.backdrop,\n edge: edge ? (edge === 'true' ? true : false) : Default.edge,\n edgeOffset: edgeOffset ? edgeOffset : Default.edgeOffset,\n });\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?',\n ),\n );\n }\n });\n document.querySelectorAll('[data-drawer-toggle]').forEach(function ($triggerEl) {\n var drawerId = $triggerEl.getAttribute('data-drawer-toggle');\n var $drawerEl = document.getElementById(drawerId);\n if ($drawerEl) {\n var drawer_1 = instances.getInstance('Drawer', drawerId);\n if (drawer_1) {\n var toggleDrawer = function () {\n drawer_1.toggle();\n };\n $triggerEl.addEventListener('click', toggleDrawer);\n drawer_1.addEventListenerInstance($triggerEl, 'click', toggleDrawer);\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' has not been initialized. Please initialize it using the data-drawer-target attribute.',\n ),\n );\n }\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?',\n ),\n );\n }\n });\n document.querySelectorAll('[data-drawer-dismiss], [data-drawer-hide]').forEach(function ($triggerEl) {\n var drawerId = $triggerEl.getAttribute('data-drawer-dismiss')\n ? $triggerEl.getAttribute('data-drawer-dismiss')\n : $triggerEl.getAttribute('data-drawer-hide');\n var $drawerEl = document.getElementById(drawerId);\n if ($drawerEl) {\n var drawer_2 = instances.getInstance('Drawer', drawerId);\n if (drawer_2) {\n var hideDrawer = function () {\n drawer_2.hide();\n };\n $triggerEl.addEventListener('click', hideDrawer);\n drawer_2.addEventListenerInstance($triggerEl, 'click', hideDrawer);\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' has not been initialized. Please initialize it using the data-drawer-target attribute.',\n ),\n );\n }\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' not found. Are you sure that the data-drawer-target attribute points to the correct drawer id',\n ),\n );\n }\n });\n document.querySelectorAll('[data-drawer-show]').forEach(function ($triggerEl) {\n var drawerId = $triggerEl.getAttribute('data-drawer-show');\n var $drawerEl = document.getElementById(drawerId);\n if ($drawerEl) {\n var drawer_3 = instances.getInstance('Drawer', drawerId);\n if (drawer_3) {\n var showDrawer = function () {\n drawer_3.show();\n };\n $triggerEl.addEventListener('click', showDrawer);\n drawer_3.addEventListenerInstance($triggerEl, 'click', showDrawer);\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' has not been initialized. Please initialize it using the data-drawer-target attribute.',\n ),\n );\n }\n } else {\n console.error(\n 'Drawer with id '.concat(\n drawerId,\n ' not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?',\n ),\n );\n }\n });\n}\nif (typeof window !== 'undefined') {\n window.Drawer = Drawer;\n window.initDrawers = initDrawers;\n}\nexport default Drawer;\n//# sourceMappingURL=index.js.map\n","const ConsentEvents = {\n CONSENT_UPDATED: 'AutoWise.consentUpdated',\n};\n\nconst EmbedEvents = {\n INITIALIZE: 'AutoWise.initialize',\n INITIALIZED: 'AutoWise.initialized',\n PAGE_TITLE_UPDATED: 'AutoWise.pageTitleUpdated',\n EMBED_PAGE_LOADED: 'AutoWise.pageLoaded',\n STYLESHEETS_LOADED: 'AutoWise.stylesheetsLoaded',\n JAVASCRIPT_LOADED: 'AutoWise.javascriptLoaded',\n MAIN_CONTENT_UPDATED: 'AutoWise.mainContentUpdated',\n /* Overrides the HREFs of the vehicle list links */\n VEHICLE_LIST_LINKS_BOUND: 'AutoWise.vehicleListLinksBound',\n VEHICLE_LIST_PAGE_LOADED: 'AutoWise.vehicleListPageLoaded',\n /* Handle submit of the javascript forms */\n VEHICLE_DETAIL_PAGE_FORM_BOUND: 'AutoWise.vehicleDetailPageFormBound',\n /* When a user submits a form that we have previously bound with VEHICLE_DETAIL_PAGE_FORM_BOUND */\n VEHICLE_DETAIL_PAGE_FORM_SUBMITTED: 'AutoWise.vehicleDetailPageFormSubmitted',\n FINANCIAL_LEASE_AMOUNT_CALCULATED: 'AutoWise.financialLeaseAmountCalculated',\n FINANCIAL_LEASE_CALCULATOR_LOADED: 'AutoWise.financialLeaseCalculatorLoaded',\n};\n\nconst StockEvents = {\n LIST_PAGE_LOADED: 'AutoWise.vehicleListPageLoaded',\n DETAIL_PAGE_LOADED: 'AutoWise.vehicleDetailPageLoaded',\n DETAIL_PAGE_COMPONENTS: {\n SWIPER_INITIALIZED: 'AutoWise.vehicleDetailPageSwiperInitialized',\n },\n};\n\nexport { ConsentEvents, EmbedEvents, StockEvents };\n","import { initDrawers } from '../components/flowbite/drawer';\nimport { StockEvents } from '../events';\nimport { parseTextToHtml } from '../utils';\n\n((doc) => {\n const submitParentForm = (e) => {\n const form = e.target.closest('form');\n\n try {\n form.requestSubmit();\n } catch (e) {\n console.error('The requestSubmit method is not supported. Fallback to regular form submit.', e);\n form.submit();\n }\n };\n\n const bindEventsToFilterContainerAndElements = (doc) => {\n const root = doc.querySelector('#stock-filter-navigation');\n\n if (!root) {\n return;\n }\n\n for (const elem of root.querySelectorAll('button[type=submit]')) {\n // We disable the submit button click event for visitors with JS enabled.\n elem.addEventListener('click', (e) => {\n e.preventDefault();\n return false;\n });\n }\n\n const submitFormInTheBackgroundWrapper = async (e) => {\n await submitFormInTheBackground(doc, e);\n };\n\n for (const form of doc.querySelectorAll('.vehicle-filter-form')) {\n form.removeEventListener('change', submitParentForm);\n form.removeEventListener('submit', submitFormInTheBackgroundWrapper);\n form.addEventListener('change', submitParentForm, {\n once: true,\n });\n form.addEventListener('submit', submitFormInTheBackgroundWrapper, {\n once: true,\n });\n }\n };\n\n const limitFilterOptions = (doc) => {\n const filters = doc.querySelectorAll('[data-filter]');\n\n for (const filter of filters) {\n const name = filter.dataset.filter;\n const options = filter.querySelectorAll(`[data-for-filter=\"${name}\"]`);\n\n const highestCountValues = [];\n for (const option of options) {\n const value = Number.parseInt(option.dataset.optionCount);\n\n if (highestCountValues.length < 5) {\n highestCountValues.push(value);\n } else {\n const compare = highestCountValues.shift();\n if (compare < value) {\n highestCountValues.push(value);\n } else {\n highestCountValues.push(compare);\n }\n }\n\n highestCountValues.sort();\n }\n\n let hasHiddenOptions = false;\n for (const option of options) {\n const value = Number.parseInt(option.dataset.optionCount);\n\n if (!highestCountValues.includes(value)) {\n if (option.querySelector('input[checked]') === null) {\n option.hidden = true;\n option.classList.add('hidden');\n hasHiddenOptions = true;\n }\n } else {\n highestCountValues.splice(highestCountValues.indexOf(value), 1);\n }\n }\n\n if (hasHiddenOptions === true) {\n const showAll = document.createElement('button');\n showAll.innerText = 'Toon meer';\n showAll.classList.add('text-theme-secondary');\n showAll.addEventListener('click', (e) => {\n e.preventDefault();\n for (const option of options) {\n option.hidden = false;\n option.classList.remove('hidden');\n }\n\n showAll.hidden = true;\n showAll.classList.add('hidden');\n });\n\n filter.append(showAll);\n }\n }\n };\n\n const submitFormInTheBackground = async (doc, e) => {\n e.preventDefault();\n\n const form = e.target;\n const target = e.submitter?.formAction || form.action;\n let formData = new FormData(e.target);\n\n // We are dealing with a possible override\n if (e.submitter) {\n formData = new FormData();\n }\n\n const url = new URL(target);\n const searchParams = new URLSearchParams(formData).toString();\n url.search = searchParams;\n const location = new URL(window.location.toString());\n location.search = searchParams;\n\n window.history.pushState({}, '', location);\n\n const loadingIndicator = doc.querySelector('#mobile-filter-loading-indicator');\n if (loadingIndicator !== null) {\n loadingIndicator.classList.remove('hidden');\n }\n\n const response = await fetch(url, {\n method: form.method,\n });\n\n if (!response.ok) {\n console.error(`Network response was not ok: ${response.status} ${response.statusText}. Trigger regular refresh.`);\n window.location.reload();\n }\n\n const repos = await response.text();\n const DOM = parseTextToHtml(repos);\n const selectors = ['#vehicle-container', '#stock-filter-navigation .stock-filter-header-title', '.vehicle-filter-form'];\n\n for (const selector of selectors) {\n const current = doc.querySelectorAll(selector);\n const target = DOM.querySelectorAll(selector);\n\n if (current.length !== target.length) {\n throw new Error(`The amount of elements for selector ${selector} is not the same.`);\n }\n\n current.forEach((element, pos) => {\n element.innerHTML = target[pos].innerHTML;\n });\n }\n\n window.dispatchEvent(\n new CustomEvent(StockEvents.LIST_PAGE_LOADED, {\n detail: {\n document: doc,\n },\n }),\n );\n\n setTimeout(() => {\n if (loadingIndicator !== null) {\n loadingIndicator.classList.add('hidden');\n }\n }, 100);\n\n return false;\n };\n\n const listPageLoadedHandler = (e) => {\n const doc = e.detail.document;\n\n initDrawers(doc);\n bindEventsToFilterContainerAndElements(doc);\n limitFilterOptions(doc);\n };\n\n window.removeEventListener(StockEvents.LIST_PAGE_LOADED, listPageLoadedHandler);\n window.addEventListener(StockEvents.LIST_PAGE_LOADED, listPageLoadedHandler);\n\n if (!(doc instanceof ShadowRoot)) {\n window.dispatchEvent(\n new CustomEvent(StockEvents.LIST_PAGE_LOADED, {\n detail: {\n document: doc,\n },\n }),\n );\n }\n})(document.querySelector('[data-autowise-embed-container]')?.shadowRoot || document);\n","/**\n * @param {String} text\n * @returns {Document}\n */\nexport function parseTextToHtml(text) {\n return new DOMParser().parseFromString(text, 'text/html');\n}\n\nexport function isInsideIframe() {\n return window.self !== window.top;\n}\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","Default","placement","bodyScrolling","backdrop","edge","edgeOffset","backdropClasses","onShow","onHide","onToggle","DefaultInstanceOptions","id","override","Drawer","document","targetEl","options","instanceOptions","_eventListenerInstances","_instanceId","_targetEl","_options","_visible","_initialized","init","instances","addInstance","_this","setAttribute","classList","add","_getPlacementClasses","base","map","c","_handleEscapeKey","event","key","isVisible","hide","addEventListener","destroy","removeAllEventListenerInstances","_destroyBackdropEl","removeEventListener","removeInstance","destroyAndRemoveInstance","active","remove","inactive","removeAttribute","querySelector","style","overflow","show","_createBackdrop","toggle","_a","backdropEl","createElement","split","append","isHidden","addEventListenerInstance","element","type","handler","push","eventListenerInstance","getAllEventListenerInstances","updateOnShow","callback","updateOnHide","updateOnToggle","initDrawers","querySelectorAll","forEach","$triggerEl","drawerId","getAttribute","$drawerEl","getElementById","console","error","concat","drawer_1","getInstance","toggleDrawer","drawer_2","hideDrawer","drawer_3","showDrawer","window","ConsentEvents","CONSENT_UPDATED","EmbedEvents","INITIALIZE","INITIALIZED","PAGE_TITLE_UPDATED","EMBED_PAGE_LOADED","STYLESHEETS_LOADED","JAVASCRIPT_LOADED","MAIN_CONTENT_UPDATED","VEHICLE_LIST_LINKS_BOUND","VEHICLE_LIST_PAGE_LOADED","VEHICLE_DETAIL_PAGE_FORM_BOUND","VEHICLE_DETAIL_PAGE_FORM_SUBMITTED","FINANCIAL_LEASE_AMOUNT_CALCULATED","FINANCIAL_LEASE_CALCULATOR_LOADED","StockEvents","LIST_PAGE_LOADED","DETAIL_PAGE_LOADED","DETAIL_PAGE_COMPONENTS","SWIPER_INITIALIZED","doc","submitParentForm","submitFormInTheBackground","listPageLoadedHandler","_regeneratorRuntime","e","r","o","defineProperty","value","Symbol","a","iterator","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","arg","h","l","f","y","GeneratorFunction","GeneratorFunctionPrototype","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","_next","_throw","_createForOfIteratorHelper","Array","isArray","_arrayLikeToArray","toString","from","test","_unsupportedIterableToArray","_n","F","_document$querySelect","shadowRoot","form","target","closest","requestSubmit","submit","_ref2","_callee2","_e$submitter","formData","url","searchParams","location","loadingIndicator","response","repos","DOM","selectors","_loop2","_i","_selectors","_context3","preventDefault","submitter","formAction","action","FormData","URL","URLSearchParams","search","history","pushState","fetch","ok","status","statusText","reload","text","parseTextToHtml","selector","current","_context2","pos","innerHTML","dispatchEvent","CustomEvent","detail","setTimeout","_x2","_x3","root","_step","_iterator","err","_step2","submitFormInTheBackgroundWrapper","_ref","_callee","_context","_x","_iterator2","once","bindEventsToFilterContainerAndElements","_step3","_iterator3","_loop","_step4","filter","dataset","highestCountValues","_iterator4","option","Number","parseInt","optionCount","compare","shift","sort","_step5","hasHiddenOptions","_iterator5","includes","splice","indexOf","hidden","showAll","innerText","_step6","_iterator6","limitFilterOptions","ShadowRoot","DOMParser","parseFromString","isInsideIframe","self","top"],"sourceRoot":""}