1function waitFor(selector,callback,timeout=2e4,interval=100){const start=Date.now(),timer=setInterval(()=>{const el=document.querySelector(selector);el?(clearInterval(timer),callback(el)):Date.now()-start>=timeout&&clearInterval(timer)},interval)}waitFor("#shopify-chat",element=>{element.classList.add("widgets-hidden")}),waitFor("#smile-ui-container div",element=>{element.classList.add("widgets-hidden")}),waitFor("body",element=>{const CTA_SELECTORS=['button[name="add"]',".slideshow",'.button[href*="/pages/product-recommendation"]',"#ProductCount",".product-count"],WIDGET_SELECTOR="#shopify-chat, #smile-ui-container div";let cta=null,revealPoint=null;function findCTA(){for(const s of CTA_SELECTORS){const el=document.querySelector(s);if(el)return el}return null}function computeRevealPoint(){if(!cta)return;const offset=cta.getBoundingClientRect().top+window.scrollY;var extraDesktopOffset=0;window.innerWidth>=1024&&(extraDesktopOffset=400);const extraOffset=document.body.classList.contains("template-collection")?800:550;revealPoint=offset+extraOffset+extraDesktopOffset}function updateWidgets(){if(revealPoint===null)return;const widgets=document.querySelectorAll(WIDGET_SELECTOR),scrollTop=window.scrollY;widgets.forEach(w=>{scrollTop>=revealPoint?(w.classList.remove("widgets-hidden"),w.classList.add("widgets-show")):(w.classList.add("widgets-hidden"),w.classList.remove("widgets-show"))})}function checkCTA(){const found=findCTA();found&&found!==cta&&(cta=found,computeRevealPoint(),updateWidgets())}window.addEventListener("scroll",updateWidgets,{passive:!0}),window.addEventListener("resize",()=>{computeRevealPoint(),updateWidgets()}),window.addEventListener("load",()=>{computeRevealPoint(),updateWidgets()}),new MutationObserver(()=>{checkCTA()}).observe(document.documentElement,{childList:!0,subtree:!0}),checkCTA(),updateWidgets()}); 2//# sourceMappingURL=/cdn/shop/t/40/assets/T1.js.map?v=139599882889637170991775227517
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.