whatmore-react-assets 1.0.1584 → 1.0.1585

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[217],{4217:function(t,e,i){i.r(e),i.d(e,{EventClickComponentContext:function(){return Ti},default:function(){return Ni}});var n=i(9950),o=i(8378),r=i(9094),l=i(140),a=i(5388),d=i(7239),s=i(6086),c=i(3247),u=i(1422),h=i(195),p=i(1348),v=i(5830),x=i(3080),m=i(8149),g=i(3771),f=i(4414);var w=function(t){return(0,f.jsx)(g.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},j=i(3731),y=i(211),C=i(4895),b=i(5375),S=i(6670);var k=function(t){const[e,i]=(0,S.A)(),[n,o,r,l]=(0,x.A)(),a=.08*l;function d(){i(!e)}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:e?(0,f.jsx)(b.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}}):(0,f.jsx)(C.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}})})})},I=i(677),_=i(645),z=i(8283);const E=`${z.i7`
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[217],{4217:function(t,e,i){i.r(e),i.d(e,{EventClickComponentContext:function(){return Ni},default:function(){return Ai}});var n=i(9950),o=i(8378),r=i(9094),l=i(140),a=i(5388),d=i(7239),s=i(6086),c=i(3247),u=i(1422),h=i(195),p=i(1348),v=i(5830),x=i(3080),m=i(8149),g=i(3771),f=i(4414);var w=function(t){return(0,f.jsx)(g.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},j=i(3731),y=i(211),C=i(4895),b=i(5375),S=i(6670);var k=function(t){const[e,i]=(0,S.A)(),[n,o,r,l]=(0,x.A)(),a=.08*l;function d(){i(!e)}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:e?(0,f.jsx)(b.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}}):(0,f.jsx)(C.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}})})})},I=i(677),_=i(645),z=i(8283);const E=`${z.i7`
2
2
  0%,10%,15% {
3
3
  opacity: 0;
4
4
  }
@@ -45,7 +45,7 @@
45
45
  opacity: 1;
46
46
  }
47
47
 
48
- `} 3s ease-in-out;\n`;function F(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmoreSecondaryColor"),[a,d]=(0,n.useState)(0),[h]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.onClick,w=m.products.length;t.isFirstProductsIconClickDone;(0,n.useEffect)((()=>{const t=setInterval((()=>{d((t=>(t+1)%w))}),3e3);return()=>{clearInterval(t)}}),[]);const C=.24,b=.024;var S=r*C+"px",k=r*C+"px",_=r*b*1.5+"px",z=r*b+"px",T=r*b*1.5+"px";if(void 0==m.products||0==m.products.length)return(0,f.jsx)(f.Fragment,{});var F=m.products;return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,f.jsxs)(c.az,{margin:"10px",width:S,height:k,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:E,onClick:()=>g(),children:[(0,f.jsx)(y._,{width:"100%",height:"100%",src:F[a].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,p.KZe)(h)+" !important"},borderRadius:"lg",animation:A},a),(0,f.jsx)(c.az,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,f.jsx)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:l,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,f.jsxs)(j.E,{noOfLines:1,fontSize:z,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,f.jsx)(s.o,{children:(0,f.jsx)(N.A,{sx:{color:"white",fontSize:T}})})]})})})}),(0,f.jsx)(u.B,{direction:"row",height:"fit-content",width:S,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(I.E,{fontSize:_,variant:"subtle",textColor:l,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:w>1?w:""})})]})})}var P=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),[o,r,l,a]=(0,x.A)(),[d,u]=(0,n.useState)(!1),h=t.onToggle,p=t.event,m=.07*a,g=.15*l,w=.05*a;return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.M6,{style:{marginTop:"10px"},children:e?(0,f.jsx)(_.A,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"absolute",bottom:g,right:w,zIndex:10},onClick:()=>{h("minimize-button")}}):(0,f.jsx)(F,{event:p,onClick:()=>{h("products-button"),u(!0)},isFirstProductsIconClickDone:d})})})},L=i(5242),B=i(9541),O=i(8871),D=i(5078),R=i(731);var W=function(t){var e,i;const[o,r,l,a]=(0,x.A)(),[d,h]=(0,n.useState)(!0),{slideDirection:p}=(0,n.useContext)(Ti),m=((0,v.Xd)("whatmoreShopId"),null!==(e=t.showForSeconds)&&void 0!==e?e:3),g=null!==(i=t.delayInSeconds)&&void 0!==i?i:1;t.swipeUp,(0,n.useEffect)((()=>{const t=setTimeout((()=>{h(!1)}),1e3*m);return()=>{clearTimeout(t)}}),[]);const w=.15*a,y=.07*a,C=`${z.i7`
48
+ `} 3s ease-in-out;\n`;function F(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmoreSecondaryColor"),[a,d]=(0,n.useState)(0),[h]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.onClick,w=m.products.length;t.isFirstProductsIconClickDone;(0,n.useEffect)((()=>{const t=setInterval((()=>{d((t=>(t+1)%w))}),3e3);return()=>{clearInterval(t)}}),[]);const C=.24,b=.024;var S=r*C+"px",k=r*C+"px",_=r*b*1.5+"px",z=r*b+"px",T=r*b*1.5+"px";if(void 0==m.products||0==m.products.length)return(0,f.jsx)(f.Fragment,{});var F=m.products;return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,f.jsxs)(c.az,{margin:"10px",width:S,height:k,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:E,onClick:()=>g(),children:[(0,f.jsx)(y._,{width:"100%",height:"100%",src:F[a].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,p.KZe)(h)+" !important"},borderRadius:"lg",animation:A},a),(0,f.jsx)(c.az,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,f.jsx)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:l,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,f.jsxs)(j.E,{noOfLines:1,fontSize:z,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,f.jsx)(s.o,{children:(0,f.jsx)(N.A,{sx:{color:"white",fontSize:T}})})]})})})}),(0,f.jsx)(u.B,{direction:"row",height:"fit-content",width:S,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(I.E,{fontSize:_,variant:"subtle",textColor:l,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:w>1?w:""})})]})})}var P=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),[o,r,l,a]=(0,x.A)(),[d,u]=(0,n.useState)(!1),h=t.onToggle,p=t.event,m=.07*a,g=.15*l,w=.05*a;return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.M6,{style:{marginTop:"10px"},children:e?(0,f.jsx)(_.A,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"absolute",bottom:g,right:w,zIndex:10},onClick:()=>{h("minimize-button")}}):(0,f.jsx)(F,{event:p,onClick:()=>{h("products-button"),u(!0)},isFirstProductsIconClickDone:d})})})},L=i(5242),B=i(9541),O=i(8871),D=i(5078),R=i(731);var W=function(t){var e,i;const[o,r,l,a]=(0,x.A)(),[d,h]=(0,n.useState)(!0),{slideDirection:p}=(0,n.useContext)(Ni),m=((0,v.Xd)("whatmoreShopId"),null!==(e=t.showForSeconds)&&void 0!==e?e:3),g=null!==(i=t.delayInSeconds)&&void 0!==i?i:1;t.swipeUp,(0,n.useEffect)((()=>{const t=setTimeout((()=>{h(!1)}),1e3*m);return()=>{clearTimeout(t)}}),[]);const w=.15*a,y=.07*a,C=`${z.i7`
49
49
  0% {
50
50
  transform: translateY(0%) rotate(0deg);
51
51
  }
@@ -65,19 +65,19 @@
65
65
  100% {
66
66
  transform: translateY(0%) rotate(0deg);
67
67
  }
68
- `} infinite 1.5s linear`;return(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:g,children:(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===p?C:b,children:"vertical"===p?(0,f.jsx)(D.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(R.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{textShadow:"dark-lg",fontSize:y+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var Q=function(t){const[e,i]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)((()=>{const t=setTimeout((()=>{i(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,f.jsx)(W,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},V=i(8781),M=i(5144),H=i(4459);const U="15px";var X=i(1351),Y=i(6157),$=i(4737);var q=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,m,g]=(0,x.A)(),[w,y]=(0,n.useState)(!1),C=t.product,b=t.event,{whatmoreWidgetSourceDetails:S}=(0,n.useContext)($.B),k=.1*m,I=.95*g,_=.05*g;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:U,backgroundColor:o,borderRadius:"5px",animation:w?M.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{y(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[n],ctaList:t.cta})})()}(b,C),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(C)},_hover:{backgroundColor:(0,H.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},K=i(4892),G=i(8538),Z=i(7458),J=i(2159),tt=i(9537),et=i(6710),it=i(173),nt=(i(6125),i(4905));const ot={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 rt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,m=t.width,g=t.height,w=t.title,y=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?M.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:y?(0,H.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),y?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function lt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,m=t.onClick,g=t.width,w=t.height;return(0,f.jsx)(c.az,{width:g,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),m(),h(!0)},animation:d?M.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,p.KPq)(a),"\xa0"]})})})})}function at(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(j.E,{color:"gray",lineHeight:"100%",fontSize:1.3*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function dt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var st=function(t){var e,i,n,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(at,{baseFontSize:s,width:g,height:w})}):"init"==u?0==h?(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(dt,{onClick:m,baseFontSize:s,cartCount:h,width:g,height:w,onCartIconClick:x})}):(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):(0,f.jsx)(rt,{onClick:m,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:g,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===ot||void 0===ot||null===(a=ot[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},ct=i(4533),ut=i(6387),ht=i(1745);const pt=(0,v.Xd)("isInDesignMode"),vt=(0,v.Xd)("isDemoBrand");async function xt(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,ht.RX)(t,e,n,l,a,d):(pt||vt||(async()=>{(0,ct.Fu)(o,r,l,a,d)})(),(0,ut.It)(null===t||void 0===t?void 0:t[0],e,n))}function mt(t,e){return"shopify"==t?(0,ht.iL)(e):(0,ut.pV)(e)}var gt=i(852);var ft=function(t,e,i){const[o]=(0,v.QN)("whatmoreShopId"),[r]=(0,v.QN)("isInDesignMode"),[a]=(0,v.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),c=(0,n.useRef)(null),{closeClickComponent:u}=(0,n.useContext)(Ti),{whatmoreUserInfo:h}=(0,n.useContext)($.B),[x,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,v.t2)("whatmoreAllowAutoSlide",!1):(0,v.t2)("whatmoreAllowAutoSlide",!0)}function w(t){const e=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function j(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function C(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function b(){if(c.current&&c.current.length>=1){return c.current.filter((t=>t.available)).length>=1}return!1}function S(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}function k(t,n){const r=w(t);if(!r)return void f("init",x.cart_count);f("atcApiCallInProgress",null);xt([r],1,(0,p.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(S(i,e,1),f("init",x.cart_count+1),(0,v.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,v.Xd)("whatmoreAddedToCart")&&(0,gt.H)(o,(()=>{}),100,window.location.hostname),(0,p.MPe)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[x,function(t){const n=[];f("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,m.M)(t,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const i=j(e);if(s(i),C(i)&&b()){const e=w([y(i[0]),y(i[1]),y(i[2])]);return e?(n.push(t),e):void f("init",x.cart_count)}}))))).then((r=>{const l=r.filter((t=>void 0!=t));xt(l,1,(0,p.NCy)(o),o,i,e,t,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{S(i,t,1)})),f("init",x.cart_count+(null===l||void 0===l?void 0:l.length)),(0,v.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}))},f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,m.M)(e,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const n=j(e);s(n),C(n)||i?b()?k([y(n[0]),y(n[1]),y(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},k,function(t){var e,i,n,r;const l=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,p.NCy)(o),a),compare_price:((0,p.NCy)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,p.m4S)(o)&&("go_to_cart_page"!==(0,p.m4S)(o)?"open_cart_slider"!==(0,p.m4S)(o)||null!==u&&u():mt((0,p.NCy)(o),o))}]},wt=i(2720),jt=i(3755),yt=i(7973);var Ct=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",h=null!==(o=t.baseFontSize)&&void 0!==o?o:10,p=t.onOptionSelected,x=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",m=t.data,[g]=(0,v.QN)("whatmorePrimaryFont");function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[C,b]=(0,n.useState)([w(l[0]),w(l[1]),w(l[2])]);return(0,n.useEffect)((()=>{p(C)}),[C]),(0,f.jsx)(u.B,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,i)=>{var n;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.type))return;const o=e.every((e=>{var i,n,o,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(n=i.finalArr)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===a?void 0:a.optionsrc)}));return(0,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(j.E,{as:"b",fontSize:1.2*h+"px",sx:{color:x+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,f.jsx)(jt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,s,u,p,v;return(0==i||(null===m||void 0===m||null===(r=m.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===C||void 0===C?void 0:C[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)b([C[0],C[1],t]);else if(1==e){var i,n;b([C[0],t,null===m||void 0===m||null===(i=m.variants)||void 0===i||null===(n=i.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===n?void 0:n.option3])}else{var o,r,l,a,d,s;const e=null===m||void 0===m||null===(o=m.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;b([t,null===m||void 0===m||null===(l=m.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===m||void 0===m||null===(d=m.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===C[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===C[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===C[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,f.jsxs)(j.E,{as:e.available?"samp":"s",fontSize:.8*h+"px",sx:{color:e.option===C[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(x=e.option,x.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,f.jsx)(y._,{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,yt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===s?void 0:s.src)&&void 0!==l?l:null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p||null===(v=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]});var x}))},i)]},i)}))})},bt=i(6594),St=i(4833);var kt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreSecondaryColor"),w=(0,v.Xd)("whatmoreSecondaryColorShade900"),[C]=(0,v.QN)("whatmorePrimaryFont"),[b]=(0,v.QN)("whatmoreShopId"),[S,k,I,_]=(0,x.A)(),[z,E]=(0,n.useState)(!1),[T,N]=(0,n.useState)(t.product),A=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)($.B),[P,L,B,O,D,R,W,Q]=ft(0,T,t.event),[V,q]=(0,n.useState)(null),[J,tt]=(0,n.useState)(parseFloat(T.price)),[ot,rt]=(0,n.useState)(parseFloat(T.compare_price)),[lt,at]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[dt,ct]=(0,n.useState)(T.currency),[ut,ht]=(0,n.useState)(null),pt=t.event,vt=t.productClickHandler,{whatmoreIsPreviewMode:xt}=(0,n.useContext)($.B),[mt,gt]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1),[kt,It]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,p.w4b)(b)?(0,bt.ck)(T,(0,p.NCy)(b),b).then((t=>{N(t),tt(parseFloat(t.price)),rt(parseFloat(t.compare_price)),ct(t.currency),jt(!0)})):(async()=>{try{var t,e,i,n,o,r;const l=await(0,m.M)(T,(0,p.NCy)(b),b);ht(l),tt(null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price),rt(null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price),jt(!0)}catch(l){jt(!0)}})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=ut?null===ut||void 0===ut||null===(t=ut.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===ut||void 0===ut||null===(e=ut.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===ut||void 0===ut||null===(r=ut.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));gt({position:i,finalArr:n,finalArrExternal:o})}),[ut]);var _t=.68*_,zt=.55*_t,Et=.4*_t,Tt=_t*(.55-.4),Nt=_t+"px",At=Et+"px",Ft=Tt+"px",Pt=.12*Et;const Lt=(0,p.XQu)(b);function Bt(){window.location.href=function(t){return(0,p.BLb)(b)?t.product_link+"?"+(0,p.VCz)(b)+"&"+(0,p.Spk)(b)+"&"+(0,p.$lz)(b):t.product_link}(T)}const Ot=F.landingLocationType,Dt=F.templateType,Rt=(0,St.Wd)(Ot)+(0,St.gf)(Dt)+(null!==pt&&void 0!==pt&&pt.isRelatedEvent?"R":"E")+"_"+(null===pt||void 0===pt?void 0:pt.event_id),Wt=(0,p.HKH)(b)&&t.activeProductsCount>1&&"init"==P.state&&0==P.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(b),width:Nt,height:"fit-content",boxShadow:"round"==A?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==b?Bt():vt(e),E(!0)}(pt,T)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(b)),animation:z?M.jd:null,borderRadius:"round"==A?"xl":null,overflow:"hidden",onAnimationEnd:()=>{E(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:At,width:At,children:(0,f.jsx)(y._,{className:"product-tile-image",width:At,height:At,src:(0,yt.b)(null!==(e=null!==(i=null===mt||void 0===mt||null===(o=mt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===mt||void 0===mt||null===(a=mt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(b)+" !important"}})}),(0,f.jsxs)(c.az,{height:At,width:_t-Et+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(b)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(b),"important"),t.style.setProperty("font-size",1.1*Pt*(0,p.rh$)(b)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",C,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,G.v)(lt,"prod-tile")}),(0,p.Nzx)(b)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(b)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==A?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(b)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:C+" !important",color:(0,p.uoB)(b)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,bt.Sb)(null!==J&&void 0!==J?J:null===T||void 0===T?void 0:T.price,"",b,dt)," \xa0"]}),(0,Z.P)(J,ot)&&wt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(b)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:C+" !important",color:(0,p.gld)(b)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==ot&&void 0!==ot?ot:null===T||void 0===T?void 0:T.compare_price,"",b,dt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.E,{fontSize:.82*Pt*(0,p.rh$)(b)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:C+" !important",color:(0,p.Br1)(b)+" !important"},children:xt?(0,p.p6A)(b):(0,p.i2h)(b)})]}),(0,p.UlM)(b)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==A?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(b)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:g},sx:{bg:g},children:(0,f.jsx)(j.E,{color:"white",paddingX:"6px",fontSize:.8*Pt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)(K.A,{sx:{color:g,fontSize:1.3*Pt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==P.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==P.state&&null!=O?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*zt+"px",marginBottom:.1*zt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Lt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(Ct,{width:Nt,height:"fit-content",event:pt,product:T,finalArr:mt,data:ut,productVariantOptions:O,baseFontSize:1.2*Pt,onOptionSelected:t=>{!function(t){q(t);const e=W(t);e&&(tt(e.price),rt(e.compare_price),e.title.includes(" ")&&at(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Ft,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Ft,children:(0,f.jsx)(st,{baseFontSize:Wt?.2*Tt:.3*Tt,setProductVariantTitle:at,product:T,cartState:P.state,cartCount:P.cart_count,updateCartState:B,onClickAtc:t=>{"init"==P.state?(D(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:pt,productList:[T],ctaList:pt.cta})):"awaitingVariantSelection"==P.state&&(R(V,Rt),at(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{Q()}})}),Wt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(nt.$,{disabled:kt,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${C} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{It(!0),L(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:F,event:pt,productList:pt.products,ctaList:pt.cta}),It(!1)}catch(e){console.error("Failed to add items:",e),It(!1)}},children:kt?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,f.jsx)(j.E,{fontFamily:C,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),_t=i(8397);var zt=function(t){var e,i,n,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("whatmoreShopId"),[g]=(0,v.QN)("websiteLanguage"),w=t.event,y=t.product,C=null!==(e=t.baseFontSize)&&void 0!==e?e:10,b=null!==(i=t.width)&&void 0!==i?i:"fit-content",S=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,f.jsx)(_t.N,{href:y.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,y)},children:(0,f.jsx)(c.az,{width:b,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.4*C,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(m)?(0,p.KnH)(m):null!==(o=null===ot||void 0===ot||null===(r=ot[g])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(m)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(K.A,{sx:{color:h,fontSize:1.4*C}})})]})})})},Et=i(9408);function Tt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),s=t.onClick,h=t.width,x=t.height,m=t.title;return(0,f.jsx)(c.az,{width:h,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(r)?i:(0,p.Wc_)(r),onClick:t=>{t.stopPropagation(),s(),a(!0)},animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(j.E,{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,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Nt=function(t){var e,i,n;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",c=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,f.jsx)(Tt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var At=function(t){var e;const[i]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,w]=(0,x.A)(),[C,b]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)($.B),[_,z,E,T,N,A,F,P]=ft(0,S,t.event),[L,B]=(0,n.useState)(null),[O,D]=(0,n.useState)(parseFloat(S.price)),[R,W]=(0,n.useState)(parseFloat(S.compare_price)),[Q,V]=(0,n.useState)(S.currency),[H,q]=(0,n.useState)(!1),K=t.event,J=t.productClickHandler,tt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,it=I.landingLocationType,nt=I.templateType,ot=(0,St.Wd)(it)+(0,St.gf)(nt)+(null!==K&&void 0!==K&&K.isRelatedEvent?"R":"E")+"_"+(null===K||void 0===K?void 0:K.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(a)&&(0,bt.ck)(S,(0,p.NCy)(a),a).then((t=>{k(t),D(parseFloat(t.price)),W(parseFloat(t.compare_price)),V(t.currency)}));(async()=>{const t=await(0,m.M)(S,(0,p.NCy)(a),a);D(null===t||void 0===t?void 0:t.price),W(null===t||void 0===t?void 0:t.compare_at_price),q(!0)})()}),[]);var rt=w*tt,lt=.3*rt,at=rt+"px",dt=.7*lt,ct=.9*dt,ut=.12*lt;const ht=(0,p.XQu)(a);function pt(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),J(e),b(!0)}return(0,f.jsx)(u.B,{direction:"row",width:at,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:U,marginBottom:(0,p.qw1)(a),width:at,onClick:t=>{},animation:C?M.jd:null,borderRadius:"lg",onAnimationEnd:()=>{b(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{pt(K,S)},children:[(0,f.jsx)(c.az,{height:dt+"px",width:dt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:ct+"px",width:ct+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(y._,{width:ct+"px",height:ct+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:dt+"px",width:rt-dt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ut+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,G.v)(S.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(a)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[H&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:1*ut+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,bt.Sb)(null!==O&&void 0!==O?O:null===S||void 0===S?void 0:S.price,"",a,Q)," \xa0"]}),(0,f.jsx)(s.o,{children:(0,Z.P)(S.price,S.compare_price)&&H?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.8*ut+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==R&&void 0!==R?R:null===S||void 0===S?void 0:S.compare_price,"",a,Q)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(It.A,{storeId:a,productId:S.client_product_id,productLink:S.product_link,fontSize:1*ut,fontColor:"white"})})]})]})})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==_.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==_.state&&null!=T?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*lt+"px",marginBottom:.1*lt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:lt*ht+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(Ct,{width:at,height:"fit-content",event:K,product:S,productVariantOptions:T,baseFontSize:1*ut,onOptionSelected:t=>{!function(t){B(t);const e=F(t);e&&(D(e.price),W(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(zt,{baseFontSize:.8*ut,event:K,product:S,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(a)?(0,f.jsx)(Nt,{baseFontSize:.8*ut,event:K,product:S,borderRadius:"md",onShopNowClick:t=>{pt(K,S)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(a)?(0,f.jsx)(Et.default,{baseFontSize:.8*ut,event:K,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(st,{baseFontSize:.8*ut,event:K,product:S,cartState:_.state,cartCount:_.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==_.state?(N(ot),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:K,productList:[S],ctaList:K.cta})):"awaitingVariantSelection"==_.state&&A(L,ot)},onCartIconClick:()=>{P()}})})})]})]})})})};var Ft=function(t){var e,i,o,r,a,d,s,h,g,w;const[C]=(0,v.QN)("isInDesignMode"),[b]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreSecondaryColor"),k=(0,v.Xd)("whatmoreSecondaryColorShade900"),[I]=(0,v.QN)("whatmorePrimaryFont"),[_]=(0,v.QN)("whatmoreShopId"),[z,E,T,N]=(0,x.A)(),[A,F]=(0,n.useState)(!1),[P,L]=(0,n.useState)(t.product),B=(0,v.Xd)("whatmoreUITheme"),[O,D]=(0,n.useState)(!1),[R,W]=(0,n.useState)(parseFloat(P.price)),[Q,V]=(0,n.useState)(parseFloat(P.compare_price)),[q,J]=(0,n.useState)(P.currency),tt=t.event,[et,it]=(0,n.useState)();(0,n.useEffect)((()=>{(0,p.w4b)(_)&&(0,bt.ck)(P,(0,p.NCy)(_),_).then((t=>{L(t),W(parseFloat(t.price)),V(parseFloat(t.compare_price)),J(t.currency),D(!0)}));(async()=>{const t=await(0,m.M)(P,(0,p.NCy)(_),_);it(t),D(!0)})()}),[]);var nt=.68*N,ot=.4*nt,rt=nt+"px",lt=ot+"px",at=nt*(.55-.4)+"px",dt=.12*ot;(0,p.XQu)(_);const{whatmoreWidgetSourceDetails:st}=(0,n.useContext)($.B);function ct(t){return(0,p.BLb)(_)?t.product_link+"?"+(0,p.VCz)(_)+"&"+(0,p.Spk)(_)+"&"+(0,p.$lz)(_):t.product_link}function ut(t,e){C||b||(async()=>{(0,l.Pb)(t,e),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:st,event:t,productList:[e],ctaList:t.cta})})(),F(!0)}return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(_),width:rt,height:"fit-content",boxShadow:"round"==B?"dark-lg":null,onClick:()=>{ut(tt,P),window.location.href=ct(P)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(_)),animation:A?M.jd:null,borderRadius:"round"==B?"xl":null,overflow:"hidden",onAnimationEnd:()=>{F(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(_),borderColor:(0,p.Fwt)(_)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:lt,width:lt,children:(0,f.jsx)(y._,{width:lt,height:lt,src:(0,yt.b)(P.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(_)+" !important"}})}),(0,f.jsxs)(c.az,{height:lt,width:nt-ot+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(_)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(j.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:I+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*dt+"px !important"},children:(0,G.v)(null==P.title?"":P.title.toString(),"prod-tile")}),(0,p.Nzx)(_)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(_)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==B?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[O&&(0,f.jsxs)(j.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.uoB)(_)+" !important",margin:"0px !important"},children:[" "+(0,bt.Sb)(parseFloat("77948879170"===_?(null===et||void 0===et?void 0:et.price)>0?null===et||void 0===et?void 0:et.price:(null===et||void 0===et||null===(e=et.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===tt||void 0===tt||null===(o=tt.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===tt||void 0===tt||null===(a=tt.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===tt||void 0===tt||null===(s=tt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price_max):null!==(g=null===et||void 0===et?void 0:et.price)&&void 0!==g?g:R),"",_,q)," \xa0"]}),(0,Z.P)(R,Q)&&O?(0,f.jsxs)(j.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.gld)(_)+" !important",margin:"0px !important"},children:[" ",(0,bt.Sb)(null!==(w=null===et||void 0===et?void 0:et.compare_at_price)&&void 0!==w?w:Q,"",_,q)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(_)&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*dt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(_)+" !important",color:(0,p._zx)(_)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(_)," \xa0"]})]}),(0,p.UlM)(_)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:k,sx:{borderRadius:"round"==B?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,f.jsx)(K.A,{sx:{color:S,fontSize:1.3*dt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(_)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:at,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Nt,{baseFontSize:.8*dt,event:tt,product:P,borderRadius:"md",onShopNowClick:t=>{ut(tt,P),window.location.href=ct(P)}})})]})};function Pt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(Lt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(j.E,{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,f.jsxs)(u.B,{direction:"row",backgroundColor:g?(0,H.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Lt(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?M.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function Bt(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(j.E,{color:"gray",lineHeight:"100%",fontSize:1.2*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ot(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}}):(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Dt=function(t){var e,i,n,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const m=null!==(n=t.width)&&void 0!==n?n:"100%",g=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,f.jsx)(Bt,{event:l,product:a,baseFontSize:d,width:m,height:g})}):"init"==c?0==u?(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):s?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,f.jsx)(Ot,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:m,height:g,onCartIconClick:p})}):(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):(0,f.jsx)(Pt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:m,height:g,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Rt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[C,b,S,k]=(0,x.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)($.B),[A,F,P,L,B,O,D,R]=ft(0,z,t.event),[W,Q]=(0,n.useState)(null),[V,q]=(0,n.useState)(parseFloat(z.price)),[K,J]=(0,n.useState)(parseFloat(z.compare_price)),[tt,et]=(0,n.useState)(z.currency),[it,nt]=(0,n.useState)(null),ot=t.event,rt=t.productClickHandler,[lt,at]=(0,n.useState)(null),[dt,st]=(0,n.useState)(!1),ct=N.landingLocationType,ut=N.templateType,ht=(0,St.Wd)(ct)+(0,St.gf)(ut)+"_"+(null===ot||void 0===ot?void 0:ot.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(w)&&(0,bt.ck)(z,(0,p.NCy)(w),w).then((t=>{E(t),q(parseFloat(t.price)),J(parseFloat(t.compare_price)),et(t.currency),st(!0)}));(async()=>{const t=await(0,m.M)(z,(0,p.NCy)(w),w);nt(t),q(null===t||void 0===t?void 0:t.price),J(null===t||void 0===t?void 0:t.compare_at_price),st(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=it?null===it||void 0===it||null===(t=it.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));at({position:i,finalArr:n,finalArrExternal:o})}),[it]);var pt=.72*k,vt=.37*pt,xt=pt*(.48-.37),mt=.95*pt+"px",gt=vt+"px",wt=.12*vt;function jt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:"24px",width:mt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?jt():rt(e),_(!0)}(ot,z)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(w)),animation:I?M.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:gt,width:gt,children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===lt||void 0===lt||null===(o=lt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===W||void 0===W?void 0:W[null===lt||void 0===lt?void 0:lt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===lt||void 0===lt||null===(a=lt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===W||void 0===W?void 0:W[null===lt||void 0===lt?void 0:lt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:gt,width:pt-vt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",g,"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,G.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[dt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*wt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:g+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,bt.Sb)(null!==V&&void 0!==V?V:null===z||void 0===z?void 0:z.price,"",w,tt)," \xa0"]}),(0,Z.P)(V,K)&&dt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*wt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:g+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==K&&void 0!==K?K:null===z||void 0===z?void 0:z.compare_price,"",w,tt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(Dt,{baseFontSize:.3*xt,event:ot,product:z,cartState:A.state,cartCount:A.cart_count,updateCartState:P,onClickAtc:t=>{"init"===A.state?(B(ht,!0),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:ot,productList:[z],ctaList:ot.cta})):"awaitingVariantSelection"===A.state&&rt(z)},onCartIconClick:t=>{R()}})]})})]})})};var Wt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[i]=(0,v.QN)("isWhatmoreWebsite"),n=(0,p.Vpi)(e),o=t.event,r=t.product;return i?(0,f.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,f.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount}):"broad-tile-no-cta"==n?(0,f.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,f.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,f.jsx)(q,{product:t.product,event:t.event}):"narrow-tile"==n?(0,f.jsx)(At,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,f.jsx)(f.Fragment,{})},Qt=i(1079),Vt=i(7802),Mt=i(2979);var Ht=function(t){var e,i,n;const[l,a,d,h]=(0,x.A)(),[m]=(0,v.QN)("whatmoreShopId"),g=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),j=t.event,y=t.productClickHandler,C=(0,p.Vpi)(m),b=null!==(e=null===(i=j.products)||void 0===i||null===(n=i.filter((t=>"active"==(null===t||void 0===t?void 0:t.product_status))))||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(!(0,Vt.Z_)(j))return(0,f.jsx)(f.Fragment,{});if(1==j.products.length&&(void 0==j.cta||0==j.cta.length)){const t=j.products[0];return(0,p.uJl)(m)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(At,{event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==C?"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,f.jsx)(s.o,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(Wt,{activeProductsCount:1,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==C?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==j.products.length?1:1.4,initialSlide:j.products.length<=2||(0,p.TYM)(m)?0:1,centeredSlides:!(0,p.TYM)(m),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===m?[j.products[0]]:j.products).map((t=>("oos"!=t.product_status||(0,p.$7F)(m))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Wt,{activeProductsCount:b,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})},j.event_id+t.product_id))),(0,p.Woi)(m)&&void 0!=j.cta&&j.cta.map((t=>(0,f.jsx)(f.Fragment,{children:""!==t.cta_title.trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Qt.A,{fontFactor:.75,cta:t},j.event_id+t.cta_id)})},j.event_id+t.cta_id)})))]})})})})};var Ut=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(Ti).isIOS&&e?(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id):(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id)})};function Xt(t){const e=t.event,[i,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(j.E,{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,f.jsx)(L.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Yt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,S.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,n.useContext)(Ti),[x]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.isLast,w=t.onCloseCallback,j=t.focusRef,y=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Xt,{event:m}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(k,{focusRef:j}),(0,f.jsx)(B.A,{event:m,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Ut,{event:m,productClickHandler:y})})]}):(0,f.jsx)("div",{})]})]})})},$t=i(7642);function qt(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(""),h=t.data,m=(t.event,t.product,t.setShowOptionsChart);var g=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${z.i7`
68
+ `} infinite 1.5s linear`;return(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:g,children:(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===p?C:b,children:"vertical"===p?(0,f.jsx)(D.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(R.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{textShadow:"dark-lg",fontSize:y+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var Q=function(t){const[e,i]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)((()=>{const t=setTimeout((()=>{i(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,f.jsx)(W,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},V=i(8781),M=i(5144),H=i(4459);const U="15px";var X=i(1351),Y=i(6157),$=i(4737);var q=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,m,g]=(0,x.A)(),[w,y]=(0,n.useState)(!1),C=t.product,b=t.event,{whatmoreWidgetSourceDetails:S}=(0,n.useContext)($.B),k=.1*m,I=.95*g,_=.05*g;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:U,backgroundColor:o,borderRadius:"5px",animation:w?M.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{y(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[n],ctaList:t.cta})})()}(b,C),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(C)},_hover:{backgroundColor:(0,H.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},K=i(4892),G=i(8538),Z=i(7458),J=i(2159),tt=i(9537),et=i(6710),it=i(173),nt=(i(6125),i(4905));const ot={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 rt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,m=t.width,g=t.height,w=t.title,y=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?M.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:y?(0,H.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),y?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function lt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,m=t.onClick,g=t.width,w=t.height;return(0,f.jsx)(c.az,{width:g,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),m(),h(!0)},animation:d?M.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,p.KPq)(a),"\xa0"]})})})})}function at(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(j.E,{color:"gray",lineHeight:"100%",fontSize:1.3*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function dt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var st=function(t){var e,i,n,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(at,{baseFontSize:s,width:g,height:w})}):"init"==u?0==h?(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(dt,{onClick:m,baseFontSize:s,cartCount:h,width:g,height:w,onCartIconClick:x})}):(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):(0,f.jsx)(rt,{onClick:m,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:g,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===ot||void 0===ot||null===(a=ot[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},ct=i(4533),ut=i(6387),ht=i(1745);const pt=(0,v.Xd)("isInDesignMode"),vt=(0,v.Xd)("isDemoBrand");async function xt(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,ht.RX)(t,e,n,l,a,d):(pt||vt||(async()=>{(0,ct.Fu)(o,r,l,a,d)})(),(0,ut.It)(null===t||void 0===t?void 0:t[0],e,n))}function mt(t,e){return"shopify"==t?(0,ht.iL)(e):(0,ut.pV)(e)}var gt=i(852);var ft=function(t,e,i){const[o]=(0,v.QN)("whatmoreShopId"),[r]=(0,v.QN)("isInDesignMode"),[a]=(0,v.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),c=(0,n.useRef)(null),{closeClickComponent:u}=(0,n.useContext)(Ni),{whatmoreUserInfo:h}=(0,n.useContext)($.B),[x,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,v.t2)("whatmoreAllowAutoSlide",!1):(0,v.t2)("whatmoreAllowAutoSlide",!0)}function w(t){const e=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function j(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function C(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function b(){if(c.current&&c.current.length>=1){return c.current.filter((t=>t.available)).length>=1}return!1}function S(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}function k(t,n){const r=w(t);if(!r)return void f("init",x.cart_count);f("atcApiCallInProgress",null);xt([r],1,(0,p.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(S(i,e,1),f("init",x.cart_count+1),(0,v.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,v.Xd)("whatmoreAddedToCart")&&(0,gt.H)(o,(()=>{}),100,window.location.hostname),(0,p.MPe)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[x,function(t){const n=[];f("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,m.M)(t,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const i=j(e);if(s(i),C(i)&&b()){const e=w([y(i[0]),y(i[1]),y(i[2])]);return e?(n.push(t),e):void f("init",x.cart_count)}}))))).then((r=>{const l=r.filter((t=>void 0!=t));xt(l,1,(0,p.NCy)(o),o,i,e,t,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{S(i,t,1)})),f("init",x.cart_count+(null===l||void 0===l?void 0:l.length)),(0,v.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}))},f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,m.M)(e,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const n=j(e);s(n),C(n)||i?b()?k([y(n[0]),y(n[1]),y(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},k,function(t){var e,i,n,r;const l=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,p.NCy)(o),a),compare_price:((0,p.NCy)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,p.m4S)(o)&&("go_to_cart_page"!==(0,p.m4S)(o)?"open_cart_slider"!==(0,p.m4S)(o)||null!==u&&u():mt((0,p.NCy)(o),o))}]},wt=i(2720),jt=i(3755),yt=i(7973);var Ct=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",h=null!==(o=t.baseFontSize)&&void 0!==o?o:10,p=t.onOptionSelected,x=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",m=t.data,[g]=(0,v.QN)("whatmorePrimaryFont");function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[C,b]=(0,n.useState)([w(l[0]),w(l[1]),w(l[2])]);return(0,n.useEffect)((()=>{p(C)}),[C]),(0,f.jsx)(u.B,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,i)=>{var n;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.type))return;const o=e.every((e=>{var i,n,o,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(n=i.finalArr)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===a?void 0:a.optionsrc)}));return(0,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(j.E,{as:"b",fontSize:1.2*h+"px",sx:{color:x+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,f.jsx)(jt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,s,u,p,v;return(0==i||(null===m||void 0===m||null===(r=m.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===C||void 0===C?void 0:C[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)b([C[0],C[1],t]);else if(1==e){var i,n;b([C[0],t,null===m||void 0===m||null===(i=m.variants)||void 0===i||null===(n=i.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===n?void 0:n.option3])}else{var o,r,l,a,d,s;const e=null===m||void 0===m||null===(o=m.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;b([t,null===m||void 0===m||null===(l=m.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===m||void 0===m||null===(d=m.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===C[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===C[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===C[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,f.jsxs)(j.E,{as:e.available?"samp":"s",fontSize:.8*h+"px",sx:{color:e.option===C[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(x=e.option,x.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,f.jsx)(y._,{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,yt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===s?void 0:s.src)&&void 0!==l?l:null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p||null===(v=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]});var x}))},i)]},i)}))})},bt=i(6594),St=i(4833);var kt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreSecondaryColor"),w=(0,v.Xd)("whatmoreSecondaryColorShade900"),[C]=(0,v.QN)("whatmorePrimaryFont"),[b]=(0,v.QN)("whatmoreShopId"),[S,k,I,_]=(0,x.A)(),[z,E]=(0,n.useState)(!1),[T,N]=(0,n.useState)(t.product),A=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)($.B),[P,L,B,O,D,R,W,Q]=ft(0,T,t.event),[V,q]=(0,n.useState)(null),[J,tt]=(0,n.useState)(parseFloat(T.price)),[ot,rt]=(0,n.useState)(parseFloat(T.compare_price)),[lt,at]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[dt,ct]=(0,n.useState)(T.currency),[ut,ht]=(0,n.useState)(null),pt=t.event,vt=t.productClickHandler,{whatmoreIsPreviewMode:xt}=(0,n.useContext)($.B),[mt,gt]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1),[kt,It]=(0,n.useState)(!1);if((0,n.useEffect)((()=>{(0,p.w4b)(b)?(0,bt.ck)(T,(0,p.NCy)(b),b).then((t=>{N(t),tt(parseFloat(t.price)),rt(parseFloat(t.compare_price)),ct(t.currency),jt(!0)})).catch((t=>{jt(!0)})):(async()=>{try{var t,e,i,n,o,r;const l=await(0,m.M)(T,(0,p.NCy)(b),b);ht(l),tt((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),rt((null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price)/100),jt(!0)}catch(l){jt(!0)}})(),!(0,p.E8r)(b)||null!==pt&&void 0!==pt&&pt.in_stock||B("errored")}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=ut?null===ut||void 0===ut||null===(t=ut.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===ut||void 0===ut||null===(e=ut.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===ut||void 0===ut||null===(r=ut.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));gt({position:i,finalArr:n,finalArrExternal:o})}),[ut]),!wt)return(0,f.jsx)(f.Fragment,{});var _t=.68*_,zt=.55*_t,Et=.4*_t,Tt=_t*(.55-.4),Nt=_t+"px",At=Et+"px",Ft=Tt+"px",Pt=.12*Et;const Lt=(0,p.XQu)(b);function Bt(){window.location.href=function(t){return(0,p.BLb)(b)?t.product_link+"?"+(0,p.VCz)(b)+"&"+(0,p.Spk)(b)+"&"+(0,p.$lz)(b):t.product_link}(T)}const Ot=F.landingLocationType,Dt=F.templateType,Rt=(0,St.Wd)(Ot)+(0,St.gf)(Dt)+(null!==pt&&void 0!==pt&&pt.isRelatedEvent?"R":"E")+"_"+(null===pt||void 0===pt?void 0:pt.event_id),Wt=(0,p.HKH)(b)&&t.activeProductsCount>1&&"init"==P.state&&0==P.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(b),width:Nt,height:"fit-content",boxShadow:"round"==A?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==b?Bt():vt(e),E(!0)}(pt,T)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(b)),animation:z?M.jd:M.so,borderRadius:"round"==A?"xl":null,overflow:"hidden",onAnimationEnd:()=>{E(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:At,width:At,children:(0,f.jsx)(y._,{className:"product-tile-image",width:At,height:At,src:(0,yt.b)(null!==(e=null!==(i=null===mt||void 0===mt||null===(o=mt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===mt||void 0===mt||null===(a=mt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(b)+" !important"}})}),(0,f.jsxs)(c.az,{height:At,width:_t-Et+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(b)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(b),"important"),t.style.setProperty("font-size",1.1*Pt*(0,p.rh$)(b)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",C,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,G.v)(lt,"prod-tile")}),(0,p.Nzx)(b)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(b)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==A?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(b)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:C+" !important",color:(0,p.uoB)(b)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,bt.Sb)(null!==J&&void 0!==J?J:null===T||void 0===T?void 0:T.price,"",b,dt)," \xa0"]}),(0,Z.P)(J,ot)&&wt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(b)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:C+" !important",color:(0,p.gld)(b)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==ot&&void 0!==ot?ot:null===T||void 0===T?void 0:T.compare_price,"",b,dt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.E,{fontSize:.82*Pt*(0,p.rh$)(b)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:C+" !important",color:(0,p.Br1)(b)+" !important"},children:xt?(0,p.p6A)(b):(0,p.i2h)(b)})]}),(0,p.UlM)(b)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==A?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(b)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:g},sx:{bg:g},children:(0,f.jsx)(j.E,{color:"white",paddingX:"6px",fontSize:.8*Pt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)(K.A,{sx:{color:g,fontSize:1.3*Pt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==P.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==P.state&&null!=O?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*zt+"px",marginBottom:.1*zt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Lt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(Ct,{width:Nt,height:"fit-content",event:pt,product:T,finalArr:mt,data:ut,productVariantOptions:O,baseFontSize:1.2*Pt,onOptionSelected:t=>{!function(t){q(t);const e=W(t);e&&(tt(e.price),rt(e.compare_price),e.title.includes(" ")&&at(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Ft,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Ft,children:(0,f.jsx)(st,{baseFontSize:Wt?.2*Tt:.3*Tt,setProductVariantTitle:at,product:T,cartState:P.state,cartCount:P.cart_count,updateCartState:B,onClickAtc:t=>{"init"==P.state?(D(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:pt,productList:[T],ctaList:pt.cta})):"awaitingVariantSelection"==P.state&&(R(V,Rt),at(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{Q()}})}),Wt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(nt.$,{disabled:kt,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${C} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{It(!0),L(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:F,event:pt,productList:pt.products,ctaList:pt.cta}),It(!1)}catch(e){console.error("Failed to add items:",e),It(!1)}},children:kt?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,f.jsx)(j.E,{fontFamily:C,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),_t=i(8397);var zt=function(t){var e,i,n,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("whatmoreShopId"),[g]=(0,v.QN)("websiteLanguage"),w=t.event,y=t.product,C=null!==(e=t.baseFontSize)&&void 0!==e?e:10,b=null!==(i=t.width)&&void 0!==i?i:"fit-content",S=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,f.jsx)(_t.N,{href:y.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,y)},children:(0,f.jsx)(c.az,{width:b,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.4*C,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(m)?(0,p.KnH)(m):null!==(o=null===ot||void 0===ot||null===(r=ot[g])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(m)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(K.A,{sx:{color:h,fontSize:1.4*C}})})]})})})},Et=i(9408);function Tt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),s=t.onClick,h=t.width,x=t.height,m=t.title;return(0,f.jsx)(c.az,{width:h,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(r)?i:(0,p.Wc_)(r),onClick:t=>{t.stopPropagation(),s(),a(!0)},animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(j.E,{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,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Nt=function(t){var e,i,n;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",c=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,f.jsx)(Tt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var At=function(t){var e;const[i]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,w]=(0,x.A)(),[C,b]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)($.B),[_,z,E,T,N,A,F,P]=ft(0,S,t.event),[L,B]=(0,n.useState)(null),[O,D]=(0,n.useState)(parseFloat(S.price)),[R,W]=(0,n.useState)(parseFloat(S.compare_price)),[Q,V]=(0,n.useState)(S.currency),[H,q]=(0,n.useState)(!1),K=t.event,J=t.productClickHandler,tt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,it=I.landingLocationType,nt=I.templateType,ot=(0,St.Wd)(it)+(0,St.gf)(nt)+(null!==K&&void 0!==K&&K.isRelatedEvent?"R":"E")+"_"+(null===K||void 0===K?void 0:K.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(a)?(0,bt.ck)(S,(0,p.NCy)(a),a).then((t=>{k(t),D(parseFloat(t.price)),W(parseFloat(t.compare_price)),V(t.currency)})):(async()=>{const t=await(0,m.M)(S,(0,p.NCy)(a),a);D(null===t||void 0===t?void 0:t.price),W(null===t||void 0===t?void 0:t.compare_at_price),q(!0)})()}),[]);var rt=w*tt,lt=.3*rt,at=rt+"px",dt=.7*lt,ct=.9*dt,ut=.12*lt;const ht=(0,p.XQu)(a);function pt(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),J(e),b(!0)}return(0,f.jsx)(u.B,{direction:"row",width:at,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:U,marginBottom:(0,p.qw1)(a),width:at,onClick:t=>{},animation:C?M.jd:null,borderRadius:"lg",onAnimationEnd:()=>{b(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{pt(K,S)},children:[(0,f.jsx)(c.az,{height:dt+"px",width:dt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:ct+"px",width:ct+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(y._,{width:ct+"px",height:ct+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:dt+"px",width:rt-dt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ut+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,G.v)(S.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(a)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[H&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:1*ut+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,bt.Sb)(null!==O&&void 0!==O?O:null===S||void 0===S?void 0:S.price,"",a,Q)," \xa0"]}),(0,f.jsx)(s.o,{children:(0,Z.P)(S.price,S.compare_price)&&H?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.8*ut+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==R&&void 0!==R?R:null===S||void 0===S?void 0:S.compare_price,"",a,Q)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(It.A,{storeId:a,productId:S.client_product_id,productLink:S.product_link,fontSize:1*ut,fontColor:"white"})})]})]})})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==_.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==_.state&&null!=T?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*lt+"px",marginBottom:.1*lt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:lt*ht+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(Ct,{width:at,height:"fit-content",event:K,product:S,productVariantOptions:T,baseFontSize:1*ut,onOptionSelected:t=>{!function(t){B(t);const e=F(t);e&&(D(e.price),W(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(zt,{baseFontSize:.8*ut,event:K,product:S,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(a)?(0,f.jsx)(Nt,{baseFontSize:.8*ut,event:K,product:S,borderRadius:"md",onShopNowClick:t=>{pt(K,S)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(a)?(0,f.jsx)(Et.default,{baseFontSize:.8*ut,event:K,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(st,{baseFontSize:.8*ut,event:K,product:S,cartState:_.state,cartCount:_.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==_.state?(N(ot),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:K,productList:[S],ctaList:K.cta})):"awaitingVariantSelection"==_.state&&A(L,ot)},onCartIconClick:()=>{P()}})})})]})]})})})},Ft=i(7740);var Pt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),r=(0,v.Xd)("whatmoreSecondaryColorShade900"),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s,h,g,w]=(0,x.A)(),[C,b]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),I=(0,v.Xd)("whatmoreUITheme"),[_,z]=(0,n.useState)(!1),[E,T]=(0,n.useState)(parseFloat(S.price)),[N,A]=(0,n.useState)(parseFloat(S.compare_price)),[F,P]=(0,n.useState)(S.currency),L=t.event,[B,O]=(0,n.useState)();if((0,n.useEffect)((()=>{(0,p.w4b)(d)?(0,bt.ck)(S,(0,p.NCy)(d),d).then((t=>{k(t),T(parseFloat(t.price)),A(parseFloat(t.compare_price)),P(t.currency),z(!0)})).catch((t=>z(!0))):(async()=>{try{var t,e,i,n,o,r;const l=await(0,m.M)(S,(0,p.NCy)(d),d);O(l),T((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),A((null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price)/100),z(!0)}catch(l){z(!0)}})()}),[]),!_)return(0,f.jsx)(f.Fragment,{});var D=.68*w,R=.4*D,W=D+"px",Q=R+"px",V=D*(.55-.4)+"px",q=.12*R;(0,p.XQu)(d);const{whatmoreWidgetSourceDetails:J}=(0,n.useContext)($.B);function tt(t){return(0,p.BLb)(d)?t.product_link+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d):t.product_link}function et(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:J,event:t,productList:[n],ctaList:t.cta})})(),b(!0)}return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(d),width:W,height:"fit-content",boxShadow:"round"==I?"dark-lg":null,onClick:()=>{et(L,S),window.location.href=tt(S)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(d)),animation:C?M.jd:M.so,borderRadius:"round"==I?"xl":null,overflow:"hidden",onAnimationEnd:()=>{b(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(d),borderColor:(0,p.Fwt)(d)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Q,width:Q,children:(0,f.jsx)(y._,{width:Q,height:Q,src:(0,yt.b)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(d)+" !important"}})}),(0,f.jsxs)(c.az,{height:Q,width:D-R+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(d)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(j.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*q+"px !important"},children:(0,G.v)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,p.Nzx)(d)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(d)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==I?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,f.jsxs)(j.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*q+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.uoB)(d)+" !important",margin:"0px !important"},children:[" "+(0,bt.Sb)(null!==E&&void 0!==E?E:null===S||void 0===S?void 0:S.price,"",d,F)," \xa0"]}),(0,Z.P)(E,N)&&_?(0,f.jsxs)(j.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*q+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.gld)(d)+" !important",margin:"0px !important"},children:[" ",(0,bt.Sb)(null!==N&&void 0!==N?N:null===S||void 0===S?void 0:S.compare_price,"",d,F)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(d)&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*q+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(d)+" !important",color:(0,p._zx)(d)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(d)," \xa0"]})]}),(0,p.UlM)(d)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==I?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,f.jsx)(K.A,{sx:{color:o,fontSize:1.3*q+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(d)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:V,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Nt,{baseFontSize:.8*q,event:L,product:S,borderRadius:"md",onShopNowClick:t=>{et(L,S),window.location.href=tt(S)}})})]})};function Lt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(Bt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(j.E,{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,f.jsxs)(u.B,{direction:"row",backgroundColor:g?(0,H.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Bt(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?M.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function Ot(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(j.E,{color:"gray",lineHeight:"100%",fontSize:1.2*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Dt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}}):(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Rt=function(t){var e,i,n,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const m=null!==(n=t.width)&&void 0!==n?n:"100%",g=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,f.jsx)(Ot,{event:l,product:a,baseFontSize:d,width:m,height:g})}):"init"==c?0==u?(0,f.jsx)(Bt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):s?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,f.jsx)(Dt,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:m,height:g,onCartIconClick:p})}):(0,f.jsx)(Bt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):(0,f.jsx)(Lt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:m,height:g,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Wt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[C,b,S,k]=(0,x.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)($.B),[A,F,P,L,B,O,D,R]=ft(0,z,t.event),[W,Q]=(0,n.useState)(null),[V,q]=(0,n.useState)(parseFloat(z.price)),[K,J]=(0,n.useState)(parseFloat(z.compare_price)),[tt,et]=(0,n.useState)(z.currency),[it,nt]=(0,n.useState)(null),ot=t.event,rt=t.productClickHandler,[lt,at]=(0,n.useState)(null),[dt,st]=(0,n.useState)(!1),ct=N.landingLocationType,ut=N.templateType,ht=(0,St.Wd)(ct)+(0,St.gf)(ut)+"_"+(null===ot||void 0===ot?void 0:ot.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(w)?(0,bt.ck)(z,(0,p.NCy)(w),w).then((t=>{E(t),q(parseFloat(t.price)),J(parseFloat(t.compare_price)),et(t.currency),st(!0)})):(async()=>{var t,e,i,n,o,r;const l=await(0,m.M)(z,(0,p.NCy)(w),w);nt(l),q((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),J((null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price)/100),st(!0)})(),!(0,p.E8r)(w)||null!==ot&&void 0!==ot&&ot.in_stock||P("errored")}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=it?null===it||void 0===it||null===(t=it.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));at({position:i,finalArr:n,finalArrExternal:o})}),[it]);var pt=.72*k,vt=.37*pt,xt=pt*(.48-.37),mt=.95*pt+"px",gt=vt+"px",wt=.12*vt;function jt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:"24px",width:mt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?jt():rt(e),_(!0)}(ot,z)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(w)),animation:I?M.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:gt,width:gt,children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===lt||void 0===lt||null===(o=lt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===W||void 0===W?void 0:W[null===lt||void 0===lt?void 0:lt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===lt||void 0===lt||null===(a=lt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===W||void 0===W?void 0:W[null===lt||void 0===lt?void 0:lt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:gt,width:pt-vt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",g,"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,G.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[dt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*wt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:g+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,bt.Sb)(null!==V&&void 0!==V?V:null===z||void 0===z?void 0:z.price,"",w,tt)," \xa0"]}),(0,Z.P)(V,K)&&dt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*wt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:g+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==K&&void 0!==K?K:null===z||void 0===z?void 0:z.compare_price,"",w,tt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(Rt,{baseFontSize:.3*xt,event:ot,product:z,cartState:A.state,cartCount:A.cart_count,updateCartState:P,onClickAtc:t=>{"init"===A.state?(B(ht,!0),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:ot,productList:[z],ctaList:ot.cta})):"awaitingVariantSelection"===A.state&&rt(z)},onCartIconClick:t=>{R()}})]})})]})})};var Qt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[i]=(0,v.QN)("isWhatmoreWebsite"),n=(0,p.Vpi)(e),o=t.event,r=t.product;return i?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,f.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount}):"broad-tile-no-cta"==n?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,f.jsx)(Wt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,f.jsx)(q,{product:t.product,event:t.event}):"narrow-tile"==n?(0,f.jsx)(At,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,f.jsx)(f.Fragment,{})},Vt=i(1079),Mt=i(7802),Ht=i(2979);var Ut=function(t){var e,i,n;const[l,a,d,h]=(0,x.A)(),[m]=(0,v.QN)("whatmoreShopId"),g=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),j=t.event,y=t.productClickHandler,C=(0,p.Vpi)(m),b=null!==(e=null===(i=j.products)||void 0===i||null===(n=i.filter((t=>"active"==(null===t||void 0===t?void 0:t.product_status))))||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(!(0,Mt.Z_)(j))return(0,f.jsx)(f.Fragment,{});if(1==j.products.length&&(void 0==j.cta||0==j.cta.length)){const t=j.products[0];return(0,p.uJl)(m)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,f.jsx)(Ht.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(At,{event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==C?"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,f.jsx)(s.o,{children:(0,f.jsx)(Ht.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(Qt,{activeProductsCount:1,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==C?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==j.products.length?1:1.4,initialSlide:j.products.length<=2||(0,p.TYM)(m)?0:1,centeredSlides:!(0,p.TYM)(m),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===m?[j.products[0]]:j.products).map((t=>("oos"!=t.product_status||(0,p.$7F)(m))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Ht.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Qt,{activeProductsCount:b,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})},j.event_id+t.product_id))),(0,p.Woi)(m)&&void 0!=j.cta&&j.cta.map((t=>(0,f.jsx)(f.Fragment,{children:""!==t.cta_title.trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Vt.A,{fontFactor:.75,cta:t},j.event_id+t.cta_id)})},j.event_id+t.cta_id)})))]})})})})};var Xt=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(Ni).isIOS&&e?(0,f.jsx)(Ut,{event:o,productClickHandler:r},o.event_id):(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,f.jsx)(Ut,{event:o,productClickHandler:r},o.event_id)})};function Yt(t){const e=t.event,[i,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(j.E,{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,f.jsx)(L.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var $t=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,S.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,n.useContext)(Ni),[x]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.isLast,w=t.onCloseCallback,j=t.focusRef,y=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Yt,{event:m}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(k,{focusRef:j}),(0,f.jsx)(B.A,{event:m,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Xt,{event:m,productClickHandler:y})})]}):(0,f.jsx)("div",{})]})]})})},qt=i(7642);function Kt(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(""),h=t.data,m=(t.event,t.product,t.setShowOptionsChart);var g=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${z.i7`
69
69
  0% {
70
70
  transform: translateY(100%);
71
71
  }
72
- `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)($t.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Kt=i(63),Gt=i(8203);function Zt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,ht.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Jt(t){const e=t.product;return(0,f.jsx)(Zt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}function te(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[C]=(0,v.QN)("websiteLanguage"),b=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)($.B),[I,_]=(0,n.useState)(!1),{closeClickComponent:z}=(0,n.useContext)(Ti),[E,N]=(0,n.useState)(!1),A=t.FONT_SIZE,F=t.data,P=t.event,L=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,Q=t.setAddToCartFlag,V=t.soldOutFlag,M=t.setSoldOutFlag,H=S.landingLocationType,U=S.templateType,q=(0,St.Wd)(H)+(0,St.gf)(U)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const K=t=>{var e,i;(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(P,B),"buy-now"==t)&&(!function(t,e,i,n,o,r,l){"shopify"==i?(0,ht.oV)(t,e,n,o,r,l):(0,ut.fL)(t,e,n)}(void 0!==L?L:null===F||void 0===F||null===(e=F.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id,O,(0,p.NCy)(g),g,q,null===P||void 0===P?void 0:P.location,null===k||void 0===k?void 0:k.userType),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:P,productList:[B],ctaList:P.cta}));"view-more"==t&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#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*A,children:[" ",V?(0,f.jsx)(nt.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*A,disabled:!0,sx:{borderRadius:"round"==b?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*A,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(nt.$,{className:"add-to-cart-button",width:"fit-content",height:2.5*A,onClick:async t=>{var e,i;t.stopPropagation(),_(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(P,B,O),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:P,productList:[B],ctaList:P.cta});const n=null!==L&&void 0!==L?L:null===F||void 0===F||null===(e=F.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void _(!1);xt([n],O,(0,p.NCy)(g),g,P,B,q,null===P||void 0===P?void 0:P.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(_(!1),Q(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,p.rEM)(g)&&(x||(async()=>{await(0,ht.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{_(!1),M(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Kt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important"},fontSize:A+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===ot||void 0===ot||null===(i=ot[C])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(Jt,{variantId:void 0!==L?L:null===F||void 0===F||null===(o=F.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*A,width:"90%",fontSize:A,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:(0,p.naM)(g)?(0,f.jsx)(nt.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*A,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:A,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===ot||void 0===ot||null===(d=ot[C])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})}):(0,f.jsx)(nt.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*A,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:A+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===ot||void 0===ot||null===(h=ot[C])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:E?(0,f.jsx)(jt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Gt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*A}})})}):(0,f.jsxs)(jt.s,{animation:W?T:"none",onAnimationEnd:()=>Q(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==z&&z()}(g)):mt((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(tt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*A}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*A,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*A+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function ee(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(jt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(jt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(jt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(jt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)($t.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function ie(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const ne=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.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,f.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,f.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 oe(t){var e;const[i,o]=(0,n.useState)(t.product),[r]=(0,v.QN)("whatmorePrimaryFont"),[l]=(0,v.QN)("whatmoreShopId"),[a]=(0,v.QN)("whatmoreSecondaryColor");(0,n.useEffect)((()=>{(0,p.w4b)(l)&&(0,bt.ck)(i,(0,p.NCy)(l),l).then((t=>{o(t)}))}),[]);const d=t.FONT_SIZE,s=t.data,u=t.itemPrice;let h,x,m;var g,w,y;"STRDOIDF6O7"==l&&(h=null===s||void 0===s||null===(g=s.variants)||void 0===g?void 0:g.find((e=>e.id==t.selectedVariantId)),x=null===(w=h)||void 0===w?void 0:w.title,m=null===(y=h)||void 0===y?void 0:y.productLink);const C=(e=>{const i=null===s||void 0===s||null===(e=s.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),b=C&&0!=C&&C>u?Math.round((C-u)/C*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(jt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(jt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(l)?("STRDOIDF6O7"==l?m:t.product_link)+"?"+(0,p.VCz)(l)+"&"+(0,p.Spk)(l)+"&"+(0,p.$lz)(l)+((0,p.N0t)(l)?"&currency="+t.currency:""):("STRDOIDF6O7"==l?m:t.product_link)+((0,p.N0t)(l)?"?currency="+t.currency:"")}(i)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:d,sx:{color:"black",lineHeight:"140% !important",fontFamily:r+" !important"},as:"b",children:"STRDOIDF6O7"==l&&null!==(e=x)&&void 0!==e?e:null===s||void 0===s?void 0:s.title}),(0,f.jsx)(ne,{iconSize:1.1*d})]}),(0,f.jsxs)(jt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[C&&C>u&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*d,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:r+" !important"},children:(0,bt.Sb)(parseFloat(C)," ",l,i.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*d,fontWeight:"semibold !important",sx:{color:"black",fontFamily:r+" !important"},children:(0,bt.Sb)(parseFloat(u),"",l,i.currency,!0)}),!isNaN(b)&&0!=b&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(l)?"#343434"==a?(0,p.ub$)(l):a:(0,p.ub$)(l),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(l)?"14px !important":1.1*d,fontWeight:"normal !important",sx:{color:(0,p.BRY)(l)+" !important",fontFamily:r+" !important"},children:(0,p.mOK)(l)?`${b}% off`:`Save ${(0,bt.Sb)(parseFloat(C/100-u/100)," ",l,i.currency)}`})})]}),"61412737206"==l&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var re=i(4418);function le(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(he),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,C=t.isVariantAvailable,b=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.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===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(jt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(jt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(jt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*b+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(jt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*b,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(re.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const A=C(n,i),F=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&F&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(jt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,yt.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):F&&(0,f.jsx)(jt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(nt.$,{isDisabled:!A,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&A?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:A?"p":"s",textDecoration:A?"none":"line-through",fontSize:.9*b+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&A?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(wt.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ae=i(8385);function de(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,C,b,S,k,I,_,E,T;const[N,A,F,P]=(0,x.A)();var L=.4*P*.8,B=L*(16/9)*.6*.8;const O=1.1*L,D=O*(16/9)*.8;var R=.12*L;const[W,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[at,dt]=(0,n.useState)(),[st,ct]=(0,n.useState)(0),[pt,vt]=(0,n.useState)(!1),[xt,mt]=(0,n.useState)(!1),[gt,ft]=(0,n.useState)(U.thumbnail_image),Ct=(0,v.Xd)("whatmoreUITheme"),bt=(0,v.Xd)("whatmoreShopId"),St=(0,n.useCallback)((t=>{Z(t)}),[]),kt=(0,n.useCallback)((t=>{tt(t)}),[]),It=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=se(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),dt(ce(M,i)),lt(1),mt(!1);const n=ue(M,i);null!==n&&ft(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ce(M,nt);dt(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,ht.Lt)():(0,ut.Ii)(e)}((0,p.NCy)(bt),bt);t.then((t=>t.json())).then((t=>{ct(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[pt]);const _t=`${z.i7`
72
+ `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)(qt.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Gt=i(63),Zt=i(8203);function Jt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,ht.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function te(t){const e=t.product;return(0,f.jsx)(Jt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}function ee(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[C]=(0,v.QN)("websiteLanguage"),b=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)($.B),[I,_]=(0,n.useState)(!1),{closeClickComponent:z}=(0,n.useContext)(Ni),[E,N]=(0,n.useState)(!1),A=t.FONT_SIZE,F=t.data,P=t.event,L=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,Q=t.setAddToCartFlag,V=t.soldOutFlag,M=t.setSoldOutFlag,H=S.landingLocationType,U=S.templateType,q=(0,St.Wd)(H)+(0,St.gf)(U)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const K=t=>{var e,i;(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(P,B),"buy-now"==t)&&(!function(t,e,i,n,o,r,l){"shopify"==i?(0,ht.oV)(t,e,n,o,r,l):(0,ut.fL)(t,e,n)}(void 0!==L?L:null===F||void 0===F||null===(e=F.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id,O,(0,p.NCy)(g),g,q,null===P||void 0===P?void 0:P.location,null===k||void 0===k?void 0:k.userType),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:P,productList:[B],ctaList:P.cta}));"view-more"==t&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#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*A,children:[" ",V?(0,f.jsx)(nt.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*A,disabled:!0,sx:{borderRadius:"round"==b?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*A,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(nt.$,{className:"add-to-cart-button",width:"fit-content",height:2.5*A,onClick:async t=>{var e,i;t.stopPropagation(),_(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(P,B,O),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:P,productList:[B],ctaList:P.cta});const n=null!==L&&void 0!==L?L:null===F||void 0===F||null===(e=F.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void _(!1);xt([n],O,(0,p.NCy)(g),g,P,B,q,null===P||void 0===P?void 0:P.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(_(!1),Q(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,p.rEM)(g)&&(x||(async()=>{await(0,ht.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{_(!1),M(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Gt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important"},fontSize:A+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===ot||void 0===ot||null===(i=ot[C])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(te,{variantId:void 0!==L?L:null===F||void 0===F||null===(o=F.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*A,width:"90%",fontSize:A,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:(0,p.naM)(g)?(0,f.jsx)(nt.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*A,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:A,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===ot||void 0===ot||null===(d=ot[C])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})}):(0,f.jsx)(nt.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*A,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==b?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:A+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===ot||void 0===ot||null===(h=ot[C])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:E?(0,f.jsx)(jt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Zt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*A}})})}):(0,f.jsxs)(jt.s,{animation:W?T:"none",onAnimationEnd:()=>Q(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==z&&z()}(g)):mt((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(tt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*A}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*A,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*A+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function ie(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(jt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(jt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(jt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(jt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)(qt.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function ne(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const oe=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.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,f.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,f.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 re(t){var e;const[i,o]=(0,n.useState)(t.product),[r]=(0,v.QN)("whatmorePrimaryFont"),[l]=(0,v.QN)("whatmoreShopId"),[a]=(0,v.QN)("whatmoreSecondaryColor");(0,n.useEffect)((()=>{(0,p.w4b)(l)&&(0,bt.ck)(i,(0,p.NCy)(l),l).then((t=>{o(t)}))}),[]);const d=t.FONT_SIZE,s=t.data,u=t.itemPrice;let h,x,m;var g,w,y;"STRDOIDF6O7"==l&&(h=null===s||void 0===s||null===(g=s.variants)||void 0===g?void 0:g.find((e=>e.id==t.selectedVariantId)),x=null===(w=h)||void 0===w?void 0:w.title,m=null===(y=h)||void 0===y?void 0:y.productLink);const C=(e=>{const i=null===s||void 0===s||null===(e=s.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),b=C&&0!=C&&C>u?Math.round((C-u)/C*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(jt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(jt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(l)?("STRDOIDF6O7"==l?m:t.product_link)+"?"+(0,p.VCz)(l)+"&"+(0,p.Spk)(l)+"&"+(0,p.$lz)(l)+((0,p.N0t)(l)?"&currency="+t.currency:""):("STRDOIDF6O7"==l?m:t.product_link)+((0,p.N0t)(l)?"?currency="+t.currency:"")}(i)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:d,sx:{color:"black",lineHeight:"140% !important",fontFamily:r+" !important"},as:"b",children:"STRDOIDF6O7"==l&&null!==(e=x)&&void 0!==e?e:null===s||void 0===s?void 0:s.title}),(0,f.jsx)(oe,{iconSize:1.1*d})]}),(0,f.jsxs)(jt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[C&&C>u&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*d,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:r+" !important"},children:(0,bt.Sb)(parseFloat((0,Ft.U)()?C/100:C)," ",l,i.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*d,fontWeight:"semibold !important",sx:{color:"black",fontFamily:r+" !important"},children:(0,bt.Sb)(parseFloat((0,Ft.U)()?u/100:u),"",l,i.currency,!0)}),!isNaN(b)&&0!=b&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(l)?"#343434"==a?(0,p.ub$)(l):a:(0,p.ub$)(l),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(l)?"14px !important":1.1*d,fontWeight:"normal !important",sx:{color:(0,p.BRY)(l)+" !important",fontFamily:r+" !important"},children:(0,p.mOK)(l)?`${b}% off`:`Save ${(0,bt.Sb)(parseFloat(C/100-u/100)," ",l,i.currency)}`})})]}),"61412737206"==l&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var le=i(4418);function ae(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(pe),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,C=t.isVariantAvailable,b=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.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===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(jt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(jt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(jt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*b+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(jt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*b,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(le.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const A=C(n,i),F=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&F&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(jt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,yt.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):F&&(0,f.jsx)(jt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(nt.$,{isDisabled:!A,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&A?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:A?"p":"s",textDecoration:A?"none":"line-through",fontSize:.9*b+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&A?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(wt.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var de=i(8385);function se(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,C,b,S,k,I,_,E,T;const[N,A,F,P]=(0,x.A)();var L=.4*P*.8,B=L*(16/9)*.6*.8;const O=1.1*L,D=O*(16/9)*.8;var R=.12*L;const[W,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[at,dt]=(0,n.useState)(),[st,ct]=(0,n.useState)(0),[pt,vt]=(0,n.useState)(!1),[xt,mt]=(0,n.useState)(!1),[gt,ft]=(0,n.useState)(U.thumbnail_image),Ct=(0,v.Xd)("whatmoreUITheme"),bt=(0,v.Xd)("whatmoreShopId"),St=(0,n.useCallback)((t=>{Z(t)}),[]),kt=(0,n.useCallback)((t=>{tt(t)}),[]),It=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=ce(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),dt(ue(M,i)),lt(1),mt(!1);const n=he(M,i);null!==n&&ft(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ue(M,nt);dt(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,ht.Lt)():(0,ut.Ii)(e)}((0,p.NCy)(bt),bt);t.then((t=>t.json())).then((t=>{ct(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[pt]);const _t=`${z.i7`
73
73
  0% {
74
74
  transform: translateY(100%);
75
75
  }
76
- `} 0.5s`,zt=null===M||void 0===M||null===(e=M.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"))})),[Et,Tt]=(0,n.useState)(-1!==zt?null===(i=M.options)||void 0===i||null===(o=i[zt])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Nt,At]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==zt&&"whatmore"!==(0,p.NCy)(bt)&&async function(){const t=await(0,ht._N)(U);At(t)}()}),[]);let Ft=-1,Pt=-1!==zt&&null!==Nt&&void 0!==Nt&&Nt.product&&(null===Nt||void 0===Nt||null===(l=Nt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Nt||void 0===Nt||null===(d=Nt.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[zt])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Nt||void 0===Nt||null===(g=Nt.product)||void 0===g||null===(w=g.images)||void 0===w?void 0:w.map((t=>{var e,i,n,o,r,l,a,d,s,c,u,h,p,v;const x=null===Nt||void 0===Nt||null===(e=Nt.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex((t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name)));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Nt||void 0===Nt||null===(n=Nt.product)||void 0===n||null===(o=n.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Ft,(null===Nt||void 0===Nt||null===(a=Nt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[zt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Nt||void 0===Nt||null===(u=Nt.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,Ft)],src:null===t||void 0===t?void 0:t.src}})):[],Lt=[];if("whatmore"==(0,p.NCy)(bt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Bt;var Ot;if(-1!==(null===M||void 0===M||null===(Bt=M.options)||void 0===Bt?void 0:Bt.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"))}))))Lt=null===M||void 0===M||null===(Ot=M.images)||void 0===Ot?void 0:Ot.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Ft+1<(null===Nt||void 0===Nt||null===(C=Nt.product)||void 0===C||null===(b=C.options)||void 0===b||null===(S=b[zt])||void 0===S||null===(k=S.values)||void 0===k?void 0:k.length)&&(Pt=[]),(0,f.jsxs)(jt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"xl":null,animation:_t,children:[(0,f.jsx)(ee,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:R}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(jt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(bt),borderColor:(0,p.Fwt)(bt)},children:(0,f.jsx)(jt.s,{width:"100%",children:(0,f.jsx)(ae.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",children:(0,f.jsx)(y._,{width:O+"px",height:D+"px",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"lg":null,src:(0,yt.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(bt)+" !important"},fallback:(0,f.jsx)(V.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.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)==Et)):Lt.length>0?[null===(_=Lt)||void 0===_?void 0:_.find((t=>(null===t||void 0===t?void 0:t.color)==Et))]:null===M||void 0===M||null===(E=M.images)||void 0===E?void 0:E.map((t=>({src:t.includes("https")?t:"https:"+t}))),spacing:10,defaultHeight:O+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,f.jsx)(oe,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,getVariantPrice:ce,selectedVariantId:nt,itemPrice:at,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:gt}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.o,{paddingTop:"4px",width:"100%",children:(0,f.jsx)(wt.c,{color:(0,p.R6d)(bt),size:"xs",width:"90%"})}),(0,f.jsx)(le,{data:M,dividerColor:(0,p.R6d)(bt),setSelectedColor:Tt,finalArr:Pt,finalArrExternal:Lt,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,selectOptionFirstHandler:St,selectOptionSecondHandler:kt,selectOptionThirdHandler:It,getVariantPrice:ce,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(bt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)(ie,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:R,data:M,handleToggle:()=>Q(!W),show:W}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(te,{position:"relative",data:M,FONT_SIZE:R,product:U})}),(0,f.jsx)(te,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:R,PRODUCT_TILE_WIDTH:L,product:U,itemQuantity:rt,cartItemCount:st,addToCartFlag:pt,setAddToCartFlag:vt,soldOutFlag:xt,setSoldOutFlag:mt,event:H})]})}const se=(t,e,i,n)=>{var o;if(!e&&!i&&!n)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!n||t.option3===n)));return r?r.id:void 0},ce=(t,e)=>{var i,n;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.price},ue=(t,e)=>{var i;const n=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find((t=>t.id==e));return void 0===n?null:null===n||void 0===n||null===(o=n.featured_image)||void 0===o?void 0:o.src;var o},he=(0,n.createContext)({setShowOptionsChart:null});var pe=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,[a,d]=(0,n.useState)(!1);return(0,f.jsx)(he.Provider,{value:{setShowOptionsChart:d},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(de,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l})})}),a?(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(qt,{data:i,event:e,product:o,setShowOptionsChart:()=>{d(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var ve=function(t){var e,[i,o,r,l]=(0,x.A)();const[a,d]=(0,n.useState)(!1),[g,j]=(0,n.useState)(),[y,C]=(0,n.useState)(),b=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=n.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,N=null===(e=t.showOverlay)||void 0===e||e,A="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:A,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),N?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:A,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Yt,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(b),b);C(t),j(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:A,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function me(t){var e,i,[n,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map((t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ge=i(3788),fe=i(758);const we=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,je=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var ye=function(t){var e,i,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,m=t.whatmoreShareEventId,g=t.event,w=null===(e=t.showShareText)||void 0===e||e,y=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,C=(0,v.Xd)("whatmoreShopId"),b=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)($.B),[z,E,T,N]=(0,x.A)(),A=null!==(o=t.iconSize)&&void 0!==o?o:.1*N*(0,p.xkB)(C);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var i;!function(t){b||S||(async()=>{(0,l.Zh)(t)})()}(g),(e.startsWith("product")||"embed"===e)&&(d="te"),i="event_product_link"===(0,p.moP)(C)?g.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,p.moP)(C)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+h+"&weid="+m,(0,p.BLb)(C)&&(i=i+"&"+(0,p.VCz)(C)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,p.kZI)(C),text:`${(0,p.dmA)(C)} \n ${i} ${"50529403072"!==C&&(0,p.ZX9)(C)?"\n \n -via Whatmore":""}`};navigator.share&&!je?navigator.share(n):(t.setIsModalOpen(!0),t.setShareText([n,i]))}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:y+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(fe.A,{sx:{transform:"scaleX(-1)",color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,X.kz)({userInteractionType:Y.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:g,productList:g.products,ctaList:g.cta})}}),w&&(0,p.ViG)(C)?(0,f.jsxs)(j.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",paddingRight:"10%",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(C)?we(g.total_share):null!==(r=null===ot||void 0===ot||null===(a=ot[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},Ce=i(3420),be=i(7170);var Se=function(t){var e,i,o;const r=(0,v.Xd)("whatmoreShopId"),a=(0,v.Xd)("whatmorePrimaryFont"),d=(0,v.Xd)("whatmoreLikedEvents"),h=(0,v.Xd)("isInDesignMode"),m=(0,v.Xd)("isDemoBrand"),g=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:w}=(0,n.useContext)($.B),y=t.event,[C,b]=(0,n.useState)(null!==(e=d[y.event_id])&&void 0!==e&&e),[S,k,I,_]=(0,x.A)(),z=.1*_*(0,p.xkB)(r);function E(t,e){h||m||(async()=>{(0,l.$B)(t,e)})()}function T(){(0,v.t2)("whatmoreLikedEvents",{...d,[y.event_id]:!C}),C?(E(y,-1),(0,X.kz)({userInteractionType:Y.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,X.kz)({userInteractionType:Y.O.VIDEO_LIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})),b(!C)}const N=y.total_like+(C?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[C?(0,f.jsx)(be.A,{sx:{boxShadow:3,color:(0,p.MJ6)(r),fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}):(0,f.jsx)(Ce.A,{sx:{boxShadow:3,color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(r)?(0,f.jsxs)(j.E,{fontSize:.3*z+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,p.LGx)(r)?we(N):null!==(i=null===ot||void 0===ot||null===(o=ot[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ke=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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 Ie=i(1941);const _e=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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"})})})},ze=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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 Ee=t=>{const e=t.shareText,[i,o]=(0,n.useState)("Copy link"),[r,l]=(0,n.useState)("");return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{backgroundColor:"white",borderRadius:"10px",padding:"12px 12px 20px 12px"},children:[(0,f.jsxs)("div",{style:{cursor:"pointer",display:"flex",justifyContent:"space-between",paddingBottom:"6px"},children:[(0,f.jsx)("img",{className:"whatmore-label",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,f.jsx)($t.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",gap:"20px",justifyContent:"center",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://wa.me/?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(ke,{iconSize:Math.min(t.iconSize,30)}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://twitter.com/intent/tweet?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(_e,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"X"})]}),(0,f.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,f.jsx)(ze,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14),color:r},children:i})]})]})]})})},Te=i(6692),Ne=i(9879),Ae=i(9556),Fe=i(2209);var Pe=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Le=t=>{var e;const i={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,r]=(0,n.useState)(!1),[l,a]=(0,n.useState)(null),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),p=(0,n.useContext)($.B);return(0,n.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,n.useEffect)((()=>{!o&&h.current&&s(h.current.offsetHeight)}),[o]),(0,f.jsxs)(c.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,X.kz)({userInteractionType:Y.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Fe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Ae.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Pe,{}),(0,f.jsx)(Ae.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:i.options.map(((e,i)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var i;a(e),r(!0),(0,X.kz)({userInteractionType:Y.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(j.E,{py:5,color:"gray.800",children:e})},i)))})})]})},Be=i(9935);var Oe=t=>{var e,i;const[o,r]=(0,n.useState)(""),[l,a]=(0,n.useState)(""),[d,s]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),m=(0,v.Xd)("whatmoreSecondaryColor"),g=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,y=(0,n.useContext)($.B),C=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,X.kz)({userInteractionType:Y.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:y})):a("Please enter valid contact info.")},b=()=>{var e;t.setIsQuestionVisible(!1),(0,X.kz)({userInteractionType:Y.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:y})};return(0,f.jsx)(jt.s,{bg:m,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,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(B.A,{onCloseCallback:b})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then((()=>{h(!0),setTimeout((()=>{b()}),1e3),setTimeout((()=>h(!1)),2e3)}),(()=>{console.error("Failed to copy the coupon code")}))},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(Be.A,{sx:{color:u?{whatmoreSecondaryColor:m}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:m,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(B.A,{onCloseCallback:b})}),(0,f.jsxs)(jt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,f.jsx)("input",{fontFamily:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&C()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(j.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:C,width:"50%",children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:m,children:"SUBMIT"})})]})]})})};var De=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Oe,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Re=t=>{var e;const[i,o]=(0,n.useState)(null),r=t.questionIndex,l=t.questionList;if((0,n.useEffect)((()=>{if(!(r>=l.length))return()=>(0,ct.Hm)()}),[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(De,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Le,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map((t=>null===t||void 0===t?void 0:t.value)),onAnswerSelect:t=>{o(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},We=i(6118),Qe=i(8618);function Ve(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)($.B),[m]=(0,v.QN)("whatmoreSecondaryColor"),[g]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(g),y=null!==(e=(0,p.qAx)(g))&&void 0!==e?e:[m,w,m,w,m],C=(0,n.useRef)(null);(0,n.useEffect)((()=>{C.current&&C.current.play()}),[]);const b=(0,ge.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+y[0]+"50, 0px -2px 1px 0px "+y[1]+"50, 2px 0px 1px 0px "+y[2]+"50, -2px 0px 1px 0px "+y[3]+"80, 2px -2px 1px 0px "+y[4]+"80, -2px 2px 1px 0px "+y[0]+"DA, 2px 2px 1px 0px "+y[1]+"DA, -2px -2px 1px 0px "+y[2]+"DA"},children:"video"==(0,yt.B)(b)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:b,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:b,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Me=function(t){var e,i,o;const[r,a,d]=(0,Ie.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),b=(0,n.useContext)(Ti),{whatmoreEventsBrowsingTemplate:S}=(0,n.useContext)($.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,A=t.storySetId,F=t.isLast,L=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,R=t.videoPlayingData,W=t.totalSiblingEvents,V=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,H=t.midOpenSpaceClickHandler,U=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)($.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,X.kz)({userInteractionType:Y.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[G]);const ot=(0,Qe.t)()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Mt.S,{userInteractionType:Y.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Re,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:nt,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,f.jsx)(Ee,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[b.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(me,{progress:xe(R.current_time,R.video_duration),totalSiblings:W,indexAmongSiblings:V})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Ve,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,St.Yt)(S)?(0,f.jsx)(ye,{whatmoreShareTemplateId:(0,St.Gy)(S),whatmoreShareStoryId:A,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(k,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(B.A,{event:N,onCloseCallback:L})]})]})})]}),"78232846646"===C&&"portrait"===r&&b.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{position:"absolute",top:.49*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,f.jsx)(We.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})}),(0,f.jsx)(c.az,{position:"absolute",top:.42*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,f.jsx)(We.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{H()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{U()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[b.totalEvents>1&&!w&&b.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!F})})}):null,(0,f.jsxs)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:0,bottom:"25%",children:[(0,p.oZc)(C)&&!(0,St.Yt)(S)?(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",paddingX:"8px",position:"relative",top:"-30px",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(0,f.jsxs)(c.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Se,{event:N})}),(0,St.Yt)(S)&&"50529403072"===C&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(0,St.Yt)(S)?(0,f.jsx)(c.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(ye,{whatmoreShareTemplateId:(0,St.Gy)(S),whatmoreShareStoryId:A,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]}),(0,Vt.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:N,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Ut,{event:N,productClickHandler:D})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Te.A,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},He=i(5491),Ue=i.n(He),Xe=i(6493);var Ye=function(t){var e,i,o,r,l,a,[d,w,j,y]=(0,x.A)();const[C,b]=(0,n.useState)(!1),[S,k]=(0,n.useState)(),[I,_]=(0,n.useState)(),[z,E]=(0,n.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),N=t.event,A=t.storyId,F=t.onBack,P=n.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,Q=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,V=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,M=null===(o=t.showOverlay)||void 0===o||o,H=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},U=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,n.useContext)($.B),{questionList:G}=(0,n.useContext)(Ti),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,n.useState)();(0,n.useEffect)((()=>{tt(t.showQuestion)}),[t.showQuestion]);const et="center";let it;try{it=Ue()((()=>{R()}),1e3,{leading:!0,trailing:!1})}catch(nt){console.log(nt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:y,height:j,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:et,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:y/j,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,ge.s)((0,Xe.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=xe(t,e);W({watch_time:t,video_duration:e});const n=z.is_video_ended;i>=99&&B&&!n?(it(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:n})},event:N,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:et,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Me,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta})},productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(T),T);_(t),k(e),b(!0),D(!0),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:H,midOpenSpaceClickHandler:U,rightOpenSpaceClickHandler:q,storySetId:A,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L})})}):(0,f.jsx)(f.Fragment,{}),!0===C?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:et,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{b(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,f.jsx)("div",{})]})})},$e=i(2039),qe=i(6613),Ke=i(1085),Ge=i(5727);var Ze=function(t){var[e,i,n,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:n,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/n,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,ge.s)((0,Xe.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Ke.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ge.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Ke.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Je=i(3294),ti=i(9821);const ei=n.lazy((()=>i.e(931).then(i.bind(i,7059))));var ii=function(t){var e,i;const n=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[p,x]=(0,S.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,qe.MN)()&&0==m&&"recommended_images"!=(null===o||void 0===o?void 0:o.event_type))return(0,ti._)()?(0,f.jsx)(Ze,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Je.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ye,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Je.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,$e.ij)(o)||(0,$e.Il)(o))return(0,f.jsx)(Ye,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Je.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if("recommended_images"==(null===o||void 0===o?void 0:o.event_type))return(0,f.jsx)(ei,{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,$e.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:C}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(ve,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:g},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},ni=i(4806),oi=i.n(ni),ri=i(2804),li=i(6834);function ai(t){var e;const[i,o]=(0,n.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(li.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"up")}}):(0,f.jsx)(ri.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"down")}})})}var di=function(t){var e,i,n;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(n=t.fontSize)&&void 0!==n?n:50,a=t.handleClick;return(0,f.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,f.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,f.jsx)(ai,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(ai,{type:"right",onClick:a,fontSize:l})]})})},si=i(964),ci=i(3330);var ui=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,n.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var hi=function(t,e){const i=(0,n.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(n){const o=i.current.clientX,r=i.current.clientY;var l=o-n.changedTouches[0].clientX,a=r-n.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var pi=function(t,e){const i=(0,n.useRef)(Ue()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(n,o){var r=0;if(r="vertical"==t?n.deltaY:n.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(o,l)}]},vi=i(6325);var xi=function(t){const e=t.events,i=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,n.useState)(!0),[y,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(Ti),{slideDirection:z}=(0,n.useContext)(Ti),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,A]=ui(i,e.length),[F,P]=hi(z,50),[L]=pi("vertical",30),[B,O]=(0,n.useState)(!1),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)($.B);function V(){O(!1)}function M(t){V(),setTimeout((()=>{a(t)}),500)}(0,n.useEffect)((()=>(O(!0),()=>{})),[]);const U=W.landingLocationType,q=W.templateType;_(M);let K=i;const{questionList:G}=(0,n.useContext)(Ti);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(A("right"),D.slideNext())}function J(t,e){A(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(oi(),{isOpen:B,onAfterOpen:function(){},onRequestClose:V,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(vi.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,H.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(b)return;const e=P(t);e&&J(0,e)},onWheel:t=>{b||L(t,(t=>{J(0,t)}))},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!b,allowSlidePrev:!b,allowTouchMove:!1,onSwiper:t=>{R(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products})},onSlideChange:t=>{var i;w?j(!1):(y||C(!0),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}),i=e[N().activeIndex],m||g||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,St.Wd)(U)+(0,St.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ci.Si)(E,si.TB,si.Dk),(0,ct.Ch)(i.event_id,i.products,si.TB,si.Dk,t,null===i||void 0===i?void 0:i.location,null===Q||void 0===Q?void 0:Q.userType)):T.startsWith("product")||"embed"===T?((0,ci.Si)(E,si.DK,si.K1),(0,ct.Ch)(i.event_id,i.products,si.DK,si.K1,t)):T.startsWith("collection")?((0,ci.Si)(E,si.Sx,si.rz),(0,ct.Ch)(i.event_id,i.products,si.Sx,si.rz,t)):((0,ci.Si)(E,si.TB,si.Dk),(0,ct.Ch)(i.event_id,i.products,si.TB,si.Dk,t))})(),(0,X.UM)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((n=>(0,f.jsx)(o.qr,{children:n=>{let{isActive:o,isPrev:r,isNext:l,isVisible:a,isDuplicate:d}=n;const s=o?"activeIndex":r?"prevIndex":"nextIndex",c=N()[s];"activeIndex"==s&&(K=Math.max(K,c),0==c&&(K=0));const h=(null===G||void 0===G?void 0:G.length)>0&&o&&a&&(c>i||K<i&&c>0)&&c>=K&&c%(0,p.uSp)(E)==i%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ii,{event:e[c],showQuestion:h,onBack:M,isPlaying:1==e.length||o&&a,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+n)))}),e.length>1&&!b&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(di,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},mi=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const gi=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return mi.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${i}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};gi.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var fi=gi;var wi=function(t){var e,[i,a,d,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,C]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,n.useContext)(Ti),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,n.useContext)($.B),[N,A]=(0,n.useState)(!1),[F,P]=(0,n.useState)(null);function L(){A(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,V=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,M=(0,n.useRef)(0);function U(t){L(),setTimeout((()=>{R(t)}),500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,n.useEffect)((()=>(A(!0),()=>{})),[]),b(U);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(fi,{show:N,closeCallback:L,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,H.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:tt>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;y?C(!1):(w||j(!0),e=O[t.activeIndex],m||g||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,St.Wd)(K)+(0,St.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,ci.Si)(I,si.TB,si.Dk),(0,ct.Ch)(e.event_id,e.products,si.TB,si.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ci.Si)(I,si.DK,si.K1),(0,ct.Ch)(e.event_id,e.products,si.DK,si.K1,t)):_.startsWith("collection")?((0,ci.Si)(I,si.Sx,si.rz),(0,ct.Ch)(e.event_id,e.products,si.Sx,si.rz,t)):((0,ci.Si)(I,si.TB,si.Dk),(0,ct.Ch)(e.event_id,e.products,si.TB,si.Dk,t))})(),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,X.UM)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(B.A,{onCloseCallback:R})}),W.slice(D,O.length+D).map(((t,e)=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ii,{event:O[e%Q],onBack:U,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(o)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%Q,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ii,{event:O[e%Q],onBack:U,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===M.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%Q,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ii,{event:O[e%Q],onBack:U,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(M.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Te.A,{brandName:V,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},ji=i(340),yi=i(9983),Ci=i(572),bi=i(8603);var Si=function(t){const[e,i,n,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:n,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/n,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var ki=function(t){var e;const i=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=i.events;var[h,p,m,g]=(0,x.A)();const[w,j]=(0,S.A)(),[y]=(0,v.QN)("isInDesignMode"),[C]=(0,v.QN)("isDemoBrand"),[b]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,n.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,n.useState)(null),[N,A]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,n.useContext)($.B),[L,B]=ui(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function Q(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[V,M]=(0,n.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:g,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,St.Wd)(D)+(0,St.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);y||C||(async()=>{(0,l.lB)(t),(0,ci.Si)(b,si.TB,si.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map((e=>(0,f.jsx)(o.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=c[L()[e]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,$e.ij)(r)||(0,$e.Il)(r)?(0,f.jsx)(Ye,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:O,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:A,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{Q("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{Q("right")},storyId:i.id,source:Je.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+r.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(Si,{})})}},"event-story-view-slide-"+e)))})})};var Ii=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,Ie.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ti),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=ui(a,i.length),[C,b]=hi("horizontal",50),[S]=pi("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)($.B);function A(){_(!1)}function F(t){A(),setTimeout((()=>{e(t)}),500)}(0,n.useEffect)((()=>(_(!0),()=>{})),[]),g(F);const P=T.landingLocationType,L=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(oi(),{isOpen:I,onAfterOpen:function(){},onRequestClose:A,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{C(t)},onTouchEnd:t=>{const e=b(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,St.Wd)(P)+(0,St.gf)(L)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ci.Si)(w,si.TB,si.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const d=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(ki,{stories:i[j()[d]],onBack:F,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[d]?k:0},"event-story-view-"+i[j()[d]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var _i=function(t){var e,i,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[m]=(0,v.QN)("whatmoreSecondaryColor"),g=t.event,w=(t.onBack,n.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(i=t.heightFactor)&&void 0!==i?i:1,C="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=j,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:C,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,$e.ij)(g)||(0,$e.Il)(g)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",url:g.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:g}):(0,f.jsx)(y._,{width:"full",height:"full",src:g.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+m+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:C,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var zi=function(t){var e,i,[a,d,h,p]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,C]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,n.useContext)(Ti),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)($.B),[E,T]=(0,n.useState)(!1),[N,A]=(0,n.useState)(null);function F(){T(!1)}t.events;const P=t.eventIndex,L=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){F(),setTimeout((()=>{L(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),b(W);const Q=_.landingLocationType,V=_.templateType;function M(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const H=parseInt(Math.min(5,O.length));return(0,f.jsx)(fi,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*H,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,i;A(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:H,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:H>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*H,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;y?C(!1):(w||j(!0),function(t){const e=(0,St.Wd)(Q)+(0,St.gf)(V)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);m||g||(async()=>{(0,l.lB)(t),(0,ci.Si)(I,si.TB,si.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(B.A,{onCloseCallback:L})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(ki,{stories:t,onBack:W,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(_i,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Te.A,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Ei=(0,bi.A)({key:"whatmore-css-sv"}),Ti=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ni=function(t){var e,i,o;const[r,l,a]=(0,Ie.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)($.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)($.B),u=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",C="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete yi.Ay.styles.global,c?(0,f.jsx)(Ci.C,{value:Ei,children:(0,f.jsx)(ji.s,{theme:yi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ti.Provider,{value:{isIOS:(0,qe.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:C},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(zi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(Ii,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(Ci.C,{value:Ei,children:(0,f.jsx)(ji.s,{theme:yi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ti.Provider,{value:{isIOS:(0,qe.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:C,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(xi,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(wi,{events:h,eventIndex:x,onBack:m})})})})}},5144:function(t,e,i){i.d(e,{jd:function(){return o}});var n=i(8283);const o=`\n ${n.i7`
76
+ `} 0.5s`,zt=null===M||void 0===M||null===(e=M.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"))})),[Et,Tt]=(0,n.useState)(-1!==zt?null===(i=M.options)||void 0===i||null===(o=i[zt])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Nt,At]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==zt&&"whatmore"!==(0,p.NCy)(bt)&&async function(){const t=await(0,ht._N)(U);At(t)}()}),[]);let Ft=-1,Pt=-1!==zt&&null!==Nt&&void 0!==Nt&&Nt.product&&(null===Nt||void 0===Nt||null===(l=Nt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Nt||void 0===Nt||null===(d=Nt.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[zt])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Nt||void 0===Nt||null===(g=Nt.product)||void 0===g||null===(w=g.images)||void 0===w?void 0:w.map((t=>{var e,i,n,o,r,l,a,d,s,c,u,h,p,v;const x=null===Nt||void 0===Nt||null===(e=Nt.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex((t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name)));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Nt||void 0===Nt||null===(n=Nt.product)||void 0===n||null===(o=n.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Ft,(null===Nt||void 0===Nt||null===(a=Nt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[zt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Nt||void 0===Nt||null===(u=Nt.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,Ft)],src:null===t||void 0===t?void 0:t.src}})):[],Lt=[];if("whatmore"==(0,p.NCy)(bt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Bt;var Ot;if(-1!==(null===M||void 0===M||null===(Bt=M.options)||void 0===Bt?void 0:Bt.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"))}))))Lt=null===M||void 0===M||null===(Ot=M.images)||void 0===Ot?void 0:Ot.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Ft+1<(null===Nt||void 0===Nt||null===(C=Nt.product)||void 0===C||null===(b=C.options)||void 0===b||null===(S=b[zt])||void 0===S||null===(k=S.values)||void 0===k?void 0:k.length)&&(Pt=[]),(0,f.jsxs)(jt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"xl":null,animation:_t,children:[(0,f.jsx)(ie,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:R}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(jt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(bt),borderColor:(0,p.Fwt)(bt)},children:(0,f.jsx)(jt.s,{width:"100%",children:(0,f.jsx)(de.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",children:(0,f.jsx)(y._,{width:O+"px",height:D+"px",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.whatmoreUITheme)?"lg":null,src:(0,yt.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(bt)+" !important"},fallback:(0,f.jsx)(V.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===Ct||void 0===Ct?void 0:Ct.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)==Et)):Lt.length>0?[null===(_=Lt)||void 0===_?void 0:_.find((t=>(null===t||void 0===t?void 0:t.color)==Et))]:null===M||void 0===M||null===(E=M.images)||void 0===E?void 0:E.map((t=>({src:t.includes("https")?t:"https:"+t}))),spacing:10,defaultHeight:O+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,f.jsx)(re,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,getVariantPrice:ue,selectedVariantId:nt,itemPrice:at,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:gt}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.o,{paddingTop:"4px",width:"100%",children:(0,f.jsx)(wt.c,{color:(0,p.R6d)(bt),size:"xs",width:"90%"})}),(0,f.jsx)(ae,{data:M,dividerColor:(0,p.R6d)(bt),setSelectedColor:Tt,finalArr:Pt,finalArrExternal:Lt,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,selectOptionFirstHandler:St,selectOptionSecondHandler:kt,selectOptionThirdHandler:It,getVariantPrice:ue,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(bt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)(ne,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:R,data:M,handleToggle:()=>Q(!W),show:W}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(ee,{position:"relative",data:M,FONT_SIZE:R,product:U})}),(0,f.jsx)(ee,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:R,PRODUCT_TILE_WIDTH:L,product:U,itemQuantity:rt,cartItemCount:st,addToCartFlag:pt,setAddToCartFlag:vt,soldOutFlag:xt,setSoldOutFlag:mt,event:H})]})}const ce=(t,e,i,n)=>{var o;if(!e&&!i&&!n)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!n||t.option3===n)));return r?r.id:void 0},ue=(t,e)=>{var i,n;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.price},he=(t,e)=>{var i;const n=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find((t=>t.id==e));return void 0===n?null:null===n||void 0===n||null===(o=n.featured_image)||void 0===o?void 0:o.src;var o},pe=(0,n.createContext)({setShowOptionsChart:null});var ve=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,[a,d]=(0,n.useState)(!1);return(0,f.jsx)(pe.Provider,{value:{setShowOptionsChart:d},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(se,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l})})}),a?(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(Kt,{data:i,event:e,product:o,setShowOptionsChart:()=>{d(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var xe=function(t){var e,[i,o,r,l]=(0,x.A)();const[a,d]=(0,n.useState)(!1),[g,j]=(0,n.useState)(),[y,C]=(0,n.useState)(),b=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=n.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,N=null===(e=t.showOverlay)||void 0===e||e,A="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:A,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),N?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:A,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)($t,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(b),b);C(t),j(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:A,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(ve,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const me=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ge(t){var e,i,[n,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map((t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t)))})}var fe=i(3788),we=i(758);const je=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,ye=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var Ce=function(t){var e,i,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,m=t.whatmoreShareEventId,g=t.event,w=null===(e=t.showShareText)||void 0===e||e,y=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,C=(0,v.Xd)("whatmoreShopId"),b=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)($.B),[z,E,T,N]=(0,x.A)(),A=null!==(o=t.iconSize)&&void 0!==o?o:.1*N*(0,p.xkB)(C);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var i;!function(t){b||S||(async()=>{(0,l.Zh)(t)})()}(g),(e.startsWith("product")||"embed"===e)&&(d="te"),i="event_product_link"===(0,p.moP)(C)?g.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,p.moP)(C)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+h+"&weid="+m,(0,p.BLb)(C)&&(i=i+"&"+(0,p.VCz)(C)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,p.kZI)(C),text:`${(0,p.dmA)(C)} \n ${i} ${"50529403072"!==C&&(0,p.ZX9)(C)?"\n \n -via Whatmore":""}`};navigator.share&&!ye?navigator.share(n):(t.setIsModalOpen(!0),t.setShareText([n,i]))}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:y+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(we.A,{sx:{transform:"scaleX(-1)",color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,X.kz)({userInteractionType:Y.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:g,productList:g.products,ctaList:g.cta})}}),w&&(0,p.ViG)(C)?(0,f.jsxs)(j.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",paddingRight:"10%",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(C)?je(g.total_share):null!==(r=null===ot||void 0===ot||null===(a=ot[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},be=i(3420),Se=i(7170);var ke=function(t){var e,i,o;const r=(0,v.Xd)("whatmoreShopId"),a=(0,v.Xd)("whatmorePrimaryFont"),d=(0,v.Xd)("whatmoreLikedEvents"),h=(0,v.Xd)("isInDesignMode"),m=(0,v.Xd)("isDemoBrand"),g=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:w}=(0,n.useContext)($.B),y=t.event,[C,b]=(0,n.useState)(null!==(e=d[y.event_id])&&void 0!==e&&e),[S,k,I,_]=(0,x.A)(),z=.1*_*(0,p.xkB)(r);function E(t,e){h||m||(async()=>{(0,l.$B)(t,e)})()}function T(){(0,v.t2)("whatmoreLikedEvents",{...d,[y.event_id]:!C}),C?(E(y,-1),(0,X.kz)({userInteractionType:Y.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,X.kz)({userInteractionType:Y.O.VIDEO_LIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})),b(!C)}const N=y.total_like+(C?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[C?(0,f.jsx)(Se.A,{sx:{boxShadow:3,color:(0,p.MJ6)(r),fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}):(0,f.jsx)(be.A,{sx:{boxShadow:3,color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(r)?(0,f.jsxs)(j.E,{fontSize:.3*z+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,p.LGx)(r)?je(N):null!==(i=null===ot||void 0===ot||null===(o=ot[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const Ie=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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 _e=i(1941);const ze=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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"})})})},Ee=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.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,f.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 Te=t=>{const e=t.shareText,[i,o]=(0,n.useState)("Copy link"),[r,l]=(0,n.useState)("");return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{backgroundColor:"white",borderRadius:"10px",padding:"12px 12px 20px 12px"},children:[(0,f.jsxs)("div",{style:{cursor:"pointer",display:"flex",justifyContent:"space-between",paddingBottom:"6px"},children:[(0,f.jsx)("img",{className:"whatmore-label",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,f.jsx)(qt.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",gap:"20px",justifyContent:"center",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://wa.me/?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(Ie,{iconSize:Math.min(t.iconSize,30)}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://twitter.com/intent/tweet?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(ze,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"X"})]}),(0,f.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,f.jsx)(Ee,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14),color:r},children:i})]})]})]})})},Ne=i(6692),Ae=i(9879),Fe=i(9556),Pe=i(2209);var Le=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Be=t=>{var e;const i={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,r]=(0,n.useState)(!1),[l,a]=(0,n.useState)(null),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),p=(0,n.useContext)($.B);return(0,n.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,n.useEffect)((()=>{!o&&h.current&&s(h.current.offsetHeight)}),[o]),(0,f.jsxs)(c.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,X.kz)({userInteractionType:Y.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Pe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Fe.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Le,{}),(0,f.jsx)(Fe.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:i.options.map(((e,i)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var i;a(e),r(!0),(0,X.kz)({userInteractionType:Y.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(j.E,{py:5,color:"gray.800",children:e})},i)))})})]})},Oe=i(9935);var De=t=>{var e,i;const[o,r]=(0,n.useState)(""),[l,a]=(0,n.useState)(""),[d,s]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),m=(0,v.Xd)("whatmoreSecondaryColor"),g=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,y=(0,n.useContext)($.B),C=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,X.kz)({userInteractionType:Y.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:y})):a("Please enter valid contact info.")},b=()=>{var e;t.setIsQuestionVisible(!1),(0,X.kz)({userInteractionType:Y.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:y})};return(0,f.jsx)(jt.s,{bg:m,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,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(B.A,{onCloseCallback:b})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then((()=>{h(!0),setTimeout((()=>{b()}),1e3),setTimeout((()=>h(!1)),2e3)}),(()=>{console.error("Failed to copy the coupon code")}))},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(Oe.A,{sx:{color:u?{whatmoreSecondaryColor:m}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:m,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(B.A,{onCloseCallback:b})}),(0,f.jsxs)(jt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,f.jsx)("input",{fontFamily:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&C()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(j.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:C,width:"50%",children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:m,children:"SUBMIT"})})]})]})})};var Re=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(De,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var We=t=>{var e;const[i,o]=(0,n.useState)(null),r=t.questionIndex,l=t.questionList;if((0,n.useEffect)((()=>{if(!(r>=l.length))return()=>(0,ct.Hm)()}),[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(Re,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Be,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map((t=>null===t||void 0===t?void 0:t.value)),onAnswerSelect:t=>{o(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Qe=i(6118),Ve=i(8618);function Me(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)($.B),[m]=(0,v.QN)("whatmoreSecondaryColor"),[g]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(g),y=null!==(e=(0,p.qAx)(g))&&void 0!==e?e:[m,w,m,w,m],C=(0,n.useRef)(null);(0,n.useEffect)((()=>{C.current&&C.current.play()}),[]);const b=(0,fe.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+y[0]+"50, 0px -2px 1px 0px "+y[1]+"50, 2px 0px 1px 0px "+y[2]+"50, -2px 0px 1px 0px "+y[3]+"80, 2px -2px 1px 0px "+y[4]+"80, -2px 2px 1px 0px "+y[0]+"DA, 2px 2px 1px 0px "+y[1]+"DA, -2px -2px 1px 0px "+y[2]+"DA"},children:"video"==(0,yt.B)(b)?(0,f.jsx)(Ae.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:b,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:b,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var He=function(t){var e,i,o;const[r,a,d]=(0,_e.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),b=(0,n.useContext)(Ni),{whatmoreEventsBrowsingTemplate:S}=(0,n.useContext)($.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,A=t.storySetId,F=t.isLast,L=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,R=t.videoPlayingData,W=t.totalSiblingEvents,V=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,H=t.midOpenSpaceClickHandler,U=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)($.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,X.kz)({userInteractionType:Y.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[G]);const ot=(0,Ve.t)()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Ht.S,{userInteractionType:Y.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!s&&!h,children:(0,f.jsx)(We,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:nt,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,f.jsx)(Te,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[b.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(ge,{progress:me(R.current_time,R.video_duration),totalSiblings:W,indexAmongSiblings:V})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Me,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,St.Yt)(S)?(0,f.jsx)(Ce,{whatmoreShareTemplateId:(0,St.Gy)(S),whatmoreShareStoryId:A,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(k,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(B.A,{event:N,onCloseCallback:L})]})]})})]}),"78232846646"===C&&"portrait"===r&&b.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{position:"absolute",top:.49*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})}),(0,f.jsx)(c.az,{position:"absolute",top:.42*window.innerHeight+"px",left:.92*window.innerWidth+"px",transform:"translate(-50%, -50%)",zIndex:101,children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{H()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{U()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[b.totalEvents>1&&!w&&b.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!F})})}):null,(0,f.jsxs)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:0,bottom:"25%",children:[(0,p.oZc)(C)&&!(0,St.Yt)(S)?(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",paddingX:"8px",position:"relative",top:"-30px",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(Ie,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(0,f.jsxs)(c.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(ke,{event:N})}),(0,St.Yt)(S)&&"50529403072"===C&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(Ie,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(0,St.Yt)(S)?(0,f.jsx)(c.az,{width:"full",height:"fit-content",paddingX:"12px",position:"relative",top:"-30px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Ce,{whatmoreShareTemplateId:(0,St.Gy)(S),whatmoreShareStoryId:A,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]}),(0,Mt.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:N,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Xt,{event:N,productClickHandler:D})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Ne.A,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},Ue=i(5491),Xe=i.n(Ue),Ye=i(6493);var $e=function(t){var e,i,o,r,l,a,[d,w,j,y]=(0,x.A)();const[C,b]=(0,n.useState)(!1),[S,k]=(0,n.useState)(),[I,_]=(0,n.useState)(),[z,E]=(0,n.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),N=t.event,A=t.storyId,F=t.onBack,P=n.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,Q=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,V=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,M=null===(o=t.showOverlay)||void 0===o||o,H=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},U=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,n.useContext)($.B),{questionList:G}=(0,n.useContext)(Ni),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,n.useState)();(0,n.useEffect)((()=>{tt(t.showQuestion)}),[t.showQuestion]);const et="center";let it;try{it=Xe()((()=>{R()}),1e3,{leading:!0,trailing:!1})}catch(nt){console.log(nt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:y,height:j,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:et,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:y/j,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,fe.s)((0,Ye.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=me(t,e);W({watch_time:t,video_duration:e});const n=z.is_video_ended;i>=99&&B&&!n?(it(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:n})},event:N,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:et,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(He,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta})},productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(T),T);_(t),k(e),b(!0),D(!0),(0,X.kz)({userInteractionType:Y.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:H,midOpenSpaceClickHandler:U,rightOpenSpaceClickHandler:q,storySetId:A,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L})})}):(0,f.jsx)(f.Fragment,{}),!0===C?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:et,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(ve,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{b(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,f.jsx)("div",{})]})})},qe=i(2039),Ke=i(6613),Ge=i(1085),Ze=i(5727);var Je=function(t){var[e,i,n,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:n,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/n,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,fe.s)((0,Ye.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Ge.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ze.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Ge.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},ti=i(3294),ei=i(9821);const ii=n.lazy((()=>i.e(931).then(i.bind(i,7059))));var ni=function(t){var e,i;const n=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[p,x]=(0,S.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,Ke.MN)()&&0==m&&"recommended_images"!=(null===o||void 0===o?void 0:o.event_type))return(0,ei._)()?(0,f.jsx)(Je,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:ti.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)($e,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:ti.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,qe.ij)(o)||(0,qe.Il)(o))return(0,f.jsx)($e,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:ti.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if("recommended_images"==(null===o||void 0===o?void 0:o.event_type))return(0,f.jsx)(ii,{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,qe.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:C}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(xe,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:g},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},oi=i(4806),ri=i.n(oi),li=i(2804),ai=i(6834);function di(t){var e;const[i,o]=(0,n.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(ai.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"up")}}):(0,f.jsx)(li.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout((()=>{o(!1)}),500),r(t,"down")}})})}var si=function(t){var e,i,n;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(n=t.fontSize)&&void 0!==n?n:50,a=t.handleClick;return(0,f.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,f.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,f.jsx)(di,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(di,{type:"right",onClick:a,fontSize:l})]})})},ci=i(964),ui=i(3330);var hi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,n.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var pi=function(t,e){const i=(0,n.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(n){const o=i.current.clientX,r=i.current.clientY;var l=o-n.changedTouches[0].clientX,a=r-n.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var vi=function(t,e){const i=(0,n.useRef)(Xe()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(n,o){var r=0;if(r="vertical"==t?n.deltaY:n.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(o,l)}]},xi=i(6325);var mi=function(t){const e=t.events,i=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,n.useState)(!0),[y,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(Ni),{slideDirection:z}=(0,n.useContext)(Ni),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,A]=hi(i,e.length),[F,P]=pi(z,50),[L]=vi("vertical",30),[B,O]=(0,n.useState)(!1),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)($.B);function V(){O(!1)}function M(t){V(),setTimeout((()=>{a(t)}),500)}(0,n.useEffect)((()=>(O(!0),()=>{})),[]);const U=W.landingLocationType,q=W.templateType;_(M);let K=i;const{questionList:G}=(0,n.useContext)(Ni);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(A("right"),D.slideNext())}function J(t,e){A(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(ri(),{isOpen:B,onAfterOpen:function(){},onRequestClose:V,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(xi.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,H.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(b)return;const e=P(t);e&&J(0,e)},onWheel:t=>{b||L(t,(t=>{J(0,t)}))},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!b,allowSlidePrev:!b,allowTouchMove:!1,onSwiper:t=>{R(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products})},onSlideChange:t=>{var i;w?j(!1):(y||C(!0),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}),i=e[N().activeIndex],m||g||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,St.Wd)(U)+(0,St.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ui.Si)(E,ci.TB,ci.Dk),(0,ct.Ch)(i.event_id,i.products,ci.TB,ci.Dk,t,null===i||void 0===i?void 0:i.location,null===Q||void 0===Q?void 0:Q.userType)):T.startsWith("product")||"embed"===T?((0,ui.Si)(E,ci.DK,ci.K1),(0,ct.Ch)(i.event_id,i.products,ci.DK,ci.K1,t)):T.startsWith("collection")?((0,ui.Si)(E,ci.Sx,ci.rz),(0,ct.Ch)(i.event_id,i.products,ci.Sx,ci.rz,t)):((0,ui.Si)(E,ci.TB,ci.Dk),(0,ct.Ch)(i.event_id,i.products,ci.TB,ci.Dk,t))})(),(0,X.UM)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((n=>(0,f.jsx)(o.qr,{children:n=>{let{isActive:o,isPrev:r,isNext:l,isVisible:a,isDuplicate:d}=n;const s=o?"activeIndex":r?"prevIndex":"nextIndex",c=N()[s];"activeIndex"==s&&(K=Math.max(K,c),0==c&&(K=0));const h=(null===G||void 0===G?void 0:G.length)>0&&o&&a&&(c>i||K<i&&c>0)&&c>=K&&c%(0,p.uSp)(E)==i%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ni,{event:e[c],showQuestion:h,onBack:M,isPlaying:1==e.length||o&&a,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+n)))}),e.length>1&&!b&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(si,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},gi=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const fi=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return gi.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${i}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};fi.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var wi=fi;var ji=function(t){var e,[i,a,d,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,C]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,n.useContext)(Ni),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,n.useContext)($.B),[N,A]=(0,n.useState)(!1),[F,P]=(0,n.useState)(null);function L(){A(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,V=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,M=(0,n.useRef)(0);function U(t){L(),setTimeout((()=>{R(t)}),500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,n.useEffect)((()=>(A(!0),()=>{})),[]),b(U);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(wi,{show:N,closeCallback:L,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,H.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:tt>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;y?C(!1):(w||j(!0),e=O[t.activeIndex],m||g||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,St.Wd)(K)+(0,St.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,ui.Si)(I,ci.TB,ci.Dk),(0,ct.Ch)(e.event_id,e.products,ci.TB,ci.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ui.Si)(I,ci.DK,ci.K1),(0,ct.Ch)(e.event_id,e.products,ci.DK,ci.K1,t)):_.startsWith("collection")?((0,ui.Si)(I,ci.Sx,ci.rz),(0,ct.Ch)(e.event_id,e.products,ci.Sx,ci.rz,t)):((0,ui.Si)(I,ci.TB,ci.Dk),(0,ct.Ch)(e.event_id,e.products,ci.TB,ci.Dk,t))})(),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,X.UM)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(B.A,{onCloseCallback:R})}),W.slice(D,O.length+D).map(((t,e)=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ni,{event:O[e%Q],onBack:U,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(o)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%Q,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ni,{event:O[e%Q],onBack:U,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===M.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%Q,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ni,{event:O[e%Q],onBack:U,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(M.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ne.A,{brandName:V,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},yi=i(340),Ci=i(9983),bi=i(572),Si=i(8603);var ki=function(t){const[e,i,n,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:n,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/n,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var Ii=function(t){var e;const i=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=i.events;var[h,p,m,g]=(0,x.A)();const[w,j]=(0,S.A)(),[y]=(0,v.QN)("isInDesignMode"),[C]=(0,v.QN)("isDemoBrand"),[b]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,n.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,n.useState)(null),[N,A]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,n.useContext)($.B),[L,B]=hi(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function Q(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[V,M]=(0,n.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:g,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,St.Wd)(D)+(0,St.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);y||C||(async()=>{(0,l.lB)(t),(0,ui.Si)(b,ci.TB,ci.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map((e=>(0,f.jsx)(o.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=c[L()[e]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,qe.ij)(r)||(0,qe.Il)(r)?(0,f.jsx)($e,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:O,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:A,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{Q("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{Q("right")},storyId:i.id,source:ti.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+r.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(ki,{})})}},"event-story-view-slide-"+e)))})})};var _i=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,_e.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ni),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=hi(a,i.length),[C,b]=pi("horizontal",50),[S]=vi("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)($.B);function A(){_(!1)}function F(t){A(),setTimeout((()=>{e(t)}),500)}(0,n.useEffect)((()=>(_(!0),()=>{})),[]),g(F);const P=T.landingLocationType,L=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(ri(),{isOpen:I,onAfterOpen:function(){},onRequestClose:A,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{C(t)},onTouchEnd:t=>{const e=b(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,St.Wd)(P)+(0,St.gf)(L)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ui.Si)(w,ci.TB,ci.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const d=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(Ii,{stories:i[j()[d]],onBack:F,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[d]?k:0},"event-story-view-"+i[j()[d]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var zi=function(t){var e,i,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[m]=(0,v.QN)("whatmoreSecondaryColor"),g=t.event,w=(t.onBack,n.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(i=t.heightFactor)&&void 0!==i?i:1,C="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=j,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:C,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,qe.ij)(g)||(0,qe.Il)(g)?(0,f.jsx)(Ae.A,{height:"100%",width:"100%",url:g.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:g}):(0,f.jsx)(y._,{width:"full",height:"full",src:g.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+m+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:C,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Ei=function(t){var e,i,[a,d,h,p]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,C]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:b}=(0,n.useContext)(Ni),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)($.B),[E,T]=(0,n.useState)(!1),[N,A]=(0,n.useState)(null);function F(){T(!1)}t.events;const P=t.eventIndex,L=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){F(),setTimeout((()=>{L(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),b(W);const Q=_.landingLocationType,V=_.templateType;function M(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const H=parseInt(Math.min(5,O.length));return(0,f.jsx)(wi,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*H,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,i;A(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:H,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:H>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*H,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;y?C(!1):(w||j(!0),function(t){const e=(0,St.Wd)(Q)+(0,St.gf)(V)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);m||g||(async()=>{(0,l.lB)(t),(0,ui.Si)(I,ci.TB,ci.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(B.A,{onCloseCallback:L})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(Ii,{stories:t,onBack:W,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(zi,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ne.A,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Ti=(0,Si.A)({key:"whatmore-css-sv"}),Ni=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ai=function(t){var e,i,o;const[r,l,a]=(0,_e.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)($.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)($.B),u=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",C="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete Ci.Ay.styles.global,c?(0,f.jsx)(bi.C,{value:Ti,children:(0,f.jsx)(yi.s,{theme:Ci.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ni.Provider,{value:{isIOS:(0,Ke.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:C},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(Ei,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(_i,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(bi.C,{value:Ti,children:(0,f.jsx)(yi.s,{theme:Ci.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ni.Provider,{value:{isIOS:(0,Ke.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:C,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(mi,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(ji,{events:h,eventIndex:x,onBack:m})})})})}},5144:function(t,e,i){i.d(e,{jd:function(){return o},so:function(){return r}});var n=i(8283);const o=`\n ${n.i7`
77
77
  0% { transform: scale(1); }
78
78
  50%, { transform: scale(0.95); }
79
79
  100% { transform: scale(1); }
80
- `} 0.2s linear;\n`;n.i7`
80
+ `} 0.2s linear;\n`,r=(n.i7`
81
81
  100% {
82
82
  -webkit-transform: rotate(360deg);
83
83
  transform:rotate(360deg);
@@ -103,7 +103,17 @@
103
103
  100%{
104
104
  opacity: 0;
105
105
  }
106
- `},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return C}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(6710),u=i(140);var h=i(5144),p=i(4905),v=i(4217),x=i(1348),m=i(8149),g=i(4737),f=i(1351),w=i(6157),j=i(4414);function y(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,j.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,j.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,j.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,j.jsx)(l.o,{paddingX:"5px",children:(0,j.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var C=function(t){var e,i,a,C;const[b]=(0,s.QN)("whatmorePrimaryFont"),[S]=(0,s.QN)("isInDesignMode"),[k]=(0,s.QN)("isDemoBrand"),[I,_]=(0,s.QN)("appCartData"),[z]=(0,s.QN)("whatmoreShopId"),[E]=[(0,x.Wc_)(z)],T=(0,x.Wc_)(z),[N,A]=(0,d.useState)(!1),[F,P]=(0,d.useState)({state:"initial"}),[L,B]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:O}=(0,d.useContext)(v.EventClickComponentContext),{whatmoreWidgetSourceDetails:D}=(0,d.useContext)(g.B),R=t.event,W=t.product,Q=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){S||k||(async()=>{(0,u.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,m.M)(W,(0,x.NCy)(z),z);B({loaded:!0,client_product_id:W.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const M=null!==(i=t.width)&&void 0!==i?i:"fit-content",H=null!==(a=t.height)&&void 0!==a?a:"fit-content",U=(null!==(C=(0,x.FyB)(z))&&void 0!==C?C:2)+"px";return L.loaded?(0,j.jsx)("div",{style:{width:M,height:H},children:(0,j.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,j.jsx)(p.$,{type:"submit",className:(0,x.AJI)(z),sx:{width:M,height:H,minHeight:H},onClick:t=>{A(!0),V(R,W,1),(0,f.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:D,event:R,productList:[W],ctaList:R.cta}),null!==O&&setTimeout((()=>{O()}),2e3)},children:"initial"===F.state?(0,j.jsx)(c.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:H,width:M},children:(0,j.jsx)(n.az,{width:"100%",height:"100%",padding:U,boxShadow:"lg",borderRadius:"md",backgroundColor:T,borderColor:T,borderWidth:"1px",animation:N?h.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,j.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,j.jsx)(l.o,{children:(0,j.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*Q,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,x.Hfu)(z)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,j.jsx)(c.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:H,width:M},children:(0,j.jsx)(y,{event:R,product:W,baseFontSize:Q,cartState:F,width:M,height:H})})})})}):(0,j.jsx)(j.Fragment,{})}},5242:function(t,e,i){var n=i(3247),o=i(1422),r=i(3731),l=i(7239),a=i(5388),d=i(4414);e.A=function(t){var e,i=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(i);return u.name===a.A.LIVE.name?(0,d.jsx)(n.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(r.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(n.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(r.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},7239:function(t,e,i){var n=i(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",i=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==n.A.LIVE.name)return{status:n.A.LIVE,bannerText:" "+n.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==n.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+i+" "+l),function(t){var e=new Date,i=(t.getTime()-e.getTime())/1e3,o=i/60,r=o/60,l=r/24;return i<=0?{status:n.A.COMPLETED,bannerText:" "+n.A.COMPLETED.name+" ",timeToStartInMins:0}:i>=1&&i<=30?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" sec ",timeToStartInMins:i/60}:o<60?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:n.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:n.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:n.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},9541:function(t,e,i){var n=i(6086),o=i(3247),r=i(7642),l=i(3080),a=i(4414);e.A=function(t){const e=t.onCloseCallback,[i,d,s,c]=(0,l.A)(),u=.08*c;return(0,a.jsx)(n.o,{children:(0,a.jsx)(o.jl,{cursor:"pointer",children:(0,a.jsx)(r.A,{sx:{boxShadow:3,color:"white",fontSize:u,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e("close-button")}})})})}},3771:function(t,e,i){i.d(e,{A:function(){return j}});var n=i(9950),o=i(2039),r=i(6670),l=i(4217),a=i(16),d=i(9098),s=i(5830),c=i(1085),u=i(3294),h=i(1348),p=i(4033),v=(i(5410),i(4737)),x=i(6493),m=i(4414);function g(t){var e,i,o;const[l,d]=(0,r.A)(),[g,f]=(0,n.useState)(n.useRef()),w=t.posterImage,[j,y]=(0,s.QN)("whatmoreVideoPlayerPoolBlessed"),[C,b]=(0,n.useState)(!0),[S,k]=(0,n.useState)(!1),I=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,n.useContext)(v.B),z=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,E=null!==(i=t.height)&&void 0!==i?i:"100%",T=null!==(o=t.width)&&void 0!==o?o:"100%",N=(0,s.Xd)("whatmoreShopId");(0,n.useLayoutEffect)((()=>{if(g.current&&j)if(0==g.current.children.length){const i=(0,x.Cr)(t.url);(e=(0,c.Z4)(g.current,t.url,z||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",(()=>{b(!1)})),I&&e.addEventListener("timeupdate",(t=>{var i,n;e&&I(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(n=e.duration)&&void 0!==n?n:0)}))}else{var e;(e=g.current.children[0]).muted=z||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(N)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout((()=>{!t.isPlaying&&e.pause()}),(0,p.n)()?1900:800)))}}),[z,t.isPlaying,j,C]),(0,n.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.rq)(g.current)}),[]);const A=(0,s.Xd)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:T,height:E,overflow:"hidden",backgroundColor:_?(0,h.KVz)(N):(0,h.QSX)(N),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:C?"0px":"100%",height:C?"0px":_?(0,h.tbf)(N):(0,h.CBm)(N)&&"product"==A?"auto":(0,h.R7q)(N)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==N&&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:T,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:T,onLoad:()=>{k(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:T,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var f=function(t){var e;return(0,m.jsx)(g,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function w(t){var e,i,o;const[l,d]=(0,r.A)(),[c,g]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),j=t.setDuration,y=(0,n.useRef)(null),C=(0,s.Xd)("whatmoreShopId"),b=t.timeUpdateCallback,{whatmoreIsPreviewMode:S}=(0,n.useContext)(v.B),k=(0,s.Xd)("whatmoreLandingLocationType"),I=null!==(e=t.height)&&void 0!==e?e:"100%",_=null!==(i=t.width)&&void 0!==i?i:"100%",z=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,E=null===t||void 0===t?void 0:t.posterImage;return(0,n.useEffect)((()=>{y.current&&(t.isPlaying?y.current.paused&&y.current.play():y.current.pause(),b&&y.current.addEventListener("timeupdate",(t=>{var e,i;y.current&&b(null!==(e=y.current.currentTime)&&void 0!==e?e:0,null!==(i=y.current.duration)&&void 0!==i?i:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:_,height:I,overflow:"hidden",backgroundColor:S?(0,h.KVz)(C):(0,h.QSX)(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.tbf)(C):(0,h.CBm)(C)&&"product"==k?"auto":(0,h.R7q)(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:!(!z&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&y.current&&y.current.play(),(0,h.fwF)(C)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&y.current&&y.current.play(),setTimeout((()=>{!t.isPlaying&&y.current&&y.current.pause()}),(0,p.n)()?1900:800))},onLoadedMetadata:()=>{y.current&&j&&j(y.current.duration)},poster:"banner"==t.source?t.url:E,children:[(0,m.jsx)("source",{src:t.url,type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==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:E,style:{height:"100%",width:_,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,height:"100%",width:_,onLoad:()=>{w(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:_,height:I,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var j=function(t){var e,i,r,a;return(0,o.Il)(t.event)?(0,m.jsx)(d.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,n.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,m.jsx)(f,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(r=t.isVideoMuted)&&void 0!==r?r:null,source:t.source,posterImage:null===(a=t.event)||void 0===a?void 0:a.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,m.jsx)(w,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},1079:function(t,e,i){var n=i(6086),o=i(1422),r=i(8397),l=i(3731),a=(i(9950),i(3080)),d=i(5830),s=i(8283),c=i(1348),u=i(140),h=i(4414);s.i7`
106
+ `,`\n ${n.i7`
107
+ 0% {
108
+ transform: scale(0.3);
109
+ }
110
+ 70% {
111
+ transform: scale(1.05);
112
+ }
113
+ 100% {
114
+ transform: scale(1);
115
+ }
116
+ `} 0.3s ease-in-out;\n`)},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return C}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(6710),u=i(140);var h=i(5144),p=i(4905),v=i(4217),x=i(1348),m=i(8149),g=i(4737),f=i(1351),w=i(6157),j=i(4414);function y(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,j.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,j.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,j.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,j.jsx)(l.o,{paddingX:"5px",children:(0,j.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var C=function(t){var e,i,a,C;const[b]=(0,s.QN)("whatmorePrimaryFont"),[S]=(0,s.QN)("isInDesignMode"),[k]=(0,s.QN)("isDemoBrand"),[I,_]=(0,s.QN)("appCartData"),[z]=(0,s.QN)("whatmoreShopId"),[E]=[(0,x.Wc_)(z)],T=(0,x.Wc_)(z),[N,A]=(0,d.useState)(!1),[F,P]=(0,d.useState)({state:"initial"}),[L,B]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:O}=(0,d.useContext)(v.EventClickComponentContext),{whatmoreWidgetSourceDetails:D}=(0,d.useContext)(g.B),R=t.event,W=t.product,Q=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){S||k||(async()=>{(0,u.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,m.M)(W,(0,x.NCy)(z),z);B({loaded:!0,client_product_id:W.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const M=null!==(i=t.width)&&void 0!==i?i:"fit-content",H=null!==(a=t.height)&&void 0!==a?a:"fit-content",U=(null!==(C=(0,x.FyB)(z))&&void 0!==C?C:2)+"px";return L.loaded?(0,j.jsx)("div",{style:{width:M,height:H},children:(0,j.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,j.jsx)(p.$,{type:"submit",className:(0,x.AJI)(z),sx:{width:M,height:H,minHeight:H},onClick:t=>{A(!0),V(R,W,1),(0,f.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:D,event:R,productList:[W],ctaList:R.cta}),null!==O&&setTimeout((()=>{O()}),2e3)},children:"initial"===F.state?(0,j.jsx)(c.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:H,width:M},children:(0,j.jsx)(n.az,{width:"100%",height:"100%",padding:U,boxShadow:"lg",borderRadius:"md",backgroundColor:T,borderColor:T,borderWidth:"1px",animation:N?h.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,j.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,j.jsx)(l.o,{children:(0,j.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*Q,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,x.Hfu)(z)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,j.jsx)(c.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:H,width:M},children:(0,j.jsx)(y,{event:R,product:W,baseFontSize:Q,cartState:F,width:M,height:H})})})})}):(0,j.jsx)(j.Fragment,{})}},5242:function(t,e,i){var n=i(3247),o=i(1422),r=i(3731),l=i(7239),a=i(5388),d=i(4414);e.A=function(t){var e,i=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(i);return u.name===a.A.LIVE.name?(0,d.jsx)(n.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(r.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(n.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(r.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},7239:function(t,e,i){var n=i(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",i=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==n.A.LIVE.name)return{status:n.A.LIVE,bannerText:" "+n.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==n.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+i+" "+l),function(t){var e=new Date,i=(t.getTime()-e.getTime())/1e3,o=i/60,r=o/60,l=r/24;return i<=0?{status:n.A.COMPLETED,bannerText:" "+n.A.COMPLETED.name+" ",timeToStartInMins:0}:i>=1&&i<=30?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" sec ",timeToStartInMins:i/60}:o<60?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:n.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:n.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:n.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},9541:function(t,e,i){var n=i(6086),o=i(3247),r=i(7642),l=i(3080),a=i(4414);e.A=function(t){const e=t.onCloseCallback,[i,d,s,c]=(0,l.A)(),u=.08*c;return(0,a.jsx)(n.o,{children:(0,a.jsx)(o.jl,{cursor:"pointer",children:(0,a.jsx)(r.A,{sx:{boxShadow:3,color:"white",fontSize:u,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e("close-button")}})})})}},3771:function(t,e,i){i.d(e,{A:function(){return j}});var n=i(9950),o=i(2039),r=i(6670),l=i(4217),a=i(16),d=i(9098),s=i(5830),c=i(1085),u=i(3294),h=i(1348),p=i(4033),v=(i(5410),i(4737)),x=i(6493),m=i(4414);function g(t){var e,i,o;const[l,d]=(0,r.A)(),[g,f]=(0,n.useState)(n.useRef()),w=t.posterImage,[j,y]=(0,s.QN)("whatmoreVideoPlayerPoolBlessed"),[C,b]=(0,n.useState)(!0),[S,k]=(0,n.useState)(!1),I=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,n.useContext)(v.B),z=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,E=null!==(i=t.height)&&void 0!==i?i:"100%",T=null!==(o=t.width)&&void 0!==o?o:"100%",N=(0,s.Xd)("whatmoreShopId");(0,n.useLayoutEffect)((()=>{if(g.current&&j)if(0==g.current.children.length){const i=(0,x.Cr)(t.url);(e=(0,c.Z4)(g.current,t.url,z||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",(()=>{b(!1)})),I&&e.addEventListener("timeupdate",(t=>{var i,n;e&&I(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(n=e.duration)&&void 0!==n?n:0)}))}else{var e;(e=g.current.children[0]).muted=z||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(N)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout((()=>{!t.isPlaying&&e.pause()}),(0,p.n)()?1900:800)))}}),[z,t.isPlaying,j,C]),(0,n.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.rq)(g.current)}),[]);const A=(0,s.Xd)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:T,height:E,overflow:"hidden",backgroundColor:_?(0,h.KVz)(N):(0,h.QSX)(N),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:C?"0px":"100%",height:C?"0px":_?(0,h.tbf)(N):(0,h.CBm)(N)&&"product"==A?"auto":(0,h.R7q)(N)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==N&&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:T,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:T,onLoad:()=>{k(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:T,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var f=function(t){var e;return(0,m.jsx)(g,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function w(t){var e,i,o;const[l,d]=(0,r.A)(),[c,g]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),j=t.setDuration,y=(0,n.useRef)(null),C=(0,s.Xd)("whatmoreShopId"),b=t.timeUpdateCallback,{whatmoreIsPreviewMode:S}=(0,n.useContext)(v.B),k=(0,s.Xd)("whatmoreLandingLocationType"),I=null!==(e=t.height)&&void 0!==e?e:"100%",_=null!==(i=t.width)&&void 0!==i?i:"100%",z=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,E=null===t||void 0===t?void 0:t.posterImage;return(0,n.useEffect)((()=>{y.current&&(t.isPlaying?y.current.paused&&y.current.play():y.current.pause(),b&&y.current.addEventListener("timeupdate",(t=>{var e,i;y.current&&b(null!==(e=y.current.currentTime)&&void 0!==e?e:0,null!==(i=y.current.duration)&&void 0!==i?i:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:_,height:I,overflow:"hidden",backgroundColor:S?(0,h.KVz)(C):(0,h.QSX)(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.tbf)(C):(0,h.CBm)(C)&&"product"==k?"auto":(0,h.R7q)(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:!(!z&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&y.current&&y.current.play(),(0,h.fwF)(C)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&y.current&&y.current.play(),setTimeout((()=>{!t.isPlaying&&y.current&&y.current.pause()}),(0,p.n)()?1900:800))},onLoadedMetadata:()=>{y.current&&j&&j(y.current.duration)},poster:"banner"==t.source?t.url:E,children:[(0,m.jsx)("source",{src:t.url,type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==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:E,style:{height:"100%",width:_,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,height:"100%",width:_,onLoad:()=>{w(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:_,height:I,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var j=function(t){var e,i,r,a;return(0,o.Il)(t.event)?(0,m.jsx)(d.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,n.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,m.jsx)(f,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(r=t.isVideoMuted)&&void 0!==r?r:null,source:t.source,posterImage:null===(a=t.event)||void 0===a?void 0:a.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,m.jsx)(w,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},1079:function(t,e,i){var n=i(6086),o=i(1422),r=i(8397),l=i(3731),a=(i(9950),i(3080)),d=i(5830),s=i(8283),c=i(1348),u=i(140),h=i(4414);s.i7`
107
117
  0% {
108
118
  opacity: 0;
109
119
  }