1(function(){if(window.__ssOverlay)return;window.__ssOverlay=!0;var PANEL_MS=300,POP_MS=180;function isPhone(){return window.matchMedia("(max-width:767px)").matches}function wrapCartClose(){if(typeof window.gCloseCart!="function"||window.gCloseCart.__ss)return!1;var orig=window.gCloseCart;function wrapped(){var content=document.querySelector("#g-cart-content");if(!content||!content.classList.contains("g-cart-open")){orig();return}content.classList.remove("g-cart-open"),content.classList.add("g-cart-closing"),setTimeout(function(){content.classList.remove("g-cart-closing"),orig();var ph=document.querySelector(".price-history-modal");ph&&getComputedStyle(ph).display!=="none"&&ph.offsetHeight>0&&(document.body.style.overflow="hidden")},PANEL_MS)}return wrapped.__ss=!0,window.gCloseCart=wrapped,!0}if(!wrapCartClose())var tries=0,t=setInterval(function(){(wrapCartClose()||++tries>20)&&clearInterval(t)},250);document.addEventListener("shopify:section:load",wrapCartClose);function phTitle(tracker){var cfg=tracker.querySelector("script[data-pht-config]");if(!cfg)return"";try{return(JSON.parse(cfg.textContent).t||{}).popupTitle||""}catch(e){return""}}function setHeads(){document.querySelectorAll(".price-history-tracker").forEach(function(tracker){var h3=tracker.querySelector(".price-history-modal .modal-header h3");if(h3){var title=phTitle(tracker);title&&(h3.textContent.trim()!==title&&(h3.textContent=title),!h3.__ss&&(h3.__ss=!0,new MutationObserver(function(){h3.textContent.trim()!==title&&(h3.textContent=title)}).observe(h3,{childList:!0,characterData:!0,subtree:!0})))}})}function closePh(modal){if(!modal.__ssClosing){var done=function(){modal.__ssClosing=!1,modal.classList.remove("ss-closing"),modal.style.display="none",document.querySelector("#g-cart-content.g-cart-open")||(document.body.style.overflow="")};modal.__ssClosing=!0,modal.classList.add("ss-closing"),setTimeout(done,isPhone()?PANEL_MS:POP_MS)}}document.addEventListener("click",function(e){var modal=e.target.closest&&e.target.closest(".price-history-modal");if(modal){var hit=e.target.closest(".modal-close")||e.target.closest(".modal-overlay")||e.target===modal;hit&&(e.stopImmediatePropagation(),e.preventDefault(),closePh(modal))}},!0),document.addEventListener("keydown",function(e){if(e.key==="Escape"){var open=document.querySelector('.price-history-modal[style*="flex"]');open&&(e.stopImmediatePropagation(),closePh(open))}},!0);var phone=window.matchMedia("(max-width:767px)");(function(){function av(){try{var jq=window.jdgm&&window.jdgm.jQuery;if(jq&&jq.fx)return jq.fx.off=!0,!0}catch(e){return!0}return!1}if(!av()){var t2=setInterval(function(){av()&&clearInterval(t2)},500);document.addEventListener("click",function(e){e.target.closest&&e.target.closest(".jdgm-write-rev-link")&&av()},!0)}})();function skipLabel(){var v=getComputedStyle(document.documentElement).getPropertyValue("--ss-skip").trim();return v?v.replace(/^["']|["']$/g,""):""}function syncSkip(){var page=document.querySelector(".jdgm-write-review-modal__page--share-media");if(page){var section=page.closest(".jdgm-write-review-modal__section"),btns=section?section.querySelectorAll(".jdgm-write-review-modal__navigation button"):[],btn=btns[btns.length-1];if(btn){var previews=page.querySelector(".jdgm-write-review-modal__media-previews-container"),hasMedia=!!previews&&previews.children.length>0;btn.__ssLabel===void 0&&(btn.__ssLabel=btn.textContent.trim());var skip=skipLabel(),want=skip&&page.classList.contains("current-page")&&!hasMedia?skip:btn.__ssLabel;btn.textContent.trim()!==want&&(btn.textContent=want)}}}function moveGdpr(){var g=document.querySelector(".jdgm-write-review-modal__gdpr-statement"),content=document.querySelector(".jdgm-write-review-modal__content");!g||!content||(g.__ssHome||(g.__ssHome={parent:g.parentNode,next:g.nextSibling}),phone.matches?g.parentNode!==content&&content.appendChild(g):g.parentNode===content&&g.__ssHome.parent&&g.__ssHome.parent.insertBefore(g,g.__ssHome.next))}function setLock(on){var root=document.documentElement,laast=root.classList.contains("ss-jdgm-lock");if(on!==laast)if(on){var y=window.scrollY||window.pageYOffset||0;root.setAttribute("data-ss-scroll",String(y)),document.body.style.top=-y+"px",root.classList.add("ss-jdgm-lock")}else{var back=parseInt(root.getAttribute("data-ss-scroll")||"0",10)||0;root.classList.remove("ss-jdgm-lock"),document.body.style.top="",root.removeAttribute("data-ss-scroll"),window.scrollTo(0,back)}}function syncLock(){var m=document.querySelector(".jdgm-write-review-modal"),open=!!m&&m.offsetHeight>0&&getComputedStyle(m).display!=="none";setLock(open)}window.addEventListener("pagehide",function(){setLock(!1)});var scheduled=!1;function syncAll(){scheduled||(scheduled=!0,requestAnimationFrame(function(){scheduled=!1;try{moveGdpr(),syncSkip(),syncLock()}catch(e){}}))}new MutationObserver(syncAll).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),phone.addEventListener&&phone.addEventListener("change",syncAll),syncAll();function normaliserKnapp(root){var els=root&&root.querySelectorAll?root.querySelectorAll(".jdgm-write-rev-link"):[];root&&root.classList&&root.classList.contains("jdgm-write-rev-link")&&(els=[root]);for(var i=0;i<els.length;i++){var t2=(els[i].textContent||"").trim();!t2||t2!==t2.toUpperCase()||t2===t2.toLowerCase()||(els[i].textContent=t2.charAt(0)+t2.slice(1).toLowerCase())}}new MutationObserver(function(ms){for(var i=0;i<ms.length;i++){var m=ms[i];if(m.type==="characterData"){normaliserKnapp(m.target.parentElement);continue}for(var j=0;j<m.addedNodes.length;j++)m.addedNodes[j].nodeType===1&&normaliserKnapp(m.addedNodes[j]);m.target&&m.target.nodeType===1&&normaliserKnapp(m.target)}}).observe(document.documentElement,{childList:!0,subtree:!0,characterData:!0}
1),normaliserKnapp(document),(function(){var SEL="[data-product-images]";function vekk(g){g.__ssEager||(g.__ssEager=!0,g.querySelectorAll('img[loading="lazy"]').forEach(function(img){img.setAttribute("loading","eager"),img.removeAttribute("fetchpriority")}))}function bind(scope){(scope||document).querySelectorAll(SEL).forEach(function(g){g.__ssBound||(g.__ssBound=!0,["pointerdown","touchstart","mousedown","click","keydown"].forEach(function(t2){g.addEventListener(t2,function(){vekk(g)},{once:!0,passive:!0})}))})}function varm(){var ri=window.requestIdleCallback||function(f){return setTimeout(f,200)};ri(function(){document.querySelectorAll(SEL).forEach(vekk)},{timeout:1500})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){bind()}):bind(),document.readyState==="complete"?varm():window.addEventListener("load",varm,{once:!0}),document.addEventListener("shopify:section:load",function(e){bind(e.target),varm()})})(),(function(){var SEL="h1.section-header__title, h2.section-header__title, .agency-testimonials .title_stars";function ut(el){var cs=getComputedStyle(el),r=el.getBoundingClientRect(),l=r.left+parseFloat(cs.paddingLeft),h=r.right-parseFloat(cs.paddingRight),rg=document.createRange();rg.selectNodeContents(el);for(var rs=rg.getClientRects(),m=0,i=0;i<rs.length;i++)rs[i].width&&(m=Math.max(m,rs[i].right-h,l-rs[i].left));return m}function tilpass(el){if(el.style.fontSize="",el.style.lineHeight="",!(!el.offsetWidth||ut(el)<.5))for(var cs=getComputedStyle(el),fs=parseFloat(cs.fontSize),lh=parseFloat(cs.lineHeight)/fs,boks=el.getBoundingClientRect().width-parseFloat(cs.paddingLeft)-parseFloat(cs.paddingRight),n=0,forrige=1/0;n<8&&fs>14;n++){var o=ut(el);if(o<.5)break;if(o>forrige-.25){el.style.fontSize="",el.style.lineHeight="";break}forrige=o,fs=Math.max(14,Math.floor(fs*boks/(boks+o)*2)/2),el.style.fontSize=fs+"px",lh&&(el.style.lineHeight=(lh*fs).toFixed(2)+"px")}}function alle(){document.querySelectorAll(SEL).forEach(tilpass)}var b0=window.innerWidth,t2;alle(),document.fonts&&document.fonts.ready&&document.fonts.ready.then(alle),window.addEventListener("load",alle,{once:!0}),window.addEventListener("resize",function(){window.innerWidth!==b0&&(b0=window.innerWidth,clearTimeout(t2),t2=setTimeout(alle,150))}),document.addEventListener("shopify:section:load",alle)})(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",setHeads):setHeads(),setTimeout(setHeads,1200),document.addEventListener("shopify:section:load",setHeads)})(); 2//# sourceMappingURL=/cdn/shop/t/281/assets/ss-overlay.js.map?v=119724148552414804851790938998
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.