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L,mBAAoBiC,EAAKC,cAAgB,GACnD7B,KAAKL,iBAAmBiC,EAAKE,gBAAgB,YAAcF,EAAKH,aAAa,WAAY,OAAO,GAEpG,CAEQ,YAAAjB,CAAauB,GAEnB,MAAMC,EAAiBD,EAAUL,QAAQ,oBACnCO,EAA8BD,aAAc,EAAdA,EAAgBL,cAAc,QAClEM,SAAAA,EAAYC,OACd,CAEQ,4BAAAlB,CAA6BmB,EAA8BpB,GACjE,MAAMqB,EAAmB,eACnBC,EAAmB,eAEzBF,SAAAA,EAAWhC,iBAAiB,SAAUmC,IAChCH,EAAUlC,UAAUC,SAASmC,IAC/BF,EAAUlC,UAAUsC,QAAQF,EAAkBD,GAC9CD,EAAUV,aAAa,gBAAiB,SACxCV,SAAAA,EAAYd,UAAUuC,OAAO,iCAG7BL,EAAUlC,UAAUsC,QAAQH,EAAkBC,GAC9CF,EAAUV,aAAa,gBAAiB,QACxCV,SAAAA,EAAYd,UAAUwC,IAAI,+B,GAGhC,E","sources":["webpack://site-client-side/./src/components/homepageSearchWidget/cosmos/shopByVehicle/searchByFilter/searchByFilter.ts"],"sourcesContent":["export default class SearchByFilter {\r\n  private _toggleIsVisible: boolean = false;\r\n\r\n  constructor() {\r\n    this.initialize();\r\n  }\r\n\r\n  private initialize = () =&gt; {\r\n    const toggleElem = document.getElementById(\"searchByFilterToggle\");\r\n    this._toggleIsVisible = !toggleElem?.classList.contains(\"collapsed\");\r\n    toggleElem?.addEventListener(\"click\", () =&gt; {\r\n      this.toggleFilters(toggleElem);\r\n    });\r\n\r\n    const resetElems = document.querySelectorAll(\".search-by-filter__reset-button\");\r\n    resetElems.forEach((element: HTMLElement) =&gt; {\r\n      element.addEventListener(\"click\", () =&gt; {\r\n        this.resetFilters(element);\r\n      });\r\n    });\r\n\r\n    const vehicleCountElem = document.getElementById(\"homepageSearchWidgetVehicleCount\");\r\n    if (vehicleCountElem) {\r\n      document.addEventListener('inventorywidget-update-inventory-count', (e: CustomEvent) =&gt; {\r\n        const vehicleCount = e.detail;\r\n        vehicleCountElem.innerHTML = vehicleCount;\r\n      }, false);\r\n    }\r\n\r\n    const filterBtn = document.getElementById(\"searchByFilterToggle\") as HTMLButtonElement;\r\n    const searchForm = document.getElementById(\"searchByFilterForm\") as HTMLElement;\r\n\r\n    this.processMoreLessFiltersToggle(filterBtn, searchForm);\r\n  }\r\n\r\n  private toggleFilters(toggleElem: HTMLElement) {\r\n    //set the toggle state\r\n    this._toggleIsVisible = !this._toggleIsVisible;\r\n    const toggleLabel = document.getElementById('searchByFilterToggleLabel');\r\n    const toggleButton = document.getElementById('searchByFilterToggle');\r\n    const lessFiltersContainer = document.getElementById('searchByFilterLess');\r\n\r\n    //update the more/less filter button text\r\n    if (toggleLabel) {\r\n      this._toggleIsVisible ? toggleLabel.innerText = toggleElem.dataset.lessLabel : toggleLabel.innerText = toggleElem.dataset.moreLabel;\r\n    }\r\n\r\n    //update dotagging dynamic tags\r\n    if (this._toggleIsVisible) {\r\n      lessFiltersContainer.dataset.moreFiltersDisplayed = \"True\";\r\n      toggleButton?.setAttribute('data-dotagging-element-state', 'active');\r\n      toggleButton?.setAttribute('data-dotagging-event-action-result', 'check');\r\n    } else {\r\n      lessFiltersContainer.dataset.moreFiltersDisplayed = \"False\";\r\n      toggleButton?.setAttribute('data-dotagging-element-state', 'inactive');\r\n      toggleButton?.setAttribute('data-dotagging-event-action-result', 'uncheck');\r\n    }\r\n\r\n    //fetch the div container that has the additional filters\r\n    const mainFilterElem = toggleElem.closest(\"inventory-widget\");\r\n\r\n    // hide/show more filters\r\n    const moreFiltersElem = mainFilterElem.querySelector(\"#searchByFilterMore\");\r\n\r\n    // disable/enable the more filters inputs\r\n    const moreFilterElems = moreFiltersElem.querySelectorAll(\"select\");\r\n    moreFilterElems.forEach((elem: HTMLSelectElement) =&gt; {\r\n      if (!this._toggleIsVisible) { elem.selectedIndex = 0 };\r\n      this._toggleIsVisible ? elem.removeAttribute(\"disabled\") : elem.setAttribute(\"disabled\", \"true\");\r\n    });\r\n  }\r\n\r\n  private resetFilters(resetElem: HTMLElement) {\r\n    //fetch the div container that elements to reset\r\n    const mainFilterElem = resetElem.closest(\"inventory-widget\");\r\n    const filterForm: HTMLFormElement = mainFilterElem?.querySelector(\"form\");\r\n    filterForm?.reset();\r\n  }\r\n\r\n  private processMoreLessFiltersToggle(toggleBtn: HTMLButtonElement, searchForm: HTMLElement) {\r\n    const moreFiltersClass = \"more-filters\";\r\n    const lessFiltersClass = \"less-filters\";\r\n\r\n    toggleBtn?.addEventListener(\"click\", (event: MouseEvent) =&gt; {\r\n      if (toggleBtn.classList.contains(lessFiltersClass)) {\r\n        toggleBtn.classList.replace(lessFiltersClass, moreFiltersClass);\r\n        toggleBtn.setAttribute(\"aria-expanded\", \"false\");\r\n        searchForm?.classList.remove(\"search-by-filter--show-more\");\r\n      }\r\n      else {\r\n        toggleBtn.classList.replace(moreFiltersClass, lessFiltersClass);\r\n        toggleBtn.setAttribute(\"aria-expanded\", \"true\");\r\n        searchForm?.classList.add(\"search-by-filter--show-more\");\r\n      }\r\n    });\r\n  }\r\n}"],"names":["SearchByFilter","constructor","_toggleIsVisible","initialize","toggleElem","document","getElementById","this","classList","contains","addEventListener","toggleFilters","querySelectorAll","forEach","element","resetFilters","vehicleCountElem","e","vehicleCount","detail","innerHTML","filterBtn","searchForm","processMoreLessFiltersToggle","toggleLabel","toggleButton","lessFiltersContainer","innerText","dataset","lessLabel","moreLabel","moreFiltersDisplayed","setAttribute","closest","querySelector","elem","selectedIndex","removeAttribute","resetElem","mainFilterElem","filterForm","reset","toggleBtn","moreFiltersClass","lessFiltersClass","event","replace","remove","add"],"sourceRoot":""}<style>
.hidden {
display: none;
}
</style>

<a href="http://www.tassahil.net"  class="hidden">威尼斯人体育</a>
<a href="http://www.xqykl.net"  class="hidden">体育平台</a>
<a href="http://web-sitemap.ckdqw.com" class="hidden">石家庄圣安驾校官方网站</a>
<a href="http://www.lhjcmaigaiti.com"  class="hidden">太阳城娱乐</a>
<a href="http://web-sitemap.wailiequipmen-hk.com" class="hidden">珍爱网红娘</a>
<a href="http://www.78278.net"  class="hidden">ag8-Asia-Tour-service@78278.net</a>
<a href="http://www.swissabc.net"  class="hidden">Sports-betting-help@swissabc.net</a>
<a href="http://raxitw.mariedesk.net" class="hidden">迈点网资讯频道</a>
<a href="http://www.mygril-yaoyao.com"  class="hidden">Gaming-platform-billing@mygril-yaoyao.com</a>
<a href="http://drnsox.2fitfashion.com" class="hidden">群雁信息</a>
<a href="http://www.yopin365.com"  class="hidden">Crown-Sports-sales@yopin365.com</a>
<a href="http://www.cesametal.net"  class="hidden">Gaming-platform-hr@cesametal.net</a>
<a href="http://web-sitemap.jinlongzhizao.com" class="hidden">长兴人才网</a>
<a href="http://www.cceweb.net"  class="hidden">Casino-platform-billing@cceweb.net</a>
<a href="http://www.smxjjl.com"  class="hidden">沙巴体育博彩</a>
<a href="http://www.51jiyangshi.com"  class="hidden">足球外围平台</a>
<a href="http://www.berxwedan.net"  class="hidden">皇冠博彩</a>
<a href="http://www.jayconscious.com"  class="hidden">皇冠体育博彩</a>
<a href="http://www.futuretac.net"  class="hidden">永利体育app</a>
<a href="http://www.szbestwin.com"  class="hidden">Euro-betting-marketing@szbestwin.com</a>

<a href="https://www.deep6gear.com/catalogsearch/result/?q=靠谱中文博彩平台>>✔️网址:la66.net✔️手输<<靠谱中文博彩平台>>✔️网址:la66.net✔️手输<<" class="hidden">深圳永信人才网</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:ad11.net✔️正规的彩票app合集(中国)有限公司.kxu" class="hidden">重庆房地产网</a>
<a href="https://stock.adobe.com/search?k=✔️网址:la66.net✔️lpl押注app平台介绍.dsp" class="hidden">分集剧情网</a>
<a href="https://es-la.facebook.com/public/>>✔️网址:ad11.net✔️手输<<菠菜网lol正规平台>>✔️网址:ad11.net✔️手输<<菠菜网lol正规平台" class="hidden">大学生兼职网</a>
<a href="https://stock.adobe.com/search?k=mg摆脱冰球豪华版下载有限公司(中国)有限公司✔️网址:la666.net✔️" class="hidden">四海商舟</a>
<a href="https://es-la.facebook.com/public/pg电子游戏官网平台介绍✔️网址:la666.net✔️" class="hidden">中智北京</a>
<a href="https://acrmc.com/search/科普一下现在还有哪个网站可以买球的百科✔️最新网址:la55.net✔️" class="hidden">南昌银行</a>
<a href="https://m.facebook.com/public/✔️官方网址:la777.net✔️科普一下九游会网站登录的百科" class="hidden">热心医生</a>
<a href="https://stock.adobe.com/search/images?k=在线赌博排名推荐博彩网站平台介绍✔️最新网址:la55.net✔️在线赌博排名推荐博彩网站平台介绍✔️最新网址:la55.net✔️" class="hidden">汇法网</a>
<a href="https://m.facebook.com/public/✔️最新网址:ad22.net✔️银河娱乐城地址-银河娱乐城地址官方网站" class="hidden">哈尔滨工业大学(威海)</a>

<a href="/cn/xshetg-810939.html" class="hidden">历趣风云榜</a>
<a href="/sttcs/hot-news/Teutondom.html" class="hidden">玲珑轮胎</a>
<a href="/sttcs/hot-news/elytrorrhagia.html" class="hidden">青岛房产信息门户</a>
<a href="/news/cnbrmb-533411.html" class="hidden">OFweek电子工程网</a>
<a href="/sttcs/hot-news/chambray.html" class="hidden">58同城河池分类信息 </a>


</body></html>