whatmore-react-assets 1.0.1423 → 1.0.1424
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/static/js/13.b216da25.chunk.js +1 -0
- package/static/js/154.77527b19.chunk.js +2 -0
- package/static/js/210.d4c6f9a4.chunk.js +1 -0
- package/static/js/219.a0c7f0d6.chunk.js +1 -0
- package/static/js/240.9c510ae9.chunk.js +2 -0
- package/static/js/302.41f7dffe.chunk.js +1 -0
- package/static/js/348.1667d3ab.chunk.js +117 -0
- package/static/js/423.4d5ac85a.chunk.js +1 -0
- package/static/js/561.95fd0242.chunk.js +1 -0
- package/static/js/577.646fa55d.chunk.js +1 -0
- package/static/js/731.4a524607.chunk.js +1 -0
- package/static/js/733.b0e46e99.chunk.js +1 -0
- package/static/js/751.4f97aaf7.chunk.js +1 -0
- package/static/js/819.c2077f1e.chunk.js +2 -0
- package/static/js/824.d0a74da1.chunk.js +2 -0
- package/static/js/app-main.d4733527.chunk.js +1 -0
- package/static/js/atc-with-form.c6e794f2.chunk.js +1 -0
- package/static/js/banner-template-a.87707e64.chunk.js +1 -0
- package/static/js/carousel-template-a.9bab2855.chunk.js +1 -0
- package/static/js/carousel-template-b.d52ffc0b.chunk.js +1 -0
- package/static/js/carousel-template-f.bd001127.chunk.js +1 -0
- package/static/js/carousel-template-feed.ad73c3ed.chunk.js +15 -0
- package/static/js/carousel-template-g.d874fad3.chunk.js +1 -0
- package/static/js/carousel-template-h.eada0967.chunk.js +1 -0
- package/static/js/carousel-template-view-more.4b1e8a28.chunk.js +45 -0
- package/static/js/collections-template-a.d79da3e9.chunk.js +1 -0
- package/static/js/collections-template-b.d191151d.chunk.js +1 -0
- package/static/js/collections-template-c.6aadef97.chunk.js +1 -0
- package/static/js/collections-template-stories.9696a048.chunk.js +1 -0
- package/static/js/event-click-main.e9e26fc2.chunk.js +1 -0
- package/static/js/event-click-product.60b5a8fa.chunk.js +1 -0
- package/static/js/event-click-spotlight.929fb915.chunk.js +1 -0
- package/static/js/homepage-carousel-view.40bb7c8e.chunk.js +1 -0
- package/static/js/{location-details.b14d3704.chunk.js → location-details.c0431f85.chunk.js} +1 -1
- package/static/js/product-page-view.1baa0964.chunk.js +1 -0
- package/static/js/recommended-carousel.9a69fdec.chunk.js +2 -0
- package/static/js/spotlight-view.0d1ff2a1.chunk.js +1 -0
- package/static/js/stories-template-a.69cd6742.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/2.a6e5564f.chunk.js +0 -1
- package/static/js/286.4d801177.chunk.js +0 -1
- package/static/js/296.25439eea.chunk.js +0 -1
- package/static/js/311.96c6c80a.chunk.js +0 -1
- package/static/js/378.bce12c1d.chunk.js +0 -1
- package/static/js/461.28347fc7.chunk.js +0 -1
- package/static/js/497.5bfb4d06.chunk.js +0 -2
- package/static/js/620.e23ff8de.chunk.js +0 -1
- package/static/js/650.44faf770.chunk.js +0 -117
- package/static/js/669.fcb5e7c7.chunk.js +0 -2
- package/static/js/682.d59c82bd.chunk.js +0 -1
- package/static/js/732.252d2132.chunk.js +0 -2
- package/static/js/756.7523a583.chunk.js +0 -2
- package/static/js/859.7a919acd.chunk.js +0 -1
- package/static/js/920.298a46d6.chunk.js +0 -1
- package/static/js/app-main.b8b5ba23.chunk.js +0 -1
- package/static/js/atc-with-form.43621d03.chunk.js +0 -1
- package/static/js/banner-template-a.9d6666d6.chunk.js +0 -1
- package/static/js/carousel-template-a.1173f55c.chunk.js +0 -1
- package/static/js/carousel-template-b.97c5133d.chunk.js +0 -1
- package/static/js/carousel-template-f.52aade62.chunk.js +0 -1
- package/static/js/carousel-template-feed.cc5f97a1.chunk.js +0 -15
- package/static/js/carousel-template-g.6375c2a4.chunk.js +0 -1
- package/static/js/carousel-template-h.264e373e.chunk.js +0 -1
- package/static/js/carousel-template-view-more.f32e33c2.chunk.js +0 -45
- package/static/js/collections-template-a.daea1564.chunk.js +0 -1
- package/static/js/collections-template-b.22c9d294.chunk.js +0 -1
- package/static/js/collections-template-c.ba832b97.chunk.js +0 -1
- package/static/js/collections-template-stories.57f85909.chunk.js +0 -1
- package/static/js/event-click-main.0c383ac3.chunk.js +0 -1
- package/static/js/event-click-product.21e6f6d4.chunk.js +0 -1
- package/static/js/event-click-spotlight.fab8b156.chunk.js +0 -1
- package/static/js/homepage-carousel-view.57ea90f2.chunk.js +0 -1
- package/static/js/product-page-view.3aa9a4ce.chunk.js +0 -1
- package/static/js/recommended-carousel.22249e9e.chunk.js +0 -2
- package/static/js/spotlight-view.864358a9.chunk.js +0 -1
- package/static/js/stories-template-a.a97215e7.chunk.js +0 -1
- /package/static/css/{139.a9bfc3e2.chunk.css → 926.a9bfc3e2.chunk.css} +0 -0
@@ -1,117 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[650],{8650:function(t,e,i){i.r(e),i.d(e,{EventClickComponentContext:function(){return fi},default:function(){return wi}});var n=i(9950),o=i(8378),r=i(9094),l=i(140),a=i(5388),d=i(7239),s=i(10),c=i(1348),u=i(664),h=i(3080),p=i(8149),v=i(3771),x=i(4414);var m=function(t){return(0,x.jsx)(v.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},g=i(9310),f=i(4895),w=i(5375),j=i(6670);var y=function(t){const[e,i]=(0,j.A)(),[n,o,r,l]=(0,h.A)(),a=.08*l;function d(){i(!e)}return(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{cursor:"pointer",children:e?(0,x.jsx)(w.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}}):(0,x.jsx)(f.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}})})})},b=i(645),C=i(8283);const S=`${C.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`,k=`\n ${C.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`;C.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
|
-
`,C.i7`
|
34
|
-
0% { transform: scale(1); }
|
35
|
-
10% { transform: scale(1.2); }
|
36
|
-
20% { transform: scale(1); }
|
37
|
-
`;var I=i(8544);const _=`\n ${C.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 z(t){const[e,i,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmoreSecondaryColor"),[a,d]=(0,n.useState)(0),[p]=(0,u.QN)("whatmoreShopId"),v=t.event,m=t.onClick,f=v.products.length;t.isFirstProductsIconClickDone;(0,n.useEffect)((()=>{const t=setInterval((()=>{d((t=>(t+1)%f))}),3e3);return()=>{clearInterval(t)}}),[]);const w=.24,j=.024;var y=r*w+"px",b=r*w+"px",C=r*j*1.5+"px",k=r*j+"px",z=r*j*1.5+"px";if(void 0==v.products||0==v.products.length)return(0,x.jsx)(x.Fragment,{});var E=v.products;return(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,x.jsxs)(s.az,{margin:"10px",width:y,height:b,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:S,onClick:()=>m(),children:[(0,x.jsx)(g._V,{width:"100%",height:"100%",src:E[a].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,c.KZe)(p)+" !important"},borderRadius:"lg",animation:_},a),(0,x.jsx)(s.az,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,x.jsx)(s.BJ,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.BJ,{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,x.jsxs)(s.EY,{noOfLines:1,fontSize:k,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(I.A,{sx:{color:"white",fontSize:z}})})]})})})}),(0,x.jsx)(s.BJ,{direction:"row",height:"fit-content",width:y,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.Ex,{fontSize:C,variant:"subtle",textColor:l,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:f>1?f:""})})]})})}var E=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),[o,r,l,a]=(0,h.A)(),[d,c]=(0,n.useState)(!1),p=t.onToggle,v=t.event,m=.07*a,g=.15*l,f=.05*a;return(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.M6,{style:{marginTop:"10px"},children:e?(0,x.jsx)(b.A,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"absolute",bottom:g,right:f,zIndex:10},onClick:()=>{p("minimize-button")}}):(0,x.jsx)(z,{event:v,onClick:()=>{p("products-button"),c(!0)},isFirstProductsIconClickDone:d})})})},T=i(5242),A=i(9541),F=i(7958),N=i(5078),P=i(731);var L=function(t){var e,i;const[o,r,l,a]=(0,h.A)(),[d,c]=(0,n.useState)(!0),{slideDirection:p}=(0,n.useContext)(fi),v=((0,u.Xd)("whatmoreShopId"),null!==(e=t.showForSeconds)&&void 0!==e?e:3),m=null!==(i=t.delayInSeconds)&&void 0!==i?i:1;t.swipeUp,(0,n.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*v);return()=>{clearTimeout(t)}}),[]);const g=.15*a,f=.07*a,w=`${C.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`,j=`${C.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,x.jsx)(F.Jt,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.ov,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,x.jsx)(N.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(P.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var B=function(t){const[e,i]=(0,u.QN)("isFirstIndicatorRenderDone"),[o]=(0,u.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)((()=>{const t=setTimeout((()=>{i(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,x.jsx)(L,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},O=i(8781),D=i(5144),R=i(4459);const W="15px";var Q=i(1351),V=i(6157),M=i(4737);var H=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p,v,m]=(0,h.A)(),[g,f]=(0,n.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(M.B),b=.1*v,C=.95*m,S=.05*m;return(0,x.jsx)(s.BJ,{direction:"row",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.BJ,{direction:"column",width:"fit-content",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,x.jsx)(s.az,{width:C+"px",height:"fit-content",padding:"6px",marginTop:W,backgroundColor:o,borderRadius:"5px",animation:g?D.jd:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.qw1)(a),onClick:()=>{f(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[n],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.BLb)(a)?t.product_link+"?"+(0,c.VCz)(a)+"&"+(0,c.Spk)(a)+"&"+(0,c.$lz)(a):t.product_link}(w)},_hover:{backgroundColor:(0,R.YU)(o,8)},cursor:"pointer",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{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,c.Qed)(a)})})})})})},Y=i(4892),J=i(8538),U=i(7458),X=i(2159),q=i(9537),K=i(173),$=(i(6125),i(7807));const G={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70"}};function Z(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height,f=t.title,w=t.showInProgressIcon;return(0,x.jsxs)(s.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{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),h(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:w?(0,R.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),v(),h(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function tt(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height;return(0,x.jsx)(s.az,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(a)?r:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),h(!0)},animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(a)?(0,c.KPq)(a):null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.KPq)(a),"\xa0"]})})})})}function et(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,x.jsx)(s.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.3*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function it(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,p=t.onCartIconClick;return(0,x.jsx)(s.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{p()},children:(0,c.DiI)(o)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var nt=function(t){var e,i,n,o,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,h=t.cartState,p=t.cartCount,v=t.onClickAtc,m=t.onCartIconClick;function g(){v()}const f=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==h?(0,x.jsx)(F.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(et,{baseFontSize:s,width:f,height:w})}):"init"==h?0==p?(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):c?(0,x.jsx)(F.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(it,{onClick:g,baseFontSize:s,cartCount:p,width:f,height:w,onCartIconClick:m})}):(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):(0,x.jsx)(Z,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:f,height:w,title:"awaitingVariantSelection"==h?null!==(l=null===G||void 0===G||null===(a=G[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:d})},ot=i(4533),rt=i(6387),lt=i(1745);const at=(0,u.Xd)("isInDesignMode"),dt=(0,u.Xd)("isDemoBrand");async function st(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,lt.RX)(t,e,n,l,a,d,r):(at||dt||(async()=>{(0,ot.Fu)(o,r,l,a,d)})(),(0,rt.It)(t,e,n))}function ct(t,e){return"shopify"==t?(0,lt.iL)(e):(0,rt.pV)(e)}var ut=i(852);var ht=function(t,e,i){const[o]=(0,u.QN)("whatmoreShopId"),[r]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),{closeClickComponent:v}=(0,n.useContext)(fi),{whatmoreUserInfo:x}=(0,n.useContext)(M.B),[m,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:m.cart_count}),"init"!=t&&"errored"!=t?(0,u.t2)("whatmoreAllowAutoSlide",!1):(0,u.t2)("whatmoreAllowAutoSlide",!0)}function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,n){const d=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(d,1,(0,c.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===x||void 0===x?void 0:x.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}(i,e,1),f("init",m.cart_count+1),(0,u.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.Xd)("whatmoreAddedToCart")&&(0,ut.H)(o,(()=>{}),100,window.location.hostname),(0,c.MPe)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[m,f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.M)(e,(0,c.NCy)(o),o).then((e=>{h.current=e.variants;const n=function(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}(e);s(n),function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)||i?!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},j,function(t){var e,i,n,r;const l=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,c.NCy)(o),a),compare_price:((0,c.NCy)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,c.m4S)(o)&&("go_to_cart_page"!==(0,c.m4S)(o)?"open_cart_slider"!==(0,c.m4S)(o)||null!==v&&v():ct((0,c.NCy)(o),o))}]},pt=i(7973);var vt=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",c=null!==(o=t.baseFontSize)&&void 0!==o?o:10,h=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",v=t.data,[m]=(0,u.QN)("whatmorePrimaryFont");function f(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[w,j]=(0,n.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,n.useEffect)((()=>{h(w)}),[w]),(0,x.jsx)(s.BJ,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,i)=>{var n;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.type))return;const o=e.every((e=>{var i,n,o,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(n=i.finalArr)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===o?void 0:o.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,x.jsxs)(s.BJ,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,x.jsx)(s.ov,{width:"100%",children:(0,x.jsx)(s.cG,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.EY,{as:"b",fontSize:1.2*c+"px",sx:{color:p+" !important",fontFamily:m+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,x.jsx)(s.so,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,u,h,p,f;return(0==i||(null===v||void 0===v||null===(r=v.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===w||void 0===w?void 0:w[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,x.jsxs)(s.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var i,n;j([w[0],t,null===v||void 0===v||null===(i=v.variants)||void 0===i||null===(n=i.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===n?void 0:n.option3])}else{var o,r,l,a,d,s;const e=null===v||void 0===v||null===(o=v.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;j([t,null===v||void 0===v||null===(l=v.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===v||void 0===v||null===(d=v.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===w[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,x.jsxs)(s.EY,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:m+" !important"},align:"center",paddingX:(y=e.option,y.length>=3?"0px":.5*c+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,x.jsx)(g._V,{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:o?"50%":"100%"},src:(0,pt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(u=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===u?void 0:u.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(f=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===f?void 0:f.optionsrc,"?width=400&height=400")})]});var y}))},i)]},i)}))})},xt=i(6594),mt=i(4833);var gt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmoreSecondaryColor"),w=(0,u.Xd)("whatmoreSecondaryColorShade900"),[j]=(0,u.QN)("whatmorePrimaryFont"),[y]=(0,u.QN)("whatmoreShopId"),[b,C,S,k]=(0,h.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,n.useContext)(M.B),[N,P,L,B,O,H,X]=ht(0,z,t.event),[q,K]=(0,n.useState)(null),[G,Z]=(0,n.useState)(parseFloat(z.price)),[tt,et]=(0,n.useState)(parseFloat(z.compare_price)),[it,ot]=(0,n.useState)(null===z||void 0===z?void 0:z.title),[rt,lt]=(0,n.useState)(z.currency),[at,dt]=(0,n.useState)(null),st=t.event,ct=t.productClickHandler,{whatmoreIsPreviewMode:ut}=(0,n.useContext)(M.B),[gt,ft]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,c.w4b)(y)&&(0,xt.ck)(z,(0,c.NCy)(y),y).then((t=>{E(t),Z(parseFloat(t.price)),et(parseFloat(t.compare_price)),lt(t.currency),jt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,p.M)(z,(0,c.NCy)(y),y);dt(l),Z("61916709004"==y&&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),et("61916709004"==y&&null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price),jt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=at?null===at||void 0===at||null===(t=at.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,n=-1!==i?null===at||void 0===at||null===(e=at.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===at||void 0===at||null===(r=at.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ft({position:i,finalArr:n,finalArrExternal:o})}),[at]);var yt=.68*k,bt=.55*yt,Ct=.4*yt,St=yt*(.55-.4),kt=yt+"px",It=Ct+"px",_t=St+"px",zt=.12*Ct;const Et=(0,c.XQu)(y);function Tt(){window.location.href=function(t){return(0,c.BLb)(y)?t.product_link+"?"+(0,c.VCz)(y)+"&"+(0,c.Spk)(y)+"&"+(0,c.$lz)(y):t.product_link}(z)}const At=A.landingLocationType,Ft=A.templateType,Nt=(0,mt.Wd)(At)+(0,mt.gf)(Ft)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(y),width:kt,height:"fit-content",boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==y?Tt():ct(e),_(!0)}(st,z)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(y)),animation:I?D.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(y),borderColor:(0,c.Fwt)(y)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:It,width:It,children:(0,x.jsx)(g._V,{width:It,height:It,src:(0,pt.b)(null!==(e=null!==(i=null===gt||void 0===gt||null===(o=gt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===gt||void 0===gt||null===(a=gt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(y)+" !important"}})}),(0,x.jsxs)(s.az,{height:It,width:yt-Ct+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(y)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*zt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"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","important"))},children:(0,J.v)(it,"prod-tile")}),(0,c.Nzx)(y)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-atc-price",direction:(0,c.vw2)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==T?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*zt*(0,c.rh$)(y)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.uoB)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,xt.Sb)(null!==G&&void 0!==G?G:null===z||void 0===z?void 0:z.price,"",y,rt)," \xa0"]}),(0,U.P)(G,tt)&&wt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*zt*(0,c.rh$)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.gld)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==tt&&void 0!==tt?tt:null===z||void 0===z?void 0:z.compare_price,"",y,rt)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.EY,{fontSize:.82*zt*(0,c.rh$)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.Br1)(y)+" !important"},children:ut?(0,c.p6A)(y):(0,c.i2h)(y)})]}),(0,c.UlM)(y)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==T?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.SK$)(y)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.EY,{color:"white",paddingX:"6px",fontSize:.8*zt+"px",children:"VIEW PRODUCT"})}):(0,x.jsx)(Y.A,{sx:{color:f,fontSize:1.3*zt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(F.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==N.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==N.state&&null!=L?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*bt+"px",marginBottom:.1*bt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:bt*Et+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:kt,height:"fit-content",event:st,product:z,finalArr:gt,data:at,productVariantOptions:L,baseFontSize:1.2*zt,onOptionSelected:t=>{!function(t){K(t);const e=H(t);e&&(Z(e.price),et(e.compare_price),e.title.includes(" ")&&ot(e.title))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.BJ,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:_t,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(nt,{baseFontSize:.3*St,setProductVariantTitle:ot,product:z,cartState:N.state,cartCount:N.cart_count,updateCartState:P,onClickAtc:t=>{"init"==N.state?(B(Nt),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:st,productList:[z],ctaList:st.cta})):"awaitingVariantSelection"==N.state&&(O(q,Nt),ot(null===z||void 0===z?void 0:z.title))},onCartIconClick:()=>{X()}})})]})},ft=i(2835);var wt=function(t){var e,i,n,o,r;const[a]=(0,u.QN)("isInDesignMode"),[d]=(0,u.QN)("isDemoBrand"),[h]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("whatmorePrimaryFont"),[v]=(0,u.QN)("whatmoreShopId"),[m]=(0,u.QN)("websiteLanguage"),g=t.event,f=t.product,w=null!==(e=t.baseFontSize)&&void 0!==e?e:10,j=null!==(i=t.width)&&void 0!==i?i:"fit-content",y=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,x.jsx)(s.N_,{href:f.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(g,f)},children:(0,x.jsx)(s.az,{width:j,height:y,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.4*w,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:h+" !important"},children:"MORE INFO"!=(0,c.KnH)(v)?(0,c.KnH)(v):null!==(o=null===G||void 0===G||null===(r=G[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,c.KnH)(v)})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(Y.A,{sx:{color:h,fontSize:1.4*w}})})]})})})},jt=i(9408);function yt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title;return(0,x.jsx)(s.az,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(r)?i:(0,c.Wc_)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var bt=function(t){var e,i,n;const[o]=(0,u.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,x.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Qed)(o)})};var Ct=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,v,m,f]=(0,h.A)(),[w,j]=(0,n.useState)(!1),[y,b]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(M.B),[S,k,I,_,z,E,T]=ht(0,y,t.event),[A,N]=(0,n.useState)(null),[P,L]=(0,n.useState)(parseFloat(y.price)),[B,O]=(0,n.useState)(parseFloat(y.compare_price)),[R,H]=(0,n.useState)(y.currency),[Y,X]=(0,n.useState)(!1),q=t.event,K=t.productClickHandler,$=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,G=C.landingLocationType,Z=C.templateType,tt=(0,mt.Wd)(G)+(0,mt.gf)(Z)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(a)&&(0,xt.ck)(y,(0,c.NCy)(a),a).then((t=>{b(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),H(t.currency)}));(async()=>{const t=await(0,p.M)(y,(0,c.NCy)(a),a);L(null===t||void 0===t?void 0:t.price),O(null===t||void 0===t?void 0:t.compare_at_price),X(!0)})()}),[]);var et=f*$,it=.3*et,ot=et+"px",rt=.7*it,lt=.9*rt,at=.12*it;const dt=(0,c.XQu)(a);function st(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),j(!0)}return(0,x.jsx)(s.BJ,{direction:"row",width:ot,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.az,{marginTop:W,marginBottom:(0,c.qw1)(a),width:ot,onClick:t=>{},animation:w?D.jd:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{st(q,y)},children:[(0,x.jsx)(s.az,{height:rt+"px",width:rt+"px",children:(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.az,{height:lt+"px",width:lt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g._V,{width:lt+"px",height:lt+"px",src:y.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.az,{height:rt+"px",width:et-rt+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*at+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,J.v)(y.title.toString())}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.Nzx)(a)?(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[Y&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:1*at+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,xt.Sb)(null!==P&&void 0!==P?P:null===y||void 0===y?void 0:y.price,"",a,R)," \xa0"]}),(0,x.jsx)(s.ov,{children:(0,U.P)(y.price,y.compare_price)&&Y?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.8*at+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==B&&void 0!==B?B:null===y||void 0===y?void 0:y.compare_price,"",a,R)]}):(0,x.jsx)(x.Fragment,{})})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(ft.A,{storeId:a,productId:y.client_product_id,productLink:y.product_link,fontSize:1*at,fontColor:"white"})})]})]})})]}),(0,x.jsx)(F.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=I?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*it+"px",marginBottom:.1*it+"px",overflowY:"auto",overflowX:"hidden",maxHeight:it*dt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:ot,height:"fit-content",event:q,product:y,productVariantOptions:I,baseFontSize:1*at,onOptionSelected:t=>{!function(t){N(t);const e=E(t);e&&(L(e.price),O(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.az,{width:"100%",height:"100%",children:(0,x.jsx)(wt,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%"})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.ZzM)(a)?(0,x.jsx)(bt,{baseFontSize:.8*at,event:q,product:y,borderRadius:"md",onShopNowClick:t=>{st(q,y)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c.nWM)(a)?(0,x.jsx)(jt.default,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(nt,{baseFontSize:.8*at,event:q,product:y,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(_(tt),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:q,productList:[y],ctaList:q.cta})):"awaitingVariantSelection"==S.state&&z(A,tt)},onCartIconClick:()=>{T()}})})})]})]})})})};var St=function(t){var e,i,o,r,a,d,v,m,f,w;const[j]=(0,u.QN)("isInDesignMode"),[y]=(0,u.QN)("isDemoBrand"),[b]=(0,u.QN)("whatmoreSecondaryColor"),C=(0,u.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,u.QN)("whatmorePrimaryFont"),[k]=(0,u.QN)("whatmoreShopId"),[I,_,z,E]=(0,h.A)(),[T,A]=(0,n.useState)(!1),[F,N]=(0,n.useState)(t.product),P=(0,u.Xd)("whatmoreUITheme"),[L,B]=(0,n.useState)(!1),[O,H]=(0,n.useState)(parseFloat(F.price)),[X,q]=(0,n.useState)(parseFloat(F.compare_price)),[K,$]=(0,n.useState)(F.currency),G=t.event,[Z,tt]=(0,n.useState)();(0,n.useEffect)((()=>{(0,c.w4b)(k)&&(0,xt.ck)(F,(0,c.NCy)(k),k).then((t=>{N(t),H(parseFloat(t.price)),q(parseFloat(t.compare_price)),$(t.currency),B(!0)}));(async()=>{const t=await(0,p.M)(F,(0,c.NCy)(k),k);tt(t),B(!0)})()}),[]);var et=.68*E,it=.4*et,nt=et+"px",ot=it+"px",rt=et*(.55-.4)+"px",lt=.12*it;(0,c.XQu)(k);const{whatmoreWidgetSourceDetails:at}=(0,n.useContext)(M.B);function dt(t){return(0,c.BLb)(k)?t.product_link+"?"+(0,c.VCz)(k)+"&"+(0,c.Spk)(k)+"&"+(0,c.$lz)(k):t.product_link}function st(t,e){j||y||(async()=>{(0,l.Pb)(t,e),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:at,event:t,productList:[e],ctaList:t.cta})})(),A(!0)}return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(k),width:nt,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{st(G,F),window.location.href=dt(F)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(k)),animation:T?D.jd:null,borderRadius:"round"==P?"xl":null,overflow:"hidden",onAnimationEnd:()=>{A(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(k),borderColor:(0,c.Fwt)(k)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:ot,width:ot,children:(0,x.jsx)(g._V,{width:ot,height:ot,src:(0,pt.b)(F.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(k)+" !important"}})}),(0,x.jsxs)(s.az,{height:ot,width:et-it+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.jsx)(s.EY,{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:S+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*lt+"px !important"},children:(0,J.v)(null==F.title?"":F.title.toString(),"prod-tile")}),(0,c.Nzx)(k)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-shopnow-price",direction:(0,c.vw2)(k)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[L&&(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.uoB)(k)+" !important",margin:"0px !important"},children:[" "+(0,xt.Sb)(parseFloat("77948879170"===k?(null===Z||void 0===Z?void 0:Z.price)>0?null===Z||void 0===Z?void 0:Z.price:(null===Z||void 0===Z||null===(e=Z.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===G||void 0===G||null===(o=G.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===G||void 0===G||null===(a=G.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===G||void 0===G||null===(v=G.products)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.price_max):null!==(f=null===Z||void 0===Z?void 0:Z.price)&&void 0!==f?f:O),"",k,K)," \xa0"]}),(0,U.P)(O,X)&&L?(0,x.jsxs)(s.EY,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.gld)(k)+" !important",margin:"0px !important"},children:[" ",(0,xt.Sb)(null!==(w=null===Z||void 0===Z?void 0:Z.compare_at_price)&&void 0!==w?w:X,"",k,K)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.rsz)(k)&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*lt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.ogW)(k)+" !important",color:(0,c._zx)(k)+" !important",margin:"0px !important"},children:["\xa0",(0,c.rsz)(k)," \xa0"]})]}),(0,c.UlM)(k)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:C,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(Y.A,{sx:{color:b,fontSize:1.3*lt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.Woi)(k)&&(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:rt,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(bt,{baseFontSize:.8*lt,event:G,product:F,borderRadius:"md",onShopNowClick:t=>{st(G,F),window.location.href=dt(F)}})})]})};function kt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,p=t.width,v=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,x.jsx)(It,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:v}):(0,x.jsxs)(s.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:g?(0,R.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function It(t){const[e]=(0,u.QN)("whatmoreSecondaryColor"),[i]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,x.jsx)(s.BJ,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,x.jsx)(s.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?D.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.Hfu)(o)} !important`},children:(0,c.KPq)(o)})})})})})}function _t(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,x.jsx)(s.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,x.jsx)(s.BJ,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.2*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function zt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,x.jsx)(s.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,x.jsxs)(s.BJ,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}}):(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Et=function(t){var e,i,n,o;const[r]=(0,u.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(F.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,x.jsx)(_t,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(F.s1,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,x.jsx)(zt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(kt,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Tt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmorePrimaryFont"),[w]=(0,u.QN)("whatmoreShopId"),[j,y,b,C]=(0,h.A)(),[S,k]=(0,n.useState)(!1),[I,_]=(0,n.useState)(t.product),z=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E}=(0,n.useContext)(M.B),[T,A,F,N,P,L,B]=ht(0,I,t.event),[O,H]=(0,n.useState)(null),[Y,X]=(0,n.useState)(parseFloat(I.price)),[q,K]=(0,n.useState)(parseFloat(I.compare_price)),[$,G]=(0,n.useState)(I.currency),[Z,tt]=(0,n.useState)(null),et=t.event,it=t.productClickHandler,[nt,ot]=(0,n.useState)(null),[rt,lt]=(0,n.useState)(!1),at=E.landingLocationType,dt=E.templateType,st=(0,mt.Wd)(at)+(0,mt.gf)(dt)+"_"+(null===et||void 0===et?void 0:et.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(w)&&(0,xt.ck)(I,(0,c.NCy)(w),w).then((t=>{_(t),X(parseFloat(t.price)),K(parseFloat(t.compare_price)),G(t.currency),lt(!0)}));(async()=>{const t=await(0,p.M)(I,(0,c.NCy)(w),w);tt(t),X(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),lt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=Z?null===Z||void 0===Z||null===(t=Z.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,n=-1!==i?null===Z||void 0===Z||null===(e=Z.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===Z||void 0===Z||null===(r=Z.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ot({position:i,finalArr:n,finalArrExternal:o})}),[Z]);var ct=.72*C,ut=.37*ct,vt=ct*(.48-.37),gt=.95*ct+"px",ft=ut+"px",wt=.12*ut;function jt(){window.location.href=function(t){return(0,c.BLb)(w)?t.product_link+"?"+(0,c.VCz)(w)+"&"+(0,c.Spk)(w)+"&"+(0,c.$lz)(w):t.product_link}(I)}return(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:"24px",width:gt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?jt():it(e),k(!0)}(et,I)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(w)),animation:S?D.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{k(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(w),borderColor:(0,c.Fwt)(w)},children:(0,x.jsxs)(s.BJ,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,x.jsx)(s.az,{height:ft,width:ft,children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:(0,pt.b)(null!==(e=null!==(i=null===nt||void 0===nt||null===(o=nt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===nt||void 0===nt||null===(a=nt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:I.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(w)+" !important"}})}),(0,x.jsx)(s.az,{height:ft,width:ct-ut+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,x.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",f,"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,J.v)(null==I.title?"":I.title.toString())}),(0,c.Nzx)(w)?(0,x.jsxs)(s.BJ,{direction:(0,c.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[rt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,xt.Sb)(null!==Y&&void 0!==Y?Y:null===I||void 0===I?void 0:I.price,"",w,$)," \xa0"]}),(0,U.P)(Y,q)&&rt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==q&&void 0!==q?q:null===I||void 0===I?void 0:I.compare_price,"",w,$)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(Et,{baseFontSize:.3*vt,event:et,product:I,cartState:T.state,cartCount:T.cart_count,updateCartState:A,onClickAtc:t=>{"init"===T.state?(N(st,!0),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:E,event:et,productList:[I],ctaList:et.cta})):"awaitingVariantSelection"===T.state&&it(I)},onCartIconClick:t=>{B()}})]})})]})})};var At=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i]=(0,u.QN)("isWhatmoreWebsite"),n=(0,c.Vpi)(e),o=t.event,r=t.product;return i?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,x.jsx)(Tt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,x.jsx)(H,{product:t.product,event:t.event}):"narrow-tile"==n?(0,x.jsx)(Ct,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,x.jsx)(x.Fragment,{})},Ft=i(1079),Nt=i(7802),Pt=i(2979);var Lt=function(t){const[e,i,n,l]=(0,h.A)(),[a]=(0,u.QN)("whatmoreShopId"),d=(0,u.Xd)("isInDesignMode"),p=(0,u.Xd)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.Vpi)(a);if(!(0,Nt.Z_)(v))return(0,x.jsx)(x.Fragment,{});if(1==v.products.length&&(void 0==v.cta||0==v.cta.length)){const t=v.products[0];return(0,c.uJl)(a)?(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,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,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(Ct,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"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,x.jsx)(s.ov,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(At,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.ov,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.az,{width:l+"px",backgroundImage:"narrow-tile"==g?"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,x.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.TYM)(a)?0:1,centeredSlides:!(0,c.TYM)(a),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[v.products[0]]:v.products).map((t=>"oos"!=t.product_status&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(At,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.Woi)(a)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,x.jsx)(Ft.A,{fontFactor:.75,cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Bt=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(fi).isIOS&&e?(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id):(0,x.jsx)(F.Jt,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id)})};function Ot(t){const e=t.event,[i,n,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont");return(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.EY,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,x.jsx)(T.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Dt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o,r]=(0,u.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,j.A)(),[d,h]=(0,u.QN)("isFirstIndicatorRenderDone"),p=(0,n.useContext)(fi),[v]=(0,u.QN)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,b=t.productClickHandler;return(0,x.jsx)(s.az,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Ot,{event:m}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(y,{focusRef:w}),(0,x.jsx)(A.A,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.az,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.az,{width:"full",margin:"2px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(B,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.az,{width:"full",children:[(0,c.ek9)(v)?(0,x.jsx)(s.az,{w:"100%",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(E,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.az,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Bt,{event:m,productClickHandler:b})})]}):(0,x.jsx)("div",{})]})]})})},Rt=i(7642);function Wt(t){const[e,i,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p]=(0,n.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===v||void 0===v?void 0:v.id}&title=${null===v||void 0===v?void 0:v.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,n,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${C.i7`
|
69
|
-
0% {
|
70
|
-
transform: translateY(100%);
|
71
|
-
}
|
72
|
-
`} 0.5s`;return(0,x.jsx)(s.BJ,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,x.jsxs)(s.az,{width:"100%",height:"100%",children:[(0,x.jsx)(g._V,{width:"100%",height:"auto",src:(0,c.JAc)(a)?d:(0,c.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,x.jsx)(s.BJ,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,x.jsx)(Rt.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*f,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Qt=i(4259),Vt=i(8203);function Mt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,lt.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,x.jsx)(x.Fragment,{}):(0,x.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,x.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,x.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,x.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,x.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,x.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,x.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,x.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Ht(t){const e=t.product;return(0,x.jsx)(Mt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}function Yt(t){var e,i,o,r,a,d,h,p;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[g]=(0,u.QN)("whatmoreShopId"),[f]=(0,u.QN)("whatmorePrimaryFont"),[w]=(0,u.QN)("whatmoreSecondaryColor"),[j]=(0,u.QN)("websiteLanguage"),y=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:b,whatmoreUserInfo:C}=(0,n.useContext)(M.B),[S,I]=(0,n.useState)(!1),{closeClickComponent:_}=(0,n.useContext)(fi),[z,E]=(0,n.useState)(!1),T=t.FONT_SIZE,A=t.data,F=t.event,N=t.selectedVariantId,P=t.product,L=t.itemQuantity,B=t.PRODUCT_TILE_WIDTH,O=t.cartItemCount,D=t.addToCartFlag,R=t.setAddToCartFlag,W=t.soldOutFlag,H=t.setSoldOutFlag,Y=b.landingLocationType,J=b.templateType,U=(0,mt.Wd)(Y)+(0,mt.gf)(J)+(null!==F&&void 0!==F&&F.isRelatedEvent?"R":"E")+"_"+(null===F||void 0===F?void 0:F.event_id);const X=t=>{var e,i;(function(t,e){v||m||(async()=>{(0,l.TJ)(t,e)})()}(F,P),"buy-now"==t)&&(!function(t,e,i,n,o,r,l){"shopify"==i?(0,lt.oV)(t,e,n,o,r,l):(0,rt.fL)(t,e,n)}(void 0!==N?N:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id,L,(0,c.NCy)(g),g,U,null===F||void 0===F?void 0:F.location,null===C||void 0===C?void 0:C.userType),(0,Q.kz)({userInteractionType:V.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:b,event:F,productList:[P],ctaList:F.cta}));"view-more"==t&&((0,c.BLb)(g)?window.location.href=P.product_link+"?"+(0,c.VCz)(g)+"&"+(0,c.Spk)(g)+"&"+(0,c.$lz)(g)+((0,c.N0t)(g)?"¤cy="+P.currency:""):window.location.href=P.product_link+((0,c.N0t)(g)?"?currency="+P.currency:""))};return(0,x.jsxs)(s.BJ,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.2) 0px 4px 6px -2px",position:t.position,bg:"27951333450"==g?"#fff":"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*T,children:[" ",W?(0,x.jsx)($.$n,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*T,disabled:!0,sx:{borderRadius:"round"==y?"5px":"0px",borderWidth:(0,c.YcK)(g),borderColor:(0,c.Fwt)(g)},children:(0,x.jsx)(s.EY,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:f+" !important"},children:"Sold Out"})}):(0,x.jsxs)(s.BJ,{direction:"vertical"==(0,c.z00)(g)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*T,justifyContent:"center",children:[(0,c.gvj)(g)?(0,x.jsx)($.$n,{width:"fit-content",height:2.5*T,onClick:async t=>{var e,i;t.stopPropagation(),I(!0),function(t,e,i){v||m||(async()=>{(0,l.tO)(t,e,i)})()}(F,P,L),(0,Q.kz)({userInteractionType:V.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:b,event:F,productList:[P],ctaList:F.cta});const n=null!==N&&void 0!==N?N:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void I(!1);st(n,L,(0,c.NCy)(g),g,F,P,U,null===F||void 0===F?void 0:F.location,null===C||void 0===C?void 0:C.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(I(!1),R(!0),(0,u.t2)("whatmoreAddedToCart",!0),(0,c.rEM)(g)&&(v||(async()=>{await(0,lt.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{I(!1),H(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,c.Wc_)(g)?w+" !important":(0,c.Wc_)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.D3T)(g),borderColor:"#343434"===(0,c.Wc_)(g)?w:(0,c.Wc_)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,c.D3T)(g),borderColor:"#343434"===(0,c.IQN)(g)?w:(0,c.IQN)(g)}},children:S?(0,x.jsx)(Qt.y,{display:"flex !important",color:"white"}):(0,x.jsx)(s.EY,{fontWeight:"extrabold !important",sx:{color:(0,c.Hfu)(g)+" !important",fontFamily:f+" !important"},fontSize:T+"px !important",children:"ADD TO CART"!=(0,c.KPq)(g)?(0,c.KPq)(g):null!==(e=null===G||void 0===G||null===(i=G[j])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,c.KPq)(g)})}):(0,x.jsx)(x.Fragment,{}),(0,c.oB_)(g)?(0,x.jsx)(x.Fragment,{children:(0,c.pbJ)(g)?(0,x.jsx)(Ht,{variantId:void 0!==N?N:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:P,height:2.5*T,width:"90%",fontSize:T,fontFamily:f}):(0,x.jsx)(x.Fragment,{children:(0,c.naM)(g)?(0,x.jsx)($.$n,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*T,onClick:()=>X("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,c.FHj)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.YcK)(g),borderColor:(0,c.Fwt)(g)},children:(0,x.jsx)(s.EY,{fontWeight:"extrabold",sx:{color:"#343434"===(0,c.a7e)(g)?w+" !important":(0,c.a7e)(g)+" !important",fontFamily:f+" !important"},fontSize:T,children:"MORE INFO"!=(0,c.KnH)(g)?(0,c.KnH)(g):null!==(a=null===G||void 0===G||null===(d=G[j])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,c.KnH)(g)})}):(0,x.jsx)($.$n,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*T,onClick:t=>{X("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,c.FHj)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.D3T)(g),borderColor:"#343434"===(0,c.IQN)(g)?w:(0,c.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,x.jsx)(s.EY,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,c.a7e)(g)?w+" !important":(0,c.a7e)(g)+" !important",fontFamily:f+" !important"},fontSize:T+"px !important",children:"BUY NOW"!=(0,c.GX0)(g)?(0,c.GX0)(g):null!==(h=null===G||void 0===G||null===(p=G[j])||void 0===p?void 0:p.buy_now)&&void 0!==h?h:(0,c.GX0)(g)})})})}):(0,x.jsx)(x.Fragment,{})]}),(0,x.jsx)(x.Fragment,{children:(0,c.gvj)(g)?(0,x.jsx)(x.Fragment,{children:z?(0,x.jsx)(s.so,{width:"10%",spacing:"0",right:0,children:(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(Vt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*T}})})}):(0,x.jsxs)(s.so,{animation:D?k:"none",onAnimationEnd:()=>R(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,c.m4S)(g)&&("go_to_cart_page"!==(0,c.m4S)(g)?(E(!0),function(t){"open_cart_slider"!==(0,c.m4S)(t)||null!==_&&_()}(g)):ct((0,c.NCy)(g),g))},cursor:"pointer",children:[(0,x.jsx)(q.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*T}}),O>0?(0,x.jsx)(s.jl,{padding:"2px",bg:"white",size:1.1*T,top:.03*-B,verticalAlign:"top",position:"relative",left:.11*-B,zIndex:"1",children:(0,x.jsx)(s.EY,{sx:{color:"black !important",fontFamily:f+" !important"},fontWeight:"bold !important",fontSize:.7*T+"px !important",children:O})}):(0,x.jsx)(x.Fragment,{})]})}):(0,x.jsx)(x.Fragment,{})})]})}function Jt(t){const[e]=(0,u.QN)("whatmorePrimaryFont"),i=((0,u.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,x.jsxs)(s.so,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,x.jsx)(s.so,{width:"10%",display:"flex !important"}),(0,x.jsx)(s.so,{width:"90%",justifyContent:"center",children:(0,x.jsx)(s.EY,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black !important",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,x.jsx)(s.so,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,x.jsx)(Rt.A,{sx:{boxShadow:3,color:"black !important",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function Ut(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=((0,u.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,x.jsxs)(s.BJ,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,x.jsx)(s.BJ,{children:(0,x.jsx)(s.EY,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black !important",fontFamily:i+" !important"},children:"Description"})}),(0,x.jsx)(s.BJ,{children:(0,x.jsx)(s.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,x.jsx)(s.EY,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})})]});var r}const Xt=t=>{let{iconSize:e}=t;return(0,x.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,x.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,x.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,x.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"})]})})};function qt(t){var e;const[i,o]=(0,n.useState)(t.product),[r]=(0,u.QN)("whatmorePrimaryFont"),[l]=(0,u.QN)("whatmoreShopId"),[a]=(0,u.QN)("whatmoreSecondaryColor");(0,n.useEffect)((()=>{(0,c.w4b)(l)&&(0,xt.ck)(i,(0,c.NCy)(l),l).then((t=>{o(t)}))}),[]);const d=t.FONT_SIZE,h=t.data,p=t.itemPrice;let v,m,g;var f,w,j;"STRDOIDF6O7"==l&&(v=null===h||void 0===h||null===(f=h.variants)||void 0===f?void 0:f.find((e=>e.id==t.selectedVariantId)),m=null===(w=v)||void 0===w?void 0:w.title,g=null===(j=v)||void 0===j?void 0:j.productLink);const y=(e=>{const i=null===h||void 0===h||null===(e=h.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})(),b=y&&0!=y&&y>p?Math.round((y-p)/y*100):NaN;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(s.so,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,x.jsx)(s.N_,{href:function(t){return(0,c.BLb)(l)?("STRDOIDF6O7"==l?g:t.product_link)+"?"+(0,c.VCz)(l)+"&"+(0,c.Spk)(l)+"&"+(0,c.$lz)(l)+((0,c.N0t)(l)?"¤cy="+t.currency:""):("STRDOIDF6O7"==l?g:t.product_link)+((0,c.N0t)(l)?"?currency="+t.currency:"")}(i),color:"white",width:"fit-content",children:(0,x.jsxs)(s.so,{sx:{display:"flex",gap:"6px"},children:[(0,x.jsx)(s.EY,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:d,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:r+" !important"},as:"b",children:"STRDOIDF6O7"==l&&null!==(e=m)&&void 0!==e?e:null===h||void 0===h?void 0:h.title}),(0,x.jsx)(Xt,{iconSize:1.1*d})]})}),(0,x.jsxs)(s.so,{direction:"row",gap:"6px",paddingTop:"4px",children:[y&&y>p&&(0,x.jsx)(s.EY,{as:"s",padding:"2px",fontSize:1.2*d,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:r+" !important"},children:(0,xt.Sb)(parseFloat(y)," ",l,i.currency,!0)}),(0,x.jsx)(s.EY,{as:"b",padding:"2px",fontSize:1.2*d,fontWeight:"semibold !important",sx:{color:"black !important",fontFamily:r+" !important"},children:(0,xt.Sb)(parseFloat(p),"",l,i.currency,!0)}),!isNaN(b)&&0!=b&&(0,x.jsx)(s.az,{display:"flex",backgroundColor:"green"==(0,c.ub$)(l)?"#343434"==a?(0,c.ub$)(l):a:(0,c.ub$)(l),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,x.jsx)(s.EY,{fontSize:(0,c.mOK)(l)?"14px !important":1.1*d,fontWeight:"normal !important",sx:{color:(0,c.BRY)(l)+" !important",fontFamily:r+" !important"},children:(0,c.mOK)(l)?`${b}% off`:`Save ${(0,xt.Sb)(parseFloat(y/100-p/100)," ",l,i.currency)}`})})]})]})})}function Kt(t){var e,i;const[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(ie),[a,d]=(0,n.useState)({}),h=(0,u.Xd)("whatmoreSecondaryColorShade300"),p=t.setSelectedColor,v=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,f=t.selectOptionThirdHandler,w=t.isVariantAvailable,j=t.FONT_SIZE,y=t.data,b=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===y||void 0===y||null===(n=y.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.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 n,o;const i=null===y||void 0===y||null===(n=y.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===y||void 0===y||null===(o=y.options)||void 0===o||null===(r=o[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,n.useEffect)((()=>{d((t=>{var e,i,n,o,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===(n=y.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.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,n;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.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,n;return(null===y||void 0===y||null===(e=y.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.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,x.jsx)(s.so,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===y||void 0===y||null===(e=y.options)||void 0===e?void 0:e.length)>0&&(0,x.jsx)(s.so,{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 n,d,u,C,S,k;return(0,x.jsx)(x.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.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===(u=e.values)||void 0===u?void 0:u.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===(C=y.options)||void 0===C?void 0:C.length))&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(s.so,{justifyContent:"space-between",alignItems:"center",children:[(0,x.jsx)(s.EY,{fontSize:1*j+"px !important",sx:{color:"black !important",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,c.u1b)(r)?(0,x.jsx)(s.so,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,x.jsx)(s.EY,{fontSize:.7*j,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,c.A5I)(r)})}):(0,x.jsx)(x.Fragment,{})]}),(0,x.jsx)(s.zt,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(S=e.values)||void 0===S?void 0:S.map((n=>{var l,d,u,C,S,k,I,_,z;const E=w(n,i),T=0==i||y.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&e.name.toLowerCase().includes("color"))&&T&&((null===t||void 0===t||null===(l=t.finalArr)||void 0===l?void 0:l.length)>0&&(null===t||void 0===t||null===(d=t.finalArr)||void 0===d||!d.includes(null))||(null===t||void 0===t||null===(u=t.finalArrExternal)||void 0===u?void 0:u.length)>0)?(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s.so,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,x.jsx)(s.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,c.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,c.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{b(null===e||void 0===e?void 0:e.name,n,i),p(n),0===i&&v(n),1===i&&m(n),2===i&&f(n)},children:(0,x.jsx)(g._V,{padding:"2px",borderRadius:(0,c.tM2)(r),width:"58px",height:"58px",src:(0,pt.b)(null!==(C=null===t||void 0===t||null===(S=t.finalArr)||void 0===S||null===(k=S.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===k?void 0:k.src)&&void 0!==C?C:null===t||void 0===t||null===(I=t.finalArrExternal)||void 0===I||null===(_=I.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===_?void 0:_.optionsrc,"?width=400&height=400")})})},n)}):T&&(0,x.jsx)(s.so,{paddingBottom:"8px",paddingRight:"8px",children:(0,x.jsx)($.$n,{isDisabled:!E,size:"sm",px:"8px !important",bg:a[null===e||void 0===e?void 0:e.name]===n&&E?(null!==(z=(0,c.j2L)(r))&&void 0!==z?z:h)+" !important":(0,c.R25)(r)+" !important",width:"fit-content !important",onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(b(null===e||void 0===e?void 0:e.name,n,i),0===i&&v(n),1===i&&m(n),2===i&&f(n)):window.location.href=t.product.product_link},children:(0,x.jsx)(s.EY,{as:E?"p":"s",textDecoration:E?"none":"line-through",fontSize:.9*j+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&E?(0,c.L7T)(r)+" !important":(0,c.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===y||void 0===y||null===(k=y.options)||void 0===k?void 0:k.length)-1&&(0,x.jsx)(s.ov,{paddingTop:"8px",width:"100%",children:(0,x.jsx)(s.cG,{color:t.dividerColor,size:"xs"})})]})})}))})})}var $t=i(8385);function Gt(t){var e,i,o,r,l,a,d,p,v,m,f,w,j,y,b,S,k,I,_,z,E;const[T,A,F,N]=(0,h.A)();var P=.4*N*.8,L=P*(16/9)*.6*.8;const B=1.1*P,D=B*(16/9)*.8;var R=.12*P;const[W,Q]=(0,n.useState)(!1),V=t.data,M=t.event,H=t.product,Y=t.setOpenShopNow,J=t.setLockSwiper,[U,X]=(0,n.useState)({});(0,n.useEffect)((()=>{X((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===V||void 0===V||null===(e=V.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===V||void 0===V||null===(n=V.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===V||void 0===V||null===(e=V.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===V||void 0===V||null===(r=V.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===V||void 0===V||null===(a=V.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===V||void 0===V||null===(e=V.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.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===V||void 0===V||null===(s=V.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===V||void 0===V||null===(u=V.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===V||void 0===V||null===(e=V.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.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 q=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===V||void 0===V||null===(i=V.options)||void 0===i||!i.length)return!1;const h=null===V||void 0===V||null===(n=V.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===V||void 0===V||null===(r=V.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===V||void 0===V||null===(a=V.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===V||void 0===V||null===(s=V.options)||void 0===s?void 0:s.length){case 1:return null===V||void 0===V||null===(c=V.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===V||void 0===V||null===(v=V.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===V||void 0===V||null===(u=V.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===U[h]&&e.available));case 3:var x,m,g;if(0===e)return null===V||void 0===V||null===(x=V.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===V||void 0===V||null===(m=V.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===U[h]&&e.available));if(2===e)return null===V||void 0===V||null===(g=V.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===U[h]&&e.option2===U[p]&&e.available));default:return!1}},[K,$]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===V||void 0===V||null===(i=V.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===V||void 0===V||null===(n=V.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&q(t,0))return t}return(null===V||void 0===V||null===(t=V.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===V||void 0===V||null===(i=V.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===V||void 0===V||null===(n=V.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&q(t,1))return t}return(null===V||void 0===V||null===(t=V.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[tt,et]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===V||void 0===V||null===(i=V.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===V||void 0===V||null===(n=V.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&q(t,2))return t}return(null===V||void 0===V||null===(t=V.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[it,nt]=(0,n.useState)(),[ot,at]=(0,n.useState)(1),[dt,st]=(0,n.useState)(),[ct,ut]=(0,n.useState)(0),[ht,vt]=(0,n.useState)(!1),[xt,mt]=(0,n.useState)(!1),[gt,ft]=(0,n.useState)(H.thumbnail_image),wt=(0,u.Xd)("whatmoreUITheme"),jt=(0,u.Xd)("whatmoreShopId"),yt=(0,n.useCallback)((t=>{$(t)}),[]),bt=(0,n.useCallback)((t=>{Z(t)}),[]),Ct=(0,n.useCallback)((t=>{et(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=Zt(V,K,G,tt);nt(null!==i&&void 0!==i?i:null===V||void 0===V||null===(t=V.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),st(te(V,i)),at(1),mt(!1);const n=ee(V,i);null!==n&&ft(n)}),[K,G,tt]),(0,n.useEffect)((()=>{var t,e;const i=void 0===it?null===V||void 0===V||null===(t=V.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:te(V,it);st(i*ot)}),[ot]),(0,n.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),J(!1))}function e(t){t.stopPropagation(),i.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),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,lt.Lt)():(0,rt.Ii)(e)}((0,c.NCy)(jt),jt);t.then((t=>t.json())).then((t=>{ut(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[ht]);const St=`${C.i7`
|
73
|
-
0% {
|
74
|
-
transform: translateY(100%);
|
75
|
-
}
|
76
|
-
`} 0.5s`,kt=null===V||void 0===V||null===(e=V.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"))})),[It,_t]=(0,n.useState)(-1!==kt?null===(i=V.options)||void 0===i||null===(o=i[kt])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[zt,Et]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==kt&&"whatmore"!==(0,c.NCy)(jt)&&async function(){const t=await(0,lt._N)(H);Et(t)}()}),[]);let Tt=-1,At=-1!==kt&&null!==zt&&void 0!==zt&&zt.product&&(null===zt||void 0===zt||null===(l=zt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===zt||void 0===zt||null===(d=zt.product)||void 0===d||null===(p=d.options)||void 0===p||null===(v=p[kt])||void 0===v||null===(m=v.values)||void 0===m?void 0:m.length)?null===zt||void 0===zt||null===(f=zt.product)||void 0===f||null===(w=f.images)||void 0===w?void 0:w.map((t=>{var e,i,n,o,r,l,a,d,s,c,u,h,p,v;const x=null===zt||void 0===zt||null===(e=zt.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===zt||void 0===zt||null===(n=zt.product)||void 0===n||null===(o=n.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Tt,(null===zt||void 0===zt||null===(a=zt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[kt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===zt||void 0===zt||null===(u=zt.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,Tt)],src:null===t||void 0===t?void 0:t.src}})):[],Ft=[];if("whatmore"==(0,c.NCy)(jt)&&(null===V||void 0===V||null===(j=V.images)||void 0===j?void 0:j.length)>0){var Nt;var Pt;if(-1!==(null===V||void 0===V||null===(Nt=V.options)||void 0===Nt?void 0:Nt.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"))}))))Ft=null===V||void 0===V||null===(Pt=V.images)||void 0===Pt?void 0:Pt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Tt+1<(null===zt||void 0===zt||null===(y=zt.product)||void 0===y||null===(b=y.options)||void 0===b||null===(S=b[kt])||void 0===S||null===(k=S.values)||void 0===k?void 0:k.length)&&(At=[]),(0,x.jsxs)(s.so,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===wt||void 0===wt?void 0:wt.whatmoreUITheme)?"xl":null,animation:St,children:[(0,x.jsx)(Jt,{setOpenShopNow:Y,setLockSwiper:J,FONT_SIZE:R}),(0,x.jsx)(s.ov,{marginBottom:"10px",px:"20px",py:"5px",children:(0,x.jsx)(s.so,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===wt||void 0===wt?void 0:wt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,c.YcK)(jt),borderColor:(0,c.Fwt)(jt)},children:(0,x.jsx)(s.so,{width:"100%",children:(0,x.jsx)($t.c,{renderElement:t=>(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s.az,{width:B+"px",height:D+"px",children:(0,x.jsx)(g._V,{width:B+"px",height:D+"px",borderRadius:"round"==(null===wt||void 0===wt?void 0:wt.whatmoreUITheme)?"lg":null,src:(0,pt.b)(t.eventData.src,"&width=400&height=400"),alt:H.handle,sx:{objectFit:(0,c.KZe)(jt)+" !important"},fallback:(0,x.jsx)(O.A,{width:B+"px",height:D+"px",borderRadius:"round"==(null===wt||void 0===wt?void 0:wt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:At.length>0&&!At.includes(null)?null===(I=At)||void 0===I?void 0:I.filter((t=>(null===t||void 0===t?void 0:t.color)==It)):Ft.length>0?[null===(_=Ft)||void 0===_?void 0:_.find((t=>(null===t||void 0===t?void 0:t.color)==It))]:null===V||void 0===V||null===(z=V.images)||void 0===z?void 0:z.map((t=>({src:t.includes("https")?t:"https:"+t}))),spacing:10,defaultHeight:B+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,x.jsx)(qt,{data:V,product:H,PRODUCT_TILE_HEIGHT:L,PRODUCT_TILE_WIDTH:P,FONT_SIZE:R,getVariantPrice:te,selectedVariantId:it,itemPrice:dt,itemQuantity:ot,setItemQuantity:at,thumbnailImage:gt}),(null===V||void 0===V||null===(E=V.variants)||void 0===E?void 0:E.length)>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.ov,{paddingTop:"4px",width:"100%",children:(0,x.jsx)(s.cG,{color:(0,c.R6d)(jt),size:"xs",width:"90%"})}),(0,x.jsx)(Kt,{data:V,dividerColor:(0,c.R6d)(jt),setSelectedColor:_t,finalArr:At,finalArrExternal:Ft,product:H,PRODUCT_TILE_HEIGHT:L,PRODUCT_TILE_WIDTH:P,FONT_SIZE:R,selectOptionFirstHandler:yt,selectOptionSecondHandler:bt,selectOptionThirdHandler:Ct,getVariantPrice:te,selectedOptionFirst:K,selectedOptionSecond:G,selectedOptionThird:tt,selectedVariantId:it,isVariantAvailable:q})]}),c.wW8&&((null===V||void 0===V?void 0:V.description)||(null===V||void 0===V?void 0:V.body_html))&&(0,x.jsx)(Ut,{PRODUCT_TILE_HEIGHT:L,FONT_SIZE:R,data:V,handleToggle:()=>Q(!W),show:W}),(0,x.jsx)(s.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,x.jsx)(Yt,{position:"relative",data:V,FONT_SIZE:R,product:H})}),(0,x.jsx)(Yt,{position:"fixed",selectedVariantId:it,data:V,FONT_SIZE:R,PRODUCT_TILE_WIDTH:P,product:H,itemQuantity:ot,cartItemCount:ct,addToCartFlag:ht,setAddToCartFlag:vt,soldOutFlag:xt,setSoldOutFlag:mt,event:M})]})}const Zt=(t,e,i,n)=>{var o;if(!e&&!i&&!n)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!n||t.option3===n)));return r?r.id:void 0},te=(t,e)=>{var i,n;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.price},ee=(t,e)=>{var i;const n=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find((t=>t.id==e));return void 0===n?null:null===n||void 0===n||null===(o=n.featured_image)||void 0===o?void 0:o.src;var o},ie=(0,n.createContext)({setShowOptionsChart:null});var ne=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,[a,d]=(0,n.useState)(!1);return(0,x.jsx)(ie.Provider,{value:{setShowOptionsChart:d},children:(0,x.jsxs)(s.az,{width:"full",height:"full",borderRadius:"md",children:[(0,x.jsx)(s.BJ,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,x.jsx)(s.az,{width:"full",height:"fit-content",children:(0,x.jsx)(Gt,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l})})}),a?(0,x.jsx)(s.BJ,{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,x.jsx)(s.az,{width:"full",height:"fit-content",children:(0,x.jsx)(Wt,{data:i,event:e,product:o,setShowOptionsChart:()=>{d(!1)}})})}):(0,x.jsx)(x.Fragment,{})]})})};var oe=function(t){var e,[i,o,r,l]=(0,h.A)();const[a,d]=(0,n.useState)(!1),[v,g]=(0,n.useState)(),[f,w]=(0,n.useState)(),j=(0,u.Xd)("whatmoreShopId"),y=t.event,b=t.onBack,C=n.useRef(),S=t.isPlaying,k=t.isLast,I=t.setLockSwiper,_=t.selectedVariantId,z=null===(e=t.showOverlay)||void 0===e||e,E="center";return(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.BJ,{direction:"column",justifyContent:E,height:"full",width:"full",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.gl,{width:"full",ratio:l/r,children:(0,x.jsx)(m,{height:"100%",width:"100%",url:y.event_hls_url,isPlaying:S,event:y})})})}),z?(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:E,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(Dt,{focusRef:C,event:t.event,isLast:k,onCloseCallback:b,productClickHandler:async t=>{const e=await(0,p.M)(t,(0,c.NCy)(j),j);w(t),g(e),d(!0),I(!0)}})})}):(0,x.jsx)(x.Fragment,{}),!0===a?(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:E,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(ne,{focusRef:C,event:t.event,isLast:k,onCloseCallback:()=>b(),setLockSwiper:I,data:v,currentProduct:f,setOpenShopNow:d,selectedVariantId:_})})}):(0,x.jsx)("div",{})]})})};const re=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function le(t){var e,i,[n,o,r,l]=(0,h.A)();const[a]=(0,u.QN)("whatmoreSecondaryColor"),[d]=(0,u.QN)("whatmoreSecondaryColorShade900"),c=t.progress,p=null!==(e=t.totalSiblings)&&void 0!==e?e:1,v=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,x.jsx)(s.BJ,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(p).keys()].map((t=>(0,x.jsx)(s.BJ,{width:"100%",height:.004*r+"px",backgroundColor:t<v?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==v?(0,x.jsx)(s.az,{height:"100%",width:c+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,x.jsx)(x.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ae=i(3788),de=i(758);const se=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,ce=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var ue=function(t){var e,i,o,r,a,d=t.whatmoreShareTemplateId;const p=t.whatmoreShareStoryId,v=t.whatmoreShareEventId,m=t.event,g=null===(e=t.showShareText)||void 0===e||e,f=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,w=(0,u.Xd)("whatmoreShopId"),j=(0,u.Xd)("isInDesignMode"),y=(0,u.Xd)("isDemoBrand"),b=(0,u.Xd)("whatmorePrimaryFont"),C=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:S}=(0,n.useContext)(M.B),[k,I,_,z]=(0,h.A)(),E=null!==(o=t.iconSize)&&void 0!==o?o:.1*z*(0,c.xkB)(w);function T(){const e=(0,u.Xd)("whatmoreLandingLocationType");var i;!function(t){j||y||(async()=>{(0,l.Zh)(t)})()}(m),(e.startsWith("product")||"embed"===e)&&(d="te"),i="event_product_link"===(0,c.moP)(w)?m.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,c.moP)(w)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+p+"&weid="+v,(0,c.BLb)(w)&&(i=i+"&"+(0,c.VCz)(w)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,c.kZI)(w),text:`${(0,c.dmA)(w)} \n ${i} ${(0,c.ZX9)(w)?"\n \n -via Whatmore":""}`};navigator.share&&!ce?navigator.share(n):(t.setIsModalOpen(!0),t.setShareText([n,i]))}return(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{cursor:"pointer",style:{marginBottom:f+"px"},children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,x.jsx)(de.A,{sx:{transform:"scaleX(-1)",color:"white",fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T(),(0,Q.kz)({userInteractionType:V.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:S,event:m,productList:m.products,ctaList:m.cta})}}),g&&(0,c.ViG)(w)?(0,x.jsxs)(s.EY,{fontSize:.3*E+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:b+" !important",color:"white !important",paddingRight:"10%",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",m.total_share>(0,c.vDV)(w)?se(m.total_share):null!==(r=null===G||void 0===G||null===(a=G[C])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,x.jsx)(x.Fragment,{})]})})})},he=i(3420),pe=i(7170);var ve=function(t){var e,i,o;const r=(0,u.Xd)("whatmoreShopId"),a=(0,u.Xd)("whatmorePrimaryFont"),d=(0,u.Xd)("whatmoreLikedEvents"),p=(0,u.Xd)("isInDesignMode"),v=(0,u.Xd)("isDemoBrand"),m=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:g}=(0,n.useContext)(M.B),f=t.event,[w,j]=(0,n.useState)(null!==(e=d[f.event_id])&&void 0!==e&&e),[y,b,C,S]=(0,h.A)(),k=.1*S*(0,c.xkB)(r);function I(t,e){p||v||(async()=>{(0,l.$B)(t,e)})()}function _(){(0,u.t2)("whatmoreLikedEvents",{...d,[f.event_id]:!w}),w?(I(f,-1),(0,Q.kz)({userInteractionType:V.O.VIDEO_UNLIKED,widgetSourceDetails:g,event:f,productList:f.products,ctaList:f.cta})):(I(f,1),(0,Q.kz)({userInteractionType:V.O.VIDEO_LIKED,widgetSourceDetails:g,event:f,productList:f.products,ctaList:f.cta})),j(!w)}const z=f.total_like+(w?1:0);return(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{cursor:"pointer",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[w?(0,x.jsx)(pe.A,{sx:{boxShadow:3,color:(0,c.MJ6)(r),fontSize:k,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),_()}}):(0,x.jsx)(he.A,{sx:{boxShadow:3,color:"white",fontSize:k,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),_()}}),(0,x.jsx)(x.Fragment,{children:(0,c.FlI)(r)?(0,x.jsxs)(s.EY,{fontSize:.3*k+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",z>=(0,c.LGx)(r)?se(z):null!==(i=null===G||void 0===G||null===(o=G[m])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,x.jsx)(x.Fragment,{})})]})})})};const xe=t=>{let{iconSize:e}=t;return(0,x.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*e},children:(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,x.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"})})})};var me=i(7300);const ge=t=>{let{iconSize:e}=t;return(0,x.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,x.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"})})})},fe=t=>{let{iconSize:e}=t;return(0,x.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,x.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"})})})};var we=t=>{const e=t.shareText,[i,o]=(0,n.useState)("Copy link"),[r,l]=(0,n.useState)("");return(0,x.jsx)(x.Fragment,{children:t.isModalOpen&&(0,x.jsxs)("div",{className:"modal-overlay",style:{backgroundColor:"white",borderRadius:"10px",padding:"12px 12px 20px 12px"},children:[(0,x.jsxs)("div",{style:{cursor:"pointer",display:"flex",justifyContent:"space-between",paddingBottom:"6px"},children:[(0,x.jsx)("img",{onClick:()=>{window.location.href="https://www.whatmore.ai"},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,x.jsx)(Rt.A,{onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,x.jsx)("div",{}),(0,x.jsx)(s.cG,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,x.jsxs)("div",{className:"social-icons",style:{display:"flex",gap:"20px",justifyContent:"center",paddingTop:"12px"},children:[(0,x.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://wa.me/?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,x.jsx)(xe,{iconSize:Math.min(t.iconSize,30)}),(0,x.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"Whatsapp"})]}),(0,x.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://twitter.com/intent/tweet?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,x.jsx)(ge,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,x.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"X"})]}),(0,x.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e[1]),o("Link copied"),l("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,x.jsx)(fe,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,x.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14),color:r},children:i})]})]})]})})};var je=function(t){var e,i;const o=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),r=(0,u.Xd)("whatmorePrimaryFont"),l=(0,u.Xd)("whatmoreShopId"),a=null!==(i=t.fontSize)&&void 0!==i?i:"8",[d]=(0,me.A)(),h=`https://www.whatmore.ai/shoppable-videos?utm_source=${o}&utm_medium=referral&utm_campaign=${"landscape"===d?"customer_referral_desktop":"customer_referral_mobile"}`,{whatmoreEventsBrowsingTemplate:p}=(0,n.useContext)(M.B);return(0,x.jsx)(s.N_,{href:h,isExternal:!0,children:(0,c.SGs)(l)&&(0,x.jsxs)(s.BJ,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("font-size",1.1*a+"px","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("color","white"))},children:(0,mt.Yt)(p)?"Powered by Whatmore":"Whatmore"}),(0,x.jsx)(s.az,{width:"10px"}),(0,x.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.7*a,backgroundColor:"transparent",borderRadius:"0px"}})]})})},ye=i(9879),be=i(2209);var Ce=()=>(0,x.jsxs)(s.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,x.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,x.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Se=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)||[]},[o,r]=(0,n.useState)(!1),[l,a]=(0,n.useState)(null),[d,c]=(0,n.useState)(null),u=(0,n.useRef)(null),h=(0,n.useContext)(M.B);return(0,n.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,n.useEffect)((()=>{!o&&u.current&&c(u.current.offsetHeight)}),[o]),(0,x.jsxs)(s.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:u,height:d?`${d}px`:"auto",children:[(0,x.jsx)(s.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,Q.kz)({userInteractionType:V.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:h})},children:(0,x.jsx)(be.A,{})}),(0,x.jsx)(s.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,x.jsx)(s.DZ,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,x.jsx)(s.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,x.jsxs)(s.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,x.jsx)(Ce,{}),(0,x.jsx)(s.DZ,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,x.jsx)(s.BJ,{spacing:5,width:"100%",align:"center",children:i.options.map(((e,i)=>(0,x.jsx)(s.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,Q.kz)({userInteractionType:V.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:h})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,x.jsx)(s.EY,{py:5,color:"gray.800",children:e})},i)))})})]})},ke=i(9935);var Ie=t=>{var e,i;const[o,r]=(0,n.useState)(""),[l,a]=(0,n.useState)(""),[d,h]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),m=(0,u.Xd)("whatmoreShopId"),g=(0,u.Xd)("whatmoreSecondaryColor"),f=(0,u.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,j=(0,n.useContext)(M.B),y=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(h(!0),(0,Q.kz)({userInteractionType:V.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:j})):a("Please enter valid contact info.")},b=()=>{var e;t.setIsQuestionVisible(!1),(0,Q.kz)({userInteractionType:V.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:j})};return(0,x.jsx)(s.so,{bg:g,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:d?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(s.az,{textAlign:"center",color:"white",children:[(0,x.jsx)(s.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,x.jsx)(s.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,x.jsx)(s.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,x.jsx)(A.A,{onCloseCallback:b})}),(0,x.jsxs)(s.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,c.TH)(m);navigator.clipboard.writeText(t).then((()=>{v(!0),setTimeout((()=>{b()}),1e3),setTimeout((()=>v(!1)),2e3)}),(()=>{console.error("Failed to copy the coupon code")}))},cursor:"pointer",children:[(0,x.jsxs)(s.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,x.jsx)(s.az,{as:"span",fontWeight:"bold",color:"black",children:(0,c.TH)(m)}),(0,x.jsx)(ke.A,{sx:{color:p?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),p&&(0,x.jsx)(s.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:g,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(s.az,{textAlign:"center",color:"white",children:[(0,x.jsx)(s.az,{children:(0,x.jsx)(s.EY,{fontFamily:f,fontSize:"22px",fontWeight:"bold",children:w})}),(0,x.jsx)(s.az,{marginBottom:"10%",fontSize:"md",children:(0,c.aRV)(m)})]}),(0,x.jsx)(s.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,x.jsx)(A.A,{onCloseCallback:b})}),(0,x.jsxs)(s.so,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,x.jsx)(s.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,x.jsx)("input",{fontFamily:f,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&y()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,x.jsx)(s.EY,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,x.jsx)(s.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:y,width:"50%",children:(0,x.jsx)(s.EY,{fontFamily:f,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var _e=t=>{const[e,i]=(0,n.useState)(null);return(0,x.jsx)(s.az,{children:!e&&(0,x.jsx)(Ie,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var ze=t=>{var e;const[i,o]=(0,n.useState)(null),r=t.questionIndex,l=t.questionList;if((0,n.useEffect)((()=>{if(!(r>=l.length))return()=>(0,ot.Hm)()}),[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,x.jsx)(s.az,{children:(0,x.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,x.jsx)(s.az,{children:(0,x.jsx)(Se,{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=>{o(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Ee=i(6118);function Te(t){var e;const i=t.event,[o,r,l,a]=(0,h.A)(),[d]=(0,u.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:p}=(0,n.useContext)(M.B),[v]=(0,u.QN)("whatmoreSecondaryColor"),[m]=(0,u.QN)("whatmoreShopId"),g=(0,c.ivI)(m),f=null!==(e=(0,c.qAx)(m))&&void 0!==e?e:[v,g,v,g,v],w=(0,n.useRef)(null);(0,n.useEffect)((()=>{w.current&&w.current.play()}),[]);const j=(0,ae.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,x.jsx)(x.Fragment,{children:p?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+f[0]+"50, 0px -2px 1px 0px "+f[1]+"50, 2px 0px 1px 0px "+f[2]+"50, -2px 0px 1px 0px "+f[3]+"80, 2px -2px 1px 0px "+f[4]+"80, -2px 2px 1px 0px "+f[0]+"DA, 2px 2px 1px 0px "+f[1]+"DA, -2px -2px 1px 0px "+f[2]+"DA"},children:"video"==(0,pt.B)(j)?(0,x.jsx)(ye.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:j,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,x.jsx)("img",{src:j,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,x.jsx)(x.Fragment,{})})}var Ae=function(t){var e,i,o;const[r,a,d]=(0,me.A)(),[p]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[m,g]=(0,u.QN)("isProductSwiperCatalogOpen"),[f,w]=(0,u.QN)("isFirstIndicatorRenderDone"),[j]=(0,u.QN)("whatmoreShopId"),b=(0,n.useContext)(fi),{whatmoreEventsBrowsingTemplate:C}=(0,n.useContext)(M.B),[S,k,I,_]=(0,h.A)(),z=(0,u.Xd)("whatmorePrimaryFont"),T=t.event,F=t.storySetId,N=t.isLast,P=t.onCloseCallback,L=t.focusRef,O=t.productClickHandler,D=t.videoPlayingData,R=t.totalSiblingEvents,W=t.indexAmongSiblings,H=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,J=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:U}=(0,n.useContext)(M.B),X=.1*_,[q,K]=(0,n.useState)(!1),[$,G]=(0,n.useState)([]),Z=t=>{tt.current&&!tt.current.contains(t.target)&&K(!1)},tt=(0,n.useRef)(null);return(0,n.useEffect)((()=>(q?document.addEventListener("click",Z):document.removeEventListener("click",Z),()=>{document.removeEventListener("click",Z)})),[q]),(0,c.yt9)(j),(0,x.jsxs)(s.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,x.jsx)(Pt.S,{userInteractionType:V.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:!p&&!v,children:(0,x.jsx)(ze,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),q&&(0,x.jsx)("div",{ref:tt,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,x.jsx)(we,{shareText:$,setShareText:G,iconSize:X,isModalOpen:q,setIsModalOpen:K})}),"55194878152"==j&&(0,x.jsx)("div",{style:{position:"absolute",boxShadow:"dark-lg",transform:"scale(1.2) translateY(10%) translateX(5%)"},children:(0,x.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/whatmorelive.brand.other.assets/nureh/Shop_by_Sale_50_-removebg-preview.png"})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,x.jsxs)(s.BJ,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsxs)(s.BJ,{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:[b.showVideoPlayingData?(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,x.jsx)(le,{progress:re(D.current_time,D.video_duration),totalSiblings:R,indexAmongSiblings:W})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsxs)(s.az,{width:"full",margin:"2px",marginTop:"5px",children:[!(0,mt.Yt)(C)&&(0,x.jsx)(s.BJ,{pl:"10px",children:(0,x.jsx)(je,{brandName:null===T||void 0===T?void 0:T.brand,fontSize:.033*_})}),(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Te,{event:T,width:_}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,mt.Yt)(C)?(0,x.jsx)(ue,{whatmoreShareTemplateId:(0,mt.Gy)(C),whatmoreShareStoryId:F,whatmoreShareEventId:T.event_id,event:T,showShareText:!1,iconSize:.098*_,setIsModalOpen:K,setShareText:G}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(y,{focusRef:L}),("landscape"!==r||t.showCloseOverlay)&&(0,x.jsx)(A.A,{event:T,onCloseCallback:P})]})]})]})]}),"78232846646"===j&&"portrait"===r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.az,{position:"absolute",top:.49*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,x.jsx)(Ee.A,{style:{fontSize:1.3*X+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(T,"right")}})}),(0,x.jsx)(s.az,{position:"absolute",top:.42*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,x.jsx)(Ee.A,{style:{fontSize:1.3*X+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(T,"left")}})})]}),(0,x.jsxs)(s.BJ,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,x.jsx)(s.az,{width:"33%",height:"100%",onClick:()=>{H()},sx:{display:"block !important"}}),(0,x.jsx)(s.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,x.jsx)(s.az,{width:"33%",height:"100%",onClick:()=>{J()},sx:{display:"block !important"}})]}),(0,x.jsxs)(s.az,{width:"full",height:"fit-content",children:[b.totalEvents>1&&!f&&b.showSwipeIndicator?(0,x.jsx)(s.az,{width:"full",margin:"2px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(B,{swipeUp:!N})})}):null,(0,x.jsxs)(s.az,{width:"fit-content",height:"fit-content",position:"absolute",right:0,bottom:"25%",children:[(0,c.oZc)(j)&&!(0,mt.Yt)(C)?(0,x.jsx)(s.az,{ml:"auto",width:"fit-content",paddingY:"12px",paddingX:"8px",position:"relative",top:"-30px",children:(0,x.jsxs)(s.BJ,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:function(){var t;p||v||(async()=>{(0,l.A9)(T,1)})(),(0,Q.kz)({userInteractionType:V.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:U,event:T,productList:null===T||void 0===T?void 0:T.products,ctaList:null===T||void 0===T?void 0:T.cta});const e=T.products.map((t=>`${t.product_link} \n`)),i=(0,c.dzp)(j),n=`Hey, I am interested in ${T.products.length>1?"these products":"this product"} I saw on ${null===(t=T.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")},children:[(0,x.jsx)(xe,{iconSize:.7*X,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,x.jsx)(s.EY,{fontSize:X*(0,c.LOH)(j)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:z+" !important",color:"white !important"},children:(0,c.wtw)(j)})]})}):(0,x.jsx)(x.Fragment,{}),(0,c.MdM)(j)?(0,x.jsx)(s.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(ve,{event:T})})}):(0,x.jsx)(x.Fragment,{}),(0,c.iQ5)(j)&&!(0,mt.Yt)(C)?(0,x.jsx)(s.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(ue,{whatmoreShareTemplateId:(0,mt.Gy)(C),whatmoreShareStoryId:F,whatmoreShareEventId:T.event_id,event:T,setIsModalOpen:K,setShareText:G})})}):(0,x.jsx)(x.Fragment,{})]}),(0,Nt.Z_)(T)?(0,x.jsxs)(s.az,{width:"full",children:[(0,c.ek9)(j)?(0,x.jsx)(s.az,{w:"100%",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(E,{event:T,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.az,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Bt,{event:T,productClickHandler:O})})]}):(0,x.jsx)(x.Fragment,{})]})]})]})},Fe=i(5491),Ne=i.n(Fe),Pe=i(6493);var Le=function(t){var e,i,o,r,l,a,[d,m,g,f]=(0,h.A)();const[w,j]=(0,n.useState)(!1),[y,b]=(0,n.useState)(),[C,S]=(0,n.useState)(),[k,I]=(0,n.useState)({current_time:0,video_duration:0,is_video_ended:!1}),_=(0,u.Xd)("whatmoreShopId"),z=t.event,E=t.storyId,T=t.onBack,A=n.useRef(),F=t.changeSlide,N=t.isPlaying,P=t.isLast,L=t.setLockSwiper,B=t.onVideoEndedCallback,O=t.progressUpdateCallback,D=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,R=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,W=null===(o=t.showOverlay)||void 0===o||o,H=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},Y=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},J=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:U}=(0,n.useContext)(M.B),{questionList:X}=(0,n.useContext)(fi),q=(null===X||void 0===X?void 0:X.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[K,$]=(0,n.useState)();(0,n.useEffect)((()=>{$(t.showQuestion)}),[t.showQuestion]);const G="center";let Z;try{Z=Ne()((()=>{B()}),1e3,{leading:!0,trailing:!1})}catch(tt){console.log(tt)}return(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.az,{width:f,height:g,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.BJ,{direction:"column",justifyContent:G,height:"full",width:"full",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.gl,{width:"full",ratio:f/g,children:(0,x.jsx)(v.A,{height:"100%",width:"100%",url:(0,ae.s)((0,Pe.lP)(z)),isPlaying:N&&(!K||q>=X.length),timeUpdateCallback:function(t,e){const i=re(t,e);O({watch_time:t,video_duration:e});const n=k.is_video_ended;i>=99&&N&&!n?(Z(),I({current_time:t,video_duration:e,is_video_ended:!0})):I({current_time:t,video_duration:e,is_video_ended:n})},event:z,question:K&&q<(null===X||void 0===X?void 0:X.length),source:t.source})})})}),W?(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:G,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(Ae,{focusRef:A,event:t.event,isLast:P,onCloseCallback:t=>{T(t),(0,Q.DG)({userInteractionType:V.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:k.current_time,video_duration:k.video_duration},widgetSourceDetails:U,event:z,productList:z.products,ctaList:z.cta})},productClickHandler:async t=>{const e=await(0,p.M)(t,(0,c.NCy)(_),_);S(t),b(e),j(!0),L(!0),(0,Q.kz)({userInteractionType:V.O.SHOPNOW_CLICKED,widgetSourceDetails:U,event:z,productList:z.products,ctaList:z.cta}),(0,u.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:k,totalSiblingEvents:D,indexAmongSiblings:R,questionList:X,isQuestionVisible:K&&q<(null===X||void 0===X?void 0:X.length),qIndex:q,setIsQuestionVisible:$,leftOpenSpaceClickHandler:H,midOpenSpaceClickHandler:Y,rightOpenSpaceClickHandler:J,storySetId:E,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:F})})}):(0,x.jsx)(x.Fragment,{}),!0===w?(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:G,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(ne,{focusRef:A,event:t.event,isLast:P,onCloseCallback:()=>T(),setLockSwiper:L,data:y,currentProduct:C,setOpenShopNow:t=>{j(t),(0,u.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,x.jsx)("div",{})]})})},Be=i(2039),Oe=i(6613),De=i(1085),Re=i(5727);var We=function(t){var[e,i,n,o]=(0,h.A)();const r=(0,u.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.az,{width:o,height:n,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.BJ,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.gl,{width:"full",ratio:o/n,children:(0,x.jsx)(v.A,{height:"100%",width:"100%",url:(0,ae.s)((0,Pe.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,De.bo)()},children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,x.jsx)(Re.A,{sx:{boxShadow:3,color:(0,c.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,De.bo)()}}),(0,x.jsx)(s.EY,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Qe=i(3294),Ve=i(9821);const Me=n.lazy((()=>i.e(931).then(i.bind(i,3658))));var He=function(t){var e,i;const n=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,h=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),p=t.progressUpdateCallback,[v,m]=(0,j.A)(),[g]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),f=null===(i=t.showOverlay)||void 0===i||i;function w(){m(!v)}if((0,Oe.MN)()&&0==g&&"recommended_images"!=(null===o||void 0===o?void 0:o.event_type))return(0,Ve._)()?(0,x.jsx)(We,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:h,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:Qe.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,x.jsx)(Le,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:h,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:Qe.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Be.ij)(o)||(0,Be.Il)(o))return(0,x.jsx)(Le,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:h,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:Qe.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if("recommended_images"==(null===o||void 0===o?void 0:o.event_type))return(0,x.jsx)(Me,{onBack:l,mode:t.mode,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,imageUrls:null===o||void 0===o?void 0:o.product_list});if((0,Be.Th)(o)){var{status:y,bannerText:b,timeToStartInMins:C}=d.A.getEventStatus(o);if(y.name===a.A.LIVE.name)return(0,x.jsx)(oe,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:f},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,x.jsx)("div",{})},Ye=i(4806),Je=i.n(Ye),Ue=i(2804),Xe=i(6834);function qe(t){var e;const[i,o]=(0,n.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,x.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,x.jsx)(Xe.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"up")}}):(0,x.jsx)(Ue.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"down")}})})}var Ke=function(t){var e,i,n;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(n=t.fontSize)&&void 0!==n?n:50,a=t.handleClick;return(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,x.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,x.jsx)(qe,{type:"left",onClick:a,fontSize:l}),(0,x.jsx)(qe,{type:"right",onClick:a,fontSize:l})]})})},$e=i(964),Ge=i(3330);var Ze=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,n.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var ti=function(t,e){const i=(0,n.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(n){const o=i.current.clientX,r=i.current.clientY;var l=o-n.changedTouches[0].clientX,a=r-n.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 ei=function(t,e){const i=(0,n.useRef)(Ne()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(n,o){var r=0;if(r="vertical"==t?n.deltaY:n.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(o,l)}]},ii=i(8675);var ni=function(t){const e=t.events,i=t.eventIndex,a=t.onBack;var[d,p,v,m]=(0,h.A)();const[g]=(0,u.QN)("isInDesignMode"),[f]=(0,u.QN)("isDemoBrand"),[w,j]=(0,n.useState)(!0),[y,b]=(0,u.QN)("isFirstIndicatorRenderDone"),[C,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(fi),{slideDirection:z}=(0,n.useContext)(fi),[E]=(0,u.QN)("whatmoreShopId"),[T]=(0,u.QN)("whatmoreLandingLocationType"),[A,F]=Ze(i,e.length),[N,P]=ti(z,50),[L]=ei("vertical",30),[B,O]=(0,n.useState)(!1),[D,W]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:H,whatmoreUserInfo:Y}=(0,n.useContext)(M.B);function J(){O(!1)}function U(t){J(),setTimeout((()=>{a(t)}),500)}(0,n.useEffect)((()=>(O(!0),()=>{})),[]);const X=H.landingLocationType,q=H.templateType;_(U);let K=i;const{questionList:$}=(0,n.useContext)(fi);function G(){(0,u.Xd)("whatmoreAllowAutoSlide")&&(F("right"),D.slideNext())}function Z(t,e){F(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*v);return(0,x.jsx)(Je(),{isOpen:B,onAfterOpen:function(){},onRequestClose:J,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,x.jsx)(ii.A,{children:(0,x.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,R.YU)("#000000",13)},onTouchStart:t=>{N(t)},onTouchEnd:t=>{if(C)return;const e=P(t);e&&Z(0,e)},onWheel:t=>{C||L(t,(t=>{Z(0,t)}))},children:[(0,x.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!C,allowSlidePrev:!C,allowTouchMove:!1,onSwiper:t=>{W(t),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:H,event:e[A().activeIndex],productList:e[A().activeIndex].products})},onSlideChange:t=>{var i;w?j(!1):(y||b(!0),(0,Q.DG)({userInteractionType:V.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:H,event:e[A().activeIndex],productList:e[A().activeIndex].products}),i=e[A().activeIndex],g||f||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,mt.Wd)(X)+(0,mt.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,Ge.Si)(E,$e.TB,$e.Dk),(0,ot.Ch)(i.event_id,i.products,$e.TB,$e.Dk,t,null===i||void 0===i?void 0:i.location,null===Y||void 0===Y?void 0:Y.userType)):T.startsWith("product")||"embed"===T?((0,Ge.Si)(E,$e.DK,$e.K1),(0,ot.Ch)(i.event_id,i.products,$e.DK,$e.K1,t)):T.startsWith("collection")?((0,Ge.Si)(E,$e.Sx,$e.rz),(0,ot.Ch)(i.event_id,i.products,$e.Sx,$e.rz,t)):((0,Ge.Si)(E,$e.TB,$e.Dk),(0,ot.Ch)(i.event_id,i.products,$e.TB,$e.Dk,t))})(),(0,Q.UM)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:H,event:e[A().activeIndex],productList:e[A().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((n=>(0,x.jsx)(o.qr,{children:n=>{let{isActive:o,isPrev:r,isNext:l,isVisible:a,isDuplicate:d}=n;const u=o?"activeIndex":r?"prevIndex":"nextIndex",h=A()[u];"activeIndex"==u&&(K=Math.max(K,h),0==h&&(K=0));const p=(null===$||void 0===$?void 0:$.length)>0&&o&&a&&(h>i||K<i&&h>0)&&h>=K&&h%(0,c.uSp)(E)==i%(0,c.uSp)(E);return(0,x.jsx)(s.BJ,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,x.jsx)(He,{event:e[h],showQuestion:p,onBack:U,isPlaying:1==e.length||o&&a,isLast:!1,setLockSwiper:S,onVideoEndedCallback:G,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:Z})})}},"event-vertical-scroll-slide-"+n)))}),e.length>1&&!C&&(0,c.kb)(E)&&"horizontal"===(0,c.br0)(E)&&"horizontal"===z?(0,x.jsx)(Ke,{relativeBottomPercentage:"50%",width:m,handleClick:(t,e)=>{Z(0,"down"==e?"right":"left")},fontSize:parseInt(.12*m)}):(0,x.jsx)(x.Fragment,{})]})})})},oi=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const ri=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return oi.createPortal((0,x.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${i}`,style:{display:n?"block":"none"},children:[(0,x.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,x.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};ri.defaultProps={children:(0,x.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var li=ri;var ai=function(t){var e,[i,a,d,p]=(0,h.A)();const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[g,f]=(0,u.QN)("isFirstIndicatorRenderDone"),[w,j]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,n.useContext)(fi),[b,C]=(0,n.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),[k]=(0,u.QN)("whatmoreLandingLocationType"),I=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)(M.B),[E,T]=(0,n.useState)(!1),[F,N]=(0,n.useState)(null);function P(){T(!1)}const L=t.events,B=t.eventIndex,O=t.onBack,D=L.concat(L),W=L.length,H=(null===L||void 0===L||null===(e=L[0])||void 0===e||e.brand,(0,n.useRef)(0));function Y(t){P(),setTimeout((()=>{O(t)}),500)}function J(){F&&!F.isEnd&&(0,u.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),y(Y);const U=_.landingLocationType,X=_.templateType,[q,K]=(0,n.useState)({}),$=parseInt(Math.min(5,L.length));return(0,x.jsx)(li,{show:E,closeCallback:P,customClass:"whatmore-landscape-modal-swipe-view",children:(0,x.jsx)(s.BJ,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,R.YU)("#000000",13),children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.az,{height:"fit-content",width:p*$,children:(0,x.jsxs)(o.RC,{onInit:t=>{N(t),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:_,event:L[t.activeIndex],productList:L[t.activeIndex].products,ctaList:L[t.activeIndex].cta})},slidesPerView:$,centeredSlides:!0,allowTouchMove:!1,initialSlide:B,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:$>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*$,watchSlidesProgress:!0,onSlideChange:t=>{var e;w?j(!1):(g||f(!0),e=L[t.activeIndex],v||m||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,mt.Wd)(U)+(0,mt.gf)(X)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===k?((0,Ge.Si)(S,$e.TB,$e.Dk),(0,ot.Ch)(e.event_id,e.products,$e.TB,$e.Dk,t,null===e||void 0===e?void 0:e.location,null===z||void 0===z?void 0:z.userType)):k.startsWith("product")||"embed"===k?((0,Ge.Si)(S,$e.DK,$e.K1),(0,ot.Ch)(e.event_id,e.products,$e.DK,$e.K1,t)):k.startsWith("collection")?((0,Ge.Si)(S,$e.Sx,$e.rz),(0,ot.Ch)(e.event_id,e.products,$e.Sx,$e.rz,t)):((0,Ge.Si)(S,$e.TB,$e.Dk),(0,ot.Ch)(e.event_id,e.products,$e.TB,$e.Dk,t))})(),(0,Q.DG)({userInteractionType:V.O.VIDEO_PLAYBACK,userInteractionMetadata:q,widgetSourceDetails:_,event:L[t.activeIndex],productList:L[t.activeIndex].products,ctaList:L[t.activeIndex].cta}),(0,Q.UM)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:_,event:L[t.activeIndex],productList:L[t.activeIndex].products,ctaList:L[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[L.length>2&&(0,x.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,x.jsx)(A.A,{onCloseCallback:O})}),D.slice(B,L.length+B).map(((t,e)=>(0,x.jsx)(o.qr,{children:t=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;if(i)return(0,x.jsx)(s.BJ,{direction:"column",height:d,width:1*p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,x.jsx)(s.az,{overflow:"hidden",sx:{borderRadius:"round"==I?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,x.jsx)(He,{event:L[e%W],onBack:Y,isPlaying:!0,isLast:e%W===L.length-1,setLockSwiper:C,widthFactor:1,heightFactor:1,onVideoEndedCallback:J,progressUpdateCallback:t=>{K(t)},showCloseOverlay:(null===L||void 0===L?void 0:L.length)<=2,mode:"landscape"})})});if(o)return(0,x.jsx)(s.BJ,{direction:"column",height:d,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%W,300)},children:(0,x.jsx)(s.az,{overflow:"hidden",sx:{borderRadius:"round"==I?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,x.jsx)(He,{event:L[e%W],onBack:Y,isPlaying:!1,isLast:e%W===L.length-1,setLockSwiper:C,widthFactor:1,heightFactor:1,onVideoEndedCallback:J,progressUpdateCallback:t=>{K(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===H.current)return(0,x.jsx)(s.BJ,{direction:"column",height:d,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%W,300)},children:(0,x.jsx)(s.az,{overflow:"hidden",sx:{borderRadius:"round"==I?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,x.jsx)(He,{event:L[e%W],onBack:Y,isPlaying:!1,isLast:e%W===L.length-1,setLockSwiper:C,widthFactor:1,heightFactor:1,onVideoEndedCallback:J,progressUpdateCallback:t=>{K(t)},showOverlay:!1,mode:"landscape"})})});try{B+e>=W-1&&(H.current=1)}catch(a){console.log(a)}return(0,x.jsx)(x.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})})})})},di=i(9769),si=i(9108),ci=i(2682),ui=i(4910);var hi=function(t){const[e,i,n,o]=(0,h.A)(),[r]=(0,u.QN)("whatmorePrimaryColor"),[l]=(0,u.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.az,{width:o,height:n,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,x.jsx)(s.BJ,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,x.jsx)(s.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,x.jsx)(s.gl,{width:"full",ratio:o/n,children:(0,x.jsx)(s.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,x.jsx)(s.gl,{width:"full",ratio:9/16,children:(0,x.jsx)(s.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var pi=function(t){var e;const i=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,c=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,p=i.events;var[v,m,g,f]=(0,h.A)();const[w,y]=(0,j.A)(),[b]=(0,u.QN)("isInDesignMode"),[C]=(0,u.QN)("isDemoBrand"),[S]=(0,u.QN)("whatmoreShopId"),[k,I]=(0,n.useState)(!0),[_,z]=(0,u.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,n.useState)(null),[A,F]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:N,whatmoreUserInfo:P}=(0,n.useContext)(M.B),[L,B]=Ze(c,p.length);function O(t){r(t)}const D=N.landingLocationType,R=N.templateType;function W(){if(!(0,u.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=p.length?a("right"):(B("right"),E&&E.slideNext())}function H(t){const e=L().activeIndex;"right"==t&&e+1>=p.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[Y,J]=(0,n.useState)({});return p[L().activeIndex],(0,x.jsx)("div",{children:(0,x.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:g,width:f,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,Q.DG)({userInteractionType:V.O.VIDEO_PLAYBACK,userInteractionMetadata:Y,widgetSourceDetails:N,event:p[L().activeIndex],productList:p[L().activeIndex].products,ctaList:p[L().activeIndex].cta}),function(t){const e=(0,mt.Wd)(D)+(0,mt.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);b||C||(async()=>{(0,l.lB)(t),(0,Ge.Si)(S,$e.TB,$e.OL),(0,ot.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(p[L().activeIndex]),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:N,event:p[L().activeIndex],productList:p[L().activeIndex].products,ctaList:p[L().activeIndex].cta}))},children:[...Array(Math.min(p.length,3)).keys()].map((e=>(0,x.jsx)(o.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=p[L()[e]];return(0,x.jsx)(s.BJ,{direction:"column",height:g,justifyContent:"center",children:(0,Be.ij)(r)||(0,Be.Il)(r)?(0,x.jsx)(Le,{event:r,totalSiblingEvents:p.length,indexAmongSiblings:L()[e],onBack:O,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:F,onVideoEndedCallback:W,progressUpdateCallback:t=>{J(t)},leftOpenSpaceClickHandler:()=>{H("left")},midOpenSpaceClickHandler:()=>{y(!w)},rightOpenSpaceClickHandler:()=>{H("right")},storyId:i.id,source:Qe.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+r.event_id):(0,x.jsx)(x.Fragment,{})})}return(0,x.jsx)(s.BJ,{direction:"column",height:v,justifyContent:"center",children:(0,x.jsx)(hi,{})})}},"event-story-view-slide-"+e)))})})};var vi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex;var[d,c,p,v]=(0,h.A)();const[m]=(0,u.QN)("isInDesignMode"),[g]=(0,u.QN)("isDemoBrand"),[f,w]=(0,n.useState)(!0),[j,y]=(0,u.QN)("isFirstIndicatorRenderDone"),[b,C]=(0,n.useState)(!1),{setCloseClickComponent:S}=(0,n.useContext)(fi),{slideDirection:k}=(0,n.useContext)(fi),[I]=(0,u.QN)("whatmoreShopId"),[_,z]=Ze(a,i.length),[E,T]=ti("horizontal",50),[A]=ei("vertical",30),F=t.eventIndex,[N,P]=(0,n.useState)(!1),[L,B]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:O,whatmoreUserInfo:D}=(0,n.useContext)(M.B);function R(){P(!1)}function W(t){R(),setTimeout((()=>{e(t)}),500)}(0,n.useEffect)((()=>(P(!0),()=>{})),[]),S(W);const H=O.landingLocationType,Y=O.templateType;function J(t){L&&(0,u.Xd)("whatmoreAllowAutoSlide")&&(z(t),"right"==t?L.slideNext():L.slidePrev())}function U(t,e){J(e)}return(0,x.jsx)(Je(),{isOpen:N,onAfterOpen:function(){},onRequestClose:R,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,x.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{E(t)},onTouchEnd:t=>{const e=T(t);e&&U(0,e)},onWheel:t=>{A(t,(t=>{U(0,t)}))},children:(0,x.jsx)(o.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,n;B(t),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:O,event:i[_().activeIndex].events[0],productList:null===(e=i[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[_().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;f?w(!1):(!function(t){const e=(0,mt.Wd)(H)+(0,mt.gf)(Y)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);m||g||(async()=>{(0,l.lB)(t),(0,Ge.Si)(I,$e.TB,$e.OL),(0,ot.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===D||void 0===D?void 0:D.userType)})()}(i[_().activeIndex].events[0]),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:O,event:i[_().activeIndex].events[0],productList:null===(e=i[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[_().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,x.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const c=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,x.jsx)(s.BJ,{direction:"column",height:d,justifyContent:"center",children:(0,x.jsx)(pi,{stories:i[_()[c]],onBack:W,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:J,nextStories:i[_().nextIndex],prevStories:i[_().prevIndex],initialEventIndex:a==_()[c]?F:0},"event-story-view-"+i[_()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var xi=function(t){var e,i,o,[r,l,a,d]=(0,h.A)();const[c]=(0,u.QN)("whatmorePrimaryColor"),[p]=(0,u.QN)("whatmoreSecondaryColor"),v=t.event,m=(t.onBack,n.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),f=null!==(i=t.heightFactor)&&void 0!==i?i:1,w="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=f,(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.az,{width:d,height:a,children:[(0,x.jsx)(s.BJ,{direction:"column",justifyContent:w,height:"full",width:"full",children:(0,x.jsx)(s.az,{children:(0,x.jsx)(s.gl,{width:"full",ratio:9/16,children:m?(0,Be.ij)(v)||(0,Be.Il)(v)?(0,x.jsx)(ye.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:v}):(0,x.jsx)(g._V,{width:"full",height:"full",src:v.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,x.jsx)(s.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+c+", gray, "+p+")"})})})}),(0,x.jsx)(s.BJ,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:w,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.az,{children:(0,x.jsx)(s.gl,{width:"full",ratio:9/16,children:(0,x.jsx)(s.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var mi=function(t){var e,i,[a,d,c,p]=(0,h.A)();const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[g,f]=(0,u.QN)("isFirstIndicatorRenderDone"),[w,j]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,n.useContext)(fi),[b,C]=(0,n.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:k,whatmoreUserInfo:I}=(0,n.useContext)(M.B),[_,z]=(0,n.useState)(!1),[E,T]=(0,n.useState)(null);function F(){z(!1)}t.events;const N=t.eventIndex,P=t.onBack,L=t.eventsStories,B=t.initialStoryIndex,O=null===(e=L[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function D(t){F(),setTimeout((()=>{P(t)}),500)}(0,n.useEffect)((()=>(z(!0),()=>{})),[]),y(D);const R=k.landingLocationType,W=k.templateType;function H(t){E&&!E.isEnd&&("right"==t?E.slideNext():E.slidePrev())}const Y=parseInt(Math.min(5,L.length));return(0,x.jsx)(li,{show:_,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,x.jsxs)(s.BJ,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.az,{height:"fit-content",width:p*Y,children:(0,x.jsxs)(o.RC,{onInit:t=>{var e,i;T(t),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:k,event:L[t.activeIndex].events[0],productList:null===(e=L[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=L[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:B,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*c),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;w?j(!1):(g||f(!0),function(t){const e=(0,mt.Wd)(R)+(0,mt.gf)(W)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);v||m||(async()=>{(0,l.lB)(t),(0,Ge.Si)(S,$e.TB,$e.OL),(0,ot.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===I||void 0===I?void 0:I.userType)})()}(L[t.activeIndex].events[0]),(0,Q.kz)({userInteractionType:V.O.EVENT_VIEW,widgetSourceDetails:k,event:L[t.activeIndex].events[0],productList:null===(e=L[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=L[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[L.length>2&&(0,x.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,x.jsx)(A.A,{onCloseCallback:P})}),L.map(((t,e)=>(0,x.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;if(n){const i=1;return(0,x.jsx)(s.BJ,{direction:"column",height:c,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,x.jsx)(s.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,x.jsx)(pi,{stories:t,onBack:D,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:H,initialEventIndex:B==e?N:0,showCloseOverlay:(null===L||void 0===L?void 0:L.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,x.jsx)(s.BJ,{direction:"column",height:c,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{E.slideTo(e,300)},children:(0,x.jsx)(s.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,x.jsx)(xi,{showPausedVideo:!0,event:L[e].events[0],onBack:D,isPlaying:!1,setLockSwiper:C})})}):(0,x.jsx)(x.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(je,{brandName:O,height:.04*c,width:.1*p,fontSize:.02*c})})]})})};const gi=(0,ui.A)({key:"whatmore-css-sv"}),fi=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var wi=function(t){var e,i,o;const[r,l,a]=(0,me.A)(),[d]=(0,u.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(M.B),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(M.B);var p=t.events,v=t.index,m=t.onBack,g=t.eventsStories,f=t.initialStoryIndex,w=(0,c.M3_)(d),j="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:p.length>1?"horizontal":"vertical",y="portrait"===r?!(0,c.kb)(d)&&!h:(0,c.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,c.hpk)(d)&&(window.location.href.includes(w)?history.replaceState(null,"","#"+w):history.pushState(null,"","#"+w),window.addEventListener("popstate",(()=>{window.location.href.includes(w)||m()})))}),[]),delete si.Ay.styles.global,h?(0,x.jsx)(ci.C,{value:gi,children:(0,x.jsx)(di.s,{theme:si.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,x.jsx)(fi.Provider,{value:{isIOS:(0,Oe.MN)(),totalEvents:p.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y},children:"portrait"===r?(0,x.jsx)(vi,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v}):(0,c.Rdb)(d)?(0,x.jsx)(mi,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v}):(0,x.jsx)(vi,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v})})})}):(0,x.jsx)(ci.C,{value:gi,children:(0,x.jsx)(di.s,{theme:si.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,x.jsx)(fi.Provider,{value:{isIOS:(0,Oe.MN)(),totalEvents:p.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y,questionList:(0,c.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,x.jsx)(ni,{events:p,eventIndex:v,onBack:m}):(0,x.jsx)(ai,{events:p,eventIndex:v,onBack:m})})})})}},5144:function(t,e,i){i.d(e,{jd:function(){return o}});var n=i(8283);const o=`\n ${n.i7`
|
77
|
-
0% { transform: scale(1); }
|
78
|
-
50%, { transform: scale(0.95); }
|
79
|
-
100% { transform: scale(1); }
|
80
|
-
`} 0.2s linear;\n`;n.i7`
|
81
|
-
100% {
|
82
|
-
-webkit-transform: rotate(360deg);
|
83
|
-
transform:rotate(360deg);
|
84
|
-
}
|
85
|
-
`,n.i7`
|
86
|
-
0% {
|
87
|
-
opacity: 1;
|
88
|
-
transform: translateY(100%);
|
89
|
-
}
|
90
|
-
10%{
|
91
|
-
transform: translateY(0%);
|
92
|
-
}
|
93
|
-
12%{
|
94
|
-
transform: translateY(-5%);
|
95
|
-
}
|
96
|
-
20%{
|
97
|
-
transform: translateY(0%);
|
98
|
-
}
|
99
|
-
95%{
|
100
|
-
opacity: 1;
|
101
|
-
transform: scale(1);
|
102
|
-
}
|
103
|
-
100%{
|
104
|
-
opacity: 0;
|
105
|
-
}
|
106
|
-
`},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return w}});var n=i(10),o=i(9810),r=i(9950),l=i(664),a=i(7958),d=i(140);var s=i(5144),c=i(7807),u=i(8650),h=i(1348),p=i(8149),v=i(4737),x=i(1351),m=i(6157),g=i(4414);function f(t){var e;const[i]=(0,l.QN)("whatmoreSecondaryColor"),[r]=(0,l.QN)("whatmorePrimaryFont"),a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.width,s=t.height;return(0,g.jsx)(n.az,{width:d,height:s,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,g.jsxs)(n.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,g.jsxs)(n.EY,{color:i,fontSize:1.3*a,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,g.jsx)(n.ov,{paddingX:"5px",children:(0,g.jsx)(o.A,{sx:{color:i,fontSize:1.5*a}})})]})})}var w=function(t){var e,i,o,w;const[j]=(0,l.QN)("whatmorePrimaryFont"),[y]=(0,l.QN)("isInDesignMode"),[b]=(0,l.QN)("isDemoBrand"),[C,S]=(0,l.QN)("appCartData"),[k]=(0,l.QN)("whatmoreShopId"),[I]=[(0,h.Wc_)(k)],_=(0,h.Wc_)(k),[z,E]=(0,r.useState)(!1),[T,A]=(0,r.useState)({state:"initial"}),[F,N]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:P}=(0,r.useContext)(u.EventClickComponentContext),{whatmoreWidgetSourceDetails:L}=(0,r.useContext)(v.B),B=t.event,O=t.product,D=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function R(t,e,i){y||b||(async()=>{(0,d.tO)(t,e,i)})()}(0,r.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,p.M)(O,(0,h.NCy)(k),k);N({loaded:!0,client_product_id:O.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const W=null!==(i=t.width)&&void 0!==i?i:"fit-content",Q=null!==(o=t.height)&&void 0!==o?o:"fit-content",V=(null!==(w=(0,h.FyB)(k))&&void 0!==w?w:2)+"px";return F.loaded?(0,g.jsx)("div",{style:{width:W,height:Q},children:(0,g.jsx)("a",{href:"javascript:void(0)","data-variant-id":F.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,g.jsx)(c.$n,{type:"submit",className:(0,h.AJI)(k),sx:{width:W,height:Q,minHeight:Q},onClick:t=>{E(!0),R(B,O,1),(0,x.kz)({userInteractionType:m.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:L,event:B,productList:[O],ctaList:B.cta}),null!==P&&setTimeout((()=>{P()}),2e3)},children:"initial"===T.state?(0,g.jsx)(a.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:Q,width:W},children:(0,g.jsx)(n.az,{width:"100%",height:"100%",padding:V,boxShadow:"lg",borderRadius:"md",backgroundColor:_,borderColor:_,borderWidth:"1px",animation:z?s.jd:null,onAnimationEnd:()=>{E(!1)},children:(0,g.jsx)(n.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,g.jsx)(n.ov,{children:(0,g.jsxs)(n.EY,{lineHeight:"100%",fontSize:1.3*D,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,h.Hfu)(k)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,g.jsx)(a.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:Q,width:W},children:(0,g.jsx)(f,{event:B,product:O,baseFontSize:D,cartState:T,width:W,height:Q})})})})}):(0,g.jsx)(g.Fragment,{})}},5242:function(t,e,i){var n=i(10),o=i(7239),r=i(5388),l=i(4414);e.A=function(t){var e,i=t.event,a=t.fontSize,d=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:s,bannerText:c,timeToStartInMins:u}=o.A.getEventStatus(i);return s.name===r.A.LIVE.name?(0,l.jsx)(n.az,{maxWidth:d,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,l.jsx)(n.BJ,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,l.jsx)(n.EY,{fontSize:a,fontWeight:"bold",color:"white",children:c})})}):(0,l.jsx)(n.az,{maxWidth:d,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,l.jsx)(n.BJ,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,l.jsx)(n.EY,{fontSize:a,fontWeight:"medium",children:c})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},7239:function(t,e,i){var n=i(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",i=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==n.A.LIVE.name)return{status:n.A.LIVE,bannerText:" "+n.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==n.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+i+" "+l),function(t){var e=new Date,i=(t.getTime()-e.getTime())/1e3,o=i/60,r=o/60,l=r/24;return i<=0?{status:n.A.COMPLETED,bannerText:" "+n.A.COMPLETED.name+" ",timeToStartInMins:0}:i>=1&&i<=30?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" sec ",timeToStartInMins:i/60}:o<60?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:n.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:n.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:n.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},9541:function(t,e,i){var n=i(10),o=i(7642),r=i(3080),l=i(4414);e.A=function(t){const e=t.onCloseCallback,[i,a,d,s]=(0,r.A)(),c=.08*s;return(0,l.jsx)(n.ov,{children:(0,l.jsx)(n.jl,{cursor:"pointer",children:(0,l.jsx)(o.A,{sx:{boxShadow:3,color:"white",fontSize:c,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e("close-button")}})})})}},3771:function(t,e,i){i.d(e,{A:function(){return j}});var n=i(9950),o=i(2039),r=i(6670),l=i(8650),a=i(16),d=i(9098),s=i(664),c=i(1085),u=i(3294),h=i(1348),p=i(4033),v=(i(5410),i(4737)),x=i(6493),m=i(4414);function g(t){var e,i,o;const[l,d]=(0,r.A)(),[g,f]=(0,n.useState)(n.useRef()),w=t.posterImage,[j,y]=(0,s.QN)("whatmoreVideoPlayerPoolBlessed"),[b,C]=(0,n.useState)(!0),[S,k]=(0,n.useState)(!1),I=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,n.useContext)(v.B),z=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,E=null!==(i=t.height)&&void 0!==i?i:"100%",T=null!==(o=t.width)&&void 0!==o?o:"100%",A=(0,s.Xd)("whatmoreShopId");(0,n.useLayoutEffect)((()=>{if(g.current&&j)if(0==g.current.children.length){const i=(0,x.Cr)(t.url);(e=(0,c.Z4)(g.current,t.url,z||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",(()=>{C(!1)})),I&&e.addEventListener("timeupdate",(t=>{var i,n;e&&I(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(n=e.duration)&&void 0!==n?n:0)}))}else{var e;(e=g.current.children[0]).muted=z||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(A)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout((()=>{!t.isPlaying&&e.pause()}),(0,p.n)()?1900:800)))}}),[z,t.isPlaying,j,b]),(0,n.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.rq)(g.current)}),[]);const F=(0,s.Xd)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:T,height:E,overflow:"hidden",backgroundColor:_?(0,h.KVz)(A):(0,h.QSX)(A),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:b?"0px":"100%",height:b?"0px":_?(0,h.tbf)(A):(0,h.CBm)(A)&&"product"==F?"auto":(0,h.R7q)(A)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==A&&b&&S?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,style:{height:"100%",width:T,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):b&&!S&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,height:"100%",width:T,onLoad:()=>{k(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:T,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var f=function(t){var e;return(0,m.jsx)(g,{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 w(t){var e,i,o;const[l,d]=(0,r.A)(),[c,g]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),j=t.setDuration,y=(0,n.useRef)(null),b=(0,s.Xd)("whatmoreShopId"),C=t.timeUpdateCallback,{whatmoreIsPreviewMode:S}=(0,n.useContext)(v.B),k=(0,s.Xd)("whatmoreLandingLocationType"),I=null!==(e=t.height)&&void 0!==e?e:"100%",_=null!==(i=t.width)&&void 0!==i?i:"100%",z=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,E=null===t||void 0===t?void 0:t.posterImage;return(0,n.useEffect)((()=>{y.current&&(t.isPlaying?y.current.paused&&y.current.play():y.current.pause(),C&&y.current.addEventListener("timeupdate",(t=>{var e,i;y.current&&C(null!==(e=y.current.currentTime)&&void 0!==e?e:0,null!==(i=y.current.duration)&&void 0!==i?i:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:_,height:I,overflow:"hidden",backgroundColor:S?(0,h.KVz)(b):(0,h.QSX)(b),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{style:{width:c?"100%":"0px",height:c?S?(0,h.tbf)(b):(0,h.CBm)(b)&&"product"==k?"auto":(0,h.R7q)(b):"0px"},children:(0,m.jsxs)("video",{ref:y,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!z&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&y.current&&y.current.play(),(0,h.fwF)(b)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&y.current&&y.current.play(),setTimeout((()=>{!t.isPlaying&&y.current&&y.current.pause()}),(0,p.n)()?1900:800))},onLoadedMetadata:()=>{y.current&&j&&j(y.current.duration)},poster:"banner"==t.source?t.url:E,children:[(0,m.jsx)("source",{src:t.url,type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==b&&!c&&f?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,style:{height:"100%",width:_,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,height:"100%",width:_,onLoad:()=>{w(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:_,height:I,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var j=function(t){var e,i,r,a;return(0,o.Il)(t.event)?(0,m.jsx)(d.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,n.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,m.jsx)(f,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(r=t.isVideoMuted)&&void 0!==r?r:null,source:t.source,posterImage:null===(a=t.event)||void 0===a?void 0:a.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,m.jsx)(w,{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})}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},1079:function(t,e,i){var n=i(10),o=(i(9950),i(3080)),r=i(664),l=i(8283),a=i(1348),d=i(140),s=i(4414);l.i7`
|
107
|
-
0% {
|
108
|
-
opacity: 0;
|
109
|
-
}
|
110
|
-
10%{
|
111
|
-
opacity: 0.5;
|
112
|
-
}
|
113
|
-
20%{
|
114
|
-
opacity: 1;
|
115
|
-
}
|
116
|
-
|
117
|
-
`;const c=function(t,e){return(0,a.BLb)(e)?t+"?"+(0,a.VCz)(e)+"&"+(0,a.Spk)(e)+"&"+(0,a.yD5)(e):t};e.A=function(t){var e;const[i,l,u,h]=(0,o.A)(),p=(0,r.Xd)("isInDesignMode"),v=(0,r.Xd)("isDemoBrand"),x=(0,r.Xd)("whatmoreSecondaryColor"),m=(0,r.Xd)("whatmorePrimaryFont"),g=(0,r.Xd)("whatmoreShopId"),f=t.cta,w=.06*h;return(0,s.jsx)(n.ov,{children:(0,s.jsx)(n.BJ,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*h+"px",marginTop:.03*h+"px",children:(0,s.jsx)(n.N_,{href:c(f.cta_link,g),color:"white",onClick:()=>{p||v||(async()=>{(0,d.TG)(t)})()},children:(0,s.jsx)(n.EY,{fontSize:w*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:t.isBanner?x:"#fff",bgColor:t.isBanner?"#fff":x,borderRadius:"round"==(0,a.hep)(g)?"5px":"0",sx:{boxShadow:"1px 1px #0000001a",fontFamily:m+" !important",textAlign:"center!important",fontWeight:t.isBanner?"bold":void 0},padding:"10px",paddingX:.06*h+"px",children:f.cta_title})})})})}},8385:function(t,e,i){i.d(e,{c:function(){return a}});var n=i(6649),o=i(9950),r=(i(4365),i(4414));function l(t){const[e,i,o]=(0,n.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:i?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{minWidth:t.defaultHeight,minHeight:t.defaultWidth}})})}function a(t){var e,i;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,i=!1;function n(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(i=!0,e=t.touches[0].clientX):(i=!0,e=t.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",i=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",n),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(i=t.dataList)||void 0===i?void 0:i.map(((e,i)=>(0,r.jsx)(l,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},6670:function(t,e,i){var n=i(9950),o=i(664);e.A=function(t){const[e,i]=(0,o.QN)("muted");return(0,n.useEffect)((()=>{}),[]),[e,i]}},3080:function(t,e,i){var n=i(7300);e.A=function(t){const[e,i,o]=(0,n.A)();var r="landscape"==e?i*(9/16):o;if("landscape"==e){const t=.85;return[i,r,i*t,r*t]}return[i,r,i,r]}},6125:function(){}}]);
|