PageSourceSearch

https://www.ankernordics.com/_next/static/chunks/10500.0739d517111a2105.js

js ankernordics.com collected 2026-09-29 21:42:18 UTC 172,331 bytes, 1 lines download raw bytes

1!function(){try{var l="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new l.Error).stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="a71f2b08-2042-4082-8293-880f91312806",l._sentryDebugIdIdentifier="sentry-dbid-a71f2b08-2042-4082-8293-880f91312806")}catch(l){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10500],{59307:function(l,e,t){"use strict";var i=t(52676),n=t(874),a=t.n(n),c=t(75271),o=t(47899),d=t(44599);e.Z=l=>{var e,t;let{code:n,s:r={},className:s="",onCopy:x,copyText:m}=l,[v,u]=(0,c.useState)(!1),p=null===(t=(0,d.L)().metafields)||void 0===t?void 0:null===(e=t.common)||void 0===e?void 0:e.copywriting,w=(l,e)=>{l.stopPropagation(),u(!0),a()(e),setTimeout(()=>{u(!1)},2e3),x&&x()};return(0,i.jsx)("div",{className:(0,o.m)("flex items-center font-semibold",s),children:n&&(0,i.jsxs)(i.Fragment,{children:[(null==p?void 0:p.code)&&(0,i.jsxs)("span",{className:(0,o.m)("codePrefix pr-[4px] text-[#999] md:pr-0.5",r.codePrefix),children:[null==p?void 0:p.code,":"]}),(0,i.jsxs)("div",{className:(0,o.m)("flex items-center",r.codeAndCopy),children:[(0,i.jsx)("span",{className:(0,o.m)("code pr-[6px] text-[#999] md:pr-1",r.code),children:n}),(0,i.jsx)("button",{onClick:l=>w(l,n),className:(0,o.m)("copy text-brand underline",v&&"no-underline",r.copy),children:m||(v?null==p?void 0:p.copied:null==p?void 0:p.copy)})]})]})})}},55353:function(l,e,t){"use strict";t.d(e,{x:function(){return r}});var i=t(52676),n=t(82187),a=t.n(n),c=t(75271),o=t(4500),d=t.n(o);let r=l=>{let{className:e,variant:t="",children:n,active:o,width:r,loading:x=!1,disabled:m=!1,style:v={},Component:u="button",s:p={},buttonRef:w=null,stroke:h,...f}=l;(0,c.useRef)(null);let g={...d(),...p},b=a()(g.root,{[g.disabled]:m,[g.loading]:x,[g.brandBorder]:"brandBorder"===t,[g.gradientBg]:"gradientBg"===t,[g.solixGradientBg]:"solixGradientBg"===t,[g.blackBg]:"blackBg"===t,[g.blackBorder]:"blackBorder"===t,[g.whiteBorder]:"whiteBorder"===t,[g.whiteBrand]:"whiteBrand"===t,[g.whiteSolixBrand]:"whiteSolixBrand"===t,[g.amazonLink]:"amazonLink"===t,[g.christmasRed]:"christmasRed"===t,[g.christmasRedBorder]:"christmasRedBorder"===t,[g.christmasGreen]:"christmasGreen"===t,[g.newYear]:"newYear"===t},e);return(0,i.jsx)(u,{"aria-pressed":o,"data-variant":t,className:b,disabled:m||x,tabIndex:"onClick"in f?"0":"-1",role:"onClick"in f?"button":"",onKeyPress:"onClick"in f?l=>{"Enter"==l.key&&f.onClick&&f.onClick(l)}:()=>{},style:{width:r,...v},...f,children:x?(0,i.jsx)("div",{className:g.loadingDots,children:(0,i.jsx)(s,{stroke:h})}):n})},s=l=>{let{stroke:e}=l;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,i.jsx)("path",{d:"M1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1",stroke:e||"white",strokeWidth:"2",strokeLinecap:"round"})})}},99137:function(l,e,t){"use strict";t.d(e,{u:function(){return d}});var i=t(74284),n=t(7684),a=t(37156),c=t(75271),o=t(61788);let d=function(){let{onSuccess:l,onError:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{locale:t}=(0,a.useRouter)(),{storeDomain:d}=(0,n.j)(),r=(0,c.useCallback)(async(l,e)=>{let{arg:n}=e,a=await (0,i.Z)({action:"lottery",needRecaptcha:!0,locale:t,url:"/api/multipass/rainbowbridge/lottery/start",method:"POST",body:{shopify_domain:d,email:encodeURI(n.email),genre:n.dealsType,register_source:window.location.href}}).catch(l=>({code:-1,msg:l.message}));if(200!==a.code)throw Error(a.msg);return a.data},[t,d]);return(0,o.Z)("lotteryStart",r,{onSuccess:l,onError:e})}},85700:function(l,e,t){"use strict";var i=t(14224);t(95625);var n=t(75271),a=n&&"object"==typeof n&&"default"in n?n:{default:n},c=void 0!==i&&i.env&&!0,o=function(l){return"[object String]"===Object.prototype.toString.call(l)},d=function(){function l(l){var e=void 0===l?{}:l,t=e.name,i=void 0===t?"stylesheet":t,n=e.optimizeForSpeed,a=void 0===n?c:n;r(o(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",r("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var d=document.querySelector('meta[property="csp-nonce"]');this._nonce=d?d.getAttribute("content"):null}var e=l.prototype;return e.setOptimizeForSpeed=function(l){r("boolean"==typeof l,"`setOptimizeForSpeed` accepts a boolean"),r(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=l,this.inject()},e.isOptimizeForSpeed=function(){return this._optimizeForSpeed},e.inject=function(){var l=this;if(r(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,t){return"number"==typeof t?l._serverSheet.cssRules[t]={cssText:e}:l._serverSheet.cssRules.push({cssText:e}),t},deleteRule:function(e){l._serverSheet.cssRules[e]=null}}},e.getSheetForTag=function(l){if(l.sheet)return l.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===l)return document.styleSheets[e]},e.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},e.insertRule=function(l,e){if(r(o(l),"`insertRule` accepts only strings"),this._optimizeForSpeed){var t=this.getSheet();"number"!=typeof e&&(e=t.cssRules.length);try{t.insertRule(l,e)}catch(l){return -1}}else{var i=this._tags[e];this._tags.push(this.makeStyleTag(this._name,l,i))}return this._rulesCount++},e.replaceRule=function(l,e){if(this._optimizeForSpeed){var t=this.getSheet();if(e.trim()||(e=this._deletedRulePlaceholder),!t.cssRules[l])return l;t.deleteRule(l);try{t.insertRule(e,l)}catch(e){t.insertRule(this._deletedRulePlaceholder,l)}}else{var i=this._tags[l];r(i,"old rule at index `"+l+"` not found"),i.textContent=e}return l},e.deleteRule=function(l){if(this._optimizeForSpeed)this.replaceRule(l,"");else{var e=this._tags[l];r(e,"rule at index `"+l+"` not found"),e.parentNode.removeChild(e),this._tags[l]=null}},e.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(l){return l&&l.parentNode.removeChild(l)}),this._tags=[]},e.cssRules=function(){var l=this;return this._tags.reduce(function(e,t){return t?e=e.concat(Array.prototype.map.call(l.getSheetForTag(t).cssRules,function(e){return e.cssText===l._deletedRulePlaceholder?null:e})):e.push(null),e},[])},e.makeStyleTag=function(l,e,t){e&&r(o(e),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+l,""),e&&i.appendChild(document.createTextNode(e));var n=document.head||document.getElementsByTagName("head")[0];return t?n.insertBefore(i,t):n.appendChild(i),i},function(l,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}(l.prototype,[{key:"length",get:function(){return this._rulesCount}}]),l}();function r(l,e){if(!l)throw Error("StyleSheet: "+e+".")}var s=function(l){for(var e=5381,t=l.length;t;)e=33*e^l.charCodeAt(--t);return e>>>0},x={};function m(l,e){if(!e)return"jsx-"+l;var t=String(e),i=l+t;return x[i]||(x[i]="jsx-"+s(l+"-"+t)),x[i]}function v(l,e){var t=l+e;return x[t]||(x[t]=e.replace(/__jsx-style-dynamic-selector/g,l)),x[t]}var u=function(){function l(l){var e=void 0===l?{}:l,t=e.styleSheet,i=void 0===t?null:t,n=e.optimizeForSpeed,a=void 0!==n&&n;this._sheet=i||new d({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),i&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=l.prototype;return e.add=function(l){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(l.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(l,e){return l[e]=0,l},{}));var t=this.getIdAndRules(l),i=t.styleId,n=t.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var a=n.map(function(l){return e._sheet.insertRule(l)}).filter(function(l){return -1!==l});this._indices[i]=a,this._instancesCounts[i]=1},e.remove=function(l){var e=this,t=this.getIdAndRules(l).styleId;if(function(l,e){if(!l)throw Error("StyleSheetRegistry: "+e+".")}(t in this._instancesCounts,"styleId: `"+t+"` not found"),this._instancesCounts[t]-=1,this._instancesCounts[t]<1){var i=this._fromServer&&this._fromServer[t];i?(i.parentNode.removeChild(i),delete this._fromServer[t]):(this._indices[t].forEach(function(l){return e._sheet.deleteRule(l)}),delete this._indices[t]),delete this._instancesCounts[t]}},e.update=function(l,e){this.add(e),this.remove(l)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var l=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,l._fromServer[e]]}):[],t=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,l._indices[e].map(function(l){return t[l].cssText}).join(l._optimizeForSpeed?"":"\n")]}).filter(function(l){return!!l[1]}))},e.styles=function(l){var e,t;return e=this.cssRules(),void 0===(t=l)&&(t={}),e.map(function(l){var e=l[0],i=l[1];return a.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:t.nonce?t.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},e.getIdAndRules=function(l){var e=l.children,t=l.dynamic,i=l.id;if(t){var n=m(i,t);return{styleId:n,rules:Array.isArray(e)?e.map(function(l){return v(n,l)}):[v(n,e)]}}return{styleId:m(i),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(l,e){return l[e.id.slice(2)]=e,l},{})},l}(),p=n.createContext(null);p.displayName="StyleSheetContext";var w=a.default.useInsertionEffect||a.default.useLayoutEffect,h=new u;function f(l){var e=h||n.useContext(p);return e&&w(function(){return e.add(l),function(){e.remove(l)}},[l.id,String(l.dynamic)]),null}f.dynamic=function(l){return l.map(function(l){return m(l[0],l[1])}).join(" ")},e.style=f},30579:function(l,e,t){"use strict";l.exports=t(85700).style},44621:function(l,e,t){"use strict";
1var i=t(52676),n=t(41085),a=t(44599),c=t(8303),o=t(28367),d=t(12306),r=t(35869),s=t(80227),x=t(37156);let m=(l,e)=>l+e.quantity;e.Z=l=>{var e,t,v,u,p,w,h,f;let{title:g=""}=l,{openCart:b}=(0,o.l)(),j=(0,a.L)(),{data:y}=(0,s.j)(),N=null!==(f=null==y?void 0:null===(e=y.lineItems)||void 0===e?void 0:e.reduce(m,0))&&void 0!==f?f:0,{back:_}=(0,x.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{height:"max(68px, calc(68px + env(safe-area-inset-top, 0px)))"},"aria-hidden":"true"}),(0,i.jsxs)("div",{className:"fixed top-0 z-20 flex w-full items-center justify-between bg-white px-[16px] py-[9px] pt-[calc(env(safe-area-inset-top)+9px)]",children:[(0,i.jsx)("div",{className:"flex w-[70px] items-center justify-start gap-2",children:(0,i.jsx)("button",{onClick:async()=>{_()},children:(0,i.jsx)(n.t,{className:"w-[32px]",source:(null==j?void 0:null===(u=j.metafields)||void 0===u?void 0:null===(v=u.layout)||void 0===v?void 0:null===(t=v.appHeader)||void 0===t?void 0:t.backIcon)||""})})}),(0,i.jsx)("div",{className:"flex-1 text-center",children:(0,i.jsx)("h1",{className:"text-[20px] font-bold text-gray-900",children:g})}),(0,i.jsx)("div",{className:"flex w-[80px] items-center justify-end gap-2",children:(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.r,{href:"/search?ref=app-collections",className:"cursor-pointer",children:(0,i.jsx)(n.t,{className:"h-[19px] w-[19px]",source:"https://cdn.shopify.com/s/files/1/0884/6222/9852/files/search_1.png?v=1760669156"})}),(0,i.jsxs)("div",{className:"relative ",children:[(0,i.jsx)("button",{className:"flex h-[50px] items-center justify-center pl-2 pr-4",onClick:()=>{(0,r.DU)({event:"ga4Event",event_name:"lp_navigation",event_parameters:{page_group:"APP Page_"+d.pr,navigation:"cart"}}),b()},children:(0,i.jsx)(n.t,{className:"w-[24px]",source:(null==j?void 0:null===(h=j.metafields)||void 0===h?void 0:null===(w=h.layout)||void 0===w?void 0:null===(p=w.appHeader)||void 0===p?void 0:p.cartIcon)||""})}),N>0&&(0,i.jsx)("span",{className:"absolute right-[3px] top-[5px] flex items-center justify-center rounded-full border border-accent-1 bg-[#f84d4f] px-[6px] text-[12px] font-semibold text-white",children:N})]})]})})]})]})}},10500:function(l,e,t){"use strict";t.r(e),t.d(e,{default:function(){return lX}});var i,n,a=t(52676),c=t(58045),o=t(28367),d=t(44621),r=t(1793),s=t(75271),x=t(41085),m=t(87745),v=t(7684),u=t(82187),p=t.n(u),w=t(32355),h=t(16483),f=t.n(h);let g=l=>{var e,t,i,n;let{data:c,onCountdownEnd:o,className:d,timeItemSize:r,timeItemFontSize:m,timeItemRadius:v,timeLabelFontSize:u,timeLabelFontWeight:p,gapClassName:h,separatorColor:g="#F5D549",separatorSize:b,justifyClassName:j,containerWidthClassName:y,timeBoxStyle:N,timeFontStyle:_,labelFontStyle:k}=l,[C,S]=(0,s.useState)({}),[F,I]=(0,s.useState)(!1),B=(0,s.useRef)(null),z=(0,s.useRef)(!1),D=null==c?void 0:c.countdownTime;return((0,s.useEffect)(()=>{if(!D)return;let l=()=>{let l=f()(),e=f()(D);if(!(e.diff(l)>0))return z.current||(z.current=!0,I(!0),null==o||o()),null;{var t,i,n,a;let c=e.diff(l,"day"),o=e.diff(l,"hour")%24,d=e.diff(l,"minute")%60,r=e.diff(l,"second")%60;return{days:null===(t=c.toString().padStart(2,"0"))||void 0===t?void 0:t.split(""),hours:null===(i=o.toString().padStart(2,"0"))||void 0===i?void 0:i.split(""),minutes:null===(n=d.toString().padStart(2,"0"))||void 0===n?void 0:n.split(""),seconds:null===(a=r.toString().padStart(2,"0"))||void 0===a?void 0:a.split("")}}},e=l();if(e&&S(e),!z.current)return B.current=setInterval(()=>{let e=l();e?S(e):B.current&&(clearInterval(B.current),B.current=null)},1e3),()=>{B.current&&clearInterval(B.current)}},[D,o]),F)?null:(0,a.jsx)("section",{id:null==c?void 0:c.anchor,className:y||"w-full",children:(0,a.jsxs)("div",{className:(0,w.A)("flex flex-col justify-start l:justify-center",y||"w-full"),children:[(0,a.jsx)(x.xv,{html:null==c?void 0:c.title,className:"font-[600] leading-[140%] text-[#000] md:hidden min-md:text-[calc(14/1920*100vw)] min-xxl:text-[14px] "}),(0,a.jsx)(x.xv,{html:null==c?void 0:c.mobTitle,className:"text-center text-[calc(11/390*100vw)] font-[600] leading-[140%] min-md:hidden  md-l:text-[calc(16/768*100vw)]"}),(0,a.jsxs)("div",{className:(0,w.A)("flex items-center",j||"justify-start",h||"md:gap-[calc(8/390*100vw)] min-md:gap-[calc(32/1920*100vw)] min-l:gap-[calc(8/1024*100vw)] min-xxl:gap-[12px] md-l:gap-[calc(8/768*100vw)]",d),children:[(0,a.jsx)("div",{className:(0,w.A)("countdown-time-box flex items-center justify-center rounded-[5.45px] bg-[#F5D549] font-[700] leading-[140%] text-[#000]",r||"h-[calc(37.3/1920*100vw)] w-[calc(37.3/1920*100vw)] l:h-[calc(30.4/390*100vw)] l:w-[calc(30.4/390*100vw)] min-xxl:h-[37.3px] min-xxl:w-[37.3px]",m||"text-[calc(22.38/1920*100vw)] l:text-[calc(18/390*100vw)] min-xxl:text-[22.38px]",v),style:{color:null==c?void 0:c.timeItem
1Color,background:null==c?void 0:c.timeItemBgColor,...N,..._},children:(null==C?void 0:null===(e=C.days)||void 0===e?void 0:e.join(""))||""}),(0,a.jsxs)("div",{className:"flex w-[16px] flex-col items-center justify-center gap-[4px] l:w-[11px] l:gap-[3px] min-xxl:w-[16px]",style:{height:(null==N?void 0:N.height)||void 0},children:[(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4/390*100vw)] l:w-[calc(4/390*100vw)]"),style:{backgroundColor:g}}),(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4/390*100vw)] l:w-[calc(4/390*100vw)]"),style:{backgroundColor:g}})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-box flex items-center justify-center rounded-[5.45px] bg-[#F5D549] font-[700] leading-[140%] text-[#000]",r||"h-[calc(37.3/1920*100vw)] w-[calc(37.3/1920*100vw)] l:h-[calc(30.4/390*100vw)] l:w-[calc(30.4/390*100vw)] min-xxl:h-[37.3px] min-xxl:w-[37.3px]",m||"text-[calc(22.38/1920*100vw)] l:text-[calc(18/390*100vw)] min-xxl:text-[22.38px]",v),style:{color:null==c?void 0:c.timeItemColor,background:null==c?void 0:c.timeItemBgColor,...N,..._},children:(null==C?void 0:null===(t=C.hours)||void 0===t?void 0:t.join(""))||""}),(0,a.jsxs)("div",{className:"flex w-[16px] flex-col items-center justify-center gap-[4px] l:w-[11px] l:gap-[3px] min-xxl:w-[16px]",style:{height:(null==N?void 0:N.height)||void 0},children:[(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"),style:{backgroundColor:g}}),(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"),style:{backgroundColor:g}})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-box flex items-center justify-center rounded-[5.45px] bg-[#F5D549] font-[700] leading-[140%] text-[#000]",r||"h-[calc(37.3/1920*100vw)] w-[calc(37.3/1920*100vw)] l:h-[calc(30.4/390*100vw)] l:w-[calc(30.4/390*100vw)] min-xxl:h-[37.3px] min-xxl:w-[37.3px]",m||"text-[calc(22.38/1920*100vw)] l:text-[calc(18/390*100vw)] min-xxl:text-[22.38px]",v),style:{color:null==c?void 0:c.timeItemColor,background:null==c?void 0:c.timeItemBgColor,...N,..._},children:(null==C?void 0:null===(i=C.minutes)||void 0===i?void 0:i.join(""))||""}),(0,a.jsxs)("div",{className:"flex w-[16px] flex-col items-center justify-center gap-[4px] l:w-[11px] l:gap-[3px] min-xxl:w-[16px]",style:{height:(null==N?void 0:N.height)||void 0},children:[(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"),style:{backgroundColor:g}}),(0,a.jsx)("div",{className:(0,w.A)("rounded-full",b||"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"),style:{backgroundColor:g}})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-box flex items-center justify-center rounded-[5.45px] bg-[#F5D549] font-[700] leading-[140%] text-[#000]",r||"h-[calc(37.3/1920*100vw)] w-[calc(37.3/1920*100vw)] l:h-[calc(30.4/390*100vw)] l:w-[calc(30.4/390*100vw)] min-xxl:h-[37.3px] min-xxl:w-[37.3px]",m||"text-[calc(22.38/1920*100vw)] l:text-[calc(18/390*100vw)] min-xxl:text-[22.38px]",v),style:{color:null==c?void 0:c.timeItemColor,background:null==c?void 0:c.timeItemBgColor,...N,..._},children:(null==C?void 0:null===(n=C.seconds)||void 0===n?void 0:n.join(""))||""})]}),(0,a.jsxs)("div",{className:(0,w.A)("mt-[4px] flex items-start justify-center l:items-start",j||"justify-start",h||"md:gap-[calc(8/390*100vw)] min-md:gap-[calc(32/1920*100vw)] min-l:gap-[calc(8/1024*100vw)] min-xxl:gap-[12px] md-l:gap-[calc(8/768*100vw)]"),children:[(0,a.jsx)("div",{className:(0,w.A)("countdown-time-label flex items-center justify-center font-[700] leading-[140%] text-[#000]",u||"w-[calc(37.3/1920*100vw)] text-[14px] l:w-[calc(30.4/390*100vw)] l:text-[calc(9.13/390*100vw)] min-xxl:w-[37.3px]",p),style:{color:null==c?void 0:c.timeLabelColor,...k},children:null==c?void 0:c.days}),(0,a.jsxs)("div",{className:"flex h-[calc(37.3/1920*100vw)] w-[16px] flex-col items-center justify-center gap-[4px] opacity-0 l:w-[11px] l:gap-[3px] min-xxl:h-[37.3px] min-xxl:w-[16px]",children:[(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"}),(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-label flex items-center justify-center font-[700] leading-[140%] text-[#000]",u||"w-[calc(37.3/1920*100vw)] text-[14px] l:w-[calc(30.4/390*100vw)] l:text-[calc(9.13/390*100vw)] min-xxl:w-[37.3px]",p),style:{color:null==c?void 0:c.timeLabelColor,...k},children:null==c?void 0:c.hours}),(0,a.jsxs)("div",{className:"flex h-[calc(37.3/1920*100vw)] w-[16px] flex-col items-center justify-center gap-[4px] opacity-0 l:w-[11px] l:gap-[3px] min-xxl:h-[37.3px] min-xxl:w-[16px]",children:[(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"}),(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-label flex items-center justify-center font-[700] leading-[140%] text-[#000]",u||"w-[calc(37.3/1920*100vw)] text-[14px] l:w-[calc(30.4/390*100vw)] l:text-[calc(9.13/390*100vw)] min-xxl:w-[37.3px]",p),style:{color:null==c?void 0:c.timeLabelColor,...k},children:null==c?void 0:c.mins}),(0,a.jsxs)("div",{className:"flex h-[calc(37.3/1920*100vw)] w-[16px] flex-col items-center justify-center gap-[4px] opacity-0 l:w-[11px] l:gap-[3px] min-xxl:h-[37.3px] min-xxl:w-[16px]",children:[(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"}),(0,a.jsx)("div",{className:"h-[6px] w-[6px] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)]"})]}),(0,a.jsx)("div",{className:(0,w.A)("countdown-time-label flex items-center justify-center font-[700] leading-[140%] text-[#000] ",u||"w-[calc(37.3/1920*100vw)] text-[14px] l:w-[calc(30.4/390*100vw)] l:text-[calc(9.13/390*100vw)] min-xxl:w-[37.3px]",p),style:{color:null==c?void 0:c.timeLabelColor,...k},children:null==c?void 0:c.secs})]})]})})},b=l=>{let{data:{url:e,mobileUrl:t,subTitle:i,title:n,mobileSubTitle:c,mobileTitle:o,desc:d,mobileDesc:r,countdown:s,style:u}}=l,{locale:w}=(0,v.j)();return(0,a.jsx)("div",{className:"banner overflow-hidden ",children:(0,a.jsxs)("div",{className:"main-container relative h-[calc(750/1920*100vw)] w-full l:h-[calc(397.15/390*100vw)]",children:[(0,a.jsx)(m.t,{url:e,mobileUrl:t,imgClassName:"object-cover",className:"absolute left-0 top-0 z-0 flex h-full w-full",mobileWidth:1023}),(0,a.jsx)("div",{className:p()("z-1 relative flex h-full w-full l:justify-center l:pl-0 min-l:pl-[160px]",{"text-[56px] min-l:pl-[120px]":"uk"===w}),children:(0,a.jsxs)("div",{className:"flex h-full w-full max-w-[66.67vw] flex-col l:w-full l:max-w-full l:px-[calc(16/390*100vw)] l:pt-[calc(22/390*100vw)] min-l:justify-center min-l:pt-0",children:[i&&(0,a.jsx)(x.X6,{as:"h2",html:i,className:p()("mb-[calc(16/1920*100vw)] text-[calc(20/1920*100vw)] font-[600] l:mb-[20px] l:hidden l:text-[calc(16/390*100vw)] l:leading-tight min-l:block min-xxl:mb-[16px] min-xxl:text-[20px]",null==u?void 0:u.subTitleClass)}),(c||i)&&(0,a.jsx)(x.X6,{as:"h2",html:c||i,className:p()("mb-[15px] text-[20px] font-bold l:mb-[calc(3/390*100vw)] l:text-center l:text-[calc(14/390*100vw)] l:leading-tight min-l:hidden ",null==u?void 0:u.subTitleClass)}),n&&(0,a.jsx)(x.X6,{as:"h1",html:n,className:p()("mb-[calc(16/1920*100vw)] text-[calc(40/1920*100vw)] font-[800] leading-[1.2] text-[#000] l:mb-[10px] l:hidden l:text-left l:text-[calc(40/390*100vw)] l:font-[700] l:tracking-[-0.04em] min-l:block min-xxl:mb-[16px] min-xxl:text-[40px]",null==u?void 0:u.titleClass)}),(o||n)&&(0,a.jsx)(x.X6,{as:"h1",html:o||n,className:p()("mb-[calc(6.5/1920*100vw)] text-[calc(41.25/1920*100vw)] font-[700] leading-[1.2] text-[#000] l:mb-[calc(4/390*100vw)] l:text-center l:text-[calc(26.24/390*100vw)] l:font-[700] l:leading-[1] l:tracking-[-0.04em] min-l:hidden min-xxl:mb-[6.5px] min-xxl:text-[41.25px]",null==u?void 0:u.titleClass)}),d&&(0,a.jsx)(x.xv,{as:"p",html:d,className:p()("mb-[calc(25/1920*100vw)] text-[calc(21.08/1920*100vw)] font-[600] leading-[1.2] text-[#000] l:mb-[10px] l:hidden l:text-left  l:text-[15px] l:leading-tight min-l:block min-xxl:mb-[19.5px] min-xxl:text-[21.08px]",null==u?void 0:u.descClass)}),(r||d)&&(0,a.jsx)(x.xv,{as:"p",html:r||d,className:p()("mb-[calc(19.5/1920*100vw)] text-[calc(18/1920*100vw)] font-medium leading-[1.2] text-[#000] l:mb-[calc(4/390*100vw)] l:text-center l:text-[calc(12.7/390*100vw)] l:font-[700] l:leading-tight min-l:hidden min-xxl:mb-[25px]",null==u?void 0:u.descClass)}),s&&(0,a.jsx)("div",{className:"flex pb-[calc(29.5/1920*100vw)] l:justify-center l:pb-[15px] min-xxl:pb-[29.5px]",children:(0,a.jsx)(g,{data:s,timeLabelFontSize:"l:w-[calc(30.4/390*100vw)] w-[calc(37.4/1920*100vw)] min-xxl:w-[37.4px] text-[calc(11.19/1920*100vw)] min-xxl:text-[11.19px] l:text-[calc(9.13/390*100vw)]",gapClassName:"gap-[calc(2/1920*100vw)] l:gap-[calc(4/390*100vw)]",justifyClassName:"justify-center l:justify-center",containerWidthClassName:"w-auto",separatorColor:"#000000B2",separatorSize:"h-[4px] w-[4px] l:h-[calc(3/390*100vw)] l:w-[calc(3/390*100vw)]",timeLabelFontWeight:"l:font-[600]"})})]})})]})})};
1var j=t(55353),y=t(8303),N=t(99421),_=t(30579),k=t.n(_),C=t(65553);let S=l=>{let{title:e,subTitle:t,mobileSubTitle:i,mobileSubTitleClassName:n,subTerms:c,rightIcon:d,ruleTitle:r,rules:s,className:v,id:u,titleColor:p,subTitleColor:h}=l,{openModal:f}=(0,o.l)();return e?(0,a.jsx)("div",{className:(0,w.A)("py-[calc(26/1440*100vw)] l:mb-[0px] l:w-full l:px-[calc(0/390*100vw)] l:pb-[0px] l:pt-[calc(44/390*100vw)] min-l:w-[calc(1068/1440*100vw)] min-l:pt-[calc(70/1024*100vw)] min-xl:w-[calc(1068/1440*100vw)] min-xl:pt-[calc(97/1440*100vw)] min-2xl:w-[1424px] min-2xl:pb-[72px] min-2xl:pt-[130px] md-l:w-[calc(704/768*100vw)] md-l:px-[calc(31/768*100vw)] md-l:pt-[calc(87/768*100vw)]",v),children:(0,a.jsxs)("div",{className:"flex items-end justify-between l:flex-col l:items-center",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start l:items-center",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-end  gap-0",children:[(0,a.jsx)(x.X6,{as:"h1",className:(0,w.A)("min-w-0 flex-1 text-left text-[calc(40/1920*100vw)] font-[800] leading-[1.1] l:block l:text-center l:text-[calc(24/390*100vw)]  min-l:block min-2xl:text-[40px] md-l:block md-l:text-[calc(48/768*100vw)]"),html:e,style:{wordBreak:"normal",overflowWrap:"break-word",whiteSpace:"normal",textWrap:"wrap",hyphens:"none",color:p||"#000"}}),d&&(0,a.jsx)(m.t,{url:d,className:"ml-[calc(16.5/1920*100vw)] flex-shrink-0 self-start l:ml-[calc(8/390*100vw)] l:hidden l:h-[calc(36/390*100vw)] l:w-[calc(36/390*100vw)] min-l:block min-l:h-[calc(34/1920*100vw)] min-l:w-[calc(43.37/1920*100vw)] min-2xl:block min-2xl:h-[34px] min-2xl:w-[43.37px] min-xxl:ml-[16.5px] md-l:h-[calc(34/768*100vw)] md-l:w-[calc(43.37/768*100vw)]",imgClassName:"h-full w-full object-contain"})]}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.xv,{as:"p",html:t,className:"hidden text-left font-[600] leading-[140%] tracking-[-0.02em] min-l:mb-0 min-l:mt-0 min-l:block min-l:text-[calc(13/1024*100vw)] min-xl:mb-0 min-xl:mt-0 min-xl:text-[calc(18/1440*100vw)] min-2xl:mb-0 min-2xl:mt-0 min-2xl:text-[24.03px]",style:{color:h||"#000000"}}),(0,a.jsx)(x.xv,{as:"p",html:i||t,className:(0,w.A)("mb-[calc(22.85/390*100vw)] mt-[calc(4.5/390*100vw)] block w-full text-center text-[calc(12.19/390*100vw)] font-[700] leading-[140%] tracking-[-0.02em] min-l:hidden",n),style:{color:h||"#000000"}})]})]}),c&&(0,a.jsxs)("div",{className:"mt-0 flex items-center gap-[4px] leading-[1] l:mx-auto l:mb-[calc(25.39/390*100vw)] l:gap-[calc(2/390*100vw)] min-l:mt-0 md-l:mt-[calc(20/768*100vw)]",onClick:()=>{r&&s&&f({title:"",className:"spring-rule-modal-container min-h-[calc(410/1920*100vw)] min-w-[calc(827/1920*100vw)] min-xxl:min-w-[827px] min-xxl:min-h-[410px] overflow-y-auto l:overflow-visible md:min-w-[calc(308/390*100vw)] l:rounded-[calc(18/390*100vw)]",domContent:(0,a.jsx)(F,{title:r,rules:s})})},children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)(x.xv,{html:c,className:"cursor-pointer text-[calc(16/1920*100vw)] font-semibold capitalize leading-[120%] text-[#000] hover:text-[#000] l:!text-[calc(10.16/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-2xl:text-[16px]  md-l:text-[calc(30/768*100vw)]"})}),(0,a.jsx)(C.Z,{name:"chevronRight",className:"h-[20px] w-[20px] flex-shrink-0 text-[#000] l:mt-[calc(2/390*100vw)] l:block l:h-[calc(10/390*100vw)] l:w-[calc(10/390*100vw)] l:text-[#474747] min-l:block"})]})]})}):null},F=l=>{let{title:e,rules:t}=l,{closeModal:i}=(0,o.l)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k(),{id:"2e1820dc00baaa72",children:".custom-scrollbar.jsx-c770c33a3ad32ef6::-webkit-scrollbar{width:4px}.custom-scrollbar.jsx-c770c33a3ad32ef6::-webkit-scrollbar-track{background:transparent}.custom-scrollbar.jsx-c770c33a3ad32ef6::-webkit-scrollbar-thumb{background:#d84a48;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.custom-scrollbar.jsx-c770c33a3ad32ef6::-webkit-scrollbar-thumb:hover{background:#c43a38}"}),(0,a.jsx)(k(),{id:"96c5cbb92d7aa22a",children:".spring-rule-modal-container .close-button{display:none!important}"}),(0,a.jsxs)("div",{style:{background:"linear-gradient(91.97deg, rgba(255, 255, 255, 0.4) 51.42%, rgba(255, 255, 255, 0.12) 100.08%), linear-gradient(102.41deg, rgba(234, 237, 227, 0.3) 0.92%, rgba(225, 231, 219, 0.3) 42.35%, rgba(181, 200, 174, 0.3) 96.66%)"},className:"jsx-c770c33a3ad32ef6 spring-rule-modal relative h-[calc(410/1920*100vw)] w-[calc(827/1920*100vw)] rounded-2xl border border-[#
1E0E0E0] px-[calc(40/1920*100vw)] py-[calc(30/1920*100vw)] shadow-2xl l:h-[calc(360/390*100vw)] l:w-[calc(308/390*100vw)] l:rounded-[calc(18/390*100vw)] l:px-[calc(20/390*100vw)]  l:py-[calc(30/390*100vw)] min-2xl:w-[827px] min-2xl:px-[40px] min-2xl:py-[30px] min-xxl:h-[410px] md-l:px-[calc(20/768*100vw)] md-l:py-[calc(30/768*100vw)]",children:[(0,a.jsx)("button",{onClick:i,className:"jsx-c770c33a3ad32ef6 absolute right-[calc(20/1920*100vw)] top-[calc(20/1920*100vw)] z-[3] text-[#666] hover:text-[#000] l:hidden min-l:block min-2xl:right-[20px] min-2xl:top-[20px]",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 28",fill:"none",className:"jsx-c770c33a3ad32ef6 h-[calc(28/1920*100vw)] w-[calc(27/1920*100vw)] min-2xl:h-[28px] min-2xl:w-[27px]",children:[(0,a.jsx)("rect",{width:"26.9723",height:"27.7077",rx:"13.4861",fill:"white",className:"jsx-c770c33a3ad32ef6"}),(0,a.jsx)("path",{d:"M7.1875 7.38879L19.7746 20.3191",stroke:"#999999",strokeWidth:"1.50027",className:"jsx-c770c33a3ad32ef6"}),(0,a.jsx)("path",{d:"M19.7773 7.38879L7.19029 20.3191",stroke:"#999999",strokeWidth:"1.50027",className:"jsx-c770c33a3ad32ef6"})]})}),(0,a.jsx)("div",{className:"jsx-c770c33a3ad32ef6 mb-[calc(30/1920*100vw)] text-center l:mb-[calc(5.3/390*100vw)] min-2xl:mb-[30px]",children:(0,a.jsx)("div",{className:"jsx-c770c33a3ad32ef6 font-bold text-[#000] l:text-[calc(20/390*100vw)] l:font-semibold  min-xl:text-[calc(26/1920*100vw)] min-2xl:text-[26px] md-l:text-[calc(32/768*100vw)]",children:e})}),(0,a.jsx)("div",{className:"jsx-c770c33a3ad32ef6 custom-scrollbar max-h-[calc(280/1920*100vw)] overflow-y-auto l:h-auto l:max-h-[80%] min-xxl:max-h-[280px]",children:t.map((l,e)=>(0,a.jsxs)("div",{className:"jsx-c770c33a3ad32ef6  flex items-start  p-[calc(5/1920*100vw)] last:mb-0 l:p-[calc(2/390*100vw)] min-xxl:p-[5px]",children:[(0,a.jsx)("div",{className:"jsx-c770c33a3ad32ef6 flex h-[calc(22/1920*100vw)] flex-shrink-0 items-center justify-center text-[#000] l:h-[calc(20/390*100vw)] l:w-[calc(20/390*100vw)] l:text-[calc(12/390*100vw)] min-l:w-[calc(24/1024*100vw)]  min-2xl:h-[22px] min-2xl:w-[24px] md-l:h-[calc(24/768*100vw)] md-l:w-[calc(24/768*100vw)] ",children:(0,a.jsx)("span",{className:"jsx-c770c33a3ad32ef6 relative text-[calc(14/1920*100vw)] l:text-[calc(12.6/390*100vw)] min-2xl:top-[-1px] min-2xl:text-[14px] min-2xl:font-semibold min-2xl:leading-[22px] md-l:top-[calc(2/768*100vw)] ",children:e+1+"."})}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:l.replace(/\n/g,"<br/>")},className:"jsx-c770c33a3ad32ef6 flex-1 text-[calc(14/1920*100vw)] leading-[1.6] text-[#333] l:text-[calc(12.6/390*100vw)] l:leading-[1.5] min-2xl:text-[14px] min-2xl:font-semibold min-2xl:leading-[22px] md-l:text-[calc(18/768*100vw)]"})]},e))})]}),(0,a.jsx)("div",{className:"jsx-c770c33a3ad32ef6 absolute flex w-full justify-center min-l:hidden",children:(0,a.jsx)("button",{onClick:i,className:"jsx-c770c33a3ad32ef6 mt-[calc(20/390*100vw)] flex items-center justify-center rounded-full bg-[#666666]",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 28",fill:"none",className:"jsx-c770c33a3ad32ef6 h-[calc(50/390*100vw)] w-[calc(50/390*100vw)]",children:[(0,a.jsx)("path",{d:"M10.5 11L16.5 17",stroke:"#ffffff",strokeWidth:"1.2",className:"jsx-c770c33a3ad32ef6"}),(0,a.jsx)("path",{d:"M16.5 11L10.5 17",stroke:"#ffffff",strokeWidth:"1.2",className:"jsx-c770c33a3ad32ef6"})]})})})]})},I=l=>{let{id:e,data:t,learnMore:i,pageHandle:n}=l,{image:c,mobImage:o,learnMoreLink:d,contentText:r}=t;return(0,a.jsxs)("div",{id:e,className:"flex h-full flex-col justify-between gap-6 overflow-hidden bg-[#FFFFFF] pb-4 md:gap-[calc(14/390*100vw)] md:pb-[calc(16/390*100vw)] min-l:gap-[calc(20/1024*100vw)] min-l:pb-[calc(18/1024*100vw)] min-xl:gap-[calc(24/1440*100vw)] min-xl:pb-[calc(20/1440*100vw)] min-2xl:gap-[24px] min-2xl:pb-[20px] md-l:gap-[calc(19/768*100vw)] md-l:pb-[calc(18/768*100vw)]",children:[(0,a.jsx)(m.t,{url:c,mobileUrl:o,mobileWidth:1024}),(0,a.jsxs)("div",{className:"flex w-full flex-1 flex-col items-center justify-center px-4 md:px-[calc(16/390*100vw)] min-l:px-[calc(12/1024*100vw)] min-xl:px-[calc(20/1440*100vw)] min-2xl:px-[20px] md-l:px-[calc(18/768*100vw)]",children:[(0,a.jsx)(N.x,{html:r,className:" flex flex-1 items-center  font-[700] md:mb-[calc(14/390*100vw)] md:text-[calc(16/390*100vw)] min-l:mb-[calc(18/1024*100vw)] min-l:text-[calc(11/1024*100vw)] min-xl:mb-[calc(20/1440*100vw)] min-xl:text-[calc(18/1440*100vw)] min-2xl:mb-[22px] min-2xl:text-[20px] md-l:mb-[calc(16/768*100vw)] md-l:text-[calc(32/768*100vw)]"}),(0,a.jsx)(j.x,{variant:"blackBg",className:"!h-[42px] !w-full !min-w-full !px-0 !font-[700] text-[#000] md:!h-[calc(38/390*100vw)] md:!text-[calc(14/390*100vw)] min-l:!h-[calc(22/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(42/1440*100vw)] min-xl:!text-[calc(16/1920*100vw)] min-2xl:!h-[42px] min-2xl:!text-[16
1px] md-l:!h-[calc(75/768*100vw)] md-l:!text-[calc(27/768*100vw)]  [&::after]:!bg-[#F5D549] [&::before]:!bg-[#F5D549]",onClick:()=>{window.dataLayer&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"lp_button",event_parameters:{button_name:i,page_group:"Activity Page_"+n}}))},children:(0,a.jsx)(y.r,{className:"text-[#000]",href:d+"?ref="+n,children:i})})]})]})};var B=l=>{let{id:e,data:t,pageHandle:i}=l,{title:n,subtitle:c,desc:o,list:d,learnMore:r,rightIcon:s}=t;return(0,a.jsx)("div",{id:e,className:"mx-auto pb-[calc(55/1920*100vw)] md:w-[calc(358/390*100vw)] min-l:w-[calc(760/1024*100vw)] min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1440px] min-2xl:pb-[55px] md-l:w-[calc(705/768*100vw)]",children:(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"flex flex-col items-start",children:(0,a.jsx)(S,{title:n,subTitle:c,rightIcon:s,className:"!px-0"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"grid md:grid-cols-2 md:gap-[calc(10/390*100vw)] min-l:grid-cols-5 min-l:gap-[calc(10/1024*100vw)] min-xl:grid-cols-5 min-xl:gap-[calc(14/1440*100vw)] min-2xl:grid-cols-5 min-2xl:gap-[14.19px] md-l:grid-cols-2 md-l:gap-[calc(14/768*100vw)]",children:d.map((l,e)=>(0,a.jsx)("div",{className:"",children:(0,a.jsx)(I,{data:l,learnMore:r,pageHandle:i})},e))})})]})})},z=t(44599),D=t(9385),A=t(48642),M=t(12306),T=t(4716),P=t(59307),E=t(13910),L=t(10973),R=t(4674),O=l=>{var e,t,i,n,o,d;let{productItem:r,data:v,bgIsGray:u=!1,pageHandle:p,mobileDiscountImg:h,discountImg:f,soldOutUrl:g,title:b,inventory:N}=l,_=(0,z.L)(),{isLogin:k,profile:C}=(0,E.a)(),{copywriting:S,coupon:F}=(null===(e=_.metafields)||void 0===e?void 0:e.common)||{},{discountIcon:I}=null===(i=_.metafields)||void 0===i?void 0:null===(t=i.discount)||void 0===t?void 0:t.discounts,{common:B}=(0,c.l)();(0,c.l)();let{product:D,variant:O}=null!=r?r:{product:{},variant:{},data:{}},K=null==D?void 0:D.title,{price:U,oldPrice:H}=r,q=(0,R.k)({amount:Number(null==U?void 0:U.amount),baseAmount:Number(null==H?void 0:H.amount)||Number(null==U?void 0:U.amount),currencyCode:(null==U?void 0:U.currencyCode)||"USD",soldOutDescription:null==S?void 0:S.soldOut}),{value:Z}=r.couponDiscount||{},W=(0,s.useMemo)(()=>!(null==O?void 0:O.quantityAvailable)||!(null==O?void 0:O.availableForSale)||(null==O?void 0:O.price.amount)==T.Ag,[O]),G=(0,s.useMemo)(()=>"/products/".concat(null==D?void 0:D.handle,"?variant=").concat((0,M.Ll)((null==O?void 0:O.id)||""),"?ref=").concat(p),[D,O,p]),X=(0,s.useMemo)(()=>{var l,e;return(null==O?void 0:null===(l=O.image)||void 0===l?void 0:l.url)||(null==D?void 0:null===(e=D.featuredImage)||void 0===e?void 0:e.url)},[O,D]);(0,s.useMemo)(()=>{var l;return(null==D?void 0:null===(l=D.images)||void 0===l?void 0:l[1])||""},[D]);let V=(0,A.t)({needOpenCart:!0}),{trigger:J,isMutating:Y}=(0,L.t)({withMember:!1});return(0,a.jsxs)("div",{className:(0,w.A)("".concat(u?"border-[#A8A8A8]/26 border ":""," relative flex flex-col justify-between overflow-visible bg-white md:h-[calc(333/390*100vw)] md:py-[calc(28/390*100vw)] md:pb-[calc(23/390*100vw)] min-l:h-[calc(253/1024*100vw)] min-l:py-[calc(21/1024*100vw)] min-l:pb-[calc(18/1024*100vw)] min-xl:h-[calc(356/1440*100vw)] min-xl:py-[calc(30/1440*100vw)] min-xl:pb-[calc(26/1440*100vw)] min-2xl:h-[475px]  min-2xl:py-[40px] min-2xl:pb-[34px] md-l:h-[calc(655/768*100vw)] md-l:py-[calc(55/768*100vw)] md-l:pb-[calc(45/768*100vw)]")),children:[(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center overflow-hidden  md:size-[calc(110/390*100vw)]  min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:W?(0,a.jsxs)("div",{className:"flex md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:[!W&&r.discountValue&&(0,a.jsxs)("div",{className:(0,w.A)("absolute left-[-1px] top-[-1px] z-[2] flex h-[calc(68/1920*100vw)] w-[calc(71/1920*100vw)] flex-col items-center justify-start font-[700] text-white l:h-[calc(47.08/390*100vw)] l:w-[calc(48.55/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:h-[68px] min-2xl:w-[71px] min-2xl:text-[20px] md-l:text-[calc(12/768*100vw)]"),style:{backgroundImage:"url(".concat(f,")"),backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",fontFamily:"Mont For Anker"},children:[(0,a.jsx)("div",{className:(0,w.A)("mt-[calc(19/1920*100vw)] text-[calc(19.13/1920*100vw)] font-[800] leading-[100%] md:text-[calc(18/390*100vw)] l:mt-[calc(5/390*100vw)] min-2xl:mt-[19px] min-2xl:text-[19.13px] md-l:text-[calc(35/768*100vw)]"),children:Math.ceil(Math.abs(Z))+"%"}),(0,a.jsx)("div",{className:"text-[calc(15.08/1920*100vw)] font-[500] leading-[100%] md:text-[calc(12/390*100vw)] min-2xl:ml-[0] min-2xl:mt-[2px] min-2xl:text-[15.08px] md-l:text-[calc(23/768*100vw)]",children:(null==S?void 0:S.off)||(null==F?void 0:F.off)||""})]}),(0,a.jsx)(m.t,{url:X,alt:K,className:"md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",imgClassName:"w-full h-full object-contain "})]}):(0,a.jsxs)(y.r,{href:G,className:"flex md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:[r.discountValue&&(0,a.jsxs)("div",{className:(0,w.A)("absolute left-[6px] top-[6.35px] z-[2] flex h-[calc(68/1920*100vw)] w-[calc(71/1920*100vw)] flex-col items-center justify-start font-[700] text-white l:h-[calc(47.08/390*100vw)] l:w-[calc(48.55/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:h-[68px] min-2xl:w-[71px] min-2xl:text-[20px] md-l:text-[calc(12/768*100vw)]"),style:{backgroundImage:"url(".concat(W?g:f,")"),backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",fontFamily:"Mont For Anker"},children:[(0,a.jsx)("div",{className:(0,w.A)("mt-[calc(19/1920*100vw)] text-[calc(19.13/1920*100vw)] font-[800] leading-[100%] l:mt-[calc(13.24/390*100vw)] l:text-[calc(13.24/390*100vw)] min-2xl:mt-[19px] min-2xl:text-[19.13px]"),children:W?null==S?void 0:S.soldOut:Math.ceil(Math.abs(Z))+"%"}),!W&&(0,a.jsx)("div",{className:"text-[calc(15.08/1920*100vw)] font-[500] leading-[100%] l:text-[calc(10.3/390*100vw)] min-2xl:ml-[0] min-2xl:mt-[2px] min-2xl:text-[15.08px]",children:(null==S?void 0:S.off)||(null==F?void 0:F.off)||""})]}),(0,a.jsx)(m.t,{url:X,alt:K,className:"md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",imgClassName:"w-full h-full object-contain "})]})}),(0,a.jsxs)("div",{className:(0,w.A)("product-info w-full md:h-fit md:justify-center md:px-[calc(16/390*100vw)] min-l:w-full min-l:px-[calc(10/1024*100vw)] min-xl:px-[calc(15/1440*100vw)]  min-2xl:px-[20px]  md-l:px-[calc(30/768*100vw)] ",""),children:[(0,a.jsxs)("div",{children:[N?(0,a.jsx)("div",{className:"mb-[30px] flex w-full justify-center md:mb-[calc(10/390*100vw)] min-l:mb-[calc(15/1024*100vw)] min-xl:mb-[calc(20/1440*100vw)] min-2xl:mb-[30px] md-l:mb-[calc(12/768*100vw)]",children:(0,a.jsxs)("div",{className:"flex w-[80%] items-center justify-center gap-[4px] bg-[#FEF4E5] py-[4px] md:w-full md:gap-[calc(4/390*100vw)] md:py-[calc(4/390*100vw)] min-l:gap-[calc(4/1024*100vw)] min-l:py-[calc(4/1024*100vw)] min-xl:gap-[calc(4/1440*100vw)] min-xl:py-[calc(4/1440*100vw)] md-l:gap-[calc(4/768*100vw)] md-l:py-[calc(4/768*100vw)]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",children:(0,a.jsx)("path",{d:"M7.04004 10.0377C7.03981 10.5845 6.31595 11.1315 5.45508 11.1315C4.59479 11.1315 3.8596 10.5845 3.85938 10.
10377H7.04004ZM5.50195 0.41272C5.98516 0.41272 6.37689 0.804527 6.37695 1.28772C6.37695 1.33054 6.37215 1.37252 6.36621 1.4137C6.38472 1.4164 6.40355 1.41967 6.42285 1.42249C8.18862 1.80529 9.19137 3.25313 9.19141 4.98303V8.07385L10.2627 8.81702C10.3623 8.88609 10.4218 8.99955 10.4219 9.12073C10.4219 9.32495 10.256 9.49084 10.0518 9.49084H0.948242C0.74402 9.49084 0.578125 9.32495 0.578125 9.12073C0.578153 8.99955 0.637744 8.88609 0.737305 8.81702L1.80859 8.07385V4.98206C1.80877 3.24745 2.81758 1.80489 4.57715 1.42151C4.59745 1.41856 4.61729 1.41554 4.63672 1.41272C4.63088 1.37189 4.62695 1.33016 4.62695 1.28772C4.62702 0.804527 5.01874 0.41272 5.50195 0.41272Z",fill:"#FF9900"})}),(0,a.jsx)(x.xv,{html:null==N?void 0:N.replace("%%",(null==r?void 0:null===(n=r.variant)||void 0===n?void 0:n.quantityAvailable)?null==r?void 0:null===(d=r.variant)||void 0===d?void 0:null===(o=d.quantityAvailable)||void 0===o?void 0:o.toString():"0"),className:"text-[12px] font-[600] text-[#FFA536] md:text-[calc(12/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(12/1440*100vw)] min-2xl:text-[12px] md-l:text-[calc(12/768*100vw)]"})]})}):null,W?(0,a.jsx)("div",{title:K,className:"flex w-full flex-col items-center md:mb-[calc(4/390*100vw)]  min-l:mb-[calc(6/1024*100vw)]  min-xl:mb-[calc(8/1440*100vw)]  min-2xl:mb-[8px] md-l:mb-[calc(6/768*100vw)]",children:(0,a.jsx)(x.X6,{className:(0,w.A)("line-clamp-2 w-full text-[calc(12/390*100vw)] font-[700] leading-[120%] md:h-[calc(36/390*100vw)] md:text-[calc(12/390*100vw)] md:leading-[140%] min-l:h-[calc(24/1024*100vw)] min-l:text-[calc(10/1024*100vw)] min-xl:h-[calc(34/1440*100vw)] min-xl:text-[calc(14/1440*100vw)] min-2xl:h-[45px] min-2xl:w-full min-2xl:text-[18px] md-l:h-[calc(60/768*100vw)] md-l:text-[calc(24/768*100vw)]"),html:K,as:"h4"})}):(0,a.jsx)(y.r,{href:G,title:K,className:"flex w-full flex-col items-center md:mb-[calc(4/390*100vw)]  min-l:mb-[calc(6/1024*100vw)]  min-xl:mb-[calc(8/1440*100vw)]  min-2xl:mb-[8px] md-l:mb-[calc(6/768*100vw)]",children:(0,a.jsx)(x.X6,{className:(0,w.A)("line-clamp-2 w-full text-[calc(12/390*100vw)] font-[700] leading-[120%] md:h-[calc(36/390*100vw)] md:text-[calc(12/390*100vw)] md:leading-[140%] min-l:h-[calc(24/1024*100vw)] min-l:text-[calc(10/1024*100vw)] min-xl:h-[calc(34/1440*100vw)] min-xl:text-[calc(14/1440*100vw)] min-2xl:h-[45px] min-2xl:w-full min-2xl:text-[18px] md-l:h-[calc(60/768*100vw)] md-l:text-[calc(24/768*100vw)]"),html:K,as:"h4"})})]}),(0,a.jsxs)("div",{className:"mt-[10px] flex items-center md:mb-[calc(12/390*100vw)] md:mt-0 min-l:mb-[calc(11/1024*100vw)] min-l:h-[calc(13/1024*100vw)] min-l:justify-start min-xl:mb-[calc(15/1440*100vw)] min-xl:h-[calc(18/1440*100vw)] min-2xl:mb-[6px] min-2xl:h-[37.1px] md-l:mb-[calc(14/768*100vw)] md-l:mt-[calc(8/768*100vw)]",children:[W?(0,a.jsx)("div",{className:"flex h-full items-center justify-start",children:(0,a.jsx)("span",{className:"font-[700] text-[#86868C] md:text-[calc(14/390*100vw)] md:leading-[120%] min-l:text-[calc(13/1024*100vw)] min-xl:text-[calc(18/1440*100vw)] min-2xl:text-[24px] md-l:text-[calc(28/768*100vw)]",children:null==S?void 0:S.soldOut})}):(0,a.jsxs)("div",{className:"flex w-full items-baseline justify-start",children:[(0,a.jsx)("span",{className:"racking-tighter mr-[calc(8/390*100vw)] font-[700] leading-[150%]\n                  md:text-[calc(14/390*100vw)] md:leading-[120%] min-l:mr-[calc(9/1024*100vw)] min-l:text-[calc(13/1024*100vw)] min-xl:mr-[calc(9.5/1440*100vw)] min-xl:text-[calc(18/1440*100vw)] min-2xl:text-[24px] md-l:mr-[calc(9/768*100vw)] md-l:text-[calc(28/768*100vw)]\n                  ".concat(q.basePrice?"text-[#FF5900]":"text-[#000]"),children:q.price}),q.basePrice&&(0,a.jsx)("span",{className:"old-price racking-tighter text-[calc(12/390*100vw)] font-[600] leading-[140%] text-[#86868C] line-through md:text-[calc(12/390*100vw)] min-l:text-[calc(9/1024*100vw)] min-xl:text-[calc(12/1440*100vw)] min-2xl:text-[16px] md-l:text-[calc(23.64/768*100vw)]",children:q.basePrice})]}),(null==v?void 0:v.showCopyCode)&&(0,a.jsx)("div",{className:"h-[24px] overflow-hidden md:h-[calc(18/390*100vw)] min-l:h-[calc(22/1024*100vw)] min-xl:h-[calc(24/1440*100vw)] min-2xl:h-[24px] md-l:h-[calc(20/768*100vw)]",children:(0,a.jsx)(P.Z,{className:"text-[16px] font-normal md:text-[calc(12/390*100vw)] min-l:text-[calc(14/1024*100vw)] min-xl:text-[calc(15/1440*100vw)] min-2xl:text-[16
1px] md-l:text-[calc(13/768*100vw)]",s:{code:"md:max-w-[50%] md:overflow-hidden md:text-ellipsis"},code:r.discountCode||""})})]}),(0,a.jsx)("div",{className:(0,w.A)("flex rounded-[calc(5/1920*100vw)] md:flex-col md:justify-between min-l:gap-[calc(7/1024*100vw)] min-xl:gap-[calc(10/1440*100vw)] min-2xl:gap-[13px] min-xxl:rounded-[5px] md-l:flex-col md-l:gap-[calc(8/768*100vw)]",W?"justify-center":"justify-between"),children:W?(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] !border-none !px-0 font-[700] !text-[#fff] md:mb-[calc(10/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-[calc(12/768*100vw)] md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-[#86868C] [&::before]:!bg-transparent",variant:"blackBg",disabled:!0,children:null==S?void 0:S.soldOut}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] border !border-[#F5D549] !bg-transparent !px-0 font-[700] !text-[#000] md:mb-[calc(10/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-xl:hover:!bg-[#F5D549] min-xl:hover:!text-[#fff] min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-[calc(12/768*100vw)] md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-transparent [&::before]:!bg-transparent",loading:V.isMutating,variant:"blackBg",onClick:()=>{V.trigger({variants:[{quantity:1,variant:O}],discountCode:r.discountCode,gtmParams:{position:b}})},stroke:"#283F33",style:{borderColor:"#283F33"},children:null==S?void 0:S.addToCart}),(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] border !border-[#F5D549] !bg-[#F5D549] !px-0 font-[700] !text-black md:mb-[calc(8/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:mb-0 min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-xl:hover:!bg-[#F5D549] min-xl:hover:!opacity-75 min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-0 md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-transparent [&::before]:!bg-transparent",loading:Y,variant:"blackBg",onClick:()=>{J({items:[{quantity:1,variant:O}],discountCode:r.discountCode,gtmParams:{position:b}})},style:{backgroundColor:"#F5D549",borderColor:"#F5D549",color:"#000"},children:null==S?void 0:S.buyNow})]})})]})]})},K=t(47108),U=t(77977),H=t(90968),q=t(69317),Z=t(91087),W=t(37156);let G=(l,e)=>{var t,i,n;let{locale:a=""}=(0,W.useRouter)(),{isLogin:c}=(0,E.a)(),o=null===(i=(0,z.L)().metafields)||void 0===i?void 0:null===(t=i.discounts)||void 0===t?void 0:t.member,d=null!==(n=null==e?void 0:e.skipCouponDiscount)&&void 0!==n&&n,r=null==l?void 0:l.map(l=>l.handle),{data:x=[]}=(0,q.G)({handles:r,metafieldIdentifiers:{product:U.P,variant:H.N}}),m=null==l?void 0:l.map(l=>{let e=x.find(e=>(null==l?void 0:l.handle)===e.handle),t=null==e?void 0:e.variants.find(e=>(null==l?void 0:l.sku.toLowerCase())===e.sku.toLowerCase());return t||(t=null==e?void 0:e.variants[0]),{itemData:l,product:e,sku:null==t?void 0:t.sku,variant:t}}),v=(0,K.X)({skus:null==m?void 0:m.map(l=>l.sku)});return(0,s.useMemo)(()=>null==m?void 0:m.map(l=>{let{variant:e}=l;if(!e)return l;{var t,i,n,a;let c=d?void 0:null===(i=v.data)||void 0===i?void 0:null===(t=i[l.sku])||void 0===t?void 0:t.find(e=>e.handle===l.product.handle),{price:o}=e,r=(0,Z.t)({variant:e,couponDiscount:d?void 0:c,scriptDiscount:void 0}),s="",x=(null==e?void 0:null===(n=e.compareAtPrice)||void 0===n?void 0:n.amount)||(null==o?void 0:o.amount),m=x-(r.finalPrice||(null==o?void 0:o.amount));m>0&&x>0&&(s="".concat(Math.round(m/x*100),"%"));
1let u={...e,finalPrice:{...o,amount:r.finalPrice||o.amount}};return{...l,discountValue:s,couponDiscount:d?void 0:c,oldPrice:(null==e?void 0:null===(a=e.compareAtPrice)||void 0===a?void 0:a.amount)?null==e?void 0:e.compareAtPrice:o,discountCode:d?"":(null==c?void 0:c.title)||"",price:{...o,amount:r.finalPrice||o.amount},variant:u}}}),[m,v.data,a,o,d])};var X=l=>{var e,t,i;let{data:n,oData:o,pageHandle:d,bgIsGray:r,itemIndex:x,className:v=""}=l,{title:u,subtitle:p,rightIcon:w,desc:h,list:f,id:g,bgImg:b,mobileBgImg:j,inventory:y,tabList:N,countdown:_,defaultShowCount:k,viewMoreBtn:C,hideModeBtn:S,showToggleBtn:F}=n,[I,B]=(0,s.useState)(0),[P,E]=(0,s.useState)(!1),L=N&&N.length>0?N[I]:{list:f,bgImg:b,mobileBgImg:j,inventory:y},R=G(null==L?void 0:L.list),K=null==R?void 0:R[0],{value:U}=(null==K?void 0:K.couponDiscount)||{},H=(0,z.L)(),{common:q}=(0,c.l)(),{copywriting:Z,coupon:W}=(null===(e=H.metafields)||void 0===e?void 0:e.common)||{},{discountIcon:X}=null===(i=H.metafields)||void 0===i?void 0:null===(t=i.discount)||void 0===t?void 0:t.discounts;(0,A.t)({needOpenCart:!1}),(0,s.useMemo)(()=>{var l,e;return!(null==K?void 0:null===(l=K.variant)||void 0===l?void 0:l.availableForSale)||(null==K?void 0:null===(e=K.variant)||void 0===e?void 0:e.price.amount)==T.Ag},[null==K?void 0:K.variant]),(0,s.useMemo)(()=>{var l,e;return"/products/".concat(null==K?void 0:null===(l=K.product)||void 0===l?void 0:l.handle,"?variant=").concat((0,M.Ll)((null==K?void 0:null===(e=K.variant)||void 0===e?void 0:e.id)||""),"?ref=").concat(d)},[null==K?void 0:K.product,null==K?void 0:K.variant,d]);let V=k||8,J=(C||S)&&!1!==F,Y=J&&(null==R?void 0:R.length)>V,$=!J||P?R:null==R?void 0:R.slice(0,V);return(0,a.jsx)("div",{id:g,className:"w-full ".concat(v),children:(0,a.jsx)("div",{className:" mx-auto  min-l:w-[calc(760/1024*100vw)]  min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(705/768*100vw)] ".concat(0===x?"md:pt-0":""),children:(0,a.jsxs)("div",{children:[L.bgImg&&L.mobileBgImg&&(0,a.jsx)("div",{className:"relative overflow-hidden md:mb-[calc(21/390*100vw)] md:h-[calc(202/390*100vw)] md:w-[calc(358/390*100vw)] min-md:mb-[10px] min-md:w-full",children:(0,a.jsx)(m.t,{url:L.bgImg,mobileUrl:L.mobileBgImg,className:"h-full w-full",mobileWidth:1024})}),(0,a.jsx)("div",{className:"grid md:w-[calc(358/390*100vw)] md:gap-[calc(10/390*100vw)] l:grid-cols-2 min-md:gap-[14.19px] min-l:w-[calc(760/1024*100vw)] min-l:grid-cols-4 min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(705/768*100vw)]",children:$&&(null==$?void 0:$.length)>0&&(null==$?void 0:$.map((l,e)=>{var t,i;return(0,a.jsx)("div",{className:"limited-deals-item h-full",children:(0,a.jsx)(O,{title:u,data:o,mobileDiscountImg:o.mobileDiscountImg,discountImg:o.discountImg,soldOutUrl:null==o?void 0:o.soldOutUrl,productItem:l,bgIsGray:r,pageHandle:d,inventory:L.inventory})},"product-".concat((null==l?void 0:null===(t=l.variant)||void 0===t?void 0:t.id)||(null==l?void 0:null===(i=l.variant)||void 0===i?void 0:i.sku)||e))}))}),Y&&(0,a.jsxs)("button",{onClick:()=>E(!P),className:"mt-[24px] flex w-full items-center justify-center gap-[8px] text-[18px] font-[700] text-[#474747] transition-all hover:opacity-80 md:mt-[calc(16/390*100vw)] md:text-[calc(14/390*100vw)] min-l:mt-[calc(8/1024*100vw)] min-l:justify-start min-l:text-[calc(11/1024*100vw)]  min-xl:mt-[calc(12/1440*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:mt-[16px] min-2xl:text-[20px] md-l:mt-[calc(40/768*100vw)] md-l:text-[calc(32/768*100vw)]",children:[(0,a.jsx)("span",{children:P?S||"Hide":C||"View More"}),(0,a.jsx)(D.J,{name:"arrow-right",width:24,height:24,className:"text-white transition-transform ".concat(P?"-rotate-90":"rotate-90")})]})]})})})},V=l=>{let{data:e,pageHandle:t}=l,{title:i,subTitle:n,rightIcon:c,countDown:o,backgroundColor:d="#F6F8F1",id:r}=e;return(0,a.jsxs)("div",{id:r||"flash",style:{backgroundColor:d},className:"jsx-1a5ab9ae1019585",children:[(0,a.jsx)(k(),{id:"1a5ab9ae1019585",children:"@media(max-width:1023px){.flash-countdown-container.jsx-1a5ab9ae1019585 .countdown-time-box{width:-webkit-calc(35.91/390*100vw)!important;width:-moz-calc(35.91/390*100vw)!important;width:calc(35.91/390*100vw)!important;height:-webkit-calc(35.91/390*100vw)!important;height:-moz-calc(35.91/390*100vw)!important;height:calc(35.91/390*100vw)!important;font-size:-webkit-calc(18/390*100vw)!important;font-size:-moz-calc(18/390*100vw)!important;font-size:calc(18/390*100vw)!important}.flash-countdown-container.jsx-1a5ab9ae1019585 .countdown-time-label{width:-webkit-calc(35.91/390*100vw)!important;width:-moz-calc(35.91/390*100vw)!important;width:calc(35.91/390*100vw)!important;font-size:-webkit-calc(9.13/390*100vw)!important;font-size:-moz-calc(9.13/390*100vw)!important;font-size:calc(9.13/390*100vw)!important}}@media(min-width:2560px){.flash-countdown-container.jsx-1a5ab9ae1019585 .countdown-time-box{width:61.31px!important;height:61.31px!important;font-size:36px!important}.flash-countdown-container.jsx-1a5ab9ae1019585 .countdown-time-label{width:61.31px!important;font-size:24px!important}}"}),(0,a.jsxs)("div",{className:"jsx-1a5ab9ae1019585 flex w-full flex-col items-center l:mx-auto l:w-[calc(358/390*100vw)] l:pb-[0px]",children:[(0,a.jsxs)("div",{className:"jsx-1a5ab9ae1019585 w-full l:block min-l:hidden",children:[(0,a.jsx)(S,{title:i,subTitle:n,rightIcon:c,id:r}),(0,a.jsx)("div",{className:"jsx-1a5ab9ae1019585 mb-[40px] flex justify-center l:mb-[calc(40/390*100vw)]",children:(0,a.jsx)(g,{data:o,timeItemSize:"l:h-[calc(35.9/390*100vw)] l:w-[calc(35.9/390*100vw)]",timeItemFontSize:"l:text-[calc(21.55/390*100vw)]",timeLabelFontSize:"l:w-[calc(35.9/390*100vw)] l:text-[calc(16.7/390*100vw)]",justifyClassName:"justify-center",containerWidthClassName:"w-auto",separatorSize:"h-[calc(6/1920*100vw)] w-[calc(6/1920*100vw)] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)] min-xxl:h-[6px] min-xxl:w-[6px]"})})]}),(0,a.jsx)("div",{className:"jsx-1a5ab9ae1019585 mb-[70px] hidden w-[calc(1068/1440*100vw)] min-l:block min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(704/768*100vw)]",children:(0,a.jsxs)("div",{className:"jsx-1a5ab9ae1019585 flex items-end justify-between pt-[calc(70/1024*100vw)] min-xl:pt-[calc(97/1440*100vw)] min-2xl:pt-[130px] md-l:pt-[calc(87/768*100vw)]",children:[(0,a.jsx)("div",{className:"jsx-1a5ab9ae1019585",children:(0,a.jsx)(S,{title:i,subTitle:n,rightIcon:c,id:r,className:"!w-auto !pb-0 !pt-0 l:!px-0"})}),(0,a.jsx)("div",{className:"jsx-1a5ab9ae1019585 flash-countdown-container flex-shrink-0",children:(0,a.jsx)(g,{data:o,justifyClassName:"l:justify-center",separatorSize:"h-[calc(6/1920*100vw)] w-[calc(6/1920*100vw)] l:h-[calc(4.8/390*100vw)] l:w-[calc(4.8/390*100vw)] min-xxl:h-[6px] min-xxl:w-[6px]",containerWidthClassName:"w-auto",timeBoxStyle:{width:"calc(61.31 / 1920 * 100vw)",height:"calc(61.31 / 1920 * 100vw)"},timeFontStyle:{fontSize:"calc(36 / 1920 * 100vw)"},labelFontStyle:{width:"calc(61.31 / 1920 * 100vw)",fontSize:"calc(24 / 1920 * 100vw)"}})})]})}),(0,a.jsx)(X,{itemIndex:0,oData:e,data:{list:e.list,inventory:e.inventory,bgImg:e.bgImg,mobileBgImg
1:e.mobileBgImg,discountImg:e.discountImg,mobileDiscountImg:e.mobileDiscountImg,soldOutUrl:e.soldOutUrl,viewMoreBtn:e.viewMoreBtn,hideModeBtn:e.hideModeBtn},pageHandle:t,bgIsGray:!1},"flashsale-brand")]})]})},J=l=>{let{data:e,pageHandle:t}=l,{backgroundColor:i="#F6F8F1",id:n,data:c=[]}=e;return(0,a.jsx)("div",{id:n||"flash-categories",style:{backgroundColor:i},children:c.map((l,e)=>(0,a.jsxs)("div",{id:l.id,className:"flex w-full flex-col items-center l:mx-auto l:w-[calc(358/390*100vw)]",children:[(0,a.jsx)("div",{className:"w-full l:block min-l:hidden",children:(0,a.jsx)(S,{title:l.title,subTitle:l.subTitle,rightIcon:l.rightIcon,id:l.id})}),(0,a.jsx)("div",{className:"mb-[70px] hidden w-[calc(1068/1440*100vw)] min-l:block min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(704/768*100vw)]",children:(0,a.jsx)("div",{className:"pt-[calc(70/1024*100vw)] min-xl:pt-[calc(97/1440*100vw)] min-2xl:pt-[130px] md-l:pt-[calc(87/768*100vw)]",children:(0,a.jsx)(S,{title:l.title,subTitle:l.subTitle,rightIcon:l.rightIcon,id:l.id,className:"!w-auto !pb-0 !pt-0 l:!px-0"})})}),(0,a.jsx)(X,{itemIndex:e,oData:{discountImg:l.discountImg,mobileDiscountImg:l.mobileDiscountImg,soldOutUrl:l.soldOutUrl},data:{list:l.list,inventory:l.inventory,bgImg:void 0,mobileBgImg:void 0,discountImg:l.discountImg,mobileDiscountImg:l.mobileDiscountImg,soldOutUrl:l.soldOutUrl,viewMoreBtn:l.viewMoreBtn,hideModeBtn:l.hideModeBtn},pageHandle:t,bgIsGray:!1,className:"l:mt-[calc(40/390*100vw)]"},"flashsale-category-".concat(l.id,"-").concat(e))]},l.id||"category-".concat(e)))})},Y=l=>{let{data:e,pageHandle:t}=l,{title:i,subTitle:n,rightIcon:c,backgroundColor:o="#F6F8F1",id:d}=e;return(0,a.jsx)("div",{id:d||"flash",style:{backgroundColor:o},children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center l:mx-auto l:w-[calc(358/390*100vw)] l:pb-[0px]",children:[(0,a.jsx)("div",{className:"w-full l:block min-l:hidden",children:(0,a.jsx)(S,{title:i,subTitle:n,rightIcon:c,id:d})}),(0,a.jsx)("div",{className:"mb-[70px] hidden w-[calc(1068/1440*100vw)] min-l:block min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(704/768*100vw)]",children:(0,a.jsx)("div",{className:"pt-[calc(70/1024*100vw)] min-xl:pt-[calc(97/1440*100vw)] min-2xl:pt-[130px] md-l:pt-[calc(87/768*100vw)]",children:(0,a.jsx)(S,{title:i,subTitle:n,rightIcon:c,id:d,className:"!w-auto !pb-0 !pt-0 l:!px-0"})})}),(0,a.jsx)(X,{itemIndex:0,oData:e,data:{list:e.list,inventory:e.inventory,bgImg:e.bgImg,mobileBgImg:e.mobileBgImg,discountImg:e.discountImg,mobileDiscountImg:e.mobileDiscountImg,soldOutUrl:e.soldOutUrl,viewMoreBtn:e.viewMoreBtn,hideModeBtn:e.hideModeBtn},pageHandle:t,bgIsGray:!1},"flashsale-brand")]})})},$=l=>{let{data:e,id:t}=l,{iconlist:i,title:n,subTitle:c,content:o}=e;return(0,a.jsx)("div",{id:t,className:"mt-[calc(236/1920*100vw)] flex w-full justify-center bg-[#111111] px-[30px] py-[70px] md:px-[24px] md:py-[40px] l:mt-[calc(30/390*100vw)] min-xxl:mt-[236px]",children:(0,a.jsxs)("div",{className:"w-[calc(1680/1920*100vw)] md:w-full min-xxl:w-[1680px] md-l:w-[calc(728/1024*100vw)]",children:[(0,a.jsx)("div",{className:"flex w-full flex-wrap justify-between md:gap-y-[54px] min-md:gap-y-[40px] md-l:gap-y-[20px]",children:null==i?void 0:i.map((l,e)=>(0,a.jsxs)("div",{className:"flex flex-col items-center md:w-[50%] min-md:w-[25%] md-l:w-[50%]",children:[(0,a.jsx)(m.t,{className:"w-[45px] md:w-[40px]",url:null==l?void 0:l.icon,mobileUrl:null==l?void 0:l.iconMob,mobileWidth:1024}),(0,a.jsx)(x.xv,{html:null==l?void 0:l.desc,className:"text-center text-[#fff] md:text-[14px] min-xl:text-[18px] min-2xl:text-[20px] md-l:text-[16px]"})]},e))}),(0,a.jsxs)("div",{className:"mb-[20px] mt-[130px] w-full text-center md:mt-[72px]",children:[(0,a.jsx)(x.X6,{className:"font-[800] text-[#fff] md:text-[24px] min-xl:text-[30px] min-2xl:text-[40px] md-l:text-[44px]",as:"h2",html:n}),(0,a.jsx)(x.xv,{html:c,className:"text-[#fff] md:text-[14px] min-xl:text-[18px] min-2xl:text-[20px] md-l:text-[16px]"})]}),(0,a.jsx)("div",{className:"flex flex-wrap justify-between gap-[20px] md-l:flex-col",children:null==o?void 0:o.map((l,e)=>{var t,i;return(0,a.jsxs)("div",{className:"w-[48%] md:w-full md-l:w-full",children:[(0,a.jsx)(x.X6,{className:"mb-[10px] font-[600] text-[#fff] md:text-[14px] min-xl:text-[17px] min-2xl:text-[18px] md-l:text-[15px]",as:"h6",html:null==l?void 0:l.title}),(0,a.jsx)("ul",{children:(null==l?void 0:l.txt)&&Array.isArray(null==l?void 0:l.txt)&&(null==l?void 0:null===(t=l.txt)||void 0===t?void 0:t.length)>0&&(null==l?void 0:null===(i=l.txt)||void 0===i?void 0:i.map((l,e)=>(0,a.jsx)("li",{children:(0,a.jsx)(x.xv,{html:l,className:"text-[#fff] md:text-[11px] min-xl:text-[13px] min-2xl:text-[14px] md-l:text-[12px]"})},e)))})]},e)})})]})})};t(89094);var Q=t(99137),ll=t(51107),le=t(65294),lt=t(35869),li=t(54695),ln=t(7258),la=t.n(ln),lc=t(53033),lo=t(75597),ld=t(74284),lr=t(85103),ls=t(89497);let lx=l=>{var e,t;let{myRewards:i,dealsType:n}=l,{locale:c}=(0,W.useRouter)(),{profile:o}=(0,E.a)(),d=(0,s.useCallback)(async()=>{let l=new URLSearchParams({email:(null==o?void 0:o.email)||"",shopify_domain:lr.BR["".concat(c)],current_page:"1",page_size:"999",genre:n||""}).toString(),e=await (0,ld.Z)({url:"/api/multipass/rainbowbridge/lottery/user/lottery-records?".concat(l),method:"GET",locale:c});return null==e?void 0:e.data},[c,null==o?void 0:o.email,n]),{isLoading:r,data:x}=(0,ls.ZP)("myRewards",d);return(0,a.jsx)("div",{className:"member-week-rewards flex h-[65vh] w-full flex-col px-[32px] py-[32px] pb-[40px] md:w-[370px]",children:(0,a.jsxs)("div",{className:"main-content h-0 flex-1 overflow-auto",children:[(0,a.jsx)("div",{className:"grid gap-[16px]",children:null==x?void 0:null===(e=x.list)||void 0===e?void 0:e.map((l,e)=>(0,a.jsx)("div",{className:"grid gap-[12px]",children:(0,a.jsxs)("div",{className:"grid gap-[4px] rounded-[10px] bg-[#eee] px-[16px] py-[20px]",children:[(0,a.jsx)("a",{className:"flex text-[16px] font-black text-[#111111] ".concat(l.product_url?"!cursor-pointer hover:!underline":"hover:cursor-text"),href:l.product_url||"javascript:;",children:(null==l?void 0:l.title)||(null==l?void 0:l.desc)}),(null==l?void 0:l.code)&&(0,a.jsx)("div",{className:"text-[14px] font-semibold ",children:(0,a.jsx)(P.Z,{className:"text-[14px] font-bold text-[#000] x:text-[12px]",s:{codePrefix:"text-[#000]",code:"x:overflow-hidden x:text-ellipsis pr-[10px] text-[#000]",copy:"text-black text-[12px] font-bold py-[3px] px-[10px] rounded-full bg-white"},code:l.code||""})})]})},e))}),0>=((null==x?void 0:null===(t=x.list)||void 0===t?void 0:t.length)||0)&&!r&&(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center pb-[20px]",children:[(0,a.jsx)(m.t,{url:null==i?void 0:i.emptyListImageUrl,className:"mb-[16px] block h-[120px] w-[160px] overflow-hidden"}),(0,a.jsx)("div",{className:"text-[16px] font-semibold text-[#111111]",children:null==i?void 0:i.emptyListLabel})]})]})})};(i=n||(n={}))[i.Ready=0]="Ready",i[i.Drawing=1]="Drawing",i[i.Success=2]="Success",i[i.Error=3]="Error";let lm=l=>{var e,t,i,d;let r;let{id:u,config:w,myRewards:h}
1=l,[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)(n.Ready),[y,N]=(0,s.useState)(),[_,C]=(0,s.useState)(""),{handle:F}=(0,c.l)(),{isLogin:I,profile:B}=(0,E.a)();null===(t=(0,z.L)().metafields)||void 0===t||null===(e=t.common)||void 0===e||e.copywriting;let{locale:D}=(0,W.useRouter)(),{storeDomain:A,locale:M}=(0,v.j)(),[T,P]=(0,s.useState)(()=>{var l;return null===(l=la().get("neuipcountry"))||void 0===l?void 0:l.toUpperCase()});(0,ll.M)();let R=(0,s.useMemo)(()=>({DK:"DKK",FI:"EUR",NO:"NOK",SE:"SEK",IS:"ISK"})[T||""]||"SEK",[T]),[O,K]=(0,s.useState)(!1),[Z,G]=(0,s.useState)(!1),X=(0,s.useRef)(null),[V,J]=(0,s.useState)(!1),[Y,$]=(0,s.useState)(!1),[ln,ld]=(0,s.useState)(!1),[lr,ls]=(0,s.useState)(null),lm=(0,s.useCallback)(()=>{let l=new Date;return"".concat(l.getFullYear(),"-").concat(String(l.getMonth()+1).padStart(2,"0"),"-").concat(String(l.getDate()).padStart(2,"0"))},[]),lv=(0,s.useCallback)(()=>{if(!(null==B?void 0:B.email))return!1;let l="lottery_drawn_".concat(w.dealsType,"_").concat(B.email);return localStorage.getItem(l)===lm()},[null==B?void 0:B.email,w.dealsType,lm]),lu=(0,s.useCallback)(()=>{if(!(null==B?void 0:B.email))return;let l="lottery_drawn_".concat(w.dealsType,"_").concat(B.email),e=lm();localStorage.setItem(l,e),ld(!0)},[null==B?void 0:B.email,w.dealsType,lm]);s.useEffect(()=>{I&&(null==B?void 0:B.email)&&ld(lv())},[I,null==B?void 0:B.email,lv]),(0,s.useEffect)(()=>{V&&Y&&(g(!0),(0,li.Qp)(document.body))},[V,Y]);let{prizeInfo:lp}=w,{openSignUpPopup:lw,openModal:lh}=(0,o.l)(),lf=(0,L.t)(),lg=(0,s.useMemo)(()=>w.prizeList.filter(l=>"product"===l.type&&l.productHandle).map(l=>l.productHandle),[w.prizeList]),{data:lb}=(0,q.G)({handles:lg,metafieldIdentifiers:{product:U.P,variant:H.N}}),lj=(0,s.useCallback)((l,e)=>{var t;let i=null==lb?void 0:lb.find(e=>e.handle===l);if(!i)return null;let n=null===(t=i.variants)||void 0===t?void 0:t.find(l=>l.sku===e);return(null==n?void 0:n.id)||null},[lb]),ly=(0,s.useCallback)(async()=>{if(!lr&&A)try{let c=new URLSearchParams({genre:w.dealsType,email:(null==B?void 0:B.email)||"",shopify_domain:A,page_size:"1",current_page:"1"}),o=(await fetch("/api/multipass/rainbowbridge/lottery/user/lottery-records?".concat(c),{method:"GET",headers:{"Content-Type":"application/json","current-language":D||"en","X-Region":D||"en"}})).headers.get("date");if(o&&!lr){var l,e,t,i,n,a;let c=new Date(o),d=new Intl.DateTimeFormat("en-US",{timeZone:"Europe/Stockholm",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(c),r=(null===(l=d.find(l=>"year"===l.type))||void 0===l?void 0:l.value)||"",s=(null===(e=d.find(l=>"month"===l.type))||void 0===e?void 0:e.value)||"",x=(null===(t=d.find(l=>"day"===l.type))||void 0===t?void 0:t.value)||"",m=(null===(i=d.find(l=>"hour"===l.type))||void 0===i?void 0:i.value)||"",v=(null===(n=d.find(l=>"minute"===l.type))||void 0===n?void 0:n.value)||"",u=(null===(a=d.find(l=>"second"===l.type))||void 0===a?void 0:a.value)||"",p="".concat(r,"/").concat(s,"/").concat(x," ").concat(m,":").concat(v,":").concat(u);ls(p)}}catch(l){console.error("Failed to fetch server time:",l)}},[lr,A,w.dealsType,null==B?void 0:B.email,D]);s.useEffect(()=>{ly()},[ly]);let lN=(0,Q.u)({async onSuccess(l){if(!l||!l.prize){console.error("Invalid response data:",l),C(w.operateTooMuch||"Something went wrong, please try again later"),j(n.Ready);return}let e=l.prize.name;if(!e){console.error("No prize name in response:",l),C(w.operateTooMuch||"Something went wrong, please try again later"),j(n.Ready);return}let t=w.prizeList.find(l=>l.prizeName==e);if(!t||t.id<=0){console.error("Prize not found in config:",e,w.prizeList),C(w.operateTooMuch||"Something went wrong, please try again later"),j(n.Ready);return}C(""),j(n.Success),N({prizeInfo:t,prizeResult:l.prize.prize_detail||{}}),$(!0),lu(),(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"",button_name:(null==w?void 0:w.confirm)||"50 Credits to Join"}})},async onError(l){console.error("抽奖接口错误 - 完整错误信息:",l),console.error("错误详情 - code:",null==l?void 0:l.code,"message:",null==l?void 0:l.message,"data:",null==l?void 0:l.data),(null==l?void 0:l.message)?C(l.message):K(!0),j(n.Ready)}}),l_=(0,s.useCallback)(l=>{if(ln){C(w.alreadyParticipatedToday||"You have already participated today. Please come back tomorrow!");return}if(N(void 0),C(""),!lr){C("Loading server time, please wait...");return}lN.isMutating||(j(n.Drawing),G(!0),J(!1),$(!1),X.current&&(X.current.currentTime=0,X.current.play()),lN.trigger({email:l,dealsType:w.dealsType||""}).catch())},[lN,w.dealsType,lr,ln,w.alreadyParticipatedToday]),lk=()=>{(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_my_rewards",button_name:"My Rewards"}}),I?lh({title:w.rewardsData.title,domContent:(0,a.jsx)(lx,{myRewards:h,dealsType:w.dealsType})}):lw()};return(0,a.jsxs)("div",{id:u,className:"relative z-[3] flex flex-col items-center l:mx-auto l:w-[calc(358/390*100vw)]",style:{background:"#F6F8F1"},children:[(0,a.jsx)(S,{title:w.sectionTitle,subTitle:w.sectionDesc,subTerms:w.subTerms,rightIcon:w.rightIcon,rules:w.rules||(null===(i=w.rule)||void 0===i?void 0:i.rules),ruleTitle:w.ruleTitle||(null===(d=w.rule)||void 0===d?void 0:d.title),mobileSubTitleClassName:"!mb-[calc(12.7/390*100vw)]",titleColor:"#1D1D1F",subTitleColor:"#1D1D1F",className:"l:!px-0"}),(0,a.jsxs)("div",{style:{backgroundImage:w.containerBg?"url('".concat(w.containerBg,"')"):void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:w.containerBg?"transparent":"#33BBFF"},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" lottery-outer-container mx-auto h-[calc(650/1920*100vw)] w-[calc(1440/1920*100vw)] pb-[calc(101/1920*100vw)] pl-[calc(88.5/1920*100vw)] pr-[calc(88.7/1920*100vw)] pt-[calc(104/1920*100vw)] l:h-[calc(600/390*100vw)] l:w-full l:p-[calc(10/390*100vw)] l:pt-[calc(31/390*100vw)] min-xxl:h-[650px] min-xxl:w-[1440px] min-xxl:pb-[102px] min-xxl:pl-[88.5px] min-xxl:pr-[88.7px] min-xxl:pt-[104px] ",children:[(0,a.jsx)(k(),{id:"26a3dfcccafa4523",dynamic:[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"],children:"@media(max-width:1023px){.lottery-outer-container.__jsx-style-dynamic-selector{background-image:".concat(w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none","!important}}")}),(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" lottery-inner-container flex h-full w-full justify-between gap-[calc(20/1920*100vw)] overflow-hidden border-white l:flex-col l:pb-[calc(20/390*100vw)] min-xxl:gap-[20px]",children:[(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" flex-1",children:[(0,a.jsx)(x.xv,{as:"p",html:w.title,className:"text-[calc(40/1920*100vw)] font-[800]  leading-[1.3] l:text-center l:text-[calc(18.93/390*100vw)] min-xxl:text-[40px]"}),(0,a.jsx)(x.xv,{as:"p",html:w.desc,className:"mt-[calc(10/1920*100vw)] text-[calc(20/1920*100vw)] font-[700] leading-[1.3] l:mt-[
1calc(8/390*100vw)] l:text-center l:text-[calc(10.65/390*100vw)] l:font-[700] min-xxl:mt-[10px] min-xxl:text-[20px]"}),w.note&&(0,a.jsx)(x.xv,{as:"p",html:w.note,className:"mt-[calc(11.35/1920*100vw)] text-[calc(14/1920*100vw)] font-[600] leading-[1.3] text-[#1D1D1F] l:mt-[calc(8.63/390*100vw)] l:text-center l:text-[calc(8/390*100vw)] min-xxl:mt-[11.35px] min-xxl:text-[14px]"}),w.title2&&(0,a.jsx)(x.xv,{as:"p",html:w.title2,className:"mt-[calc(9.34/1920*100vw)] text-[calc(22/1920*100vw)] font-[800] leading-[1.3] l:mt-[calc(4/390*100vw)] l:text-center l:text-[calc(11/390*100vw)] min-xxl:mt-[9.34px] min-xxl:text-[22px] "}),w.desc2&&(0,a.jsx)(x.xv,{as:"p",html:w.desc2,className:"mt-[calc(9.6/1920*100vw)] text-[calc(22.5/1920*100vw)] font-[700] leading-[1.3] l:mt-[calc(4/390*100vw)] l:text-center l:text-[calc(10.65/390*100vw)] min-xxl:mt-[9.6px] min-xxl:text-[22.5px]"}),(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]]),children:[I?(0,a.jsx)("button",{onClick:()=>{(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_main_button",button_name:w.confirm||"Spin Now"}}),l_(null==B?void 0:B.email)},disabled:lN.isMutating,style:w.buttonBg?{backgroundImage:"url(".concat(w.buttonBg,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{backgroundColor:"#F5D549"},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" mt-[calc(20/1920*100vw)] flex items-center justify-center whitespace-nowrap rounded-[calc(4.98/1920*100vw)] px-[calc(26.5/1920*100vw)] py-[calc(13.5/1920*100vw)] text-[calc(15.93/1920*100vw)] font-bold leading-[1.4] text-[#000000] hover:opacity-90 disabled:opacity-50 l:mx-auto l:mt-[calc(15.58/390*100vw)] l:block l:rounded-[calc(3.33/390*100vw)] l:px-[calc(17.5/390*100vw)] l:py-[calc(8.89/390*100vw)] l:text-[calc(15/390*100vw)] min-xxl:mt-[20px] min-xxl:rounded-[4.98px] min-xxl:px-[26.5px] min-xxl:py-[13.5px] min-xxl:text-[15.93px]",children:lN.isMutating?"Loading...":ln?"Already Drawn Today":w.confirm||"Spin Now"}):(0,a.jsx)("button",{onClick:()=>{(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_main_button",button_name:w.joinNow||"Join Now"}}),lw()},style:w.buttonBg?{backgroundImage:"url(".concat(w.buttonBg,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{backgroundColor:"#F5D549"},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" "+(p()("mt-[calc(20/1920*100vw)] flex items-center justify-center whitespace-nowrap rounded-[calc(4.98/1920*100vw)] px-[calc(26.5/1920*100vw)] py-[calc(13.5/1920*100vw)] text-[calc(15.93/1920*100vw)] font-bold leading-[1.4] text-[#000000] hover:opacity-90 l:mx-auto l:mt-[calc(15.58/390*100vw)] l:block l:rounded-[calc(3.33/390*100vw)] l:px-[calc(17.5/390*100vw)] l:py-[calc(8.89/390*100vw)] l:text-[calc(15/390*100vw)] min-xxl:mt-[20px] min-xxl:rounded-[4.98px] min-xxl:px-[26.5px] min-xxl:py-[13.5px] min-xxl:text-[15.93px]")||""),children:w.joinNow||"Join Now"}),(0,a.jsx)(x.xv,{html:"My Rewards >",onClick:()=>lk(),className:"mt-[calc(13/1920*100vw)] block w-[calc(353/1920*100vw)] cursor-pointer text-left text-[calc(15.2/1920*100vw)] font-[700] leading-[1.2] text-[#474747] l:mx-auto l:mt-[calc(8/390*100vw)] l:w-[calc(300/390*100vw)] l:text-center l:text-[calc(14/390*100vw)] min-xxl:mt-[13px] min-xxl:w-[353px] min-xxl:text-[15.2px]"}),_&&(0,a.jsx)("p",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" mt-[calc(8/1920*100vw)] w-[calc(353/1920*100vw)] text-left text-[calc(14/1920*100vw)] leading-[1.2] text-[#FF0000] l:mx-auto l:mt-[
1calc(8/390*100vw)] l:w-[calc(300/390*100vw)] l:text-[calc(14/390*100vw)] min-xxl:mt-[8px] min-xxl:w-[353px] min-xxl:text-[14px]",children:_})]}),w.prizeList&&w.prizeList.length>0&&(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" mt-[calc(39/1920*100vw)] w-[calc(556/1920*100vw)] l:hidden min-xxl:mt-[39px] min-xxl:w-[556px]",children:[w.rewardsZoneTitle&&(0,a.jsx)(x.xv,{as:"p",html:w.rewardsZoneTitle,className:"mb-[calc(12.08/1920*100vw)] text-[calc(17.74/1920*100vw)] font-[700] leading-[1.3] min-xxl:mb-[12.08px] min-xxl:text-[17.74px]"}),(0,a.jsx)(lo.tq,{autoplay:{delay:2e3,disableOnInteraction:!1},loop:!0,slidesPerView:"auto",spaceBetween:15.86,modules:[lc.pt],className:"w-full",children:w.prizeList.map(l=>(0,a.jsx)(lo.o5,{className:"!h-[calc(114/1920*100vw)] !w-[calc(114/1920*100vw)] min-xxl:!h-[114px] min-xxl:!w-[114px]",children:(0,a.jsx)(m.t,{url:l.img,className:"h-full w-full",imgClassName:"h-full w-full object-contain"})},l.id))})]})]}),(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" flex w-[calc(619/1920*100vw)] flex-col items-center justify-center l:mx-auto l:w-[calc(320/390*100vw)] min-xxl:w-[619px]",children:[(w.envelopeImg||w.lotteryVideo)&&(0,a.jsxs)("div",{onClick:()=>{!I||ln||lN.isMutating||((0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_envelope",button_name:"Envelope Click"}}),l_(null==B?void 0:B.email))},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" "+(p()("lottery-envelope-container relative h-full w-full l:h-[calc(232.2/390*100vw)]",I&&!ln&&!lN.isMutating&&"cursor-pointer")||""),children:[w.envelopeImg&&(0,a.jsx)(m.t,{url:w.envelopeImg,className:"h-auto w-full",imgClassName:"h-auto w-full bottom-0 absolute z-[3] object-contain"}),w.envelopeBottomText&&(r="",(r=I?ln?w.envelopeBottomText.afterDraw||"":w.envelopeBottomText.beforeDraw||"":w.envelopeBottomText.notLogin||"")?(0,a.jsx)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" absolute bottom-[calc(17.24/1920*100vw)] left-0 z-[4] w-full text-center l:bottom-[calc(6/390*100vw)] min-xxl:bottom-[17.24px]",children:(0,a.jsx)(x.xv,{html:r,className:"text-[calc(12.45/1920*100vw)] font-[600] text-[#474747] l:text-[calc(8/390*100vw)] min-xxl:text-[12.45px]"})}):null),w.lotteryVideo&&(0,a.jsx)("div",{style:{backgroundColor:w.videoBackgroundColor||"transparent",backgroundImage:w.videoBackgroundImage?"url(".concat(w.videoBackgroundImage,")"):"none",backgroundSize:"cover",backgroundPosition:"center"},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" absolute left-1/2 top-0 z-[2] flex h-[calc(357.5/1920*100vw)] w-[calc(544.72/1920*100vw)] -translate-x-1/2 items-center justify-center l:h-[calc(186.75/390*100vw)] l:w-[calc(284.55/390*100vw)] min-xxl:h-[357.5px] min-xxl:w-[544.72px]",children:(0,a.jsx)("video",{ref:X,muted:!0,playsInline:!0,preload:"metadata",src:w.lotteryVideo,onEnded:()=>{J(!0)},className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" h-[calc(348.09/1920*100vw)] w-[calc(522.14/1920*100vw)] object-contain l:h-[calc(172.84/390*100vw)] l:w-[calc(264.76/390*100vw)]  min-xxl:h-[348.09px] min-xxl:w-[522.14px]"})})]}),w.prizeList&&w.prizeList.length>0&&(0,a.jsxs)("div",{className:k().dynamic([["26a3dfcccafa4523",[w.containerBgMobile?"url('".concat(w.containerBgMobile,"')"):w.containerBg?"url('".concat(w.containerBg,"')"):"none"]]])+" mt-[calc(20/390*100vw)] w-full px-[calc(16/390*100vw)] l:block min-l:hidden",children:[w.rewardsZoneTitle&&(0,a.jsx)(x.xv,{as:"p",html:w.rewardsZoneTitle,className:"mb-[calc(12/390*100vw)] text-[calc(14/390*100vw)] font-[700] leading-[1.3]"}),(0,a.jsx)(lo.tq,{autoplay:{delay:2e3,disableOnInteraction:!1},loop:!0,slidesPerView:"auto",spaceBetween:12,modules:[lc.pt],className:"w-full",children:w.prizeList.map(l=>(0,a.jsx)(lo.o5,{className:"!h-[calc(80/390*100vw)] !w-[calc(80/390*100vw)]",children:(0,a.jsx)(m.t,{url:l.img,className:"h-full w-full",imgClassName:"h-full w-full object-contain"})},l.id))})]})]})]})]}),f&&y&&(0,a.jsxs)("div",{className:"jsx-4b63ceb7b13fede0 fixed left-0 top-0 z-[60] flex h-[100vh] w-[100vw] flex-row items-center justify-center bg-black/80",children:[(0,a.jsx)(k(),{id:"4b63ceb7b13fede0",children:".prize-popup-container.jsx-4b63ceb7b13fede0{background:#fff;background-image:-webkit-linear-gradient(347.59deg,rgba(234,237,227,.4).92%,rgba(225,231,219,.4)42.35%,rgba(181,200,174,.4)96.66%);background-image:-moz-linear-gradient(347.59deg,rgba(234,237,227,.4).92%,rgba(225,231,219,.4)42.35%,rgba(181,200,174,.4)96.66%);background-image:-o-linear-gradient(347.59deg,rgba(234,237,227,.4).92%,rgba(225,231,219,.4)42.35%,rgba(181,200,174,.4)96.66%);background-image:linear-gradient(102.41deg,rgba(234,237,227,.4).92%,rgba(225,231,219,.4)42.35%,rgba(181,200,174,.4)96.66%)}"}),(0,a.jsxs)("div",{className:"jsx-4b63ceb7b13fede0 prize-popup-container relative flex w-[calc(540/1920*100vw)] flex-col items-center px-[c
1alc(16/1920*100vw)] pb-[calc(59/1920*100vw)] pt-[calc(34/1920*100vw)] text-black l:w-[calc(307/390*100vw)] l:px-[calc(12/390*100vw)] l:py-[calc(30/390*100vw)] min-xxl:w-[600px] min-xxl:px-[16px] min-xxl:py-[50px] min-xxl:pb-[59px] min-xxl:pt-[34px]",children:[(0,a.jsx)("div",{onClick:()=>{(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_prize_popup",button_name:"Close"}}),(0,li.tG)(document.body),g(!1)},role:"button",tabIndex:0,onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_prize_popup",button_name:"Close"}}),(0,li.tG)(document.body),g(!1))},className:"jsx-4b63ceb7b13fede0 absolute right-[calc(20/1920*100vw)] top-[calc(20/1920*100vw)] z-[2] h-[calc(32/1920*100vw)] w-[calc(32/1920*100vw)] cursor-pointer l:right-[calc(10/390*100vw)] l:top-[calc(10/390*100vw)] l:size-[calc(16/390*100vw)] min-xxl:right-[20px] min-xxl:top-[20px] min-xxl:h-[32px] min-xxl:w-[32px]",children:(0,a.jsx)(m.t,{url:w.prizePopupCloseBtn||w.closeBtn})}),(0,a.jsx)("div",{className:"jsx-4b63ceb7b13fede0 w-full text-center",children:(0,a.jsx)("p",{className:"jsx-4b63ceb7b13fede0 text-[calc(42/1920*100vw)] font-[800] leading-[1.2] text-black l:text-[calc(22/390*100vw)] min-xxl:text-[42px]",children:lp.title})}),(0,a.jsx)("div",{className:"jsx-4b63ceb7b13fede0 mb-[calc(12/1920*100vw)] w-full text-center l:mb-[calc(7/390*100vw)] min-xxl:mb-[12px]",children:(0,a.jsxs)("p",{className:"jsx-4b63ceb7b13fede0 text-[calc(27/1920*100vw)] leading-[1.4] text-[#000000] l:text-[calc(12/390*100vw)] min-xxl:text-[27px]",children:[lp.codePrefix||"CODE:"," ",(0,a.jsx)("span",{className:"jsx-4b63ceb7b13fede0 font-bold text-black",children:(null==y?void 0:y.prizeResult.code)||(null==y?void 0:y.prizeInfo.code)||"XXXXX"})]})}),(0,a.jsx)("div",{className:"jsx-4b63ceb7b13fede0 flex items-center justify-center",children:(0,a.jsx)(m.t,{url:(null==y?void 0:y.prizeInfo.popupImg)||(null==y?void 0:y.prizeInfo.img),className:"h-[calc(303/1920*100vw)] w-[calc(409/1920*100vw)] l:h-[calc(172.82/390*100vw)] l:w-[calc(233.28/390*100vw)] min-xxl:h-[303px] min-xxl:w-[409px]"})}),(()=>{let l=null==y?void 0:y.prizeInfo,e="";if((null==l?void 0:l.countryDiscountAmount)&&(null==l?void 0:l.expireTime)){let t=l.countryDiscountAmount[R];if(void 0!==t){let i=(0,le.T4)({amount:Number(t),currencyCode:R,locale:M,maximumFractionDigits:t%1==0?0:2});e="Worth ".concat(i," | ").concat(l.expireTime)}}else(null==l?void 0:l.expireTime)?e=l.expireTime:(null==l?void 0:l.rule)&&(e=l.rule.replace(/CODE:\s*\w+\s*/i,"").trim());return e?(0,a.jsx)("div",{className:"jsx-4b63ceb7b13fede0 mb-[calc(6/1920*100vw)] w-full text-center l:mb-[calc(3/390*100vw)] min-xxl:mb-[6px]",children:(0,a.jsx)("p",{className:"jsx-4b63ceb7b13fede0 mt-[calc(4/1920*100vw)] text-[calc(18/1920*100vw)] leading-[1.4] text-[#000000] l:mt-[calc(4/390*100vw)] l:text-[calc(12/390*100vw)] min-xxl:mt-[4px] min-xxl:text-[18px]",children:e})}):null})(),(0,a.jsxs)("div",{className:"jsx-4b63ceb7b13fede0 flex w-[calc(353/1920*100vw)] flex-col gap-[calc(8/1920*100vw)]  l:w-[calc(265.5/390*100vw)] l:gap-[calc(8/390*100vw)] min-xxl:w-[353px] min-xxl:gap-[8px]",children:[(null==y?void 0:y.prizeInfo.type)==="product"&&(0,a.jsx)("button",{onClick:()=>{var l;(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_prize_popup",button_name:"Redeem Now"}}),(0,li.tG)(document.body),g(!1);let e=(null==y?void 0:y.prizeResult.code)||(null==y?void 0:y.prizeInfo.code)||"",t=null==y?void 0:y.prizeInfo.variantId;if(!t&&(null==y?void 0:y.prizeInfo.productHandle)&&(null==y?void 0:y.prizeInfo.sku)){let l=lj(y.prizeInfo.productHandle,y.prizeInfo.sku);l&&(t=l)}if(!t){console.error("无法找到 variantId,请检查配置",null==y?void 0:y.prizeInfo);return}let i=null==lb?void 0:lb.find(l=>l.handle===y.prizeInfo.productHandle),n=null==i?void 0:null===(l=i.variants)||void 0===l?void 0:l.find(l=>l.id===t);if(!n){console.error("无法找到 variant 对象",t);return}lf.trigger({items:[{variant:n,quantity:1}],discountCode:e,gtmParams:{position:"lottery_prize_popup"}})},disabled:lf.isMutating,style:{border:"1px solid #F5D549"},className:"jsx-4b63ceb7b13fede0 h-[calc(50/1920*100vw)] w-[calc(353/1920*100vw)] rounded-md bg-white py-[calc(12/1920*100vw)] text-center text-[calc(16/1920*100vw)] font-bold text-[#000] hover:bg-[#f5f5f5] disabled:cursor-not-allowed disabled:opacity-50 l:h-[calc(32/390*100vw)] l:py-[calc(8/390*100vw)] l:text-[calc(12/390*100vw)] min-xxl:h-[50px] min-xxl:w-full min-xxl:py-[12px] min-xxl:text-[16
1px]",children:lf.isMutating?"Loading...":"Redeem Now"}),(0,a.jsx)("button",{onClick:()=>{(0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(F),position:"lottery_prize_popup",button_name:"Discover More"}}),(0,li.tG)(document.body),g(!1);let l=null==y?void 0:y.prizeInfo.link;if(l&&l.startsWith("#")){let e=document.querySelector(l);e&&e.scrollIntoView({behavior:"smooth",block:"start"})}else l&&(window.location.href=l+"?ref="+F)},style:{border:"1px solid #F5D549"},className:"jsx-4b63ceb7b13fede0 h-[calc(50/1920*100vw)] flex-1 rounded-md bg-[#F5D549] py-[calc(12/1920*100vw)] text-center text-[calc(16/1920*100vw)] font-bold text-[#000] transition-all hover:[background:_#F5D549_!important] l:h-[calc(32/390*100vw)] l:py-[calc(8/390*100vw)] l:text-[calc(12/390*100vw)] min-xxl:h-[50px] min-xxl:py-[12px] min-xxl:text-[16px]",children:"Discover More"})]})]})]})]})};var lv=t(58698),lu=t(4297),lp=t(80856),lw=t(51976),lh=t(80227),lf=t(40927),lg=t(23239),lb=t(47794),lj=t(21837),ly=t(85567),lN=t(35119),l_=t(53765),lk=t(28640),lC=t(26292),lS=t.n(lC);let lF=l=>{var e,t,i;let{data:n,group:a,position:c}=l;(null==n?void 0:null===(e=n.lineItems)||void 0===e?void 0:e.length)&&((0,lw.RC)({event:"ga4Event",event_name:"begin_checkout",event_parameters:{page_group:a,position:c||"Cart Pop Up_Checkout",currency:null==n?void 0:n.currency.code,value:null==n?void 0:n.totalPrice,items:null==n?void 0:n.lineItems.map(l=>{let e=(null==l?void 0:l.variant)||{};return{item_id:null==e?void 0:e.sku,item_name:null==l?void 0:l.name,item_variant:null==e?void 0:e.name,price:null==e?void 0:e.price,quantity:(null==l?void 0:l.quantity)||1}})}}),(0,lw.RC)({event:"eeEvent",eventCategory:"EnhancedEcommerce",eventAction:"BuyNow",eventLabel:null==n?void 0:null===(i=n.lineItems[0])||void 0===i?void 0:null===(t=i.variant)||void 0===t?void 0:t.sku,ecommerce:{currencyCode:null==n?void 0:n.currency.code,add:{products:null==n?void 0:n.lineItems.map(l=>{let e=(null==l?void 0:l.variant)||{};return{name:null==l?void 0:l.name,id:null==e?void 0:e.sku,category:"",categoryName:"",brand:lr.cg,variant:null==e?void 0:e.name,price:null==e?void 0:e.price,quantity:(null==l?void 0:l.quantity)||1}})}}}))};var lI=l=>{var e,t,i,n,c,o,d;let{lang:r,MiniCartData:x,pageHandle:v}=l,{data:u}=(0,lh.j)(),{countryDiscountAmount:p}=r,{trigger:w}=(0,lf.T)(),{trigger:h}=(0,lg.r)();(0,s.useEffect)(()=>{(async()=>{try{var l,e,t;if(!u)return;let i=Number(u.lineItemsSubtotalPrice),n=Number(p.firstStep["".concat(null==u?void 0:u.countryCode)]),a=Number(p.secondStep["".concat(null==u?void 0:u.countryCode)]),c=null==r?void 0:null===(l=r.discountCode)||void 0===l?void 0:l.firstStep,o=null==r?void 0:null===(e=r.discountCode)||void 0===e?void 0:e.secondStep,d=(null==u?void 0:null===(t=u.discountCodes)||void 0===t?void 0:t.map(l=>l.code))||[];i>=a?(d.includes(c)&&await h({cartId:u.id,discountCodes:[c]}),d.includes(o)||await w({cartId:u.id,discountCodes:[o]})):i>=n?(d.includes(o)&&await h({cartId:u.id,discountCodes:[o]}),d.includes(c)||await w({cartId:u.id,discountCodes:[c]})):(d.includes(c)&&await h({cartId:u.id,discountCodes:[c]}),d.includes(o)&&await h({cartId:u.id,discountCodes:[o]}))}catch(l){console.error("applyCode in addCartLinesMutation error",l.message)}})()},[u,null==u?void 0:u.lineItemsSubtotalPrice,p.firstStep,p.secondStep,null==r?void 0:null===(e=r.discountCode)||void 0===e?void 0:e.firstStep,null==r?void 0:null===(t=r.discountCode)||void 0===t?void 0:t.secondStep,w,h]);let[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)(!1),y=null==u?void 0:u.lineItems;(0,s.useEffect)(()=>{(null==y?void 0:y.length)===0&&g(!1)},[null==y?void 0:y.length]);let[_,k]=(0,s.useMemo)(()=>{if(!Array.isArray(y))return[0,0];let[l,e]=null==y?void 0:y.reduce((l,e)=>{let[t,i]=l;return[new l_.Z(t).plus(new l_.Z(null==e?void 0:e.subtotalAmount)),new l_.Z(i).plus(new l_.Z(null==e?void 0:e.totalAmount))]},[0,0]);return[l,e]},[y]),C=(null==y?void 0:y.map(l=>{var e;return null==l?void 0:null===(e=l.product)||void 0===e?void 0:e.handle}))||[],S=(null==y?void 0:y.map(l=>{var e;return null==l?void 0:null===(e=l.variant)||void 0===e?void 0:e.sku}))||[],{data:F,isLoading:I}=(0,lb.i)({handles:null==C?void 0:C.join(",")}),{data:B}=(0,K.X)({skus:S}),z=null==y?void 0:y.reduce((l,e)=>l+e.quantity,0),D=null===(i=la().get("neuipcountry"))||void 0===i?void 0:i.toUpperCase(),A=(null==u?void 0:null===(n=u.currency)||void 0===n?void 0:n.code)||"USD",T=(null==x?void 0:x.activePrize)||void 0,P=(null==x?void 0:x.prizeProduct)||void 0,E=u?(null==u?void 0:u.lineItemsSubtotalPrice)<=(null==p?void 0:p.firstStep["".concat(null==u?void 0:u.countryCode)])?p.firstStep["".concat(null==u?void 0:u.countryCode)]-(null==u?void 0:u.lineItemsSubtotalPrice):p.secondStep["".concat(null==u?void 0:u.countryCode)]-(null==u?void 0:u.lineItemsSubtotalPrice):p.firstStep["".concat(D)],L=E>
10?E.toFixed(2):0,[R,O]=(0,s.useState)("");return(0,s.useEffect)(()=>{var l,e,t,i,n,a;u?(null==u?void 0:u.lineItemsSubtotalPrice)<=(null==p?void 0:p.firstStep["".concat(null==u?void 0:u.countryCode)])?O(null==r?void 0:null===(e=r.unreachedTxt)||void 0===e?void 0:null===(l=e.firstStep)||void 0===l?void 0:l.replace("$amount",L)):(null==u?void 0:u.lineItemsSubtotalPrice)<=(null==p?void 0:p.secondStep["".concat(null==u?void 0:u.countryCode)])?O(null==r?void 0:null===(i=r.unreachedTxt)||void 0===i?void 0:null===(t=i.secondStep)||void 0===t?void 0:t.replace("$amount",L)):O(null==r?void 0:r.discountTxt):O(null==r?void 0:null===(a=r.unreachedTxt)||void 0===a?void 0:null===(n=a.firstStep)||void 0===n?void 0:n.replace("$amount",null==r?void 0:r.countryDiscountAmount.firstStep["".concat(D)]))},[L,u]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{className:" fixed bottom-[0px] left-0 z-[11] w-full bg-[#EAEDE3] ",children:(0,a.jsx)("div",{className:" z-[1] px-[calc(100/1920*100vw)] md:px-[24px]  min-xxl:px-[100px]",children:(0,a.jsxs)("div",{className:"relative flex items-center justify-between gap-[calc(30/1920*100vw)] md:flex-col md:gap-[0px] min-md:min-h-[calc(104/1920*100vw)] min-xxl:min-h-[104px] min-xxl:gap-[30px]",children:[(0,a.jsxs)("div",{className:"md:border-b-1 flex items-center md:gap-2 md:border-b-[#CECECF]",children:[(0,a.jsx)(m.t,{className:"md:w-16 min-md:absolute min-md:bottom-2 min-md:left-0 min-md:w-[78px]",source:(null==u?void 0:u.lineItemsSubtotalPrice)>=Number(p.secondStep["".concat(null==u?void 0:u.countryCode)])?null==r?void 0:null===(c=r.discountIcon)||void 0===c?void 0:c.secondStep:null==r?void 0:null===(o=r.discountIcon)||void 0===o?void 0:o.firstStep}),(0,a.jsxs)("div",{className:"min-md:ml-[94px]",children:[(0,a.jsx)(N.x,{html:null==r?void 0:null===(d=r.selectedTxt)||void 0===d?void 0:d.replace("$amount",z||0),className:"text-lg font-semibold"}),(0,a.jsx)(N.x,{html:R,className:"text-xs font-medium opacity-60"})]})]}),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)("div",{className:(0,M.cn)(lS().hideScroll,"my-2 flex min-h-[calc(54/1920*100vw)] items-center gap-[20px] overflow-x-auto overflow-y-hidden rounded-[75px] bg-[#fff] px-[30px] py-[0px] xxl:px-[20px] min-md:w-[350px] min-xxl:min-h-[54px] min-xxl:w-[450px]","md:h-[60px] md:w-[calc(100vw-38px)] md:pt-[8px]"),children:null==y?void 0:y.map((l,e)=>{let t=(0,lN.X)(null==l?void 0:l.product,F,B);return(0,a.jsx)(lB,{item:l,lang:r,product:t,variant:null==l?void 0:l.variant,dealsItem:y},"MiniCartItem"+e)})})}),(0,a.jsxs)("div",{className:"flex items-center md:flex md:flex-row md:items-center md:justify-between md:gap-[12px] x:my-5 x:w-full x:justify-between min-md:gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-1 items-center md:flex-col md:items-start md:gap-[6px]",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1 pr-2 md:w-full",children:(0,a.jsx)(lz,{lang:r,data:u,cartTotal:[_,k],totalItem:y,dealsItem:y})}),!!(null==y?void 0:y.length)&&(null==r?void 0:r.click_to_view)&&(0,a.jsxs)("div",{className:"hidden cursor-pointer items-center gap-[3px] md:flex",onClick:()=>g(!0),onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),g(!0))},role:"button",tabIndex:0,children:[(0,a.jsx)(N.x,{html:r.click_to_view,className:"text-[12px] font-[600] text-[#888889]"}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.79192 8.85888C10.0426 9.10954 10.449 9.10954 10.6997 8.85888C10.9503 8.60822 10.9503 8.20181 10.6996 7.95115L7.35081 4.60231C7.10015 4.35165 6.69375 4.35165 6.44308 4.60231L3.09425 7.95115C2.84358 8.20181 2.84358 8.60822 3.09425 8.85888C3.34491 9.10954 3.75131 9.10954 4.00197 8.85888L6.89695 5.96391L9.79192 8.85888Z",fill:"#888889"})})]})]}),(0,a.jsx)("div",{className:"flex flex-shrink-0 items-center md:flex md:items-center md:justify-start",children:(0,a.jsx)(lD,{lang:r,data:u,cartTotal:[_,k],totalItem:y,dealsItem:y,usePrizeCoupon:b,pageHandle:v})})]})]})})}),(0,a.jsx)(lA,{lang:r,data:u,result:F,coupons:B,currencyCode:A,cartTotal:[_,k],totalItem:y,dealsItem:y,activePrize:T,usePrizeCoupon:b,prizeProduct:P,deal
1sQuantity:z,openMobProducts:f,setOpenMobProducts:g,pageHandle:v,s:lS()})]})};let lB=l=>{var e;let{item:t,product:i,variant:n,lang:c,dealsItem:o}=l,[d,r]=(0,s.useState)(!1),x=(0,lj.c)(),v=async()=>{r(!0);try{await x.trigger({lineIds:[t.id]}),r(!1)}catch(l){r(!1)}};return(0,a.jsxs)("div",{className:(0,M.cn)(lS().prodItem,d&&"pointer-events-none opacity-50","!bg-[#fff] md:!h-[60px] md:!w-[60px]"),children:[(0,a.jsx)(m.t,{source:(null==n?void 0:null===(e=n.image)||void 0===e?void 0:e.url)||(null==i?void 0:i.image)}),(0,a.jsxs)("button",{className:"absolute right-0 top-0 cursor-pointer md:rounded-full md:bg-[#000]","aria-label":"remove",onClick:v,children:[(0,a.jsxs)("svg",{className:"block md:hidden",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",children:[(0,a.jsx)("ellipse",{cx:"6.49121",cy:"6.83817",rx:"6.49121",ry:"6.26786",fill:"#1F1F10"}),(0,a.jsx)("rect",{width:"1.50143",height:"7.52178",rx:"0.750717",transform:"matrix(0.719375 -0.694622 0.719375 0.694622 3 4.50781)",fill:"white"}),(0,a.jsx)("rect",{width:"1.50143",height:"7.52178",rx:"0.750717",transform:"matrix(0.719375 0.694622 -0.719375 0.694622 8.41016 3.46484)",fill:"white"})]}),(0,a.jsx)("svg",{className:"hidden md:block",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"#E2E2E7",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1944 3.80506C10.9904 3.60101 10.6596 3.60101 10.4555 3.80506L7.49972 6.76081L4.54418 3.80528C4.34013 3.60123 4.00929 3.60123 3.80524 3.80528C3.60119 4.00933 3.60119 4.34017 3.80524 4.54422L6.76079 7.49975L3.80506 10.4554C3.60101 10.6595 3.60101 10.9903 3.80506 11.1944C4.00911 11.3984 4.33995 11.3984 4.544 11.1944L7.49972 8.23868L10.4557 11.1946C10.6597 11.3987 10.9906 11.3987 11.1946 11.1946C11.3987 10.9906 11.3987 10.6597 11.1946 10.4557L8.23866 7.49975L9.71655 6.02187L11.1944 4.54399C11.3985 4.33994 11.3985 4.00911 11.1944 3.80506Z",fill:"white",fillOpacity:"0.95"})})]}),(null==t?void 0:t.quantity)>0&&(0,a.jsx)("div",{className:(0,M.cn)("absolute bottom-[2px] right-0 h-[14px] w-[14px] rounded-full bg-black text-center text-[12px] text-[#fff] md:bottom-[8px]"),children:(0,a.jsx)("span",{children:null==t?void 0:t.quantity})})]})},lz=l=>{let{lang:e,data:t,totalItem:i,cartTotal:n,cns:c}=l,[o,d]=n,r=Number(o)-Number(d),{push:s,query:x,asPath:m,locale:v}=(0,W.useRouter)(),{price:u}=(0,R.k)(t&&{amount:Number(o),currencyCode:null==t?void 0:t.currency.code}||{}),{price:p}=(0,R.k)(t&&{amount:Number(t.totalPrice),currencyCode:null==t?void 0:t.currency.code}||{});return(0,a.jsx)("div",{className:"relative translate-y-[3px] overflow-hidden leading-[1.2]",children:(null==i?void 0:i.length)>0&&Number(d)>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-[8px]",children:[(0,a.jsxs)("span",{className:(0,M.cn)(null==c?void 0:c.price,"relative z-[1] flex gap-[5px] text-[calc(32/1920*100vw)] font-extrabold  md:!text-[16px] min-xxl:text-[32px]"),children:[(0,a.jsx)("span",{className:"",children:null==e?void 0:e.total}),p]}),Number(o)>t.totalPrice&&(0,a.jsx)("span",{className:(0,M.cn)(null==c?void 0:c.delPrice,"text-[calc(20/1920*100vw)] font-[500] text-[#1D1D1F] line-through opacity-40 md:text-[12px]  min-xxl:text-[20px]"),children:u}),r>0&&(0,a.jsx)("div",{className:"rounded-[4px] p-[4px]",style:{background:"linear-gradient(90deg, #FFF0BF 0%, #EBB96F 100%)"},children:(0,a.jsx)(lv.t,{basePriceClassName:"ml-[4px] text-[#1D1D1F] text-[calc(14/1920*100vw)] min-xxl:text-[14px] md:text-[12px] font-[800] !no-underline",priceClassName:"text-[calc(14/1920*100vw)] min-xxl:text-[14px] text-[#1D1D1F] md:text-[12px] font-[800]",price:null==e?void 0:e.save,basePrice:(0,le.w7)({amount:r,baseAmount:0,currencyCode:(null==t?void 0:t.currency.code)||"USD",locale:v}).price})})]})})},lD=l=>{let{lang:e,data:t,totalItem:i,s:n,activePrize:c,usePrizeCoupon:o,pageHandle:d}=l,[r,v]=(0,s.useState)(!1);return(0,a.jsx)("div",{className:(0,M.cn)(n,"md:flex md:justify-end"),children:(0,a.jsxs)(x.zx,{loading:r,className:"flex !h-[calc(54/1920*100vw)] flex-shrink-0 gap-2 whitespace-nowrap bg-[#F5D549] px-[calc(32/1920*100vw)] text-[18px] text-base font-bold text-black hover:!bg-[gray] hover:!text-white md:px-[calc(20/390*100vw)] md:py-[calc(18/390*100vw)] md:text-[calc(16/390*100vw)] min-xxl:!h-[54px] min-xxl:!px-[32px]",onClick:()=>
1{if((null==i?void 0:i.length)<=0||!(null==t?void 0:t.url))return;lF({data:t,group:"Activity Page_"+d,position:"miniCart_checkout"});let l="true"===localStorage.getItem("isInApp");if(l)try{var e;null===(e=(0,lp.j)())||void 0===e||e.openWebview((0,ly.DZ)(t.url,l?{pageSource:"APP"}:{}))}catch(l){console.error("Failed to open webview:",l),window.location.href=t.url}else window.location.href=t.url},children:[(null==e?void 0:e.btnIcon)&&(0,a.jsx)(m.t,{className:"w-[30px]",url:e.btnIcon,mobileUrl:e.btnIcon}),null==e?void 0:e.buyNow]})})},lA=l=>{var e;let{lang:t,data:i,result:n,coupons:c,totalItem:o,cartTotal:d,openMobProducts:r,setOpenMobProducts:x,dealsItem:m,activePrize:v,usePrizeCoupon:u,prizeProduct:p,currencyCode:w,dealsQuantity:h,pageHandle:f,s:g}=l,{locale:b=""}=(0,W.useRouter)(),j=(0,lj.c)(),y=(0,lk.C)(),{data:_}=(0,lh.j)(),k=(0,s.useRef)(0);(0,s.useEffect)(()=>(r&&(k.current=window.scrollY||document.documentElement.scrollTop||0),()=>{r&&requestAnimationFrame(()=>{window.scrollTo(0,k.current)})}),[r]);let C=(0,s.useMemo)(()=>null==m?void 0:m.map(l=>{var e,t,i,n,a,c,o;return{...l,currencyCode:(null==l?void 0:null===(i=l.product)||void 0===i?void 0:null===(t=i.priceRange)||void 0===t?void 0:null===(e=t.maxVariantPrice)||void 0===e?void 0:e.currencyCode)||(null==l?void 0:null===(c=l.product)||void 0===c?void 0:null===(a=c.priceRange)||void 0===a?void 0:null===(n=a.minVariantPrice)||void 0===n?void 0:n.currencyCode)||w||"USD",availableForSale:null==l?void 0:null===(o=l.product)||void 0===o?void 0:o.availableForSale,price:Number(l.totalAmount),basePrice:Number(l.subtotalAmount)}}),[m,w]);return r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{children:"\n         ul::-webkit-scrollbar {\n          display: none\n         }\n        "}),(0,a.jsx)("div",{className:"fixed left-0 top-0 z-[999] flex h-[100vh] w-[100vw] items-center justify-center bg-black bg-opacity-30 md:items-end",children:(0,a.jsxs)("div",{className:"fixed z-[120] mx-auto flex max-h-[573px] w-[540px] flex-col items-center justify-start overflow-scroll bg-white md:h-[88vh] md:w-full md:rounded-[unset] md:rounded-t-[10px]",children:[(0,a.jsxs)("div",{className:"sticky top-0 z-10 flex w-full flex-col items-center justify-center bg-white px-[30px] pb-[16px] pt-[32px] text-center md:px-[20px] md:py-5 md:text-left",children:[(0,a.jsx)(N.x,{html:null==t?void 0:null===(e=t.selectedTxt)||void 0===e?void 0:e.replace("$amount",h||0),className:"text-[24px] font-[600] text-[#1D1D1F]"}),(null==t?void 0:t.desc)&&(0,a.jsx)(N.x,{html:t.desc,className:"text-[14px] font-[600] text-[#1D1D1F]"}),(0,a.jsx)("button",{onClick:()=>x(!1),className:"absolute right-[12px] top-[15px] h-6 w-6",children:(0,a.jsx)(lu.Z,{className:"text-[#1D1D1F]"})})]}),(0,a.jsx)("ul",{className:"flex max-h-[44vh] w-full flex-col gap-y-[16px] overflow-y-scroll px-[24px] pb-[24px] md:max-h-[unset]",children:null==C?void 0:C.map((l,e)=>(0,a.jsx)(lM,{item:l,lang:t,hideAdd:!1,deleteItem:!0,product:null==l?void 0:l.product,locale:b,removeCartLine:j,updateCartLine:y,cartData:_},e))})]})})]}):null},lM=l=>{var e,t,i,n;let{product:c,lang:o,item:d,hideAdd:r,deleteItem:x,locale:v,removeCartLine:u,updateCartLine:p,cartData:w}=l,[h,f]=(0,s.useState)(!1),[g,b]=(0,s.useState)(!1);return(0,a.jsxs)("li",{className:(0,M.cn)("relative flex w-full gap-[16px] bg-[#EFEFF0] p-[16px]",g&&"pointer-events-none opacity-50"),children:[!Number(d.totalAmount)&&(null==o?void 0:o.tagText)&&(0,a.jsx)(N.x,{html:o.tagText,className:"absolute left-0 top-0 bg-[#f90] px-[6px] text-[12px] font-[600] text-[#fff]"}),(0,a.jsx)("div",{className:"h-[74px] w-[74px] flex-none",children:(0,a.jsx)(m.t,{source:(null==d?void 0:null===(t=d.variant)||void 0===t?void 0:null===(e=t.image)||void 0===e?void 0:e.url)||(null==c?void 0:c.image),className:"h-full w-full object-cover [&_img]:h-full [&_img]:object-cover"})}),(0,a.jsxs)("div",{className:"flex w-full flex-col justify-between",children:[(0,a.jsx)(N.x,{html:null==c?void 0:c.title,className:"max-w-[95%] text-[16px] font-[500] text-[#1D1D1F]"}),(0,a.jsxs)("div",{className:"flex justify-between md:flex-col",children:[(0,a.jsx)(lv.t,{copy:o,product:d,price:(0,le.T4)({locale:v,amount:Number(null==d?void 0:d.totalAmount),currencyCode:(null==d?void 0:d.currencyCode)||"USD"}),basePrice:Number(null==d?void 0:d.totalAmount)!==Number(null==d?void 0:d.subtotalAmount)?(0,le.T4)({locale:v,amount:Number(null==d?void 0:d.subtotalAmount),currencyCode:(null==d?void 0:d.currencyCode)||"USD"}):void 0,s:{price:"price pr-0 text-[20px] font-bold leading-[1.4] md:text-[14px]",basePrice:"basePrice text-[16px] text-[#86868C] font-medium leading-[1.6] md:text-[12px]",priceWrap:"priceWrap items-center gap-[8px] flex md:flex-row py-[20px] md:py-[8px] md:gap-[4px]"}}),(0,a.jsxs)("div",{className:(0,M.cn)("flex h-[24px] font-[500] text-[#1D1D1F] [&_button]:px-[8px] [&_div]:px-[8px]",{hidden:(null==o?void 0:o.mysteryBoxPurchaseLimit)&&(null==d?void 0:null===(n=d.variant)||void 0===n?void 0:null===(i=n.sku)||void 0===i?void 0:i.includes("MYSTERYBOX-"))}),children:[!r&&(0,a.jsx)(a.Fragment,{children:["-","+"].map((l,e)=>(0,a.jsx)("button",{disabled:h,className:(0,M.cn)(0===e?"border-[1px] border-[#D2D2D2]":"order-2 cursor-pointer border-[1px] border-[#D2D2D2]",{hidden:!Number(d.totalAmount)}),onClick:()=>{let e="-"===l?d.quantity-1:d.quantity+1;p.trigger({cartId:null==w?void 0:w.id,lines:[{id:d.id,quantity:e}]})},children:l},e))}),(0,a.jsxs)("div",{className:(0,M.cn)("flex",{"border-[1px] border-l-0 border-r-0 border-[#D2D2D2]":Number(d.totalAmount),"border-none":r}),children:[(!Number(d.totalAmount)||r)&&(0,a.jsx)("div",{className:"!px-0",children:"x"}),d.quantity]})]})]})]})]})};var lT=l=>{var e,t,i,n,c,o,d,r,m,u,p,h,f,g,b,j,y,N,_,C,S,F,I,B,D,M,P,E,R,O,K,Z,G;let{data:X,common:V,dataTitle:J,allProductsList:Y=[],allMysteryBoxData:$=[]}=l,{blindBoxTitle:Q,blindBoxImg:lt,bgColorMob:li,blindBoxDesc:ln,bgColor:lc,bgColorChild:lo,bgColorChildMob:ld,blindBoxProductList:lr,picture1:ls,picture2:lx,title:lm,desc:lv,titleTag:lu,price:lp,code:lw="USD",variant:lf,soldOut:lg=!1,discountCode:lb="WS24MY200",countryDiscountAmount:lj,countryDiscountSymbol:ly}=X,lN=(0,z.L)();(0,lh.j)();let l_=(0,L.t)({withTrack:!0,withMember:!0}),lk=(0,A.t)({withTrack:!0,withMember:!0,needOpenCart:!0}),lC=(null===(t=lN.metafields)||void 0===t?void 0:null===(e=t.common)||void 0===e?void 0:e.copywriting)||{},{data:lS=[]}=(0,q.G)({handles:[null==lf?void 0:lf.handle],metafieldIdentifiers:{product:U.P,variant:H.N}}),lF=(0,s.useMemo)(()=>
1{if(lS&&lf){var l;let e=lS.find(l=>l.handle===lf.handle),{sku:t=""}=lf,i=null==e?void 0:null===(l=e.variants)||void 0===l?void 0:l.find(l=>{var e;return(null===(e=l.sku)||void 0===e?void 0:e.toLowerCase())===t.toLowerCase()});return i||(i=null==e?void 0:e.variants[0]),{itemData:lf,product:e,sku:null==i?void 0:i.sku,variant:i}}return null},[lS,lf]),lI=(0,s.useMemo)(()=>{var l,e,t;return lg||!(null==lF?void 0:lF.variant)||!(null==lF?void 0:null===(l=lF.variant)||void 0===l?void 0:l.availableForSale)||(null==lF?void 0:null===(t=lF.variant)||void 0===t?void 0:null===(e=t.price)||void 0===e?void 0:e.amount)==T.Ag},[lF,lg]),{locale:lB}=(0,v.j)(),[lz,lD]=s.useState(()=>{var l;return null===(l=la().get("neuipcountry"))||void 0===l?void 0:l.toUpperCase()}),lA=(0,s.useMemo)(()=>{var l,e,t,i;if(null==lF?void 0:null===(e=lF.variant)||void 0===e?void 0:null===(l=e.price)||void 0===l?void 0:l.currencyCode)return lF.variant.price.currencyCode;if(Y&&Y.length>0&&$&&$.length>0){for(let l of $)if(null==l?void 0:null===(t=l.variant)||void 0===t?void 0:t.handle){let e=Y.find(e=>e.handle===l.variant.handle);if((null==e?void 0:e.variants)&&e.variants.length>0){let t=e.variants.find(e=>{var t,i,n;return(null===(t=e.sku)||void 0===t?void 0:t.toLowerCase())===(null===(n=l.variant)||void 0===n?void 0:null===(i=n.sku)||void 0===i?void 0:i.toLowerCase())})||e.variants[0];if(null==t?void 0:null===(i=t.price)||void 0===i?void 0:i.currencyCode)return t.price.currencyCode}}}return({DK:"DKK",FI:"EUR",NO:"NOK",SE:"SEK",IS:"ISK"})[lz||""]||"SEK"},[null==lF?void 0:null===(n=lF.variant)||void 0===n?void 0:null===(i=n.price)||void 0===i?void 0:i.currencyCode,Y,$,lz]);(0,s.useEffect)(()=>{let l=()=>{var l;let e=null===(l=la().get("neuipcountry"))||void 0===l?void 0:l.toUpperCase();e!==lz&&lD(e)},e=setInterval(l,1e3),t=e=>{l()};return window.addEventListener("countryChanged",t),l(),()=>{clearInterval(e),window.removeEventListener("countryChanged",t)}},[lz]),(0,s.useMemo)(()=>({DK:X.blindBoxImgDKK,FI:X.blindBoxImgEUR,NO:X.blindBoxImgNOK,SE:X.blindBoxImgSEK,IS:X.blindBoxImgISK})[lz||""]||lt,[lz,X.blindBoxImgDKK,X.blindBoxImgEUR,X.blindBoxImgNOK,X.blindBoxImgSEK,X.blindBoxImgISK,lt]);let lM=(0,s.useMemo)(()=>{var l,e;if(null==lF?void 0:null===(e=lF.variant)||void 0===e?void 0:null===(l=e.price)||void 0===l?void 0:l.amount){let l=Number(lF.variant.price.amount);if(!isNaN(l))return l}if(lA&&(null==lj?void 0:lj[lA])){let l=Number(lj[lA]);if(!isNaN(l))return l}if(lp){let l=Number(lp);if(!isNaN(l))return l}return 0},[null==lF?void 0:null===(o=lF.variant)||void 0===o?void 0:null===(c=o.price)||void 0===c?void 0:c.amount,lj,lA,lp]),lT=(0,le.T4)({amount:lM,currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0}),{data:lP}=(0,ll.M)(),{geo:lE}=lP||{};null==lE||null===(d=lE.country)||void 0===d||d.code;let lL=lv?lv.replace(/\$price/g,'<span style="color: #285517; font-weight: 800;">'.concat((0,le.T4)({amount:Number((null==X?void 0:null===(r=X.countryDiscountAmount)||void 0===r?void 0:r["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0}),"</span>")).replace(/\$init/g,'<span style="color: #285517; font-weight: 800;">'.concat((0,le.T4)({amount:Number((null==X?void 0:null===(m=X.countryDiscountAmount)||void 0===m?void 0:m["".concat(lA,"Init")])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0}),"</span>")):"",lR=()=>{(null==lF?void 0:lF.variant)&&l_.trigger({items:[{variant:null==lF?void 0:lF.variant}],gtmParams:{position:J||"mysteryBox1"},discountCode:lb})},lO=(0,W.useRouter)(),lK=(0,s.useMemo)(()=>{var l,e,t;return(null==lO?void 0:null===(t=lO.asPath)||void 0===t?void 0:null===(e=t.split("/"))||void 0===e?void 0:null===(l=e.pop())||void 0===l?void 0:l.replace("storefront-",""))||"home"},[lO]),lU=()=>{(null==lF?void 0:lF.variant)&&lk.trigger({variants:[{variant:null==lF?void 0:lF.variant,quantity:1}],gtmParams:{position:J||"mysteryBox1"},discountCode:lb})},lH=l=>{if(l){let e="/products/".concat(l,"?ref=").concat(lK);"true"===localStorage.getItem("isInApp")?window.location.href=e:window.open("/products/".concat(l,"?ref=").concat(lK),"_blank")}},lq=lo?lo.startsWith("url('")&&lo.endsWith("')")?lo.replace("url('","").replace("')",""):lo:"",lZ=ld?ld.startsWith("url('")&&ld.endsWith("')")?ld.replace("url('","").replace("')",""):ld:"";return lI?null:(0,a.jsxs)("div",{style:{"--bg-desktop":lq?"url('".concat(lq,"') no-repeat center center"):lc||lt?"url('".concat(lc||lt,"') no-repeat center center"):"transparent"},className:"jsx-8450777b763aa4a5 "+((0,w.A)("mysterybox-container relative mx-auto flex items-center","w-full l:flex  l:flex-col","h-[calc(525/1920*100vw)] w-[calc(1440/1920*100vw)] l:h-auto l:w-[calc(358/390*100vw)] min-2xl:h-[525px] min-2xl:w-[1440px] md-l:h-auto md-l:w-[calc(704/768*100vw)]")||""),children:[(0,a.jsx)(k(),{id:"8450777b763aa4a5",children:".mysterybox-container.jsx-8450777b763aa4a5{background:transparent;-webkit-background-size:contain;-moz-background-size:contain;-o-background-size:contain;background-size:contain}@media(min-width:1024px){.mysterybox-container.jsx-8450777b763aa4a5{background:var(--bg-desktop)!important;-webkit-background-size:cover!important;-moz-background-size:cover!important;-o-background-size:cover!important;background-size:cover!important}}"}),lr&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"jsx-8450777b763aa4a5 relative h-full w-full l:hidden min-l:block",children:(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 absolute inset-0 h-full w-full",children:[(null==lr?void 0:lr.product1)&&(0,a.jsx)("div",{className:"jsx-8450777b763aa4a5 absolute left-[calc(50/1440*100vw)] top-[21%] min-l:left-[calc(50/1024*100vw)] min-l:top-[21%] min-xl:left-[calc(80/1440*100vw)] min-xl:top-[21%] min-2xl:left-[100px] min-2xl:top-[21%]",children:(0,a.jsx)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product1)||void 0===l?void 0:l.handle)},className:"jsx-8450777b763aa4a5 flex cursor-pointer flex-col",children:(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 flex h-[calc(126.59/1920*100vw)] w-[calc(178.09/1920*100vw)] flex-shrink-0 flex-col min-2xl:h-[126.59px] min-2xl:w-[178.09px]",children:[(null==lr?void 0:lr.product1.desc)&&(0,a.jsx)(x.xv,{className:"mb-[calc(2/1440*100vw)] text-[calc(18/1920*100vw)] font-bold text-[#000000] l:text-[calc(12/390*100vw)] min-xxl:text-[18px]",children:null==lr?void 0:lr.product1.desc}),(null==lr?void 0:lr.product1.title)&&(0,a.jsx)(x.xv,{className:"mb-[calc(1/1440*100vw)] line-clamp-3 text-[calc(18/1920*100vw)] font-[700] leading-[120%] text-[#606060] l:text-[calc(12/390*100vw)] min-2xl:mb-[1px] min-xxl:text-[18px]",title:null==lr?void 0:lr.product1.title,children:null==lr?void 0:lr.product1.title}),(null==lr?void 0:lr.product1.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(27/1920*100vw)] font-[800] leading-[120%] text-[#000000] l:text-[calc(18/390*100vw)] min-xxl:text-[24px]",children:(0,le.T4)({amount:Number((null==X?void 0:null===(h=X.blindBoxProductList)||void 0===h?void 0:null===(p=h.product1)||void 0===p?void 0:null===(u=p.countryDiscountAmount)||void 0===u?void 0:u["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]})})}),(null==lr?void 0:lr.product2)&&(0,a.jsx)("div",{className:"jsx-8450777b763aa4a5 absolute top-[40%] min-l:left-[calc(50/1024*100vw)] min-l:top-[54%] min-xl:left-[calc(80/1440*100vw)] min-xl:top-[58%] min-2xl:left-[100px] min-2xl:top-[58%]",children:(0,a.jsx)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product2)||void 0===l?void 0:l.handle)},className:"jsx-8450777b763aa4a5 flex cursor-pointer flex-col",children:(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 flex h-[calc(126.59/1920*100vw)] w-[calc(178.09/1920*100vw)] flex-shrink-0 flex-col min-2xl:h-[126.59px] min-2xl:w-[178.09px]",children:[(null==lr?void 0:lr.product2.desc)&&(0,a.jsx)(x.xv,{className:"mb-[calc(2/1440*100vw)] text-[calc(18/1920*100vw)] font-bold text-[#000000] l:text-[calc(12/390*100vw)] min-xxl:text-[18px]",children:null==lr?void 0:lr.product2.desc}),(null==lr?void 0:lr.product2.title)&&(0,a.jsx)(x.xv,{className:"mb-[calc(1/1440*100vw)] line-clamp-3 text-[calc(18/1920*100vw)] font-[700] leading-[120%] text-[#606060] l:text-[calc(12/390*100vw)] min-2xl:mb-[1px] min-xxl:text-[18px]",title:null==lr?void 0:lr.product2.title,children:null==lr?void 0:lr.product2.title}),(null==lr?void 0:lr.product2.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(27/1920*100vw)] font-[800] leading-[120%] text-[#000000] l:text-[calc(18/390*100vw)] min-xxl:text-[27px]",children:(0,le.T4)({amount:Number((null==X?void 0:null===(b=X.blindBoxProductList)||void 0===b?void 0:null===(g=b.product2)||void 0===g?void 0:null===(f=g.countryDiscountAmount)||void 0===f?void 0:f["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]})})}),(null==lr?void 0:lr.product3)&&(0,a.jsx)("div",{className:"jsx-8450777b763aa4a5 absolute left-[calc(790/1920*100vw)] top-[calc(295/1920*100vw)] min-2xl:left-[795px] min-2xl:top-[295px]",children:(0,a.jsx)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product3)||void 0===l?void 0:l.handle)},className:"jsx-8450777b763aa4a5 flex cursor-pointer flex-col",children:(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 flex h-[calc(126.59/1920*100vw)] w-[calc(178.09/1920*100vw)] flex-shrink-0 flex-col min-2xl:h-[126.59px] min-2xl:w-[178.09px]",children:[(null==lr?void 0:lr.product3.desc)&&(0,a.jsx)(x.xv,{className:"mb-[calc(2/1440*100vw)] text-[calc(18/1920*100vw)] font-bold text-[#000000] l:text-[calc(12/390*100vw)] min-xxl:text-[18px]",children:null==lr?void 0:lr.product3.desc}),(null==lr?void 0:lr.product3.title)&&(0,a.jsx)(x.xv,{className:"mb-[calc(1/1440*100vw)] line-clamp-3 text-[calc(18/1920*100vw)] font-[700] leading-[120%] text-[#606060] l:text-[calc(12/390*100vw)] min-2xl:mb-[1px] min-xxl:text-[18px]",title:null==lr?void 0:lr.product3.title,children:null==lr?void 0:lr.product3.title}),(null==lr?void 0:lr.product3.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(27/1920*100vw)] font-[800] leading-[120%] text-[#000000] l:text-[calc(18/390*100vw)] min-xxl:text-[24px]",children:(0,le.T4)({amount:Number((null==X?void 0:null===(N=X.blindBoxProductList)||void 0===N?void 0:null===(y=N.product3)||void 0===y?void 0:null===(j=y.countryDiscountAmount)||void 0===j?void 0:j["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]})})}),(null==lr?void 0:lr.product4)&&(0,a.jsx)("div",{className:"jsx-8450777b763aa4a5 absolute left-[calc(790/1920*100vw)] top-[calc(105.9/1920*100vw)] min-2xl:left-[795px] min-2xl:top-[110px]",children:(0,a.jsx)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product4)||void 0===l?void 0:l.handle)},className:"jsx-8450777b763aa4a5 flex cursor-pointer flex-col",children:(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 flex h-[calc(126.59/1920*100vw)] w-[calc(178.09/1920*100vw)] flex-shrink-0 flex-col min-2xl:h-[126.59px] min-2xl:w-[178.09px]",children:[(null==lr?void 0:lr.product4.desc)&&(0,a.jsx)(x.xv,{className:"mb-[calc(2/1440*100vw)] text-[calc(18/1920*100vw)] font-bold text-[#000000] l:text-[calc(12/390*100vw)] min-xxl:text-[18px]",children:null==lr?void 0:lr.product4.desc}),(null==lr?void 0:lr.product4.title)&&(0,a.jsx)(x.xv,{className:"mb-[calc(1/1440*100vw)] line-clamp-3 text-[calc(18/1920*100vw)] font-[700] leading-[120%] text-[#606060] l:text-[calc(12/390*100vw)] min-2xl:mb-[1px] min-xxl:text-[18px]",title:null==lr?void 0:lr.product4.title,children:null==lr?void 0:lr.product4.title}),(null==lr?void 0:lr.product4.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(27/1920*100vw)] font-[800] leading-[120%] text-[#000000] l:text-[calc(18/390*100vw)] min-xxl:text-[27px]",children:(0,le.T4)({amount:Number((null==X?void 0:null===(S=X.blindBoxProductList)||void 0===S?void 0:null===(C=S.product4)||void 0===C?void 0:null===(_=C.countryDiscountAmount)||void 0===_?void 0:_["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]})})})]})}),(0,a.jsxs)("div",{style:{backgroundImage:lZ?"url('".concat(lZ,"')"):void 0,backgroundSize:"100% auto",backgroundPosition:"top center",backgroundRepeat:"no-repeat",width:"calc(358/390*100vw)",height:"calc(621.66/390*100vw)"},className:"jsx-8450777b763aa4a5 relative mx-auto min-l:hidden",children:[(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 absolute left-0 right-0 top-[calc(40/390*100vw)] flex flex-col items-center px-[c
1alc(20/390*100vw)]",children:[lm&&(0,a.jsx)(x.xv,{html:lm,className:" text-center text-[calc(18.28/390*100vw)] font-bold leading-[1.3] text-[#000] l:mb-[calc(8.63/390*100vw)] l:font-[800]"}),lu&&(0,a.jsx)(x.xv,{html:lu,className:"text-center text-[calc(11.17/390*100vw)] font-[700] leading-[1.3] text-[#474747]"})]}),(null==lr?void 0:lr.product1)&&(0,a.jsxs)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product1)||void 0===l?void 0:l.handle)},style:{gap:"4.02px"},className:"jsx-8450777b763aa4a5 absolute left-[calc(10/390*100vw)] top-[calc(135/390*100vw)] flex h-auto w-[calc(100/390*100vw)] cursor-pointer flex-col",children:[(null==lr?void 0:lr.product1.desc)&&(0,a.jsx)(x.xv,{className:" text-[calc(11.17/390*100vw)] font-[700] text-[#000000]",style:{textAlign:"right",lineHeight:"1.2",color:"#000000"},children:null==lr?void 0:lr.product1.desc}),(null==lr?void 0:lr.product1.title)&&(0,a.jsx)(x.xv,{className:" text-[calc(10/390*100vw)] font-[600] text-[#000000]",title:null==lr?void 0:lr.product1.title,style:{textAlign:"right",verticalAlign:"middle",lineHeight:"leading-[1]",width:"DK"===lz?"calc(150/390*100vw)":"calc(100/390*100vw)",color:"#000000"},children:null==lr?void 0:lr.product1.title}),(null==lr?void 0:lr.product1.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(16.75/390*100vw)] font-[800] text-[#000000]",style:{textAlign:"right",verticalAlign:"middle",lineHeight:"leading-[1]",color:"#000000"},children:(0,le.T4)({amount:Number((null==X?void 0:null===(B=X.blindBoxProductList)||void 0===B?void 0:null===(I=B.product1)||void 0===I?void 0:null===(F=I.countryDiscountAmount)||void 0===F?void 0:F["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]}),(null==lr?void 0:lr.product2)&&(0,a.jsxs)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product2)||void 0===l?void 0:l.handle)},style:{gap:"4.02px"},className:"jsx-8450777b763aa4a5 absolute left-[calc(10/390*100vw)] top-[calc(290/390*100vw)] flex h-auto w-[calc(100/390*100vw)] cursor-pointer flex-col",children:[(null==lr?void 0:lr.product2.desc)&&(0,a.jsx)(x.xv,{className:" text-[calc(11.17/390*100vw)] font-bold text-[#000000]",style:{textAlign:"right",lineHeight:"1.2",color:"#000000"},children:null==lr?void 0:lr.product2.desc}),(null==lr?void 0:lr.product2.title)&&(0,a.jsx)(x.xv,{className:" text-[calc(10/390*100vw)] font-[600] text-[#000000]",title:null==lr?void 0:lr.product2.title,style:{textAlign:"right",verticalAlign:"middle",lineHeight:"leading-[1]",width:"DK"===lz?"calc(150/390*100vw)":"calc(100/390*100vw)",color:"#000000"},children:null==lr?void 0:lr.product2.title}),(null==lr?void 0:lr.product2.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(16.75/390*100vw)] font-[800] text-[#000000]",style:{textAlign:"right",verticalAlign:"middle",lineHeight:"leading-[1]",color:"#000000"},children:(0,le.T4)({amount:Number((null==X?void 0:null===(P=X.blindBoxProductList)||void 0===P?void 0:null===(M=P.product2)||void 0===M?void 0:null===(D=M.countryDiscountAmount)||void 0===D?void 0:D["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]}),(null==lr?void 0:lr.product3)&&(0,a.jsxs)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product3)||void 0===l?void 0:l.handle)},style:{gap:"4.02px"},className:"jsx-8450777b763aa4a5 absolute right-[calc(5/390*100vw)] top-[calc(290/390*100vw)] flex h-auto w-[calc(100/390*100vw)] cursor-pointer flex-col",children:[(null==lr?void 0:lr.product3.desc)&&(0,a.jsx)(x.xv,{className:" text-[calc(11.17/390*100vw)] font-bold text-[#000000]",style:{textAlign:"left",lineHeight:"1.2",color:"#000000"},children:null==lr?void 0:lr.product3.desc}),(null==lr?void 0:lr.product3.title)&&(0,a.jsx)(x.xv,{className:" text-[calc(10/390*100vw)] font-[600] text-[#000000]",title:null==lr?void 0:lr.product3.title,style:{textAlign:"left",verticalAlign:"middle",lineHeight:"leading-[1]",width:"DK"===lz?"calc(150/390*100vw)":"calc(100/390*100vw)",marginLeft:"DK"===lz?"calc(-50/390*100vw)":"0",color:"#000000"},children:null==lr?void 0:lr.product3.title}),(null==lr?void 0:lr.product3.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(16.75/390*100vw)] font-[800] text-[#000000]",style:{textAlign:"left",verticalAlign:"middle",lineHeight:"leading-[1]",color:"#000000"},children:(0,le.T4)({amount:Number((null==X?void 0:null===(O=X.blindBoxProductList)||void 0===O?void 0:null===(R=O.product3)||void 0===R?void 0:null===(E=R.countryDiscountAmount)||void 0===E?void 0:E["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]}),(null==lr?void 0:lr.product4)&&(0,a.jsxs)("div",{onClick:()=>{var l;return lH(null==lr?void 0:null===(l=lr.product4)||void 0===l?void 0:l.handle)},style:{gap:"4.02px"},className:"jsx-8450777b763aa4a5 absolute right-[calc(5/390*100vw)] top-[calc(135/390*100vw)] flex h-auto w-[calc(100/390*100vw)] cursor-pointer flex-col",children:[(null==lr?void 0:lr.product4.desc)&&(0,a.jsx)(x.xv,{className:" text-[calc(11.17/390*100vw)] font-bold text-[#000000]",style:{textAlign:"left",lineHeight:"1.2",color:"#000000"},children:null==lr?void 0:lr.product4.desc}),(null==lr?void 0:lr.product4.title)&&(0,a.jsx)(x.xv,{className:" text-[calc(10/390*100vw)] font-[600] text-[#000000]",title:null==lr?void 0:lr.product4.title,style:{textAlign:"left",verticalAlign:"middle",lineHeight:"leading-[1]",width:"DK"===lz?"calc(150/390*100vw)":"calc(100/390*100vw)",marginLeft:"DK"===lz?"calc(-50/390*100vw)":"0",color:"#000000"},children:null==lr?void 0:lr.product4.title}),(null==lr?void 0:lr.product4.price)&&(0,a.jsx)(x.xv,{className:"text-[calc(16.75/390*100vw)] font-[800] text-[#000000]",style:{textAlign:"left",verticalAlign:"middle",lineHeight:"leading-[1]",color:"#000000"},children:(0,le.T4)({amount:Number((null==X?void 0:null===(G=X.blindBoxProductList)||void 0===G?void 0:null===(Z=G.product4)||void 0===Z?void 0:null===(K=Z.countryDiscountAmount)||void 0===K?void 0:K["".concat(lA)])||0),currencyCode:lA||"SEK",locale:lB,maximumFractionDigits:0})})]}),(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 absolute bottom-0 left-0 right-0 flex w-full flex-col px-[calc(23/390*100vw)] pb-[calc(33/390*100vw)] md-l:px-[calc(40/768*100vw)] md-l:pb-[calc(40/768*100vw)]",children:[(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 mb-[calc(16/390*100vw)] flex items-end justify-between md-l:mb-[calc(20/768*100vw)]",children:[lL&&(0,a.jsx)(x.xv,{html:lL,className:"font-semibold text-[#fff] l:text-[calc(14/390*100vw)] min-l:text-[calc(16/1024*100vw)] md-l:text-[calc(28/768*100vw)]"}),(0,a.jsx)(x.xv,{html:lI?(null==V?void 0:V.soldOut)||"Sold Out":lT,className:"font-bold text-[#000] l:text-[calc(32/390*100vw)] l:leading-[1] min-l:text-[calc(24/1024*100vw)] md-l:text-[calc(36/768*100vw)]",style:{color:lI?"#86868C":"#000"}})]}),(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 flex gap-[calc(12/390*100vw)] md-l:gap-[calc(16/768*100vw)]",children:[(0,a.jsx)(x.zx,{className:(0,w.A)("flex-1 border border-solid bg-[#fff] font-bold","l:h-[calc(40/390*100vw)] l:text-[calc(14/390*100vw)]","md-l:h-[calc(50/768*100vw)] md-l:text-[calc(16/768*100vw)]",lI?"cursor-not-allowed !border-transparent !bg-[#cccccd] !text-[#86868C]":"!border-[#F5D549] !text-[#000] hover:bg-[#F5D549] hover:!text-[#fff]"),loading:lk.isMutating,disabled:lI,onClick:lU,children:lI?(null==V?void 0:V.soldOut)||"Sold Out":(null==V?void 0:V.addToCart)||l
1C.addToCart||"Add to Cart"}),!lI&&(0,a.jsx)(x.zx,{className:(0,w.A)("flex-1 !border-[#F5D549] !bg-[#F5D549] font-bold !text-[#000] hover:bg-[#FFE7C2] hover:opacity-75","l:h-[calc(40/390*100vw)] l:text-[calc(14/390*100vw)]","md-l:h-[calc(50/768*100vw)] md-l:text-[calc(16/768*100vw)]"),style:{backgroundColor:"#FFE7C2",borderColor:"#FFE7C2",color:"#283F33"},loading:l_.isMutating,onClick:lR,disabled:lI,children:(null==V?void 0:V.buyNow)||lC.buyNow||"Buy Now"})]})]})]})]}),(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 hidden h-full w-full flex-col items-start justify-center min-l:ml-[calc(150/1920*100vw)] min-l:flex min-l:w-1/2 min-xl:ml-[calc(120/1920*100vw)] min-2xl:ml-[100px]",children:[lu&&(0,a.jsx)(x.xv,{html:lu,className:(0,w.A)("mb-[calc(5/1920*100vw)] text-[calc(16.02/1440*100vw)] font-[700] leading-[calc(20.92/1440*100vw)] text-[#474747] min-xxl:mb-[5px]","l:order-4 l:flex l:w-full l:flex-row l:items-center l:justify-between l:px-[calc(20/390*100vw)] l:text-[calc(14/390*100vw)] l:leading-[calc(22/390*100vw)]","l:!hidden min-l:!block min-l:text-[calc(8/1024*100vw)] min-xl:text-[calc(12/1440*100vw)] min-xl:leading-[130%] min-2xl:text-[16.02px] min-2xl:leading-[130%] md-l:text-[calc(12/768*100vw)]")}),lm&&(0,a.jsx)(x.xv,{html:lm,className:(0,w.A)("mb-[calc(20/1920*100vw)] text-[calc(30/1920*100vw)] font-bold leading-[calc(20.92/1440*100vw)] text-[#000] min-xxl:mb-[20px]","l:order-4 l:flex l:w-full l:flex-row l:items-center l:justify-between l:px-[calc(20/390*100vw)] l:text-[calc(14/390*100vw)] l:leading-[calc(22/390*100vw)]","l:!hidden min-l:!block min-xl:leading-[120%] min-2xl:text-[30px] min-2xl:leading-[120%]")}),(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 "+((0,w.A)("flex flex-col gap-[calc(2.81/1920*100vw)] l:mt-[calc(18/390*100vw)] l:w-full l:flex-row-reverse l:justify-between min-l:mt-0 md-l:mt-[calc(30/768*100vw)]",lI?"l:!justify-center":"")||""),children:[(0,a.jsx)(x.xv,{html:lI?(null==V?void 0:V.soldOut)||"Sold Out":lT,className:(0,w.A)("text-[calc(41.83/1440*100vw)] font-[800] leading-[1] !text-[#000000] l:font-[700]","text-[calc(48/1920*100vw)] l:text-[calc(32/390*100vw)] l:leading-[120%] min-xl:leading-[calc(36/1440*100vw)] min-2xl:text-[48px] min-2xl:leading-[120%]"),style:{color:lI?"#86868C":"#FFE7C2"}}),!lI&&lL&&(0,a.jsx)(x.xv,{html:lL,className:(0,w.A)("w-fit text-[calc(21/1920*100vw)] font-[700] leading-[calc(26.89/1440*100vw)] text-[#fff]","l:whitespace-nowrap l:text-[calc(14/390*100vw)] l:leading-[120%] min-xl:leading-[120%] min-2xl:text-[21px] min-2xl:leading-[120%]")})]}),(0,a.jsxs)("div",{className:"jsx-8450777b763aa4a5 "+((0,w.A)("mt-[calc(10/1440*100vw)] flex flex-col items-center gap-[calc(11.54/1440*100vw)]","mt-[calc(20/1920*100vw)] l:w-full l:flex-row l:justify-between min-l:gap-[calc(7/1024*100vw)] min-xl:gap-[calc(7/1440*100vw)] min-2xl:mt-[20px] min-2xl:gap-[11.54px] md-l:gap-[calc(7/768*100vw)]",lI?"l:justify-center min-2xl:mt-[34px]":"")||""),children:[(0,a.jsx)(x.zx,{className:(0,w.A)("border-1   !border-[#F5D549] bg-[#fff] !px-0 !py-0 text-[calc(24/1920*100vw)] font-[700] !text-[#000] hover:bg-[#F5D549] hover:!text-[#F5F5F7]","font-bold l:h-[calc(40/390*100vw)] l:w-[calc(150/390*100vw)] l:!text-[calc(14/390*100vw)] min-l:h-[calc(30/1024*100vw)] min-l:w-[calc(178/1024*100vw)] min-xl:h-[calc(44/1440*100vw)] min-xl:w-[calc(250/1440*100vw)] min-xl:font-bold min-2xl:h-[60px] min-2xl:w-[334px] min-2xl:!text-[24px] md-l:h-[calc(78/768*100vw)] md-l:w-[calc(297/768*100vw)] md-l:!text-[calc(28/768*100vw)]",lI?"cursor-not-allowed  !bg-[#cccccd] min-l:!text-[calc(18/1024*100vw)] min-xl:!text-[calc(18/1440*100vw)] min-2xl:!text-[24px] md-l:!text-[calc(12/768*100vw)]":"",lk.isMutating?"hover:!text-[#104433] hover:shadow-md":""),style:{border:lI?"none":"1px solid #FFE7C2"},loading:lk.isMutating,disabled:lI,onClick:lU,children:lI?(null==V?void 0:V.soldOut)||"Sold Out":(null==V?void 0:V.addToCart)||lC.addToCart||"Add to Cart"}),!lI&&(0,a.jsx)(x.zx,{loading:l_.isMutating,onClick:lR,disabled:lI,className:(0,w.A)("h-[calc(40.34/1440*100vw)] w-[calc(164.33/1440*100vw)] !border-[#FFE7C2] !bg-[#F5D549] text-[calc(18/1440*100vw)] font-medium !text-[#000] hover:bg-[#F5D549] hover:!text-[#F5F5F7] hover:opacity-75 ","font-bold l:h-[calc(40/390*100vw)] l:w-[calc(150/390*100vw)] l:!text-[calc(14/390*100vw)] min-l:h-[calc(30/1024*100vw)] min-l:w-[calc(178/1024*100vw)] min-l:!text-[calc(12/1024*100vw)] min-xl:h-[calc(44/1440*100vw)] min-xl:w-[calc(250/1440*100vw)] min-xl:!text-[calc(18/1440*100vw)] min-xl:font-bold min-2xl:h-[60px] min-2xl:w-[334px] min-2xl:!text-[24px] md-l:h-[calc(78/768*100vw)] md-l:w-[calc(297/768*100vw)] md-l:!text-[calc(28/768*100vw)]",lI?"cursor-not-allowed bg-[#B7B7B7] min-l:!text-[calc(18/1024*100vw)] min-xl:!text-[calc(18/1440*100vw)] min-2xl:!text-[24px] md-l:!text-[calc(12/768*100vw)]":""),style:{backgroundColor:"#FFE7C2",borderColor:"#FFE7C2",color:"#283F33"},children:lI?(null==V?void 0:V.soldOut)||"Sold Out":(null==V?void 0:V.buyNow)||lC.buyNow||"Buy Now"})]})]})]})},lP=l=>{var e,t;let{id:i,data:n}=l,{title:c,desc:o,rightIcon:d,subTerms:r,ruleTitle:s,rules:x}=n,m=(null==n?void 0:null===(e=n.list)||void 0===e?void 0:e.map(l=>{var e;return null==l?void 0:null===(e=l.variant)||void 0===e?void 0:e.handle}
1).filter(Boolean))||[],{data:v=[]}=(0,q.G)({handles:m,metafieldIdentifiers:{product:U.P,variant:H.N}}),u=(null==n?void 0:null===(t=n.list)||void 0===t?void 0:t.filter(l=>{var e,t,i,n,a;if(null==l?void 0:l.soldOut)return!1;let c=null==l?void 0:null===(e=l.variant)||void 0===e?void 0:e.handle;if(c){let e=v.find(l=>l.handle===c);if(e){let c=(null==l?void 0:null===(t=l.variant)||void 0===t?void 0:t.sku)||"",o=(null===(i=e.variants)||void 0===i?void 0:i.find(l=>{var e;return(null===(e=l.sku)||void 0===e?void 0:e.toLowerCase())===c.toLowerCase()}))||(null===(n=e.variants)||void 0===n?void 0:n[0]);if(!o||!o.availableForSale||(null===(a=o.price)||void 0===a?void 0:a.amount)==T.Ag)return!1}}return!0}))||[];return(0,a.jsx)("div",{id:i,className:"flex flex-col items-center overflow-hidden",style:{background:"#F6F8F1"},children:(0,a.jsxs)("div",{className:"mx-auto w-[calc(1440/1920*100vw)] l:w-[calc(358/390*100vw)] min-xxl:w-[1440px]",children:[(0,a.jsx)(S,{title:c,subTitle:o,subTerms:r,rightIcon:d,rules:x,ruleTitle:s,titleColor:"#1D1D1F",subTitleColor:"#1D1D1F",className:"l:mx-auto l:!px-0 md-l:!pb-0",mobileSubTitleClassName:"!mb-[calc(12.7/390*100vw)]"}),(0,a.jsx)("div",{className:"flex flex-col gap-[calc(22/1920*100vw)] l:gap-[calc(16/390*100vw)] min-2xl:gap-[22px]",children:u.map((l,e)=>(0,a.jsx)(lT,{data:l,dataTitle:c,allProductsList:v,allMysteryBoxData:null==n?void 0:n.list},e))})]})})},lE=t(74206),lL=t(96e3),lR=t(86763),lO=t.n(lR),lK=l=>{var e;let{data:t}=l,{list:i=[],stickyTopIOS:n,stickyTopAndroid:c,backgroundColor:o,activeLineColor:d="#FFFFFF"}=t,[r,m]=(0,s.useState)(null==i?void 0:null===(e=i[0])||void 0===e?void 0:e.id),[v,u]=(0,s.useState)(!1),[p,h]=(0,s.use
1State)(0),f=(0,s.useMemo)(()=>i.filter(l=>l.available),[i]);(0,s.useEffect)(()=>{let l=()=>{let l=navigator.userAgent.toLowerCase();u(window.innerWidth<768);let e="true"===localStorage.getItem("isInApp"),t=0;if(e){let e=/iphone|ipad|ipod/.test(l),i=/android/.test(l);e&&void 0!==n?t=n:i&&void 0!==c&&(t=c)}else t=0;h(t)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[n,c]);let g=(0,W.useRouter)(),b=(0,s.useMemo)(()=>{var l,e;return(null===(e=g.asPath.split("/"))||void 0===e?void 0:null===(l=e.pop())||void 0===l?void 0:l.replace("storefront-",""))||"home"},[g]),j=(l,e,t)=>{if(window.dataLayer&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"lp_navigation",event_parameters:{navigation:e,page_group:"Activity Page_"+b}})),t){window.location.href=t;return}if("banner"===l){(0,lL.Z)("#"+l,{duration:500,offset:-200,callback:()=>{m(l)}});return}(0,lL.Z)("#".concat(l),{offset:-70,duration:500,callback:()=>{m(l)}})},y=(0,lE.Z)(()=>{for(let l of f){if(l.homeLink)continue;let e=document.getElementById(l.id);if(e){let t=e.getBoundingClientRect();if(t.top<=150&&t.bottom>150){m(l.id);break}}}});return(0,s.useEffect)(()=>{let l=lO()(y,200);return window.addEventListener("scroll",l,{passive:!0}),y(),()=>window.removeEventListener("scroll",l)},[f,y]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k(),{id:"eda487bc37d3f185",dynamic:[o],children:'#navTop.__jsx-style-dynamic-selector::before{content:"";position:fixed;top:0;left:0;right:0;height:200px;background:'.concat(o,";z-index:10;-webkit-transform:translatey(-100%);-moz-transform:translatey(-100%);-ms-transform:translatey(-100%);-o-transform:translatey(-100%);transform:translatey(-100%)}")}),(0,a.jsx)("div",{id:"navTop",style:{top:"".concat(p,"px"),background:o||"linear-gradient(0deg, #719564, #719564)"},className:k().dynamic([["eda487bc37d3f185",[o]]])+" sticky z-[11] h-[54px] overflow-visible l:h-[calc(24/390*100vw)]",children:(0,a.jsx)("div",{className:k().dynamic([["eda487bc37d3f185",[o]]])+" mx-auto flex h-full w-[calc(1680/1920*100vw)] items-center overflow-hidden l:w-[calc(358/390*100vw)] min-xxl:w-[1680px]",children:(0,a.jsx)("ul",{style:{msOverflowStyle:"none",scrollbarWidth:"none"},className:k().dynamic([["eda487bc37d3f185",[o]]])+" grid grid-flow-col justify-items-center gap-[24px] [-ms-overflow-style:none] [scrollbar-width:none] l:h-full l:gap-[40px] l:overflow-x-auto l-x:gap-[40px] x-xl:gap-[60px] [&::-webkit-scrollbar]:hidden",children:f.map(l=>(0,a.jsxs)("li",{className:k().dynamic([["eda487bc37d3f185",[o]]])+" "+((0,w.A)("group relative flex cursor-pointer justify-center border-transparent transition-all md:w-max",l.id===r?"l:h-full l:items-center l:bg-[#F5D549]":"")||""),children:[(0,a.jsx)("button",{onClick:()=>j(l.id,l.text,l.homeLink),className:k().dynamic([["eda487bc37d3f185",[o]]])+" z-1 absolute left-0 top-0 h-full w-full opacity-0"}),(0,a.jsx)("div",{className:k().dynamic([["eda487bc37d3f185",[o]]])+" flex items-center",children:(0,a.jsx)(x.xv,{as:"div",className:(0,w.A)("w-max rounded-[90px] px-[calc(20/1920*100vw)] py-[calc(5/1920*100vw)] text-center text-[14px] text-white transition-all l:px-[calc(8/390*100vw)] l:py-[calc(2/390*100vw)] l:text-[calc(11.68/390*100vw)] min-xxl:px-[20px] min-xxl:py-[5px]",l.id===r?"font-[800] l:text-[#000]":"font-[700]"),html:l.text})}),l.id===r&&(0,a.jsx)("div",{style:{backgroundColor:d},className:k().dynamic([["eda487bc37d3f185",[o]]])+" absolute bottom-[-13px] left-1/2 h-[3px] w-full -translate-x-1/2 l:hidden"})]},l.id))})})})]})},lU=l=>{let{id:e,data:t}=l,{title:i,subTitle:n,mobileSubTitle:c,rightIcon:o,backgroundColor:d="#F6F8F1",productCardImg:r,productCardImgMobile:u,variant:p,offer:w,discountCode:h,countryDiscountAmount:f}=t,{locale:g}=(0,v.j)(),b=(0,W.useRouter)(),j=(0,L.t)({withTrack:!0,withMember:!0});(0,ll.M)();let[y,N]=s.useState(()=>{var l;return null===(l=la().get("neuipcountry"))||void 0===l?void 0:l.toUpperCase()}),{data:_=[]}=(0,q.G)({handles:(null==p?void 0:p.handle)?[p.handle]:[],metafieldIdentifiers:{product:U.P,variant:H.N}}),C=(0,s.useMemo)(()=>
1{if(_&&p){var l;let e=_.find(l=>l.handle===p.handle),{sku:t=""}=p,i=null==e?void 0:null===(l=e.variants)||void 0===l?void 0:l.find(l=>{var e;return(null===(e=l.sku)||void 0===e?void 0:e.toLowerCase())===t.toLowerCase()});return i||(i=null==e?void 0:e.variants[0]),{product:e,variant:i,sku:null==i?void 0:i.sku}}return null},[_,p]),{data:F}=(0,K.X)({skus:(null==C?void 0:C.sku)?[null==C?void 0:C.sku]:[]}),I=(0,s.useMemo)(()=>{var l,e;let t=null==C?void 0:C.sku,i=null==C?void 0:null===(l=C.product)||void 0===l?void 0:l.handle;if(t&&i&&F){let l=null===(e=F[t])||void 0===e?void 0:e.find(l=>l.handle===i);return(null==l?void 0:l.title)||h||""}return h||""},[F,C,h]),B=(0,s.useMemo)(()=>({DK:"DKK",FI:"EUR",NO:"NOK",SE:"SEK",IS:"ISK"})[y||""]||"SEK",[y]);(0,s.useEffect)(()=>{let l=()=>{var l;let e=null===(l=la().get("neuipcountry"))||void 0===l?void 0:l.toUpperCase();e!==y&&N(e)},e=setInterval(l,1e3),t=()=>{l()};return window.addEventListener("countryChanged",t),l(),()=>{clearInterval(e),window.removeEventListener("countryChanged",t)}},[y]),(0,s.useMemo)(()=>{if(f&&B){let l=f[B];if(null!=l){let e=(0,le.T4)({amount:Number(l),currencyCode:B,locale:g,maximumFractionDigits:0});return"".concat(e," Off")}}return w.titleMain||""},[B,f,w.titleMain,g]);let z=(0,s.useMemo)(()=>{var l,e,t;return(null==b?void 0:null===(t=b.asPath)||void 0===t?void 0:null===(e=t.split("/"))||void 0===e?void 0:null===(l=e.pop())||void 0===l?void 0:l.replace("storefront-",""))||"home"},[b]),D=()=>{if((0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(z),position:"newArrival_learn_more",button_name:w.learnMoreText||"Learn More"}}),null==p?void 0:p.handle){let l="/products/".concat(p.handle,"?ref=").concat(z);"true"===localStorage.getItem("isInApp")?window.location.href=l:window.open(l,"_blank")}},A=()=>{if(null==C?void 0:C.variant){var l;let e=(null===(l=C.variant.price)||void 0===l?void 0:l.currencyCode)||y||"DKK",t=null==f?void 0:f[e],i=[];t&&(i.push({key:"_product_discount_amount",value:String(t)}),i.push({key:"_product_discount_currency",value:e})),j.trigger({items:[{variant:C.variant}],gtmParams:{position:"newArrival"},discountCode:I,customAttributes:i.length>0?i:void 0})}};return(0,a.jsx)("div",{id:e,className:"relative flex flex-col items-center overflow-hidden l:pb-[0px] min-l:pb-[calc(45/1920*100vw)] min-2xl:pb-[45px]",style:{background:d},children:(0,a.jsxs)("div",{className:"mx-auto w-[calc(1440/1920*100vw)] l:w-full l:px-[calc(16/390*100vw)] min-xxl:w-[1440px]",children:[(0,a.jsx)(S,{title:i,subTitle:n,mobileSubTitle:c,rightIcon:o,titleColor:"#000",subTitleColor:"#000",className:"l:mx-auto l:!px-0 md-l:!pb-0"}),(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a new-arrival-content relative flex gap-[calc(96/1920*100vw)] py-[calc(89/1920*100vw)] pl-[calc(57/1920*100vw)] pr-[calc(80/1920*100vw)] pt-[calc(30.98/390*100vw)] l:mt-[calc(40/390*100vw)] l:flex-col l:gap-[calc(29/390*100vw)] l:p-[calc(20/390*100vw)] l:pb-[calc(39.29/390*100vw)] min-2xl:gap-[86px] min-2xl:py-[89px] min-xxl:pl-[57px] min-xxl:pr-[80px]",children:[(0,a.jsx)(k(),{id:"d42b82ab1abf691a",children:".new-arrival-content.jsx-d42b82ab1abf691a{background:-webkit-linear-gradient(348.8deg,#eaede3 .84%,#e1e7db 42.42%,#b5c8ae 96.93%);background:-moz-linear-gradient(348.8deg,#eaede3 .84%,#e1e7db 42.42%,#b5c8ae 96.93%);background:-o-linear-gradient(348.8deg,#eaede3 .84%,#e1e7db 42.42%,#b5c8ae 96.93%);background:linear-gradient(101.2deg,#eaede3 .84%,#e1e7db 42.42%,#b5c8ae 96.93%)}@media(max-width:1023px){.new-arrival-content.jsx-d42b82ab1abf691a{background:-webkit-linear-gradient(265.38deg,#eaede3 30.41%,#e1e7db 50.24%,#b5c8ae 76.25%);background:-moz-linear-gradient(265.38deg,#eaede3 30.41%,#e1e7db 50.24%,#b5c8ae 76.25%);background:-o-linear-gradient(265.38deg,#eaede3 30.41%,#e1e7db 50.24%,#b5c8ae 76.25%);background:linear-gradient(184.62deg,#eaede3 30.41%,#e1e7db 50.24%,#b5c8ae 76.25%)}}"}),(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a l:order-0 hidden l:block l:w-full",children:[(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a mb-[calc(5/390*100vw)] l:text-center",children:[(0,a.jsx)(x.xv,{html:w.titleMain,className:"text-[calc(24.38/390*100vw)] font-[800] leading-[1.2] text-[#000]"}),w.titleSub&&(0,a.jsx)(x.xv,{html:w.titleSub,className:"text-[calc(21.13/390*100vw)] font-[800] leading-[1.2] text-[#000]"})]}),w.desc&&(0,a.jsx)(x.xv,{html:w.desc,className:"block w-full text-center text-[calc(12/390*100vw)] font-[700] leading-[1.4] text-[#474747]"})]}),(0,a.jsxs)("div",{onClick:()=>
1{if((0,lt.DU)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_".concat(z),position:"newArrival_product_image",button_name:"Product Image"}}),null==p?void 0:p.handle){let l="/products/".concat(p.handle,"?ref=").concat(z);"true"===localStorage.getItem("isInApp")?window.location.href=l:window.open(l,"_blank")}},className:"jsx-d42b82ab1abf691a relative flex flex-1 cursor-pointer l:order-1",children:[(0,a.jsx)(m.t,{url:r,className:"h-auto w-full l:hidden min-l:block",imgClassName:"h-full w-full object-contain"}),(0,a.jsx)(m.t,{url:u||r,className:"h-auto w-full bg-[#fff] l:block min-l:hidden",imgClassName:"h-full w-full object-contain"})]}),(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a flex w-[calc(384/1920*100vw)] flex-col justify-center l:hidden min-l:flex min-l:w-[calc(384/1920*100vw)] min-2xl:w-[384px]",children:[(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a mb-[calc(5.25/1920*100vw)] min-2xl:mb-[5.25px]",children:[(0,a.jsx)(x.xv,{html:w.titleMain,className:"text-[calc(48/1920*100vw)] font-[800] leading-[1.2] text-[#000] min-2xl:text-[48px]"}),w.titleSub&&(0,a.jsx)(x.xv,{html:w.titleSub,className:"text-[calc(24/1920*100vw)] font-[800] leading-[1.2] text-[#000] min-2xl:text-[24px]"})]}),w.desc&&(0,a.jsx)(x.xv,{html:w.desc,className:"mb-[calc(35/1920*100vw)] text-[calc(22/1920*100vw)] font-[700] leading-[1.4] text-[#474747] min-2xl:mb-[35px] min-2xl:text-[22px]"}),(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a flex flex-col gap-[calc(16/1920*100vw)] min-2xl:gap-[16px]",children:[w.learnMoreText&&(null==p?void 0:p.handle)&&(0,a.jsx)(x.zx,{className:"w-[calc(334.35/1920*100vw)] bg-white px-[calc(24/1920*100vw)] py-[calc(15/1920*100vw)] text-[calc(24/1920*100vw)] font-[700] leading-[1.2] text-[#000] hover:bg-[#f5f5f5] l:px-[calc(16/390*100vw)] l:py-[calc(10/390*100vw)] l:text-[calc(14/390*100vw)] min-2xl:px-[24px] min-2xl:py-[15px] min-2xl:text-[24px] min-xxl:w-[334.35px]",style:{border:"1px solid #F5D549"},onClick:D,children:w.learnMoreText}),w.preOrderText&&(null==C?void 0:C.variant)&&(0,a.jsx)(x.zx,{className:"w-[calc(334.35/1920*100vw)] px-[calc(24/1920*100vw)] py-[calc(15/1920*100vw)] text-[calc(24/1920*100vw)] font-[700] leading-[1.2] text-[#000] transition-all hover:[background:_#F5D549_!important] l:px-[calc(16/390*100vw)] l:py-[calc(10/390*100vw)] l:text-[calc(14/390*100vw)] min-2xl:px-[24px] min-2xl:py-[15px] min-2xl:text-[24px] min-xxl:w-[334.35px]",style:{backgroundColor:w.buttonBg||"#F5D549",border:"1px solid #F5D549"},onClick:A,loading:j.isMutating,children:w.preOrderText})]})]}),(0,a.jsxs)("div",{className:"jsx-d42b82ab1abf691a hidden l:order-2 l:flex l:w-full l:gap-[calc(8/390*100vw)]",children:[w.learnMoreText&&(null==p?void 0:p.handle)&&(0,a.jsx)(x.zx,{className:"w-full bg-white px-[calc(16/390*100vw)] py-[calc(10/390*100vw)] text-[calc(14/390*100vw)] font-[700] leading-[1.2] text-[#000] hover:bg-[#F5D549]",style:{border:"1px solid #F5D549"},onClick:D,children:w.learnMoreText}),w.preOrderText&&(null==C?void 0:C.variant)&&(0,a.jsx)(x.zx,{className:"w-full px-[calc(16/390*100vw)] py-[calc(10/390*100vw)] text-[calc(14/390*100vw)] font-[700] leading-[1.2] text-[#000] transition-all hover:[background:_#F5D549_!important]",style:{backgroundColor:w.buttonBg||"#F5D549",border:"1px solid #F5D549"},onClick:A,loading:j.isMutating,children:w.preOrderText})]})]})]})})},lH=l=>{var e,t,i,n,o,d;let{productItem:r,data:v,bgIsGray:u=!1,pageHandle:p,mobileDiscountImg:h,discountImg:f,soldOutUrl:g,title:b,inventory:N}=l,_=(0,z.L)(),{isLogin:k,profile:C}=(0,E.a)(),{copywriting:S,coupon:F}=(null===(e=_.metafields)||void 0===e?void 0:e.common)||{},{discountIcon:I}=null===(i=_.metafields)||void 0===i?void 0:null===(t=i.discount)||void 0===t?void 0:t.discounts,{common:B}=(0,c.l)();(0,c.l)();let{product:D,variant:O}=null!=r?r:{product:{},variant:{},data:{}},K=null==D?void 0:D.title,{price:U,oldPrice:H}=r,q=(0,R.k)({amount:Number(null==U?void 0:U.amount),baseAmount:Number(null==H?void 0:H.amount)||Number(null==U?void 0:U.amount),currencyCode:(null==U?void 0:U.currencyCode)||"USD",soldOutDescription:null==S?void 0:S.soldOut}),{value:Z}=r.couponDiscount||{},W=(0,s.useMemo)(()=>!(null==O?void 0:O.quantityAvailable)||!(null==O?void 0:O.availableForSale)||(null==O?void 0:O.price.amount)==T.Ag,[O]),G=(0,s.useMemo)(()=>"/products/".concat(null==D?void 0:D.handle,"?variant=").concat((0,M.Ll)((null==O?void 0:O.id)||""),"?ref=").concat(p),[D,O,p]),X=(0,s.useMemo)(()=>{var l,e;return(null==O?void 0:null===(l=O.image)||void 0===l?void 0:l.url)||(null==D?void 0:null===(e=D.featuredImage)||void 0===e?void 0:e.url)},[O,D]);(0,s.useMemo)(()=>{var l;return(null==D?void 0:null===(l=D.images)||void 0===l?void 0:l[1])||""},[D]);let V=(0,A.t)({needOpenCart:!0}),{trigger:J,isMutating:Y}=(0,L.t)({withMember:!1});return(0,a.jsxs)("div",{className:(0,w.A)("".concat(u?"border-[#A8A8A8]/26 border ":""," relative flex flex-col justify-between overflow-visible bg-white md:h-[calc(333/390*100vw)] md:py-[calc(28/390*100vw)] md:pb-[calc(23/390*100vw)] min-l:h-[calc(253/1024*100vw)] min-l:py-[calc(21/1024*100vw)] min-l:pb-[calc(18/1024*100vw)] min-xl:h-[calc(356/1440*100vw)] min-xl:py-[calc(30/1440*100vw)] min-xl:pb-[calc(26/1440*100vw)] min-2xl:h-[475px]  min-2xl:py-[40px] min-2xl:pb-[34px] md-l:h-[calc(655/768*100vw)] md-l:py-[calc(55/768*100vw)] md-l:pb-[calc(45/768*100vw)]")),children:[(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center overflow-hidden  md:size-[calc(110/390*100vw)]  min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:W?(0,a.jsxs)("div",{className:"flex md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:[!W&&r.discountValue&&(0,a.jsxs)("div",{className:(0,w.A)("absolute left-[-1px] top-[-1px] z-[2] flex h-[calc(68/1920*100vw)] w-[calc(71/1920*100vw)] flex-col items-center justify-start font-[700] text-white l:h-[calc(47.08/390*100vw)] l:w-[calc(48.55/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:h-[68px] min-2xl:w-[71px] min-2xl:text-[20px] md-l:text-[calc(12/768*100vw)]"),style:{backgroundImage:"url(".concat(f,")"),backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",fontFamily:"Mont For Anker"},children:[(0,a.jsx)("div",{className:(0,w.A)("mt-[calc(19/1920*100vw)] text-[calc(19.13/1920*100vw)] font-[800] leading-[100%] l:mt-[calc(13.24/390*100vw)] l:text-[calc(13.24/390*100vw)] min-2xl:mt-[19px] min-2xl:text-[19.13px]"),children:Math.ceil(Math.abs(Z))+"%"}),(0,a.jsx)("div",{className:"text-[calc(15.08/1920*100vw)] font-[500] leading-[100%] l:text-[calc(10.3/390*100vw)] min-2xl:ml-[0] min-2xl:mt-[2px] min-2xl:text-[15.08px]",children:(null==S?void 0:S.off)||(null==F?void 0:F.off)||""})]}),(0,a.jsx)(m.t,{url:X,alt:K,className:"md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",imgClassName:"w-full h-full object-contain "})]}):(0,a.jsxs)(y.r,{href:G,className:"flex md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",children:[r.discountValue&&(0,a.jsxs)("div",{className:(0,w.A)("absolute left-[6px] top-[6.35px] z-[2] flex h-[calc(68/1920*100vw)] w-[calc(71/1920*100vw)] flex-col items-center justify-start font-[700] text-white l:h-[calc(47.08/390*100vw)] l:w-[calc(48.55/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:h-[68px] min-2xl:w-[71px] min-2xl:text-[20px] md-l:text-[calc(12/768*100vw)]"),style:{backgroundImage:"url(".concat(W?g:f,")"),backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",fontFamily:"Mont For Anker"},children:[(0,a.jsx)("div",{className:(0,w.A)("mt-[calc(19/1920*100vw)] text-[calc(19.13/1920*100vw)] font-[800] leading-[100%] l:mt-[calc(13.24/390*100vw)] l:text-[calc(13.24/390*100vw)] min-2xl:mt-[19px] min-2xl:text-[19.13px]"),children:W?null==S?void 0:S.soldOut:Math.ceil(Math.abs(Z))+"%"}),!W&&(0,a.jsx)("div",{className:"text-[calc(15.08/1920*100vw)] font-[500] leading-[100%] l:text-[calc(10.3/390*100vw)] min-2xl:ml-[0] min-2xl:mt-[2px] min-2xl:text-[15.08px]",children:(null==S?void 0:S.off)||(null==F?void 0:F.off)||""})]}),(0,a.jsx)(m.t,{url:X,alt:K,className:"md:size-[calc(110/390*100vw)] min-l:size-[calc(118/1024*100vw)] min-xl:size-[calc(166/1440*100vw)] min-2xl:size-[222px] md-l:size-[calc(236/768*100vw)]",imgClassName:"w-full h-full object-contain "})]})}),(0,a.jsxs)("div",{className:(0,w.A)("product-info w-full md:h-fit md:justify-center md:px-[calc(16/390*100vw)] min-l:w-full min-l:px-[calc(10/1024*100vw)] min-xl:px-[calc(15/1440*100vw)]  min-2xl:px-[20px]  md-l:px-[calc(30/768*100vw)] ",""),children:[(0,a.jsxs)("div",{children:[N?(0,a.jsx)("div",{className:"mb-[30px] flex w-full justify-center md:mb-[calc(10/390*100vw)] min-l:mb-[calc(15/1024*100vw)] min-xl:mb-[calc(20/1440*100vw)] min-2xl:mb-[30px] md-l:mb-[calc(12/768*100vw)]",children:(0,a.jsxs)("div",{className:"flex w-[80%] items-center justify-center gap-[4px] bg-[#FEF4E5] py-[4px] md:w-full md:gap-[calc(4/390*100vw)] md:py-[calc(4/390*100vw)] min-l:gap-[calc(4/1024*100vw)] min-l:py-[calc(4/1024*100vw)] min-xl:gap-[calc(4/1440*100vw)] min-xl:py-[calc(4/1440*100vw)] md-l:gap-[calc(4/768*100vw)] md-l:py-[calc(4/768*100vw)]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",children:(0,a.jsx)("path",{d:"M7.04004 10.0377C7.03981 10.5845 6.31595 11.1315 5.45508 11.1315C4.59479 11.1315 3.8596 10.5845 3.85938 10.
10377H7.04004ZM5.50195 0.41272C5.98516 0.41272 6.37689 0.804527 6.37695 1.28772C6.37695 1.33054 6.37215 1.37252 6.36621 1.4137C6.38472 1.4164 6.40355 1.41967 6.42285 1.42249C8.18862 1.80529 9.19137 3.25313 9.19141 4.98303V8.07385L10.2627 8.81702C10.3623 8.88609 10.4218 8.99955 10.4219 9.12073C10.4219 9.32495 10.256 9.49084 10.0518 9.49084H0.948242C0.74402 9.49084 0.578125 9.32495 0.578125 9.12073C0.578153 8.99955 0.637744 8.88609 0.737305 8.81702L1.80859 8.07385V4.98206C1.80877 3.24745 2.81758 1.80489 4.57715 1.42151C4.59745 1.41856 4.61729 1.41554 4.63672 1.41272C4.63088 1.37189 4.62695 1.33016 4.62695 1.28772C4.62702 0.804527 5.01874 0.41272 5.50195 0.41272Z",fill:"#FF9900"})}),(0,a.jsx)(x.xv,{html:null==N?void 0:N.replace("%%",(null==r?void 0:null===(n=r.variant)||void 0===n?void 0:n.quantityAvailable)?null==r?void 0:null===(d=r.variant)||void 0===d?void 0:null===(o=d.quantityAvailable)||void 0===o?void 0:o.toString():"0"),className:"text-[12px] font-[600] text-[#FFA536] md:text-[calc(12/390*100vw)] min-l:text-[calc(12/1024*100vw)] min-xl:text-[calc(12/1440*100vw)] min-2xl:text-[12px] md-l:text-[calc(12/768*100vw)]"})]})}):null,W?(0,a.jsx)("div",{title:K,className:"flex w-full flex-col items-center md:mb-[calc(4/390*100vw)]  min-l:mb-[calc(6/1024*100vw)]  min-xl:mb-[calc(8/1440*100vw)]  min-2xl:mb-[8px] md-l:mb-[calc(6/768*100vw)]",children:(0,a.jsx)(x.X6,{className:(0,w.A)("line-clamp-2 w-full text-[calc(12/390*100vw)] font-[700] leading-[120%] md:h-[calc(36/390*100vw)] md:text-[calc(12/390*100vw)] md:leading-[140%] min-l:h-[calc(24/1024*100vw)] min-l:text-[calc(10/1024*100vw)] min-xl:h-[calc(34/1440*100vw)] min-xl:text-[calc(14/1440*100vw)] min-2xl:h-[45px] min-2xl:w-full min-2xl:text-[18px] md-l:h-[calc(60/768*100vw)] md-l:text-[calc(24/768*100vw)]"),html:K,as:"h4"})}):(0,a.jsx)(y.r,{href:G,title:K,className:"flex w-full flex-col items-center md:mb-[calc(4/390*100vw)]  min-l:mb-[calc(6/1024*100vw)]  min-xl:mb-[calc(8/1440*100vw)]  min-2xl:mb-[8px] md-l:mb-[calc(6/768*100vw)]",children:(0,a.jsx)(x.X6,{className:(0,w.A)("line-clamp-2 w-full text-[calc(12/390*100vw)] font-[700] leading-[120%] md:h-[calc(36/390*100vw)] md:text-[calc(12/390*100vw)] md:leading-[140%] min-l:h-[calc(24/1024*100vw)] min-l:text-[calc(10/1024*100vw)] min-xl:h-[calc(34/1440*100vw)] min-xl:text-[calc(14/1440*100vw)] min-2xl:h-[45px] min-2xl:w-full min-2xl:text-[18px] md-l:h-[calc(60/768*100vw)] md-l:text-[calc(24/768*100vw)]"),html:K,as:"h4"})})]}),(0,a.jsxs)("div",{className:"mt-[10px] flex items-center md:mb-[calc(12/390*100vw)] md:mt-0 min-l:mb-[calc(11/1024*100vw)] min-l:h-[calc(13/1024*100vw)] min-l:justify-start min-xl:mb-[calc(15/1440*100vw)] min-xl:h-[calc(18/1440*100vw)] min-2xl:mb-[6px] min-2xl:h-[37.1px] md-l:mb-[calc(14/768*100vw)] md-l:mt-[calc(8/768*100vw)]",children:[W?(0,a.jsx)("div",{className:"flex h-full items-center justify-start",children:(0,a.jsx)("span",{className:"font-[700] text-[#86868C] md:text-[calc(14/390*100vw)] md:leading-[120%] min-l:text-[calc(13/1024*100vw)] min-xl:text-[calc(18/1440*100vw)] min-2xl:text-[24px] md-l:text-[calc(28/768*100vw)]",children:null==S?void 0:S.soldOut})}):(0,a.jsxs)("div",{className:"flex w-full items-baseline justify-start",children:[(0,a.jsx)("span",{className:"racking-tighter mr-[calc(8/390*100vw)] font-[700] leading-[150%]\n                  md:text-[calc(14/390*100vw)] md:leading-[120%] min-l:mr-[calc(9/1024*100vw)] min-l:text-[calc(13/1024*100vw)] min-xl:mr-[calc(9.5/1440*100vw)] min-xl:text-[calc(18/1440*100vw)] min-2xl:text-[24px] md-l:mr-[calc(9/768*100vw)] md-l:text-[calc(28/768*100vw)]\n                  ".concat(q.basePrice?"text-[#FF5900]":"text-[#000]"),children:q.price}),q.basePrice&&(0,a.jsx)("span",{className:"old-price racking-tighter text-[calc(12/390*100vw)] font-[600] leading-[140%] text-[#86868C] line-through md:text-[calc(12/390*100vw)] min-l:text-[calc(9/1024*100vw)] min-xl:text-[calc(12/1440*100vw)] min-2xl:text-[16px] md-l:text-[calc(23.64/768*100vw)]",children:q.basePrice})]}),(null==v?void 0:v.showCopyCode)&&(0,a.jsx)("div",{className:"h-[24px] overflow-hidden md:h-[calc(18/390*100vw)] min-l:h-[calc(22/1024*100vw)] min-xl:h-[calc(24/1440*100vw)] min-2xl:h-[24px] md-l:h-[calc(20/768*100vw)]",children:(0,a.jsx)(P.Z,{className:"text-[16px] font-normal md:text-[calc(12/390*100vw)] min-l:text-[calc(14/1024*100vw)] min-xl:text-[calc(15/1440*100vw)] min-2xl:text-[16
1px] md-l:text-[calc(13/768*100vw)]",s:{code:"md:max-w-[50%] md:overflow-hidden md:text-ellipsis"},code:r.discountCode||""})})]}),(0,a.jsx)("div",{className:(0,w.A)("flex md:flex-col md:justify-between min-l:gap-[calc(7/1024*100vw)] min-xl:gap-[calc(10/1440*100vw)] min-2xl:gap-[13px] md-l:flex-col md-l:gap-[calc(8/768*100vw)]",W?"justify-center":"justify-between"),children:W?(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] !border-none !px-0 font-[700] !text-[#fff] md:mb-[calc(10/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-[calc(12/768*100vw)] md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-[#86868C] [&::before]:!bg-transparent",variant:"blackBg",disabled:!0,children:null==S?void 0:S.soldOut}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] border !border-[#F5D549] !bg-transparent !px-0 font-[700] !text-[#000] md:mb-[calc(10/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-xl:hover:!bg-[#F5D549] min-xl:hover:!text-[#fff] min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-[calc(12/768*100vw)] md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-transparent [&::before]:!bg-transparent",loading:V.isMutating,variant:"blackBg",onClick:()=>{V.trigger({variants:[{quantity:1,variant:O}],discountCode:r.discountCode,gtmParams:{position:b}})},stroke:"#283F33",style:{borderColor:"#283F33"},children:null==S?void 0:S.addToCart}),(0,a.jsx)(j.x,{className:"text-[calc(14/390*100vw) !min-w-fit whitespace-nowrap rounded-[calc(5/1920*100vw)] border !border-[#F5D549] !bg-[#F5D549] !px-0 font-[700] !text-black md:mb-[calc(8/390*100vw)] md:!h-[calc(38/390*100vw)] md:w-full md:!text-[calc(14/390*100vw)] min-l:mb-0 min-l:!h-[calc(26/1024*100vw)] min-l:!w-[calc(78/1024*100vw)] min-l:!text-[calc(9/1024*100vw)] min-xl:!h-[calc(35/1440*100vw)] min-xl:!w-[calc(110/1440*100vw)] min-xl:!text-[calc(12/1440*100vw)] min-xl:hover:!bg-[#F5D549] min-xl:hover:!opacity-75 min-2xl:!h-[46px] min-2xl:!w-[148px] min-2xl:!text-[16px] min-xxl:rounded-[5px] md-l:mb-0 md-l:!h-[calc(74/768*100vw)] md-l:!text-[calc(27/768*100vw)] [&::after]:!bg-transparent [&::before]:!bg-transparent",loading:Y,variant:"blackBg",onClick:()=>{J({items:[{quantity:1,variant:O}],discountCode:r.discountCode,gtmParams:{position:b}})},style:{backgroundColor:"#F5D549",borderColor:"#F5D549",color:"#000"},children:null==S?void 0:S.buyNow})]})})]})]})},lq=t(50703),lZ=t.n(lq),lW=l=>{var e,t,i,n,o,d,r,x,v,u;let{data:p,oData:h,pageHandle:f,bgIsGray:b,itemIndex:j}=l,{title:N,subtitle:_,rightIcon:k,desc:C,viewMore:F,list:I,id:B,bgImg:P,mobileBgImg:E,inventory:L,viewMoreBtn:R,hideModeBtn:O,tabList:K,countdown:U,defaultShowCount:H,showToggleBtn:q}=p,[Z,W]=(0,s.useState)(!1),[X,V]=(0,s.useState)(0),J=K&&K.length>0,Y=J?K[X]:{list:I,bgImg:P,mobileBgImg:E,inventory:L},$=G(null==Y?void 0:Y.list),Q=null==$?void 0:$[0],{value:ll}=(null==Q?void 0:Q.couponDiscount)||{},le=(0,z.L)(),{common:lt}=(0,c.l)(),{copywriting:li,coupon:ln}=(null===(e=le.metafields)||void 0===e?void 0:e.common)||{},{discountIcon:la}=null===(i=le.metafields)||void 0===i?void 0:null===(t=i.discount)||void 0===t?void 0:t.discounts;(0,A.t)({needOpenCart:!1}),(0,s.useMemo)(()=>{var l,e;return!(null==Q?void 0:null===(l=Q.variant)||void 0===l?void 0:l.availableForSale)||(null==Q?void 0:null===(e=Q.variant)||void 0===e?void 0:e.price.amount)==T.Ag},[null==Q?void 0:Q.variant]),(0,s.useMemo)(()=>{var l,e;return"/products/".concat(null==Q?void 0:null===(l=Q.product)||void 0===l?void 0:l.handle,"?variant=").concat((0,M.Ll)((null==Q?void 0:null===(e=Q.variant)||void 0===e?void 0:e.id)||""),"?ref=").concat(f)},[null==Q?void 0:Q.product,null==Q?void 0:Q.variant,f]),Y.bgImg&&Y.mobileBgImg;let lc=(J?Y.defaultShowCount:null)||H||4,lo=!1!==q,ld=lo&&(null==$?void 0:$.length)>lc,lr=!lo||Z?$:null==$?void 0:$.slice(0,lc),ls=l=>{if(window.dataLayer){var e;window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"lp_navigation",event_parameters:{navigation:(null===(e=K[l])||void 0===e?void 0:e.title)||"",page_group:"Activity Page_"+f}})}V(l),W(!1)};return(0,a.jsx)("div",{id:B,className:"w-full ",children:(0,a.jsxs)("div",{className:" mx-auto md:w-[calc(358/390*100vw)] min-l:w-[calc(760/1024*100vw)]  min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(705/768*100vw)] ".concat(0===j?"md:pt-0":""),children:[(0,a.jsxs)("div",{className:"relative mb-[calc(70/1920*100vw)] min-2xl:mb-[70px] md-l:mb-[calc(30/768*100vw)]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start l:items-center",children:[(0,a.jsxs)("div",{className:(0,w.A)("flex w-full items-start justify-between gap-[24px] md:gap-[calc(16/390*100vw)] l:flex-col l:items-center",{"min-l:!mt-[calc(78/1024*100vw)]  min-xl:!mt-[99px] min-2xl:!mt-[130px]":null==U?void 0:U.countdownTime}),children:[(0,a.jsx)("div",{className:(0,w.A)({"min-l:!mt-[calc(70/1024*100vw)]  min-xl:!mt-[99px] min-2xl:!mt-[130px]":!(null==U?void 0:U.countdownTime)}
1),children:(0,a.jsx)(S,{title:N,subTitle:_,rightIcon:k,className:"!w-fit  !pb-0 !pt-0 md:!mt-[calc(40/390*100vw)] md:mb-0  l:!px-0   min-l:mt-0 md-l:mt-[calc(78/768*100vw)]"})}),(null==U?void 0:U.countdownTime)&&(0,a.jsx)("div",{className:"flex-shrink-0 pt-[4px]  min-2xl:pt-[6px]",children:(0,a.jsx)(g,{data:U})})]}),J&&(0,a.jsx)("div",{className:"".concat(lZ().tabScrollContainer," mt-[16px] w-full overflow-x-auto md:mt-[calc(12/390*100vw)] min-l:mt-[calc(16/1024*100vw)] min-xl:mt-[calc(12/1440*100vw)] min-2xl:mt-[24px] md-l:mt-[calc(47/768*100vw)] "),children:(0,a.jsx)("div",{className:"flex w-fit justify-start gap-[0px] rounded-full bg-[#719564] p-[0px] md:gap-[calc(4/390*100vw)] md:rounded-full md:p-[calc(4/390*100vw)] min-l:rounded-none  min-xl:rounded-none min-2xl:rounded-none md-l:gap-[calc(4/768*100vw)] md-l:p-[calc(4/768*100vw)]",children:K.map((l,e)=>(0,a.jsx)("button",{onClick:()=>ls(e),className:"whitespace-nowrap rounded-full font-[700] transition-all md:rounded-full md:px-[calc(20/390*100vw)] md:py-[calc(10/390*100vw)] l:text-[calc(12.13/390*100vw)]  min-l:rounded-none min-l:px-[calc(20/1024*100vw)] min-l:py-[calc(8/1024*100vw)] min-l:text-[calc(14/1024*100vw)] min-xl:rounded-none min-xl:px-[calc(20/1440*100vw)] min-xl:py-[calc(8/1440*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:rounded-none min-2xl:px-[20px] min-2xl:py-[8px] min-2xl:text-[20px] md-l:px-[calc(40/768*100vw)] md-l:py-[calc(20/768*100vw)] md-l:text-[calc(28/768*100vw)]\n                       ".concat(X===e?"bg-[#F5D549] text-white l:text-[#000]":"bg-transparent text-[#FFFFFF] hover:bg-[#F5D549] hover:text-white"),children:l.title},"tab-".concat(e,"-").concat(l.title||e)))})})]}),K&&K.length>0&&(null===(o=K[X])||void 0===o?void 0:null===(n=o.viewMore)||void 0===n?void 0:n.txt)&&(0,a.jsx)("div",{className:"absolute bottom-0 right-0 flex  w-full items-center justify-end gap-[24px] md:mb-0 md:mt-[calc(12/390*100vw)] l:relative l:justify-start min-l:text-[calc(20/1024*100vw)] min-l:font-bold min-xl:text-[calc(16/1440*100vw)] min-2xl:text-[20px] md-l:mt-[calc(47/768*100vw)] md-l:text-[calc(28/768*100vw)]   ",children:(0,a.jsxs)(y.r,{href:(null===(r=K[X])||void 0===r?void 0:null===(d=r.viewMore)||void 0===d?void 0:d.link)?K[X].viewMore.link+"?ref="+f:"",className:"flex-shrink-0 text-[20px] font-bold text-[#474747] md:mb-0 md:text-[calc(16/390*100vw)] min-l:text-[calc(10/1024*100vw)] min-l:font-bold  min-xl:text-[calc(16/1440*100vw)] min-2xl:text-[20px] md-l:text-[calc(28/768*100vw)] ".concat((null===(x=K[X])||void 0===x?void 0:x.desc)?"":"min-l:-mt-[30px]"),children:[null===(u=K[X])||void 0===u?void 0:null===(v=u.viewMore)||void 0===v?void 0:v.txt,(0,a.jsx)(D.J,{name:"arrow-right",width:24,height:24})]})})]}),(0,a.jsxs)("div",{children:[Y.bgImg&&Y.mobileBgImg&&(0,a.jsx)("div",{className:"relative overflow-hidden l:mb-[calc(21/390*100vw)] l:h-[calc(202/390*100vw)] l:w-[calc(358/390*100vw)] min-md:mb-[10px] min-md:w-full",children:(0,a.jsx)(m.t,{url:Y.bgImg,mobileUrl:Y.mobileBgImg,className:"h-full w-full",mobileWidth:1023})}),(0,a.jsx)("div",{className:"grid md:w-[calc(358/390*100vw)] md:gap-[calc(10/390*100vw)] l:grid-cols-2 min-md:gap-[14.19px] min-l:w-[calc(760/1024*100vw)] min-l:grid-cols-4 min-xl:w-[calc(1068/1440*100vw)] min-2xl:w-[1424px] md-l:w-[calc(705/768*100vw)]",children:lr&&(null==lr?void 0:lr.length)>0&&(null==lr?void 0:lr.map((l,e)=>{var t,i;return(0,a.jsx)("div",{className:"limited-deals-item h-full",children:(0,a.jsx)(lH,{title:N,data:h,mobileDiscountImg:h.mobileDiscountImg,discountImg:h.discountImg,soldOutUrl:null==h?void 0:h.soldOutUrl,productItem:l,bgIsGray:b,pageHandle:f,inventory:Y.inventory})},"product-".concat((null==l?void 0:null===(t=l.variant)||void 0===t?void 0:t.id)||(null==l?void 0:null===(i=l.variant)||void 0===i?void 0:i.sku)||e))}))},"tab-products-".concat(X)),ld&&(0,a.jsxs)("button",{onClick:()=>W(!Z),className:"mt-[24px] flex w-full items-center justify-center gap-[8px] text-[18px] font-[700] text-[#474747] transition-all hover:opacity-80 md:mt-[calc(16/390*100vw)] md:text-[calc(14/390*100vw)] min-l:mt-[calc(8/1024*100vw)] min-l:justify-start min-l
1:text-[calc(11/1024*100vw)]  min-xl:mt-[calc(12/1440*100vw)] min-xl:text-[calc(16/1440*100vw)] min-2xl:mt-[16px] min-2xl:text-[20px] md-l:mt-[calc(40/768*100vw)] md-l:text-[calc(32/768*100vw)]",children:[(0,a.jsx)("span",{children:Z?O||"Hide More":R||"View More"}),(0,a.jsx)(D.J,{name:"arrow-right",width:24,height:24,className:"text-white transition-transform ".concat(Z?"-rotate-90":"rotate-90")})]})]})]})})},lG=l=>{let{id:e,data:t,pageHandle:i}=l,{brandList:n,title:c,subTitle:o,rightIcon:d}=t;return(0,a.jsxs)("div",{id:e,children:[(0,a.jsx)(S,{id:e,title:c,subTitle:o,rightIcon:d}),n.map((l,e)=>(0,a.jsx)(lW,{itemIndex:e,oData:t,data:l,pageHandle:i,bgIsGray:!1},"brand-".concat(l.id||l.title||e)))]})},lX=l=>{var e,t,i;let{page:n}=l,{component:x}=(null==n?void 0:n.metafields)||{},m=null==n?void 0:n.handle,[v,u]=(0,s.useState)(!1);(0,s.useEffect)(()=>{u(/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()))},[]);let[p,w]=(0,s.useState)(!1);(0,s.useEffect)(()=>{w("true"===localStorage.getItem("isInApp"))},[]);let{setBodyBg:h}=(0,o.l)();return(0,r.Z)(()=>{h("#F5D549")}),(0,s.useEffect)(()=>{"scrollRestoration"in history&&(history.scrollRestoration="manual");
1let l=document.createElement("style");return l.id="spring-campaign-custom-styles",l.innerHTML="\n      /* 取消一级导航的 sticky 定位,让它们可以正常滚动 */\n      #announcementBar {\n        position: relative !important;\n        top: auto !important;\n      }\n\n      /* 取消 PC 端 Header 的 sticky 定位 */\n      .sticky.top-\\[45px\\].z-\\[53\\] {\n        position: relative !important;\n        top: auto !important;\n      }\n\n      /* 取消移动端 MobileHeader 的 sticky 定位 */\n      .sticky.top-\\[45px\\].z-\\[56\\] {\n        position: relative !important;\n        top: auto !important;\n      }\n    ",document.head.appendChild(l),()=>{let l=document.getElementById("spring-campaign-custom-styles");l&&l.remove()}},[]),(0,s.useEffect)(()=>{let l=()=>{let l=document.getElementById("navTop");if(!l)return;let e=l.offsetTop;window.scrollTo({top:e,behavior:"instant"})},e=requestAnimationFrame(()=>{l()});return()=>{cancelAnimationFrame(e)}},[]),(0,a.jsx)(c.z.Provider,{value:{...n,common:null==n?void 0:null===(t=n.metafields)||void 0===t?void 0:null===(e=t.page)||void 0===e?void 0:e.common},children:(0,a.jsxs)("div",{className:"spring-campaign",style:{background:"#F6F8F1",fontFamily:"MontForAnker"},children:[p&&(0,a.jsx)(d.Z,{title:""}),null===(i=x._order)||void 0===i?void 0:i.map(l=>{var e,t,i,n,c,o,d,r;let s=null==l?void 0:l.split("_")[0];if(!x[l])return null;switch(s){case"navigation":return(0,a.jsx)(lK,{data:x[l]},l);case"banner":return(0,a.jsx)(b,{data:x[l]},l);case"mysteryBox":return(0,a.jsx)(lP,{id:(null===(e=x[l])||void 0===e?void 0:e.id)||l,data:x[l]},l);case"lottery":return(0,a.jsx)(lm,{id:(null===(t=x[l])||void 0===t?void 0:t.id)||l,config:x[l],myRewards:(null===(i=x[l])||void 0===i?void 0:i.rewardsData)||(null===(n=x[l])||void 0===n?void 0:n.myRewards)},l);case"newArrival":return(0,a.jsx)(lU,{id:(null===(c=x[l])||void 0===c?void 0:c.id)||l,data:x[l]},l);case"PrimeDaySale":return(0,a.jsx)(lG,{id:(null===(o=x[l])||void 0===o?void 0:o.id)||l,data:x[l],pageHandle:m},l);case"branchVenueEntrance":return(0,a.jsx)(B,{id:(null===(d=x[l])||void 0===d?void 0:d.id)||l,data:x[l],pageHandle:m},l);case"footer":return(0,a.jsx)($,{id:(null===(r=x[l])||void 0===r?void 0:r.id)||l,data:x[l]},l);case"flashSale":return(0,a.jsx)(V,{data:x[l],pageHandle:m},l);case"flashSaleNoCountdown":return(0,a.jsx)(Y,{data:x[l],pageHandle:m},l);case"flashSaleCategories":return(0,a.jsx)(J,{data:x[l],pageHandle:m},l);case"MiniCart":let v=(null==x?void 0:x.MiniCartForBranch)||(null==x?void 0:x.mysteryBox);return(0,a.jsx)(lI,{lang:x[l],MiniCartData:v,pageHandle:m},l);default:return null}})]})})}},35119:function(l,e,t){"use strict";t.d(e,{X:function(){return c}});var i=t(12306),n=t(18396),a=t(4716);let c=l=>{var e;return{id:(0,i.d4)(l.variant_shopify_id),title:l.variant_title,price:{amount:Number(l.variant_price),currencyCode:l.currency},priceV2:{amount:Number(l.variant_price),currencyCode:l.currency},currentlyNotInStock:Number(l.variant_price)===a.Ag,sku:l.sku,metafields:{},availableForSale:l.available_for_sale,product:{id:(0,i.d4)(l.product_shopify_id),title:l.product_title,productType:l.product_type,handle:l.handle,options:null===(e=l.product_options)||void 0===e?void 0:e.map(n.VO)},image:{src:l.variant_image,url:l.variant_image,originalSrc:l.variant_image,transformedSrc:l.variant_image},selectedOptions:l.selected_options}}},95625:function(){},4500:function(l){l.exports={root:"Button_root__lJ06g",loading:"Button_loading__RIBUP",disabled:"Button_disabled__MCSJJ",brandBorder:"Button_brandBorder__OEs5n",gradientBg:"Button_gradientBg__kpuqc",solixGradientBg:"Button_solixGradientBg__kvKK4",blackBorder:"Button_blackBorder__GlyCp",whiteBorder:"Button_whiteBorder__EIoOl",whiteBrand:"Button_whiteBrand___rQlL",whiteSolixBrand:"Button_whiteSolixBrand__A1D25",blackBg:"Button_blackBg__qfDa_",blackBgLight:"Button_blackBgLight__1XPBI",loadingDots:"Button_loadingDots__o67et",spin:"Button_spin__rs_9n",amazonLink:"Button_amazonLink__QlFP8",christmasRed:"Button_christmasRed__XVM5i",newYear:"Button_newYear__Lw5z7",christmasRedBorder:"Button_christmasRedBorder__14w9n",christmasGreen:"Button_christmasGreen__nXzF4"}},26292:function(l){l.exports={openButton:"MiniCart_openButton__rzWlX",hideScroll:"MiniCart_hideScroll__uPiMl",prodItem:"MiniCart_prodItem__mgSj_",remove:"MiniCart_remove__g8JhC",quantity:"MiniCart_quantity__H4nyT",part:"MiniCart_part__GteZw"}},50703:function(l){l.exports={MiniIPad:"PrimeDaySale_MiniIPad__c2Vxm",tabScrollContainer:"PrimeDaySale_tabScrollContainer__ABt79"}}}]);

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.