1function setActivePredictiveSearchTab(predictiveSearch,tabName){const tabs=predictiveSearch.querySelectorAll(".predictive-search__tab"),panels=predictiveSearch.querySelectorAll("[data-tab-panel]");tabs.forEach(tab=>{tab.classList.toggle("is-active",tab.dataset.tab===tabName)}),panels.forEach(panel=>{panel.classList.toggle("is-active",panel.dataset.tabPanel===tabName)})}function activateFirstAvailablePredictiveSearchTab(predictiveSearch){if(!predictiveSearch)return;const priorityOrder=["products","pages","suggestions"];for(const tabName of priorityOrder){const panel=predictiveSearch.querySelector(`[data-tab-panel="${tabName}"]`);if(!panel)continue;if(panel.querySelector(".predictive-search__list-item")){setActivePredictiveSearchTab(predictiveSearch,tabName);return}}}const mobilePredictiveResults=document.getElementById("MobileHeaderPredictiveResults");mobilePredictiveResults&&new MutationObserver(()=>{mobilePredictiveResults.querySelector(".predictive-search__tab")&&setTimeout(()=>{activateFirstAvailablePredictiveSearchTab(mobilePredictiveResults)},50)}).observe(mobilePredictiveResults,{childList:!0,subtree:!0}),document.addEventListener("click",function(event){const tab=event.target.closest(".predictive-search__tab");if(!tab)return;event.preventDefault();const predictiveSearch=tab.closest(".predictive-search");predictiveSearch&&setActivePredictiveSearchTab(predictiveSearch,tab.dataset.tab)}); 2//# sourceMappingURL=/cdn/shop/t/8/assets/mobile-search-tabs.js.map?v=106711490536150913551777575855
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.