PageSourceSearch

https://karakubuy.com/cdn/shop/t/144/assets/mobile-nav-split.js?v=63869535206957127661787889130

js karakubuy.com collected 2026-10-07 18:59:51 UTC 2,702 bytes, 2 lines download raw bytes

1(function(){const SELECTOR_DRAWER=".mobile-navigation-drawer--split",SELECTOR_ROOT="[data-mobile-nav-split]";function initSplitNav(drawer){if(!drawer||drawer.dataset.splitNavReady==="true")return;const root=drawer.querySelector(SELECTOR_ROOT);if(!root)return;drawer.dataset.splitNavReady="true";const items=[...root.querySelectorAll(".mobile-nav-split__l1-item--has-children")],panels=[...root.querySelectorAll("[data-split-panel]")],emptyPanel=root.querySelector("[data-split-panel-empty]"),rightPane=root.querySelector("[data-split-right]");function hideAllPanels(){panels.forEach(panel=>{panel.hidden=!0}),emptyPanel&&(emptyPanel.hidden=!0)}function showPanel(index){hideAllPanels();const panel=root.querySelector(`[data-split-panel="${index}"]`);panel?panel.hidden=!1:emptyPanel&&(emptyPanel.hidden=!1),rightPane&&(rightPane.scrollTop=0)}function setActiveItem(item,open){items.forEach(el=>{const isTarget=el===item,shouldOpen=isTarget&&open;el.classList.toggle("mobile-nav-split__l1-item--open",shouldOpen),el.classList.toggle("is-active",isTarget);const l2=el.querySelector(".mobile-nav-split__l2");l2&&(l2.hidden=!shouldOpen);const toggle=el.querySelector("[data-split-l1-toggle]");toggle&&toggle.setAttribute("aria-expanded",shouldOpen?"true":"false")}),item&&open&&showPanel(item.dataset.splitL1Index)}root.addEventListener("click",evt=>{const toggle=evt.target.closest("[data-split-l1-toggle]");if(!toggle||!root.contains(toggle))return;evt.preventDefault();const item=toggle.closest(".mobile-nav-split__l1-item--has-children");if(!item)return;const willOpen=!item.classList.contains("mobile-nav-split__l1-item--open");setActiveItem(item,willOpen),willOpen||(showPanel(item.dataset.splitL1Index),item.classList.add("is-active"))}),items.length>0?setActiveItem(items[0],!0):emptyPanel&&(hideAllPanels(),emptyPanel.hidden=!1);const loadImages=()=>{typeof theme<"u"&&typeof theme.manuallyLoadImages=="function"&&theme.manuallyLoadImages(drawer)};if(document.body.classList.contains("reveal-mobile-nav"))loadImages();else{const observer=new MutationObserver(()=>{document.body.classList.contains("reveal-mobile-nav")&&(loadImages(),observer.disconnect())});observer.observe(document.body,{attributes:!0,attributeFilter:["class"]})}}function tryInit(){document.querySelectorAll(SELECTOR_DRAWER).forEach(initSplitNav)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",tryInit):tryInit(),new MutationObserver(()=>{document.querySelector(`${SELECTOR_DRAWER}:not([data-split-nav-ready="true"])`)&&tryInit()}).observe(document.documentElement,{childList:!0,subtree:!0})})();
2//# sourceMappingURL=/cdn/shop/t/144/assets/mobile-nav-split.js.map?v=63869535206957127661787889130

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.