whatmore-react-assets 1.0.1358 → 1.0.1360
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/static/css/926.36fbef9a.chunk.css +1 -0
- package/static/css/atc-with-form.4dd2fc0f.chunk.css +1 -0
- package/static/css/banner-template-a.f657b056.chunk.css +2 -0
- package/static/css/carousel-template-a.eb268035.chunk.css +2 -0
- package/static/css/carousel-template-b.37c2261b.chunk.css +2 -0
- package/static/css/carousel-template-f.2b8a75c8.chunk.css +2 -0
- package/static/css/carousel-template-feed.86cd998f.chunk.css +2 -0
- package/static/css/carousel-template-g.eb268035.chunk.css +2 -0
- package/static/css/carousel-template-h.eb268035.chunk.css +2 -0
- package/static/css/carousel-template-view-more.86cd998f.chunk.css +2 -0
- package/static/css/collections-template-a.0e6b0d05.chunk.css +2 -0
- package/static/css/collections-template-b.0e6b0d05.chunk.css +2 -0
- package/static/css/collections-template-c.0e6b0d05.chunk.css +2 -0
- package/static/css/collections-template-stories.0e6b0d05.chunk.css +2 -0
- package/static/css/event-click-main.6cd2ba85.chunk.css +2 -0
- package/static/css/event-click-product.4dd2fc0f.chunk.css +1 -0
- package/static/css/event-click-spotlight.4dd2fc0f.chunk.css +1 -0
- package/static/css/product-page-view.16c8c538.chunk.css +2 -0
- package/static/css/spotlight-view.16c8c538.chunk.css +2 -0
- package/static/css/stories-template-a.9684dc79.chunk.css +2 -0
- package/static/js/13.f1f86e40.chunk.js +1 -0
- package/static/js/210.e86cb1a7.chunk.js +1 -0
- package/static/js/219.286a9494.chunk.js +1 -0
- package/static/js/240.b51848e0.chunk.js +2 -0
- package/static/js/348.0e86fe3d.chunk.js +1 -0
- package/static/js/576.4ab6f670.chunk.js +1 -0
- package/static/js/707.66345c25.chunk.js +1 -0
- package/static/js/733.c97148aa.chunk.js +1 -0
- package/static/js/745.ffffc6ff.chunk.js +2 -0
- package/static/js/751.f7c63b81.chunk.js +1 -0
- package/static/js/819.0610382e.chunk.js +2 -0
- package/static/js/824.e5ee324a.chunk.js +2 -0
- package/static/js/app-main.79ec627a.chunk.js +1 -0
- package/static/js/carousel-template-a.8adab1fb.chunk.js +1 -0
- package/static/js/carousel-template-b.f24d1761.chunk.js +1 -0
- package/static/js/carousel-template-f.53c9c8b5.chunk.js +1 -0
- package/static/js/{carousel-template-feed.ad73c3ed.chunk.js → carousel-template-feed.71618185.chunk.js} +1 -15
- package/static/js/{carousel-template-g.2f70770b.chunk.js → carousel-template-g.e80aa071.chunk.js} +1 -1
- package/static/js/{carousel-template-h.eada0967.chunk.js → carousel-template-h.f6884ddc.chunk.js} +1 -1
- package/static/js/carousel-template-view-more.ef4c224a.chunk.js +1 -0
- package/static/js/{homepage-carousel-view.4c9ccc86.chunk.js → homepage-carousel-view.d2a42242.chunk.js} +1 -1
- package/static/js/product-page-view.1e010af9.chunk.js +1 -0
- package/static/js/recommended-carousel.dc3caff3.chunk.js +2 -0
- package/static/js/{spotlight-view.2f2adc85.chunk.js → spotlight-view.ab3e68b4.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/css/926.a9bfc3e2.chunk.css +0 -1
- package/static/css/atc-with-form.1c72edff.chunk.css +0 -1
- package/static/css/banner-template-a.8a77400a.chunk.css +0 -2
- package/static/css/carousel-template-a.669988a3.chunk.css +0 -2
- package/static/css/carousel-template-b.5ef4e6e7.chunk.css +0 -2
- package/static/css/carousel-template-f.a44db16b.chunk.css +0 -2
- package/static/css/carousel-template-feed.88626dee.chunk.css +0 -2
- package/static/css/carousel-template-g.669988a3.chunk.css +0 -2
- package/static/css/carousel-template-h.669988a3.chunk.css +0 -2
- package/static/css/carousel-template-view-more.88626dee.chunk.css +0 -2
- package/static/css/collections-template-a.adacce88.chunk.css +0 -2
- package/static/css/collections-template-b.adacce88.chunk.css +0 -2
- package/static/css/collections-template-c.adacce88.chunk.css +0 -2
- package/static/css/collections-template-stories.adacce88.chunk.css +0 -2
- package/static/css/event-click-main.b3ba6af8.chunk.css +0 -2
- package/static/css/event-click-product.1c72edff.chunk.css +0 -1
- package/static/css/event-click-spotlight.1c72edff.chunk.css +0 -1
- package/static/css/product-page-view.e0f89b47.chunk.css +0 -2
- package/static/css/spotlight-view.e0f89b47.chunk.css +0 -2
- package/static/css/stories-template-a.082408c6.chunk.css +0 -2
- package/static/js/13.b216da25.chunk.js +0 -1
- package/static/js/210.d4c6f9a4.chunk.js +0 -1
- package/static/js/219.b2d0470c.chunk.js +0 -1
- package/static/js/240.9c510ae9.chunk.js +0 -2
- package/static/js/348.a694ac78.chunk.js +0 -117
- package/static/js/577.646fa55d.chunk.js +0 -1
- package/static/js/733.a1c82e7f.chunk.js +0 -1
- package/static/js/745.107e7775.chunk.js +0 -2
- package/static/js/751.5db82505.chunk.js +0 -1
- package/static/js/800.38fa0179.chunk.js +0 -2
- package/static/js/819.c2077f1e.chunk.js +0 -2
- package/static/js/824.fb61bff5.chunk.js +0 -2
- package/static/js/app-main.480cd95a.chunk.js +0 -1
- package/static/js/carousel-template-a.3ce0a376.chunk.js +0 -1
- package/static/js/carousel-template-b.04ad443d.chunk.js +0 -1
- package/static/js/carousel-template-f.ba6bed10.chunk.js +0 -1
- package/static/js/carousel-template-view-more.4b1e8a28.chunk.js +0 -45
- package/static/js/product-page-view.4182b9e5.chunk.js +0 -1
- package/static/js/recommended-carousel.9a69fdec.chunk.js +0 -2
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[348],{6348:function(t,e,n){n.r(e),n.d(e,{EventClickComponentContext:function(){return Rn},default:function(){return An}});var i=n(7313),o=n(2210),r=n(8486),l=n(5160),a=n(499),d=n(4897),s=n(3271),c=n(9854),u=n(7753),h=n(7789),p=n(7053),v=n(1896),x=n(6417);var m=function(t){return(0,x.jsx)(v.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},g=n(5098),f=n(3437),w=n(3455),j=n(6422);var y,C,b,S,I=function(t){const[e,n]=(0,j.Z)(),[i,o,r,l]=(0,h.Z)(),a=.08*l;function d(){n(!e)}return(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{cursor:"pointer",children:e?(0,x.jsx)(w.Z,{sx:{color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{d()}}):(0,x.jsx)(f.Z,{sx:{color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{d()}})})})},k=n(168),_=n(8449),T=n(686);const F=(0,T.F4)(y||(y=(0,k.Z)(["\n 0%,10%,15% {\n opacity: 0; \n }\n 25%{\n opacity: 0.25;\n transform: translateY(-25%);\n }\n 50%{\n opacity: 0.5;\n transform: translateY(0%);\n }\n 75% {\n opacity: 0.75;\n transform: translateY(-8%)\n }\n 100%{\n opacity: 1;\n transform: translateY(0%)\n }\n"]))),E="".concat(F," 0.5s linear"),P=(0,T.F4)(C||(C=(0,k.Z)(["\n 30% { transform: scale(1.2); }\n 40%, 60% { transform: rotate(-20deg) scale(1.2); }\n 50% { transform: rotate(20deg) scale(1.2); }\n 70% { transform: rotate(0deg) scale(1.2); }\n 100% { transform: scale(1); }\n"]))),O="\n ".concat(P," 1.5s linear;\n"),z=(0,T.F4)(b||(b=(0,k.Z)(["\n 3% { transform: scale(1.2); }\n 4%, 6% { transform: rotate(-20deg) scale(1.2); }\n 5%,7% { transform: rotate(20deg) scale(1.2); }\n 8% { transform: rotate(0deg) scale(1.2); }\n 10% { transform: scale(1); }\n"]))),L=("\n ".concat(z," 10s linear infinite;\n"),(0,T.F4)(S||(S=(0,k.Z)(["\n 0% { transform: scale(1); }\n 10% { transform: scale(1.2); }\n 20% { transform: scale(1); }\n"]))));"\n ".concat(L," 5s ease-in-out infinite;\n");var D,M=n(4937);const R=(0,T.F4)(D||(D=(0,k.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),A="\n ".concat(R," ").concat(3,"s ease-in-out;\n");function K(t){const[e,n,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmoreSecondaryColor"),[a,d]=(0,i.useState)(0),[p]=(0,u.j1)("whatmoreShopId"),v=t.event,m=t.onClick,f=v.products.length;t.isFirstProductsIconClickDone;(0,i.useEffect)((()=>{const t=setInterval((()=>{d((t=>(t+1)%f))}),3e3);return()=>{clearInterval(t)}}),[]);const w=.24,j=.024;var y=r*w+"px",C=r*w+"px",b=r*j*1.5+"px",S=r*j+"px",I=r*j*1.5+"px";if(void 0==v.products||0==v.products.length)return(0,x.jsx)(x.Fragment,{});var k=v.products;return(0,x.jsx)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,x.jsxs)(s.xu,{margin:"10px",width:y,height:C,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:E,onClick:()=>m(),children:[(0,x.jsx)(g.Ee,{width:"100%",height:"100%",src:k[a].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,c.yOX)(p)+" !important"},borderRadius:"lg",animation:A},a),(0,x.jsx)(s.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,x.jsx)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.Kq,{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.xv,{noOfLines:1,fontSize:S,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(M.Z,{sx:{color:"white",fontSize:I}})})]})})})}),(0,x.jsx)(s.Kq,{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.Ct,{fontSize:b,variant:"subtle",textColor:l,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:f>1?f:""})})]})})}var W,q,N=function(t){const[e,n]=(0,u.j1)("isProductSwiperCatalogOpen"),[o,r,l,a]=(0,h.Z)(),[d,c]=(0,i.useState)(!1),p=t.onToggle,v=t.event,m=.07*a,g=.15*l,f=.05*a;return(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.bK,{style:{marginTop:"10px"},children:e?(0,x.jsx)(_.Z,{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)(K,{event:v,onClick:()=>{p("products-button"),c(!0)},isFirstProductsIconClickDone:d})})})},Z=n(2634),V=n(6159),H=n(6336),U=n(5428),B=n(8022);var Y=function(t){var e,n;const[o,r,l,a]=(0,h.Z)(),[d,c]=(0,i.useState)(!0),{slideDirection:p}=(0,i.useContext)(Rn),v=((0,u.MO)("whatmoreShopId"),null!==(e=t.showForSeconds)&&void 0!==e?e:3),m=null!==(n=t.delayInSeconds)&&void 0!==n?n:1;t.swipeUp,(0,i.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*v);return()=>{clearTimeout(t)}}),[]);const g=.15*a,f=.07*a,w=(0,T.F4)(W||(W=(0,k.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateY(-100%) translateX(+10%) rotate(+30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),j="".concat(w," infinite 1.5s linear"),y=(0,T.F4)(q||(q=(0,k.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateX(30%) translateY(20%) rotate(-30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),C="".concat(y," infinite 1.5s linear");return(0,x.jsx)(H.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.M5,{animation:"vertical"===p?j:C,children:"vertical"===p?(0,x.jsx)(U.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(B.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var X=function(t){const[e,n]=(0,u.j1)("isFirstIndicatorRenderDone"),[o]=(0,u.j1)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,i.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,x.jsx)(Y,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},G=n(5180),Q=n(9316),J=n(5254);const $="15px";var tt=n(4522),et=n(778),nt=n(364);var it=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[o]=(0,u.j1)("whatmoreSecondaryColor"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p,v,m]=(0,h.Z)(),[g,f]=(0,i.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,i.useContext)(nt.I),C=.1*v,b=.95*m,S=.05*m;return(0,x.jsx)(s.Kq,{direction:"row",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,x.jsx)(s.xu,{width:b+"px",height:"fit-content",padding:"6px",marginTop:$,backgroundColor:o,borderRadius:"5px",animation:g?Q.mT:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.pq5)(a),onClick:()=>{f(!0),function(t,i){e||n||(async()=>{(0,l.wz)(t,i),(0,tt.GF)({userInteractionType:et.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[i],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj5)(a)?t.product_link+"?"+(0,c.awP)(a)+"&"+(0,c.n9s)(a)+"&"+(0,c.vaK)(a):t.product_link}(w)},_hover:{backgroundColor:(0,J.lA)(o,8)},cursor:"pointer",children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{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.Pvx)(a)})})})})})},ot=n(7009),rt=n(5945),lt=n(5456),at=n(6984),dt=n(6227),st=n(7329),ct=(n(9111),n(9748));const ut={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 ht(t){var e,n,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,i.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.xu,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?Q.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.Kq,{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.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===ut||void 0===ut||null===(o=ut[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,x.jsxs)(s.Kq,{direction:"row",backgroundColor:w?(0,J.lA)(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.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(st.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function pt(t){var e,n,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,i.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.xu,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(a)?r:(0,c.hmr)(a),onClick:t=>{t.stopPropagation(),v(),h(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.tan)(a)?(0,c.tan)(a):null!==(n=null===ut||void 0===ut||null===(o=ut[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,c.tan)(a),"\xa0"]})})})})}function vt(t){var e;const[n]=(0,u.j1)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,x.jsx)(s.xu,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function xt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("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.xu,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,c.ijd)(o)?(0,x.jsx)(ct.zx,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,x.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,x.jsx)(dt.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,x.jsx)(s.xv,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,x.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(at.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var mt=function(t){var e,n,i,o,r,l,a;const[d]=(0,u.j1)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,h=t.cartState,p=t.cartCount,v=t.onClickAtc,m=t.onCartIconClick;function g(){v()}const f=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==h?(0,x.jsx)(H.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(vt,{baseFontSize:s,width:f,height:w})}):"init"==h?0==p?(0,x.jsx)(pt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):c?(0,x.jsx)(H.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(xt,{onClick:g,baseFontSize:s,cartCount:p,width:f,height:w,onCartIconClick:m})}):(0,x.jsx)(pt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):(0,x.jsx)(ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:f,height:w,title:"awaitingVariantSelection"==h?null!==(l=null===ut||void 0===ut||null===(a=ut[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:d})},gt=n(6967),ft=n(873),wt=n(4844);const jt=(0,u.MO)("isInDesignMode"),yt=(0,u.MO)("isDemoBrand");async function Ct(t,e,n,i,o,r,l,a,d){return"shopify"==n?(0,wt.wW)(t,e,i,l,a,d,r):(jt||yt||(async()=>{(0,gt.FF)(o,r,l,a,d)})(),(0,ft.jg)(t,e,i))}function bt(t,e){return"shopify"==t?(0,wt.JL)(e):(0,ft.TE)(e)}var St=n(513);var It=function(t,e,n){const[o]=(0,u.j1)("whatmoreShopId"),[r]=(0,u.j1)("isInDesignMode"),[a]=(0,u.j1)("isDemoBrand"),[d,s]=(0,i.useState)(null),h=(0,i.useRef)(null),{closeClickComponent:v}=(0,i.useContext)(Rn),{whatmoreUserInfo:x}=(0,i.useContext)(nt.I),[m,g]=(0,i.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.bU)("whatmoreAllowAutoSlide",!1):(0,u.bU)("whatmoreAllowAutoSlide",!0)}function w(t){var e=[],n=[],i=[];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&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}function j(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function y(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function C(){if(h.current&&h.current.length>=1){return h.current.filter((t=>t.available)).length>=1}return!1}function b(t,i){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);Ct(d,1,(0,c.Ipo)(o),o,n,e,i,null===n||void 0===n?void 0:n.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,n){r||a||(async()=>{(0,l.JX)(t,e,n)})()}(n,e,1),f("init",m.cart_count+1),(0,u.bU)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.MO)("whatmoreAddedToCart")&&(0,St.D)(o,(()=>{}),100,window.location.hostname),(0,c.IKD)(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 n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.p)(e,(0,c.Ipo)(o),o).then((e=>{h.current=e.variants;const i=w(e);s(i),y(i)||n?C()?b([j(i[0]),j(i[1]),j(i[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},b,function(t){var e,n,i,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!==(n=l[0].compare_at_price)&&void 0!==n?n:0;return{price:((0,c.Ipo)(o),a),compare_price:((0,c.Ipo)(o),d),title:null!==(i=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==i?i:""}},function(){"do_nothing"!==(0,c.v9M)(o)&&("go_to_cart_page"!==(0,c.v9M)(o)?"open_cart_slider"!==(0,c.v9M)(o)||null!==v&&v():bt((0,c.Ipo)(o),o))}]},kt=n(9363);var _t=function(t){var e,n,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(n=t.height)&&void 0!==n?n:"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.j1)("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,i.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,i.useEffect)((()=>{h(w)}),[w]),(0,x.jsx)(s.Kq,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,n)=>{var i;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.type))return;const o=e.every((e=>{var n,i,o,r,l,a;return(null===t||void 0===t||null===(n=t.finalArr)||void 0===n||null===(i=n.finalArr)||void 0===i||null===(o=i.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.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,x.jsx)(s.M5,{width:"100%",children:(0,x.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.xv,{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.kC,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,i)=>{var r,l,a,d,u,h,p,f;return(0==n||(null===v||void 0===v||null===(r=v.variants)||void 0===r?void 0:r.find((t=>t["option".concat(n)]==(null===w||void 0===w?void 0:w[n-1])&&t["option".concat(n+1)]==(null===e||void 0===e?void 0:e.option)))))&&(0,x.jsxs)(s.xu,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var n,i;j([w[0],t,null===v||void 0===v||null===(n=v.variants)||void 0===n||null===(i=n.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===i?void 0:i.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,n)},backgroundColor:e.option===w[n]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[n]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[n]?"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.xv,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[n]?"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.Ee,{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,kt.s)(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}))},n)]},n)}))})},Tt=n(9219),Ft=n(6524);var Et=function(t){var e,n,o,r,a,d;const[v]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmoreSecondaryColor"),w=(0,u.MO)("whatmoreSecondaryColorShade900"),[j]=(0,u.j1)("whatmorePrimaryFont"),[y]=(0,u.j1)("whatmoreShopId"),[C,b,S,I]=(0,h.Z)(),[k,_]=(0,i.useState)(!1),[T,F]=(0,i.useState)(t.product),E=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(nt.I),[O,z,L,D,M,R,A]=It(0,T,t.event),[K,W]=(0,i.useState)(null),[q,N]=(0,i.useState)(parseFloat(T.price)),[Z,V]=(0,i.useState)(parseFloat(T.compare_price)),[U,B]=(0,i.useState)(null===T||void 0===T?void 0:T.title),[Y,X]=(0,i.useState)(T.currency),[G,it]=(0,i.useState)(null),at=t.event,dt=t.productClickHandler,{whatmoreIsPreviewMode:st}=(0,i.useContext)(nt.I),[ut,ht]=(0,i.useState)(null),[pt,vt]=(0,i.useState)(!1);(0,i.useEffect)((()=>{(0,c.N8M)(y)&&(0,Tt.Rb)(T,(0,c.Ipo)(y),y).then((t=>{F(t),N(parseFloat(t.price)),V(parseFloat(t.compare_price)),X(t.currency),vt(!0)}));(async()=>{var t,e,n,i,o,r;const l=await(0,p.p)(T,(0,c.Ipo)(y),y);it(l),N("61916709004"==y&&null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price),V("61916709004"==y&&null!==(i=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!==i?i:null===l||void 0===l?void 0:l.compare_at_price),vt(!0)})()}),[]),(0,i.useEffect)((()=>{var t,e;const n=null!=G?null===G||void 0===G||null===(t=G.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,i=-1!==n?null===G||void 0===G||null===(e=G.variants)||void 0===e?void 0:e.map((t=>{var e,i;const o=null===t||void 0===t?void 0:t["option".concat(n+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===(i=t.featured_image)||void 0===i?void 0:i.src}:null})):[];let o=[];var r;-1!==n&&(o=null===G||void 0===G||null===(r=G.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ht({position:n,finalArr:i,finalArrExternal:o})}),[G]);var xt=.68*I,gt=.55*xt,ft=.4*xt,wt=xt*(.55-.4),jt=xt+"px",yt=ft+"px",Ct=wt+"px",bt=.12*ft;const St=(0,c.ITD)(y);function Et(){window.location.href=function(t){return(0,c.lj5)(y)?t.product_link+"?"+(0,c.awP)(y)+"&"+(0,c.n9s)(y)+"&"+(0,c.vaK)(y):t.product_link}(T)}const Pt=P.landingLocationType,Ot=P.templateType,zt=(0,Ft.NY)(Pt)+(0,Ft.dS)(Ot)+(null!==at&&void 0!==at&&at.isRelatedEvent?"R":"E")+"_"+(null===at||void 0===at?void 0:at.event_id);return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:$,marginBottom:(0,c.pq5)(y),width:jt,height:"fit-content",boxShadow:"round"==E?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==y?Et():dt(e),_(!0)}(at,T)},backgroundColor:(0,J.lA)("#ffffff",(0,c.U5_)(y)),animation:k?Q.mT:null,borderRadius:"round"==E?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(y),borderColor:(0,c.qPe)(y)},children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:yt,width:yt,bgColor:"STRDOIDF6O7"==y?"#f7f7f7":w,children:(0,x.jsx)(g.Ee,{width:yt,height:yt,src:(0,kt.s)(null!==(e=null!==(n=null===ut||void 0===ut||null===(o=ut.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===K||void 0===K?void 0:K[null===ut||void 0===ut?void 0:ut.position]))))||void 0===r?void 0:r.src)&&void 0!==n?n:null===ut||void 0===ut||null===(a=ut.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===K||void 0===K?void 0:K[null===ut||void 0===ut?void 0:ut.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(y)+" !important"}})}),(0,x.jsxs)(s.xu,{height:yt,width:xt-ft+"px",children:[(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(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*bt+"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,rt.s)(U,"prod-tile")}),(0,c.QaY)(y)?(0,x.jsxs)(s.Kq,{className:"whatmore-product-atc-price",direction:(0,c.$zZ)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==E?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[pt&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(0,c.Rqt)(y)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.Uyp)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,Tt.jx)(null!==q&&void 0!==q?q:null===T||void 0===T?void 0:T.price,"",y,Y)," \xa0"]}),(0,lt.B)(q,Z)&&pt?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(0,c.Rqt)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.kPs)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Tt.jx)(null!==Z&&void 0!==Z?Z:null===T||void 0===T?void 0:T.compare_price,"",y,Y)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xv,{fontSize:.82*bt*(0,c.Rqt)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.eod)(y)+" !important"},children:st?(0,c.qde)(y):(0,c.aTS)(y)})]}),(0,c.Fr)(y)?(0,x.jsx)(s.Kq,{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.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==E?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.ML$)(y)?(0,x.jsx)(ct.zx,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.xv,{color:"white",paddingX:"6px",fontSize:.8*bt+"px",children:"VIEW PRODUCT"})}):(0,x.jsx)(ot.Z,{sx:{color:f,fontSize:1.3*bt+"px"}})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(H.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==O.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==O.state&&null!=L?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*gt+"px",marginBottom:.1*gt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:gt*St+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(_t,{width:jt,height:"fit-content",event:at,product:T,finalArr:ut,data:G,productVariantOptions:L,baseFontSize:1.2*bt,onOptionSelected:t=>{!function(t){W(t);const e=R(t);e&&(N(e.price),V(e.compare_price),e.title.includes(" ")&&B(e.title))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.Kq,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Ct,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(mt,{baseFontSize:.3*wt,setProductVariantTitle:B,product:T,cartState:O.state,cartCount:O.cart_count,updateCartState:z,onClickAtc:t=>{"init"==O.state?(D(zt),(0,tt.GF)({userInteractionType:et.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:P,event:at,productList:[T],ctaList:at.cta})):"awaitingVariantSelection"==O.state&&(M(K,zt),B(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{A()}})})]})},Pt=n(3867);var Ot=function(t){var e,n,i;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),[d]=(0,u.j1)("whatmorePrimaryFont"),c=t.event,h=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,x.jsx)(s.rU,{href:h.product_link,color:a,onClick:()=>{!function(t,e){o||r||(async()=>{(0,l.$L)(t,e)})()}(c,h)},children:(0,x.jsx)(s.xu,{width:v,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:d+" !important",color:a+" !important"},children:" VIEW MORE "})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(ot.Z,{sx:{color:a,fontSize:1.4*p}})})]})})})},zt=n(6163);function Lt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,i.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.xu,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(r)?n:(0,c.hmr)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?Q.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.jsxs)(s.xv,{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.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Dt=function(t){var e,n,i;const[o]=(0,u.j1)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",h=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,x.jsx)(Lt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Pvx)(o)})};var Mt=function(t){var e;const[n]=(0,u.j1)("isInDesignMode"),[o]=(0,u.j1)("isDemoBrand"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,v,m,f]=(0,h.Z)(),[w,j]=(0,i.useState)(!1),[y,C]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:b}=(0,i.useContext)(nt.I),[S,I,k,_,T,F,E]=It(0,y,t.event),[P,O]=(0,i.useState)(null),[z,L]=(0,i.useState)(parseFloat(y.price)),[D,M]=(0,i.useState)(parseFloat(y.compare_price)),[R,A]=(0,i.useState)(y.currency),[K,W]=(0,i.useState)(!1),q=t.event,N=t.productClickHandler,Z=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,V=b.landingLocationType,U=b.templateType,B=(0,Ft.NY)(V)+(0,Ft.dS)(U)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,i.useEffect)((()=>{(0,c.N8M)(a)&&(0,Tt.Rb)(y,(0,c.Ipo)(a),a).then((t=>{C(t),L(parseFloat(t.price)),M(parseFloat(t.compare_price)),A(t.currency)}));(async()=>{const t=await(0,p.p)(y,(0,c.Ipo)(a),a);L(null===t||void 0===t?void 0:t.price),M(null===t||void 0===t?void 0:t.compare_at_price),W(!0)})()}),[]);var Y=f*Z,X=.3*Y,G=Y+"px",J=.7*X,it=.9*J,ot=.12*X;const at=(0,c.ITD)(a);function dt(t,e){n||o||(async()=>{(0,l.wz)(t,e)})(),N(e),j(!0)}return(0,x.jsx)(s.Kq,{direction:"row",width:G,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.xu,{marginTop:$,marginBottom:(0,c.pq5)(a),width:G,onClick:t=>{},animation:w?Q.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{dt(q,y)},children:[(0,x.jsx)(s.xu,{height:J+"px",width:J+"px",children:(0,x.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.xu,{height:it+"px",width:it+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g.Ee,{width:it+"px",height:it+"px",src:y.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.xu,{height:J+"px",width:Y-J+"px",children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,rt.s)(y.title.toString())}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.QaY)(a)?(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[K&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:1*ot+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,Tt.jx)(null!==z&&void 0!==z?z:null===y||void 0===y?void 0:y.price,"",a,R)," \xa0"]}),(0,x.jsx)(s.M5,{children:(0,lt.B)(y.price,y.compare_price)&&K?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.8*ot+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,Tt.jx)(null!==D&&void 0!==D?D: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.M5,{children:(0,x.jsx)(Pt.Z,{storeId:a,productId:y.client_product_id,productLink:y.product_link,fontSize:1*ot,fontColor:"white"})})]})]})})]}),(0,x.jsx)(H.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=k?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*X+"px",marginBottom:.1*X+"px",overflowY:"auto",overflowX:"hidden",maxHeight:X*at+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(_t,{width:G,height:"fit-content",event:q,product:y,productVariantOptions:k,baseFontSize:1*ot,onOptionSelected:t=>{!function(t){O(t);const e=F(t);e&&(L(e.price),M(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.xu,{width:"100%",height:"100%",children:(0,x.jsx)(Ot,{baseFontSize:.8*ot,event:q,product:y,width:"100%",height:"100%"})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib9)(a)?(0,x.jsx)(Dt,{baseFontSize:.8*ot,event:q,product:y,borderRadius:"md",onShopNowClick:t=>{dt(q,y)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c._5p)(a)?(0,x.jsx)(zt.default,{baseFontSize:.8*ot,event:q,product:y,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(mt,{baseFontSize:.8*ot,event:q,product:y,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(_(B),(0,tt.GF)({userInteractionType:et.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:b,event:q,productList:[y],ctaList:q.cta})):"awaitingVariantSelection"==S.state&&T(P,B)},onCartIconClick:()=>{E()}})})})]})]})})})};var Rt=function(t){var e,n;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),d=(0,u.MO)("whatmoreSecondaryColorShade900"),[v]=(0,u.j1)("whatmorePrimaryFont"),[m]=(0,u.j1)("whatmoreShopId"),[f,w,j,y]=(0,h.Z)(),[C,b]=(0,i.useState)(!1),[S,I]=(0,i.useState)(t.product),k=(0,u.MO)("whatmoreUITheme"),[_,T]=(0,i.useState)(!1),[F,E]=(0,i.useState)(parseFloat(S.price)),[P,O]=(0,i.useState)(parseFloat(S.compare_price)),[z,L]=(0,i.useState)(S.currency),D=t.event,[M,R]=(0,i.useState)();(0,i.useEffect)((()=>{(0,c.N8M)(m)&&(0,Tt.Rb)(S,(0,c.Ipo)(m),m).then((t=>{I(t),E(parseFloat(t.price)),O(parseFloat(t.compare_price)),L(t.currency),T(!0)}));(async()=>{const t=await(0,p.p)(S,(0,c.Ipo)(m),m);R(t),T(!0)})()}),[]);var A=.68*y,K=.4*A,W=A+"px",q=K+"px",N=A*(.55-.4)+"px",Z=.12*K;(0,c.ITD)(m);const{whatmoreWidgetSourceDetails:V}=(0,i.useContext)(nt.I);function H(t){return(0,c.lj5)(m)?t.product_link+"?"+(0,c.awP)(m)+"&"+(0,c.n9s)(m)+"&"+(0,c.vaK)(m):t.product_link}function U(t,e){o||r||(async()=>{(0,l.wz)(t,e),(0,tt.GF)({userInteractionType:et.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:V,event:t,productList:[e],ctaList:t.cta})})(),b(!0)}return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:$,marginBottom:(0,c.pq5)(m),width:W,height:"fit-content",boxShadow:"round"==k?"dark-lg":null,onClick:()=>{U(D,S),window.location.href=H(S)},backgroundColor:(0,J.lA)("#ffffff",(0,c.U5_)(m)),animation:C?Q.mT:null,borderRadius:"round"==k?"xl":null,overflow:"hidden",onAnimationEnd:()=>{b(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(m),borderColor:(0,c.qPe)(m)},children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:q,width:q,children:(0,x.jsx)(g.Ee,{width:q,height:q,src:(0,kt.s)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(m)+" !important"}})}),(0,x.jsxs)(s.xu,{height:q,width:A-K+"px",children:[(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(m)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.jsx)(s.xv,{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:v+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*Z+"px !important"},children:(0,rt.s)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,c.QaY)(m)?(0,x.jsxs)(s.Kq,{className:"whatmore-product-shopnow-price",direction:(0,c.$zZ)(m)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==k?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,x.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*Z+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:(0,c.Uyp)(m)+" !important",margin:"0px !important"},children:[" "+(0,Tt.jx)(null!==(e=null===M||void 0===M?void 0:M.price)&&void 0!==e?e:F,"",m,z)," \xa0"]}),(0,lt.B)(F,P)&&_?(0,x.jsxs)(s.xv,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*Z+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:(0,c.kPs)(m)+" !important",margin:"0px !important"},children:[" ",(0,Tt.jx)(null!==(n=null===M||void 0===M?void 0:M.compare_at_price)&&void 0!==n?n:P,"",m,z)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.sG7)(m)&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Z+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.V3Y)(m)+" !important",color:(0,c.aUT)(m)+" !important",margin:"0px !important"},children:["\xa0",(0,c.sG7)(m)," \xa0"]})]}),(0,c.Fr)(m)?(0,x.jsx)(s.Kq,{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.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==k?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(ot.Z,{sx:{color:a,fontSize:1.3*Z+"px"}})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.pp3)(m)&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:N,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(Dt,{baseFontSize:.8*Z,event:D,product:S,borderRadius:"md",onShopNowClick:t=>{U(D,S),window.location.href=H(S)}})})]})};function At(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,i.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)(Kt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:v}):(0,x.jsxs)(s.xu,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?Q.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.Kq,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.xv,{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.Kq,{direction:"row",backgroundColor:g?(0,J.lA)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(st.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function Kt(t){const[e]=(0,u.j1)("whatmoreSecondaryColor"),[n]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[r,l]=(0,i.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,x.jsx)(s.Kq,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,x.jsx)(s.xu,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?Q.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:"".concat(n," !important"),color:"".concat((0,c.KCy)(o)," !important")},children:(0,c.tan)(o)})})})})})}function Wt(t){var e;const[n]=(0,u.j1)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,x.jsx)(s.xu,{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.Kq,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,x.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.2*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function qt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("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.xu,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.Kq,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.M5,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,x.jsx)(dt.Z,{sx:{color:n,fontSize:1.6*r}}):(0,x.jsx)(ct.zx,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,x.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.xv,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,x.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(at.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var Nt=function(t){var e,n,i,o;const[r]=(0,u.j1)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(H.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,x.jsx)(Wt,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(Kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(H.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,x.jsx)(qt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(Kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(At,{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 Zt=function(t){var e,n,o,r,a,d;const[v]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmorePrimaryFont"),[w]=(0,u.j1)("whatmoreShopId"),[j,y,C,b]=(0,h.Z)(),[S,I]=(0,i.useState)(!1),[k,_]=(0,i.useState)(t.product),T=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,i.useContext)(nt.I),[E,P,O,z,L,D,M]=It(0,k,t.event),[R,A]=(0,i.useState)(null),[K,W]=(0,i.useState)(parseFloat(k.price)),[q,N]=(0,i.useState)(parseFloat(k.compare_price)),[Z,V]=(0,i.useState)(k.currency),[H,U]=(0,i.useState)(null),B=t.event,Y=t.productClickHandler,[X,G]=(0,i.useState)(null),[it,ot]=(0,i.useState)(!1),at=F.landingLocationType,dt=F.templateType,st=(0,Ft.NY)(at)+(0,Ft.dS)(dt)+"_"+(null===B||void 0===B?void 0:B.event_id);(0,i.useEffect)((()=>{(0,c.N8M)(w)&&(0,Tt.Rb)(k,(0,c.Ipo)(w),w).then((t=>{_(t),W(parseFloat(t.price)),N(parseFloat(t.compare_price)),V(t.currency),ot(!0)}));(async()=>{const t=await(0,p.p)(k,(0,c.Ipo)(w),w);U(t),W(null===t||void 0===t?void 0:t.price),N(null===t||void 0===t?void 0:t.compare_at_price),ot(!0)})()}),[]),(0,i.useEffect)((()=>{var t,e;const n=null!=H?null===H||void 0===H||null===(t=H.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,i=-1!==n?null===H||void 0===H||null===(e=H.variants)||void 0===e?void 0:e.map((t=>{var e,i;const o=null===t||void 0===t?void 0:t["option".concat(n+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===(i=t.featured_image)||void 0===i?void 0:i.src}:null})):[];let o=[];var r;-1!==n&&(o=null===H||void 0===H||null===(r=H.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));G({position:n,finalArr:i,finalArrExternal:o})}),[H]);var ct=.72*b,ut=.37*ct,ht=ct*(.48-.37),pt=.95*ct+"px",vt=ut+"px",xt=.12*ut;function mt(){window.location.href=function(t){return(0,c.lj5)(w)?t.product_link+"?"+(0,c.awP)(w)+"&"+(0,c.n9s)(w)+"&"+(0,c.vaK)(w):t.product_link}(k)}return(0,x.jsx)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:$,marginBottom:"24px",width:pt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==w?mt():Y(e),I(!0)}(B,k)},backgroundColor:(0,J.lA)("#ffffff",(0,c.U5_)(w)),animation:S?Q.mT:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{I(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(w),borderColor:(0,c.qPe)(w)},children:(0,x.jsxs)(s.Kq,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,x.jsx)(s.xu,{height:vt,width:vt,children:(0,x.jsx)(g.Ee,{width:"100%",height:"100%",src:(0,kt.s)(null!==(e=null!==(n=null===X||void 0===X||null===(o=X.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===X||void 0===X?void 0:X.position]))))||void 0===r?void 0:r.src)&&void 0!==n?n:null===X||void 0===X||null===(a=X.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===X||void 0===X?void 0:X.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(w)+" !important"}})}),(0,x.jsx)(s.xu,{height:vt,width:ct-ut+"px",children:(0,x.jsxs)(s.Kq,{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",xt+"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,rt.s)(null==k.title?"":k.title.toString())}),(0,c.QaY)(w)?(0,x.jsxs)(s.Kq,{direction:(0,c.$zZ)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*xt+"px"},children:[it&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*xt*(0,c.Rqt)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.Uyp)(w)+" !important",fontWeight:"bold"},children:[" "+(0,Tt.jx)(null!==K&&void 0!==K?K:null===k||void 0===k?void 0:k.price,"",w,Z)," \xa0"]}),(0,lt.B)(K,q)&&it?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*xt*(0,c.Rqt)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.kPs)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Tt.jx)(null!==q&&void 0!==q?q:null===k||void 0===k?void 0:k.compare_price,"",w,Z)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(Nt,{baseFontSize:.3*ht,event:B,product:k,cartState:E.state,cartCount:E.cart_count,updateCartState:P,onClickAtc:t=>{"init"===E.state?(z(st,!0),(0,tt.GF)({userInteractionType:et.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:B,productList:[k],ctaList:B.cta})):"awaitingVariantSelection"===E.state&&Y(k)},onCartIconClick:t=>{M()}})]})})]})})};var Vt=function(t){const[e]=(0,u.j1)("whatmoreShopId"),[n]=(0,u.j1)("isWhatmoreWebsite"),i=(0,c.eyg)(e),o=t.event,r=t.product;return n?(0,x.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==i?(0,x.jsx)(Et,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==i?(0,x.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==i?(0,x.jsx)(Zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==i?(0,x.jsx)(it,{product:t.product,event:t.event}):"narrow-tile"==i?(0,x.jsx)(Mt,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,x.jsx)(x.Fragment,{})},Ht=n(6119),Ut=n(3388),Bt=n(7643);var Yt=function(t){const[e,n,i,l]=(0,h.Z)(),[a]=(0,u.j1)("whatmoreShopId"),d=(0,u.MO)("isInDesignMode"),p=(0,u.MO)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.eyg)(a);if(!(0,Ut.kT)(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.rnv)(a)?(0,x.jsx)(s.Kq,{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)(Bt.u,{userInteractionType:et.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(Mt,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.Kq,{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.M5,{children:(0,x.jsx)(Bt.u,{userInteractionType:et.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(Vt,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.M5,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.xu,{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.tq,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.VqZ)(a)?0:1,centeredSlides:!(0,c.VqZ)(a),modules:[r.Gk],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.o5,{children:(0,x.jsx)(Bt.u,{userInteractionType:et.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(Vt,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.pp3)(a)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(o.o5,{children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,x.jsx)(Ht.Z,{fontFactor:.75,cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Xt=function(t){const[e,n]=(0,u.j1)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,i.useContext)(Rn).isIOS&&e?(0,x.jsx)(Yt,{event:o,productClickHandler:r},o.event_id):(0,x.jsx)(H.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Yt,{event:o,productClickHandler:r},o.event_id)})};function Gt(t){const e=t.event,[n,i,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont");return(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.xv,{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)(Z.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Qt,Jt=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[o,r]=(0,u.j1)("isProductSwiperCatalogOpen"),[l,a]=(0,j.Z)(),[d,h]=(0,u.j1)("isFirstIndicatorRenderDone"),p=(0,i.useContext)(Rn),[v]=(0,u.j1)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,y=t.productClickHandler;return(0,x.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Gt,{event:m}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(I,{focusRef:w}),(0,x.jsx)(V.Z,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.xu,{width:"full",margin:"2px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(X,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(v)?(0,x.jsx)(s.xu,{w:"100%",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(N,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Xt,{event:m,productClickHandler:y})})]}):(0,x.jsx)("div",{})]})]})})},$t=n(8302);function te(t){const[e,n,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p]=(0,i.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*r*.8*.13;(0,i.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=".concat(t,"&product=").concat(null===v||void 0===v?void 0:v.id,"&title=").concat(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: ".concat(t.status));return t.json()})).then((t=>{var e,n,i,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.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=(0,T.F4)(Qt||(Qt=(0,k.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),j="".concat(w," 0.5s");return(0,x.jsx)(s.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:j,justifyContent:"center",alignItems:"center",children:(0,x.jsxs)(s.xu,{width:"100%",height:"100%",children:[(0,x.jsx)(g.Ee,{width:"100%",height:"auto",src:(0,c.Zb8)(a)?d:(0,c.KM)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,x.jsx)(s.Kq,{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.Kq,{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)($t.Z,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*f,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var ee=n(5630),ne=n(6665);function ie(t){var e;const[n,o]=(0,i.useState)(null),r=t.product;return(0,i.useEffect)((()=>{(0,wt.bN)(r).then((t=>{o(t.variants)}))}),[]),null==n?(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(n).toString()})]})})}function oe(t){const e=t.product;return(0,x.jsx)(ie,{product:e,variantId:t.variantId,height:t.height,width:t.width})}function re(t){var e,n,o,r,a,d,h,p;const[v]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[g]=(0,u.j1)("whatmoreShopId"),[f]=(0,u.j1)("whatmorePrimaryFont"),[w]=(0,u.j1)("whatmoreSecondaryColor"),[j]=(0,u.j1)("websiteLanguage"),y=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:C,whatmoreUserInfo:b}=(0,i.useContext)(nt.I),[S,I]=(0,i.useState)(!1),{closeClickComponent:k}=(0,i.useContext)(Rn),[_,T]=(0,i.useState)(!1),F=t.FONT_SIZE,E=t.data,P=t.event,z=t.selectedVariantId,L=t.product,D=t.itemQuantity,M=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,A=t.addToCartFlag,K=t.setAddToCartFlag,W=t.soldOutFlag,q=t.setSoldOutFlag,N=C.landingLocationType,Z=C.templateType,V=(0,Ft.NY)(N)+(0,Ft.dS)(Z)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const H=t=>{var e,n;(function(t,e){v||m||(async()=>{(0,l.$L)(t,e)})()}(P,L),"buy-now"==t)&&(!function(t,e,n,i,o,r,l){"shopify"==n?(0,wt.bj)(t,e,i,o,r,l):(0,ft.rY)(t,e,i)}(void 0!==z?z:null===E||void 0===E||null===(e=E.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.id,D,(0,c.Ipo)(g),g,V,null===P||void 0===P?void 0:P.location,null===b||void 0===b?void 0:b.userType),(0,tt.GF)({userInteractionType:et.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:C,event:P,productList:[L],ctaList:P.cta}));"view-more"==t&&((0,c.lj5)(g)?window.location.href=L.product_link+"?"+(0,c.awP)(g)+"&"+(0,c.n9s)(g)+"&"+(0,c.vaK)(g)+((0,c.C0m)(g)?"¤cy="+L.currency:""):window.location.href=L.product_link+((0,c.C0m)(g)?"?currency="+L.currency:""))};return(0,x.jsxs)(s.Kq,{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*F,children:[" ",W?(0,x.jsx)(ct.zx,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==y?"5px":"0px",borderWidth:(0,c.alU)(g),borderColor:(0,c.qPe)(g)},children:(0,x.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:f+" !important"},children:"Sold Out"})}):(0,x.jsxs)(s.Kq,{direction:"vertical"==(0,c.rc3)(g)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*F,justifyContent:"center",children:[(0,c.$bv)(g)?(0,x.jsx)(ct.zx,{width:"fit-content",height:2.5*F,onClick:async t=>{var e,n;t.stopPropagation(),I(!0),function(t,e,n){v||m||(async()=>{(0,l.JX)(t,e,n)})()}(P,L,D),(0,tt.GF)({userInteractionType:et.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:C,event:P,productList:[L],ctaList:P.cta});const i=null!==z&&void 0!==z?z:null===E||void 0===E||null===(e=E.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.id;if(!i)return console.log("ERROR! No variants available."),void I(!1);Ct(i,D,(0,c.Ipo)(g),g,P,L,V,null===P||void 0===P?void 0:P.location,null===b||void 0===b?void 0:b.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(I(!1),K(!0),(0,u.bU)("whatmoreAddedToCart",!0),(0,c.kad)(g)&&(v||(async()=>{await(0,wt.Mj)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{I(!1),q(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,c.hmr)(g)?w+" !important":(0,c.hmr)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.p5R)(g),borderColor:"#343434"===(0,c.hmr)(g)?w:(0,c.hmr)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,c.p5R)(g),borderColor:"#343434"===(0,c.yxc)(g)?w:(0,c.yxc)(g)}},children:S?(0,x.jsx)(ee.$,{display:"flex !important",color:"white"}):(0,x.jsx)(s.xv,{fontWeight:"extrabold !important",sx:{color:(0,c.KCy)(g)+" !important",fontFamily:f+" !important"},fontSize:F+"px !important",children:"ADD TO CART"!=(0,c.tan)(g)?(0,c.tan)(g):null!==(e=null===ut||void 0===ut||null===(n=ut[j])||void 0===n?void 0:n.add_to_cart)&&void 0!==e?e:(0,c.tan)(g)})}):(0,x.jsx)(x.Fragment,{}),(0,c.cDD)(g)?(0,x.jsx)(x.Fragment,{children:(0,c.H$w)(g)?(0,x.jsx)(oe,{variantId:void 0!==z?z:null===E||void 0===E||null===(o=E.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:L,height:2.5*F,width:"90%",fontSize:F,fontFamily:f}):(0,x.jsx)(x.Fragment,{children:(0,c.Stj)(g)?(0,x.jsx)(ct.zx,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>H("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,c.IIW)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.alU)(g),borderColor:(0,c.qPe)(g)},children:(0,x.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:"#343434"===(0,c.iKW)(g)?w+" !important":(0,c.iKW)(g)+" !important",fontFamily:f+" !important"},fontSize:F,children:"MORE INFO"!=(0,c.Z59)(g)?(0,c.Z59)(g):null!==(a=null===ut||void 0===ut||null===(d=ut[j])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,c.Z59)(g)})}):(0,x.jsx)(ct.zx,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:t=>{H("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,c.IIW)(g)+" !important",borderRadius:"round"==y?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,c.p5R)(g),borderColor:"#343434"===(0,c.yxc)(g)?w:(0,c.yxc)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,x.jsx)(s.xv,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,c.iKW)(g)?w+" !important":(0,c.iKW)(g)+" !important",fontFamily:f+" !important"},fontSize:F+"px !important",children:"BUY NOW"!=(0,c.ZuH)(g)?(0,c.ZuH)(g):null!==(h=null===ut||void 0===ut||null===(p=ut[j])||void 0===p?void 0:p.buy_now)&&void 0!==h?h:(0,c.ZuH)(g)})})})}):(0,x.jsx)(x.Fragment,{})]}),(0,x.jsx)(x.Fragment,{children:(0,c.$bv)(g)?(0,x.jsx)(x.Fragment,{children:_?(0,x.jsx)(s.kC,{width:"10%",spacing:"0",right:0,children:(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(ne.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}})})}):(0,x.jsxs)(s.kC,{animation:A?O:"none",onAnimationEnd:()=>K(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,c.v9M)(g)&&("go_to_cart_page"!==(0,c.v9M)(g)?(T(!0),function(t){"open_cart_slider"!==(0,c.v9M)(t)||null!==k&&k()}(g)):bt((0,c.Ipo)(g),g))},cursor:"pointer",children:[(0,x.jsx)(dt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}}),R>0?(0,x.jsx)(s.Cd,{padding:"2px",bg:"white",size:1.1*F,top:.03*-M,verticalAlign:"top",position:"relative",left:.11*-M,zIndex:"1",children:(0,x.jsx)(s.xv,{sx:{color:"black !important",fontFamily:f+" !important"},fontWeight:"bold !important",fontSize:.7*F+"px !important",children:R})}):(0,x.jsx)(x.Fragment,{})]})}):(0,x.jsx)(x.Fragment,{})})]})}function le(t){const[e]=(0,u.j1)("whatmorePrimaryFont"),n=((0,u.MO)("whatmoreShopId"),t.setOpenShopNow),i=t.FONT_SIZE,o=t.setLockSwiper;return(0,x.jsxs)(s.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,x.jsx)(s.kC,{width:"10%",display:"flex !important"}),(0,x.jsx)(s.kC,{width:"90%",justifyContent:"center",children:(0,x.jsx)(s.xv,{align:"center",fontSize:1.25*i,fontWeight:"semibold",sx:{color:"black !important",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,x.jsx)(s.kC,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),n(!1),o(!1)},cursor:"pointer",children:(0,x.jsx)($t.Z,{sx:{boxShadow:3,color:"black !important",fontSize:1.2*i,filter:"drop-shadow(0 0 5px black);"}})})]})}function ae(t){var e;const[n]=(0,u.j1)("whatmorePrimaryFont"),i=((0,u.MO)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,x.jsxs)(s.Kq,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,x.jsx)(s.Kq,{children:(0,x.jsx)(s.xv,{fontSize:i+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black !important",fontFamily:n+" !important"},children:"Description"})}),(0,x.jsx)(s.Kq,{children:(0,x.jsx)(s.xu,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,x.jsx)(s.xv,{fontSize:.8*i+"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:n+" !important",lineHeight:"140% !important"}})})})]});var r}const de=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 se(t){var e,n,o;const[r,l]=(0,i.useState)(t.product),[a]=(0,u.j1)("whatmorePrimaryFont"),[d]=(0,u.j1)("whatmoreShopId"),[h]=(0,u.j1)("whatmoreSecondaryColor");(0,i.useEffect)((()=>{(0,c.N8M)(d)&&(0,Tt.Rb)(r,(0,c.Ipo)(d),d).then((t=>{l(t)}))}),[]);const p=t.FONT_SIZE,v=t.data,m=t.itemPrice;let g,f,w;var j,y,C;"STRDOIDF6O7"==d&&(g=null===v||void 0===v||null===(j=v.variants)||void 0===j?void 0:j.find((e=>e.id==t.selectedVariantId)),f=null===(y=g)||void 0===y?void 0:y.title,w=null===(C=g)||void 0===C?void 0:C.productLink);const b=null===v||void 0===v||null===(e=v.variants)||void 0===e||null===(n=e.find((e=>e.id==t.selectedVariantId)))||void 0===n?void 0:n.compare_at_price,S=b&&0!=b&&b>m?Math.round((b-m)/b*100):NaN;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(s.kC,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,x.jsx)(s.rU,{href:function(t){return(0,c.lj5)(d)?("STRDOIDF6O7"==d?w:t.product_link)+"?"+(0,c.awP)(d)+"&"+(0,c.n9s)(d)+"&"+(0,c.vaK)(d)+((0,c.C0m)(d)?"¤cy="+t.currency:""):("STRDOIDF6O7"==d?w:t.product_link)+((0,c.C0m)(d)?"?currency="+t.currency:"")}(r),color:"white",width:"fit-content",children:(0,x.jsxs)(s.kC,{sx:{display:"flex",gap:"6px"},children:[(0,x.jsx)(s.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:p,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:"STRDOIDF6O7"==d&&null!==(o=f)&&void 0!==o?o:null===v||void 0===v?void 0:v.title}),(0,x.jsx)(de,{iconSize:1.1*p})]})}),(0,x.jsxs)(s.kC,{direction:"row",gap:"6px",paddingTop:"4px",children:[b&&b>m&&(0,x.jsx)(s.xv,{as:"s",padding:"2px",fontSize:1.2*p,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,Tt.jx)(parseFloat(b)," ",d,r.currency,!0)}),(0,x.jsx)(s.xv,{as:"b",padding:"2px",fontSize:1.2*p,fontWeight:"semibold !important",sx:{color:"black !important",fontFamily:a+" !important"},children:(0,Tt.jx)(parseFloat(m)," ",d,r.currency,!0)}),!isNaN(S)&&0!=S&&(0,x.jsx)(s.xu,{display:"flex",backgroundColor:"green"==(0,c.ZJm)(d)?"#343434"==h?(0,c.ZJm)(d):h:(0,c.ZJm)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,x.jsx)(s.xv,{fontSize:(0,c.sTg)(d)?"14px !important":1.1*p,fontWeight:"normal !important",sx:{color:(0,c.mso)(d)+" !important",fontFamily:a+" !important"},children:(0,c.sTg)(d)?"".concat(S,"% off"):"Save ".concat((0,Tt.jx)(parseFloat(b/100-m/100)," ",d,r.currency))})})]})]})})}function ce(t){var e,n;const[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),{setShowOptionsChart:l}=(0,i.useContext)(je),[a,d]=(0,i.useState)({}),h=(0,u.MO)("whatmoreSecondaryColorShade300"),p=t.setSelectedColor,v=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,f=t.selectOptionThirdHandler,w=t.FONT_SIZE,j=t.data,y=(t,e,n)=>{if(2==n)d((n=>({...n,[t]:e})));else if(1==n)d((n=>{var i,o,r,l;return{...n,[t]:e,[null===j||void 0===j||null===(i=j.options)||void 0===i||null===(o=i[2])||void 0===o?void 0:o.name]:null===j||void 0===j||null===(r=j.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 i,o;const n=null===j||void 0===j||null===(i=j.variants)||void 0===i||null===(o=i.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((i=>{var o,r,l,a,d,s,c,u;return{...i,[null===j||void 0===j||null===(o=j.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===j||void 0===j||null===(l=j.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===j||void 0===j||null===(d=j.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===j||void 0===j||null===(c=j.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==n)))||void 0===u?void 0:u.option3,[t]:e}}))}};(0,i.useEffect)((()=>{d((t=>{var e,n,i,o,r,l,a,d,s,c,u,h;return{...t,[null===j||void 0===j||null===(e=j.options)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.name]:null===j||void 0===j||null===(i=j.variants)||void 0===i||null===(o=i.find((t=>{var e,n,i;return(null===j||void 0===j||null===(e=j.options)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.values)||void 0===i?void 0:i.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===j||void 0===j||null===(r=j.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===j||void 0===j||null===(a=j.variants)||void 0===a||null===(d=a.find((t=>{var e,n,i;return(null===j||void 0===j||null===(e=j.options)||void 0===e||null===(n=e[1])||void 0===n||null===(i=n.values)||void 0===i?void 0:i.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===j||void 0===j||null===(s=j.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===j||void 0===j||null===(u=j.variants)||void 0===u||null===(h=u.find((t=>{var e,n,i;return(null===j||void 0===j||null===(e=j.options)||void 0===e||null===(n=e[2])||void 0===n||null===(i=n.values)||void 0===i?void 0:i.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}}))}),[]);return(0,x.jsx)(s.kC,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===j||void 0===j||null===(e=j.options)||void 0===e?void 0:e.length)>0&&(0,x.jsx)(s.kC,{direction:"column",width:"100%",gap:"4px",children:null===j||void 0===j||null===(n=j.options)||void 0===n?void 0:n.map(((e,n)=>{var i,d,u,C,b,S;return(0,x.jsx)(x.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(i=e.values)||void 0===i?void 0:i.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===j||void 0===j||null===(C=j.options)||void 0===C?void 0:C.length))&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(s.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,x.jsx)(s.xv,{fontSize:1*w+"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.Ip6)(r)?(0,x.jsx)(s.kC,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,x.jsx)(s.xv,{fontSize:.7*w,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,c.meb)(r)})}):(0,x.jsx)(x.Fragment,{})]}),(0,x.jsx)(s.Ug,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(b=e.values)||void 0===b?void 0:b.map((i=>{var l,d,u,C,b,S,I,k,_;const T=((t,e)=>{var n,i,o,r,l,d,s,c,u,h;if(null===j||void 0===j||null===(n=j.options)||void 0===n||!n.length)return!1;const p=null===j||void 0===j||null===(i=j.options)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.name,v=null===j||void 0===j||null===(r=j.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;switch(null===j||void 0===j||null===(d=j.options)||void 0===d||null===(s=d[2])||void 0===s||s.name,null===j||void 0===j||null===(c=j.options)||void 0===c?void 0:c.length){case 1:return null===j||void 0===j||null===(u=j.variants)||void 0===u?void 0:u.some((e=>e.option1===t&&e.available));case 2:var x;return 0===e?null===j||void 0===j||null===(x=j.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available)):null===j||void 0===j||null===(h=j.variants)||void 0===h?void 0:h.some((e=>e.option2===t&&e.option1===a[p]&&e.available));case 3:var m,g,f;if(0===e)return null===j||void 0===j||null===(m=j.variants)||void 0===m?void 0:m.some((e=>e.option1===t&&e.available));if(1===e)return null===j||void 0===j||null===(g=j.variants)||void 0===g?void 0:g.some((e=>e.option2===t&&e.option1===a[p]&&e.available));if(2===e)return null===j||void 0===j||null===(f=j.variants)||void 0===f?void 0:f.some((e=>e.option3===t&&e.option1===a[p]&&e.option2===a[v]&&e.available));default:return!1}})(i,n),F=0==n||j.variants.find((t=>{var e,o;return t["option".concat(n)]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[n-1])||void 0===o?void 0:o[1])&&t["option".concat(n+1)]==i}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&e.name.toLowerCase().includes("color"))&&F&&((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.kC,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,x.jsx)(s.xu,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,c.lmH)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===i?"2px solid ".concat((0,c.ua_)(r)," !important"):"",cursor:"pointer",width:"fit-content !important",onClick:()=>{y(null===e||void 0===e?void 0:e.name,i,n),p(i),0===n&&v(i),1===n&&m(i),2===n&&f(i)},children:(0,x.jsx)(g.Ee,{padding:"2px",borderRadius:(0,c.lmH)(r),width:"58px",height:"58px",src:(0,kt.s)(null!==(C=null===t||void 0===t||null===(b=t.finalArr)||void 0===b||null===(S=b.find((t=>(null===t||void 0===t?void 0:t.color)==i)))||void 0===S?void 0:S.src)&&void 0!==C?C:null===t||void 0===t||null===(I=t.finalArrExternal)||void 0===I||null===(k=I.find((t=>(null===t||void 0===t?void 0:t.color)==i)))||void 0===k?void 0:k.optionsrc,"?width=400&height=400")})})},i)}):F&&(0,x.jsx)(s.kC,{paddingBottom:"8px",paddingRight:"8px",children:(0,x.jsx)(ct.zx,{isDisabled:!T,size:"sm",px:"8px !important",bg:a[null===e||void 0===e?void 0:e.name]===i&&T?(null!==(_=(0,c.CPm)(r))&&void 0!==_?_:h)+" !important":(0,c.bC3)(r)+" !important",width:"fit-content !important",onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=i?(y(null===e||void 0===e?void 0:e.name,i,n),0===n&&v(i),1===n&&m(i),2===n&&f(i)):window.location.href=t.product.product_link},children:(0,x.jsx)(s.xv,{as:T?"p":"s",textDecoration:T?"none":"line-through",fontSize:.9*w+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===i&&T?(0,c.cY_)(r)+" !important":(0,c.FbM)(r)+" !important"},children:i})})},i)}))}),n===(null===j||void 0===j||null===(S=j.options)||void 0===S?void 0:S.length)-1&&(0,x.jsx)(s.M5,{paddingTop:"8px",width:"100%",children:(0,x.jsx)(s.iz,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ue,he=n(8782);function pe(t){var e,n,o,r,l,a,d,p,v,m,f,w,j,y,C,b,S,I,_,F,E;const[P,O,z,L]=(0,h.Z)();var D=.4*L*.8,M=D*(16/9)*.6*.8;const R=1.1*D,A=R*(16/9)*.8;var K=.12*D;const[W,q]=(0,i.useState)(!1),N=t.data,Z=t.event,V=t.product,H=t.setOpenShopNow,U=t.setLockSwiper,[B]=(0,u.j1)("whatmoreEmbedAppUseVariant"),[Y,X]=(0,i.useState)((()=>{if("true"===B)return me(N,V.client_product_id)})),[Q,J]=(0,i.useState)((()=>{if("true"===B)return ge(N,V.client_product_id)})),[$,tt]=(0,i.useState)((()=>{if("true"===B)return fe(N,V.client_product_id)})),[et,nt]=(0,i.useState)(),[it,ot]=(0,i.useState)(1),[rt,lt]=(0,i.useState)(),[at,dt]=(0,i.useState)(0),[st,ct]=(0,i.useState)(!1),[ut,ht]=(0,i.useState)(!1),[pt,vt]=(0,i.useState)(V.thumbnail_image),xt=(0,u.MO)("whatmoreUITheme"),mt=(0,u.MO)("whatmoreShopId"),gt=(0,i.useCallback)((t=>{X(t)}),[]),jt=(0,i.useCallback)((t=>{J(t)}),[]),yt=(0,i.useCallback)((t=>{tt(t)}),[]);(0,i.useEffect)((()=>{var t,e;const n=ve(N,Y,Q,$);nt(null!==n&&void 0!==n?n:null===N||void 0===N||null===(t=N.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),lt(xe(N,n)),ot(1),ht(!1);const i=we(N,n);null!==i&&vt(i)}),[Y,Q,$]),(0,i.useEffect)((()=>{var t,e;const n=void 0===et?null===N||void 0===N||null===(t=N.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:xe(N,et);lt(n*it)}),[it]),(0,i.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),n=document.getElementById("whatmore-size-chart");n&&n.contains(t.target)||!e||e.contains(t.target)||(H(!1),U(!1))}function e(t){t.stopPropagation(),n.scrollTop+=t.deltaY}document.addEventListener("click",t);const n=document.getElementById("whatmore-shopnow-view");return null===n||void 0===n||n.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),n.removeEventListener("wheel",e)}}),[]),(0,i.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,wt.Bi)():(0,ft.OM)(e)}((0,c.Ipo)(mt),mt);t.then((t=>t.json())).then((t=>{dt(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[st]);const Ct=(0,T.F4)(ue||(ue=(0,k.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),bt="".concat(Ct," 0.5s"),St=null===N||void 0===N||null===(e=N.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,i.useState)(-1!==St?null===(n=N.options)||void 0===n||null===(o=n[St])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Tt,Ft]=(0,i.useState)({});(0,i.useEffect)((()=>{-1!==St&&"whatmore"!==(0,c.Ipo)(mt)&&async function(){const t=await(0,wt.m3)(V);Ft(t)}()}),[]);let Et=-1,Pt=-1!==St&&null!==Tt&&void 0!==Tt&&Tt.product&&(null===Tt||void 0===Tt||null===(l=Tt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Tt||void 0===Tt||null===(d=Tt.product)||void 0===d||null===(p=d.options)||void 0===p||null===(v=p[St])||void 0===v||null===(m=v.values)||void 0===m?void 0:m.length)?null===Tt||void 0===Tt||null===(f=Tt.product)||void 0===f||null===(w=f.images)||void 0===w?void 0:w.map((t=>{var e,n,i,o,r,l,a,d,s,c,u,h,p,v;const x=null===Tt||void 0===Tt||null===(e=Tt.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.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===Tt||void 0===Tt||null===(i=Tt.product)||void 0===i||null===(o=i.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Et,(null===Tt||void 0===Tt||null===(a=Tt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[St])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Tt||void 0===Tt||null===(u=Tt.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,Et)],src:null===t||void 0===t?void 0:t.src}})):[],Ot=[];if("whatmore"==(0,c.Ipo)(mt)&&(null===N||void 0===N||null===(j=N.images)||void 0===j?void 0:j.length)>0){var zt;var Lt;if(-1!==(null===N||void 0===N||null===(zt=N.options)||void 0===zt?void 0:zt.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"))}))))Ot=null===N||void 0===N||null===(Lt=N.images)||void 0===Lt?void 0:Lt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Et+1<(null===Tt||void 0===Tt||null===(y=Tt.product)||void 0===y||null===(C=y.options)||void 0===C||null===(b=C[St])||void 0===b||null===(S=b.values)||void 0===S?void 0:S.length)&&(Pt=[]),(0,x.jsxs)(s.kC,{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===xt||void 0===xt?void 0:xt.whatmoreUITheme)?"xl":null,animation:bt,children:[(0,x.jsx)(le,{setOpenShopNow:H,setLockSwiper:U,FONT_SIZE:K}),(0,x.jsx)(s.M5,{marginBottom:"10px",px:"20px",py:"5px",children:(0,x.jsx)(s.kC,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===xt||void 0===xt?void 0:xt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,c.alU)(mt),borderColor:(0,c.qPe)(mt)},children:(0,x.jsx)(s.kC,{width:"100%",children:(0,x.jsx)(he.P,{renderElement:t=>(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s.xu,{width:R+"px",height:A+"px",children:(0,x.jsx)(g.Ee,{width:R+"px",height:A+"px",borderRadius:"round"==(null===xt||void 0===xt?void 0:xt.whatmoreUITheme)?"lg":null,src:(0,kt.s)(t.eventData.src,"&width=400&height=400"),alt:V.handle,sx:{objectFit:(0,c.yOX)(mt)+" !important"},fallback:(0,x.jsx)(G.Z,{width:R+"px",height:A+"px",borderRadius:"round"==(null===xt||void 0===xt?void 0:xt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:Pt.length>0&&!Pt.includes(null)?null===(I=Pt)||void 0===I?void 0:I.filter((t=>(null===t||void 0===t?void 0:t.color)==It)):Ot.length>0?[null===(_=Ot)||void 0===_?void 0:_.find((t=>(null===t||void 0===t?void 0:t.color)==It))]:null===N||void 0===N||null===(F=N.images)||void 0===F?void 0:F.map((t=>({src:t.includes("https")?t:"https:"+t}))),spacing:10,defaultHeight:R+"px",defaultWidth:A+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,x.jsx)(se,{data:N,product:V,PRODUCT_TILE_HEIGHT:M,PRODUCT_TILE_WIDTH:D,FONT_SIZE:K,getVariantPrice:xe,selectedVariantId:et,itemPrice:rt,itemQuantity:it,setItemQuantity:ot,thumbnailImage:pt}),(null===N||void 0===N||null===(E=N.variants)||void 0===E?void 0:E.length)>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.M5,{paddingTop:"4px",width:"100%",children:(0,x.jsx)(s.iz,{color:(0,c.W8U)(mt),size:"xs",width:"90%"})}),(0,x.jsx)(ce,{data:N,dividerColor:(0,c.W8U)(mt),setSelectedColor:_t,finalArr:Pt,finalArrExternal:Ot,product:V,PRODUCT_TILE_HEIGHT:M,PRODUCT_TILE_WIDTH:D,FONT_SIZE:K,selectOptionFirstHandler:gt,selectOptionSecondHandler:jt,selectOptionThirdHandler:yt,getVariantPrice:xe,selectedOptionFirst:Y,selectedOptionSecond:Q,selectedOptionThird:$,selectedVariantId:et})]}),c.$2G&&((null===N||void 0===N?void 0:N.description)||(null===N||void 0===N?void 0:N.body_html))&&(0,x.jsx)(ae,{PRODUCT_TILE_HEIGHT:M,FONT_SIZE:K,data:N,handleToggle:()=>q(!W),show:W}),(0,x.jsx)(s.xu,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,x.jsx)(re,{position:"relative",data:N,FONT_SIZE:K,product:V})}),(0,x.jsx)(re,{position:"fixed",selectedVariantId:et,data:N,FONT_SIZE:K,PRODUCT_TILE_WIDTH:D,product:V,itemQuantity:it,cartItemCount:at,addToCartFlag:st,setAddToCartFlag:ct,soldOutFlag:ut,setSoldOutFlag:ht,event:Z})]})}const ve=(t,e,n,i)=>{var o;if(!e&&!n&&!i)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!n||t.option2===n)&&(!i||t.option3===i)));return r?r.id:void 0},xe=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find((t=>t.id===e)))||void 0===i?void 0:i.price},me=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find((t=>t.id.toString()===e)))||void 0===i?void 0:i.option1},ge=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find((t=>t.id.toString()===e)))||void 0===i?void 0:i.option2},fe=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find((t=>t.id.toString()===e)))||void 0===i?void 0:i.option3},we=(t,e)=>{var n;const i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find((t=>t.id==e));return void 0===i?null:null===i||void 0===i||null===(o=i.featured_image)||void 0===o?void 0:o.src;var o},je=(0,i.createContext)({setShowOptionsChart:null});var ye=function(t){const e=t.event,n=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,[a,d]=(0,i.useState)(!1);return(0,x.jsx)(je.Provider,{value:{setShowOptionsChart:d},children:(0,x.jsxs)(s.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,x.jsx)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,x.jsx)(s.xu,{width:"full",height:"fit-content",children:(0,x.jsx)(pe,{data:n,event:e,product:o,setOpenShopNow:r,setLockSwiper:l})})}),a?(0,x.jsx)(s.Kq,{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.xu,{width:"full",height:"fit-content",children:(0,x.jsx)(te,{data:n,event:e,product:o,setShowOptionsChart:()=>{d(!1)}})})}):(0,x.jsx)(x.Fragment,{})]})})};var Ce=function(t){var e,[n,o,r,l]=(0,h.Z)();const[a,d]=(0,i.useState)(!1),[v,g]=(0,i.useState)(),[f,w]=(0,i.useState)(),j=(0,u.MO)("whatmoreShopId"),y=t.event,C=t.onBack,b=i.useRef(),S=t.isPlaying,I=t.isLast,k=t.setLockSwiper,_=t.selectedVariantId,T=null===(e=t.showOverlay)||void 0===e||e,F="center";return(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xu,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.Kq,{direction:"column",justifyContent:F,height:"full",width:"full",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.oM,{width:"full",ratio:l/r,children:(0,x.jsx)(m,{height:"100%",width:"100%",url:y.event_hls_url,isPlaying:S,event:y})})})}),T?(0,x.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:F,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(Jt,{focusRef:b,event:t.event,isLast:I,onCloseCallback:C,productClickHandler:async t=>{const e=await(0,p.p)(t,(0,c.Ipo)(j),j);w(t),g(e),d(!0),k(!0)}})})}):(0,x.jsx)(x.Fragment,{}),!0===a?(0,x.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:F,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(ye,{focusRef:b,event:t.event,isLast:I,onCloseCallback:()=>C(),setLockSwiper:k,data:v,currentProduct:f,setOpenShopNow:d,selectedVariantId:_})})}):(0,x.jsx)("div",{})]})})};const be=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function Se(t){var e,n,[i,o,r,l]=(0,h.Z)();const[a]=(0,u.j1)("whatmoreSecondaryColor"),[d]=(0,u.j1)("whatmoreSecondaryColorShade900"),c=t.progress,p=null!==(e=t.totalSiblings)&&void 0!==e?e:1,v=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,x.jsx)(s.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(p).keys()].map((t=>(0,x.jsx)(s.Kq,{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.xu,{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 Ie=n(868),ke=n(2630);const _e=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Te=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var Fe=function(t){var e,n,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!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,w=(0,u.MO)("whatmoreShopId"),j=(0,u.MO)("isInDesignMode"),y=(0,u.MO)("isDemoBrand"),C=(0,u.MO)("whatmorePrimaryFont"),b=(0,u.MO)("websiteLanguage"),{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(nt.I),[I,k,_,T]=(0,h.Z)(),F=null!==(o=t.iconSize)&&void 0!==o?o:.1*T*(0,c.r5f)(w);function E(){const e=(0,u.MO)("whatmoreLandingLocationType");var n;!function(t){j||y||(async()=>{(0,l.x0)(t)})()}(m),(e.startsWith("product")||"embed"===e)&&(d="te"),n="event_product_link"===(0,c.EEC)(w)?m.products[0].product_link||"":window.location.pathname,n=("event_product_link"===(0,c.EEC)(w)?"":window.location.hostname)+n+"?wtt="+d+"&wsid="+p+"&weid="+v,(0,c.lj5)(w)&&(n=n+"&"+(0,c.awP)(w)+"&utm_campaign=video-share&utm_medium="+e);const i={title:(0,c.JNF)(w),text:"".concat((0,c.Qa8)(w)," \n ").concat(n," ").concat((0,c.AWG)(w)?"\n \n -via Whatmore":"")};navigator.share&&!Te?navigator.share(i):(t.setIsModalOpen(!0),t.setShareText([i,n]))}return(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{cursor:"pointer",style:{marginBottom:f+"px"},children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,x.jsx)(ke.Z,{sx:{boxShadow:3,transform:"scaleX(-1)",color:"white",fontSize:F,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),E(),(0,tt.GF)({userInteractionType:et.K.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:S,event:m,productList:m.products,ctaList:m.cta})}}),g&&(0,c.u8S)(w)?(0,x.jsxs)(s.xv,{fontSize:.3*F+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:C+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",m.total_share>(0,c.LWl)(w)?_e(m.total_share):null!==(r=null===ut||void 0===ut||null===(a=ut[b])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,x.jsx)(x.Fragment,{})]})})})},Ee=n(7933),Pe=n(2785);var Oe=function(t){var e,n,o;const r=(0,u.MO)("whatmoreShopId"),a=(0,u.MO)("whatmorePrimaryFont"),d=(0,u.MO)("whatmoreLikedEvents"),p=(0,u.MO)("isInDesignMode"),v=(0,u.MO)("isDemoBrand"),m=(0,u.MO)("websiteLanguage"),{whatmoreWidgetSourceDetails:g}=(0,i.useContext)(nt.I),f=t.event,[w,j]=(0,i.useState)(null!==(e=d[f.event_id])&&void 0!==e&&e),[y,C,b,S]=(0,h.Z)(),I=.1*S*(0,c.r5f)(r);function k(t,e){p||v||(async()=>{(0,l.Z6)(t,e)})()}function _(){(0,u.bU)("whatmoreLikedEvents",{...d,[f.event_id]:!w}),w?(k(f,-1),(0,tt.GF)({userInteractionType:et.K.VIDEO_UNLIKED,widgetSourceDetails:g,event:f,productList:f.products,ctaList:f.cta})):(k(f,1),(0,tt.GF)({userInteractionType:et.K.VIDEO_LIKED,widgetSourceDetails:g,event:f,productList:f.products,ctaList:f.cta})),j(!w)}const T=f.total_like+(w?1:0);return(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{cursor:"pointer",children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[w?(0,x.jsx)(Pe.Z,{sx:{boxShadow:3,color:(0,c.dmX)(r),fontSize:I,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),_()}}):(0,x.jsx)(Ee.Z,{sx:{boxShadow:3,color:"white",fontSize:I,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),_()}}),(0,x.jsx)(x.Fragment,{children:(0,c.CEM)(r)?(0,x.jsxs)(s.xv,{fontSize:.3*I+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",T>=(0,c.zKg)(r)?_e(T):null!==(n=null===ut||void 0===ut||null===(o=ut[m])||void 0===o?void 0:o.like)&&void 0!==n?n:"Like","\xa0"]}):(0,x.jsx)(x.Fragment,{})})]})})})};const ze=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 Le=n(8866);const De=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"})})})},Me=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 Re=t=>{const e=t.shareText,[n,o]=(0,i.useState)("Copy link"),[r,l]=(0,i.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)($t.Z,{onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,x.jsx)("div",{}),(0,x.jsx)(s.iz,{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 n;t.stopPropagation();const i=encodeURIComponent(null===(n=e[0])||void 0===n?void 0:n.text);window.open("https://wa.me/?text=".concat(i),"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,x.jsx)(ze,{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 n;t.stopPropagation();const i=encodeURIComponent(null===(n=e[0])||void 0===n?void 0:n.text);window.open("https://twitter.com/intent/tweet?text=".concat(i),"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,x.jsx)(De,{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)(Me,{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:n})]})]})]})})};var Ae=function(t){var e,n;const i=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,u.MO)("whatmorePrimaryFont"),r=(0,u.MO)("whatmoreShopId"),l=null!==(n=t.fontSize)&&void 0!==n?n:"8",[a]=(0,Le.Z)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",h="https://www.whatmore.ai/shoppable-videos?utm_source=".concat(i,"&utm_medium=referral&utm_campaign=").concat(d);return(0,x.jsx)(s.rU,{href:h,isExternal:!0,children:(0,c.XFt)(r)&&(0,x.jsxs)(s.Kq,{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",o,"important"),t.style.setProperty("font-size",1.1*l+"px","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("color","white"))},children:"powered by Whatmore"}),(0,x.jsx)(s.xu,{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*l,backgroundColor:"transparent",borderRadius:"0px"}})]})})},Ke=n(4892),We=n(1195);var qe=()=>(0,x.jsxs)(s.xu,{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 Ne=t=>{var e;const n={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,i.useState)(!1),[l,a]=(0,i.useState)(null),[d,c]=(0,i.useState)(null),u=(0,i.useRef)(null),h=(0,i.useContext)(nt.I);return(0,i.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,i.useEffect)((()=>{!o&&u.current&&c(u.current.offsetHeight)}),[o]),(0,x.jsxs)(s.xu,{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?"".concat(d,"px"):"auto",children:[(0,x.jsx)(s.xu,{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,tt.GF)({userInteractionType:et.K.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)(We.Z,{})}),(0,x.jsx)(s.xu,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,x.jsx)(s.X6,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===n||void 0===n?void 0:n.text})}),(0,x.jsx)(s.xu,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,x.jsxs)(s.xu,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,x.jsx)(qe,{}),(0,x.jsx)(s.X6,{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.Kq,{spacing:5,width:"100%",align:"center",children:n.options.map(((e,n)=>(0,x.jsx)(s.xu,{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 n;a(e),r(!0),(0,tt.GF)({userInteractionType:et.K.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.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.xv,{py:5,color:"gray.800",children:e})},n)))})})]})},Ze=n(2586);var Ve=t=>{var e,n;const[o,r]=(0,i.useState)(""),[l,a]=(0,i.useState)(""),[d,h]=(0,i.useState)(!1),[p,v]=(0,i.useState)(!1),m=(0,u.MO)("whatmoreShopId"),g=(0,u.MO)("whatmoreSecondaryColor"),f=(0,u.MO)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,j=(0,i.useContext)(nt.I),y=()=>{var e,n;(()=>{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,tt.GF)({userInteractionType:et.K.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===(n=t.question)||void 0===n?void 0:n.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:j})):a("Please enter valid contact info.")},C=()=>{var e;t.setIsQuestionVisible(!1),(0,tt.GF)({userInteractionType:et.K.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.kC,{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.xu,{textAlign:"center",color:"white",children:[(0,x.jsx)(s.xu,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,x.jsx)(s.xu,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,x.jsx)(s.xu,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,x.jsx)(V.Z,{onCloseCallback:C})}),(0,x.jsxs)(s.xu,{position:"relative",width:"70%",onClick:()=>{const t=(0,c.dKN)(m);navigator.clipboard.writeText(t).then((()=>{v(!0),setTimeout((()=>{C()}),1e3),setTimeout((()=>v(!1)),2e3)}),(()=>{console.error("Failed to copy the coupon code")}))},cursor:"pointer",children:[(0,x.jsxs)(s.xu,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,x.jsx)(s.xu,{as:"span",fontWeight:"bold",color:"black",children:(0,c.dKN)(m)}),(0,x.jsx)(Ze.Z,{sx:{color:p?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),p&&(0,x.jsx)(s.xu,{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.xu,{textAlign:"center",color:"white",children:[(0,x.jsx)(s.xu,{children:(0,x.jsx)(s.xv,{fontFamily:f,fontSize:"22px",fontWeight:"bold",children:w})}),(0,x.jsx)(s.xu,{marginBottom:"10%",fontSize:"md",children:(0,c.ewB)(m)})]}),(0,x.jsx)(s.xu,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,x.jsx)(V.Z,{onCloseCallback:C})}),(0,x.jsxs)(s.kC,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,x.jsx)(s.xu,{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===(n=t.question)||void 0===n?void 0:n.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.xv,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,x.jsx)(s.xu,{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.xv,{fontFamily:f,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var He=t=>{const[e,n]=(0,i.useState)(null);return(0,x.jsx)(s.xu,{children:!e&&(0,x.jsx)(Ve,{question:t.question,onEmailSubmit:t=>{n(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Ue=t=>{var e;const[n,o]=(0,i.useState)(null),r=t.questionIndex,l=t.questionList;if((0,i.useEffect)((()=>{if(!(r>=l.length))return()=>(0,gt.xw)()}),[]),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.xu,{children:(0,x.jsx)(He,{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.xu,{children:(0,x.jsx)(Ne,{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:n,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Be=n(2882);function Ye(t){var e;const n=t.event,[o,r,l,a]=(0,h.Z)(),[d]=(0,u.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:p}=(0,i.useContext)(nt.I),[v]=(0,u.j1)("whatmoreSecondaryColor"),[m]=(0,u.j1)("whatmoreShopId"),g=(0,c.f63)(m),f=null!==(e=(0,c.u2W)(m))&&void 0!==e?e:[v,g,v,g,v],w=(0,i.useRef)(null);(0,i.useEffect)((()=>{w.current&&w.current.play()}),[]);const j=(0,Ie.V)(null===n||void 0===n?void 0:n.storyset_thumbnail_image);return(0,x.jsx)(x.Fragment,{children:p?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{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,kt.$)(j)?(0,x.jsx)(Ke.Z,{height:"100%",width:"100%",poster:null===n||void 0===n?void 0:n.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.M5,{children:(0,x.jsx)(s.xv,{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:n.storyset_name})})]})}):(0,x.jsx)(x.Fragment,{})})}var Xe=function(t){var e,n,o;const[r,a,d]=(0,Le.Z)(),[p]=(0,u.j1)("isInDesignMode"),[v]=(0,u.j1)("isDemoBrand"),[m,g]=(0,u.j1)("isProductSwiperCatalogOpen"),[f,w]=(0,u.j1)("isFirstIndicatorRenderDone"),[j]=(0,u.j1)("whatmoreShopId"),y=(0,i.useContext)(Rn),{whatmoreEventsBrowsingTemplate:C}=(0,i.useContext)(nt.I),[b,S,k,_]=(0,h.Z)(),T=(0,u.MO)("whatmorePrimaryFont"),F=t.event,E=t.storySetId,P=t.isLast,O=t.onCloseCallback,z=t.focusRef,L=t.productClickHandler,D=t.videoPlayingData,M=t.totalSiblingEvents,R=t.indexAmongSiblings,A=t.leftOpenSpaceClickHandler,K=t.midOpenSpaceClickHandler,W=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,i.useContext)(nt.I),Z=.1*_,[H,U]=(0,i.useState)(!1),[B,Y]=(0,i.useState)([]),G=t=>{Q.current&&!Q.current.contains(t.target)&&U(!1)},Q=(0,i.useRef)(null);(0,i.useEffect)((()=>(H?document.addEventListener("click",G):document.removeEventListener("click",G),()=>{document.removeEventListener("click",G)})),[H]);const J="Free"==(0,c.Svj)(j)&&"portrait"==r;return(0,x.jsxs)(s.xu,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,x.jsx)(Bt.u,{userInteractionType:et.K.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(n=e[t.qIndex])||void 0===n?void 0:n.id},triggerFlag:!p&&!v,children:(0,x.jsx)(Ue,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),H&&(0,x.jsx)("div",{ref:Q,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)(Re,{shareText:B,setShareText:Y,iconSize:Z,isModalOpen:H,setIsModalOpen:U})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,x.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsxs)(s.Kq,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[y.showVideoPlayingData?(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,x.jsx)(Se,{progress:be(D.current_time,D.video_duration),totalSiblings:M,indexAmongSiblings:R})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Ye,{event:F,width:_}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,Ft.ZK)(C)?(0,x.jsx)(Fe,{whatmoreShareTemplateId:(0,Ft.QN)(C),whatmoreShareStoryId:E,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.07*_,shareButtonBottomMargin:6,setIsModalOpen:U,setShareText:Y}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(I,{focusRef:z}),("landscape"!==r||t.showCloseOverlay)&&(0,x.jsx)(V.Z,{event:F,onCloseCallback:O})]})]})})]}),"78232846646"===j&&"portrait"===r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.xu,{position:"absolute",top:"".concat(.49*window.innerHeight,"px"),left:"".concat(.92*window.innerWidth,"px"),transform:"translate(-50%, -50%)",zIndex:101,children:(0,x.jsx)(Be.Z,{style:{fontSize:"".concat(1.3*Z,"px"),transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"right")}})}),(0,x.jsx)(s.xu,{position:"absolute",top:"".concat(.42*window.innerHeight,"px"),left:"".concat(.92*window.innerWidth,"px"),transform:"translate(-50%, -50%)",zIndex:101,children:(0,x.jsx)(Be.Z,{style:{fontSize:"".concat(1.3*Z,"px"),color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"left")}})})]}),(0,x.jsxs)(s.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,x.jsx)(s.xu,{width:"33%",height:"100%",onClick:()=>{A()},sx:{display:"block !important"}}),(0,x.jsx)(s.xu,{width:"34%",height:"100%",onClick:()=>{K()},sx:{display:"block !important"}}),(0,x.jsx)(s.xu,{width:"33%",height:"100%",onClick:()=>{W()},sx:{display:"block !important"}})]}),(0,x.jsxs)(s.xu,{width:"full",height:"fit-content",children:[y.totalEvents>1&&!f&&y.showSwipeIndicator?(0,x.jsx)(s.xu,{width:"full",margin:"2px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(X,{swipeUp:!P})})}):null,(0,x.jsxs)(s.xu,{width:"fit-content",height:"fit-content",position:"absolute",right:0,bottom:"25%",children:[(0,c.slY)(j)&&!(0,Ft.ZK)(C)?(0,x.jsx)(s.xu,{ml:"auto",width:"fit-content",paddingY:"12px",paddingX:"8px",position:"relative",top:"-30px",children:(0,x.jsxs)(s.Kq,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:function(){var t;p||v||(async()=>{(0,l.lY)(F,1)})(),(0,tt.GF)({userInteractionType:et.K.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:F,productList:null===F||void 0===F?void 0:F.products,ctaList:null===F||void 0===F?void 0:F.cta});const e=F.products.map((t=>"".concat(t.product_link," \n"))),n=(0,c.gtK)(j),i="Hey, I am interested in ".concat(F.products.length>1?"these products":"this product"," I saw on ").concat(null===(t=F.products[0])||void 0===t?void 0:t.brand," store: \n").concat(e,". Could you please help me with some queries?");window.open(n+"&text=".concat(i,"&type=phone_number"),"_blank")},children:[(0,x.jsx)(ze,{iconSize:.7*Z,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,x.jsx)(s.xv,{fontSize:Z*(0,c.Xod)(j)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,c.UiZ)(j)})]})}):(0,x.jsx)(x.Fragment,{}),(0,c.jY3)(j)?(0,x.jsx)(s.xu,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(Oe,{event:F})})}):(0,x.jsx)(x.Fragment,{}),(0,c.ROU)(j)&&!(0,Ft.ZK)(C)?(0,x.jsx)(s.xu,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(Fe,{whatmoreShareTemplateId:(0,Ft.QN)(C),whatmoreShareStoryId:E,whatmoreShareEventId:F.event_id,event:F,setIsModalOpen:U,setShareText:Y})})}):(0,x.jsx)(x.Fragment,{})]}),(0,Ut.kT)(F)?(0,x.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(j)?(0,x.jsx)(s.xu,{w:"100%",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(N,{event:F,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Xt,{event:F,productClickHandler:L})})]}):(0,x.jsx)(x.Fragment,{})]}),J&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,x.jsx)(Ae,{brandName:null===F||void 0===F?void 0:F.brand,fontSize:.033*_})})]})]})},Ge=n(2279),Qe=n.n(Ge),Je=n(342);var $e=function(t){var e,n,o,r,l,a,[d,m,g,f]=(0,h.Z)();const[w,j]=(0,i.useState)(!1),[y,C]=(0,i.useState)(),[b,S]=(0,i.useState)(),[I,k]=(0,i.useState)({current_time:0,video_duration:0,is_video_ended:!1}),_=(0,u.MO)("whatmoreShopId"),T=t.event,F=t.storyId,E=t.onBack,P=i.useRef(),O=t.changeSlide,z=t.isPlaying,L=t.isLast,D=t.setLockSwiper,M=t.onVideoEndedCallback,R=t.progressUpdateCallback,A=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,K=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,W=null===(o=t.showOverlay)||void 0===o||o,q=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},N=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},Z=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:V}=(0,i.useContext)(nt.I),{questionList:H}=(0,i.useContext)(Rn),U=(null===H||void 0===H?void 0:H.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[B,Y]=(0,i.useState)();(0,i.useEffect)((()=>{Y(t.showQuestion)}),[t.showQuestion]);const X="center";let G;try{G=Qe()((()=>{M()}),1e3,{leading:!0,trailing:!1})}catch(Q){console.log(Q)}return(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xu,{width:f,height:g,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.Kq,{direction:"column",justifyContent:X,height:"full",width:"full",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.oM,{width:"full",ratio:f/g,children:(0,x.jsx)(v.Z,{height:"100%",width:"100%",url:(0,Ie.V)((0,Je.uv)(T)),isPlaying:z&&(!B||U>=H.length),timeUpdateCallback:function(t,e){const n=be(t,e);R({watch_time:t,video_duration:e});const i=I.is_video_ended;n>=99&&z&&!i?(G(),k({current_time:t,video_duration:e,is_video_ended:!0})):k({current_time:t,video_duration:e,is_video_ended:i})},event:T,question:B&&U<(null===H||void 0===H?void 0:H.length),source:t.source})})})}),W?(0,x.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:X,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(Xe,{focusRef:P,event:t.event,isLast:L,onCloseCallback:t=>{E(t),(0,tt.Z2)({userInteractionType:et.K.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:I.current_time,video_duration:I.video_duration},widgetSourceDetails:V,event:T,productList:T.products,ctaList:T.cta})},productClickHandler:async t=>{const e=await(0,p.p)(t,(0,c.Ipo)(_),_);S(t),C(e),j(!0),D(!0),(0,tt.GF)({userInteractionType:et.K.SHOPNOW_CLICKED,widgetSourceDetails:V,event:T,productList:T.products,ctaList:T.cta}),(0,u.bU)("whatmoreAllowAutoSlide",!1)},videoPlayingData:I,totalSiblingEvents:A,indexAmongSiblings:K,questionList:H,isQuestionVisible:B&&U<(null===H||void 0===H?void 0:H.length),qIndex:U,setIsQuestionVisible:Y,leftOpenSpaceClickHandler:q,midOpenSpaceClickHandler:N,rightOpenSpaceClickHandler:Z,storySetId:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:O})})}):(0,x.jsx)(x.Fragment,{}),!0===w?(0,x.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:X,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,x.jsx)(ye,{focusRef:P,event:t.event,isLast:L,onCloseCallback:()=>E(),setLockSwiper:D,data:y,currentProduct:b,setOpenShopNow:t=>{j(t),(0,u.bU)("whatmoreAllowAutoSlide",!t)}})})}):(0,x.jsx)("div",{})]})})},tn=n(7300),en=n(8984),nn=n(58),on=n(9723);var rn=function(t){var[e,n,i,o]=(0,h.Z)();const r=(0,u.MO)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,x.jsx)(s.Kq,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,x.jsx)(s.oM,{width:"full",ratio:o/i,children:(0,x.jsx)(v.Z,{height:"100%",width:"100%",url:(0,Ie.V)((0,Je.uv)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,x.jsx)(s.Kq,{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.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,nn.QV)()},children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,x.jsx)(on.Z,{sx:{boxShadow:3,color:(0,c.Ya_)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,nn.QV)()}}),(0,x.jsx)(s.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},ln=n(3433),an=n(653);const dn=i.lazy((()=>n.e(258).then(n.bind(n,5824))));var sn=function(t){var e,n;const i=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.Z)(),[g]=(0,u.j1)("whatmoreVideoPlayerPoolBlessed"),f=null===(n=t.showOverlay)||void 0===n||n;function w(){m(!v)}if((0,en.KE)()&&0==g&&"recommended_images"!=(null===o||void 0===o?void 0:o.event_type))return(0,an.j)()?(0,x.jsx)(rn,{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:ln.j.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,x.jsx)($e,{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:ln.j.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,tn.B6)(o)||(0,tn.WJ)(o))return(0,x.jsx)($e,{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:ln.j.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if("recommended_images"==(null===o||void 0===o?void 0:o.event_type))return(0,x.jsx)(dn,{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,tn.yC)(o)){var{status:y,bannerText:C,timeToStartInMins:b}=d.Z.getEventStatus(o);if(y.name===a.Z.LIVE.name)return(0,x.jsx)(Ce,{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",{})},cn=n(9284),un=n.n(cn),hn=n(7463),pn=n(2154);function vn(t){var e;const[n,o]=(0,i.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:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,x.jsx)(pn.Z,{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)(hn.Z,{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 xn=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",l=null!==(i=t.fontSize)&&void 0!==i?i: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)(vn,{type:"left",onClick:a,fontSize:l}),(0,x.jsx)(vn,{type:"right",onClick:a,fontSize:l})]})})},mn=n(2860),gn=n(4669);var fn=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,i.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:n(o.current.activeIndex,e),activeIndex:n(o.current.activeIndex+1,e),nextIndex:n(o.current.activeIndex+2,e)}:{prevIndex:n(o.current.activeIndex-2,e),activeIndex:n(o.current.activeIndex-1,e),nextIndex:n(o.current.activeIndex,e)}},function(t){return n(o.current.activeIndex+t)}]};var wn=function(t,e){const n=(0,i.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var l=o-i.changedTouches[0].clientX,a=r-i.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 jn=function(t,e){const n=(0,i.useRef)(Qe()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";n.current(o,l)}]},yn=n(5173);var Cn=function(t){const e=t.events,n=t.eventIndex,a=t.onBack;var[d,p,v,m]=(0,h.Z)();const[g]=(0,u.j1)("isInDesignMode"),[f]=(0,u.j1)("isDemoBrand"),[w,j]=(0,i.useState)(!0),[y,C]=(0,u.j1)("isFirstIndicatorRenderDone"),[b,S]=(0,i.useState)(!1),[I,k]=(0,i.useState)({}),{setCloseClickComponent:_}=(0,i.useContext)(Rn),{slideDirection:T}=(0,i.useContext)(Rn),[F]=(0,u.j1)("whatmoreShopId"),[E]=(0,u.j1)("whatmoreLandingLocationType"),[P,O]=fn(n,e.length),[z,L]=wn(T,50),[D]=jn("vertical",30),[M,R]=(0,i.useState)(!1),[A,K]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:q}=(0,i.useContext)(nt.I);function N(){R(!1)}function Z(t){N(),setTimeout((()=>{a(t)}),500)}(0,i.useEffect)((()=>(R(!0),()=>{})),[]);const V=W.landingLocationType,H=W.templateType;_(Z);let U=n;const{questionList:B}=(0,i.useContext)(Rn);function Y(){(0,u.MO)("whatmoreAllowAutoSlide")&&(O("right"),A.slideNext())}function X(t,e){O(e),function(t,e){A&&("left"===e?A.slidePrev():A.slideNext())}(0,e)}const G=Math.round(.05*v);return(0,x.jsx)(un(),{isOpen:M,onAfterOpen:function(){},onRequestClose:N,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,x.jsx)(yn.Z,{children:(0,x.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,J.lA)("#000000",13)},onTouchStart:t=>{z(t)},onTouchEnd:t=>{if(b)return;const e=L(t);e&&X(0,e)},onWheel:t=>{b||D(t,(t=>{X(0,t)}))},children:[(0,x.jsx)(o.tq,{speed:400,threshold:G,slidesPerView:1,direction:T,modules:[r.tl,r.Gk],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!b,allowSlidePrev:!b,allowTouchMove:!1,onSwiper:t=>{K(t),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:W,event:e[P().activeIndex],productList:e[P().activeIndex].products})},onSlideChange:t=>{var n;w?j(!1):(y||C(!0),(0,tt.Z2)({userInteractionType:et.K.VIDEO_PLAYBACK,userInteractionMetadata:I,widgetSourceDetails:W,event:e[P().activeIndex],productList:e[P().activeIndex].products}),n=e[P().activeIndex],g||f||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,Ft.NY)(V)+(0,Ft.dS)(H)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.wh)(n),"index"===E?((0,gn.Tc)(F,mn.Xh,mn.pR),(0,gt.H4)(n.event_id,n.products,mn.Xh,mn.pR,t,null===n||void 0===n?void 0:n.location,null===q||void 0===q?void 0:q.userType)):E.startsWith("product")||"embed"===E?((0,gn.Tc)(F,mn.h7,mn.dU),(0,gt.H4)(n.event_id,n.products,mn.h7,mn.dU,t)):E.startsWith("collection")?((0,gn.Tc)(F,mn.U$,mn.Pk),(0,gt.H4)(n.event_id,n.products,mn.U$,mn.Pk,t)):((0,gn.Tc)(F,mn.Xh,mn.pR),(0,gt.H4)(n.event_id,n.products,mn.Xh,mn.pR,t))})(),(0,tt.y4)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:W,event:e[P().activeIndex],productList:e[P().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((i=>(0,x.jsx)(o.o5,{children:i=>{let{isActive:o,isPrev:r,isNext:l,isVisible:a,isDuplicate:d}=i;const u=o?"activeIndex":r?"prevIndex":"nextIndex",h=P()[u];"activeIndex"==u&&(U=Math.max(U,h),0==h&&(U=0));const p=(null===B||void 0===B?void 0:B.length)>0&&o&&a&&(h>n||U<n&&h>0)&&h>=U&&h%(0,c.rFm)(F)==n%(0,c.rFm)(F);return(0,x.jsx)(s.Kq,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,x.jsx)(sn,{event:e[h],showQuestion:p,onBack:Z,isPlaying:1==e.length||o&&a,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Y,progressUpdateCallback:t=>{k(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:X})})}},"event-vertical-scroll-slide-"+i)))}),e.length>1&&!b&&(0,c.h6H)(F)&&"horizontal"===(0,c.e8z)(F)&&"horizontal"===T?(0,x.jsx)(xn,{relativeBottomPercentage:"50%",width:m,handleClick:(t,e)=>{X(0,"down"==e?"right":"left")},fontSize:parseInt(.12*m)}):(0,x.jsx)(x.Fragment,{})]})})})},bn=n(1168);n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811);const Sn=t=>{let{children:e,customClass:n,show:i,closeCallback:o}=t;return bn.createPortal((0,x.jsxs)("div",{className:"whatmore-landscape-modal whatmore-root ".concat(n),style:{display:i?"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)};Sn.defaultProps={children:(0,x.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var In=Sn;var kn=function(t){var e,[n,a,d,p]=(0,h.Z)();const[v]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[g,f]=(0,u.j1)("isFirstIndicatorRenderDone"),[w,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Rn),[C,b]=(0,i.useState)(!1),[S]=(0,u.j1)("whatmoreShopId"),[I]=(0,u.j1)("whatmoreLandingLocationType"),k=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:T}=(0,i.useContext)(nt.I),[F,E]=(0,i.useState)(!1),[P,O]=(0,i.useState)(null);function z(){E(!1)}const L=t.events,D=t.eventIndex,M=t.onBack,R=L.concat(L),A=L.length,K=null===L||void 0===L||null===(e=L[0])||void 0===e?void 0:e.brand,W=(0,i.useRef)(0);function q(t){z(),setTimeout((()=>{M(t)}),500)}function N(){P&&!P.isEnd&&(0,u.MO)("whatmoreAllowAutoSlide")&&P.slideNext()}(0,i.useEffect)((()=>(E(!0),()=>{})),[]),y(q);const Z=_.landingLocationType,H=_.templateType,[U,B]=(0,i.useState)({}),Y=parseInt(Math.min(5,L.length));return(0,x.jsx)(In,{show:F,closeCallback:z,customClass:"whatmore-landscape-modal-swipe-view",children:(0,x.jsxs)(s.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,J.lA)("#000000",13),children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xu,{height:"fit-content",width:p*Y,children:(0,x.jsxs)(o.tq,{onInit:t=>{O(t),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:_,event:L[t.activeIndex],productList:L[t.activeIndex].products,ctaList:L[t.activeIndex].cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.lI,r.W_,r.Gk,r.pt,r.tl],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,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,Ft.NY)(Z)+(0,Ft.dS)(H)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),"index"===I?((0,gn.Tc)(S,mn.Xh,mn.pR),(0,gt.H4)(e.event_id,e.products,mn.Xh,mn.pR,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):I.startsWith("product")||"embed"===I?((0,gn.Tc)(S,mn.h7,mn.dU),(0,gt.H4)(e.event_id,e.products,mn.h7,mn.dU,t)):I.startsWith("collection")?((0,gn.Tc)(S,mn.U$,mn.Pk),(0,gt.H4)(e.event_id,e.products,mn.U$,mn.Pk,t)):((0,gn.Tc)(S,mn.Xh,mn.pR),(0,gt.H4)(e.event_id,e.products,mn.Xh,mn.pR,t))})(),(0,tt.Z2)({userInteractionType:et.K.VIDEO_PLAYBACK,userInteractionMetadata:U,widgetSourceDetails:_,event:L[t.activeIndex],productList:L[t.activeIndex].products,ctaList:L[t.activeIndex].cta}),(0,tt.y4)({userInteractionType:et.K.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)(V.Z,{onCloseCallback:M})}),R.slice(D,L.length+D).map(((t,e)=>(0,x.jsx)(o.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:l}=t;if(n)return(0,x.jsx)(s.Kq,{direction:"column",height:d,width:1*p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,x.jsx)(s.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,c.alU)(S),borderColor:(0,c.qPe)(S)},children:(0,x.jsx)(sn,{event:L[e%A],onBack:q,isPlaying:!0,isLast:e%A===L.length-1,setLockSwiper:b,widthFactor:1,heightFactor:1,onVideoEndedCallback:N,progressUpdateCallback:t=>{B(t)},showCloseOverlay:(null===L||void 0===L?void 0:L.length)<=2,mode:"landscape"})})});if(o)return(0,x.jsx)(s.Kq,{direction:"column",height:d,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e%A,300)},children:(0,x.jsx)(s.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,c.alU)(S),borderColor:(0,c.qPe)(S)},children:(0,x.jsx)(sn,{event:L[e%A],onBack:q,isPlaying:!1,isLast:e%A===L.length-1,setLockSwiper:b,widthFactor:1,heightFactor:1,onVideoEndedCallback:N,progressUpdateCallback:t=>{B(t)},showOverlay:!1,mode:"landscape"})})});if(i&&1===W.current)return(0,x.jsx)(s.Kq,{direction:"column",height:d,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e%A,300)},children:(0,x.jsx)(s.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,c.alU)(S),borderColor:(0,c.qPe)(S)},children:(0,x.jsx)(sn,{event:L[e%A],onBack:q,isPlaying:!1,isLast:e%A===L.length-1,setLockSwiper:b,widthFactor:1,heightFactor:1,onVideoEndedCallback:N,progressUpdateCallback:t=>{B(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=A-1&&(W.current=1)}catch(a){console.log(a)}return(0,x.jsx)(x.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(Ae,{brandName:K,height:.04*d,width:.1*p,fontSize:.02*d})})]})})},_n=n(6090),Tn=n(7616),Fn=n(9302),En=n(2575);var Pn=function(t){const[e,n,i,o]=(0,h.Z)(),[r]=(0,u.j1)("whatmorePrimaryColor"),[l]=(0,u.j1)("whatmoreSecondaryColor"),a="flex-end";return(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xu,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,x.jsx)(s.Kq,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,x.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,x.jsx)(s.oM,{width:"full",ratio:o/i,children:(0,x.jsx)(s.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,x.jsx)(s.Kq,{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.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,x.jsx)(s.oM,{width:"full",ratio:9/16,children:(0,x.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var On=function(t){var e;const n=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,c=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,p=n.events;var[v,m,g,f]=(0,h.Z)();const[w,y]=(0,j.Z)(),[C]=(0,u.j1)("isInDesignMode"),[b]=(0,u.j1)("isDemoBrand"),[S]=(0,u.j1)("whatmoreShopId"),[I,k]=(0,i.useState)(!0),[_,T]=(0,u.j1)("isFirstIndicatorRenderDone"),[F,E]=(0,i.useState)(null),[P,O]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:z,whatmoreUserInfo:L}=(0,i.useContext)(nt.I),[D,M]=fn(c,p.length);function R(t){r(t)}const A=z.landingLocationType,K=z.templateType;function W(){if(!(0,u.MO)("whatmoreAllowAutoSlide"))return;D().activeIndex+1>=p.length?a("right"):(M("right"),F&&F.slideNext())}function q(t){const e=D().activeIndex;"right"==t&&e+1>=p.length||"left"==t&&e-1<0?a(t):(M(t),F&&("left"==t?F.slidePrev():F.slideNext()))}const[N,Z]=(0,i.useState)({});return p[D().activeIndex],(0,x.jsx)("div",{children:(0,x.jsx)(o.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:g,width:f,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{E(t)},onSlideChange:t=>{I?k(!1):(_||T(!0),(0,tt.Z2)({userInteractionType:et.K.VIDEO_PLAYBACK,userInteractionMetadata:N,widgetSourceDetails:z,event:p[D().activeIndex],productList:p[D().activeIndex].products,ctaList:p[D().activeIndex].cta}),function(t){const e=(0,Ft.NY)(A)+(0,Ft.dS)(K)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);C||b||(async()=>{(0,l.wh)(t),(0,gn.Tc)(S,mn.Xh,mn.OW),(0,gt.H4)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===L||void 0===L?void 0:L.userType)})()}(p[D().activeIndex]),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:z,event:p[D().activeIndex],productList:p[D().activeIndex].products,ctaList:p[D().activeIndex].cta}))},children:[...Array(Math.min(p.length,3)).keys()].map((e=>(0,x.jsx)(o.o5,{children:e=>{let{isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=i?"activeIndex":o?"prevIndex":"nextIndex",r=p[D()[e]];return(0,x.jsx)(s.Kq,{direction:"column",height:g,justifyContent:"center",children:(0,tn.B6)(r)||(0,tn.WJ)(r)?(0,x.jsx)($e,{event:r,totalSiblingEvents:p.length,indexAmongSiblings:D()[e],onBack:R,isPlaying:d&&i&&l,isLast:!1,setLockSwiper:O,onVideoEndedCallback:W,progressUpdateCallback:t=>{Z(t)},leftOpenSpaceClickHandler:()=>{q("left")},midOpenSpaceClickHandler:()=>{y(!w)},rightOpenSpaceClickHandler:()=>{q("right")},storyId:n.id,source:ln.j.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.Kq,{direction:"column",height:v,justifyContent:"center",children:(0,x.jsx)(Pn,{})})}},"event-story-view-slide-"+e)))})})};var zn=function(t){const e=t.onBack,n=t.eventsStories,a=t.initialStoryIndex;var[d,c,p,v]=(0,h.Z)();const[m]=(0,u.j1)("isInDesignMode"),[g]=(0,u.j1)("isDemoBrand"),[f,w]=(0,i.useState)(!0),[j,y]=(0,u.j1)("isFirstIndicatorRenderDone"),[C,b]=(0,i.useState)(!1),{setCloseClickComponent:S}=(0,i.useContext)(Rn),{slideDirection:I}=(0,i.useContext)(Rn),[k]=(0,u.j1)("whatmoreShopId"),[_,T]=fn(a,n.length),[F,E]=wn("horizontal",50),[P]=jn("vertical",30),O=t.eventIndex,[z,L]=(0,i.useState)(!1),[D,M]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:R,whatmoreUserInfo:A}=(0,i.useContext)(nt.I);function K(){L(!1)}function W(t){K(),setTimeout((()=>{e(t)}),500)}(0,i.useEffect)((()=>(L(!0),()=>{})),[]),S(W);const q=R.landingLocationType,N=R.templateType;function Z(t){D&&(0,u.MO)("whatmoreAllowAutoSlide")&&(T(t),"right"==t?D.slideNext():D.slidePrev())}function V(t,e){Z(e)}return(0,x.jsx)(un(),{isOpen:z,onAfterOpen:function(){},onRequestClose:K,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=>{F(t)},onTouchEnd:t=>{const e=E(t);e&&V(0,e)},onWheel:t=>{P(t,(t=>{V(0,t)}))},children:(0,x.jsx)(o.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.SH,r.Gk],initialSlide:a,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,i;M(t),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:R,event:n[_().activeIndex].events[0],productList:null===(e=n[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[_().activeIndex].events[0])||void 0===i?void 0:i.cta})},onSlideChange:t=>{var e,i;f?w(!1):(!function(t){const e=(0,Ft.NY)(q)+(0,Ft.dS)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);m||g||(async()=>{(0,l.wh)(t),(0,gn.Tc)(k,mn.Xh,mn.OW),(0,gt.H4)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===A||void 0===A?void 0:A.userType)})()}(n[_().activeIndex].events[0]),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:R,event:n[_().activeIndex].events[0],productList:null===(e=n[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[_().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map((t=>(0,x.jsx)(o.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:l}=t;const c=e?"activeIndex":i?"prevIndex":"nextIndex";return(0,x.jsx)(s.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,x.jsx)(On,{stories:n[_()[c]],onBack:W,isActive:e&&r,isNext:o,isPrev:i,onStoryCompleteCallback:Z,nextStories:n[_().nextIndex],prevStories:n[_().prevIndex],initialEventIndex:a==_()[c]?O:0},"event-story-view-"+n[_()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var Ln=function(t){var e,n,o,[r,l,a,d]=(0,h.Z)();const[c]=(0,u.j1)("whatmorePrimaryColor"),[p]=(0,u.j1)("whatmoreSecondaryColor"),v=t.event,m=(t.onBack,i.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),f=null!==(n=t.heightFactor)&&void 0!==n?n:1,w="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=f,(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xu,{width:d,height:a,children:[(0,x.jsx)(s.Kq,{direction:"column",justifyContent:w,height:"full",width:"full",children:(0,x.jsx)(s.xu,{children:(0,x.jsx)(s.oM,{width:"full",ratio:9/16,children:m?(0,tn.B6)(v)||(0,tn.WJ)(v)?(0,x.jsx)(Ke.Z,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:v}):(0,x.jsx)(g.Ee,{width:"full",height:"full",src:v.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,x.jsx)(s.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+c+", gray, "+p+")"})})})}),(0,x.jsx)(s.Kq,{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.xu,{children:(0,x.jsx)(s.oM,{width:"full",ratio:9/16,children:(0,x.jsx)(s.xu,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Dn=function(t){var e,n,[a,d,c,p]=(0,h.Z)();const[v]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[g,f]=(0,u.j1)("isFirstIndicatorRenderDone"),[w,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Rn),[C,b]=(0,i.useState)(!1),[S]=(0,u.j1)("whatmoreShopId"),{whatmoreWidgetSourceDetails:I,whatmoreUserInfo:k}=(0,i.useContext)(nt.I),[_,T]=(0,i.useState)(!1),[F,E]=(0,i.useState)(null);function P(){T(!1)}t.events;const O=t.eventIndex,z=t.onBack,L=t.eventsStories,D=t.initialStoryIndex,M=null===(e=L[0])||void 0===e||null===(n=e.events[0])||void 0===n?void 0:n.brand;function R(t){P(),setTimeout((()=>{z(t)}),500)}(0,i.useEffect)((()=>(T(!0),()=>{})),[]),y(R);const A=I.landingLocationType,K=I.templateType;function W(t){F&&!F.isEnd&&("right"==t?F.slideNext():F.slidePrev())}const q=parseInt(Math.min(5,L.length));return(0,x.jsx)(In,{show:_,closeCallback:P,customClass:"whatmore-landscape-modal-stories-view",children:(0,x.jsxs)(s.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xu,{height:"fit-content",width:p*q,children:(0,x.jsxs)(o.tq,{onInit:t=>{var e,n;E(t),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:I,event:L[t.activeIndex].events[0],productList:null===(e=L[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=L[t.activeIndex].events[0])||void 0===n?void 0:n.cta})},slidesPerView:q,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.lI,r.W_,r.Gk],navigation:q>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*c),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*q,watchSlidesProgress:!0,onSlideChange:t=>{var e,n;w?j(!1):(g||f(!0),function(t){const e=(0,Ft.NY)(A)+(0,Ft.dS)(K)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);v||m||(async()=>{(0,l.wh)(t),(0,gn.Tc)(S,mn.Xh,mn.OW),(0,gt.H4)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===k||void 0===k?void 0:k.userType)})()}(L[t.activeIndex].events[0]),(0,tt.GF)({userInteractionType:et.K.EVENT_VIEW,widgetSourceDetails:I,event:L[t.activeIndex].events[0],productList:null===(e=L[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=L[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[L.length>2&&(0,x.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,x.jsx)(V.Z,{onCloseCallback:z})}),L.map(((t,e)=>(0,x.jsx)(o.o5,{children:n=>{let{isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=n;if(i){const n=1;return(0,x.jsx)(s.Kq,{direction:"column",height:c,width:p*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,x.jsx)(s.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,x.jsx)(On,{stories:t,onBack:R,isActive:i&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:W,initialEventIndex:D==e?O:0,showCloseOverlay:(null===L||void 0===L?void 0:L.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,x.jsx)(s.Kq,{direction:"column",height:c,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e,300)},children:(0,x.jsx)(s.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,x.jsx)(Ln,{showPausedVideo:!0,event:L[e].events[0],onBack:R,isPlaying:!1,setLockSwiper:b})})}):(0,x.jsx)(x.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(Ae,{brandName:M,height:.04*c,width:.1*p,fontSize:.02*c})})]})})};const Mn=(0,En.Z)({key:"whatmore-css-sv"}),Rn=(0,i.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var An=function(t){var e,n,o;const[r,l,a]=(0,Le.Z)(),[d]=(0,u.j1)("whatmoreShopId"),{whatmoreRootId:s}=(0,i.useContext)(nt.I),{whatmoreIsStoriesTemplate:h}=(0,i.useContext)(nt.I);var p=t.events,v=t.index,m=t.onBack,g=t.eventsStories,f=t.initialStoryIndex,w=(0,c.cX2)(d),j="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:p.length>1?"horizontal":"vertical",y="portrait"===r?!(0,c.h6H)(d)&&!h:(0,c.n89)(d);return(0,i.useLayoutEffect)((()=>{(0,c.TLG)(d)&&(window.location.href.includes(w)?history.replaceState(null,"","#"+w):history.pushState(null,"","#"+w),window.addEventListener("popstate",(()=>{window.location.href.includes(w)||m()})))}),[]),delete Tn.ZP.styles.global,h?(0,x.jsx)(Fn.C,{value:Mn,children:(0,x.jsx)(_n.x,{theme:Tn.ZP,cssVarsRoot:s,resetCSS:!1,children:(0,x.jsx)(Rn.Provider,{value:{isIOS:(0,en.KE)(),totalEvents:p.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y},children:"portrait"===r?(0,x.jsx)(zn,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v}):(0,c.Bbr)(d)?(0,x.jsx)(Dn,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v}):(0,x.jsx)(zn,{eventsStories:g,initialStoryIndex:f,onBack:m,eventIndex:v})})})}):(0,x.jsx)(Fn.C,{value:Mn,children:(0,x.jsx)(_n.x,{theme:Tn.ZP,cssVarsRoot:s,resetCSS:!1,children:(0,x.jsx)(Rn.Provider,{value:{isIOS:(0,en.KE)(),totalEvents:p.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y,questionList:(0,c.YGB)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,x.jsx)(Cn,{events:p,eventIndex:v,onBack:m}):(0,x.jsx)(kn,{events:p,eventIndex:v,onBack:m})})})})}},9316:function(t,e,n){n.d(e,{mT:function(){return s}});var i,o,r,l=n(168),a=n(686);const d=(0,a.F4)(i||(i=(0,l.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(d," 0.2s linear;\n"),c=(0,a.F4)(o||(o=(0,l.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),u=("\n ".concat(c," 0.5s infinite linear;\n"),(0,a.F4)(r||(r=(0,l.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(u," ").concat(3,"s ease-in-out;\n")},6163:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var i=n(3271),o=n(5427),r=n(7313),l=n(7753),a=n(6336),d=n(5160);var s=n(9316),c=n(9748),u=n(6348),h=n(9854),p=n(7053),v=n(364),x=n(4522),m=n(778),g=n(6417);function f(t){var e;const[n]=(0,l.j1)("whatmoreSecondaryColor"),[r]=(0,l.j1)("whatmorePrimaryFont"),a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.width,s=t.height;return(0,g.jsx)(i.xu,{width:d,height:s,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,g.jsxs)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,g.jsxs)(i.xv,{color:n,fontSize:1.3*a,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,g.jsx)(i.M5,{paddingX:"5px",children:(0,g.jsx)(o.Z,{sx:{color:n,fontSize:1.5*a}})})]})})}var w=function(t){var e,n,o,w;const[j]=(0,l.j1)("whatmorePrimaryFont"),[y]=(0,l.j1)("isInDesignMode"),[C]=(0,l.j1)("isDemoBrand"),[b,S]=(0,l.j1)("appCartData"),[I]=(0,l.j1)("whatmoreShopId"),[k]=[(0,h.hmr)(I)],_=(0,h.hmr)(I),[T,F]=(0,r.useState)(!1),[E,P]=(0,r.useState)({state:"initial"}),[O,z]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:L}=(0,r.useContext)(u.EventClickComponentContext),{whatmoreWidgetSourceDetails:D}=(0,r.useContext)(v.I),M=t.event,R=t.product,A=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function K(t,e,n){y||C||(async()=>{(0,d.JX)(t,e,n)})()}(0,r.useEffect)((()=>{!async function(){var t,e,n,i;const o=await(0,p.p)(R,(0,h.Ipo)(I),I);z({loaded:!0,client_product_id:R.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===(n=o.variants)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.price})}()}),[]);const W=null!==(n=t.width)&&void 0!==n?n:"fit-content",q=null!==(o=t.height)&&void 0!==o?o:"fit-content",N=(null!==(w=(0,h.Jb1)(I))&&void 0!==w?w:2)+"px";return O.loaded?(0,g.jsx)("div",{style:{width:W,height:q},children:(0,g.jsx)("a",{href:"javascript:void(0)","data-variant-id":O.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,g.jsx)(c.zx,{type:"submit",className:(0,h.Sl8)(I),sx:{width:W,height:q,minHeight:q},onClick:t=>{F(!0),K(M,R,1),(0,x.GF)({userInteractionType:m.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:D,event:M,productList:[R],ctaList:M.cta}),null!==L&&setTimeout((()=>{L()}),2e3)},children:"initial"===E.state?(0,g.jsx)(a.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:W},children:(0,g.jsx)(i.xu,{width:"100%",height:"100%",padding:N,boxShadow:"lg",borderRadius:"md",backgroundColor:_,borderColor:_,borderWidth:"1px",animation:T?s.mT:null,onAnimationEnd:()=>{F(!1)},children:(0,g.jsx)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,g.jsx)(i.M5,{children:(0,g.jsxs)(i.xv,{lineHeight:"100%",fontSize:1.3*A,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,h.KCy)(I)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,g.jsx)(a.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:W},children:(0,g.jsx)(f,{event:M,product:R,baseFontSize:A,cartState:E,width:W,height:q})})})})}):(0,g.jsx)(g.Fragment,{})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),l=n(6417);e.Z=function(t){var e,n=t.event,a=t.fontSize,d=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:s,bannerText:c,timeToStartInMins:u}=o.Z.getEventStatus(n);return s.name===r.Z.LIVE.name?(0,l.jsx)(i.xu,{maxWidth:d,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"bold",color:"white",children:c})})}):(0,l.jsx)(i.xu,{maxWidth:d,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"medium",children:c})})})}},499:function(t,e){e.Z={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"}}},4897:function(t,e,n){var i=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==i.Z.LIVE.name)return{status:i.Z.LIVE,bannerText:" "+i.Z.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==i.Z.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+n+" "+l),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,r=o/60,l=r/24;return n<=0?{status:i.Z.COMPLETED,bannerText:" "+i.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:i.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:i.Z.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:i.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},6159:function(t,e,n){var i=n(3271),o=n(8302),r=n(7789),l=n(6417);e.Z=function(t){const e=t.onCloseCallback,[n,a,d,s]=(0,r.Z)(),c=.08*s;return(0,l.jsx)(i.M5,{children:(0,l.jsx)(i.Cd,{cursor:"pointer",children:(0,l.jsx)(o.Z,{sx:{boxShadow:3,color:"white",fontSize:c,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e("close-button")}})})})}},1896:function(t,e,n){n.d(e,{Z:function(){return j}});var i=n(7313),o=n(7300),r=n(6422),l=n(6348),a=n(3317),d=n(2887),s=n(7753),c=n(58),u=n(3433),h=n(9854),p=n(6932),v=(n(8743),n(364)),x=n(342),m=n(6417);function g(t){var e,n,o;const[l,d]=(0,r.Z)(),[g,f]=(0,i.useState)(i.useRef()),w=t.posterImage,[j,y]=(0,s.j1)("whatmoreVideoPlayerPoolBlessed"),[C,b]=(0,i.useState)(!0),[S,I]=(0,i.useState)(!1),k=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,i.useContext)(v.I),T=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,F=null!==(n=t.height)&&void 0!==n?n:"100%",E=null!==(o=t.width)&&void 0!==o?o:"100%",P=(0,s.MO)("whatmoreShopId");(0,i.useLayoutEffect)((()=>{if(g.current&&j)if(0==g.current.children.length){const n=(0,x.$W)(t.url);(e=(0,c.Bi)(g.current,t.url,T||!t.isPlaying,t.isPlaying,n)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",(()=>{b(!1)})),k&&e.addEventListener("timeupdate",(t=>{var n,i;e&&k(null!==(n=e.currentTime)&&void 0!==n?n:0,null!==(i=e.duration)&&void 0!==i?i:0)}))}else{var e;(e=g.current.children[0]).muted=T||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.dF_)(P)&&t.source==u.j.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout((()=>{!t.isPlaying&&e.pause()}),(0,p.G)()?1900:800)))}}),[T,t.isPlaying,j,C]),(0,i.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.P7)(g.current)}),[]);const O=(0,s.MO)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:E,height:F,overflow:"hidden",backgroundColor:_?(0,h.WNM)(P):(0,h.Gy3)(P),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:C?"0px":"100%",height:C?"0px":_?(0,h.Yiq)(P):(0,h.Gm3)(P)&&"product"==O?"auto":(0,h.MT6)(P)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==P&&C&&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:E,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):C&&!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:E,onLoad:()=>{I(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.Z,{width:E,height:F,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,n,o;const[l,d]=(0,r.Z)(),[c,g]=(0,i.useState)(!1),[f,w]=(0,i.useState)(!1),j=t.setDuration,y=(0,i.useRef)(null),C=(0,s.MO)("whatmoreShopId"),b=t.timeUpdateCallback,{whatmoreIsPreviewMode:S}=(0,i.useContext)(v.I),I=(0,s.MO)("whatmoreLandingLocationType"),k=null!==(e=t.height)&&void 0!==e?e:"100%",_=null!==(n=t.width)&&void 0!==n?n:"100%",T=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,F=null===t||void 0===t?void 0:t.posterImage;return(0,i.useEffect)((()=>{y.current&&(t.isPlaying?y.current.paused&&y.current.play():y.current.pause(),b&&y.current.addEventListener("timeupdate",(t=>{var e,n;y.current&&b(null!==(e=y.current.currentTime)&&void 0!==e?e:0,null!==(n=y.current.duration)&&void 0!==n?n:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:_,height:k,overflow:"hidden",backgroundColor:S?(0,h.WNM)(C):(0,h.Gy3)(C),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.Yiq)(C):(0,h.Gm3)(C)&&"product"==I?"auto":(0,h.MT6)(C):"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:!(!T&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&y.current&&y.current.play(),(0,h.dF_)(C)&&t.source==u.j.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&y.current&&y.current.play(),setTimeout((()=>{!t.isPlaying&&y.current&&y.current.pause()}),(0,p.G)()?1900:800))},onLoadedMetadata:()=>{y.current&&j&&j(y.current.duration)},poster:"banner"==t.source?t.url:F,children:[(0,m.jsx)("source",{src:t.url,type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.$W)(t.url),type:"video/mp4"})]})}),"40273707171"!==C&&!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:F,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:F,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.Z,{width:_,height:k,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var j=function(t){var e,n,r,a;return(0,o.WJ)(t.event)?(0,m.jsx)(d.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,i.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.MO)("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===(n=t.event)||void 0===n?void 0:n.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},3433:function(t,e,n){n.d(e,{j:function(){return i}});const i={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"}},6119:function(t,e,n){var i,o=n(168),r=n(3271),l=(n(7313),n(7789)),a=n(7753),d=n(686),s=n(9854),c=n(5160),u=n(6417);(0,d.F4)(i||(i=(0,o.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"])));const h=function(t,e){return(0,s.lj5)(e)?t+"?"+(0,s.awP)(e)+"&"+(0,s.n9s)(e)+"&"+(0,s.poG)(e):t};e.Z=function(t){var e;const[n,i,o,d]=(0,l.Z)(),p=(0,a.MO)("isInDesignMode"),v=(0,a.MO)("isDemoBrand"),x=(0,a.MO)("whatmoreSecondaryColor"),m=(0,a.MO)("whatmorePrimaryFont"),g=(0,a.MO)("whatmoreShopId"),f=t.cta,w=.06*d;return(0,u.jsx)(r.M5,{children:(0,u.jsx)(r.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*d+"px",marginTop:.03*d+"px",children:(0,u.jsx)(r.rU,{href:h(f.cta_link,g),color:"white",onClick:()=>{p||v||(async()=>{(0,c.uD)(t)})()},children:(0,u.jsx)(r.xv,{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,s._KP)(g)?"5px":"0",sx:{boxShadow:"1px 1px #0000001a",fontFamily:m+" !important",textAlign:"center!important",fontWeight:t.isBanner?"bold":void 0},padding:"10px",paddingX:.06*d+"px",children:f.cta_title})})})})}},8782:function(t,e,n){n.d(e,{P:function(){return a}});var i=n(6775),o=n(7313),r=(n(123),n(6417));function l(t){const[e,n,o]=(0,i.Z)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?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,n;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,n=!1;function i(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(n=!0,e=t.touches[0].clientX):(n=!0,e=t.clientX)}function o(i){if(!n)return;const o=i.touches?i.touches[0].clientX:i.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",n=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",i),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",i),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",i),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===(n=t.dataList)||void 0===n?void 0:n.map(((e,n)=>(0,r.jsx)(l,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n)))})}},6422:function(t,e,n){var i=n(7313),o=n(7753);e.Z=function(t){const[e,n]=(0,o.j1)("muted");return(0,i.useEffect)((()=>{}),[]),[e,n]}},7789:function(t,e,n){var i=n(8866);e.Z=function(t){const[e,n,o]=(0,i.Z)();var r="landscape"==e?n*(9/16):o;if("landscape"==e){const t=.85;return[n,r,n*t,r*t]}return[n,r,n,r]}},9111:function(){}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[576],{5098:function(e,r,t){t.d(r,{Ee:function(){return c}});var a=t(7313),n=t(7653),i=t(7872),s=t(4959);var o=(0,n.Gp)((function(e,r){const{htmlWidth:t,htmlHeight:n,alt:i,...s}=e;return a.createElement("img",{width:t,height:n,ref:r,alt:i,...s})}));i.Ts&&(o.displayName="NativeImage");var c=(0,n.Gp)((function(e,r){const{fallbackSrc:t,fallback:c,src:l,srcSet:m,align:d,fit:p,loading:u,ignoreFallback:f,crossOrigin:g,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:y,...v}=e,x=null!=u||f||!(void 0!==t||void 0!==c),k=function(e){const{loading:r,src:t,srcSet:n,onLoad:i,onError:o,crossOrigin:c,sizes:l,ignoreFallback:m}=e,[d,p]=(0,a.useState)("pending");(0,a.useEffect)((()=>{p(t?"loading":"pending")}),[t]);const u=(0,a.useRef)(),f=(0,a.useCallback)((()=>{if(!t)return;g();const e=new Image;e.src=t,c&&(e.crossOrigin=c),n&&(e.srcset=n),l&&(e.sizes=l),r&&(e.loading=r),e.onload=e=>{g(),p("loaded"),null==i||i(e)},e.onerror=e=>{g(),p("failed"),null==o||o(e)},u.current=e}),[t,c,n,l,i,o,r]),g=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return(0,s.Gw)((()=>{if(!m)return"loading"===d&&f(),()=>{g()}}),[d,f,m]),m?"loaded":d}({...e,ignoreFallback:x}),_=((e,r)=>"loaded"!==e&&"beforeLoadOrError"===r||"failed"===e&&"onError"===r)(k,h),b={ref:r,objectFit:p,objectPosition:d,...x?v:(0,i.CE)(v,["onError","onLoad"])};return _?c||a.createElement(n.m$.img,{as:o,className:"chakra-image__placeholder",src:t,...b}):a.createElement(n.m$.img,{as:o,src:l,srcSet:m,crossOrigin:g,loading:u,referrerPolicy:y,className:"chakra-image",...b})}));(0,n.Gp)(((e,r)=>a.createElement(n.m$.img,{ref:r,as:o,className:"chakra-image",...e})));i.Ts&&(c.displayName="Image")},3271:function(e,r,t){t.d(r,{oM:function(){return m},Ct:function(){return d},xu:function(){return p},M5:function(){return g},Cd:function(){return f},iz:function(){return x},kC:function(){return k},Ug:function(){return X},X6:function(){return N},rU:function(){return E},bK:function(){return u},Kq:function(){return R},xv:function(){return q}});var a=t(7313),n=t(7653),i=t(7872),s=t(190),o={path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),a.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},c=(0,n.Gp)(((e,r)=>{const{as:t,viewBox:s,color:c="currentColor",focusable:l=!1,children:m,className:d,__css:p,...u}=e,f={ref:r,focusable:l,className:(0,i.cx)("chakra-icon",d),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:c,...p}},g=null!==s&&void 0!==s?s:o.viewBox;if(t&&"string"!==typeof t)return a.createElement(n.m$.svg,{as:t,...f,...u});const h=null!==m&&void 0!==m?m:o.path;return a.createElement(n.m$.svg,{verticalAlign:"middle",viewBox:g,...f,...u},h)}));i.Ts&&(c.displayName="Icon");var l=t(87),m=(0,n.Gp)((function(e,r){const{ratio:t=4/3,children:s,className:o,...c}=e,l=a.Children.only(s),m=(0,i.cx)("chakra-aspect-ratio",o);return a.createElement(n.m$.div,{ref:r,position:"relative",className:m,_before:{height:0,content:'""',display:"block",paddingBottom:(0,i.XQ)(t,(e=>"".concat(1/e*100,"%")))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c},l)}));i.Ts&&(m.displayName="AspectRatio");var d=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Badge",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.span,{ref:r,className:(0,i.cx)("chakra-badge",e.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...t}})}));i.Ts&&(d.displayName="Badge");var p=(0,n.m$)("div");i.Ts&&(p.displayName="Box");var u=(0,n.Gp)((function(e,r){const{size:t,centerContent:n=!0,...i}=e,s=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(p,{ref:r,boxSize:t,__css:{...s,flexShrink:0,flexGrow:0},...i})}));i.Ts&&(u.displayName="Square");var f=(0,n.Gp)((function(e,r){const{size:t,...n}=e;return a.createElement(u,{size:t,ref:r,borderRadius:"9999px",...n})}));i.Ts&&(f.displayName="Circle");var g=(0,n.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});i.Ts&&(g.displayName="Center");var h={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},y=((0,n.Gp)((function(e,r){const{axis:t="both",...i}=e;return a.createElement(n.m$.div,{ref:r,__css:h[t],...i,position:"absolute"})})),(0,n.Gp)((function(e,r){const t=(0,n.mq)("Code",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.code,{ref:r,className:(0,i.cx)("chakra-code",e.className),...c,__css:{display:"inline-block",...t}})})));i.Ts&&(y.displayName="Code");var v=(0,n.Gp)((function(e,r){const{className:t,centerContent:o,...c}=(0,s.Lr)(e),l=(0,n.mq)("Container",e);return a.createElement(n.m$.div,{ref:r,className:(0,i.cx)("chakra-container",t),...c,__css:{...l,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}));i.Ts&&(v.displayName="Container");var x=(0,n.Gp)((function(e,r){const{borderLeftWidth:t,borderBottomWidth:o,borderTopWidth:c,borderRightWidth:l,borderWidth:m,borderStyle:d,borderColor:p,...u}=(0,n.mq)("Divider",e),{className:f,orientation:g="horizontal",__css:h,...y}=(0,s.Lr)(e),v={vertical:{borderLeftWidth:t||l||m||"1px",height:"100%"},horizontal:{borderBottomWidth:o||c||m||"1px",width:"100%"}};return a.createElement(n.m$.hr,{ref:r,"aria-orientation":g,...y,__css:{...u,border:"0",borderColor:p,borderStyle:d,...v[g],...h},className:(0,i.cx)("chakra-divider",f)})}));i.Ts&&(x.displayName="Divider");var k=(0,n.Gp)((function(e,r){const{direction:t,align:i,justify:s,wrap:o,basis:c,grow:l,shrink:m,...d}=e,p={display:"flex",flexDirection:t,alignItems:i,justifyContent:s,flexWrap:o,flexBasis:c,flexGrow:l,flexShrink:m};return a.createElement(n.m$.div,{ref:r,__css:p,...d})}));i.Ts&&(k.displayName="Flex");var _=(0,n.Gp)((function(e,r){const{templateAreas:t,gap:i,rowGap:s,columnGap:o,column:c,row:l,autoFlow:m,autoRows:d,templateRows:p,autoColumns:u,templateColumns:f,...g}=e,h={display:"grid",gridTemplateAreas:t,gridGap:i,gridRowGap:s,gridColumnGap:o,gridAutoColumns:u,gridColumn:c,gridRow:l,gridAutoFlow:m,gridAutoRows:d,gridTemplateRows:p,gridTemplateColumns:f};return a.createElement(n.m$.div,{ref:r,__css:h,...g})}));function b(e){return(0,i.XQ)(e,(e=>"auto"===e?"auto":"span ".concat(e,"/span ").concat(e)))}i.Ts&&(_.displayName="Grid");(0,n.Gp)((function(e,r){const{area:t,colSpan:s,colStart:o,colEnd:c,rowEnd:l,rowSpan:m,rowStart:d,...p}=e,u=(0,i.YU)({gridArea:t,gridColumn:b(s),gridRow:b(m),gridColumnStart:o,gridColumnEnd:c,gridRowStart:d,gridRowEnd:l});return a.createElement(n.m$.div,{ref:r,__css:u,...p})}));var N=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Heading",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.h2,{ref:r,className:(0,i.cx)("chakra-heading",e.className),...c,__css:t})}));i.Ts&&(N.displayName="Heading");(0,n.Gp)((function(e,r){const t=(0,n.mq)("Mark",e),i=(0,s.Lr)(e);return a.createElement(p,{ref:r,...i,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...t}})}));var w=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Kbd",e),{className:o,...c}=(0,s.Lr)(e);return a.createElement(n.m$.kbd,{ref:r,className:(0,i.cx)("chakra-kbd",o),...c,__css:{fontFamily:"mono",...t}})}));i.Ts&&(w.displayName="Kbd");var E=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Link",e),{className:o,isExternal:c,...l}=(0,s.Lr)(e);return a.createElement(n.m$.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:r,className:(0,i.cx)("chakra-link",o),...l,__css:t})}));i.Ts&&(E.displayName="Link");(0,n.Gp)((function(e,r){const{isExternal:t,target:s,rel:o,className:c,...l}=e;return a.createElement(n.m$.a,{...l,ref:r,className:(0,i.cx)("chakra-linkbox__overlay",c),rel:t?"noopener noreferrer":o,target:t?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})})),(0,n.Gp)((function(e,r){const{className:t,...s}=e;return a.createElement(n.m$.div,{ref:r,position:"relative",...s,className:(0,i.cx)("chakra-linkbox",t),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})}));var[T,G]=(0,l.kr)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),S=(0,n.Gp)((function(e,r){const t=(0,n.jC)("List",e),{children:i,styleType:o="none",stylePosition:c,spacing:m,...d}=(0,s.Lr)(e),p=(0,l.WR)(i),u=m?{"& > *:not(style) ~ *:not(style)":{mt:m}}:{};return a.createElement(T,{value:t},a.createElement(n.m$.ul,{ref:r,listStyleType:o,listStylePosition:c,role:"list",__css:{...t.container,...u},...d},p))}));i.Ts&&(S.displayName="List");var C=(0,n.Gp)(((e,r)=>{const{as:t,...n}=e;return a.createElement(S,{ref:r,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));i.Ts&&(C.displayName="OrderedList");var L=(0,n.Gp)((function(e,r){const{as:t,...n}=e;return a.createElement(S,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...n})}));i.Ts&&(L.displayName="UnorderedList");var $=(0,n.Gp)((function(e,r){const t=G();return a.createElement(n.m$.li,{ref:r,...e,__css:t.item})}));i.Ts&&($.displayName="ListItem");var W=(0,n.Gp)((function(e,r){const t=G();return a.createElement(c,{ref:r,role:"presentation",...e,__css:t.icon})}));i.Ts&&(W.displayName="ListIcon");var B=(0,n.Gp)((function(e,r){const{columns:t,spacingX:s,spacingY:o,spacing:c,minChildWidth:l,...m}=e,d=(0,n.Fg)(),p=l?function(e,r){return(0,i.XQ)(e,(e=>{const t=(0,n.LP)("sizes",e,(a=e,(0,i.hj)(a)?"".concat(a,"px"):a))(r);var a;return(0,i.Ft)(e)?null:"repeat(auto-fit, minmax(".concat(t,", 1fr))")}))}(l,d):(u=t,(0,i.XQ)(u,(e=>(0,i.Ft)(e)?null:"repeat(".concat(e,", minmax(0, 1fr))"))));var u;return a.createElement(_,{ref:r,gap:c,columnGap:s,rowGap:o,templateColumns:p,...m})}));i.Ts&&(B.displayName="SimpleGrid");var j=(0,n.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});i.Ts&&(j.displayName="Spacer");var I="& > *:not(style) ~ *:not(style)";var z=e=>a.createElement(n.m$.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}}),R=(0,n.Gp)(((e,r)=>{const{isInline:t,direction:s,align:o,justify:c,spacing:m="0.5rem",wrap:d,children:p,divider:u,className:f,shouldWrapChildren:g,...h}=e,y=t?"row":null!==s&&void 0!==s?s:"column",v=(0,a.useMemo)((()=>function(e){const{spacing:r,direction:t}=e,a={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return{flexDirection:t,[I]:(0,i.XQ)(t,(e=>a[e]))}}({direction:y,spacing:m})),[y,m]),x=(0,a.useMemo)((()=>function(e){const{spacing:r,direction:t}=e,a={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,i.XQ)(t,(e=>a[e]))}}({spacing:m,direction:y})),[m,y]),k=!!u,_=!g&&!k,b=(0,l.WR)(p),N=_?b:b.map(((e,r)=>{const t="undefined"!==typeof e.key?e.key:r,n=r+1===b.length,i=g?a.createElement(z,{key:t},e):e;if(!k)return i;const s=(0,a.cloneElement)(u,{__css:x}),o=n?null:s;return a.createElement(a.Fragment,{key:t},i,o)})),w=(0,i.cx)("chakra-stack",f);return a.createElement(n.m$.div,{ref:r,display:"flex",alignItems:o,justifyContent:c,flexDirection:v.flexDirection,flexWrap:d,className:w,__css:k?{}:{[I]:v[I]},...h},N)}));i.Ts&&(R.displayName="Stack");var X=(0,n.Gp)(((e,r)=>a.createElement(R,{align:"center",...e,direction:"row",ref:r})));i.Ts&&(X.displayName="HStack");var F=(0,n.Gp)(((e,r)=>a.createElement(R,{align:"center",...e,direction:"column",ref:r})));i.Ts&&(F.displayName="VStack");var q=(0,n.Gp)((function(e,r){const t=(0,n.mq)("Text",e),{className:o,align:c,decoration:l,casing:m,...d}=(0,s.Lr)(e),p=(0,i.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(n.m$.p,{ref:r,className:(0,i.cx)("chakra-text",e.className),...p,...d,__css:t})}));function A(e){return"number"===typeof e?"".concat(e,"px"):e}i.Ts&&(q.displayName="Text");var M=(0,n.Gp)((function(e,r){const{spacing:t="0.5rem",spacingX:o,spacingY:c,children:l,justify:m,direction:d,align:p,className:u,shouldWrapChildren:f,...g}=e,h=(0,a.useMemo)((()=>{const{spacingX:e=t,spacingY:r=t}={spacingX:o,spacingY:c};return{"--chakra-wrap-x-spacing":r=>(0,i.XQ)(e,(e=>A((0,s.fr)("space",e)(r)))),"--chakra-wrap-y-spacing":e=>(0,i.XQ)(r,(r=>A((0,s.fr)("space",r)(e)))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:m,alignItems:p,flexDirection:d,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[t,o,c,m,p,d]),y=f?a.Children.map(l,((e,r)=>a.createElement(O,{key:r},e))):l;return a.createElement(n.m$.div,{ref:r,className:(0,i.cx)("chakra-wrap",u),overflow:"hidden",...g},a.createElement(n.m$.ul,{className:"chakra-wrap__list",__css:h},y))}));i.Ts&&(M.displayName="Wrap");var O=(0,n.Gp)((function(e,r){const{className:t,...s}=e;return a.createElement(n.m$.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",t),...s})}));i.Ts&&(O.displayName="WrapItem")},168:function(e,r,t){function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}t.d(r,{Z:function(){return a}})}}]);
|