whatmore-react-assets 1.0.1821 → 1.0.1823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/411.742a9cfc.chunk.css +1 -0
- package/static/css/event-click-component.5626d6a2.chunk.css +1 -0
- package/static/css/homepage-carousel-view.5cbaba8c.chunk.css +1 -0
- package/static/js/245.495d00ff.chunk.js +2 -0
- package/static/js/411.14a5f69c.chunk.js +52 -0
- package/static/js/598.9757157f.chunk.js +281 -0
- package/static/js/865.da3e721a.chunk.js +2 -0
- package/static/js/atc-with-form.14662671.chunk.js +1 -0
- package/static/js/event-click-component.86dd3ac5.chunk.js +76 -0
- package/static/js/homepage-carousel-view.b720e002.chunk.js +15 -0
- package/static/js/react-main-app.b83e466d.chunk.js +1 -0
- package/whatmore.js +1 -2
- package/static/css/banner-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-ai.5886a824.chunk.css +0 -1
- package/static/css/carousel-template-f.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-feed.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-g.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-h.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-i.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-j.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-view-more.475a42b7.chunk.css +0 -1
- package/static/css/collections-template-a.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-b.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-c.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-stories.83e3340f.chunk.css +0 -1
- package/static/css/event-click-product.68e25b66.chunk.css +0 -1
- package/static/css/spotlight-view.a1594fd1.chunk.css +0 -2
- package/static/css/stories-template-a.8292e9da.chunk.css +0 -1
- package/static/css/whatmore-root.09bcc075.chunk.css +0 -2
- package/static/js/257.731cff2e.chunk.js +0 -1
- package/static/js/286.70655d59.chunk.js +0 -1
- package/static/js/33.46a8c962.chunk.js +0 -1
- package/static/js/512.c411674d.chunk.js +0 -1
- package/static/js/526.706d86bb.chunk.js +0 -2
- package/static/js/620.8b81307a.chunk.js +0 -1
- package/static/js/820.3abb966c.chunk.js +0 -1
- package/static/js/832.8a126a68.chunk.js +0 -1
- package/static/js/981.93048a23.chunk.js +0 -281
- package/static/js/banner-template-a.32ec8591.chunk.js +0 -1
- package/static/js/carousel-template-a.f15148d1.chunk.js +0 -1
- package/static/js/carousel-template-ai.2232a497.chunk.js +0 -1
- package/static/js/carousel-template-b.52683dec.chunk.js +0 -1
- package/static/js/carousel-template-f.4ca967f4.chunk.js +0 -1
- package/static/js/carousel-template-feed.6e0611d8.chunk.js +0 -15
- package/static/js/carousel-template-g.2f11a57c.chunk.js +0 -1
- package/static/js/carousel-template-h.95284d4b.chunk.js +0 -1
- package/static/js/carousel-template-i.ef4eaa14.chunk.js +0 -1
- package/static/js/carousel-template-j.6e45a3e9.chunk.js +0 -1
- package/static/js/carousel-template-view-more.faaa02f7.chunk.js +0 -15
- package/static/js/collections-template-a.1f191615.chunk.js +0 -1
- package/static/js/collections-template-b.27d9d0b6.chunk.js +0 -1
- package/static/js/collections-template-c.5bcd3559.chunk.js +0 -1
- package/static/js/collections-template-stories.3684ecbf.chunk.js +0 -1
- package/static/js/embed-tracking-component.64b05bcf.chunk.js +0 -1
- package/static/js/event-click-product.ffdab8eb.chunk.js +0 -127
- package/static/js/event-click-spotlight.50e0f126.chunk.js +0 -1
- package/static/js/homepage-carousel-view.9dd55d57.chunk.js +0 -1
- package/static/js/product-page-view.9c0ab6ef.chunk.js +0 -1
- package/static/js/share-shimmer-loader.fe4b39e4.chunk.js +0 -1
- package/static/js/spotlight-view.a4edee17.chunk.js +0 -1
- package/static/js/stories-template-a.7a417d48.chunk.js +0 -1
- package/static/js/whatmore-root.cc24f244.chunk.js +0 -1
- /package/static/css/{product-page-view.a1594fd1.chunk.css → react-main-app.a1594fd1.chunk.css} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[260],{3797:function(t,e,i){i.r(e),i.d(e,{default:function(){return Qi}});var o=i(9950),n=i(9946),r=i(9094),l=i(140),a=(i(5388),i(7239),i(1348)),d=i(7483),s=i(3080),c=i(8149),u=i(6493),h=i(2039),p=i(6670),v=i(314),x=i(3887),g=i(9098),m=i(1085),f=i(3294),w=i(4033),C=(i(5410),i(6824)),b=i(3788),y=i(3441),j=i(4414);function S(t){var e,i,n;const[r,l]=(0,p.A)(),[s,c]=(0,o.useState)(o.useRef()),h=t.posterImage,[v,g]=(0,d.QN)("whatmoreVideoPlayerPoolBlessed"),S=(0,o.useRef)(null),[k,I]=(0,o.useState)(!1),[z,_]=(0,o.useState)(!0),[F,E]=(0,o.useState)(!1),T=t.timeUpdateCallback,{whatmoreIsPreviewMode:A}=(0,o.useContext)(C.BR),N=null!==(e=t.isVideoMuted)&&void 0!==e?e:r,B=null!==(i=t.height)&&void 0!==i?i:"100%",P=null!==(n=t.width)&&void 0!==n?n:"100%",L=(0,d.Xd)("whatmoreShopId");(0,o.useEffect)(()=>{if(!s.current||!t.url||!v)return;const e=s.current.children[0];if(!e)return;let i=!0;const o="banner"===t.source?t.url:(0,b.s)(t.url),n=o&&(o.includes(".m3u8")||o.includes("m3u8")),r=o&&o.toLowerCase().includes(".mp4");if(S.current&&(S.current.destroy(),S.current=null,I(!1)),n&&!r&&y.Ay.isSupported()){const n=new y.Ay({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60,capLevelToPlayerSize:!0,startLevel:-1,autoStartLoad:!0});S.current=n,n.loadSource(o),n.attachMedia(e),n.on(y.Ay.Events.MANIFEST_PARSED,()=>{i&&I(!0)}),n.on(y.Ay.Events.ERROR,(o,r)=>{if(r.fatal&&i)switch(console.error("HLS.js error:",r),r.type){case y.Ay.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),n.startLoad();break;case y.Ay.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),n.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback");const i=(0,u.Cr)(t.url);e.src=i,I(!0)}})}else n&&!y.Ay.isSupported()?(console.log("Using native HLS support"),I(!0)):I(!0);return()=>{i=!1,S.current&&(S.current.destroy(),S.current=null)}},[t.url,t.source,v,s.current]),(0,o.useLayoutEffect)(()=>{if(s.current&&v)if(0==s.current.children.length){const i=(0,u.Cr)(t.url),o="banner"===t.source?t.url:(0,b.s)(t.url);(e=(0,m.Z4)(s.current,o,N||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",()=>{_(!1)}),T&&e.addEventListener("timeupdate",t=>{var i,o;e&&T(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(o=e.duration)&&void 0!==o?o:0)})}else{var e;(e=s.current.children[0]).muted=N||!t.isPlaying;const i="banner"===t.source?t.url:(0,b.s)(t.url),o=i&&(i.includes(".m3u8")||i.includes("m3u8"));if(t.isPlaying&&(!o||k)){const t=()=>{e.paused&&e.play().catch(t=>{"NotAllowedError"!==t.name?console.error("Play error:",t):console.warn("Play blocked by iOS autoplay policy:",t.message)})};!1===z||o?setTimeout(t,100):t()}else e.pause(),(0,a.fwF)(L)&&t.source==f.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.paused&&e.play().catch(()=>{}),setTimeout(()=>{!t.isPlaying&&e.pause()},(0,w.n)()?1900:800))}},[N,t.isPlaying,v,z,k]),(0,o.useLayoutEffect)(()=>()=>{S.current&&(S.current.destroy(),S.current=null),s.current&&0!=s.current.children.length&&(0,m.rq)(s.current)},[]);const R=(0,d.Xd)("whatmoreLandingLocationType");return(0,j.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:P,height:B,overflow:"hidden",backgroundColor:A?(0,a.KVz)(L):(0,a.QSX)(L),filter:t.showQuestion?"blur(24px)":""},children:[(0,j.jsx)("div",{ref:s,style:{width:z?"0px":"100%",height:z?"0px":A?(0,a.tbf)(L):(0,a.CBm)(L)&&"product"==R?"auto":(0,a.R7q)(L)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==L&&z&&F?(0,j.jsx)(j.Fragment,{children:(0,j.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,j.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,j.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):z&&!F&&(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,j.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,j.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{E(!0)}})}),(0,j.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,j.jsx)(x.A,{width:P,height:B,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var k=function(t){var e;return(0,j.jsx)(S,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function I(t){var e,i,n;const[r,l]=(0,p.A)(),[s,c]=(0,o.useState)(!1),[h,v]=(0,o.useState)(!1),[g,m]=(0,o.useState)(!1),S=t.setDuration,k=(0,o.useRef)(null),I=(0,o.useRef)(null),z=(0,d.Xd)("whatmoreShopId"),_=t.timeUpdateCallback,{whatmoreIsPreviewMode:F}=(0,o.useContext)(C.BR),E=(0,d.Xd)("whatmoreLandingLocationType"),T=null!==(e=t.height)&&void 0!==e?e:"100%",A=null!==(i=t.width)&&void 0!==i?i:"100%",N=null!==(n=t.isVideoMuted)&&void 0!==n?n:r,B=null===t||void 0===t?void 0:t.posterImage;return(0,o.useEffect)(()=>{if(!k.current||!t.url)return;let e=!0;const i=k.current,o="banner"==t.source?t.url:(0,b.s)(t.url),n=o&&(o.includes(".m3u8")||o.includes("m3u8")),r=o&&o.toLowerCase().includes(".mp4");if(I.current&&(I.current.destroy(),I.current=null,m(!1)),n&&!r&&y.Ay.isSupported()){const n=new y.Ay({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60});I.current=n,n.loadSource(o),n.attachMedia(i),n.on(y.Ay.Events.MANIFEST_PARSED,()=>{e&&(m(!0),t.isPlaying&&i.play().catch(t=>console.error("HLS playback error:",t)))}),n.on(y.Ay.Events.ERROR,(t,r)=>{if(r.fatal&&e)switch(r.type){case y.Ay.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),n.startLoad();break;case y.Ay.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),n.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback"),i.src=o,m(!0)}})}else!n||!r&&y.Ay.isSupported()||(i.src=r?o:(0,u.Cr)(t.url)),m(!0);return()=>{e=!1,I.current&&(I.current.destroy(),I.current=null)}},[t.url,t.source]),(0,o.useEffect)(()=>{k.current&&g&&(t.isPlaying?k.current.paused&&k.current.play().catch(t=>console.error("Play error:",t)):k.current.pause(),_&&k.current.addEventListener("timeupdate",t=>{var e,i;k.current&&_(null!==(e=k.current.currentTime)&&void 0!==e?e:0,null!==(i=k.current.duration)&&void 0!==i?i:0)}))},[t.isPlaying,t.url,g]),(0,j.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:A,height:T,overflow:"hidden",backgroundColor:F?(0,a.KVz)(z):(0,a.QSX)(z),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,j.jsx)("div",{style:{width:s?"100%":"0px",height:s?F?(0,a.tbf)(z):(0,a.CBm)(z)&&"product"==E?"auto":(0,a.R7q)(z):"0px"},children:(0,j.jsxs)("video",{ref:k,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!N&&t.isPlaying),onLoadedData:()=>{c(!0),t.isPlaying&&k.current&&k.current.play(),(0,a.fwF)(z)&&t.source==f.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&k.current&&k.current.play(),setTimeout(()=>{!t.isPlaying&&k.current&&k.current.pause()},(0,w.n)()?1900:800))},onLoadedMetadata:()=>{k.current&&S&&S(k.current.duration)},poster:"banner"==t.source?t.url:B,children:[(0,j.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,j.jsx)("source",{src:(0,b.s)(t.url),type:"video/mp4"}),(0,j.jsx)("source",{src:(0,u.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==z&&!s&&h?(0,j.jsx)(j.Fragment,{children:(0,j.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,j.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,j.jsx)("img",{src:B,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):!s&&!h&&(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,j.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,j.jsx)("img",{src:B,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{v(!0)}})}),(0,j.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,j.jsx)(x.A,{width:A,height:T,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var z=function(t){var e,i,n,r;return(0,h.I)(t.event)?(0,j.jsx)(g.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,o.useContext)(v.p).isIOS&&1==(0,d.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,j.jsx)(k,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(n=t.isVideoMuted)&&void 0!==n?n:null,source:t.source,posterImage:null===(r=t.event)||void 0===r?void 0:r.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,j.jsx)(I,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question,thumbnail_image:t.thumbnail_image})};var _=i(6086),F=i(3247),E=i(4895),T=i(5375);var A=function(t){const[e]=(0,d.QN)("whatmoreShopId"),[i,o]=(0,p.A)(),[n,r,l,c]=(0,s.A)(),u=.1*c;function h(){o(!i)}return!0===(0,a.GZ2)(e)?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{cursor:"pointer",children:i?(0,j.jsx)(T.A,{sx:{color:"white",fontSize:u,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{h()}}):(0,j.jsx)(E.A,{sx:{color:"white",fontSize:u,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{h()}})})})},N=i(1422),B=i(3731),P=i(677),L=i(211),R=i(645),O=i(8283);const D=`${O.i7`
|
|
2
|
+
0%,10%,15% {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
25%{
|
|
6
|
+
opacity: 0.25;
|
|
7
|
+
transform: translateY(-25%);
|
|
8
|
+
}
|
|
9
|
+
50%{
|
|
10
|
+
opacity: 0.5;
|
|
11
|
+
transform: translateY(0%);
|
|
12
|
+
}
|
|
13
|
+
75% {
|
|
14
|
+
opacity: 0.75;
|
|
15
|
+
transform: translateY(-8%)
|
|
16
|
+
}
|
|
17
|
+
100%{
|
|
18
|
+
opacity: 1;
|
|
19
|
+
transform: translateY(0%)
|
|
20
|
+
}
|
|
21
|
+
`} 0.5s linear`,W=`\n ${O.i7`
|
|
22
|
+
30% { transform: scale(1.2); }
|
|
23
|
+
40%, 60% { transform: rotate(-20deg) scale(1.2); }
|
|
24
|
+
50% { transform: rotate(20deg) scale(1.2); }
|
|
25
|
+
70% { transform: rotate(0deg) scale(1.2); }
|
|
26
|
+
100% { transform: scale(1); }
|
|
27
|
+
`} 1.5s linear;\n`;O.i7`
|
|
28
|
+
3% { transform: scale(1.2); }
|
|
29
|
+
4%, 6% { transform: rotate(-20deg) scale(1.2); }
|
|
30
|
+
5%,7% { transform: rotate(20deg) scale(1.2); }
|
|
31
|
+
8% { transform: rotate(0deg) scale(1.2); }
|
|
32
|
+
10% { transform: scale(1); }
|
|
33
|
+
`,O.i7`
|
|
34
|
+
0% { transform: scale(1); }
|
|
35
|
+
10% { transform: scale(1.2); }
|
|
36
|
+
20% { transform: scale(1); }
|
|
37
|
+
`;var M=i(8544);const Q=`\n ${O.i7`
|
|
38
|
+
0% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
10%{
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
20%{
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
`} 3s ease-in-out;\n`;function H(t){const[e,i,n,r]=(0,s.A)(),[l]=(0,d.QN)("whatmoreSecondaryColor"),[c,u]=(0,o.useState)(0),[h]=(0,d.QN)("whatmoreShopId"),p=t.event,v=t.onClick,x=p.products.length;t.isFirstProductsIconClickDone;(0,o.useEffect)(()=>{const t=setInterval(()=>{u(t=>(t+1)%x)},3e3);return()=>{clearInterval(t)}},[]);const g=.24,m=.024;var f=r*g+"px",w=r*g+"px",C=r*m*1.5+"px",b=r*m+"px",y=r*m*1.5+"px";if(void 0==p.products||0==p.products.length)return(0,j.jsx)(j.Fragment,{});var S=p.products;return(0,j.jsx)(N.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,j.jsxs)(F.az,{margin:"10px",width:f,height:w,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:D,onClick:()=>v(),children:[(0,j.jsx)(L._,{width:"100%",height:"100%",src:S[c].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,a.KZe)(h)+" !important"},borderRadius:"lg",animation:Q},c),(0,j.jsx)(F.az,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,j.jsx)(N.B,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,j.jsx)(_.o,{children:(0,j.jsxs)(N.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:l,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,j.jsxs)(B.E,{noOfLines:1,fontSize:b,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,j.jsx)(_.o,{children:(0,j.jsx)(M.A,{sx:{color:"white",fontSize:y}})})]})})})}),(0,j.jsx)(N.B,{direction:"row",height:"fit-content",width:f,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(P.E,{fontSize:C,variant:"subtle",textColor:l,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:x>1?x:""})})]})})}var V=function(t){const[e,i]=(0,d.QN)("isProductSwiperCatalogOpen"),[n,r,l,a]=(0,s.A)(),[c,u]=(0,o.useState)(!1),h=t.onToggle,p=t.event,v=.07*a,x=.15*l,g=.05*a;return(0,j.jsx)(_.o,{children:(0,j.jsx)(F.M6,{style:{marginTop:"10px"},children:e?(0,j.jsx)(R.A,{sx:{color:"white",fontSize:v,filter:"drop-shadow(0 0 5px black);",position:"absolute",bottom:x,right:g,zIndex:10},onClick:()=>{h("minimize-button")}}):(0,j.jsx)(H,{event:p,onClick:()=>{h("products-button"),u(!0)},isFirstProductsIconClickDone:c})})})},X=(i(5242),i(7642));var Y=function(t){const e=t.onCloseCallback,[i,o,n,r]=(0,s.A)(),l=.08*r;return(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{cursor:"pointer",children:(0,j.jsx)(X.A,{sx:{boxShadow:3,color:"white",fontSize:l,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e("close-button")}})})})},U=i(5078),$=i(731),q=i(7035);var K=function(t){var e,i;const[n,r,l,a]=(0,s.A)(),{slideDirection:c}=(0,o.useContext)(v.p),u=(0,d.Xd)("websiteLanguage"),h=.15*a,p=.07*a,x=`${O.i7`
|
|
49
|
+
0% {
|
|
50
|
+
transform: translateY(0%) rotate(0deg);
|
|
51
|
+
}
|
|
52
|
+
50% {
|
|
53
|
+
transform: translateY(-100%) translateX(+10%) rotate(+30deg);
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
transform: translateY(0%) rotate(0deg);
|
|
57
|
+
}
|
|
58
|
+
`} infinite 1.5s linear`,g=`${O.i7`
|
|
59
|
+
0% {
|
|
60
|
+
transform: translateY(0%) rotate(0deg);
|
|
61
|
+
}
|
|
62
|
+
50% {
|
|
63
|
+
transform: translateX(30%) translateY(20%) rotate(-30deg);
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
transform: translateY(0%) rotate(0deg);
|
|
67
|
+
}
|
|
68
|
+
`} infinite 1.5s linear`;return(0,j.jsx)(F.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,j.jsxs)(N.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,j.jsx)(_.o,{animation:"vertical"===c?x:g,children:"vertical"===c?(0,j.jsx)(U.A,{sx:{color:"white !important",fontSize:h,filter:"drop-shadow(0 0 20px black);"}}):(0,j.jsx)($.A,{sx:{color:"white !important",fontSize:h,filter:"drop-shadow(0 0 20px black);"}})}),(0,j.jsx)(_.o,{children:(0,j.jsx)(B.E,{textShadow:"dark-lg",fontSize:p+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===q.m||void 0===q.m||null===(i=q.m[u])||void 0===i?void 0:i.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var G=function(t){const[e,i]=(0,d.QN)("isFirstIndicatorRenderDone"),[n]=(0,d.QN)("indicatorRenderSeconds"),r=n,l=t.swipeUp;return(0,o.useEffect)(()=>{const t=setTimeout(()=>{i(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,j.jsx)(K,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},Z=i(8781),J=i(5144),tt=i(4459);const et="15px";var it=i(1351),ot=i(6157);var nt=function(t){const[e]=(0,d.QN)("isInDesignMode"),[i]=(0,d.QN)("isDemoBrand"),[n]=(0,d.QN)("whatmoreSecondaryColor"),[r]=(0,d.QN)("whatmorePrimaryFont"),[c]=(0,d.QN)("whatmoreShopId"),[u,h,p,v]=(0,s.A)(),[x,g]=(0,o.useState)(!1),m=t.product,f=t.event,{whatmoreWidgetSourceDetails:w}=(0,o.useContext)(C.BR),b=.1*p,y=.95*v,S=.05*v;return(0,j.jsx)(N.B,{direction:"row",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(N.B,{direction:"column",width:"fit-content",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,j.jsx)(F.az,{width:y+"px",height:"fit-content",padding:"6px",marginTop:et,backgroundColor:n,borderRadius:"5px",animation:x?J.jd:null,onAnimationEnd:()=>{g(!1)},marginBottom:(0,a.qw1)(c),onClick:()=>{g(!0),function(t,o){e||i||(async()=>{(0,l.Pb)(t,o),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:t,productList:[o],ctaList:t.cta})})()}(f,m),window.location.href=function(t){return(0,a.BLb)(c)?t.product_link+"?"+(0,a.VCz)(c)+"&"+(0,a.Spk)(c)+"&"+(0,a.$lz)(c):t.product_link}(m)},_hover:{backgroundColor:(0,tt.YU)(n,8)},cursor:"pointer",children:(0,j.jsx)(_.o,{children:(0,j.jsx)(B.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,a.Qed)(c)})})})})})},rt=i(4892),lt=i(8538),at=i(7458),dt=i(2159),st=i(9537),ct=i(173),ut=(i(6125),i(4905));function ht(t){var e,i,n;const[r]=(0,d.QN)("whatmoreSecondaryColor"),[l]=(0,d.QN)("whatmorePrimaryFont"),[s]=(0,d.QN)("whatmoreShopId"),[c,u]=(0,o.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return(0,j.jsxs)(F.az,{display:"flex",width:v,height:x,padding:"2x",boxShadow:"lg",animation:c?J.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),u(!0)},children:(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===q.m||void 0===q.m||null===(n=q.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===n?void 0:n.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,j.jsxs)(N.B,{direction:"row",backgroundColor:m?(0,tt.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),p(),u(!0)},children:[(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,a.Hfu)(s)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,j.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,j.jsx)(ct.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,j.jsx)(j.Fragment,{})]})]})}function pt(t){var e,i,n;const[r]=(0,d.QN)("whatmoreSecondaryColor"),[l]=(0,d.QN)("whatmorePrimaryFont"),[s]=(0,d.QN)("whatmoreShopId"),[c,u]=(0,o.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,v=t.width,x=t.height;return(0,j.jsx)(F.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,a.Wc_)(s)?r:(0,a.Wc_)(s),onClick:t=>{t.stopPropagation(),p(),u(!0)},animation:c?J.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,j.jsx)(_.o,{maxWidth:"90%",children:(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,a.Hfu)(s)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,a.KPq)(s)?(0,a.KPq)(s):null!==(i=null===q.m||void 0===q.m||null===(n=q.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===n?void 0:n.add_to_cart)&&void 0!==i?i:(0,a.KPq)(s),"\xa0"]})})})})}function vt(t){var e;const[i]=(0,d.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,j.jsx)(F.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,j.jsxs)(B.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function xt(t){var e;const[i]=(0,d.QN)("whatmoreSecondaryColor"),[o]=(0,d.QN)("whatmorePrimaryFont"),[n]=(0,d.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,s=t.cartCount,c=t.width,u=t.height,h=t.onCartIconClick;return(0,j.jsx)(F.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,j.jsx)(_.o,{paddingX:"5px",onClick:()=>{h()},children:(0,a.DiI)(n)?(0,j.jsx)(ut.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,j.jsx)(B.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,j.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})}),(0,j.jsx)(B.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:s}),(0,j.jsx)(_.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,j.jsx)(dt.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var gt=function(t){var e,i,o,n,r,l,a;const[s]=(0,d.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,h=t.cartState,p=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==h?(0,j.jsx)(vt,{baseFontSize:c,width:m,height:f}):"init"==h?0==p?(0,j.jsx)(pt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:s}):u?(0,j.jsx)(xt,{onClick:g,baseFontSize:c,cartCount:p,width:m,height:f,onCartIconClick:x}):(0,j.jsx)(pt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:s}):(0,j.jsx)(ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==h?null!==(l=null===q.m||void 0===q.m||null===(a=q.m[s])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:s})},mt=i(6305),ft=i(2720),wt=i(3755),Ct=i(7973);var bt=function(t){var e,i,n;const r=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",a=(t.height,t.maxHeight),s=null!==(i=t.baseFontSize)&&void 0!==i?i:10,c=t.onOptionSelected,u=null!==(n=t.optionTitleColor)&&void 0!==n?n:"black",h=t.data,[p]=(0,d.QN)("whatmorePrimaryFont"),[v]=(0,d.QN)("websiteLanguage"),x=(0,o.useRef)(null),[g,m]=(0,o.useState)(!1),[f,w]=(0,o.useState)(0),[C,b]=(0,o.useState)(0);function y(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[S,k]=(0,o.useState)([y(r[0]),y(r[1]),y(r[2])]);return(0,o.useEffect)(()=>{c(S)},[S]),(0,j.jsx)(N.B,{ref:x,direction:"column",width:l,maxHeight:a,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",overflowY:"auto",onTouchStart:t=>{x.current&&(m(!0),w(t.touches[0].clientY),b(x.current.scrollTop))},onTouchMove:t=>{if(!g||!x.current)return;const e=t.touches[0].clientY,i=1.5*(f-e);x.current.scrollTop=C+i,t.preventDefault()},onTouchEnd:()=>{m(!1)},onWheel:t=>{if(!x.current)return;let e=0===t.deltaMode?1:15;x.current.scrollTop+=t.deltaY*e},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px",background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"24px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"},"overflow-y":"scroll !important","-webkit-overflow-scrolling":"touch"},children:r.map((e,i)=>{var o,n,r,l;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.type))return;const a=e.every(e=>{var i,o,n,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(o=i.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===n?void 0:n.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,j.jsxs)(N.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,j.jsx)(_.o,{width:"100%",children:(0,j.jsx)(ft.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,j.jsxs)(B.E,{as:"b",fontSize:1.2*s+"px",sx:{color:u+" !important",fontFamily:p+" !important"},align:"center",marginY:"2px",children:["\xa0",null!==(n=null===q.m||void 0===q.m||null===(r=q.m[v])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==n?n:e[0].type,"\xa0"]}),(0,j.jsx)(wt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map((e,o)=>{var n,r,l,d,c,u,v,x;return(0==i||(null===h||void 0===h||null===(n=h.variants)||void 0===n?void 0:n.find(t=>t[`option${i}`]==(null===S||void 0===S?void 0:S[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option))))&&(0,j.jsxs)(F.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)k([S[0],S[1],t]);else if(1==e){var i,o;k([S[0],t,null===h||void 0===h||null===(i=h.variants)||void 0===i||null===(o=i.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===o?void 0:o.option3])}else{var n,r,l,a,d,s;const e=null===h||void 0===h||null===(n=h.variants)||void 0===n||null===(r=n.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;k([t,null===h||void 0===h||null===(l=h.variants)||void 0===l||null===(a=l.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===a?void 0:a.option2,null===h||void 0===h||null===(d=h.variants)||void 0===d||null===(s=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===S[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===S[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===S[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:a?"0px":"8px",borderRadius:a?"50%":"0",children:[!a&&(0,j.jsxs)(B.E,{as:e.available?"samp":"s",fontSize:.8*s+"px",sx:{color:e.option===S[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:p+" !important"},align:"center",paddingX:(g=e.option,g.length>=3?"0px":.5*s+"px"),children:["\xa0",e.option,"\xa0"]}),a&&(0,j.jsx)(L._,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:a?"50%":"100%"},src:(0,Ct.b)(null!==(r=null===t||void 0===t||null===(l=t.finalArr)||void 0===l||null===(d=l.finalArr)||void 0===d||null===(c=d.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===c?void 0:c.src)&&void 0!==r?r:null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(v=u.finalArrExternal)||void 0===v||null===(x=v.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===x?void 0:x.optionsrc,"?width=400&height=400")})]},o);var g})},i)]},i)})})},yt=i(6594),jt=i(4833),St=i(3161);var kt=function(t){var e,i,n,r,u,h,p,v;const[x]=(0,d.QN)("isInDesignMode"),[g]=(0,d.QN)("isDemoBrand"),[m]=(0,d.QN)("whatmoreSecondaryColor"),f=(0,d.Xd)("whatmoreSecondaryColorShade900"),[w]=(0,d.QN)("whatmorePrimaryFont"),[b]=(0,d.QN)("whatmoreShopId"),[y,S,k,I]=(0,s.A)(),[z,_]=(0,o.useState)(!1),[E,T]=(0,o.useState)(t.product),A=(0,d.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:P}=(0,o.useContext)(C.BR),[R,O]=(0,o.useState)(null),[D,W]=(0,o.useState)(parseFloat(E.price)),[M,Q]=(0,o.useState)(parseFloat(E.compare_price)),[H,V]=(0,o.useState)(null===E||void 0===E?void 0:E.title),[X,Y]=(0,o.useState)(E.currency),[U,$]=(0,o.useState)(null),q=t.event,K=t.productClickHandler,{whatmoreIsPreviewMode:G}=(0,o.useContext)(C.BR),[Z,nt]=(0,o.useState)(null),[dt,st]=(0,o.useState)(!1),[ht,pt]=(0,o.useState)(!1),[vt,xt,mt,ft,wt,kt,It,zt]=t.useAddToCartStatesInstance,_t=t.productCartCounts&&t.productCartCounts[E.product_id]?t.productCartCounts[E.product_id]:vt.cart_count;if((0,o.useEffect)(()=>{(0,a.w4b)(b)?(0,yt.ck)(E,(0,a.NCy)(b),b).then(t=>{T(t),W(parseFloat(t.price)),Q(parseFloat(t.compare_price)),Y(t.currency),st(!0)}).catch(t=>{st(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,c.M)(E,(0,a.NCy)(b),b);$(l),W((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Q((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),st(!0)}catch(l){st(!0)}})(),!(0,a.E8r)(b)||!("in_stock"in q)||null!==q&&void 0!==q&&q.in_stock||mt("errored")},[]),(0,o.useEffect)(()=>{var t,e;const i=null!=U?null===U||void 0===U||null===(t=U.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===U||void 0===U||null===(e=U.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===U||void 0===U||null===(r=U.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));nt({position:i,finalArr:o,finalArrExternal:n})},[U]),!dt)return(0,j.jsx)(j.Fragment,{});var Ft=.68*I,Et=.55*Ft,Tt=.4*Ft,At=Ft*(.55-.4),Nt=Ft+"px",Bt=Tt+"px",Pt=At+"px",Lt=.12*Tt;const Rt=(0,a.XQu)(b);function Ot(){window.location.href=function(t){return(0,a.BLb)(b)?t.product_link+"?"+(0,a.VCz)(b)+"&"+(0,a.Spk)(b)+"&"+(0,a.$lz)(b):t.product_link}(E)}function Dt(t,e){x||g||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==b?Ot():K(e),_(!0)}const Wt=(null===P||void 0===P?void 0:P.landingLocationType)||"index",Mt=(null===P||void 0===P?void 0:P.templateType)||"template-a",Qt=(0,jt.Wd)(Wt)+(0,jt.gf)(Mt)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id),Ht=(0,a.HKH)(b)&&t.activeProductsCount>1&&"init"==vt.state&&0==vt.cart_count;return(0,j.jsxs)(N.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,a.qw1)(b),width:Nt,height:"fit-content",boxShadow:"round"==A?"dark-lg":null,onClick:()=>{Dt(q,E)},backgroundColor:(0,tt.YU)("#ffffff",(0,a.p2R)(b)),animation:z?J.jd:J.so,borderRadius:"round"==A?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,a.YcK)(b),borderColor:(0,a.Fwt)(b)},children:[(0,j.jsxs)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,j.jsx)(F.az,{height:Bt,width:Bt,children:(0,j.jsx)(L._,{className:"product-tile-image",width:Bt,height:Bt,src:(0,Ct.b)(null!==(e=null!==(i=null===Z||void 0===Z||null===(n=Z.finalArr)||void 0===n||null===(r=n.find(t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===Z||void 0===Z||null===(u=Z.finalArrExternal)||void 0===u||null===(h=u.find(t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===Z||void 0===Z?void 0:Z.position])))||void 0===h?void 0:h.src)&&void 0!==e?e:E.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,a.KZe)(b)+" !important"}})}),(0,j.jsxs)(F.az,{height:Bt,width:Ft-Tt+"px",children:[(0,j.jsxs)(N.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,a.UlM)(b)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,j.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.uoB)(b),"important"),t.style.setProperty("font-size",1.1*Lt*(0,a.rh$)(b)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",w,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,lt.v)("58396311733"===b?(0,St.$)(H):H,"prod-tile")}),(0,a.Nzx)(b)?(0,j.jsxs)(N.B,{className:"whatmore-product-atc-price",direction:(0,a.vw2)(b)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==A?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[dt&&(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.9*Lt*(0,a.rh$)(b)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,a.uoB)(b)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,yt.Sb)("70756368633"===b?parseFloat(null===q||void 0===q||null===(p=q.products)||void 0===p||null===(v=p[0])||void 0===v?void 0:v.price):null!==D&&void 0!==D?D:null===E||void 0===E?void 0:E.price,"",b,X)," \xa0"]}),(0,at.P)(D,M)&&dt?(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.9*Lt*(0,a.rh$)(b)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,a.gld)(b)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,yt.Sb)(null!==M&&void 0!==M?M:null===E||void 0===E?void 0:E.compare_price,"",b,X)]}):(0,j.jsx)(j.Fragment,{})]}):(0,j.jsx)(j.Fragment,{}),(0,j.jsx)(B.E,{fontSize:.82*Lt*(0,a.rh$)(b)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:w+" !important",color:(0,a.Br1)(b)+" !important"},children:G?(0,a.p6A)(b):(0,a.i2h)(b)})]}),(0,a.UlM)(b)?(0,j.jsx)(N.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,j.jsx)(N.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:f,sx:{borderRadius:"round"==A?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,a.SK$)(b)?(0,j.jsx)(ut.$,{size:"sm",_hover:{bg:m},sx:{bg:m},children:(0,j.jsx)(B.E,{color:"white",paddingX:"6px",fontSize:.8*Lt+"px",children:"VIEW PRODUCT"})}):(0,j.jsx)(rt.A,{sx:{color:m,fontSize:1.3*Lt+"px"}})}),(0,j.jsx)(F.az,{width:"2px"})]})}):(0,j.jsx)(j.Fragment,{})]})]}),"awaitingVariantSelection"==vt.state&&null!=ft?(0,j.jsx)(F.az,{width:"100%",height:"fit-content",marginTop:.1*Et+"px",marginBottom:.1*Et+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Et*Rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,j.jsx)(bt,{maxHeight:Et*Rt*.5+"px",width:Nt,height:"fit-content",event:q,product:E,finalArr:Z,data:U,productVariantOptions:ft,baseFontSize:1.2*Lt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(W(e.price/100),Q(e.compare_price/100),e.title.includes(" ")&&V(e.title))}(t)}})}):(0,j.jsx)(j.Fragment,{}),(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:Pt,spacing:0,children:[(0,j.jsx)(N.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Pt,children:(0,j.jsx)(gt,{baseFontSize:Ht?.2*At:.3*At,setProductVariantTitle:V,product:E,cartState:vt.state,cartCount:_t,updateCartState:mt,onClickAtc:t=>{"72603631788"!==b&&"5220302897"!==b||"init"!=vt.state?"init"==vt.state?(wt(Qt),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:P,event:q,productList:[E],ctaList:q.cta})):"awaitingVariantSelection"==vt.state&&(kt(R,Qt),V(null===E||void 0===E?void 0:E.title)):Dt(q,E)},onCartIconClick:()=>{zt()}})}),Ht&&(0,j.jsx)(N.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*At,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,j.jsx)(ut.$,{disabled:ht,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${w} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{pt(!0),xt(Qt),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:P,event:q,productList:q.products,ctaList:q.cta}),pt(!1)}catch(e){console.error("Failed to add items:",e),pt(!1)}},children:ht?(0,j.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,j.jsx)(ct.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*At*2.5+"px"}})}):(0,j.jsx)(B.E,{fontFamily:w,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),zt=i(8397);var _t=function(t){var e,i,o,n,r;const[s]=(0,d.QN)("isInDesignMode"),[c]=(0,d.QN)("isDemoBrand"),[u]=(0,d.QN)("whatmoreSecondaryColor"),[h]=(0,d.QN)("whatmorePrimaryFont"),[p]=(0,d.QN)("whatmoreShopId"),[v]=(0,d.QN)("websiteLanguage"),x=t.event,g=t.product,m=null!==(e=t.baseFontSize)&&void 0!==e?e:10,f=null!==(i=t.width)&&void 0!==i?i:"fit-content",w=null!==(o=t.height)&&void 0!==o?o:"fit-content";return(0,j.jsx)(zt.N,{href:g.product_link,color:u,onClick:()=>{!function(t,e){s||c||(async()=>{(0,l.TJ)(t,e)})()}(x,g)},children:(0,j.jsx)(F.az,{width:f,height:w,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,j.jsx)(_.o,{children:(0,j.jsx)(B.E,{lineHeight:"100%",fontSize:1.4*m,fontWeight:"semibold",sx:{fontFamily:h+" !important",color:u+" !important"},children:"MORE INFO"!=(0,a.KnH)(p)?(0,a.KnH)(p):null!==(n=null===q.m||void 0===q.m||null===(r=q.m[v])||void 0===r?void 0:r.more_info)&&void 0!==n?n:(0,a.KnH)(p)})}),(0,j.jsx)(_.o,{children:(0,j.jsx)(rt.A,{sx:{color:u,fontSize:1.4*m}})})]})})})},Ft=i(9408);function Et(t){var e,i,n;const[r]=(0,d.QN)("whatmoreSecondaryColor"),[l]=(0,d.QN)("whatmorePrimaryFont"),[s]=(0,d.QN)("whatmoreShopId"),[c]=(0,d.QN)("websiteLanguage"),[u,h]=(0,o.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,x=t.width,g=t.height,m=t.title;return(0,j.jsx)(F.az,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,a.Wc_)(s)?r:(0,a.Wc_)(s),onClick:t=>{t.stopPropagation(),v(),h(!0)},animation:u?J.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,j.jsxs)(B.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*p+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,a.Hfu)(s)+" !important"},children:["\xa0","SHOP NOW"==m&&null!==(i=null===q.m||void 0===q.m||null===(n=q.m[c])||void 0===n?void 0:n.shop_now)&&void 0!==i?i:m,"\xa0"]})})})}var Tt=function(t){var e,i,o;const[n]=(0,d.QN)("whatmoreShopId"),r=t.event,l=t.product,s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,u=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(o=t.height)&&void 0!==o?o:"100%";return(0,j.jsx)(Et,{onClick:function(){c()},event:r,product:l,baseFontSize:s,width:u,height:h,title:(0,a.Qed)(n)})};var At=function(t){var e,i,n,r,u;const[h]=(0,d.QN)("isInDesignMode"),[p]=(0,d.QN)("isDemoBrand"),[v]=(0,d.QN)("whatmorePrimaryFont"),[x]=(0,d.QN)("whatmoreShopId"),[g,m,f,w]=(0,s.A)(),[b,y]=(0,o.useState)(!1),[S,k]=(0,o.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,o.useContext)(C.BR),[z,E]=(0,o.useState)(null),[T,A,P,R,O,D,W,M]=t.useAddToCartStatesInstance,[Q,H]=(0,o.useState)(parseFloat(S.price)),[V,X]=(0,o.useState)(parseFloat(S.compare_price)),[Y,U]=(0,o.useState)(S.currency),[$,q]=(0,o.useState)(!1),K=t.productCartCounts&&t.productCartCounts[S.product_id]?t.productCartCounts[S.product_id]:T.cart_count,G=t.event,Z=t.productClickHandler,tt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,nt=(null===I||void 0===I?void 0:I.landingLocationType)||"index",rt=(null===I||void 0===I?void 0:I.templateType)||"template-a",dt=(0,jt.Wd)(nt)+(0,jt.gf)(rt)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);(0,o.useEffect)(()=>{(0,a.w4b)(x)?(0,yt.ck)(S,(0,a.NCy)(x),x).then(t=>{k(t),H(parseFloat(t.price)),X(parseFloat(t.compare_price)),U(t.currency)}):(async()=>{var t,e,i,o,n,r;const l=await(0,c.M)(S,(0,a.NCy)(x),x);H((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),X((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),q(!0)})()},[]);var st=w*tt,ct=.3*st,ut=st+"px",ht=.7*ct,pt=.9*ht,vt=.12*ct;const xt=(0,a.XQu)(x);function mt(t,e){h||p||(async()=>{(0,l.Pb)(t,e)})(),Z(e),y(!0)}return(0,j.jsx)(N.B,{direction:"row",width:ut,height:"fit-content",justifyContent:"center",children:(0,j.jsx)(F.az,{marginTop:et,marginBottom:(0,a.qw1)(x),width:ut,onClick:t=>{},animation:b?J.jd:null,borderRadius:"lg",onAnimationEnd:()=>{y(!1)},children:(0,j.jsxs)(N.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{mt(G,S)},children:[(0,j.jsx)(F.az,{height:ht+"px",width:ht+"px",children:(0,j.jsx)(N.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,j.jsx)(F.az,{height:pt+"px",width:pt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,j.jsx)(L._,{width:pt+"px",height:pt+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,j.jsx)(F.az,{height:ht+"px",width:st-ht+"px",children:(0,j.jsxs)(N.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,j.jsx)(B.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*vt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:v+" !important",color:"white !important"},children:(0,lt.v)(S.title.toString())}),(0,j.jsxs)(N.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,a.Nzx)(x)?(0,j.jsxs)(N.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[$&&(0,j.jsx)(B.E,{noOfLines:1,fontSize:1*vt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"white !important"},children:" "+(0,yt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(i=G.products)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price):null!==Q&&void 0!==Q?Q:null===S||void 0===S?void 0:S.price,"",x,Y)}),(0,j.jsx)(_.o,{children:(0,at.P)(S.price,S.compare_price)&&$?(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.8*vt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,yt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(r=G.products)||void 0===r||null===(u=r[0])||void 0===u?void 0:u.compare_price):null!==V&&void 0!==V?V:null===S||void 0===S?void 0:S.compare_price,"",x,Y)]}):(0,j.jsx)(j.Fragment,{})})]}):(0,j.jsx)(j.Fragment,{}),(0,j.jsx)(_.o,{children:(0,j.jsx)(It.A,{storeId:x,productId:S.client_product_id,productLink:S.product_link,fontSize:1*vt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==T.state&&null!=R?(0,j.jsx)(F.az,{width:"100%",height:"fit-content",marginTop:.1*ct+"px",marginBottom:.1*ct+"px",overflowY:"auto",overflowX:"hidden",maxHeight:ct*xt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,j.jsx)(bt,{width:ut,height:"fit-content",event:G,product:S,productVariantOptions:R,baseFontSize:1*vt,onOptionSelected:t=>{!function(t){E(t);const e=W(t);e&&(H(e.price/100),X(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,j.jsx)(j.Fragment,{}),(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,j.jsx)(F.az,{width:"100%",height:"100%",children:(0,j.jsx)(_t,{baseFontSize:.8*vt,event:G,product:S,width:"100%",height:"100%"})}),(0,j.jsx)(F.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,a.ZzM)(x)?(0,j.jsx)(Tt,{baseFontSize:.8*vt,event:G,product:S,borderRadius:"md",onShopNowClick:t=>{mt(G,S)}}):(0,j.jsx)(j.Fragment,{children:"form"===(0,a.nWM)(x)?(0,j.jsx)(Ft.default,{baseFontSize:.8*vt,event:G,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,j.jsx)(gt,{baseFontSize:.8*vt,event:G,product:S,cartState:T.state,cartCount:K,borderRadius:"md",onClickAtc:t=>{"72603631788"!==x&&"5220302897"!==x||"init"!=T.state?"init"==T.state?(O(dt),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:G,productList:[S],ctaList:G.cta})):"awaitingVariantSelection"==T.state&&D(z,dt):mt(G,S)},onCartIconClick:()=>{M()}})})})]})]})})})};var Nt=function(t){const[e]=(0,d.QN)("isInDesignMode"),[i]=(0,d.QN)("isDemoBrand"),[n]=(0,d.QN)("whatmoreSecondaryColor"),r=(0,d.Xd)("whatmoreSecondaryColorShade900"),[u]=(0,d.QN)("whatmorePrimaryFont"),[h]=(0,d.QN)("whatmoreShopId"),[p,v,x,g]=(0,s.A)(),[m,f]=(0,o.useState)(!1),[w,b]=(0,o.useState)(t.product),y=(0,d.Xd)("whatmoreUITheme"),[S,k]=(0,o.useState)(!1),[I,z]=(0,o.useState)(parseFloat(w.price)),[_,E]=(0,o.useState)(parseFloat(w.compare_price)),[T,A]=(0,o.useState)(w.currency),[P,R]=(0,o.useState)(!0),O=t.event,[D,W]=(0,o.useState)();if((0,o.useEffect)(()=>{if("6573064236"===h&&null!==w&&void 0!==w&&w.product_link){const t=Math.ceil(parseFloat(w.price)),e=Math.ceil(parseFloat(w.compare_price));return z(t),E(e),void k(!0)}(0,a.w4b)(h)?(0,yt.ck)(w,(0,a.NCy)(h),h).then(t=>{b(t),z(parseFloat(t.price)),E(parseFloat(t.compare_price)),A(t.currency),k(!0)}).catch(t=>k(!0)):(async()=>{try{var t,e,i,o,n,r;const l=await(0,c.M)(w,(0,a.NCy)(h),h);W(l),z((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),E((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),k(!0)}catch(l){k(!0)}})()},[]),!S)return(0,j.jsx)(j.Fragment,{});var M=.68*g,Q=.4*M,H=M+"px",V=Q+"px",Y=M*(.55-.4)+"px",U=.12*Q;(0,a.XQu)(h);const{whatmoreWidgetSourceDetails:$}=(0,o.useContext)(C.BR);function q(t){return(0,a.BLb)(h)?t.product_link+"?"+(0,a.VCz)(h)+"&"+(0,a.Spk)(h)+"&"+(0,a.$lz)(h):t.product_link}function K(t,o){e||i||(async()=>{(0,l.Pb)(t,o),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:$,event:t,productList:[o],ctaList:t.cta})})(),f(!0)}return P?(0,j.jsxs)(N.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,a.qw1)(h),width:H,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{K(O,w),window.location.href=q(w)},backgroundColor:(0,tt.YU)("#ffffff",(0,a.p2R)(h)),animation:m?J.jd:J.so,borderRadius:"round"==y?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,a.YcK)(h),borderColor:(0,a.Fwt)(h)},children:[(0,j.jsxs)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,j.jsx)(F.az,{height:V,width:V,children:(0,j.jsx)(L._,{width:V,height:V,src:(0,Ct.b)(w.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,a.KZe)(h)+" !important"}})}),(0,j.jsxs)(F.az,{height:V,width:M-Q+"px",children:[(0,j.jsxs)(N.B,{direction:"column",justifyContent:(0,a.UlM)(h)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,j.jsx)(B.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:u+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*U+"px !important"},children:(0,lt.v)(null==w.title?"":w.title.toString(),"prod-tile")}),(0,a.Nzx)(h)?(0,j.jsxs)(N.B,{className:"whatmore-product-shopnow-price",direction:(0,a.vw2)(h)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[S&&(0,j.jsxs)(B.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:u+" !important",color:(0,a.uoB)(h)+" !important",margin:"0px !important"},children:[" "+(0,yt.Sb)(null!==I&&void 0!==I?I:null===w||void 0===w?void 0:w.price,"",h,T)," \xa0"]}),(0,at.P)(I,_)&&S?(0,j.jsxs)(B.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:u+" !important",color:(0,a.gld)(h)+" !important",margin:"0px !important"},children:[" ",(0,yt.Sb)(null!==_&&void 0!==_?_:null===w||void 0===w?void 0:w.compare_price,"",h,T)]}):(0,j.jsx)(j.Fragment,{})]}):(0,j.jsx)(j.Fragment,{}),""!=(0,a.rsz)(h)&&(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.9*U+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,a.ogW)(h)+" !important",color:(0,a._zx)(h)+" !important",margin:"0px !important"},children:["\xa0",(0,a.rsz)(h)," \xa0"]})]}),(0,a.UlM)(h)?(0,j.jsx)(N.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,j.jsx)(N.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==h||"STRNUBH0VYQ"==h||"STRAPB3KXSR"==h?(0,j.jsx)(X.A,{sx:{boxShadow:3,fontSize:1.3*U,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),R(!1)}}):(0,j.jsx)(rt.A,{sx:{color:n,fontSize:1.3*U+"px"}})}),(0,j.jsx)(F.az,{width:"2px"})]})}):(0,j.jsx)(j.Fragment,{})]})]}),(0,a.Woi)(h)&&(0,j.jsx)(N.B,{direction:"row",width:"100%",height:Y,justifyContent:"center",alignItems:"center",children:(0,j.jsx)(Tt,{baseFontSize:.8*U,event:O,product:w,borderRadius:"md",onShopNowClick:t=>{K(O,w),window.location.href=q(w)}})})]}):(0,j.jsx)(j.Fragment,{})};function Bt(t){var e;const[i]=(0,d.QN)("whatmoreSecondaryColor"),[n]=(0,d.QN)("whatmorePrimaryFont"),[r]=(0,d.QN)("whatmoreShopId"),[l,s]=(0,o.useState)(!1),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.onClick,h=t.width,p=t.height,v=t.title,x=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,j.jsx)(Pt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:c,width:h,height:p}):(0,j.jsxs)(F.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?J.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,j.jsx)(N.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),s(!0)},children:(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,j.jsxs)(N.B,{direction:"row",backgroundColor:x?(0,tt.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),u(),s(!0)},children:[(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:(0,a.Hfu)(r)+" !important"},children:["\xa0",v,"\xa0"]}),x?(0,j.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,j.jsx)(ct.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,j.jsx)(j.Fragment,{})]})]})}function Pt(t){const[e]=(0,d.QN)("whatmoreSecondaryColor"),[i]=(0,d.QN)("whatmorePrimaryFont"),[n]=(0,d.QN)("whatmoreShopId"),[r,l]=(0,o.useState)(!1),s=t.onClick,c=t.baseFontSize;return(0,j.jsx)(N.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,j.jsx)(F.az,{className:"whatmore-add-to-cart-initial-button",width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),s(),l(!0)},animation:r?J.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,j.jsx)(_.o,{children:(0,j.jsx)(B.E,{lineHeight:"100%",fontSize:1.3*c+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,a.Hfu)(n)} !important`},children:(0,a.KPq)(n)})})})})})}function Lt(t){var e;const[i]=(0,d.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,j.jsx)(F.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,j.jsx)(N.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,j.jsxs)(B.E,{color:"gray",lineHeight:"100%",fontSize:1.2*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Rt(t){var e;const[i]=(0,d.QN)("whatmoreSecondaryColor"),[o]=(0,d.QN)("whatmorePrimaryFont"),[n]=(0,d.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,s=(t.width,t.height,t.onCartIconClick);return(0,j.jsx)(F.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,j.jsxs)(N.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,j.jsx)(_.o,{paddingX:"5px",onClick:()=>{s()},children:"1972174947"!=n&&"55194878152"!=n&&"12181504100"!=n?(0,j.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}}):(0,j.jsx)(ut.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,j.jsx)(B.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,j.jsx)(B.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,j.jsx)(_.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,j.jsx)(dt.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ot=function(t){var e,i,o,n;const[r]=(0,d.QN)("whatmoreShopId"),l=t.event,a=t.product,s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function x(){p()}const g=null!==(o=t.width)&&void 0!==o?o:"100%",m=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==u?(0,j.jsx)(Lt,{event:l,product:a,baseFontSize:s,width:g,height:m}):"init"==u?0==h?(0,j.jsx)(Pt,{onClick:x,event:l,product:a,baseFontSize:s,width:g,height:m}):c?(0,j.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:s,cartCount:h,width:g,height:m,onCartIconClick:v}):(0,j.jsx)(Pt,{onClick:x,event:l,product:a,baseFontSize:s,width:g,height:m}):(0,j.jsx)(Bt,{onClick:x,cartState:u,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:s,width:g,height:m,title:"awaitingVariantSelection"==u?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})};var Dt=function(t){var e,i,n,r,u,h;const[p]=(0,d.QN)("isInDesignMode"),[v]=(0,d.QN)("isDemoBrand"),[x]=(0,d.QN)("whatmorePrimaryFont"),[g]=(0,d.QN)("whatmoreShopId"),[m,f,w,b]=(0,s.A)(),[y,S]=(0,o.useState)(!1),[k,I]=(0,o.useState)(t.product),z=(0,d.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:_}=(0,o.useContext)(C.BR),[E,T]=(0,o.useState)(null),[A,P]=(0,o.useState)(parseFloat(k.price)),[R,O]=(0,o.useState)(parseFloat(k.compare_price)),[D,W]=(0,o.useState)(k.currency),[M,Q]=(0,o.useState)(null),H=t.event,V=t.productClickHandler,[X,Y]=(0,o.useState)(null),[U,$]=(0,o.useState)(!1),[q,K,G,Z,nt,rt,dt,st]=t.useAddToCartStatesInstance,ct=t.productCartCounts&&t.productCartCounts[k.product_id]?t.productCartCounts[k.product_id]:q.cart_count,ut=(null===_||void 0===_?void 0:_.landingLocationType)||"index",ht=(null===_||void 0===_?void 0:_.templateType)||"template-a",pt=(0,jt.Wd)(ut)+(0,jt.gf)(ht)+"_"+(null===H||void 0===H?void 0:H.event_id);(0,o.useEffect)(()=>{(0,a.w4b)(g)?(0,yt.ck)(k,(0,a.NCy)(g),g).then(t=>{I(t),P(parseFloat(t.price)),O(parseFloat(t.compare_price)),W(t.currency),$(!0)}):(async()=>{var t,e,i,o,n,r;const l=await(0,c.M)(k,(0,a.NCy)(g),g);Q(l),P((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),$(!0)})(),!(0,a.E8r)(g)||null!==H&&void 0!==H&&H.in_stock||G("errored")},[]),(0,o.useEffect)(()=>{var t,e;const i=null!=M?null===M||void 0===M||null===(t=M.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===M||void 0===M||null===(e=M.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===M||void 0===M||null===(r=M.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));Y({position:i,finalArr:o,finalArrExternal:n})},[M]);var vt=.72*b,xt=.37*vt,gt=vt*(.48-.37),mt=.95*vt+"px",ft=xt+"px",wt=.12*xt;function bt(){window.location.href=function(t){return(0,a.BLb)(g)?t.product_link+"?"+(0,a.VCz)(g)+"&"+(0,a.Spk)(g)+"&"+(0,a.$lz)(g):t.product_link}(k)}return(0,j.jsx)(N.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:"24px",width:mt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){p||v||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==g?bt():V(e),S(!0)}(H,k)},backgroundColor:(0,tt.YU)("#ffffff",(0,a.p2R)(g)),animation:y?J.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{S(!1)},spacing:0,sx:{borderWidth:(0,a.YcK)(g),borderColor:(0,a.Fwt)(g)},children:(0,j.jsxs)(N.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,j.jsx)(F.az,{height:ft,width:ft,children:(0,j.jsx)(L._,{width:"100%",height:"100%",src:(0,Ct.b)(null!==(e=null!==(i=null===X||void 0===X||null===(n=X.finalArr)||void 0===n||null===(r=n.find(t=>(null===t||void 0===t?void 0:t.color)==(null===E||void 0===E?void 0:E[null===X||void 0===X?void 0:X.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===X||void 0===X||null===(u=X.finalArrExternal)||void 0===u||null===(h=u.find(t=>(null===t||void 0===t?void 0:t.color)==(null===E||void 0===E?void 0:E[null===X||void 0===X?void 0:X.position])))||void 0===h?void 0:h.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,a.KZe)(g)+" !important"}})}),(0,j.jsx)(F.az,{height:ft,width:vt-xt+"px",children:(0,j.jsxs)(N.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,j.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,lt.v)(null==k.title?"":k.title.toString())}),(0,a.Nzx)(g)?(0,j.jsxs)(N.B,{direction:(0,a.vw2)(g)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[U&&(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.9*wt*(0,a.rh$)(g)+"px !important",lineHeight:"100%",sx:{fontFamily:x+" !important",color:(0,a.uoB)(g)+" !important",fontWeight:"bold"},children:[" "+(0,yt.Sb)(null!==A&&void 0!==A?A:null===k||void 0===k?void 0:k.price,"",g,D)," \xa0"]}),(0,at.P)(A,R)&&U?(0,j.jsxs)(B.E,{noOfLines:1,fontSize:.9*wt*(0,a.rh$)(g)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,a.gld)(g)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,yt.Sb)(null!==R&&void 0!==R?R:null===k||void 0===k?void 0:k.compare_price,"",g,D)]}):(0,j.jsx)(j.Fragment,{})]}):(0,j.jsx)(j.Fragment,{}),(0,j.jsx)(Ot,{baseFontSize:.3*gt,event:H,product:k,cartState:q.state,cartCount:ct,updateCartState:G,onClickAtc:t=>{"init"===q.state?(nt(pt,!0),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_,event:H,productList:[k],ctaList:H.cta})):"awaitingVariantSelection"===q.state&&V(k)},onCartIconClick:t=>{st()}})]})})]})})};function Wt(t){var e,i,n;const[r]=(0,d.QN)("whatmoreSecondaryColor"),[l]=(0,d.QN)("whatmorePrimaryFont"),[s]=(0,d.QN)("whatmoreShopId"),[c,u]=(0,o.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon,f="12px";return(0,j.jsxs)(F.az,{display:"flex",width:v,height:x,padding:"2px",boxShadow:"lg",borderRadius:f,animation:c?J.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",backgroundColor:"white",borderRadius:f,onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),u(!0)},children:(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===q.m||void 0===q.m||null===(n=q.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===n?void 0:n.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,j.jsxs)(N.B,{direction:"row",backgroundColor:m?(0,tt.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",borderRadius:f,onClick:t=>{t.stopPropagation(),p(),u(!0)},children:[(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,a.Hfu)(s)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,j.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,j.jsx)(ct.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,j.jsx)(j.Fragment,{})]})]})}function Mt(t){var e,i,n;const[r]=(0,d.QN)("whatmoreSecondaryColor"),[l]=(0,d.QN)("whatmorePrimaryFont"),[s]=(0,d.QN)("whatmoreShopId"),[c,u]=(0,o.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,v=t.width,x=t.height;return(0,j.jsx)(F.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,a.Wc_)(s)?r:(0,a.Wc_)(s),borderRadius:"7px",onClick:t=>{t.stopPropagation(),p(),u(!0)},animation:c?J.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"10px",children:(0,j.jsx)(_.o,{maxWidth:"90%",children:(0,j.jsxs)(B.E,{lineHeight:"100%",fontSize:1.2*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,a.Hfu)(s)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,a.KPq)(s)?(0,a.KPq)(s):null!==(i=null===q.m||void 0===q.m||null===(n=q.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===n?void 0:n.add_to_cart)&&void 0!==i?i:(0,a.KPq)(s),"\xa0"]})})})})}function Qt(t){var e;const[i]=(0,d.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,j.jsx)(F.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,j.jsxs)(B.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ht(t){var e;const[i]=(0,d.QN)("whatmoreSecondaryColor"),[o]=(0,d.QN)("whatmorePrimaryFont"),[n]=(0,d.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,s=t.cartCount,c=t.width,u=t.height,h=t.onCartIconClick;return(0,j.jsx)(F.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,j.jsx)(_.o,{paddingX:"5px",onClick:(0,a.DiI)(n)?()=>{h()}:void 0,children:(0,a.DiI)(n)?(0,j.jsx)(ut.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,j.jsx)(B.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,j.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})}),(0,j.jsx)(B.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:s}),(0,j.jsx)(_.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,j.jsx)(dt.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Vt=function(t){var e,i,o,n,r,l,a;const[s]=(0,d.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,h=t.cartState,p=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==h?(0,j.jsx)(Qt,{baseFontSize:c,width:m,height:f}):"init"==h?0==p?(0,j.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:s}):u?(0,j.jsx)(Ht,{onClick:g,baseFontSize:c,cartCount:p,width:m,height:f,onCartIconClick:x}):(0,j.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:s}):(0,j.jsx)(Wt,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==h?null!==(l=null===q.m||void 0===q.m||null===(a=q.m[s])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:s})};var Xt=function(t){var e;const[i]=(0,d.QN)("isInDesignMode"),[n]=(0,d.QN)("isDemoBrand"),[r]=(0,d.QN)("whatmorePrimaryFont"),[u]=(0,d.QN)("whatmoreShopId"),[h,p,v,x]=(0,s.A)(),[g,m]=(0,o.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(C.BR),[w,b]=(0,o.useState)(null),[y,S]=(0,o.useState)(parseFloat(g.price)),[k,I]=(0,o.useState)(parseFloat(g.compare_price)),[z,_]=(0,o.useState)(null===g||void 0===g?void 0:g.title),[F,E]=(0,o.useState)(g.currency),[T,A]=(0,o.useState)(!1),[N,B]=(0,o.useState)(!1),[P]=(0,d.QN)("whatmoreSecondaryColor"),[L,R,O,D,W,M,Q,H]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:L.cart_count,X=t.event,Y=t.productClickHandler;if((0,o.useEffect)(()=>{(0,a.w4b)(u)?(0,yt.ck)(g,(0,a.NCy)(u),u).then(t=>{m(t),S(parseFloat(t.price)),I(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,c.M)(g,(0,a.NCy)(u),u);S((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),I((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),A(!0)}catch(l){A(!0)}})()},[]),!T)return(0,j.jsx)(j.Fragment,{});const U=.765*x,$=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*U:U,q=.198*$,K=.0315*x,G=1.05*K,Z=Number((0,a.rh$)(u)),J=.85*K*(isNaN(Z)||0===Z?1:Z),tt=.75*K,et=(0,a.XQu)(u),nt=(()=>{if((0,at.P)(y,k)){const t=(k-y)/k*100;return Math.round(t)}return null})(),rt=(0,a.fpt)(u),dt=rt||P,st=(ct=dt,ut=.15,`rgba(${parseInt(ct.slice(1,3),16)}, ${parseInt(ct.slice(3,5),16)}, ${parseInt(ct.slice(5,7),16)}, ${ut})`);var ct,ut;function ht(){window.location.href=function(t){return(0,a.BLb)(u)?t.product_link+"?"+(0,a.VCz)(u)+"&"+(0,a.Spk)(u)+"&"+(0,a.$lz)(u):t.product_link}(g)}function pt(t,e){i||n||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==u?ht():Y(e)}const vt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",xt=(null===f||void 0===f?void 0:f.templateType)||"template-a",gt=(0,jt.Wd)(vt)+(0,jt.gf)(xt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id);return(0,j.jsx)("div",{style:{width:$+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},onClick:()=>{if("22907887"===u)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);pt(X,g)},onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),children:(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,j.jsx)("div",{style:{width:q+"px",height:q+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,j.jsx)("img",{src:(0,Ct.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,j.jsxs)("div",{style:{flex:1},children:[(0,j.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*G+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:(0,lt.v)(z,"prod-tile")}),(0,a.Nzx)(u)&&(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,j.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,a.uoB)(u),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*J+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,yt.Sb)(null!==y&&void 0!==y?y:null===g||void 0===g?void 0:g.price,"",u,F)}),(0,at.P)(y,k)&&T&&(0,j.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,a.gld)(u),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:J+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,yt.Sb)(null!==k&&void 0!==k?k:null===g||void 0===g?void 0:g.compare_price,"",u,F)}),nt&&(0,a.mOK)(u)&&(0,j.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",dt,"important"),t.style.setProperty("background-color",st,"important"))},style:{fontSize:.9*J+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[nt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==L.state&&null!=D&&(0,j.jsx)("div",{style:{width:"100%",maxHeight:.3*$*et+"px",overflowY:"auto",overflowX:"hidden",marginTop:"10px",marginBottom:"10px",padding:"8px",backgroundColor:"rgba(248, 248, 248, 0.8)",borderRadius:"8px",border:"1px solid #e0e0e0"},children:(0,j.jsx)(bt,{width:"100%",height:"fit-content",event:X,product:g,productVariantOptions:D,baseFontSize:.9*K,onOptionSelected:t=>{!function(t){b(t);const e=Q(t);e&&(S(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,j.jsx)("div",{style:{width:"100%"},children:(0,j.jsx)(Vt,{baseFontSize:1.1*tt,setProductVariantTitle:_,product:g,cartState:L.state,cartCount:V,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==u&&"72603631788"!==u&&"5220302897"!==u?"init"==L.state?(W(gt),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==L.state&&(M(w,gt),_(null===g||void 0===g?void 0:g.title)):pt(X,g)},onCartIconClick:()=>{H()}})})]})})};var Yt=function(t){const[e]=(0,d.QN)("isInDesignMode"),[i]=(0,d.QN)("isDemoBrand"),[n]=(0,d.QN)("whatmoreShopId"),[r,c,u,h]=(0,s.A)(),p=t.product,v=t.event,{whatmoreWidgetSourceDetails:x}=(0,o.useContext)(C.BR),[g,m,f,w,b,y,S,k]=t.useAddToCartStatesInstance,I=t.productCartCounts&&t.productCartCounts[p.product_id]?t.productCartCounts[p.product_id]:g.cart_count,z=(null===x||void 0===x?void 0:x.landingLocationType)||"index",_=(null===x||void 0===x?void 0:x.templateType)||"template-a",E=(0,jt.Wd)(z)+(0,jt.gf)(_)+"_"+(null===v||void 0===v?void 0:v.event_id);(0,o.useEffect)(()=>{!(0,a.E8r)(n)||null!==v&&void 0!==v&&v.in_stock||f("errored")},[]);const T=.1*u,A=.95*h,B=.04*h;return(0,j.jsx)(N.B,{direction:"row",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",className:"chakra-stack whatmore-minimal-atc-outer",children:(0,j.jsx)(N.B,{direction:"column",width:"fit-content",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",className:"chakra-stack whatmore-minimal-atc-inner",children:(0,j.jsx)(F.az,{width:A+"px",height:"fit-content",marginTop:"35px",marginBottom:"10px",display:"flex",justifyContent:"center",alignItems:"center",className:"whatmore-minimal-atc-button-container",children:(0,j.jsx)(Ot,{baseFontSize:B,event:v,product:p,cartState:g.state,cartCount:I,updateCartState:f,onClickAtc:t=>{"init"===g.state&&(e||i||(async()=>{(0,l.Pb)(v,p),(0,it.kz)({userInteractionType:ot.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:x,event:v,productList:[p],ctaList:v.cta})})(),b(E,!0))},onCartIconClick:t=>{k()}})})})})};var Ut=function(t){const[e]=(0,d.QN)("whatmoreShopId"),[i]=(0,d.QN)("isWhatmoreWebsite"),n=(0,a.Vpi)(e),r=t.event,l=t.product,s=t.productCartCounts,c=t.onCartCountChange,[u,...h]=(0,mt.A)(0,l,t.event),p=[u,...h];return(0,o.useEffect)(()=>{let t=u.cart_count;s>u.cart_count&&(t=s+1),c&&c(l.product_id,t)},[u.cart_count]),i?(0,j.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==n?(0,j.jsx)(Xt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:s,onCartCountChange:c,useAddToCartStatesInstance:p}):"broad-tile"==n?(0,j.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:s,onCartCountChange:c,useAddToCartStatesInstance:p}):"broad-tile-no-cta"==n?(0,j.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,j.jsx)(Dt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:s,onCartCountChange:c,useAddToCartStatesInstance:p}):"link_only"==n?(0,j.jsx)(nt,{product:t.product,event:t.event}):"minimal_atc_button"==n?(0,j.jsx)(Yt,{product:t.product,event:t.event,productCartCounts:s,onCartCountChange:c,useAddToCartStatesInstance:p}):"narrow-tile"==n?(0,j.jsx)(At,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:s,onCartCountChange:c,useAddToCartStatesInstance:p}):(0,j.jsx)(j.Fragment,{})},$t=i(1079),qt=i(7802),Kt=i(2979);var Gt=function(t){var e,i,o;const[l,c,u,h]=(0,s.A)(),[p]=(0,d.QN)("whatmoreShopId"),v=(0,d.Xd)("isInDesignMode"),x=(0,d.Xd)("isDemoBrand"),g=t.event,m=t.productClickHandler,f=t.productCartCounts,w=t.onCartCountChange,C=t.onActiveProductChange,b=(0,a.Vpi)(p),y=null!==(e=null===(i=g.products)||void 0===i||null===(o=i.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===o?void 0:o.length)&&void 0!==e?e:0;if(!(0,qt.Z_)(g))return(0,j.jsx)(j.Fragment,{});if(1==g.products.length&&(void 0==g.cta||0==g.cta.length)){const t=g.products[0];return(0,a.uJl)(p)?(0,j.jsx)(N.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,j.jsx)(Kt.S,{userInteractionType:ot.O.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!v&&!x,children:(0,j.jsx)(_.o,{children:(0,j.jsx)(At,{event:g,product:t,productClickHandler:m,productCartCounts:f,onCartCountChange:w},g.event_id+t.product_id)})})}):(0,j.jsx)(N.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,j.jsx)(_.o,{children:(0,j.jsx)(Kt.S,{userInteractionType:ot.O.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!v&&!x,children:(0,j.jsx)(Ut,{activeProductsCount:1,event:g,product:t,productClickHandler:m,productCartCounts:f,onCartCountChange:w},g.event_id+t.product_id)})})})}return(0,j.jsx)(_.o,{children:(0,j.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,j.jsx)(F.az,{width:h+"px",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,j.jsxs)(n.RC,{className:"product-tile swiper-slide",slidesPerView:1==g.products.length?1:1.4,initialSlide:0,centeredSlides:!(0,a.TYM)(p),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,onSlideChange:t=>{C&&C(t.activeIndex)},children:[("STRDOIDF6O7"===p?[g.products[0]]:g.products).map(t=>("oos"!=t.product_status||(0,a.$7F)(p))&&(0,j.jsx)(n.qr,{children:(0,j.jsx)(Kt.S,{userInteractionType:ot.O.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!v&&!x,children:(0,j.jsx)(N.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,j.jsx)(Ut,{activeProductsCount:y,event:g,product:t,productClickHandler:m,productCartCounts:f,onCartCountChange:w},g.event_id+t.product_id)})})},g.event_id+t.product_id)),(0,a.Woi)(p)&&void 0!=g.cta&&g.cta.map(t=>{var e;return(0,j.jsx)(j.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,j.jsx)(n.qr,{children:(0,j.jsx)(N.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,j.jsx)($t.A,{fontFactor:.75,cta:t},g.event_id+t.cta_id)})},g.event_id+t.cta_id)})})]})})})})};var Zt=function(t){const[e,i]=(0,d.QN)("isProductSwiperCatalogOpen"),n=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange,s=t.onActiveProductChange;return(0,o.useContext)(v.p).isIOS,(0,j.jsx)(Gt,{event:n,productClickHandler:r,productCartCounts:l,onCartCountChange:a,onActiveProductChange:s},n.event_id)};function Jt(t){const[e,i,n,r]=(0,s.A)(),[l]=(0,d.QN)("whatmorePrimaryFont"),[c]=(0,d.QN)("whatmoreShopId"),[u,h]=(0,o.useState)(""),p=t.data,v=(t.event,t.product,t.setShowOptionsChart);var x=.4*r*.8*.13;(0,o.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===c?t="vanyaclothing.myshopify.com":"57415434338"===c&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===p||void 0===p?void 0:p.id}&title=${null===p||void 0===p?void 0:p.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,i,o,n,r,l;h(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.layout)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const g=`${O.i7`
|
|
69
|
+
0% {
|
|
70
|
+
transform: translateY(100%);
|
|
71
|
+
}
|
|
72
|
+
`} 0.5s`;return(0,j.jsx)(N.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,j.jsxs)(F.az,{width:"100%",height:"100%",children:[(0,j.jsx)(L._,{width:"100%",height:"auto",src:(0,a.JAc)(c)?u:(0,a.OSd)(c),objectFit:"contain",borderTopRadius:"xl"}),(0,j.jsx)(N.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),v(!1)},cursor:"pointer",padding:"4px",children:(0,j.jsx)(X.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*x,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var te=i(63),ee=i(6112),ie=i(6677),oe=i(1745);function ne(t){var e;const[i,n]=(0,o.useState)(null),r=t.product;return(0,o.useEffect)(()=>{(0,oe.tN)(r).then(t=>{n(t.variants)})},[]),null==i?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,j.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,j.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,j.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,j.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,j.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,j.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,j.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function re(t){const e=t.product;return(0,j.jsx)(ne,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var le=i(1052),ae=i(3262);function de(t){var e,i,n,r,s,c,u,h;const[p]=(0,d.QN)("isInDesignMode"),[x]=(0,d.QN)("isDemoBrand"),[g]=(0,d.QN)("whatmoreShopId"),[m]=(0,d.QN)("whatmorePrimaryFont"),[f]=(0,d.QN)("whatmoreSecondaryColor"),[w]=(0,d.QN)("websiteLanguage"),{whatmoreWidgetSourceDetails:b,whatmoreUserInfo:y}=((0,d.Xd)("whatmoreUITheme"),(0,o.useContext)(C.BR)),[S,k]=(0,o.useState)(!1),{closeClickComponent:I}=(0,o.useContext)(v.p),[z,E]=(0,o.useState)(!1),T=t.FONT_SIZE,A=t.data,P=t.event,L=t.selectedVariantId,R=t.product,O=t.itemQuantity,D=(t.PRODUCT_TILE_WIDTH,t.cartItemCount),M=t.addToCartFlag,Q=t.setAddToCartFlag,H=t.soldOutFlag,V=t.setSoldOutFlag,X=t.selectedSize,Y=t.productCartCounts&&t.productCartCounts[R.product_id]?t.productCartCounts[R.product_id]:0,U=b.landingLocationType,$=b.templateType,K=(0,jt.Wd)(U)+(0,jt.gf)($)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const G=async e=>{var i,o;e.stopPropagation(),k(!0),function(t,e,i){p||x||(async()=>{(0,l.tO)(t,e,i)})()}(P,R,O),(0,it.kz)({userInteractionType:ot.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:b,event:P,productList:[R],ctaList:P.cta});const n=null!==L&&void 0!==L?L:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id;if(!n)return console.log("ERROR! No variants available."),void k(!1);(0,le.cF)([n],O,(0,a.NCy)(g),g,P,R,K,null===P||void 0===P?void 0:P.location,null===y||void 0===y?void 0:y.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(e=>{if(k(!1),Q(!0),(0,d.t2)("whatmoreAddedToCart",!0),t.onCartCountChange){const e=(t.productCartCounts&&t.productCartCounts[R.product_id]?t.productCartCounts[R.product_id]:0)+O;t.onCartCountChange(R.product_id,e)}return(0,d.Xd)("whatmoreAddedToCart")&&(0,ae.initiateCartSliderEvent)(g,()=>{},100,window.location.hostname,n,R.client_product_id,K,null===P||void 0===P?void 0:P.location,null===y||void 0===y?void 0:y.userType,R.product_link,X),(0,a.rEM)(g)&&(p||(async()=>{await(0,oe.js)().then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)})})()),e}).catch(t=>{k(!1),V(!0),console.error("Error:",t)})},Z=e=>{if(function(t,e){p||x||(async()=>{(0,l.TJ)(t,e)})()}(P,R),"buy-now"==e){var i,o,n,r;if((0,it.kz)({userInteractionType:ot.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:b,event:P,productList:[R],ctaList:P.cta}),"78881718575"==g)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();if((0,a.R8W)(g))return(0,oe.R3)(null!==L&&void 0!==L?L:null===A||void 0===A||null===(n=A.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.id,K),void t.onCloseCallback();if("55207264298"===g)return void(window.location.href=R.product_link+((0,a.N0t)(g)?"?currency="+R.currency:""));(0,le.Dr)(void 0!==L?L:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id,O,(0,a.NCy)(g),g,K,null===P||void 0===P?void 0:P.location,null===y||void 0===y?void 0:y.userType)}"view-more"==e&&((0,a.BLb)(g)?window.location.href=R.product_link+"?"+(0,a.VCz)(g)+"&"+(0,a.Spk)(g)+"&"+(0,a.$lz)(g)+((0,a.N0t)(g)?"¤cy="+R.currency:""):window.location.href=R.product_link+((0,a.N0t)(g)?"?currency="+R.currency:""))},J=()=>{(0,le.Le)((0,a.NCy)(g),g)};function tt(t){"open_cart_slider"!==(0,a.m4S)(t)||null!==I&&I()}const et=2.4*T;return(0,j.jsxs)(N.B,{position:t.position,className:"wht-shn-cta",backdropFilter:"blur(10px)",borderRadius:"12px",bottom:"12px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"94%",paddingX:"10px",paddingY:"8px",spacing:"8px",fontSize:.9*T,alignItems:"center",children:[H?(0,j.jsx)(ut.$,{width:"90%",bg:"rgba(71, 85, 105, 0.9)",variant:"solid",opacity:.8,_hover:{bg:"rgba(71, 85, 105, 0.9)"},height:et,disabled:!0,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",children:(0,j.jsx)(B.E,{fontWeight:"600",fontSize:T+"px",sx:{color:"white !important",fontFamily:m+" !important"},children:"Sold Out"})}):(0,j.jsxs)(N.B,{direction:"vertical"==(0,a.z00)(g)?"column":"row",width:"90%",spacing:"6px",fontSize:.9*T,justifyContent:"center",children:[(0,a.gvj)(g)?Y>0?(0,j.jsx)(F.az,{height:et,backgroundColor:"white",borderColor:f,borderWidth:"1px",cursor:"pointer",borderRadius:"8px",sx:{flex:1,minWidth:"100px"},children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"10px",paddingY:"5px",justifyContent:"center",spacing:"8px",children:[(0,j.jsx)(_.o,{paddingX:"5px",onClick:()=>{"go_to_cart_page"===(0,a.m4S)(g)?J():tt(g)},children:(0,j.jsx)(st.A,{sx:{color:f,fontSize:1.2*T}})}),(0,j.jsx)(B.E,{color:f,fontSize:1.1*T+"px !important",fontWeight:"semibold !important",sx:{fontFamily:m+" !important"},children:Y}),(0,j.jsx)(_.o,{paddingX:"5px",onClick:G,children:S?(0,j.jsx)(te.y,{size:"sm",color:f}):(0,j.jsx)(dt.A,{sx:{color:f,fontSize:1.2*T}})})]})}):(0,j.jsx)(ut.$,{className:"add-to-cart-button",height:et,onClick:G,display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"#000000"===(0,a.Wc_)(g)?f:(0,a.Wc_)(g),borderRadius:"8px",border:"none",_hover:{filter:"brightness(0.95)",transform:"translateY(-2px)",backgroundColor:"#000000"===(0,a.Wc_)(g)?f:(0,a.Wc_)(g)},transition:"all 0.2s ease-in-out"},children:S?(0,j.jsx)(te.y,{size:"sm",color:"white"}):(0,j.jsx)(B.E,{fontWeight:"600",textAlign:"center",sx:{color:(0,a.Hfu)(g),fontFamily:m+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:.7*T+"px",children:`${"ADD TO CART"!=(0,a.KPq)(g)?(0,a.KPq)(g):null!==(e=null===q.m||void 0===q.m||null===(i=q.m[w])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,a.KPq)(g)}`})}):(0,j.jsx)(j.Fragment,{}),(0,a.oB_)(g)?(0,j.jsx)(j.Fragment,{children:(0,a.pbJ)(g)?(0,j.jsx)(re,{variantId:void 0!==L?L:null===A||void 0===A||null===(n=A.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.id,product:R,height:2.8*T,width:"100%",fontSize:T,fontFamily:m}):(0,j.jsx)(j.Fragment,{children:!(0,a.naM)(g)||"78881718575"===g&&null!==U&&void 0!==U&&U.includes("product")?(0,j.jsx)(ut.$,{className:"buy-now-button-custom",variant:"outline",height:et,onClick:t=>{Z("buy-now")},display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${f}`,color:f,_hover:{backgroundColor:`${f}10`,borderColor:f,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,j.jsx)(B.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:m+" !important"},fontSize:.9*T+"px",children:"BUY NOW"!=(0,a.GX0)(g)?(0,a.GX0)(g):null!==(u=null===q.m||void 0===q.m||null===(h=q.m[w])||void 0===h?void 0:h.buy_now)&&void 0!==u?u:(0,a.GX0)(g)})}):(0,j.jsx)(ut.$,{variant:"outline",rightIcon:(0,j.jsx)(ie.A,{sx:{fontSize:14}}),height:et,onClick:()=>Z("view-more"),display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${f}`,color:f,_hover:{backgroundColor:`${f}10`,borderColor:f,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,j.jsx)(B.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:m+" !important"},fontSize:.9*T,children:"MORE INFO"!=(0,a.KnH)(g)?(0,a.KnH)(g):null!==(s=null===q.m||void 0===q.m||null===(c=q.m[w])||void 0===c?void 0:c.more_info)&&void 0!==s?s:(0,a.KnH)(g)})})})}):(0,j.jsx)(j.Fragment,{})]}),(0,a.gvj)(g)&&(0,j.jsx)(j.Fragment,{children:z?(0,j.jsx)(wt.s,{width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",children:(0,j.jsx)(te.y,{size:"sm",color:f||"#4a5568"})}):(0,j.jsx)(wt.s,{animation:M?W:"none",onAnimationEnd:()=>Q(!1),width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",border:"1px solid rgba(226, 232, 240, 0.8)",cursor:"pointer",_hover:{bg:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(226, 232, 240, 1)",transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out",onClick:()=>{"do_nothing"!==(0,a.m4S)(g)&&("go_to_cart_page"!==(0,a.m4S)(g)?(E(!0),tt(g)):J())},children:(0,j.jsxs)("div",{style:{position:"relative"},children:[(0,j.jsx)(ee.A,{sx:{fontSize:18,color:f||"#4a5568"}}),D>0&&(0,j.jsx)(F.jl,{bg:f||"#4a5568",size:"16px",position:"absolute",top:"-6px",right:"-6px",zIndex:"1",children:(0,j.jsx)(B.E,{sx:{color:"white !important",fontFamily:m+" !important"},fontWeight:"600",fontSize:"9px",children:D>99?"99+":D})})]})})})]})}function se(t){var e,i;const[o]=(0,d.QN)("whatmorePrimaryFont"),[n]=((0,d.Xd)("whatmoreShopId"),(0,d.QN)("websiteLanguage")),r=t.setOpenShopNow,l=t.FONT_SIZE,a=t.setLockSwiper,s=null!==(e=null===q.m||void 0===q.m||null===(i=q.m[n])||void 0===i?void 0:i.shop_now)&&void 0!==e?e:"Shop Now";return(0,j.jsxs)(wt.s,{justifyContent:"center",paddingTop:"15px",width:"100%",className:"wht-shn-head",children:[(0,j.jsx)(wt.s,{width:"10%",display:"flex !important"}),(0,j.jsx)(wt.s,{width:"90%",justifyContent:"center",children:(0,j.jsx)(B.E,{align:"center",fontSize:1.25*l,fontWeight:"semibold",sx:{color:"black",fontFamily:o+" !important"},as:"b",children:s})}),(0,j.jsx)(wt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),r(!1),a(!1)},cursor:"pointer",children:(0,j.jsx)(X.A,{sx:{color:"black",fontSize:1.2*l}})})]})}const ce=({iconSize:t})=>(0,j.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,j.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,j.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,j.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});var ue=i(7740);function he(t){var e,i,n;const[r,l]=(0,o.useState)(t.product),[s]=(0,d.QN)("whatmorePrimaryFont"),[c]=(0,d.QN)("whatmoreShopId"),[u]=(0,d.QN)("whatmoreSecondaryColor"),[h]=(0,d.QN)("websiteLanguage");(0,o.useEffect)(()=>{(0,a.w4b)(c)&&(0,yt.ck)(r,(0,a.NCy)(c),c).then(t=>{l(t)})},[]);const p=t.FONT_SIZE,v=t.data,x=t.itemPrice;let g,m,f;var w,C,b;"STRDOIDF6O7"==c&&(g=null===v||void 0===v||null===(w=v.variants)||void 0===w?void 0:w.find(e=>e.id==t.selectedVariantId),m=null===(C=g)||void 0===C?void 0:C.title,f=null===(b=g)||void 0===b?void 0:b.productLink);const y=(e=>{const i=null===v||void 0===v||null===(e=v.variants)||void 0===e?void 0:e.find(e=>e.id==t.selectedVariantId);return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),S=y&&0!=y&&y>x?Math.round((y-x)/y*100):NaN;return(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)(wt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"18px",paddingRight:"18px",children:[(0,j.jsxs)(wt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,a.BLb)(c)?("STRDOIDF6O7"==c?f:t.product_link)+"?"+(0,a.VCz)(c)+"&"+(0,a.Spk)(c)+"&"+(0,a.$lz)(c)+((0,a.N0t)(c)?"¤cy="+t.currency:""):("STRDOIDF6O7"==c?f:t.product_link)+((0,a.N0t)(c)?"?currency="+t.currency:"")}(r)},marginBottom:"2px",sx:{display:"flex",alignItems:"flex-start",gap:"8px",transition:"all 0.2s ease"},children:[(0,j.jsx)(B.E,{isTruncated:!0,noOfLines:2,fontSize:p,sx:{color:"#2d2d2d",lineHeight:"1.4",fontFamily:s,fontWeight:"500",letterSpacing:"-0.005em",flex:1,transition:"all 0.2s ease",textDecoration:"none","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}},children:"STRDOIDF6O7"===c?null!==(e=m)&&void 0!==e?e:null===v||void 0===v?void 0:v.title:"58396311733"===c?(0,St.$)(null===v||void 0===v?void 0:v.title):null===v||void 0===v?void 0:v.title}),(0,j.jsx)(F.az,{mt:"1px",opacity:"0.6",children:(0,j.jsx)(ce,{iconSize:.9*p})})]}),(0,j.jsxs)(wt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[y&&y>x&&(0,j.jsx)(B.E,{as:"s",padding:"2px",fontSize:1.2*p,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:s+" !important"},children:(0,yt.Sb)(parseFloat((0,ue.U)()?y/100:y)," ",c,r.currency,!0)}),(0,j.jsx)(B.E,{as:"b",padding:"2px",fontSize:1.2*p,fontWeight:"semibold !important",sx:{color:"black",fontFamily:s+" !important"},children:(0,yt.Sb)(parseFloat((0,ue.U)()?x/100:x),"",c,r.currency,!0)}),!isNaN(S)&&0!=S&&(0,j.jsx)(F.az,{display:"flex",backgroundColor:"green"==(0,a.ub$)(c)?"#343434"==u?(0,a.ub$)(c):u:(0,a.ub$)(c),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,j.jsx)(B.E,{fontSize:(0,a.mOK)(c)?"14px !important":1.1*p,fontWeight:"normal !important",sx:{color:(0,a.BRY)(c)+" !important",fontFamily:s+" !important"},children:(0,a.mOK)(c)?`${S}% ${null!==(i=null===q.m||void 0===q.m||null===(n=q.m[h])||void 0===n?void 0:n.off)&&void 0!==i?i:"off"}`:`Save ${(0,yt.Sb)(parseFloat(y/100-x/100)," ",c,r.currency)}`})})]}),"61412737206"==c&&(0,j.jsx)(B.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var pe=i(4418);function ve(t){var e,i;const[n]=(0,d.QN)("whatmorePrimaryFont"),[r]=(0,d.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,o.useContext)(be),[s,c]=(0,o.useState)({}),[u]=(0,d.QN)("whatmoreUITheme"),[h]=(0,d.QN)("websiteLanguage"),p=((0,d.Xd)("whatmoreSecondaryColorShade300"),(0,d.Xd)("whatmoreSecondaryColor")),v=t.setSelectedColor,x=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,m=t.selectOptionThirdHandler,f=t.isVariantAvailable,w=t.selectedSize,C=t.setSelectedSize,b=t.FONT_SIZE,y=t.data,S=("72603631788"===r||"5220302897"===r)&&Object.values(s).some(t=>"Stitched"===t),k=(t,e,i)=>{if(2==i)c(i=>({...i,[t]:e}));else if(1==i)c(i=>{var o,n,r,l;return{...i,[t]:e,[null===y||void 0===y||null===(o=y.options)||void 0===o||null===(n=o[2])||void 0===n?void 0:n.name]:null===y||void 0===y||null===(r=y.variants)||void 0===r||null===(l=r.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===l?void 0:l.option3}});else{var o,n;const i=null===y||void 0===y||null===(o=y.variants)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.option1)==e))||void 0===n?void 0:n.option2;c(o=>{var n,r,l,a,d,s,c,u;return{...o,[null===y||void 0===y||null===(n=y.options)||void 0===n||null===(r=n[1])||void 0===r?void 0:r.name]:null===y||void 0===y||null===(l=y.variants)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.option1)==e))||void 0===a?void 0:a.option2,[null===y||void 0===y||null===(d=y.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===y||void 0===y||null===(c=y.variants)||void 0===c||null===(u=c.find(t=>(null===t||void 0===t?void 0:t.option2)==i))||void 0===u?void 0:u.option3,[t]:e}})}};return(0,o.useEffect)(()=>{c(t=>{var e,i,o,n,r,l,a,d,s,c,u,h;return{...t,[null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===y||void 0===y||null===(o=y.variants)||void 0===o||null===(n=o.find(t=>{var e,i,o;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)}))||void 0===n?void 0:n.option1,[null===y||void 0===y||null===(r=y.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===y||void 0===y||null===(a=y.variants)||void 0===a||null===(d=a.find(t=>{var e,i,o;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[1])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)}))||void 0===d?void 0:d.option2,[null===y||void 0===y||null===(s=y.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===y||void 0===y||null===(u=y.variants)||void 0===u||null===(h=u.find(t=>{var e,i,o;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[2])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)}))||void 0===h?void 0:h.option3}})},[]),(0,j.jsx)(wt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingBottom:6,paddingTop:4,children:(null===y||void 0===y||null===(e=y.options)||void 0===e?void 0:e.length)>0&&(0,j.jsxs)(wt.s,{direction:"column",width:"100%",gap:"4px",children:[null===y||void 0===y||null===(i=y.options)||void 0===i?void 0:i.map((e,i)=>{var o,d,c,w,C,S,I,z;return(0,j.jsx)(j.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(o=e.values)||void 0===o?void 0:o.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(c=e.values)||void 0===c?void 0:c.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===y||void 0===y||null===(w=y.options)||void 0===w?void 0:w.length))&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(wt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,j.jsx)(B.E,{fontSize:1*b+"px !important",sx:{color:"black",fontFamily:n+" !important",fontWeight:"bold !important"},children:null!==(C=null===q.m||void 0===q.m||null===(S=q.m[h])||void 0===S?void 0:S[null===e||void 0===e||null===(I=e.name)||void 0===I?void 0:I.toLowerCase()])&&void 0!==C?C:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,a.u1b)(r)?(0,j.jsx)(wt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,j.jsx)(B.E,{fontSize:.7*b,as:"u",sx:{color:"black !important",fontFamily:n+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,a.A5I)(r)})}):(0,j.jsx)(j.Fragment,{})]}),(0,j.jsx)(pe.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(z=e.values)||void 0===z?void 0:z.map(o=>{var l,d,c,h,w,C,S,I,z;const _=f(o,i),E=0==i||y.variants.find(t=>{var e,n;return t[`option${i}`]==(null===(e=Object.entries(s))||void 0===e||null===(n=e[i-1])||void 0===n?void 0:n[1])&&t[`option${i+1}`]==o}),T=s[null===e||void 0===e?void 0:e.name]===o;return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&E&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(c=t.finalArr)||void 0===c||!c.includes(null))||(null===t||void 0===t||null===(h=t.finalArrExternal)||void 0===h?void 0:h.length)>0)?(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(wt.s,{paddingBottom:"4px",px:"2px",paddingRight:"8px",children:(0,j.jsx)(F.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,a.tM2)(r),size:"sm",border:s[null===e||void 0===e?void 0:e.name]===o?`2px solid ${(0,a.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,o,i),v(o),0===i&&x(o),1===i&&g(o),2===i&&m(o)},children:(0,j.jsx)(L._,{padding:"2px",borderRadius:(0,a.tM2)(r),width:"58px",height:"58px",src:(0,Ct.b)(null!==(w=null===t||void 0===t||null===(C=t.finalArr)||void 0===C||null===(S=C.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===S?void 0:S.src)&&void 0!==w?w:null===t||void 0===t||null===(I=t.finalArrExternal)||void 0===I||null===(z=I.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===z?void 0:z.optionsrc,"?width=400&height=400")})})},o)}):E&&(0,j.jsx)(wt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,j.jsx)(ut.$,{isDisabled:!_,size:"sm",borderRadius:"round"==u?"5px":0,bg:T&&_?p+" !important":"transparent !important",border:T&&_?`2px solid ${p} !important`:`1px solid ${p||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:T&&_?p+" !important":(p||"#f7fafc")+"20 !important"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=o?(k(null===e||void 0===e?void 0:e.name,o,i),0===i&&x(o),1===i&&g(o),2===i&&m(o)):window.location.href=t.product.product_link},children:(0,j.jsx)(B.E,{as:_?"p":"s",textDecoration:_?"none":"line-through",fontSize:.9*b+"px !important",sx:{fontFamily:n+" !important",fontWeight:"normal !important",color:T&&_?"white !important":(p||"#4a5568")+" !important"},children:o})})},o)})})]})})}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ft.c,{my:"8px",borderColor:"gray.200"}),(0,j.jsx)(wt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:(0,j.jsx)(B.E,{fontSize:1*b+"px !important",sx:{color:"black",fontFamily:n+" !important",fontWeight:"bold !important"},children:"Size"})}),(0,j.jsx)(pe.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:["XS","S","M","L","XL"].map(t=>{const e=w===t;return(0,j.jsx)(wt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,j.jsx)(ut.$,{size:"sm",borderRadius:"round"==u?"5px":0,bg:e?p+" !important":"transparent !important",border:e?`2px solid ${p} !important`:`1px solid ${p||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:e?p+" !important":(p||"#f7fafc")+"20 !important"},onClick:e=>{e.stopPropagation(),C(t)},children:(0,j.jsx)(B.E,{fontSize:.9*b+"px !important",sx:{fontFamily:n+" !important",fontWeight:"normal !important",color:e?"white !important":(p||"#4a5568")+" !important"},children:t})})},t)})})]})]})})}function xe(t){const{liveScreenWidth:e}=t;var i=.12*(.4*e*.8);const[o]=(0,d.QN)("whatmorePrimaryFont");return(0,j.jsxs)(wt.s,{id:"wht-custom-discount-content",direction:"column",mt:1,mb:0,px:"1.1em",py:"0.15em",align:"flex-start",width:"100%",gap:"0.2em",children:[(0,j.jsx)(F.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,j.jsxs)(B.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b9400 OFF\xa0\xa0\xa0",(0,j.jsx)(F.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b94000+"]})}),(0,j.jsx)(F.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,j.jsxs)(B.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b91500 OFF\xa0",(0,j.jsx)(F.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b99000+"]})})]})}var ge=i(8385);function me(t){var e,i,n,r,l,c,u,h,p,v,x,g,m,f,w,C,b,y,S,k,I,z;const[E,T,A,N]=(0,s.A)();var B=.4*N*.8,P=B*(16/9)*.6*.8;const R=1.1*B,D=R*(16/9)*.8;var W=.12*B;const[M,Q]=(0,o.useState)(!1),H=t.data,V=t.event,X=t.product,Y=t.setOpenShopNow,U=t.setLockSwiper,[$,q]=(0,o.useState)({});(0,o.useEffect)(()=>{q(t=>{var e,i,o,n,r,l,a,d,s,c,u,h;return{...t,[null===H||void 0===H||null===(e=H.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===H||void 0===H||null===(o=H.variants)||void 0===o||null===(n=o.find(t=>{var e,i,o;return(null===H||void 0===H||null===(e=H.options)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)}))||void 0===n?void 0:n.option1,[null===H||void 0===H||null===(r=H.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===H||void 0===H||null===(a=H.variants)||void 0===a||null===(d=a.find(t=>{var e,i,o;return(null===H||void 0===H||null===(e=H.options)||void 0===e||null===(i=e[1])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)}))||void 0===d?void 0:d.option2,[null===H||void 0===H||null===(s=H.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===H||void 0===H||null===(u=H.variants)||void 0===u||null===(h=u.find(t=>{var e,i,o;return(null===H||void 0===H||null===(e=H.options)||void 0===e||null===(i=e[2])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)}))||void 0===h?void 0:h.option3}})},[]);const K=(t,e)=>{var i,o,n,r,l,a,d,s,c,u;if(null===H||void 0===H||null===(i=H.options)||void 0===i||!i.length)return!1;const h=null===H||void 0===H||null===(o=H.options)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.name,p=null===H||void 0===H||null===(r=H.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===H||void 0===H||null===(a=H.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===H||void 0===H||null===(s=H.options)||void 0===s?void 0:s.length){case 1:return null===H||void 0===H||null===(c=H.variants)||void 0===c?void 0:c.some(e=>e.option1===t&&e.available);case 2:var v;return 0===e?null===H||void 0===H||null===(v=H.variants)||void 0===v?void 0:v.some(e=>e.option1===t&&e.available):null===H||void 0===H||null===(u=H.variants)||void 0===u?void 0:u.some(e=>e.option2===t&&e.option1===$[h]&&e.available);case 3:var x,g,m;if(0===e)return null===H||void 0===H||null===(x=H.variants)||void 0===x?void 0:x.some(e=>e.option1===t&&e.available);if(1===e)return null===H||void 0===H||null===(g=H.variants)||void 0===g?void 0:g.some(e=>e.option2===t&&e.option1===$[h]&&e.available);if(2===e)return null===H||void 0===H||null===(m=H.variants)||void 0===m?void 0:m.some(e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available);default:return!1}},[G,J]=(0,o.useState)(()=>{var t,e;for(let r=0;r<(null===H||void 0===H||null===(i=H.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===H||void 0===H||null===(o=H.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option1;if(t&&K(t,0))return t}return(null===H||void 0===H||null===(t=H.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""}),[tt,et]=(0,o.useState)(()=>{var t,e;for(let r=0;r<(null===H||void 0===H||null===(i=H.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===H||void 0===H||null===(o=H.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option2;if(t&&K(t,1))return t}return(null===H||void 0===H||null===(t=H.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""}),[it,ot]=(0,o.useState)(()=>{var t,e;for(let r=0;r<(null===H||void 0===H||null===(i=H.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===H||void 0===H||null===(o=H.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option3;if(t&&K(t,2))return t}return(null===H||void 0===H||null===(t=H.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""}),[nt,rt]=(0,o.useState)(()=>{var t;const e=null===H||void 0===H||null===(t=H.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.id}),[lt,at]=(0,o.useState)(1),[dt,st]=(0,o.useState)(()=>{var t;const e=null===H||void 0===H||null===(t=H.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.price}),[ct,ut]=(0,o.useState)(0),[ht,pt]=(0,o.useState)(!1),[vt,xt]=(0,o.useState)(!1),[gt,mt]=(0,o.useState)(X.thumbnail_image),[ft,bt]=(0,o.useState)("XS"),yt=((0,d.Xd)("whatmoreUITheme"),(0,d.Xd)("whatmoreShopId")),jt=(0,o.useCallback)(t=>{J(t)},[]),St=(0,o.useCallback)(t=>{et(t)},[]),kt=(0,o.useCallback)(t=>{ot(t)},[]);(0,o.useEffect)(()=>{var t,e;const i=fe(H,G,tt,it),o=null!==i&&void 0!==i?i:null===H||void 0===H||null===(t=H.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id;rt(o),st(we(H,o)),at(1),xt(!1);const n=Ce(H,i);if(null!==n&&mt(n),"72603631788"===yt||"5220302897"===yt){bt("Stitched"===G||"Stitched"===tt||"Stitched"===it?"XS":null)}},[G,tt,it]),(0,o.useEffect)(()=>{var t,e;const i=void 0===nt?null===H||void 0===H||null===(t=H.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:we(H,nt);st(i*lt)},[lt]),(0,o.useEffect)(()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(Y(!1),U(!1))}function e(t){t.stopPropagation();const e=document.getElementById("whatmore-shopnow-scrollable-content");e&&(e.scrollTop+=t.deltaY)}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),null===i||void 0===i||i.removeEventListener("wheel",e)}},[]),(0,o.useEffect)(()=>{(0,le.Eo)((0,a.NCy)(yt),yt).then(t=>t.json()).then(t=>{ut(t.item_count)}).catch(t=>{console.error("Cart Add Error:",t)})},[ht]);const It=`${O.i7`
|
|
73
|
+
0% {
|
|
74
|
+
transform: translateY(100%);
|
|
75
|
+
}
|
|
76
|
+
`} 0.5s`,zt=null===H||void 0===H||null===(e=H.options)||void 0===e?void 0:e.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}),[_t,Ft]=(0,o.useState)(-1!==zt?null===(i=H.options)||void 0===i||null===(n=i[zt])||void 0===n||null===(r=n.values)||void 0===r?void 0:r[0]:""),[Et,Tt]=(0,o.useState)({});(0,o.useEffect)(()=>{-1!==zt&&"whatmore"!==(0,a.NCy)(yt)&&async function(){const t=await(0,oe._N)(X);Tt(t)}()},[]);let At=-1,Nt=-1!==zt&&null!==Et&&void 0!==Et&&Et.product&&(null===Et||void 0===Et||null===(l=Et.product)||void 0===l||null===(c=l.images)||void 0===c?void 0:c.length)>=(null===Et||void 0===Et||null===(u=Et.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[zt])||void 0===p||null===(v=p.values)||void 0===v?void 0:v.length)?null===Et||void 0===Et||null===(x=Et.product)||void 0===x||null===(g=x.images)||void 0===g?void 0:g.map(t=>{var e,i,o,n,r,l,a,d,s,c,u,h,p,v;const x=null===Et||void 0===Et||null===(e=Et.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex(t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Et||void 0===Et||null===(o=Et.product)||void 0===o||null===(n=o.options)||void 0===n||null===(r=n[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++At,(null===Et||void 0===Et||null===(a=Et.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[zt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Et||void 0===Et||null===(u=Et.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,At)],src:null===t||void 0===t?void 0:t.src}}):[],Bt=[];if("whatmore"==(0,a.NCy)(yt)&&(null===H||void 0===H||null===(m=H.images)||void 0===m?void 0:m.length)>0){var Pt;var Lt;if(-1!==(null===H||void 0===H||null===(Pt=H.options)||void 0===Pt?void 0:Pt.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})))Bt=null===H||void 0===H||null===(Lt=H.images)||void 0===Lt?void 0:Lt.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return At+1<(null===Et||void 0===Et||null===(f=Et.product)||void 0===f||null===(w=f.options)||void 0===w||null===(C=w[zt])||void 0===C||null===(b=C.values)||void 0===b?void 0:b.length)&&(Nt=[]),(0,j.jsxs)(wt.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"auto",opacity:"100%",borderTopRadius:"24px",animation:It,boxShadow:"0 -8px 32px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04)",border:"1px solid rgba(255, 255, 255, 0.6)",backdropFilter:"blur(8px)",overflow:"hidden",children:[(0,j.jsx)(F.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",children:(0,j.jsx)(se,{setOpenShopNow:Y,setLockSwiper:U,FONT_SIZE:W})}),(0,j.jsx)(F.az,{height:"fit-content",minHeight:D+20+"px",position:"relative",children:(0,j.jsx)(_.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,j.jsx)(wt.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,j.jsx)(wt.s,{width:"100%",children:(0,j.jsx)(ge.c,{renderElement:t=>(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(F.az,{width:R+"px",height:D+"px",position:"relative",children:(0,j.jsx)(L._,{width:R+"px",height:D+"px",borderRadius:"16px",src:(0,Ct.b)(t.eventData.src,"&width=400&height=400"),alt:X.handle,sx:{objectFit:"cover !important",filter:"saturate(1.1) contrast(1.05)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},_hover:{transform:"scale(1.02)",filter:"saturate(1.15) contrast(1.1)"},fallback:(0,j.jsx)(Z.A,{width:R+"px",height:D+"px",borderRadius:"16px"})})})}),dataList:Nt.length>0&&!Nt.includes(null)?null===(y=Nt)||void 0===y?void 0:y.filter(t=>(null===t||void 0===t?void 0:t.color)==_t):Bt.length>0?[null===(S=Bt)||void 0===S?void 0:S.find(t=>(null===t||void 0===t?void 0:t.color)==_t)]:null===H||void 0===H||null===(k=H.images)||void 0===k?void 0:k.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:R+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,j.jsxs)(wt.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,j.jsx)(he,{data:H,product:X,PRODUCT_TILE_HEIGHT:P,PRODUCT_TILE_WIDTH:B,FONT_SIZE:W,getVariantPrice:we,selectedVariantId:nt,itemPrice:dt,itemQuantity:lt,setItemQuantity:at,thumbnailImage:gt}),"11829268"===yt&&(0,j.jsx)(xe,{liveScreenWidth:N}),(null===H||void 0===H||null===(I=H.variants)||void 0===I?void 0:I.length)>0&&(0,j.jsx)(ve,{data:"22907887"===yt?{...H,options:null===H||void 0===H||null===(z=H.options)||void 0===z?void 0:z.filter(t=>!("Season"===(null===t||void 0===t?void 0:t.name)&&1===new Set(null===t||void 0===t?void 0:t.values).size))}:H,dividerColor:(0,a.R6d)(yt),setSelectedColor:Ft,finalArr:Nt,finalArrExternal:Bt,product:X,PRODUCT_TILE_HEIGHT:P,PRODUCT_TILE_WIDTH:B,FONT_SIZE:W,selectOptionFirstHandler:jt,selectOptionSecondHandler:St,selectOptionThirdHandler:kt,getVariantPrice:we,selectedOptionFirst:G,selectedOptionSecond:tt,selectedOptionThird:it,selectedVariantId:nt,isVariantAvailable:K,selectedSize:ft,setSelectedSize:bt})]}),(0,j.jsx)(F.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",children:(0,j.jsx)(de,{position:"relative",selectedVariantId:nt,data:H,FONT_SIZE:W,PRODUCT_TILE_WIDTH:B,product:X,itemQuantity:lt,cartItemCount:ct,addToCartFlag:ht,setAddToCartFlag:pt,soldOutFlag:vt,setSoldOutFlag:xt,onCloseCallback:t.onCloseCallback,event:V,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,selectedSize:ft})})]})}const fe=(t,e,i,o)=>{var n;if(!e&&!i&&!o)return;const r=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!o||t.option3===o));return r?r.id:void 0},we=(t,e)=>{var i,o;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(o=i.find(t=>t.id===e))||void 0===o?void 0:o.price},Ce=(t,e)=>{var i;const o=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find(t=>t.id==e);return void 0===o?null:null===o||void 0===o||null===(n=o.featured_image)||void 0===n?void 0:n.src;var n},be=(0,o.createContext)({setShowOptionsChart:null});var ye=function(t){const e=t.event,i=t.data,n=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,o.useState)(!1);return(0,j.jsx)(be.Provider,{value:{setShowOptionsChart:s},children:(0,j.jsxs)(F.az,{width:"full",height:"full",borderRadius:"md",children:[(0,j.jsx)(N.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,j.jsx)(F.az,{width:"full",height:"fit-content",children:(0,j.jsx)(me,{data:i,event:e,product:n,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,j.jsx)(N.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,j.jsx)(F.az,{width:"full",height:"fit-content",children:(0,j.jsx)(Jt,{data:i,event:e,product:n,setShowOptionsChart:()=>{s(!1)}})})}):(0,j.jsx)(j.Fragment,{})]})})};var je=i(195);const Se=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ke(t){var e,i,[n,r,l,a]=(0,s.A)();const[c]=(0,d.QN)("whatmoreSecondaryColor"),[u]=(0,d.QN)("whatmoreSecondaryColorShade900"),[h,p]=(0,o.useState)(0),v=null!==(e=t.totalSiblings)&&void 0!==e?e:1,x=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,o.useEffect)(()=>{const e=setInterval(()=>{p(Se(t.videoPlayingData.current.current_time,t.videoPlayingData.current.video_duration))},100);return()=>clearInterval(e)},[]),(0,j.jsx)(N.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(v).keys()].map(t=>(0,j.jsx)(N.B,{width:"100%",height:.004*l+"px",backgroundColor:t<x?c:u+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==x?(0,j.jsx)(F.az,{height:"100%",width:h+"%",bgColor:c,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,j.jsx)(j.Fragment,{})},"event-progress-bar-slab-"+t))})}var Ie=i(758);const ze=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,_e=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var Fe=function(t){var e,i,n,r,c,u=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,p=t.whatmoreShareEventId,v=t.event,x=null===(e=t.showShareText)||void 0===e||e,g=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,m=(0,d.Xd)("whatmoreShopId"),f=(0,d.Xd)("isInDesignMode"),w=(0,d.Xd)("isDemoBrand"),b=(0,d.Xd)("whatmorePrimaryFont"),y=(0,d.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:S}=(0,o.useContext)(C.BR),[k,I,z,E]=(0,s.A)(),T=null!==(n=t.iconSize)&&void 0!==n?n:.1*E*(0,a.xkB)(m);function A(){const e=(0,d.Xd)("whatmoreLandingLocationType");var i;!function(t){f||w||(async()=>{(0,l.Zh)(t)})()}(v),i="event_product_link"===(0,a.moP)(m)?v.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,a.moP)(m)?"":window.location.hostname)+i+"?wtt="+u+"&wsid="+h+"&weid="+p,(0,a.BLb)(m)&&(i=i+"&"+(0,a.VCz)(m)+"&utm_campaign=video-share&utm_medium="+e);const o={title:(0,a.kZI)(m),text:`${(0,a.dmA)(m)} \n ${i} ${"50529403072"!==m&&(0,a.ZX9)(m)?"\n \n -via Whatmore":""}`};navigator.share&&!_e?navigator.share(o):(t.setIsModalOpen(!0),t.setShareText([o,i]))}return"63046287536"==m?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{cursor:"pointer",style:{marginBottom:g+"px"},children:(0,j.jsxs)(N.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,j.jsx)(Ie.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:T,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A(),(0,it.kz)({userInteractionType:ot.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:S,event:v,productList:v.products,ctaList:v.cta})}}),x&&(0,a.ViG)(m)?(0,j.jsxs)(B.E,{fontSize:.3*T+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:b+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",v.total_share>(0,a.vDV)(m)?ze(v.total_share):null!==(r=null===q.m||void 0===q.m||null===(c=q.m[y])||void 0===c?void 0:c.share)&&void 0!==r?r:"Share","\xa0"]}):(0,j.jsx)(j.Fragment,{})]})})})},Ee=i(3420),Te=i(7170);var Ae=function(t){var e,i,n,r,c;const u=(0,d.Xd)("whatmoreShopId"),h=(0,d.Xd)("whatmorePrimaryFont"),p=(0,d.Xd)("whatmoreLikedEvents"),v=(0,d.Xd)("isInDesignMode"),x=(0,d.Xd)("isDemoBrand"),g=(0,d.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:m}=(0,o.useContext)(C.BR),[f]=(0,o.useState)(()=>Math.floor(50*Math.random()+100)),w=t.event,[b,y]=(0,o.useState)(null!==(e=p[w.event_id])&&void 0!==e&&e),[S,k,I,z]=(0,s.A)(),E=.1*z*(0,a.xkB)(u);function T(t,e){v||x||(async()=>{(0,l.$B)(t,e)})()}function A(){(0,d.t2)("whatmoreLikedEvents",{...p,[w.event_id]:!b}),b?(T(w,-1),(0,it.kz)({userInteractionType:ot.O.VIDEO_UNLIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})):(T(w,1),(0,it.kz)({userInteractionType:ot.O.VIDEO_LIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})),y(!b)}const P=("78232846646"==u?null!==(i=w.total_like)&&void 0!==i?i:f:null!==(n=w.total_like)&&void 0!==n?n:0)+(b?1:0);return(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{cursor:"pointer",children:(0,j.jsxs)(N.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[b?(0,j.jsx)(Te.A,{sx:{boxShadow:3,color:(0,a.MJ6)(u),fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A()}}):(0,j.jsx)(Ee.A,{sx:{boxShadow:3,color:"white",fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A()}}),(0,j.jsx)(j.Fragment,{children:(0,a.FlI)(u)?(0,j.jsxs)(B.E,{fontSize:.3*E+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:h+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",P>=(0,a.LGx)(u)?ze(P):null!==(r=null===q.m||void 0===q.m||null===(c=q.m[g])||void 0===c?void 0:c.like)&&void 0!==r?r:"Like","\xa0"]}):(0,j.jsx)(j.Fragment,{})})]})})})};const Ne=({iconSize:t})=>(0,j.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,j.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})}),Be=({iconSize:t})=>(0,j.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,j.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"})})}),Pe=({iconSize:t})=>(0,j.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,j.jsx)("path",{"fill-rule":"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})}),Le=({iconSize:t})=>(0,j.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,j.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,j.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,j.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,j.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var Re=t=>{const e=(0,d.Xd)("whatmoreShopId"),i=t.shareText,[n,r]=(0,o.useState)("Copy link"),[l,c]=(0,o.useState)(""),[u,h]=(0,o.useState)(window.innerWidth),[p,v,x,g]=(0,s.A)(),m=.1*g*(0,a.xkB)(e)*.5;(0,o.useEffect)(()=>{const t=()=>h(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const f=u<380,w=f?Math.min(t.iconSize,22):Math.min(t.iconSize,28),C=f?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,j.jsx)(j.Fragment,{children:t.isModalOpen&&(0,j.jsxs)("div",{className:"modal-overlay",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"10px",padding:"12px 16px 20px 16px",width:"90%",maxWidth:"420px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:[(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,j.jsxs)("div",{onClick:()=>{"22907887"!==e&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:["22907887"!==e?(0,j.jsx)("img",{className:"whatmore-label",src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px",width:Math.min(t.iconSize,28)+"px"}}):(0,j.jsx)(Ie.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,j.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:"22907887"===e?"Share On":"Whatmore"})]}),(0,j.jsx)(X.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,j.jsx)(ft.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,j.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,j.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,j.jsx)(Ne,{iconSize:w}),(0,j.jsx)("p",{style:{fontSize:C,margin:0,textAlign:"center"},children:"Whatsapp"})]}),"22907887"!==e&&(0,j.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,j.jsx)(Be,{iconSize:w}),(0,j.jsx)("p",{style:{fontSize:C,margin:0,textAlign:"center"},children:"X"})]}),(0,j.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(i[1]),r("Copied"),c("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,j.jsx)(Pe,{iconSize:w}),(0,j.jsx)("p",{style:{fontSize:C,color:l,margin:0,textAlign:"center"},children:n})]}),(0,j.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const o=(null===i||void 0===i||null===(e=i[0])||void 0===e?void 0:e.text)||"",n=null===i||void 0===i?void 0:i[1];try{navigator.share?await navigator.share({title:"Check this out",text:o,url:n}):(await navigator.clipboard.writeText(n),alert("Link copied. You can paste it anywhere!"))}catch(r){console.error("Share failed:",r)}},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,j.jsx)(Le,{iconSize:w}),(0,j.jsx)("p",{style:{fontSize:C,margin:0,textAlign:"center"},children:"More"})]})]})]})})},Oe=i(1941);var De=function(t){var e,i;const o=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),n=(0,d.Xd)("whatmorePrimaryFont"),r=(0,d.Xd)("whatmoreShopId"),l=null!==(i=t.fontSize)&&void 0!==i?i:"8",[s]=(0,Oe.A)(),c="landscape"===s?"customer_referral_desktop":"customer_referral_mobile",u="60183543963"==r,h=(0,d.Xd)("whatmoreLandingLocationType"),p=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${o}&utm_medium=referral&utm_campaign=${c}`:`https://apps.shopify.com/whatmore-live?utm_source=${o}&utm_medium=referral&utm_campaign=${c}`,v=u?"https://www.letsmapit.in/":p;return(0,j.jsx)(zt.N,{href:v,isExternal:!0,textDecoration:"none",children:(0,a.SGs)(r)&&(0,j.jsxs)(N.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,j.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:u?"marketed by":"Powered By"}),u?(0,j.jsx)(F.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,j.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,j.jsxs)(F.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,j.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,j.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},We=i(9879),Me=i(9556),Qe=i(2209);var He=()=>(0,j.jsxs)(F.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,j.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,j.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ve=i(4533);var Xe=t=>{var e;const i={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[n,r]=(0,o.useState)(!1),[l,a]=(0,o.useState)(null),[d,s]=(0,o.useState)(null),c=(0,o.useRef)(null),u=(0,o.useContext)(C.BR);(0,o.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,Ve.NF)(t.question.id)},[]);return(0,o.useEffect)(()=>{if(n){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[n]),(0,o.useEffect)(()=>{!n&&c.current&&s(c.current.offsetHeight)},[n]),(0,j.jsxs)(F.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:c,height:d?`${d}px`:"auto",children:[(0,j.jsx)(F.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,it.kz)({userInteractionType:ot.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:u})},children:(0,j.jsx)(Qe.A,{})}),(0,j.jsx)(F.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,j.jsx)(Me.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,j.jsx)(F.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:n?(0,j.jsxs)(F.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,j.jsx)(He,{}),(0,j.jsx)(Me.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,j.jsx)(N.B,{spacing:5,width:"100%",align:"center",children:i.options.map((e,i)=>(0,j.jsx)(F.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var i;a(e),r(!0),(0,it.kz)({userInteractionType:ot.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:u})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,j.jsx)(B.E,{py:5,color:"gray.800",children:e})},i))})})]})},Ye=i(9935);var Ue=t=>{var e,i;const[n,r]=(0,o.useState)(""),[l,s]=(0,o.useState)(""),[c,u]=(0,o.useState)(!1),[h,p]=(0,o.useState)(!1),v=(0,d.Xd)("whatmoreShopId"),x=(0,d.Xd)("whatmoreSecondaryColor"),g=(0,d.Xd)("whatmorePrimaryFont"),m=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,f=(0,o.useContext)(C.BR);(0,o.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,Ve.NF)(t.question.id)},[]);const w=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(n):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)})()?(u(!0),(0,it.kz)({userInteractionType:ot.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:n,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:f})):s("Please enter valid contact info.")},b=()=>{var e;t.setIsQuestionVisible(!1),(0,it.kz)({userInteractionType:ot.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:f})};return(0,j.jsx)(wt.s,{bg:x,p:"6%",borderRadius:"md",boxShadow:"md",width:"90vw",mx:"auto",minH:"40vh",maxH:"80vh",position:"fixed",top:"30%",left:"50%",transform:"translateX(-50%)",direction:"column",align:"center",justify:"center",zIndex:100,overflow:"hidden",children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(F.az,{textAlign:"center",color:"white",children:[(0,j.jsx)(F.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,j.jsx)(F.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,j.jsx)(F.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,j.jsx)(Y,{onCloseCallback:b})}),(0,j.jsxs)(F.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,a.TH)(v);navigator.clipboard.writeText(t).then(()=>{p(!0),setTimeout(()=>{b()},1e3),setTimeout(()=>p(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,j.jsxs)(F.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,j.jsx)(F.az,{as:"span",fontWeight:"bold",color:"black",children:(0,a.TH)(v)}),(0,j.jsx)(Ye.A,{sx:{color:h?{whatmoreSecondaryColor:x}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),h&&(0,j.jsx)(F.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:x,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(F.az,{textAlign:"center",color:"white",children:[(0,j.jsx)(F.az,{children:(0,j.jsx)(B.E,{fontFamily:g,fontSize:"22px",fontWeight:"bold",children:m})}),(0,j.jsx)(F.az,{marginBottom:"10%",fontSize:"md",children:(0,a.aRV)(v)})]}),(0,j.jsx)(F.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,j.jsx)(Y,{onCloseCallback:b})}),(0,j.jsxs)(wt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,j.jsx)(F.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,j.jsx)("input",{fontFamily:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:n,onChange:t=>{r(t.target.value),l&&s("")},onKeyDown:t=>{"Enter"===t.key&&w()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,j.jsx)(B.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,j.jsx)(F.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:w,width:"50%",children:(0,j.jsx)(B.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:x,children:"SUBMIT"})})]})]})})};var $e=t=>{const[e,i]=(0,o.useState)(null);return(0,j.jsx)(F.az,{children:!e&&(0,j.jsx)(Ue,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})},qe=i(6319);const Ke=(t={},e,i,o=void 0)=>{var n,r,l,a,d,s,c,u,h,p,v,x,g,m,f,w,C,b,y,j,S,k,I,z,_,F,E,T,A,N,B,P,L,R,O,D,W,M,Q,H,V,X,Y,U,$,q,K,G,Z,J,tt,et,it,ot,nt,rt,lt,at,dt,st,ct,ut,ht,pt,vt,xt,gt,mt;const ft={heightMultiplier:10},wt={fontSizeMultiplier:8.3},Ct={fontSizeMultiplier:3},bt={fontSizeMultiplier:2.8,paddingMultiplier:3.5},yt={fontSizeMultiplier:3.5,paddingYMultiplier:3.5,paddingXMultiplier:4},jt={widthMultiplier:100,paddingMultiplier:5,borderRadiusMultiplier:1.2},St={logoTopMultiplier:0,logoBottomMultiplier:4,headingTopMultiplier:4,headingBottomMultiplier:2,subHeadingTopMultiplier:2,subHeadingBottomMultiplier:2,textFieldTopMultiplier:10,textFieldBottomMultiplier:6,ctaButtonBottomMultiplier:4};let kt="Email";return"number"===o?kt="Phone Number":"string"===o&&(kt="Email"),{logo:{url:(null===t||void 0===t||null===(n=t.logo)||void 0===n?void 0:n.url)||"",show:!(null===t||void 0===t||!t.logo||null===t||void 0===t||null===(r=t.logo)||void 0===r||!r.url),height:i(null!==(l=null===t||void 0===t||null===(a=t.logo)||void 0===a?void 0:a.heightMultiplier)&&void 0!==l?l:ft.heightMultiplier)},heading:{text:(null===t||void 0===t||null===(d=t.heading)||void 0===d?void 0:d.text)||"Bought You Christmas Present!",show:!(null===t||void 0===t||null===(s=t.heading)||void 0===s||!s.text),color:(null===t||void 0===t||null===(c=t.heading)||void 0===c?void 0:c.color)||"black",fontSize:i(null!==(u=null===t||void 0===t||null===(h=t.heading)||void 0===h?void 0:h.fontSizeMultiplier)&&void 0!==u?u:wt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(p=t.heading)||void 0===p?void 0:p.fontWeight)||"bold",textAlign:(null===t||void 0===t||null===(v=t.heading)||void 0===v?void 0:v.textAlign)||"center"},subHeading:{text:(null===t||void 0===t||null===(x=t.subHeading)||void 0===x?void 0:x.text)||"Drop you email for the amazing offers!",show:!(null===t||void 0===t||null===(g=t.subHeading)||void 0===g||!g.text),color:(null===t||void 0===t||null===(m=t.subHeading)||void 0===m?void 0:m.color)||"black",fontSize:i(null!==(f=null===t||void 0===t||null===(w=t.subHeading)||void 0===w?void 0:w.fontSizeMultiplier)&&void 0!==f?f:Ct.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(C=t.subHeading)||void 0===C?void 0:C.fontWeight)||"normal",textAlign:(null===t||void 0===t||null===(b=t.subHeading)||void 0===b?void 0:b.textAlign)||"center"},textField:{placeholder:(null===t||void 0===t||null===(y=t.textField)||void 0===y?void 0:y.placeholder)||kt,backgroundColor:(null===t||void 0===t||null===(j=t.textField)||void 0===j?void 0:j.backgroundColor)||"#FFFFFF",borderColor:(null===t||void 0===t||null===(S=t.textField)||void 0===S?void 0:S.borderColor)||"#CCCCCC",borderWidth:(null===t||void 0===t||null===(k=t.textField)||void 0===k?void 0:k.borderWidth)||"1px",borderRadius:(null===t||void 0===t||null===(I=t.textField)||void 0===I?void 0:I.borderRadius)||"10px",textColor:(null===t||void 0===t||null===(z=t.textField)||void 0===z?void 0:z.textColor)||"#000000",fontSize:i(null!==(_=null===t||void 0===t||null===(F=t.textField)||void 0===F?void 0:F.fontSizeMultiplier)&&void 0!==_?_:bt.fontSizeMultiplier),padding:i(null!==(E=null===t||void 0===t||null===(T=t.textField)||void 0===T?void 0:T.paddingMultiplier)&&void 0!==E?E:bt.paddingMultiplier)},ctaButton:{text:(null===t||void 0===t||null===(A=t.ctaButton)||void 0===A?void 0:A.text)||"Submit",backgroundColor:(null===t||void 0===t||null===(N=t.ctaButton)||void 0===N?void 0:N.backgroundColor)||"#4A4A4A",textColor:(null===t||void 0===t||null===(B=t.ctaButton)||void 0===B?void 0:B.textColor)||"#FFFFFF",fontSize:i(null!==(P=null===t||void 0===t||null===(L=t.ctaButton)||void 0===L?void 0:L.fontSizeMultiplier)&&void 0!==P?P:yt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(R=t.ctaButton)||void 0===R?void 0:R.fontWeight)||"bold",borderRadius:(null===t||void 0===t||null===(O=t.ctaButton)||void 0===O?void 0:O.borderRadius)||"10px",paddingY:i(null!==(D=null===t||void 0===t||null===(W=t.ctaButton)||void 0===W?void 0:W.paddingYMultiplier)&&void 0!==D?D:yt.paddingYMultiplier),paddingX:i(null!==(M=null===t||void 0===t||null===(Q=t.ctaButton)||void 0===Q?void 0:Q.paddingXMultiplier)&&void 0!==M?M:yt.paddingXMultiplier)},closeButton:{backgroundColor:(null===t||void 0===t||null===(H=t.closeButton)||void 0===H?void 0:H.backgroundColor)||"#4A4A4A"},container:{backgroundGradient:(null===t||void 0===t||null===(V=t.container)||void 0===V?void 0:V.backgroundGradient)||"linear-gradient(135deg, #e0ded9 0%, #bab8b0 60%, #f4f3f0 100%)",frameColor:(null===t||void 0===t||null===(X=t.container)||void 0===X?void 0:X.frameColor)||"#CCCCCC",frameWidth:(null===t||void 0===t||null===(Y=t.container)||void 0===Y?void 0:Y.frameWidth)||"2px",borderRadius:i(null!==(U=null===t||void 0===t||null===($=t.container)||void 0===$?void 0:$.borderRadiusMultiplier)&&void 0!==U?U:jt.borderRadiusMultiplier),boxShadow:(null===t||void 0===t||null===(q=t.container)||void 0===q?void 0:q.boxShadow)||"0px 4px 12px rgba(0, 0, 0, 0.15)",padding:i(null!==(K=null===t||void 0===t||null===(G=t.container)||void 0===G?void 0:G.paddingMultiplier)&&void 0!==K?K:jt.paddingMultiplier),width:i(null!==(Z=null===t||void 0===t||null===(J=t.container)||void 0===J?void 0:J.widthMultiplier)&&void 0!==Z?Z:jt.widthMultiplier)},spacing:{logoTop:i(null!==(tt=null===t||void 0===t||null===(et=t.spacing)||void 0===et?void 0:et.logoTopMultiplier)&&void 0!==tt?tt:St.logoTopMultiplier),logoBottom:i(null!==(it=null===t||void 0===t||null===(ot=t.spacing)||void 0===ot?void 0:ot.logoBottomMultiplier)&&void 0!==it?it:St.logoBottomMultiplier),headingTop:i(null!==(nt=null===t||void 0===t||null===(rt=t.spacing)||void 0===rt?void 0:rt.headingTopMultiplier)&&void 0!==nt?nt:St.headingTopMultiplier),headingBottom:i(null!==(lt=null===t||void 0===t||null===(at=t.spacing)||void 0===at?void 0:at.headingBottomMultiplier)&&void 0!==lt?lt:St.headingBottomMultiplier),subHeadingTop:i(null!==(dt=null===t||void 0===t||null===(st=t.spacing)||void 0===st?void 0:st.subHeadingTopMultiplier)&&void 0!==dt?dt:St.subHeadingTopMultiplier),subHeadingBottom:i(null!==(ct=null===t||void 0===t||null===(ut=t.spacing)||void 0===ut?void 0:ut.subHeadingBottomMultiplier)&&void 0!==ct?ct:St.subHeadingBottomMultiplier),textFieldTop:i(null!==(ht=null===t||void 0===t||null===(pt=t.spacing)||void 0===pt?void 0:pt.textFieldTopMultiplier)&&void 0!==ht?ht:St.textFieldTopMultiplier),textFieldBottom:i(null!==(vt=null===t||void 0===t||null===(xt=t.spacing)||void 0===xt?void 0:xt.textFieldBottomMultiplier)&&void 0!==vt?vt:St.textFieldBottomMultiplier),ctaButtonBottom:i(null!==(gt=null===t||void 0===t||null===(mt=t.spacing)||void 0===mt?void 0:mt.ctaButtonBottomMultiplier)&&void 0!==gt?gt:St.ctaButtonBottomMultiplier)}}};var Ge=t=>{var e,i,n,r,l;const[a,c]=(0,o.useState)(""),[u,h]=(0,o.useState)(!1),[p,v]=(0,o.useState)(!1),x=(0,o.useContext)(C.BR),[g]=(0,d.QN)("whatmorePrimaryFont"),[m,f,w,b]=(0,s.A)(),y=.01*b,S=null===(e=t.question)||void 0===e?void 0:e.type,k=Ke(null===(i=t.question)||void 0===i?void 0:i.template_config,y,t=>y*t+"px",S),I=null===(n=t.question)||void 0===n||null===(r=n.answers)||void 0===r?void 0:r.coupon_code;(0,o.useEffect)(()=>{var e;null!==(e=t.question)&&void 0!==e&&e.id&&(0,Ve.NF)(t.question.id)},[]);const z=()=>{var e,i;h(!0),(0,it.kz)({userInteractionType:ot.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:a,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:x}),I||setTimeout(()=>{t.setIsQuestionVisible(!1)},1500)};return(0,j.jsxs)("div",{className:"whatmore-lead-capture-container",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:k.container.backgroundGradient,padding:k.container.padding,zIndex:100,fontFamily:g},children:[(0,j.jsx)("div",{style:{position:"absolute",top:"16px",right:"16px",zIndex:20,cursor:"pointer"},onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,it.kz)({userInteractionType:ot.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:x})},children:(0,j.jsx)("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,j.jsx)("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:k.closeButton.backgroundColor,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,j.jsx)(qe.A,{style:{color:"white",fontSize:"18px"}})})})}),u?(0,j.jsxs)("div",{className:"whatmore-lead-capture-success",style:{textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",width:"85%"},children:[(0,j.jsx)(He,{}),(0,j.jsx)("p",{style:{fontSize:k.heading.fontSize,fontWeight:"bold",color:k.heading.color,margin:"16px 0"},children:"Thank you for your response!"}),I&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{onClick:()=>{navigator.clipboard.writeText(I).then(()=>{v(!0),setTimeout(()=>{t.setIsQuestionVisible(!1)},800)},()=>{console.error("Failed to copy coupon code")})},style:{position:"relative",width:"100%",cursor:"pointer",marginBottom:"12px"},children:[(0,j.jsxs)("div",{style:{backgroundColor:"white",border:"2px dashed black",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,j.jsx)("span",{style:{fontWeight:"bold",fontSize:k.ctaButton.fontSize,color:"black"},children:I}),(0,j.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:p?"#4CAF50":"#666",strokeWidth:"2",children:[(0,j.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,j.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})]}),p&&(0,j.jsx)("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"-30px",backgroundColor:"#4CAF50",color:"white",fontSize:"12px",borderRadius:"4px",padding:"4px 12px"},children:"Copied!"})]}),(0,j.jsx)("p",{style:{fontSize:k.subHeading.fontSize,color:k.subHeading.color,margin:0,fontStyle:"italic"},children:"Tap to copy"})]})]}):(0,j.jsxs)(j.Fragment,{children:[k.logo.show&&(0,j.jsx)("div",{className:"whatmore-lead-capture-logo",style:{marginBottom:k.spacing.logoBottom,marginTop:k.spacing.logoTop},children:(0,j.jsx)("img",{src:k.logo.url,alt:"Logo",style:{height:k.logo.height,objectFit:"contain"}})}),k.heading.show&&(0,j.jsx)("div",{className:"whatmore-lead-capture-heading",style:{marginTop:k.spacing.headingTop,marginBottom:k.spacing.headingBottom},children:(0,j.jsx)("p",{style:{fontSize:k.heading.fontSize,fontWeight:k.heading.fontWeight,color:k.heading.color,textAlign:k.heading.textAlign,margin:0},children:k.heading.text})}),k.subHeading.show&&(0,j.jsx)("div",{className:"whatmore-lead-capture-subheading",style:{marginTop:k.spacing.subHeadingTop,marginBottom:k.spacing.subHeadingBottom},children:(0,j.jsx)("p",{style:{fontSize:k.subHeading.fontSize,fontWeight:k.subHeading.fontWeight,color:k.subHeading.color,textAlign:k.subHeading.textAlign,margin:0},children:k.subHeading.text})}),(0,j.jsx)("div",{className:"whatmore-lead-capture-textfield",style:{marginTop:k.spacing.textFieldTop,marginBottom:k.spacing.textFieldBottom,width:"85%"},children:(0,j.jsx)("div",{style:{backgroundColor:k.textField.backgroundColor,border:`${k.textField.borderWidth} solid ${k.textField.borderColor}`,borderRadius:k.textField.borderRadius,padding:k.textField.padding,width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,j.jsx)("input",{type:"number"===(null===(l=t.question)||void 0===l?void 0:l.type)?"tel":"email",placeholder:k.textField.placeholder,value:a,onChange:t=>c(t.target.value),onKeyDown:t=>{"Enter"===t.key&&z()},style:{fontSize:k.textField.fontSize,color:k.textField.textColor,border:"none",outline:"none",width:"100%",backgroundColor:"transparent",height:"100%"}})})}),(0,j.jsx)("button",{className:"whatmore-lead-capture-cta-button",onClick:z,style:{minWidth:"35%",maxWidth:"70%",width:"auto",backgroundColor:k.ctaButton.backgroundColor,color:k.ctaButton.textColor,fontSize:k.ctaButton.fontSize,fontWeight:k.ctaButton.fontWeight,borderRadius:k.ctaButton.borderRadius,padding:`${k.ctaButton.paddingY} ${k.ctaButton.paddingX}`,marginBottom:k.spacing.ctaButtonBottom,border:"none",outline:"none",cursor:"pointer",whiteSpace:"normal",textAlign:"center"},onMouseEnter:t=>t.target.style.opacity="0.9",onMouseLeave:t=>t.target.style.opacity="1",children:k.ctaButton.text})]})]})};var Ze=t=>{var e;const[i,n]=(0,o.useState)(null),r=t.questionIndex,l=t.questionList;if((0,o.useEffect)(()=>{if(!(r>=l.length))return()=>(0,Ve.Hm)()},[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"lead_capture"===(null===a||void 0===a?void 0:a.template_type)?(0,j.jsx)(F.az,{children:(0,j.jsx)(Ge,{question:a,setIsQuestionVisible:t.setIsQuestionVisible})}):"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,j.jsx)(F.az,{children:(0,j.jsx)($e,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,j.jsx)(F.az,{children:(0,j.jsx)(Xe,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map(t=>null===t||void 0===t?void 0:t.value),onAnswerSelect:t=>{n(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Je=i(6118);const ti=({iconSize:t})=>(0,j.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,j.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,j.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,j.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})});var ei=function(t){const e=(0,d.Xd)("whatmoreShopId"),i=t.event,[o,n,r,l]=(0,s.A)(),c=.09*l*(0,a.xkB)(e);return(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{onClick:async function(){const t=(0,b.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),o=await e.blob(),n=window.URL.createObjectURL(o),r=document.createElement("a");r.href=n,r.download=`whatmore-video-${i.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,j.jsx)(N.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,j.jsx)(ti,{iconSize:c})})})})},ii=i(3305),oi=i(9258);function ni(t){var e;const i=t.event,[n,r,l,c]=(0,s.A)(),[u]=(0,d.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,o.useContext)(C.BR),[p]=(0,d.QN)("whatmoreSecondaryColor"),[v]=(0,d.QN)("whatmoreShopId"),x=(0,a.ivI)(v),g=null!==(e=(0,a.qAx)(v))&&void 0!==e?e:[p,x,p,x,p],m=(0,o.useRef)(null);(0,o.useEffect)(()=>{m.current&&m.current.play()},[]);const f=(0,b.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,j.jsx)(j.Fragment,{children:h?(0,j.jsx)(F.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,j.jsxs)(N.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,j.jsx)(_.o,{children:(0,j.jsx)(F.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+g[0]+"50, 0px -2px 1px 0px "+g[1]+"50, 2px 0px 1px 0px "+g[2]+"50, -2px 0px 1px 0px "+g[3]+"80, 2px -2px 1px 0px "+g[4]+"80, -2px 2px 1px 0px "+g[0]+"DA, 2px 2px 1px 0px "+g[1]+"DA, -2px -2px 1px 0px "+g[2]+"DA"},children:"video"==(0,Ct.B)(f)?(0,j.jsx)(We.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:f,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,j.jsx)("img",{src:f,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,j.jsx)(_.o,{children:(0,j.jsx)(B.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:u+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,j.jsx)(j.Fragment,{})})}var ri=function(t){var e,i,n;const[r,c,u]=(0,ii.A)(),[h]=(0,d.QN)("isInDesignMode"),[p]=(0,d.QN)("isDemoBrand"),[x,g]=(0,d.QN)("isProductSwiperCatalogOpen"),[m,f]=(0,d.QN)("isFirstIndicatorRenderDone"),[w]=(0,d.QN)("whatmoreShopId"),[b]=(0,d.QN)("whatmoreShowViews"),y=(0,o.useContext)(v.p),{whatmoreEventsBrowsingTemplate:S,whatmoreIsStoriesTemplate:k}=(0,o.useContext)(C.BR),[I,z,_,E]=(0,s.A)(),T=(0,d.Xd)("whatmorePrimaryFont"),[P,L]=(0,o.useState)(0),R=t.event,O=t.storySetId,D=t.isLast,W=t.onCloseCallback,M=t.focusRef,Q=t.productClickHandler,H=t.videoPlayingData,X=t.totalSiblingEvents,U=t.indexAmongSiblings,$=t.leftOpenSpaceClickHandler,q=t.midOpenSpaceClickHandler,K=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:Z}=(0,o.useContext)(C.BR),J=.1*E,[tt,et]=(0,o.useState)(!1),[nt,rt]=(0,o.useState)([]);function lt(){h||p||(async()=>{(0,l.A9)(R,1)})();const t=R.products[P]||R.products[0];(0,it.kz)({userInteractionType:ot.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:Z,event:R,productList:null===R||void 0===R?void 0:R.products,ctaList:null===R||void 0===R?void 0:R.cta});const e=t.product_link,i=(0,a.dzp)(w),o="50529403072"==w?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in this product I saw on ${null===t||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${o}&type=phone_number`,"_blank")}(0,o.useEffect)(()=>{L(0)},[null===R||void 0===R?void 0:R.event_id]);const at=t=>{dt.current&&!dt.current.contains(t.target)&&et(!1)},dt=(0,o.useRef)(null);(0,o.useEffect)(()=>(tt?document.addEventListener("click",at):document.removeEventListener("click",at),()=>{document.removeEventListener("click",at)}),[tt]);const st=(()=>{const t=(0,d.Xd)("whatmoreShopId");return"Free"==(0,a.yt9)(t)})()&&"portrait"==r;return(0,j.jsxs)(F.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,j.jsx)(Kt.S,{userInteractionType:ot.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!h&&!p,children:(0,j.jsx)(Ze,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),tt&&(0,j.jsx)("div",{ref:dt,className:"whatmore-share-modal",style:{zIndex:100,position:"absolute",boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.6)",width:"75%",top:"45%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,j.jsx)(Re,{shareText:nt,setShareText:rt,iconSize:J,isModalOpen:tt,setIsModalOpen:et})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(n=t.questionList)||void 0===n?void 0:n.length))&&(0,j.jsxs)(N.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,j.jsxs)(N.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[y.showVideoPlayingData?(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,j.jsx)(ke,{videoPlayingData:H,totalSiblings:X,indexAmongSiblings:U})}):(0,j.jsx)(j.Fragment,{}),(0,j.jsx)(F.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,j.jsxs)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,j.jsxs)(N.B,{direction:"row",alignItems:"center",gap:"10px",children:[(0,j.jsx)(ni,{event:R,width:E}),(0,jt.Yt)(S)||"show"!==b||"61415948468"!==w||"show"!==(0,a.klK)(w)?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(F.az,{children:(0,j.jsx)(oi.A,{event:R,fontSize:.035*E+"px"})})]}),(0,j.jsxs)(N.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,jt.Yt)(S)?(0,j.jsx)(Fe,{whatmoreShareTemplateId:(0,jt.Gy)(S),whatmoreShareStoryId:O,whatmoreShareEventId:R.event_id,event:R,showShareText:!1,iconSize:.098*E,setIsModalOpen:et,setShareText:rt}):(0,j.jsx)(j.Fragment,{}),(0,j.jsx)(A,{focusRef:M}),("landscape"!==r||t.showCloseOverlay)&&(0,j.jsx)(Y,{event:R,onCloseCallback:W})]})]})})]}),(0,j.jsxs)(N.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,j.jsx)(F.az,{width:"33%",height:"100%",onClick:()=>{$&&$()},sx:{display:"block !important"}}),(0,j.jsx)(F.az,{width:"34%",height:"100%",onClick:()=>{q&&q()},sx:{display:"block !important"}}),(0,j.jsx)(F.az,{width:"33%",height:"100%",onClick:()=>{K&&K()},sx:{display:"block !important"}})]}),(0,j.jsxs)(F.az,{width:"full",height:"fit-content",children:[y.totalEvents>1&&!m&&y.showSwipeIndicator?(0,j.jsx)(F.az,{width:"full",margin:"2px",children:(0,j.jsx)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,j.jsx)(G,{swipeUp:!D})})}):null,(0,j.jsx)(F.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,j.jsxs)(F.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==w&&(0,j.jsxs)(j.Fragment,{children:[" ","portrait"==r&&y.totalEvents>1&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(F.az,{children:(0,j.jsx)(Je.A,{style:{fontSize:1.3*J+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(R,"left")}})}),(0,j.jsx)(F.az,{children:(0,j.jsx)(Je.A,{style:{fontSize:1.3*J+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(R,"right")}})})]}),(0,j.jsx)(F.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,j.jsx)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,j.jsx)(ei,{event:R})})})]}),(0,a.oZc)(w)&&(0,a.dzp)(w)&&!(0,jt.Yt)(S)?(0,j.jsx)(F.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,j.jsxs)(N.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:lt,children:[(0,j.jsx)(Ne,{iconSize:.7*J,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,j.jsx)(B.E,{fontSize:J*(0,a.LOH)(w)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,a.wtw)(w)})]})}):(0,j.jsx)(j.Fragment,{}),(0,a.MdM)(w)&&(0,j.jsxs)(F.az,{height:"fit-content",position:"relative",children:[(0,j.jsx)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,j.jsx)(Ae,{event:R})}),(0,jt.Yt)(S)&&"50529403072"===w&&(0,j.jsx)(F.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,j.jsxs)(N.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:lt,children:[(0,j.jsx)(Ne,{iconSize:.6*J,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,j.jsx)(B.E,{fontSize:J*(0,a.LOH)(w)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,a.wtw)(w)})]})})]}),(0,a.iQ5)(w)&&!(0,jt.Yt)(S)?(0,j.jsx)(F.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,j.jsx)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,j.jsx)(Fe,{whatmoreShareTemplateId:(0,jt.Gy)(S),whatmoreShareStoryId:O,whatmoreShareEventId:R.event_id,event:R,setIsModalOpen:et,setShareText:rt})})}):(0,j.jsx)(j.Fragment,{})]})}),(0,qt.Z_)(R)?(0,j.jsxs)(F.az,{width:"full",children:[(0,a.ek9)(w)?(0,j.jsx)(F.az,{w:"100%",children:(0,j.jsx)(N.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,j.jsx)(V,{event:R,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,j.jsx)(j.Fragment,{}),x&&(0,j.jsx)(F.az,{display:"flex",width:"100%",height:"fit-content",children:(0,j.jsx)(Zt,{event:R,productClickHandler:Q,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,onActiveProductChange:L})})]}):(0,j.jsx)(j.Fragment,{})]}),st&&(0,j.jsx)(N.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,j.jsx)(De,{brandName:null===R||void 0===R?void 0:R.brand,fontSize:.033*E})})]})]})},li=i(5491),ai=i.n(li);var di=function(t){var e,i,n,r,l,h,[p,x,g,m]=(0,s.A)();const[f,w]=(0,o.useState)(!1),[y,S]=(0,o.useState)(),[k,I]=(0,o.useState)(),E=(0,o.useRef)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,d.Xd)("whatmoreShopId"),A=t.event,B=t.storyId,P=t.onBack,L=o.useRef(),R=t.changeSlide,O=t.isPlaying,D=t.isLast,W=t.setLockSwiper,M=t.onVideoEndedCallback,Q=t.progressUpdateCallback,H=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,V=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=null===(n=t.showOverlay)||void 0===n||n,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},U=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},$=null!==(h=t.rightOpenSpaceClickHandler)&&void 0!==h?h:()=>{},{whatmoreWidgetSourceDetails:q,whatmoreIsStoriesTemplate:K}=(0,o.useContext)(C.BR),{questionList:G}=(0,o.useContext)(v.p),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,o.useState)(),[et,nt]=(0,o.useState)({}),rt=(t,e)=>{nt(i=>({...i,[t]:e}))};(0,o.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const lt="center",at=async t=>{const e=await(0,c.M)(t,(0,a.NCy)(T),T);I(t),S(e),w(!0),W(!0),(0,it.kz)({userInteractionType:ot.O.SHOPNOW_CLICKED,widgetSourceDetails:q,event:A,productList:A.products,ctaList:A.cta}),(0,d.t2)("whatmoreAllowAutoSlide",!1)};let dt;try{dt=ai()(()=>{M()},1e3,{leading:!0,trailing:!1})}catch(st){console.log(st)}return(0,j.jsx)(_.o,{children:(0,j.jsxs)(F.az,{width:m,height:g,sx:{overflow:"hidden"},children:[(0,j.jsx)(N.B,{direction:"column",justifyContent:lt,height:"full",width:"full",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"white",children:(0,j.jsx)(je.g,{width:"full",ratio:m/g,children:(0,j.jsx)(z,{height:"100%",width:"100%",url:(0,b.s)((0,u.lP)(A)),isPlaying:O&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=Se(t,e);Q({watch_time:t,video_duration:e});const o=E.is_video_ended;i>=99&&O&&!o?(dt(),E.current={current_time:t,video_duration:e,is_video_ended:!0}):E.current={current_time:t,video_duration:e,is_video_ended:o}},event:A,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),X?(0,j.jsx)(N.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:lt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:K?(0,j.jsx)(ri,{focusRef:L,event:t.event,isLast:D,onCloseCallback:t=>{P(t),(0,it.DG)({userInteractionType:ot.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:E.current_time,video_duration:E.video_duration},widgetSourceDetails:q,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:at,videoPlayingData:E,totalSiblingEvents:H,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:U,rightOpenSpaceClickHandler:$,storySetId:B,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:rt}):(0,j.jsx)(ri,{focusRef:L,event:t.event,isLast:D,onCloseCallback:t=>{P(t),(0,it.DG)({userInteractionType:ot.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:E.current_time,video_duration:E.video_duration},widgetSourceDetails:q,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:at,videoPlayingData:E,totalSiblingEvents:H,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,storySetId:B,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:rt})})}):(0,j.jsx)(j.Fragment,{}),!0===f?(0,j.jsx)(N.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:lt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,j.jsx)(ye,{focusRef:L,event:t.event,isLast:D,onCloseCallback:()=>P(),setLockSwiper:W,data:y,currentProduct:k,setOpenShopNow:t=>{w(t),(0,d.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:rt})})}):(0,j.jsx)("div",{})]})})},si=i(6613),ci=i(5727);var ui=function(t){var[e,i,o,n]=(0,s.A)();const r=(0,d.Xd)("whatmoreShopId"),l=t.event,c=t.isPlaying,h="center";return(0,j.jsx)(_.o,{children:(0,j.jsxs)(F.az,{width:n,height:o,sx:{overflow:"hidden"},children:[(0,j.jsx)(N.B,{direction:"column",justifyContent:h,height:"full",width:"full",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"white",children:(0,j.jsx)(je.g,{width:"full",ratio:n/o,children:(0,j.jsx)(z,{height:"100%",width:"100%",url:(0,b.s)((0,u.lP)(l)),isPlaying:c,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,j.jsx)(N.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:h,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,m.bo)()},children:(0,j.jsxs)(N.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,j.jsx)(ci.A,{sx:{boxShadow:3,color:(0,a.KFN)(r),fontSize:.4*n,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,m.bo)()}}),(0,j.jsx)(B.E,{color:"white",fontSize:.05*n+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},hi=i(9821);var pi=function(t){var e,i;const o=t.changeSlide,n=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),v=t.progressUpdateCallback,[x,g]=(0,p.A)(),[m]=(0,d.QN)("whatmoreVideoPlayerPoolBlessed"),w=null===(i=t.showOverlay)||void 0===i||i;function C(){!0!==(0,a.GZ2)((0,d.Xd)("whatmoreShopId"))&&g(!x)}return(0,si.MN)()&&0==m?(0,hi._)()?(0,j.jsx)(ui,{event:n,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:v,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:f.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+n.event_id):(0,j.jsx)(di,{event:n,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:v,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:f.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(0,h.i)(n)||(0,h.I)(n)?(0,j.jsx)(di,{event:n,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:v,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:f.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(console.error("Can't render event which is neither video or image"),(0,j.jsx)("div",{}))},vi=i(4806),xi=i.n(vi),gi=i(2804),mi=i(6834);function fi(t){var e;const[i,n]=(0,o.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,j.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,j.jsx)(mi.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{n(!0),setTimeout(()=>{n(!1)},500),r(t,"up")}}):(0,j.jsx)(gi.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{n(!0),setTimeout(()=>{n(!1)},500),r(t,"down")}})})}var wi=function(t){var e,i,o;const n=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(o=t.fontSize)&&void 0!==o?o:50,a=t.handleClick;return(0,j.jsx)("div",{style:{position:"relative",zIndex:1,bottom:n,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,j.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,j.jsx)(fi,{type:"left",onClick:a,fontSize:l}),(0,j.jsx)(fi,{type:"right",onClick:a,fontSize:l})]})})},Ci=i(964),bi=i(3330);var yi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const n=(0,o.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return n.current},function(t){n.current="right"==t?{prevIndex:i(n.current.activeIndex,e),activeIndex:i(n.current.activeIndex+1,e),nextIndex:i(n.current.activeIndex+2,e)}:{prevIndex:i(n.current.activeIndex-2,e),activeIndex:i(n.current.activeIndex-1,e),nextIndex:i(n.current.activeIndex,e)}},function(t){return i(n.current.activeIndex+t)}]};var ji=function(t,e){const i=(0,o.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(o){const n=i.current.clientX,r=i.current.clientY;var l=n-o.changedTouches[0].clientX,a=r-o.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var Si=function(t,e){const i=(0,o.useRef)(ai()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(o,n){var r=0;if(r="vertical"==t?o.deltaY:o.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(n,l)}]},ki=i(4638);var Ii=function(t){const e=t.events,i=t.eventIndex,c=t.onBack;var[u,h,p,x]=(0,s.A)();const[g]=(0,d.QN)("isInDesignMode"),[m]=(0,d.QN)("isDemoBrand"),[f,w]=(0,o.useState)(!0),[b,y]=(0,d.QN)("isFirstIndicatorRenderDone"),[S,k]=(0,o.useState)(!1),I=(0,o.useRef)({}),{setCloseClickComponent:z}=(0,o.useContext)(v.p),{slideDirection:_}=(0,o.useContext)(v.p),[F]=(0,d.QN)("whatmoreShopId"),[E]=(0,d.QN)("whatmoreLandingLocationType"),[T,A]=yi(i,e.length),[B,P]=ji(_,10),[L]=Si("vertical",10),[R,O]=(0,o.useState)(!0),[D,W]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:M,whatmoreUserInfo:Q}=(0,o.useContext)(C.BR),H=M.landingLocationType,V=M.templateType,X=Math.round(.05*p);let Y=i;const{questionList:U}=(0,o.useContext)(v.p);function $(){O(!1)}function q(t){$(),setTimeout(()=>{c(t)},500)}function K(){(0,d.Xd)("whatmoreAllowAutoSlide")&&(A("right"),D.slideNext())}function G(t,e){A(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}return(0,o.useEffect)(()=>{z(q)},[]),(0,j.jsx)(xi(),{isOpen:R,onRequestClose:$,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,j.jsx)(ki.A,{children:(0,j.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,tt.YU)("#000000",13),touchAction:"pan-y",transform:"translateZ(0)",willChange:"transform"},onTouchStart:t=>{B(t)},onTouchEnd:t=>{if(S)return;const e=P(t);e&&G(0,e)},onWheel:t=>{S||L(t,t=>{G(0,t)})},children:[(0,j.jsx)(n.RC,{speed:300,threshold:X,slidesPerView:1,direction:_,modules:[r.dK,r.FJ,r.AV],initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!S,allowSlidePrev:!S,allowTouchMove:!1,onSwiper:t=>{W(t),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products})},onSlideChange:t=>{var i;f?w(!1):(b||y(!0),(0,it.DG)({userInteractionType:ot.O.VIDEO_PLAYBACK,userInteractionMetadata:I.current,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products}),i=e[T().activeIndex],g||m||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,jt.Wd)(H)+(0,jt.gf)(V)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===E?((0,bi.sendVideoViewEventToGA)(F,Ci.TB,Ci.Dk),(0,Ve.Ch)(i.event_id,i.products,Ci.TB,Ci.Dk,t,null===i||void 0===i?void 0:i.location,null===Q||void 0===Q?void 0:Q.userType)):E.startsWith("product")||"embed"===E?((0,bi.sendVideoViewEventToGA)(F,Ci.DK,Ci.K1),(0,Ve.Ch)(i.event_id,i.products,Ci.DK,Ci.K1,t)):E.startsWith("collection")?((0,bi.sendVideoViewEventToGA)(F,Ci.Sx,Ci.rz),(0,Ve.Ch)(i.event_id,i.products,Ci.Sx,Ci.rz,t)):((0,bi.sendVideoViewEventToGA)(F,Ci.TB,Ci.Dk),(0,Ve.Ch)(i.event_id,i.products,Ci.TB,Ci.Dk,t))})(),(0,it.UM)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map(o=>(0,j.jsx)(n.qr,{virtualIndex:o,children:({isActive:o,isPrev:n,isNext:r,isVisible:l,isDuplicate:d})=>{const s=o?"activeIndex":n?"prevIndex":"nextIndex",c=T()[s];"activeIndex"==s&&(Y=Math.max(Y,c),0==c&&(Y=0));const u=(null===U||void 0===U?void 0:U.length)>0&&o&&l&&(c>i||Y<i&&c>0)&&c>=Y&&c%(0,a.uSp)(F)==i%(0,a.uSp)(F);return(0,j.jsx)(N.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,j.jsx)(pi,{event:e[c],showQuestion:u,onBack:q,isPlaying:1==e.length||o&&l,isLast:!1,setLockSwiper:k,onVideoEndedCallback:K,progressUpdateCallback:t=>{I.current=t},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:G})})}},"event-vertical-scroll-slide-"+o))}),e.length>1&&!S&&(0,a.kb)(F)&&"horizontal"===(0,a.br0)(F)&&"horizontal"===_?(0,j.jsx)(wi,{relativeBottomPercentage:"50%",width:x,handleClick:(t,e)=>{G(0,"down"==e?"right":"left")},fontSize:parseInt(.12*x)}):(0,j.jsx)(j.Fragment,{})]})})})},zi=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const _i=({children:t,customClass:e,show:i,closeCallback:o})=>zi.createPortal((0,j.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:i?"block":"none"},children:[(0,j.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,j.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);_i.defaultProps={children:(0,j.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var Fi=_i;i(1012);var Ei=function(t){var e,[i,c,u,h]=(0,s.A)();const[p]=(0,d.QN)("isInDesignMode"),[x]=(0,d.QN)("isDemoBrand"),[g,m]=(0,d.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,o.useContext)(v.p),[y,S]=(0,o.useState)(!1),[k]=(0,d.QN)("whatmoreShopId"),[I]=(0,d.QN)("whatmoreLandingLocationType"),z=(0,d.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,o.useContext)(C.BR),[A,B]=(0,o.useState)(!1),[P,L]=(0,o.useState)(null);function R(){B(!1)}const O=t.events,D=t.eventIndex,W=t.onBack,M=O.concat(O),Q=O.length,H=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,V=(0,o.useRef)(0);function X(t){R(),setTimeout(()=>{W(t)},500)}function U(){P&&!P.isEnd&&(0,d.Xd)("whatmoreAllowAutoSlide")&&P.slideNext()}(0,o.useEffect)(()=>(B(!0),()=>{}),[]),b(X);const $=E.landingLocationType,q=E.templateType,K=(0,o.useRef)({}),G=parseInt(Math.min(5,O.length)),Z=("90518552861"===k||"63512346790"===k)&&G>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:G>=5;return(0,j.jsx)(Fi,{show:A,closeCallback:R,customClass:"whatmore-landscape-modal-swipe-view",children:(0,j.jsxs)(N.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,tt.YU)("#000000",13),children:[(0,j.jsx)(_.o,{children:(0,j.jsxs)(F.az,{height:"fit-content",width:h*G,position:("90518552861"===k||"63512346790"===k)&&G>=5?"relative":void 0,children:[("90518552861"===k||"63512346790"===k)&&G>=5&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,j.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,j.jsxs)(n.RC,{onInit:t=>{L(t),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:G,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:Z,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*u),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*G,watchSlidesProgress:!0,onSlideChange:t=>{var e;f?w(!1):(g||m(!0),e=O[t.activeIndex],p||x||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,jt.Wd)($)+(0,jt.gf)(q)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===I?((0,bi.sendVideoViewEventToGA)(k,Ci.TB,Ci.Dk),(0,Ve.Ch)(e.event_id,e.products,Ci.TB,Ci.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):I.startsWith("product")||"embed"===I?((0,bi.sendVideoViewEventToGA)(k,Ci.DK,Ci.K1),(0,Ve.Ch)(e.event_id,e.products,Ci.DK,Ci.K1,t)):I.startsWith("collection")?((0,bi.sendVideoViewEventToGA)(k,Ci.Sx,Ci.rz),(0,Ve.Ch)(e.event_id,e.products,Ci.Sx,Ci.rz,t)):((0,bi.sendVideoViewEventToGA)(k,Ci.TB,Ci.Dk),(0,Ve.Ch)(e.event_id,e.products,Ci.TB,Ci.Dk,t))})(),(0,it.DG)({userInteractionType:ot.O.VIDEO_PLAYBACK,userInteractionMetadata:K.current,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,it.UM)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,j.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,j.jsx)(Y,{onCloseCallback:W})}),M.slice(D,O.length+D).map((t,e)=>(0,j.jsx)(n.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n,isDuplicate:r})=>{if(t)return(0,j.jsx)(N.B,{direction:"column",height:u,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,j.jsx)(F.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,a.YcK)(k),borderColor:(0,a.Fwt)(k)},children:(0,j.jsx)(pi,{event:O[e%Q],onBack:X,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(o)return(0,j.jsx)(N.B,{direction:"column",height:u,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e%Q,300)},children:(0,j.jsx)(F.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,a.YcK)(k),borderColor:(0,a.Fwt)(k)},children:(0,j.jsx)(pi,{event:O[e%Q],onBack:X,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});if(i&&1===V.current)return(0,j.jsx)(N.B,{direction:"column",height:u,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e%Q,300)},children:(0,j.jsx)(F.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,a.YcK)(k),borderColor:(0,a.Fwt)(k)},children:(0,j.jsx)(pi,{event:O[e%Q],onBack:X,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(V.current=1)}catch(l){console.log(l)}return(0,j.jsx)(j.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,j.jsx)(_.o,{children:(0,j.jsx)(De,{brandName:H,height:.04*u,width:.1*h,fontSize:.02*u})})]})})},Ti=i(340),Ai=i(5089),Ni=i(4958),Bi=i(572),Pi=i(8603);var Li=function(t){const[e,i,o,n]=(0,s.A)(),[r]=(0,d.QN)("whatmorePrimaryColor"),[l]=(0,d.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,j.jsx)(_.o,{children:(0,j.jsxs)(F.az,{width:n,height:o,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,j.jsx)(N.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,j.jsx)(F.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,j.jsx)(je.g,{width:"full",ratio:n/o,children:(0,j.jsx)(F.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,j.jsx)(N.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(F.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,j.jsx)(je.g,{width:"full",ratio:9/16,children:(0,j.jsx)(F.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var Ri=function(t){var e;const i=t.stories,r=t.onBack,c=t.onStoryCompleteCallback,u=t.isActive,v=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,x=i.events;var[g,m,w,b]=(0,s.A)();const[y,S]=(0,p.A)(),[k]=(0,d.QN)("isInDesignMode"),[I]=(0,d.QN)("isDemoBrand"),[z]=(0,d.QN)("whatmoreShopId"),[_,F]=(0,o.useState)(!0),[E,T]=(0,d.QN)("isFirstIndicatorRenderDone"),[A,B]=(0,o.useState)(null),[P,L]=(0,o.useState)(!1),{whatmoreWidgetSourceDetails:R,whatmoreUserInfo:O}=(0,o.useContext)(C.BR),[D,W]=yi(v,x.length);function M(t){r(t)}const Q=R.landingLocationType,H=R.templateType;function V(){if(!(0,d.Xd)("whatmoreAllowAutoSlide"))return;D().activeIndex+1>=x.length?c("right"):(W("right"),A&&A.slideNext())}function X(t){const e=D().activeIndex;"right"==t&&e+1>=x.length||"left"==t&&e-1<0?c(t):(W(t),A&&("left"==t?A.slidePrev():A.slideNext()))}const[Y,U]=(0,o.useState)({});return x[D().activeIndex],(0,j.jsx)("div",{children:(0,j.jsx)(n.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:w,width:b,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{B(t)},onSlideChange:t=>{_?F(!1):(E||T(!0),(0,it.DG)({userInteractionType:ot.O.VIDEO_PLAYBACK,userInteractionMetadata:Y,widgetSourceDetails:R,event:x[D().activeIndex],productList:x[D().activeIndex].products,ctaList:x[D().activeIndex].cta}),function(t){const e=(0,jt.Wd)(Q)+(0,jt.gf)(H)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);k||I||(async()=>{(0,l.lB)(t),(0,bi.sendVideoViewEventToGA)(z,Ci.TB,Ci.OL),(0,Ve.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===O||void 0===O?void 0:O.userType)})()}(x[D().activeIndex]),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:R,event:x[D().activeIndex],productList:x[D().activeIndex].products,ctaList:x[D().activeIndex].cta}))},children:[...Array(Math.min(x.length,3)).keys()].map(e=>(0,j.jsx)(n.qr,{children:({isActive:e,isPrev:o,isNext:n,isVisible:r,isDuplicate:l})=>{if(u){const n=e?"activeIndex":o?"prevIndex":"nextIndex",l=x[D()[n]];return(0,j.jsx)(N.B,{direction:"column",height:w,justifyContent:"center",children:(0,h.i)(l)||(0,h.I)(l)?(0,j.jsx)(di,{event:l,totalSiblingEvents:x.length,indexAmongSiblings:D()[n],onBack:M,isPlaying:u&&e&&r,isLast:!1,setLockSwiper:L,onVideoEndedCallback:V,progressUpdateCallback:t=>{U(t)},leftOpenSpaceClickHandler:()=>{X("left")},midOpenSpaceClickHandler:()=>{!0!==(0,a.GZ2)((0,d.Xd)("whatmoreShopId"))&&S(!y)},rightOpenSpaceClickHandler:()=>{X("right")},storyId:i.id,source:f.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+l.event_id):(0,j.jsx)(j.Fragment,{})})}return(0,j.jsx)(N.B,{direction:"column",height:g,justifyContent:"center",children:(0,j.jsx)(Li,{})})}},"event-story-view-slide-"+e))})})};var Oi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[s]=(0,d.QN)("isInDesignMode"),[c]=(0,d.QN)("isDemoBrand"),[u,h]=(0,o.useState)(!0),{setCloseClickComponent:p}=(0,o.useContext)(v.p),[x]=(0,d.QN)("whatmoreShopId"),[g,m]=yi(a,i.length),[f,w]=ji("horizontal",50),[b]=Si("vertical",30),y=t.eventIndex,[S,k]=(0,o.useState)(!0),[I,z]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:F}=(0,o.useContext)(C.BR);function E(){k(!1)}function T(t){E(),setTimeout(()=>{e(t)},500)}p(T);const A=_.landingLocationType,B=_.templateType;function P(t){I&&(0,d.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?I.slideNext():I.slidePrev())}function L(t,e){P(e)}return(0,j.jsx)(xi(),{isOpen:S,onRequestClose:E,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,j.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{f(t)},onTouchEnd:t=>{const e=w(t);e&&L(0,e)},onWheel:t=>{b(t,t=>{L(0,t)})},children:(0,j.jsx)(n.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,o;z(t),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:_,event:i[g().activeIndex].events[0],productList:null===(e=i[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[g().activeIndex].events[0])||void 0===o?void 0:o.cta})},onSlideChange:t=>{var e,o;u?h(!1):(!function(t){const e=(0,jt.Wd)(A)+(0,jt.gf)(B)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);s||c||(async()=>{(0,l.lB)(t),(0,bi.sendVideoViewEventToGA)(x,Ci.TB,Ci.OL),(0,Ve.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===F||void 0===F?void 0:F.userType)})()}(i[g().activeIndex].events[0]),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:_,event:i[g().activeIndex].events[0],productList:null===(e=i[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[g().activeIndex].events[0])||void 0===o?void 0:o.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map(t=>(0,j.jsx)(n.qr,{children:({isActive:t,isPrev:e,isNext:o,isVisible:n,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,j.jsx)(N.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,j.jsx)(Ri,{stories:i[g()[l]],onBack:T,isActive:t&&n,isNext:o,isPrev:e,onStoryCompleteCallback:P,nextStories:i[g().nextIndex],prevStories:i[g().prevIndex],initialEventIndex:a==g()[l]?y:0},"event-story-view-"+i[g()[l]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var Di=function(t){var e,i,n,[r,l,a,c]=(0,s.A)();const[u]=(0,d.QN)("whatmorePrimaryColor"),[p]=(0,d.QN)("whatmoreSecondaryColor"),v=t.event,x=(t.onBack,o.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),g=null!==(i=t.heightFactor)&&void 0!==i?i:1,m="flex-end";return c*=null!==(n=t.widthFactor)&&void 0!==n?n:1,a*=g,(0,j.jsx)(_.o,{children:(0,j.jsxs)(F.az,{width:c,height:a,children:[(0,j.jsx)(N.B,{direction:"column",justifyContent:m,height:"full",width:"full",children:(0,j.jsx)(F.az,{children:(0,j.jsx)(je.g,{width:"full",ratio:9/16,children:x?(0,h.i)(v)||(0,h.I)(v)?(0,j.jsx)(We.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:v}):(0,j.jsx)(L._,{width:"full",height:"full",src:v.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,j.jsx)(F.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+u+", gray, "+p+")"})})})}),(0,j.jsx)(N.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:m,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,j.jsx)(F.az,{children:(0,j.jsx)(je.g,{width:"full",ratio:9/16,children:(0,j.jsx)(F.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Wi=function(t){var e,i,[a,c,u,h]=(0,s.A)();const[p]=(0,d.QN)("isInDesignMode"),[x]=(0,d.QN)("isDemoBrand"),[g,m]=(0,d.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,o.useContext)(v.p),[y,S]=(0,o.useState)(!1),[k]=(0,d.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:I,whatmoreUserInfo:z}=(0,o.useContext)(C.BR),[E,T]=(0,o.useState)(!1),[A,B]=(0,o.useState)(null);function P(){T(!1)}t.events;const L=t.eventIndex,R=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,W=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function M(t){P(),setTimeout(()=>{R(t)},500)}(0,o.useEffect)(()=>(T(!0),()=>{}),[]),b(M);const Q=I.landingLocationType,H=I.templateType;function V(t){A&&!A.isEnd&&("right"==t?A.slideNext():A.slidePrev())}const X=parseInt(Math.min(5,O.length));return(0,j.jsx)(Fi,{show:E,closeCallback:P,customClass:"whatmore-landscape-modal-stories-view",children:(0,j.jsxs)(N.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,j.jsx)(_.o,{children:(0,j.jsx)(F.az,{height:"fit-content",width:h*X,children:(0,j.jsxs)(n.RC,{onInit:t=>{var e,i;B(t),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:I,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:X,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:X>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*u),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*X,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;f?w(!1):(g||m(!0),function(t){const e=(0,jt.Wd)(Q)+(0,jt.gf)(H)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);p||x||(async()=>{(0,l.lB)(t),(0,bi.sendVideoViewEventToGA)(k,Ci.TB,Ci.OL),(0,Ve.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,it.kz)({userInteractionType:ot.O.EVENT_VIEW,widgetSourceDetails:I,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,j.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,j.jsx)(Y,{onCloseCallback:R})}),O.map((t,e)=>(0,j.jsx)(n.qr,{children:({isActive:i,isPrev:o,isNext:n,isVisible:r,isDuplicate:l})=>{if(i){const o=1;return(0,j.jsx)(N.B,{direction:"column",height:u,width:h*o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,j.jsx)(F.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,j.jsx)(Ri,{stories:t,onBack:M,isActive:i&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:V,initialEventIndex:D==e?L:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||n?(0,j.jsx)(N.B,{direction:"column",height:u,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e,300)},children:(0,j.jsx)(F.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,j.jsx)(Di,{showPausedVideo:!0,event:O[e].events[0],onBack:M,isPlaying:!1,setLockSwiper:S})})}):(0,j.jsx)(j.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,j.jsx)(_.o,{children:(0,j.jsx)(De,{brandName:W,height:.04*u,width:.1*h,fontSize:.02*u})})]})})};const Mi=(0,Pi.A)({key:"whatmore-css-sv"});var Qi=function(t){var e,i,n;const[r,l]=(0,o.useState)(!1),[s,c,u]=(0,ii.A)(),[h]=(0,d.QN)("whatmoreShopId"),{whatmoreRootId:p}=(0,o.useContext)(C.BR),{whatmoreIsStoriesTemplate:x}=(0,o.useContext)(C.BR),[g]=(0,d.QN)("isWhatmorePreviewMode");var m=t.events,f=t.index,w=t.onBack,b=t.eventsStories,y=t.initialStoryIndex,S=(0,a.M3_)(h);(0,o.useEffect)(()=>{const t=setTimeout(()=>{l(!0)},100);return()=>clearTimeout(t)},[]);var k="portrait"===s?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:m.length>1?"horizontal":"vertical",I="portrait"===s?!(0,a.kb)(h)&&!x:(0,a.DNc)(h);if((0,o.useLayoutEffect)(()=>{(0,a.hpk)(h)&&(window.location.href.includes(S)?history.replaceState(null,"","#"+S):history.pushState(null,"","#"+S),window.addEventListener("popstate",()=>{window.location.href.includes(S)||w()}))},[]),delete Ai.Ay.styles.global,!r&&"portrait"===s){var z,_;const t=x&&b&&null!==y?null===(z=b[y])||void 0===z||null===(_=z.events)||void 0===_?void 0:_[0]:m[f];return(0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000",zIndex:2147483647},children:(0,j.jsxs)("div",{style:{width:u,height:c,overflow:"hidden",position:"relative"},children:[(0,j.jsx)("img",{src:(null===t||void 0===t?void 0:t.poster_image)||(null===t||void 0===t?void 0:t.thumbnail_image),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),(0,j.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,j.jsx)(Ni.A,{})})]})})}return x?(0,j.jsx)(Bi.C,{value:Mi,children:(0,j.jsx)(Ti.s,{theme:Ai.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,j.jsx)(v.p.Provider,{value:{isIOS:(0,si.MN)(),totalEvents:m.length,closeClickComponent:w,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I},children:("portrait"!==s||g)&&(0,a.Rdb)(h)?(0,j.jsx)(Wi,{eventsStories:b,initialStoryIndex:y,onBack:w,eventIndex:f}):(0,j.jsx)(Oi,{eventsStories:b,initialStoryIndex:y,onBack:w,eventIndex:f})})})}):(0,j.jsx)(Bi.C,{value:Mi,children:(0,j.jsx)(Ti.s,{theme:Ai.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,j.jsx)(v.p.Provider,{value:{isIOS:(0,si.MN)(),totalEvents:m.length,closeClickComponent:w,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I,questionList:(0,a.JwJ)(h)?null===(n=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===n?void 0:n.questionList:[]},children:"portrait"===s?(0,j.jsx)(Ii,{events:m,eventIndex:f,onBack:w}):(0,j.jsx)(Ei,{events:m,eventIndex:f,onBack:w})})})})}},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});var o=i(3247),n=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(7483),c=i(140);var u=i(5144),h=i(4905),p=i(314),v=i(1348),x=i(8149),g=i(6824),m=i(1351),f=i(6157),w=i(4414);function C(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(o.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var b=function(t){var e,i,a,b;const[y]=(0,s.QN)("whatmorePrimaryFont"),[j]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[z]=(0,s.QN)("whatmoreShopId"),[_]=[(0,v.Wc_)(z)],F=(0,v.Wc_)(z),[E,T]=(0,d.useState)(!1),[A,N]=(0,d.useState)({state:"initial"}),[B,P]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:L}=(0,d.useContext)(p.p),{whatmoreWidgetSourceDetails:R}=(0,d.useContext)(g.BR),O=t.event,D=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function M(t,e,i){j||S||(async()=>{(0,c.tO)(t,e,i)})()}(0,d.useEffect)(()=>{!async function(){var t,e,i,o;const n=await(0,x.M)(D,(0,v.NCy)(z),z);P({loaded:!0,client_product_id:D.client_product_id,variant_id:null===n||void 0===n||null===(t=n.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===n||void 0===n||null===(i=n.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price})}()},[]);const Q=null!==(i=t.width)&&void 0!==i?i:"fit-content",H=null!==(a=t.height)&&void 0!==a?a:"fit-content",V=(null!==(b=(0,v.FyB)(z))&&void 0!==b?b:2)+"px";return B.loaded?(0,w.jsx)("div",{style:{width:Q,height:H},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":B.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(z),sx:{width:Q,height:H,minHeight:H},onClick:t=>{T(!0),M(O,D,1),(0,m.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:R,event:O,productList:[D],ctaList:O.cta}),null!==L&&setTimeout(()=>{L()},2e3)},children:"initial"===A.state?(0,w.jsx)(o.az,{width:"100%",height:"100%",padding:V,boxShadow:"lg",borderRadius:"md",backgroundColor:F,borderColor:F,borderWidth:"1px",animation:E?u.jd:null,onAnimationEnd:()=>{T(!1)},children:(0,w.jsx)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:y+" !important",color:(0,v.Hfu)(z)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:O,product:D,baseFontSize:W,cartState:A,width:Q,height:H})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
|