PageSourceSearch

https://arneclo.com/cdn/shop/t/956/assets/pdp-info-drawer.js?v=161857911116143662291790853446

js arneclo.com collected 2026-10-02 17:59:38 UTC 3,431 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{const sizeChartDrawer=document.querySelector(".size-chart--drawer"),drawerRoot=document.getElementById("drawer-root");let isDesktop=window.matchMedia("(min-width: 1000px)").matches,isSmallScreen=window.matchMedia("(max-width: 999px)").matches;isDesktop&&sizeChartDrawer&&sizeChartDrawer.parentNode!==drawerRoot&&drawerRoot.appendChild(sizeChartDrawer),sizeChartDrawer?.querySelector(".drawer__content")&&(sizeChartDrawer.querySelector(".drawer__content").scrollTop=0);let drawer=null,previouslyFocused=null;const adoptDrawer=next=>{!next||next===drawer||(drawer&&drawer.parentNode&&drawer.remove(),drawer=next,drawer.parentNode!==document.body&&document.body.appendChild(drawer))};adoptDrawer(document.getElementById("pdpDrawer")),new MutationObserver(mutations=>{for(const m of mutations)for(const node of m.addedNodes){if(node.nodeType!==1)continue;const candidate=node.id==="pdpDrawer"?node:node.querySelector?.("#pdpDrawer");if(candidate&&candidate!==drawer){adoptDrawer(candidate);return}}}).observe(document.body,{childList:!0,subtree:!0});const openDrawer=contentKey=>{if(!drawer)return;previouslyFocused=document.activeElement;const drawerPanel=drawer.querySelector(".pdp-drawer__panel"),closeBtnIcon=drawer.querySelector(".pdp-drawer__close-icon"),contents=drawer.querySelectorAll(".drawer-content");contentKey==="feature"?(drawerPanel?.classList.add("feature--panel"),closeBtnIcon?.classList.add("drawer__close-button")):(drawerPanel?.classList.remove("feature--panel"),closeBtnIcon?.classList.remove("drawer__close-button")),contents.forEach(content=>{content.classList.toggle("active",content.dataset.content===contentKey)}),drawer.classList.add("active"),window.matchMedia("(max-width: 999px)").matches&&document.body.classList.add("overflow-hidden"),drawerPanel&&(drawerPanel.scrollTop=0),closeBtnIcon?.focus({preventScroll:!0}),drawer.querySelector(`.drawer-content[data-content="${contentKey}"]`)?.querySelectorAll("flickity-carousel").forEach(carousel=>{if(carousel.dataset.pdpDrawerReinit==="1"){carousel.flickity?.then(flkty=>flkty&&flkty.resize()).catch(()=>{});return}carousel.dataset.pdpDrawerReinit="1";const clone=carousel.cloneNode(!0);carousel.parentNode.replaceChild(clone,carousel),clone.flickity?.then(flkty=>flkty&&flkty.resize()).catch(()=>{})})},closeDrawer=()=>{drawer&&(drawer.classList.remove("active"),document.body.classList.remove("overflow-hidden"),previouslyFocused&&typeof previouslyFocused.focus=="function"&&document.contains(previouslyFocused)&&previouslyFocused.focus({preventScroll:!0}),previouslyFocused=null)};document.addEventListener("click",event=>{const openBtn=event.target.closest(".pdp-info-btn");if(openBtn){const isDesktopNow=window.matchMedia("(min-width: 1000px)").matches,contentKey=openBtn.dataset.drawerContent;if(!isDesktopNow||contentKey!=="feature")openDrawer(contentKey);else{event.preventDefault();const target=document.getElementById("product-info-sliders");target&&target.scrollIntoView({behavior:"smooth",block:"start"})}return}if(!(!drawer||!drawer.contains(event.target))){if(event.target.closest('[class^="pdp-drawer__close"]')){closeDrawer();return}event.target.classList.contains("pdp-drawer__overlay")&&closeDrawer()}}),document.addEventListener("keydown",event=>{event.key==="Escape"&&closeDrawer()})});
2//# sourceMappingURL=/cdn/shop/t/956/assets/pdp-info-drawer.js.map?v=161857911116143662291790853446

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.