1(function(){"use strict";var SECTION_SELECTOR='.membership-advice[data-animate="true"]',VISIBLE_CLASS="membership-advice--visible",DESIGN_MODE_CLASS="membership-advice--design-mode";function positionConnectorLines(rootEl){var containers=(rootEl||document).querySelectorAll(".membership-advice__cards");containers.forEach(function(cards){var dots=cards.querySelectorAll(".membership-advice__card-dot"),line=cards.querySelector(".membership-advice__connector-line");if(!(!line||dots.length<2)){var firstDot=dots[0],lastDot=dots[dots.length-1],firstDotCenter=firstDot.offsetParent.offsetTop+firstDot.offsetTop+firstDot.offsetHeight/2,lastDotCenter=lastDot.offsetParent.offsetTop+lastDot.offsetTop+lastDot.offsetHeight/2;line.style.top=firstDotCenter+"px",line.style.height=lastDotCenter-firstDotCenter+"px",line.style.bottom="auto"}})}var resizeTimer;function onResize(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){positionConnectorLines()},150)}function initMembershipAdviceAnimation(rootEl){var sections=(rootEl||document).querySelectorAll(SECTION_SELECTOR);if(sections.length){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){sections.forEach(function(section){section.classList.add(VISIBLE_CLASS)});return}var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting&&(entry.target.classList.add(VISIBLE_CLASS),observer.unobserve(entry.target))})},{rootMargin:window.innerWidth<750?"0px 0px -80px 0px":"0px 0px -120px 0px",threshold:window.innerWidth<750?.1:.15});sections.forEach(function(section){observer.observe(section)})}}function initDesignMode(rootEl){var sections=(rootEl||document).querySelectorAll(SECTION_SELECTOR);sections.forEach(function(section){section.classList.add(DESIGN_MODE_CLASS),section.classList.add(VISIBLE_CLASS)}),positionConnectorLines(rootEl)}function init(){initMembershipAdviceAnimation(),positionConnectorLines(),window.addEventListener("resize",onResize)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init(),typeof Shopify!="undefined"&&Shopify.designMode&&(document.addEventListener("shopify:section:load",function(event){initDesignMode(event.target)}),document.addEventListener("shopify:section:reorder",function(){initDesignMode(document)}))})(); 2//# sourceMappingURL=/cdn/shop/t/46/assets/section-membership-advice.js.map?v=16863751127654323961771532187
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.