1class AgeVerifierPopup extends HTMLElement{constructor(){if(super(),this.cookieName=`Minimog:age-verifier-${this.id}`,this.cookie=getCookie(this.cookieName),this.modal=this.querySelector(".m-modal"),this.modalContent=this.modal.querySelector(".m-modal--content"),this.declineButton=this.querySelector("[data-age-verifier-decline-button]"),this.declineContent=this.querySelector("[data-age-verifier-decline-content]"),this.content=this.querySelector("[data-age-verifier-content]"),this.agreeButton=this.querySelector("[data-age-verifier-agree-button]"),this.returnButton=this.querySelector("[data-age-verifier-return-button]"),this.cookie===""&&this.dataset.enable==="true"){if(Shopify&&Shopify.designMode||(this.openPopup(),!sessionStorage.getItem(this.id)))return;this.showDeclineContent()}}connectedCallback(){this.declineButton&&this.declineButton.addEventListener("click",e=>{e.preventDefault(),this.showDeclineContent(),sessionStorage.setItem(this.id,"age-second-view")}),this.returnButton&&this.returnButton.addEventListener("click",e=>{e.preventDefault(),this.hideDeclineContent(),sessionStorage.getItem(this.id)&&sessionStorage.removeItem(this.id)}),this.agreeButton&&this.agreeButton.addEventListener("click",e=>{e.preventDefault(),this.hideDeclineContent(),this.dataset.enable==="true"&&setCookie(this.cookieName,"agreed",30),this.closePopup()}),Shopify.designMode&&(document.addEventListener("shopify:section:select",this.__shopifySectionSelect.bind(this)),document.addEventListener("shopify:section:load",this.__shopifySectionLoad.bind(this)))}disconnectedCallback(){Shopify.designMode&&(document.removeEventListener("shopify:section:select",this.__shopifySectionSelect.bind(this)),document.removeEventListener("shopify:section:load",this.__shopifySectionLoad.bind(this)))}__shopifySectionLoad(event){if(event.detail.sectionId===this.dataset.sectionId&&this.dataset.designMode==="true"){if(this.openPopup(),!sessionStorage.getItem(this.id))return;this.showDeclineContent(event)}}__shopifySectionSelect(event){event.detail.sectionId===this.dataset.sectionId&&this.dataset.designMode==="true"?this.openPopup():this.closePopup()}showDeclineContent(){this.declineContent.classList.remove("m:hidden"),this.content.classList.add("m:hidden")}hideDeclineContent(){this.declineContent.classList.add("m:hidden"),this.content.classList.remove("m:hidden")}openPopup(){this.modal.style.setProperty("--m-opacity","1"),this.modal.classList.add("m-open-modal"),document.documentElement.classList.add("prevent-scroll")}closePopup(){this.modal.classList.remove("m-open-modal"),this.modal.style.setProperty("--m-opacity","0"),document.documentElement.classList.remove("prevent-scroll")}}customElements.define("m-age-verifier-popup",AgeVerifierPopup); 2//# sourceMappingURL=/cdn/shop/t/21/assets/age-verifier.js.map?v=2731459001429866671757161942
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.