(()=>{var e={4558:(e,t,n)=>{"use strict";n.d(t,{GQ:()=>o});var i=n(8971);n(9280);window.MinimogEvents=window.MinimogEvents||new i.Z,window._ThemeEvent=window.MinimogEvents,window.MinimogLibs.loadjs=__loadjs;window.MinimogEvents,window.MinimogTheme;const o=window.MinimogSettings||{};window.MinimogStrings,window.MinimogLibs},9280:()=>{__loadjs=function(){var e=function(){},t={},n={},i={};function o(e,t){if(e){var o=i[e];if(n[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function s(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function r(t,n,i,o){var s,c,a=document,l=i.async,d=(i.numRetries||0)+1,u=i.before||e,f=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(f)?((c=a.createElement("link")).rel="stylesheet",c.href=h,(s="hideFocus"in c)&&c.relList&&(s=0,c.rel="preload",c.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f)?(c=a.createElement("img")).src=h:((c=a.createElement("script")).src=t,c.async=void 0===l||l),!(c.onload=c.onerror=c.onbeforeload=function(e){var a=e.type[0];if(s)try{c.sheet.cssText.length||(a="e")}catch(e){18!=e.code&&(a="e")}if("e"==a){if((o+=1){"use strict";n.d(t,{Z:()=>i});n(2422);const i=new class{constructor(){return this.component=this.component.bind(this),this.component}component(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;onull!==e))),t&&(t.class&&(t.className=t.class),delete t.children);let s="fragment"!==e?function(e,t){t=t||{};let n=document.createElement(e);try{n=Object.assign(n,t)}catch{const e=Object.keys(t);for(let i=0;ie.match(/^data-/)))&&(alert("Do not use data-* in your JSX component! Use dataSet instead!! - Check the console.trace for more info"),window.__aleartedJSXData=!0),null!=t&&t.ref&&("function"==typeof t.ref?t.ref(s):t.ref=s),null!=t&&t.on&&Object.entries(t.on).forEach((e=>{let[t,n]=e;s.addEventListener(t,n)})),null!=t&&t.style&&Object.entries(t.style).forEach((e=>{let[t,n]=e;s.style.setProperty(t,n)})),s}}},8971:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});class i{constructor(){this.events={}}get evts(){return Object.keys(this.events)}subscribe(e,t){return this.events[e]=this.events[e]||[],this.events[e].push(t),()=>this.unSubscribe(e,t)}unSubscribe(e,t){const n=this.events[e];if(n&&Array.isArray(n))for(let e=0;e1?t-1:0),i=1;i{e(...n)}))}}},2422:()=>{!function(){function e(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))})),this.appendChild(t)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(t){t.hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:e})}))}()},643:e=>{var t="complete",n="canceled";function i(e,t,n){Math.max(0,t),Math.max(0,n),e.self===e?e.scrollTo(t,n):(e.scrollLeft=t,e.scrollTop=n)}function o(e){var n=e._scrollSettings;if(n){var s=n.maxSynchronousAlignments,r=function(e,t){var n,i,o,s,r,c,a,l=e.align,d=e.target.getBoundingClientRect(),u=l&&null!=l.left?l.left:.5,f=l&&null!=l.top?l.top:.5,h=l&&null!=l.leftOffset?l.leftOffset:0,p=l&&null!=l.topOffset?l.topOffset:0,m=u,g=f;if(e.isWindow(t))c=Math.min(d.width,t.innerWidth),a=Math.min(d.height,t.innerHeight),i=d.left+t.pageXOffset-t.innerWidth*m+c*m,o=d.top+t.pageYOffset-t.innerHeight*g+a*g,i-=h,o-=p,i=e.align.lockX?t.pageXOffset:i,o=e.align.lockY?t.pageYOffset:o,s=i-t.pageXOffset,r=o-t.pageYOffset;else{c=d.width,a=d.height,n=t.getBoundingClientRect();var v=d.left-(n.left-t.scrollLeft),w=d.top-(n.top-t.scrollTop);i=v+c*m-t.clientWidth*m,o=w+a*g-t.clientHeight*g,i-=h,o-=p,i=Math.max(Math.min(i,t.scrollWidth-t.clientWidth),0),o=Math.max(Math.min(o,t.scrollHeight-t.clientHeight),0),i=e.align.lockX?t.scrollLeft:i,o=e.align.lockY?t.scrollTop:o,s=i-t.scrollLeft,r=o-t.scrollTop}return{x:i,y:o,differenceX:s,differenceY:r}}(n,e),c=Date.now()-n.startTime,a=Math.min(1/n.time*c,1);if(n.endIterations>=s)return i(e,r.x,r.y),e._scrollSettings=null,n.end(t);var l=1-n.ease(a);if(i(e,r.x-r.differenceX*l,r.y-r.differenceY*l),c>=n.time)return n.endIterations++,n.scrollAncestor&&o(n.scrollAncestor),void o(e);!function(e){if("requestAnimationFrame"in window)return window.requestAnimationFrame(e);setTimeout(e,16)}(o.bind(null,e))}}function s(e){return e.self===e}function r(e){return"pageXOffset"in e||(e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth)&&"hidden"!==getComputedStyle(e).overflow}function c(){return!0}function a(e){if(e.assignedSlot)return a(e.assignedSlot);if(e.parentElement)return"body"===e.parentElement.tagName.toLowerCase()?e.parentElement.ownerDocument.defaultView||e.parentElement.ownerDocument.ownerWindow:e.parentElement;if(e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t.host}}e.exports=function(e,i,l){if(e){"function"==typeof i&&(l=i,i=null),i||(i={}),i.time=isNaN(i.time)?1e3:i.time,i.ease=i.ease||function(e){return 1-Math.pow(1-e,e/2)},i.align=i.align||{};var d=a(e),u=1,f=i.validTarget||c,h=i.isScrollable;i.debug;for(var p=[];d;)if(i.debug,f(d,u)&&(h?h(d,r):r(d))&&(u++,p.push(d)),!(d=a(d))){m(t);break}return p.reduce(((t,r,c)=>function(e,t,i,r,c){var a,l=!t._scrollSettings,d=t._scrollSettings,u=Date.now(),f={passive:!0};function h(e){t._scrollSettings=null,t.parentElement&&t.parentElement._scrollSettings&&t.parentElement._scrollSettings.end(e),i.debug,c(e),a&&(t.removeEventListener("touchstart",a,f),t.removeEventListener("wheel",a,f))}d&&d.end(n);var p=i.maxSynchronousAlignments;return null==p&&(p=3),t._scrollSettings={startTime:u,endIterations:0,target:e,time:i.time,ease:i.ease,align:i.align,isWindow:i.isWindow||s,maxSynchronousAlignments:p,end:h,scrollAncestor:r},"cancellable"in i&&!i.cancellable||(a=h.bind(null,n),t.addEventListener("touchstart",a,f),t.addEventListener("wheel",a,f)),l&&o(t),a}(e,r,i,p[c+1],m)),null)}function m(e){--u||l&&l(e)}}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(643),t=n.n(e);n(4558).GQ,n(6295).Z;window.__getSectionInstanceByType=e=>window.Shopify.theme.sections.instances.find((t=>t.type===e));const i=document.querySelector("#scroll-to-top-target");function o(e){t()(i,e)}function s(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="expires="+i.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"}function r(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i{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(),"true"===this.dataset.enable&&s(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(e){if(e.detail.sectionId===this.dataset.sectionId&&"true"===this.dataset.designMode){this.openPopup();if(!sessionStorage.getItem(this.id))return;this.showDeclineContent(e)}}__shopifySectionSelect(e){e.detail.sectionId===this.dataset.sectionId&&"true"===this.dataset.designMode?this.openPopup():this.closePopup()}showDeclineContent(){this.declineContent.classList.remove("hidden"),this.content.classList.add("hidden")}hideDeclineContent(){this.declineContent.classList.add("hidden"),this.content.classList.remove("hidden")}openPopup(){this.modal.classList.add("open"),document.documentElement.classList.add("prevent-scroll")}closePopup(){this.modal.classList.remove("open"),document.documentElement.classList.remove("prevent-scroll")}}customElements.define("m-age-verifier-popup",c)})()})();