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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.symmjg.com"  class="hidden">Crown-Sports-feedback@symmjg.com</a>
<a href="http://www.pf168shop.com"  class="hidden">Sabah-online-platform-contactus@pf168shop.com</a>
<a href="http://www.nbzhiai.com"  class="hidden">皇冠体育</a>
<a href="http://xxbsxs.shuiis.com" class="hidden">看购网</a>
<a href="http://qrrdwc.xhchenyu.com" class="hidden">《武侠Q传》官方网站</a>
<a href="http://obfcvk.bjtxtl.com" class="hidden">BLOVES婚戒定制中心</a>
<a href="http://www.51jiyangshi.com"  class="hidden">Football-platform-info@51jiyangshi.com</a>
<a href="http://www.lhjcmaigaiti.com"  class="hidden">Sun-City-Entertainment-media@lhjcmaigaiti.com</a>
<a href="http://www.berxwedan.net"  class="hidden">Crown-Sports-support@berxwedan.net</a>
<a href="http://www.seezl.com"  class="hidden">Crown-Sports-Betting-info@seezl.com</a>
<a href="http://www.educoncepts-sdr.com"  class="hidden">Sun-City-contactus@educoncepts-sdr.com</a>
<a href="http://ryonuj.xxy-oa.com" class="hidden">上海挂号网</a>
<a href="http://classysassyfashionwear.net" class="hidden">易点天下</a>
<a href="http://www.pronewport.com"  class="hidden">Sun-City-entertainment-City-feedback@pronewport.com</a>
<a href="http://www.gsy1258.com"  class="hidden">皇冠体育</a>
<a href="http://www.at-funeral.com"  class="hidden">买球平台</a>
<a href="http://www.symmjg.com"  class="hidden">Crown-Sports-Betting-admin@symmjg.com</a>
<a href="http://ndasgi.fs2612121.com" class="hidden">远大宏略</a>
<a href="http://zlzwhk.ylfll.com" class="hidden">重钢机械</a>
<a href="http://jznylj.youngmj.com" class="hidden">北方网健康之家</a>

<a href="https://stock.adobe.com/search/images?k=✔️最新网址:ad22.net✔️新皇冠手机登录" class="hidden">顺德农村商业银行</a>
<a href="https://stock.adobe.com/search/images?k=✔️官方网址:la777.net✔️买篮球用什么软件好✔️官方网址:la777.net✔️买篮球用什么软件好" class="hidden">中国珠宝行业网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️网址:la66.net✔️十大老品牌网赌信誉平台.knw" class="hidden">腕表之家商家库</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=亚洲正规赌博十大平台介绍✔️网址:la66.net✔️" class="hidden">东方算命网</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=澳门各大游戏平台网址✔️最新网址:la55.net✔️" class="hidden">手抄报图片网</a>
<a href="https://es-la.facebook.com/public/澳门威尼斯人app下载>>✔️网址:ad11.net✔️手输<<" class="hidden">天津河北区</a>
<a href="https://acrmc.com/search/✔️网址:ad11.net✔️新万博注册登录-新万博注册登录官方网站✔️网址:ad11.net✔️新万博注册登录-新万博注册登录官方网站.juh" class="hidden">重庆理工大学本专科招生信息网</a>
<a href="https://m.facebook.com/public/皇冠hg会员登录(中国)有限公司✔️网址:la666.net✔️.ofq" class="hidden">泡泡玩</a>
<a href="https://acrmc.com/search/bwinapp官方下载>>✔️网址:la666.net✔️手输<<bwinapp官方下载>>✔️网址:la666.net✔️手输<<" class="hidden">第13届中国(广州)国际汽车展览会</a>
<a href="https://m.facebook.com/public/hga030皇冠-维基百科✔️网址:la666.net✔️.wgg" class="hidden">85度C</a>

<a href="/news/npizlr-652180.html" class="hidden">南京猎聘网</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/sttcs/hot-news/coinherence.html" class="hidden">大荷水性漆</a>


</body></html>