PageSourceSearch

https://www.anker.com/_next/static/chunks/81792.f2b0d5a93572215e.js

js anker.com collected 2026-10-01 08:39:16 UTC 44,893 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="3dfaf31a-a60d-475b-8e15-968475812369",e._sentryDebugIdIdentifier="sentry-dbid-3dfaf31a-a60d-475b-8e15-968475812369")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81792],{56749:function(e,l,i){"use strict";var t=i(52676),n=i(8966),s=i.n(n);l.Z=e=>{let{to:l,onClick:i=()=>{},...n}=e;return l?(0,t.jsx)("a",{className:s().link,href:l,"aria-hidden":"true",tabIndex:"-1",onClick:i,...n}):null}},95934:function(e,l,i){"use strict";i.d(l,{M:function(){return x}});var t=i(52676),n=i(75271),s=i(82187),o=i.n(s),a=i(28179),d=i(87577),r=i(38459),u=i(18659),c=i(9983);let x=e=>{var l;let{item:i}=e;return(0,t.jsx)("div",{className:"my-[8px]  w-full border-[1px] border-[#CECECF]",children:Array.isArray(null==i?void 0:i.valueList)&&(null==i?void 0:null===(l=i.valueList)||void 0===l?void 0:l.map((e,l)=>(0,t.jsxs)("div",{className:"flex border-b-[1px] border-[#CECECF] last:border-b-0",children:[(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.name},className:"w-[30%] flex-shrink-0 border-r-[1px] border-[#CECECF] bg-[#F5F5F7] p-[8px] text-[#1D1D1FBF]/75"}),(0,t.jsx)("div",{style:{"word-break":"break-all"},dangerouslySetInnerHTML:{__html:null==e?void 0:e.label},className:"flex-1 p-[8px] text-[#1D1D1FBF]/75"})]},l+"_"+((null==e?void 0:e.label)||""))))})},v=e=>{var l,i,n;let{curInfos:s,description:d,shopCommon:u,product:c,preRender:x,shopPreRender:v,isMobile:p,s:m}=e;return(null==s?void 0:null===(l=s.descriptionSetting)||void 0===l?void 0:l.showFold)&&d?(0,t.jsx)(a.Z,{settings:(null==s?void 0:s.descriptionSetting)||u,className:"!border-transparent",product:c,hideLearnMore:(null==x?void 0:x.hideLearnMore)||(null==v?void 0:v.hideLearnMore),cns:{learnMore:"!font-[600] !p-0 md:!text-[16px] !text-[#1f1f1f] w-full justify-end",svgFill:"#1f1f1f"},s:m,minHeight:p?null==s?void 0:null===(i=s.descriptionSetting)||void 0===i?void 0:i.foldHMob:null==s?void 0:null===(n=s.descriptionSetting)||void 0===n?void 0:n.foldH,children:d&&(0,t.jsx)(r.Z,{className:o()(null==m?void 0:m.descText),html:d})}):d&&(0,t.jsx)(r.Z,{className:o()(null==m?void 0:m.descText),html:d})};l.Z=e=>{var l,i,s,a,p,m,h,f,g,j,b,_,w,y,k,N,L;let{description:C,curInfos:S,shopInfos:Z,shopCommon:M,variant:I,setShowProductSpecesPop:F,setShowProductComparePop:P,fromCollection:H,link:T,abtest:D,preRender:z,shopPreRender:B,isMobile:V,product:U,s:E}=e,[A,O]=(0,n.useState)(null),[R,q]=(0,n.useState)(!1),[G,K]=(0,n.useState)(!1),W=(null==S?void 0:null===(i=S.key_features)||void 0===i?void 0:null===(l=i.list)||void 0===l?void 0:l.filter(e=>{var l;return!(null==Z?void 0:null===(l=Z.key_features_hideKey)||void 0===l?void 0:l.includes(e.key))}))||[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[16px] pr-[16px] l:gap-[12px] l:pr-0",children:["b"===D&&(null==S?void 0:S.descriptionSetting)?(0,t.jsx)(v,{curInfos:S,description:C,shopCommon:M,product:U,preRender:z,shopPreRender:B,isMobile:V,s:E}):(0,t.jsxs)("div",{className:"flex flex-col text-[16px] leading-[1.2] l:text-[14px]",children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full cursor-pointer items-center justify-between font-[700] focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#639af9]",onClick:()=>{var e,l,i;return(null==S?void 0:null===(l=S.key_features)||void 0===l?void 0:null===(e=l.list)||void 0===e?void 0:e.length)>0&&O({popTitle:null==Z?void 0:Z.key_features_title,list:null==S?void 0:null===(i=S.key_features)||void 0===i?void 0:i.list})},"aria-label":null==Z?void 0:Z.key_features_title,children:[(null==Z?void 0:Z.key_features_title)&&(0,t.jsx)(r.Z,{className:"text-[16px]",html:null==Z?void 0:Z.key_features_title}),(null==S?void 0:null===(a=S.key_features)||void 0===a?void 0:null===(s=a.list)||void 0===s?void 0:s.length)>0&&(0,t.jsx)(d.Z,{iconKey:"arrowRight",width:24,height:24,className:"mb-[3px] rotate-[0deg] transition-all duration-200 [&_path]:stroke-[#1f1f1d]"})]}),(0,t.jsx)("button",{type:"button",className:"mt-[8px] block h-auto w-full cursor-pointer text-left",onClick:()=>{var e,l,i;return(null==S?void 0:null===(l=S.key_features)||void 0===l?void 0:null===(e=l.list)||void 0===e?void 0:e.length)>0&&O({popTitle:null==Z?void 0:Z.key_features_title,list:null==S?void 0:null===(i=S.key_features)||void 0===i?void 0:i.list})},"aria-label":"".concat(null==Z?void 0:Z.key_features_title," details"),children:(null==W?void 0:W.length)>0?(0,t.jsx)("ul",{className:"flex list-disc flex-col gap-[4px] pl-[20px]",children:null==W?void 0:W.map((e,l)=>(0,t.jsx)("li",{className:"font-[600]",children:(0,t.jsx)(r.Z,{className:"",html:null==e?void 0:e.key})},l))}):(0,t.jsx)(r.Z,{className:o()("pt-[8px] font-[600] leading-[1.3] [&_strong]:font-[700] [&_ul]:!mb-0"),html:C})})]}),(null==S?void 0:null===(m=S.key_parameter)||void 0===m?void 0:null===(p=m.list)||void 0===p?void 0:p.length)>0&&"b"!==D&&(0,t.jsxs)("div",{className:o()("flex flex-col text-[16px] leading-[1.2] l:text-[14px]","border-t border-[#ddd] pt-[16px] l:pt-[12px]"),children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full cursor-pointer items-center justify-between font-[700]",onClick:()=>q(!R),"aria-expanded":R,"aria-label":"Toggle ".concat(null==Z?void 0:Z.key_parameter_title),children:[(0,t.jsx)(r.Z,{className:"text-[16px]",html:null==Z?void 0:Z.key_parameter_title}),(0,t.jsx)(d.Z,{iconKey:"arrowRight",width:24,height:24,className:o()("mb-[3px] transition-all duration-200 [&_path]:stroke-[#1f1f1d]",R?"rotate-[270deg]":"rotate-[90deg]")})]}),(0,t.jsxs)("div",{className:o()(R?"mt-[8px] h-auto":"h-0 overflow-hidden"),children:[(0,t.jsx)("ul",{className:"flex list-disc flex-col gap-[4px] pl-[20px]",children:null==S?void 0:null===(f=S.key_parameter)||void 0===f?void 0:null===(h=f.list)||void 0===h?void 0:h.map((e,l)=>(0,t.jsxs)("li",{className:"font-[600]",children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.key)+": "}}),!D&&(null==e?void 0:e.valueList)?(0,t.jsx)(x,{item:e}):(0,t.jsx)("span",{className:"ml-[3px] text-[#777]",dangerouslySetInnerHTML:{__html:null==e?void 0:e.value}})]},l))}),(null==I?void 0:null===(g=I.metafields)||void 0===g?void 0:g.specs)&&F&&(0,t.jsx)("button",{type:"button",className:"inline-block cursor-pointer pt-[8px] font-[700] text-anker-color underline",dangerouslySetInnerHTML:{__html:null==M?void 0:M.showSpecsBtn},onClick:()=>F(!0)})]})]}),(null==S?void 0:null===(b=S.sustainability_features)||void 0===b?void 0:null===(j=b.list)||void 0===j?void 0:j.length)>0&&(0,t.jsxs)("div",{className:o()("flex flex-col text-[16px] leading-[1.2] l:text-[14px]","border-t border-[#ddd] pt-[16px] l:pt-[12px]"),children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full cursor-pointer items-center justify-between font-[700]",onClick:()=>K(!G),"aria-expanded":G,"aria-label":"Toggle ".concat(null==Z?void 0:null===(_=Z.sustainability_features_data)||void 0===_?void 0:_.title),children:[(0,t.jsx)(r.Z,{className:"text-[16px]",html:null==Z?void 0:null===(w=Z.sustainability_features_data)||void 0===w?void 0:w.title}),(0,t.jsx)(d.Z,{iconKey:"arrowRight",width:24,height:24,className:o()("mb-[3px] transition-all duration-200 [&_path]:stroke-[#1f1f1d]",G?"rotate-[270deg]":"rotate-[90deg]")})]}),(0,t.jsxs)("div",{className:o()(G?"mt-[8px] h-auto":"h-0 overflow-hidden"),children:[(0,t.jsx)(r.Z,{className:"text-[16px] font-[600]",html:null==Z?void 0:null===(y=Z.sustainability_features_data)||void 0===y?void 0:y.desc}),(0,t.jsx)("div",{className:"mt-[16px] flex gap-[16px] pr-[24px] text-[14px] l:mt-[12px] l:flex-col l:gap-[10px]",children:null==S?void 0:null===(N=S.sustainability_features)||void 0===N?void 0:null===(k=N.list)||void 0===k?void 0:k.map((e,l)=>{var i,n;let s=null==Z?void 0:Z.sustainability_features_data,a=null==s?void 0:null===(i=s.partnerList)||void 0===i?void 0:i.find(l=>(null==l?void 0:l.id)===(null==e?void 0:e.partner));return(0,t.jsxs)("div",{className:o()("flex-1",l>0&&"l:border-t l:border-[#DDD] l:pt-[16px]"),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.Z,{className:"font-[700]",html:null==a?void 0:a.tit}),(0,t.jsx)(r.Z,{className:"mt-[4px] font-[600] text-[#86868C]",html:null==a?void 0:a.txt})]}),null==e?void 0:null===(n=e.method)||void 0===n?void 0:n.map((e,l)=>{var i;let n=null==s?void 0:null===(i=s.methodList)||void 0===i?void 0:i.find(l=>(null==l?void 0:l.id)===e);return(0,t.jsxs)("div",{className:"mt-[16px] l:mt-[10px]",children:[(0,t.jsx)(r.Z,{className:"font-[700]",html:null==s?void 0:s.asCertifiedBy}),(0,t.jsx)(r.Z,{className:"mt-[4px] font-[600] text-[#86868C]",html:null==n?void 0:n.txt}),(0,t.jsx)(u.Z,{className:"mt-[4px] w-[76px] l:w-[60px]",source:null==n?void 0:n.image})]},l)})]},l)})})]})]}),H&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:T,children:(0,t.jsx)(r.Z,{html:(null==M?void 0:M.viewMore)||"View More",className:"text-left text-[16px] font-[700] leading-[1.25] text-[--anker-color] underline l:text-[14px] l:leading-[1.28]"})})})]}),(0,t.jsx)(c.Z,{headerTitle:null==A?void 0:A.popTitle,onClose:()=>{O(null)},show:A,children:(0,t.jsx)("div",{className:"flex flex-col gap-[16px] leading-[1.2]",children:null==A?void 0:null===(L=A.list)||void 0===L?void 0:L.map((e,l)=>(0,t.jsxs)("div",{className:"text-[16px]",children:[(0,t.jsx)(r.Z,{className:"font-[700]",html:null==e?void 0:e.key}),(0,t.jsx)(r.Z,{className:"mt-[4px] font-[600] text-[#777]",html:null==e?void 0:e.value})]},l))})})]})}},66025:function(e,l,i){"use strict";i.d(l,{t:function(){return o}});var t=i(52676),n=i(75271),s=i(98662);let o=e=>{let{url:l="",id:i="",className:o="",imgClassName:a,mobileUrl:d,mobileWidth:r=767,source:u="",alt:c,loading:x="lazy",...v}=e,p=(0,n.useMemo)(()=>u.split(", ").map(e=>
1e.split(" ").filter(Boolean)).map(e=>({url:e[0],screen:e[1]?parseInt(e[1]):0})),[u]),m=(0,n.useMemo)(()=>l||(p.length?p[0].url:""),[p,l]);return(0,t.jsxs)("picture",{className:(0,s.cn)("block ".concat(o)),id:i,children:[p.length&&p.sort((e,l)=>e.screen-l.screen).filter(e=>!!e.screen).map((e,l)=>(0,t.jsx)("source",{srcSet:e.url,media:"(max-width: ".concat(e.screen,"px)")},l)),d&&(0,t.jsx)("source",{srcSet:d,media:"(max-width: ".concat(r,"px)")}),(0,t.jsx)("img",{className:(0,s.cn)("block w-full",a),loading:x,src:m,alt:c,...v})]})}},9983:function(e,l,i){"use strict";var t=i(52676),n=i(75271),s=i(77652),o=i(82187),a=i.n(o),d=i(87306),r=i(38459),u=i(56336),c=i(50589),x=i.n(c);l.Z=e=>{let{children:l,headerTitle:i,onClose:o,show:c,cns:v,id:p}=e,m=(0,n.useRef)(),h=(0,n.useRef)();return(0,u.P)({isActive:c,containerRef:h,focusFirst:!0,restoreFocus:!0,preventScroll:!0}),(0,n.useEffect)(()=>{m.current&&m.current.focus();let e=h.current;return e&&c&&(0,s.Qp)(e,{reserveScrollBarGap:!0}),()=>{(0,s.tP)()}},[c]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:a()(x().root,!c&&"hidden"),tabIndex:"-1",ref:m,children:(0,t.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,t.jsx)("button",{type:"button","aria-label":"close",className:x().backdrop,onClick:o})})}),(0,t.jsx)("div",{onKeyDown:e=>{"Escape"===e.code&&o()},className:a()(null==v?void 0:v.content,"fixed z-[999999] w-[90%] max-w-[640px] outline-none transition-all ease-in-out l:w-full l:max-w-none","left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 l:left-0 l:top-auto l:translate-x-0 l:translate-y-0",c?"block l:bottom-0":"hidden l:bottom-[-150%] l:block"),ref:h,tabIndex:"-1",children:(0,t.jsxs)("div",{className:"bg-[#fff]",children:[(0,t.jsx)("header",{className:a()("flex justify-between px-[32px] l:px-[24px]",i?"border-b border-[#e2e2e2] py-[24px]":"pt-[24px]",null==v?void 0:v.header),children:(0,t.jsx)(r.Z,{className:"text-[20px] font-[700] l:text-[16px]",html:i})}),(0,t.jsx)(d.Z,{tabIndex:0,role:"button","aria-label":"close",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},className:a()("absolute z-[1000] size-[22px] cursor-pointer focus-visible:!outline-2 focus-visible:!outline-offset-2 focus-visible:!outline-[#639af9]",i?"right-[32px] top-[24px]":"right-[16px] top-[16px]"),onClick:o}),(0,t.jsx)("div",{className:a()(null==v?void 0:v.children,"max-h-[80vh] overflow-y-auto p-[32px] l:px-[24px] l:py-[16px]"),id:p,children:l})]})})]})}},11599:function(e,l,i){"use strict";i.d(l,{d:function(){return n}});var t=i(75271);let n=()=>{let[e,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=()=>{l(window.innerWidth<=1024)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},61289:function(e,l,i){"use strict";i.d(l,{_K:function(){return n},mb:function(){return t}}),i(52676),i(75271);let t=e=>l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),e(l))},n=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{role:i="button",tabIndex:n=0,ariaLabel:s}=l,o="function"==typeof e&&0===e.length?l=>e():e,a={role:i,tabIndex:n,onClick:o,onKeyDown:t(o)};return s&&(a["aria-label"]=s),a}},37151:function(e,l,i){"use strict";i.d(l,{t:function(){return Y},x:function(){return Q}});var t=i(52676),n=i(75271),s=i(34064),o=i(47554),a=i(82187),d=i.n(a),r=i(63440),u=i(16026),c=i(40611),x=i(98662),v=i(95934),p=i(97200),m=i(16093),h=i(23663),f=i(96496),g=i(96829),j=i(38459),b=i(33196),_=i(33133),w=i(8239),y=i(38600),k=i(63073),N=i(53083),L=i(44999),C=i(11599),S=i(63564),Z=i(33588),M=i(56693),I=i(35346),F=e=>{var l;let{baseAmount:i,amount:n,product:o,className:a=""}=e,{locale:d}=(0,s.useRouter)(),{metafields:u}=(0,h.L)(),x=i>n;return(0,t.jsxs)("div",{className:"flex items-center ".concat(a),children:[(0,t.jsx)("span",{className:"text-[24px] font-extrabold l:text-[22px]",children:(0,c.T4)({amount:n,currencyCode:o.price.currencyCode,locale:d})}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ml-1 text-[16px] leading-none text-[#999999] line-through l:text-sm",children:(0,c.T4)({amount:i,currencyCode:o.price.currencyCode,locale:d})}),(0,t.jsxs)("div",{className:"ml-1 bg-[#FF9900] p-1 font-bold leading-tight text-white l:text-[12px]",children:[(0,t.jsx)("span",{className:"mr-1",children:null==u?void 0:null===(l=u.shopCommon)||void 0===l?void 0:l.save}),(0,c.T4)({amount:new r.Z(i).minus(n).toNumber(),currencyCode:o.price.currencyCode,locale:d})]})]})]})},P=i(66025),H=e=>{let{data:l}=e;return(0,t.jsx)("div",{className:"mt-[16px] grid grid-cols-2 gap-x-[16px] gap-y-[8px] pl-[8px] text-[#86868C] l:hidden l:gap-[16px]",children:l.reasons.map((e,l)=>(0,t.jsxs)("div",{className:"flex items-center gap-[8px] l:gap-[12px]",children:[(0,t.jsx)("div",{className:"size-[20px] shrink-0",children:(0,t.jsx)(P.t,{mobileWidth:1024,url:e.icon,mobileUrl:e.icon,alt:e.title})}),(0,t.jsx)("div",{children:(0,t.jsx)(j.Z,{html:e.title,className:"text-[14px] font-semibold capitalize"})})]},l))})},T=i(10293),D=i.n(T),z=i(80478),B=i.n(z),V=i(24143),U=i(78042),E=i(18659),A=i(32904),O=i.n(A);i(72599),i(28688),i(33043),i(56395);let R=D()(()=>i.e(1344).then(i.bind(i,1344)),{loadableGenerated:{webpack:()=>[1344]}}),q=D()(()=>Promise.all([i.e(82386),i.e(61785)]).then(i.bind(i,61785)),{loadableGenerated:{webpack:()=>[61785]}}),G=D()(()=>Promise.all([i.e(53139),i.e(45468)]).then(i.bind(i,45468)),{loadableGenerated:{webpack:()=>[45468]}}),K=D()(()=>Promise.all([i.e(78223),i.e(26550),i.e(81462),i.e(22206),i.e(48685)]).then(i.bind(i,48685)),{loadableGenerated:{webpack:()=>[48685]},ssr:!1});function W(e){var l,i,s,o,a,d,r,u,c,v,p,m,h,f,g,b,_,y,k;let{thumbs:N,jointSwiperSlide:L,metafields:C,className:S="",variant:Z,products:M,sliderImages:I,curGallery:F,s:P={},showPagination:H=!1,isMobile:T,wrapperClassName:D="",preRender:z}=e,A={...O(),...P},{combineoptions_commoninfo:W,gallery:Q}
1=C,[Y,X]=(0,n.useState)(0),[$,ee]=(0,n.useState)(null),el=F||(null==Z?void 0:null===(l=Z.metafields)||void 0===l?void 0:l.gallery)||Q||{},[ei,et]=(0,n.useState)(null!==(k=null==el?void 0:null===(s=el.list)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:i.type)&&void 0!==k?k:"products"),en=(e,l)=>{if(!e||0===e.length)return[];if(!L)return e;let i=[];if(l)i.push([{...e[0],index:0}]);else{let l=[{...e[0],index:0}];e.length>1&&l.push({...e[1],index:1}),i.push(l)}let t=l?1:2;for(let l=t;l<e.length;l+=2){let t=[{...e[l],index:l}];l+1<e.length&&t.push({...e[l+1],index:l+1}),i.push(t)}let n=i[i.length-1];if(1===n.length&&e.length>1){let l=n[0].index,i={...e[l-1],index:l-1};n.unshift(i)}return i.flat().filter((e,l,i)=>l===i.findIndex(l=>l.url===e.url))},es=(0,n.useMemo)(()=>{var e,l;let i=null==el?void 0:null===(l=el.list)||void 0===l?void 0:null===(e=l.find(e=>(null==e?void 0:e.type)==="products"))||void 0===e?void 0:e.images;return(null==i?void 0:i.length)>0?T?i:en(i,!0):T?I:en(I,!0)},[el,T,I]),eo=(0,n.useMemo)(()=>{var e,l,i,t,n;if(null==$||$.slideTo(0),"scene"===ei){let e=(null==el?void 0:null===(n=el.list)||void 0===n?void 0:null===(t=n.find(e=>(null==e?void 0:e.type)==="scene"))||void 0===t?void 0:t.images)||[];return{imagesList:T?e:en(e,!1)}}return"video"===ei?(null==el?void 0:null===(e=el.list)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.type)==="video"))||{}:"3d"===ei?(null==el?void 0:null===(l=el.list)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.type)==="3d"))||{}:"3dModel"===ei?(null==el?void 0:null===(i=el.list)||void 0===i?void 0:i.find(e=>(null==e?void 0:e.type)==="3dModel"))||{}:{imagesList:es}},[ei,Z]);(0,n.useEffect)(()=>{var e,l,i;et(null!==(i=null==el?void 0:null===(l=el.list)||void 0===l?void 0:null===(e=l[0])||void 0===e?void 0:e.type)&&void 0!==i?i:"products")},[null==el?void 0:el.list,Z.id]);let ea=(0,n.useCallback)((e,l)=>{(0,w.RC)({event:"window_map_display",page_group:"Product Detail Page_".concat(Z.sku),image:"".concat(Number(l)+1,"_").concat(e.url)})},[Z]),ed=(0,n.useMemo)(()=>({modules:T?[V.W_,V.o3,V.LW,V.tl,V.pt]:[V.W_,V.o3,V.tl,V.pt],autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0}}),[T,N]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,x.cn)(A.ProductListingImage,D,A.ProductListingImageVersiond),children:[(0,t.jsxs)("div",{className:"relative h-full",children:[(0,t.jsxs)("div",{className:A.ProductListingImageBox,children:["products"===ei&&(0,t.jsxs)(U.tq,{onSwiper:ee,spaceBetween:10,...ed,navigation:!T&&(null==eo?void 0:null===(o=eo.imagesList)||void 0===o?void 0:o.length)>1,pagination:!!T&&!!H&&{},className:(0,x.cn)("relative size-full",S),onSlideChange:e=>X(e.realIndex),slidesPerGroup:1,watchSlidesProgress:!0,breakpoints:{0:{autoHeight:!0},768:{autoHeight:!1,slidesPerView:"auto",spaceBetween:"2px"}},children:[null==eo?void 0:null===(a=eo.imagesList)||void 0===a?void 0:a.map((e,l)=>(null==W?void 0:W.gallery_order)&&0===l?(0,t.jsx)(U.o5,{virtualIndex:l,children:(0,t.jsx)(G,{products:M,metafields:C})},"CombineImage"+l):(0,t.jsx)(U.o5,{virtualIndex:l,className:(0,x.cn)(A.swiperSlideBox,A.otherSlides,{[A.firstSlide]:0===l}),children:(0,t.jsx)("div",{className:"relative flex size-full gap-[2px]",children:(null==e?void 0:e.length)>0?(0,t.jsx)(t.Fragment,{children:null==e?void 0:e.map((e,l)=>(0,t.jsx)(E.Z,{alt:(null==e?void 0:e.alt)||(null==e?void 0:e.altText)||"This is Product Image",loading:"eager",className:"size-full items-center justify-center",imgClassName:"w-full h-full object-contain",source:"".concat(null==e?void 0:e.url)},l))}):(0,t.jsx)(E.Z,{alt:(null==e?void 0:e.alt)||(null==e?void 0:e.altText)||"This is Product Image",loading:"eager",className:"size-full items-center justify-center",imgClassName:(0,x.cn)("size-full object-fill xxl:object-cover",{"!object-contain":0===l}),source:"".concat(null==e?void 0:e.url)})})},l)),(null==el?void 0:el.upperRightCorner)&&(0,t.jsx)("div",{className:"absolute left-[-1px] top-0 z-[1]",children:null==el?void 0:null===(d=el.upperRightCorner)||void 0===d?void 0:d.map((e,l)=>(0,t.jsxs)("div",{className:A.upperRightCorner,children:[(0,t.jsx)(j.Z,{className:" text-[20px] font-bold leading-6 text-[#00BEFA] md:text-base",html:null==e?void 0:e.title}),(0,t.jsx)(j.Z,{className:" text-sm font-bold text-[#00BEFA] opacity-65 md:text-xs",html:null==e?void 0:e.describe})]},"".concat(l,"+").concat(null==e?void 0:e.title)))})]}
1,"ProductInfoLeftChg-products"),"scene"===ei&&(0,t.jsxs)(U.tq,{onSwiper:ee,loop:!0,spaceBetween:0,...ed,navigation:!T,pagination:!!T&&!!H&&{},className:(0,x.cn)("relative size-full",S),onSlideChange:e=>X(e.realIndex),children:[(null==Z?void 0:null===(u=Z.metafields)||void 0===u?void 0:null===(r=u.infos)||void 0===r?void 0:r.gift_image)&&0===Y&&(0,t.jsx)("div",{className:A.giftWrap,children:(0,t.jsx)(E.Z,{alt:(null==Z?void 0:null===(v=Z.metafields)||void 0===v?void 0:null===(c=v.infos)||void 0===c?void 0:c.gift_image_alt)||"This is Product Image",loading:(null==z?void 0:z.lazySwiper)?"lazy":"eager",className:"flex h-full w-auto items-center justify-center md:w-full",source:"".concat(null==Z?void 0:null===(m=Z.metafields)||void 0===m?void 0:null===(p=m.infos)||void 0===p?void 0:p.gift_image)})}),null==eo?void 0:null===(h=eo.imagesList)||void 0===h?void 0:h.map((e,l)=>(0,t.jsx)(U.o5,{virtualIndex:l,children:(0,t.jsx)("div",{className:"relative flex size-full gap-[2px]",children:(null==e?void 0:e.length)>0?(0,t.jsx)(t.Fragment,{children:null==e?void 0:e.map((e,i)=>(0,t.jsx)("a",{onClick:()=>ea(e,i),className:"h-full flex-1","data-fancybox":(null==e?void 0:e.fancyBox)||"singleBox",href:null==e?void 0:e.url,children:(0,t.jsx)("div",{className:"relative size-full",children:(0,t.jsx)(E.Z,{alt:(null==e?void 0:e.alt)||(null==e?void 0:e.altText)||"This is Product Image",loading:0!==l||(null==z?void 0:z.lazySwiper)?"lazy":"eager",className:"size-full items-center justify-center",imgClassName:"w-full h-full object-contain",source:"".concat(null==e?void 0:e.url)})})},"ProductInfoLeftChg-products-child"+i))}):(0,t.jsx)("div",{className:"relative size-full",children:(0,t.jsx)(E.Z,{alt:(null==e?void 0:e.alt)||(null==e?void 0:e.altText)||"This is Product Image",loading:0!==l||(null==z?void 0:z.lazySwiper)?"lazy":"eager",className:"size-full items-center justify-center",imgClassName:"w-full h-full object-contain",source:"".concat(null==e?void 0:e.url)})})})},"scene"+l+(null==e?void 0:e.url)))]},"ProductInfoLeftChg-scene"),"video"===ei&&(0,t.jsx)("div",{className:A.videoSwiper,children:(null==eo?void 0:eo.list)?(0,t.jsx)(U.tq,{onSwiper:ee,loop:!0,spaceBetween:0,...ed,navigation:!T,pagination:!!T&&!!H&&{},className:(0,x.cn)("relative size-full",S),onSlideChange:e=>X(e.realIndex),children:null==eo?void 0:null===(f=eo.list)||void 0===f?void 0:f.map((e,l)=>(0,t.jsx)(U.o5,{virtualIndex:l,children:(0,t.jsx)("div",{className:"animated fadeIn video_galleryItem size-full",children:(0,t.jsx)(q,{data:e})})},"video"+l+(null==e?void 0:e.url)))},"ProductInfoLeftChg-video"):(0,t.jsx)("div",{className:(0,x.cn)("animated fadeIn video_galleryItem size-full"),children:(0,t.jsx)(q,{data:eo})})}),"3d"===ei&&(0,t.jsx)("div",{className:(0,x.cn)("3d_galleryItem size-full",A.threeDSwiper),children:(0,t.jsx)(R,{data:eo,bgColor:"#f7f8f9"})}),"3dModel"===ei&&eo.modelConfig&&(0,t.jsx)("div",{className:"min-h-[430px] w-full",children:(0,t.jsx)(K,{...eo.modelConfig,sku:null==Z?void 0:Z.sku})})]}),(null==el?void 0:null===(g=el.list)||void 0===g?void 0:g.length)>0&&(0,t.jsx)("div",{className:(0,x.cn)("flex w-full items-stretch justify-between gap-[20px] overflow-hidden bg-[#F5F5F7] px-[16px] py-[8px] text-[14px] font-[600] l:flex-col xl:px-[16px] xl:py-[8px]",{"l:hidden":(null==el?void 0:null===(b=el.list)||void 0===b?void 0:b.length)<=0}),children:(0,t.jsx)("div",{className:(0,x.cn)("flex",A.galleryTabsBox,(null==el?void 0:null===(_=el.list)||void 0===_?void 0:_.length)>2?"w-full overflow-auto":"l:justify-center"),children:null==el?void 0:null===(y=el.list)||void 0===y?void 0:y.map((e,l)=>(0,t.jsxs)("button",{className:(0,x.cn)("flex flex-none items-center gap-[8px] py-[5px] pl-[10px] pr-[15px] xl:gap-[4px] xl:px-[8px]",{"bg-[#1D1D1F] text-[#fff]":ei===(null==e?void 0:e.type)}),onClick:()=>{if(et(null==e?void 0:e.type),(null==e?void 0:e.type)==="video"){var l,i;(0,w.RC)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_"+(null==Z?void 0:Z.productHandle),position:(null==e?void 0:null===(i=e.list)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.ytbUrl)||(null==e?void 0:e.videoUrl)||(null==e?void 0:e.title)||"",button_name:"video"}}
1)}},children:[(0,t.jsx)(J,{iconKey:null==e?void 0:e.type,active:ei===(null==e?void 0:e.type)}),(0,t.jsx)("span",{className:"mt-[1px] leading-[1.2] l:font-[700]",dangerouslySetInnerHTML:{__html:null==e?void 0:e.tabLabel}})]},(null==e?void 0:e.tabLabel)+l))})})]}),(0,t.jsx)(B(),{id:"youtube-iframe-api",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"var tag = document.createElement('script'); tag.src\n                ='/youtube-iframe-api.js'; var firstScriptTag =\n                document.getElementsByTagName('script')[0];\n                firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);"}})]})})}let J=e=>{let{iconKey:l,active:i}=e;switch(l){case"products":return i?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.44922 3.84424H14.4492V13.8442H2.44922V3.84424ZM6.68454 7.30596C6.68454 7.94321 6.21049 8.4598 5.62572 8.4598C5.04095 8.4598 4.56689 7.94321 4.56689 7.30596C4.56689 6.66871 5.04095 6.15211 5.62572 6.15211C6.21049 6.15211 6.68454 6.66871 6.68454 7.30596ZM5.27271 11.5368L6.95338 8.24008L7.96178 10.2181L9.97859 6.9214L12.3315 11.5368H5.27271Z",fill:"white"}),(0,t.jsx)("mask",{id:"mask0_8419_312",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"13",height:"11",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.44922 3.84424H14.4492V13.8442H2.44922V3.84424ZM6.68454 7.30596C6.68454 7.94321 6.21049 8.4598 5.62572 8.4598C5.04095 8.4598 4.56689 7.94321 4.56689 7.30596C4.56689 6.66871 5.04095 6.15211 5.62572 6.15211C6.21049 6.15211 6.68454 6.66871 6.68454 7.30596ZM5.27271 11.5368L6.95338 8.24008L7.96178 10.2181L9.97859 6.9214L12.3315 11.5368H5.27271Z",fill:"#777777"})}),(0,t.jsx)("g",{mask:"url(#mask0_8419_358)",children:(0,t.jsx)("path",{opacity:"0.2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.44922 14.2009L7.31985 15.8442H14.2073L17.651 9.34424L14.2073 2.84424H14.1567L6.44922 14.2009Z",fill:"url(#paint0_linear_8419_358)"})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_8419_312",x1:"17.2202",y1:"2.84424",x2:"4.26817",y2:"12.322",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{"stop-color":"#D9D9D9"}),(0,t.jsx)("stop",{offset:"1","stop-color":"#D9D9D9","stop-opacity":"0"})]})})]}):(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.44922 3.84424H14.4492V13.8442H2.44922V3.84424ZM6.68454 7.30596C6.68454 7.94321 6.21049 8.4598 5.62572 8.4598C5.04095 8.4598 4.56689 7.94321 4.56689 7.30596C4.56689 6.66871 5.04095 6.15211 5.62572 6.15211C6.21049 6.15211 6.68454 6.66871 6.68454 7.30596ZM5.27271 11.5368L6.95338 8.24008L7.96178 10.2181L9.97859 6.9214L12.3315 11.5368H5.27271Z",fill:"black"}),(0,t.jsx)("mask",{id:"mask0_8419_358",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"13",height:"11",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.44922 3.84424H14.4492V13.8442H2.44922V3.84424ZM6.68454 7.30596C6.68454 7.94321 6.21049 8.4598 5.62572 8.4598C5.04095 8.4598 4.56689 7.94321 4.56689 7.30596C4.56689 6.66871 5.04095 6.15211 5.62572 6.15211C6.21049 6.15211 6.68454 6.66871 6.68454 7.30596ZM5.27271 11.5368L6.95338 8.24008L7.96178 10.2181L9.97859 6.9214L12.3315 11.5368H5.27271Z",fill:"#777777"})}),(0,t.jsx)("g",{mask:"url(#mask0_8419_358)",children:(0,t.jsx)("path",{opacity:"0.2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.44922 14.2009L7.31985 15.8442H14.2073L17.651 9.34424L14.2073 2.84424H14.1567L6.44922 14.2009Z",fill:"url(#paint0_linear_8419_358)"})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_8419_358",x1:"17.2202",y1:"2.84424",x2:"4.26817",y2:"12.322",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{"stop-color":"white"}),(0,t.jsx)("stop",{offset:"1","stop-color":"white","stop-opacity":"0"})]})})]});case"scene":return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.67383 2V7.5L1.99707 7.5V2H7.67383ZM13.9971 8.5L8.67383 8.5L8.67383 14H13.9971V8.5ZM7.67383 14L7.67383 8.5L1.99707 8.5V14H7.67383Z",fill:i?"#fff":"#111111"}),(0,t.jsx)("rect",{x:"8.56982",y:"2.0542",width:"5.42725",height:"5.42725",rx:"2.71362",fill:i?"#fff":"#111111"})]});case"video":return i?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4492 3.84424H2.44922V13.8442H14.4492V3.84424ZM6.94922 11.3442L10.9492 8.84424L6.94922 6.34424L6.94922 11.3442Z",fill:"white"}),(0,t.jsx)("mask",{id:"mask0_8419_343",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"13",height:"11",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4492 3.84424H2.44922V13.8442H14.4492V3.84424ZM7.56681 11.176L10.2139 8.84442L7.56681 6.51281V11.176Z",fill:"#777777"})}),(0,t.jsx)("g",{mask:"url(#mask0_8419_343)",children:(0,t.jsx)("path",{opacity:"0.2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.03931 13.3749L7.80993 14.8295H13.9067L16.9552 9.07562L13.9067 3.32178H13.8621L7.03931 13.3749Z",fill:"url(#paint0_linear_8419_343)"})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_8419_343",x1:"16.5738",y1:"3.32178",x2:"5.10859",y2:"11.7115",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{"stop-color":"#D9D9D9"}),(0,t.jsx)("stop",{offset:"1","stop-color":"#D9D9D9","stop-opacity":"0"})]})})]}):(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4507 3H2.45068V13H14.4507V3ZM6.95068 10.5L10.9507 8L6.95068 5.5L6.95068 10.5Z",fill:"black"}),(0,t.jsx)("mask",{id:"mask0_8419_328",maskUnits:"userSpaceOnUse",x:"2",y:"3",width:"13",height:"10",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4507 3H2.45068V13H14.4507V3ZM7.56827 10.3318L10.2153 8.00018L7.56827 5.
166857V10.3318Z",fill:"#777777"})}),(0,t.jsx)("g",{mask:"url(#mask0_8419_328)",children:(0,t.jsx)("path",{opacity:"0.2",d:"M16.9563 8.23139L13.9079 13.9852L7.8111 13.9852L4.7627 8.23139L7.81111 2.47754L13.9079 2.47754L16.9563 8.23139Z",fill:"url(#paint0_linear_8419_328)"})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_8419_328",x1:"16.4873",y1:"2.47754",x2:"4.52514",y2:"13.2417",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{"stop-color":"white"}),(0,t.jsx)("stop",{offset:"1","stop-color":"white","stop-opacity":"0"})]})})]});case"3d":return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",children:[(0,t.jsx)("path",{d:"M7.78539 8.28889L0.802246 4.21219L7.59771 0L14.038 4.21219L7.78539 8.28889Z",fill:i?"white":"#1d1d1f"}),(0,t.jsx)("path",{d:"M7.65729 15.9981V8.53653L0.742676 4.50342V11.9302L7.65729 15.9981Z",fill:i?"white":"#1d1d1f"}),(0,t.jsx)("path",{d:"M7.92878 15.9999V8.51886L14.1558 4.47203V12.1023L7.92878 15.9999Z",fill:i?"white":"#1d1d1f"})]});case"reviews":return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("rect",{x:"2",y:"3",width:"12",height:"8.4375",fill:i?"#FCFCFC":"#111111"}),(0,t.jsx)("rect",{x:"4.75",y:"6.16064",width:"1.5",height:"1.5",fill:i?"#111111":"#FCFCFC"}),(0,t.jsx)("rect",{x:"7.25",y:"6.16064",width:"1.5",height:"1.5",fill:i?"#111111":"#FCFCFC"}),(0,t.jsx)("rect",{x:"9.75",y:"6.16064",width:"1.5",height:"1.5",fill:i?"#111111":"#FCFCFC"}),(0,t.jsx)("path",{d:"M7.99959 13L6.61393 11.4269L9.38525 11.4269L7.99959 13Z",fill:i?"#FCFCFC":"#111111"})]});case"3dModel":return i?(0,t.jsxs)("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_10126_6609)",children:[(0,t.jsx)("path",{d:"M8.45269 14.001L2.95169 11.0014L2.95169 5.00231L8.45269 2.00275L13.9537 5.00231L13.9537 11.0014L8.45269 14.001Z",fill:"#FCFCFC"}),(0,t.jsx)("mask",{id:"mask0_10126_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:12,height:13,children:(0,t.jsx)("path",{d:"M8.45269 14.001L2.95169 11.0014L2.95169 5.00231L8.45269 2.00275L13.9537 5.00231L13.9537 11.0014L8.45269 14.001Z",fill:"#777777"})}),(0,t.jsx)("g",{mask:"url(#mask0_10126_6609)",children:(0,t.jsx)("path",{d:"M2.10254 4.57031L8.55673 7.86186M8.55673 7.86186V14.3898M8.55673 7.86186L14.1762 4.78882",stroke:"#111111"})})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_10126_6609",children:(0,t.jsx)("rect",{width:16,height:16,fill:"white",transform:"translate(0.451172)"})})})]}):(0,t.jsxs)("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_10126_6615)",children:[(0,t.jsx)("path",{d:"M8.80425 14.001L3.30325 11.0014L3.30325 5.00231L8.80425 2.00275L14.3052 5.00231L14.3052 11.0014L8.80425 14.001Z",fill:"#161616"}),(0,t.jsx)("mask",{id:"mask0_10126_6615",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:2,width:12,height:13,children:(0,t.jsx)("path",{d:"M8.80425 14.001L3.30325 11.0014L3.30325 5.00231L8.80425 2.00275L14.3052 5.00231L14.3052 11.0014L8.80425 14.001Z",fill:"#171717"})}),(0,t.jsx)("g",{mask:"url(#mask0_10126_6615)",children:(0,t.jsx)("path",{d:"M2.4541 4.57031L8.90829 7.86186M8.90829 7.86186V14.3898M8.90829 7.86186L14.5277 4.78882",stroke:"#FAFAFA"})})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_10126_6615",children:(0,t.jsx)("rect",{width:16,height:16,fill:"white",transform:"translate(0.802734)"})})})]})}},Q=e=>{let{discounts:l,label:i,locale:t,currencyCode:n,variantPrice:s,labelForUnits:o="{quantity} Units"}=e,a=[...l].sort((e,l)=>e.breakpoint-l.breakpoint);return a.map((e,l)=>{var s,d;let r=null===(s=a[l+1])||void 0===s?void 0:s.breakpoint;return{minNum:e.breakpoint,...r?{maxNum:r-1}:{},text:e.discount>0?null==i?void 0:null===(d=i.replace("{quantity}",e.breakpoint))||void 0===d?void 0:d.replace("{fixedAmount}",(0,c.T4)({amount:e.discount,locale:t,currencyCode:n})):null==o?void 0:o.replace("{quantity}",e.breakpoint)}})},Y=e=>{var l,i,a,c,P,T,D,z,B,V,U,E,A;let{data:O,product:R,discounts:q,onClose:G,variant:K,single:J,pageHandle:Y,id:X}=e,{data:$}
1=(0,k.Z)(),ee=(0,C.d)(),[el,ei]=(0,n.useState)(!1),{openSidebar:et,setCartLimitModal:en}=(0,f.l8)(),{locale:es}=(0,s.useRouter)(),{metafields:eo}=(0,h.L)(),{shopCommon:ea}=eo,[ed,er]=(0,n.useState)(!0),[eu,ec]=(0,N.V)(R,null==K?void 0:K.sku),ex=(0,L.c1)(R,eu),{shop:ev}=(0,u.aF)(),ep=null==ev?void 0:ev.orderLimits,em=(0,S.t)(),eh=(0,Z.Zf)(),ef=null!==(A=null==ep?void 0:null===(l=ep.limits)||void 0===l?void 0:l["".concat(null==R?void 0:R.handle,",").concat(null==ex?void 0:ex.sku)])&&void 0!==A?A:null==ep?void 0:null===(i=ep.limits)||void 0===i?void 0:i[null==ex?void 0:ex.sku],eg=null==q?void 0:q.sort((e,l)=>l.breakpoint-e.breakpoint),ej=(0,n.useMemo)(()=>{var e;let l=null==q?void 0:null===(e=q.sort((e,l)=>l.breakpoint-e.breakpoint)[q.length-1])||void 0===e?void 0:e.breakpoint,i=(null==ef?void 0:ef.min)!==void 0?null==ef?void 0:ef.min:1,t=(null==ef?void 0:ef.max)!==void 0?null==ef?void 0:ef.max:O.quantityMax||9999,n=l<=t?l:t;return Math.min(n>=i?n:i,null==ex?void 0:ex.quantityAvailable)},[q,null==ef?void 0:ef.min,null==ef?void 0:ef.max,O.quantityMax,null==ex?void 0:ex.quantityAvailable]),[eb,e_]=(0,n.use
1State)(ej);(0,n.useEffect)(()=>{e_(ej)},[ej,ex.sku]);let ew=(0,n.useMemo)(()=>{var e,l,i,t,n;let s=null==R?void 0:null===(e=R.images)||void 0===e?void 0:e.map(e=>null==e?void 0:e.url),o=null==R?void 0:null===(l=R.variants)||void 0===l?void 0:l.map(e=>{var l;return null==s?void 0:s.indexOf(null==e?void 0:null===(l=e.image)||void 0===l?void 0:l.url)});o.push(null==R?void 0:null===(i=R.images)||void 0===i?void 0:i.length);let a=null==R?void 0:null===(t=R.variants)||void 0===t?void 0:t.map((e,l)=>({variantSku:null==e?void 0:e.sku,variantImgList:null==R?void 0:R.images.slice(o[l],o[l+1])})),d=null==a?void 0:null===(n=a.find(e=>(null==e?void 0:e.variantSku)===(null==ex?void 0:ex.sku)))||void 0===n?void 0:n.variantImgList;return(null==d?void 0:d.length)>0?d:[{...null==ex?void 0:ex.image}]},[null==R?void 0:R.images,null==R?void 0:R.variants,null==ex?void 0:ex.image,null==ex?void 0:ex.sku]),ey=()=>{let e=null==eg?void 0:eg.find(e=>{let{breakpoint:l}=e;return eb>=l});return!e||e.discount<=0?0:e.discount},ek=new r.t((null==ex?void 0:ex.price)||99999).times(eb).toNumber(),eN=new r.t((null==ex?void 0:ex.price)||999999).minus(ey()).times(eb).toNumber(),eL=(0,_.Z)({variant:ex,product:R}),eC=async()=>{ei(null==ex?void 0:ex.id);try{var e,l,i,t;await em({variantId:String(ex?null==ex?void 0:ex.id:null===(e=R.variants[0])||void 0===e?void 0:e.id),quantity:eb||1,customAttributes:[{key:"_level_discount",value:"-"}]}),eL&&eh({discountCode:eL.title}),ei(!1);let n={event:"ga4Event",event_name:"add_to_cart",event_parameters:{page_group:"Activity Page_"+Y,position:X,value:eN,currency:null==R?void 0:null===(l=R.price)||void 0===l?void 0:l.currencyCode,items:[{item_id:null==ex?void 0:ex.sku,item_name:(0,y.Pj)(null==R?void 0:R.name),item_brand:R.vendor,item_category:R.productType,item_variant:ex.name,price:ex.price,quantity:eb}]}};if((0,w.RC)(n),(null==ea?void 0:ea.cartLimitModal)&&!(null==ea?void 0:null===(i=ea.cartLimitModal)||void 0===i?void 0:i.isCartLimitModalClose)&&eb>=((null==ea?void 0:null===(t=ea.cartLimitModal)||void 0===t?void 0:t.quantity)||1e3)){en({isOpen:!0});return}et()}catch(e){ei(!1)}},eS=async()=>{var e,l,i;ei(!0);let t=await (0,M.Z)({locale:es,lineItems:[{variantId:String(ex?null==ex?void 0:ex.id:null===(e=R.variants[0])||void 0===e?void 0:e.id),quantity:eb||1,customAttributes:[{key:"_level_discount",value:"-"}]}]});if(ei(!1),(0,w.RC)({event:"ga4Event",event_name:"begin_checkout",event_parameters:{info:$?"member":"non-member",position:"auto deals",page_group:"Activity Page_"+Y,currency:null==R?void 0:R.price.currencyCode,value:eN,items:[{item_id:ex.sku,item_name:R.name,item_brand:"anker",item_category:R.productType,item_variant:ex.name,price:ex.price,quantity:1}]}}),(null==ea?void 0:ea.cartLimitModal)&&!(null==ea?void 0:null===(l=ea.cartLimitModal)||void 0===l?void 0:l.isCartLimitModalClose)&&eb>=((null==ea?void 0:null===(i=ea.cartLimitModal)||void 0===i?void 0:i.quantity)||1e3)){en({isOpen:!0,url:t.webUrl});return}t.webUrl&&(window.location.href=t.webUrl)},eZ=ex.availableForSale;return(0,t.jsx)(g.Z,{wrapClassName:"l:items-end",className:"h-[calc(100vh-96px)] max-h-[660px] max-w-[1100px] l:h-[calc(100vh-72px)] l:max-h-none l:w-full ",children:(0,t.jsxs)("div",{className:"relative flex size-full flex-col",children:[(0,t.jsxs)("div",{className:"w-full flex-1 flex-shrink-0 justify-between",children:[(0,t.jsx)("div",{className:"sticky top-0 z-10 flex justify-end bg-white px-[24px] py-[16px]",children:(0,t.jsx)("button",{onClick:G,className:"size-[22px] flex-shrink-0",children:(0,t.jsx)(o.Z,{className:"stroke-[#000] stroke-[2px]"})})}),(0,t.jsxs)("div",{className:"flex px-[24px] l:flex-col l:p-0",children:[(0,t.jsxs)("div",{className:"sticky top-[54px] h-fit w-[55%] l:relative l:top-0 l:w-full",children:[(0,t.jsx)("div",{className:" h-fit",children:(0,t.jsx)(W,{product:R,variant:ex,sliderImages:ew,jointSwiperSlide:!0,isMobile:ee,metafields:{...eo,...R.metafields},s:{ProductListingImageBox:"h-[370px] l:h-auto bg-[#F5F5F7]",videoSwiper:"h-full"}})}),(0,t.jsx)(H,{data:O})]}),(0,t.jsxs)("div",{className:"relative flex w-[45%] flex-col items-start gap-x-6 px-8 text-left l:w-full l:px-[24px] l:pt-[24px]",children:[(0,t.jsx)("div",{className:"flex min-h-[21px] items-start justify-start gap-1.5 l:min-h-[18px]",children:(0,t.jsx)("span",{className:"font-extrabold text-[#FF9900] l:text-[12px]",children:null===(c=R.metafields)||void 0===c?void 0:null===(a=c.productInfos)||void 0===a?void 0:a.lineNew})}),(0,t.jsx)(j.Z,{html:R.name,className:"pb-[24px] text-[24px] font-extrabold text-[#1D1D1F] l:min-h-0 l:pb-[16px] l:text-[20px]",variant:"paragraph"}),eZ&&(0,t.jsx)(F,{baseAmount:null==ex?void 0:ex.price,amount:new r.t(null==ex?void 0:ex.price).minus(ey()).toNumber(),product:R,className:"pb-[32px] l:pb-[24px]"}
1),(0,t.jsx)("div",{className:"pb-[16px]",children:(0,t.jsx)(v.Z,{description:(null===(T=R.metafields)||void 0===T?void 0:null===(P=T.productInfos)||void 0===P?void 0:P.description)||R.descriptionHtml||R.description,variant:ex,metafields:eo,setShowProductSpecesPop:null,setShowProductComparePop:null,curInfos:(0,x.RH)(null===(D=R.metafields)||void 0===D?void 0:D.productInfo,null===(z=ex.metafields)||void 0===z?void 0:z.infos),shopInfos:null==eo?void 0:eo.infos,shopCommon:ea})}),(0,t.jsx)("a",{href:"".concat("us"===es?"":"/".concat(es),"/products/").concat(R.handle),className:"pb-[32px] text-[16px] font-bold text-brand-color underline",children:ea.viewMore||"View More"}),(0,t.jsx)(p.Z,{productImage:null===(B=R.images[0])||void 0===B?void 0:B.url,product:R,options:J?K.options:R.options,selectedOptions:eu,variantId:null==ex?void 0:ex.id,setSelectedOptions:ec,className:"pb-[32px]"}),ex.availableForSale&&q.length>0&&(0,t.jsx)(I.Z,{data:{quantity:O.quantityText,stages:Q({discounts:q,label:O.buyAndSave,locale:es,currencyCode:null==R?void 0:null===(V=R.price)||void 0===V?void 0:V.currencyCode,variantPrice:null==ex?void 0:ex.price}),maxQualityNumber:(null===(U=q[q.length-1])||void 0===U?void 0:U.breakpoint)+(null===(E=q[0])||void 0===E?void 0:E.breakpoint)},number:eb,setNumber:e_,max:null==ex?void 0:ex.quantityAvailable,className:"mt-0 pb-[40px]"})]})]})]}),(0,t.jsxs)("div",{className:"sticky bottom-0 left-0 z-10 flex w-full items-center justify-between gap-x-5 bg-white px-[24px] py-4 shadow-[0_0_10px_0_rgba(0,0,0,0.1)] l:flex-col l:items-start l:px-0 l:pt-0",children:[(null==ex?void 0:ex.availableForSale)&&ed&&(0,t.jsxs)("div",{className:"text-[16px] font-bold text-[#1D1D1F] l:flex l:w-full l:items-center l:justify-between l:bg-[#F5F5F7] l:px-[24px] l:py-[4px] l:text-left l:text-[12px] l:text-[#86868C]",children:[(0,t.jsx)(j.Z,{html:O.inStock,className:"text-left"}),(0,t.jsx)("button",{onClick:()=>{er(!1)},className:"hidden size-[12px] l:block",children:(0,t.jsx)(o.Z,{className:"stroke-[#333] stroke-[2px]"})})]}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-end l:flex-col l:items-start l:px-[24px] l:pt-[12px]",children:[eZ?(0,t.jsx)(F,{baseAmount:ek,amount:eN,product:R}):(0,t.jsx)(j.Z,{html:ea.soldOut,className:"text-[16px] font-bold text-[#86868C]"}),eZ?(0,t.jsxs)("div",{className:"ml-[16px] grid grid-cols-2 gap-[16px] md:w-full l:ml-0 l:mt-[8px]",children:[(0,t.jsx)(b.Z,{onClick:eC,disabled:!eZ,loading:el,className:d()("h-[46px] !rounded-none  border !border-brand-color !bg-white px-10 text-base font-[700] leading-[46px] !text-brand-color l:min-h-[40px] l:min-w-[130px] l:px-2 l:text-base",!eZ&&"!bg-[#CCCCCC]"),children:eZ?ea.add_to_Cart:ea.soldOut}),(0,t.jsx)(b.Z,{onClick:eS,disabled:!eZ,loading:el,className:d()("h-[46px] !rounded-none  px-10 text-base font-[700] leading-[46px] text-white l:min-h-[40px] l:min-w-[130px] l:px-2 l:text-base",!eZ&&"!bg-[#CCCCCC]"),children:eZ?ea.buy_now:ea.soldOut})]}):(0,t.jsx)(m.Z,{sku:null==ex?void 0:ex.sku,name:R.name,metafields:eo,locale:es,activeNotify:!0,product:R,btnClass:"h-[46px] ml-[50px] px-10 text-base font-[700] !rounded-none !border-brand-color !bg-white leading-[46px] !text-brand-color border l:min-h-[40px] l:min-w-[130px] l:px-2 l:text-base",buttonUI:!0})]})]})]})})}},8966:function(e){e.exports={link:"BannerLink_link__0xr37"}},50589:function(e){e.exports={root:"Sidebar_root__zggoh",backdrop:"Sidebar_backdrop__FRh3o"}},32904:function(e){e.exports={ProductListingImage:"ProductImages_ProductListingImage__atsJe",ProductListingImageVersiond:"ProductImages_ProductListingImageVersiond__KIHpK",ProductListingImageBox:"ProductImages_ProductListingImageBox__gxtTA",videoSwiper:"ProductImages_videoSwiper__HMJcT",threeDSwiper:"ProductImages_threeDSwiper__a_8IL",productthumbsswiper:"ProductImages_productthumbsswiper__bNykc",reviewsSwiper:"ProductImages_reviewsSwiper__jrU_W",galleryTabsBox:"ProductImages_galleryTabsBox__0peb2",upperRightCorner:"ProductImages_upperRightCorner__G20Ea",swiperSlideBox:"ProductImages_swiperSlideBox__GSane",otherSlides:"ProductImages_otherSlides__L_lg1",firstSlide:"ProductImages_firstSlide__pYrBo"}}}]);

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.