1customElements.get("email-popup")||customElements.define("email-popup",class extends HTMLElement{constructor(){super(),window.location.pathname!=="/challenge"&&(this.popup=this.querySelector(".email__popup--mdoal__content"),this.closePopup=this.querySelectorAll(".email__popup--toggle, .email-popup-overlay"),this.hidePopup=this.querySelector(".email__popup--hide"),this.cookieName="email-popup",this.closePopup.forEach(item=>{item.addEventListener("click",this.close.bind(this))}),this.hidePopup?.addEventListener("click",this.hide.bind(this)),(!this.getCookie(this.cookieName)||this.dataset.mode==="test")&&this.init(),Shopify.designMode&&(document.addEventListener("shopify:section:load",event=>editorShopifyEvent(event,this,()=>this.open.bind(this))),document.addEventListener("shopify:section:select",event=>editorShopifyEvent(event,this,this.open.bind(this))),document.addEventListener("shopify:section:deselect",event=>editorShopifyEvent(event,this,this.close.bind(this)))))}init(){Shopify&&Shopify.designMode||setTimeout(function(){this.open()}.bind(this),parseInt(this.dataset.delay)*1e3)}open(){document.body.classList.add("email-popup-show"),this.popup.classList.add("popup-open")}close(){if(this.popup.classList.add("popup-closing"),setTimeout(()=>{this.popup.classList.remove("popup-open"),this.popup.classList.remove("popup-closing")},500),this.dataset.mode==="test"){this.removeCookie(this.cookieName);return}}hide(){this.popup.classList.add("popup-closing"),setTimeout(()=>{this.popup.classList.remove("popup-open"),this.popup.classList.remove("popup-closing")},500),this.setCookie(this.cookieName,this.dataset.expire)}getCookie(name){const match=document.cookie.match(`(^|;)\\s*${name}\\s*=\\s*([^;]+)`);return match?match[2]:null}setCookie(name,expiry){document.cookie=`${name}=true; max-age=${expiry*24*60*60}; path=/`}removeCookie(name){document.cookie=`${name}=; max-age=0`}}); 2//# sourceMappingURL=/cdn/shop/t/7/assets/email-popup.js.map?v=95363607210449290521747746150
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.