{"version":3,"sources":["webpack:///./Scripts/Components/SearchResult.js"],"names":["window","addEventListener","pageLink","document","getElementById","allLink","pageItems","querySelectorAll","allItems","tagBtns","length","forEach","item","classList","add","remove","btn","otherBtn"],"mappings":"iEAAAA,OAAOC,iBAAiB,QAAQ,KAC5B,MAAMC,EAAWC,SAASC,eAAe,oBACnCC,EAAUF,SAASC,eAAe,kBAClCE,EAAYH,SAASI,iBAAiB,iDACtCC,EAAWL,SAASI,iBAAiB,gCACrCE,EAAUN,SAASI,iBAAiB,kCAEtCL,GACAA,EAASD,iBAAiB,SAAS,WAC3BO,EAASE,OAAS,GAClBF,EAASG,SAAQ,SAAUC,GACvBA,EAAKC,UAAUC,IAAI,kBACvB,IAEAR,EAAUI,OAAS,GACnBJ,EAAUK,SAAQ,SAAUC,GACxBA,EAAKC,UAAUE,OAAO,kBAC1B,GAER,IAGAV,GACAA,EAAQJ,iBAAiB,SAAS,WAC1BO,EAASE,OAAS,GAClBF,EAASG,SAAQ,SAAUC,GACvBA,EAAKC,UAAUE,OAAO,kBAC1B,GAER,IAGJN,EAAQE,SAAQ,SAAUK,GACtBA,EAAIf,iBAAiB,SAAS,WAC1BQ,EAAQE,SAAQ,SAAUM,GAClBD,IAAQC,GACRA,EAASJ,UAAUE,OAAO,+BAElC,IACAC,EAAIH,UAAUC,IAAI,+BACtB,GACJ,GAAE,G","file":"338.1c91c29d9e69f0e36833.js","sourcesContent":["window.addEventListener('load', () => {\r\n const pageLink = document.getElementById('hit-count__pages');\r\n const allLink = document.getElementById('hit-count__all');\r\n const pageItems = document.querySelectorAll('.other-hits__list-page__item[data-tag=\"Page\"]');\r\n const allItems = document.querySelectorAll('.other-hits__list-page__item');\r\n const tagBtns = document.querySelectorAll('.hit-count__container__content');\r\n\r\n if (pageLink) {\r\n pageLink.addEventListener('click', function () {\r\n if (allItems.length > 0) {\r\n allItems.forEach(function (item) {\r\n item.classList.add(\"hit-count__hide\");\r\n });\r\n }\r\n if (pageItems.length > 0) {\r\n pageItems.forEach(function (item) {\r\n item.classList.remove(\"hit-count__hide\");\r\n });\r\n }\r\n });\r\n }\r\n\r\n if (allLink) {\r\n allLink.addEventListener('click', function () {\r\n if (allItems.length > 0) {\r\n allItems.forEach(function (item) {\r\n item.classList.remove(\"hit-count__hide\");\r\n });\r\n }\r\n });\r\n }\r\n\r\n tagBtns.forEach(function (btn) {\r\n btn.addEventListener('click', function () {\r\n tagBtns.forEach(function (otherBtn) {\r\n if (btn !== otherBtn) {\r\n otherBtn.classList.remove('hit-count__tag-button-active');\r\n }\r\n });\r\n btn.classList.add('hit-count__tag-button-active');\r\n });\r\n });\r\n});"],"sourceRoot":""}