whatmore-react-assets 1.0.1449 → 1.0.1450

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.
Files changed (116) hide show
  1. package/package.json +1 -1
  2. package/static/css/987.abebe2fc.chunk.css +1 -0
  3. package/static/css/atc-with-form.1c72edff.chunk.css +1 -0
  4. package/static/css/banner-template-a.9ac5b44a.chunk.css +2 -0
  5. package/static/css/carousel-template-a.b1f03ac1.chunk.css +2 -0
  6. package/static/css/carousel-template-b.3985fd8e.chunk.css +2 -0
  7. package/static/css/carousel-template-f.ce8430d7.chunk.css +2 -0
  8. package/static/css/carousel-template-feed.8d10f88a.chunk.css +2 -0
  9. package/static/css/carousel-template-g.b1f03ac1.chunk.css +2 -0
  10. package/static/css/carousel-template-h.b1f03ac1.chunk.css +2 -0
  11. package/static/css/carousel-template-view-more.8d10f88a.chunk.css +2 -0
  12. package/static/css/collections-template-a.7832e286.chunk.css +2 -0
  13. package/static/css/collections-template-b.7832e286.chunk.css +2 -0
  14. package/static/css/collections-template-c.7832e286.chunk.css +2 -0
  15. package/static/css/collections-template-stories.7832e286.chunk.css +2 -0
  16. package/static/css/event-click-main.5bc7198f.chunk.css +2 -0
  17. package/static/css/event-click-product.1c72edff.chunk.css +1 -0
  18. package/static/css/event-click-spotlight.1c72edff.chunk.css +1 -0
  19. package/static/css/product-page-view.422de01a.chunk.css +2 -0
  20. package/static/css/spotlight-view.422de01a.chunk.css +2 -0
  21. package/static/css/stories-template-a.623e32e0.chunk.css +2 -0
  22. package/static/js/181.ae45babf.chunk.js +2 -0
  23. package/static/js/286.4d801177.chunk.js +1 -0
  24. package/static/js/296.8b17f2e2.chunk.js +1 -0
  25. package/static/js/304.060b3c71.chunk.js +280 -0
  26. package/static/js/437.6c7b5bca.chunk.js +1 -0
  27. package/static/js/461.76d9795a.chunk.js +1 -0
  28. package/static/js/526.2e97b4aa.chunk.js +2 -0
  29. package/static/js/572.7984eafa.chunk.js +1 -0
  30. package/static/js/620.b645a80c.chunk.js +1 -0
  31. package/static/js/650.7a6ad725.chunk.js +117 -0
  32. package/static/js/669.a5c1a7db.chunk.js +2 -0
  33. package/static/js/879.131b69f6.chunk.js +1 -0
  34. package/static/js/920.6507a026.chunk.js +1 -0
  35. package/static/js/946.5885b1f0.chunk.js +1 -0
  36. package/static/js/app-main.4a9303d5.chunk.js +1 -0
  37. package/static/js/atc-with-form.43621d03.chunk.js +1 -0
  38. package/static/js/banner-template-a.e2ea7c8f.chunk.js +1 -0
  39. package/static/js/carousel-template-a.40ccafa9.chunk.js +1 -0
  40. package/static/js/carousel-template-b.536fc0f5.chunk.js +1 -0
  41. package/static/js/carousel-template-f.b7d45564.chunk.js +2 -0
  42. package/static/js/carousel-template-feed.6bac61c5.chunk.js +15 -0
  43. package/static/js/carousel-template-g.58121a79.chunk.js +1 -0
  44. package/static/js/carousel-template-h.6e83509a.chunk.js +2 -0
  45. package/static/js/carousel-template-view-more.6a1e1875.chunk.js +45 -0
  46. package/static/js/collections-template-a.722a5fec.chunk.js +1 -0
  47. package/static/js/collections-template-b.44cba013.chunk.js +1 -0
  48. package/static/js/collections-template-c.575eb1ab.chunk.js +1 -0
  49. package/static/js/collections-template-stories.cf84874a.chunk.js +1 -0
  50. package/static/js/event-click-main.a880a7a6.chunk.js +1 -0
  51. package/static/js/event-click-product.f1e377bf.chunk.js +1 -0
  52. package/static/js/event-click-spotlight.5e530de0.chunk.js +1 -0
  53. package/static/js/homepage-carousel-view.cc4474ca.chunk.js +1 -0
  54. package/static/js/{location-details.c0431f85.chunk.js → location-details.b14d3704.chunk.js} +1 -1
  55. package/static/js/product-page-view.7701b35a.chunk.js +1 -0
  56. package/static/js/recommended-carousel.94155784.chunk.js +1 -0
  57. package/static/js/spotlight-view.d4904c63.chunk.js +1 -0
  58. package/static/js/stories-template-a.06ace210.chunk.js +1 -0
  59. package/whatmore.js +2 -2
  60. package/static/css/926.36fbef9a.chunk.css +0 -1
  61. package/static/css/atc-with-form.4dd2fc0f.chunk.css +0 -1
  62. package/static/css/banner-template-a.f657b056.chunk.css +0 -2
  63. package/static/css/carousel-template-a.eb268035.chunk.css +0 -2
  64. package/static/css/carousel-template-b.37c2261b.chunk.css +0 -2
  65. package/static/css/carousel-template-f.2b8a75c8.chunk.css +0 -2
  66. package/static/css/carousel-template-feed.86cd998f.chunk.css +0 -2
  67. package/static/css/carousel-template-g.eb268035.chunk.css +0 -2
  68. package/static/css/carousel-template-h.eb268035.chunk.css +0 -2
  69. package/static/css/carousel-template-view-more.86cd998f.chunk.css +0 -2
  70. package/static/css/collections-template-a.0e6b0d05.chunk.css +0 -2
  71. package/static/css/collections-template-b.0e6b0d05.chunk.css +0 -2
  72. package/static/css/collections-template-c.0e6b0d05.chunk.css +0 -2
  73. package/static/css/collections-template-stories.0e6b0d05.chunk.css +0 -2
  74. package/static/css/event-click-main.6cd2ba85.chunk.css +0 -2
  75. package/static/css/event-click-product.4dd2fc0f.chunk.css +0 -1
  76. package/static/css/event-click-spotlight.4dd2fc0f.chunk.css +0 -1
  77. package/static/css/product-page-view.16c8c538.chunk.css +0 -2
  78. package/static/css/spotlight-view.16c8c538.chunk.css +0 -2
  79. package/static/css/stories-template-a.9684dc79.chunk.css +0 -2
  80. package/static/js/13.f1f86e40.chunk.js +0 -1
  81. package/static/js/154.83ea321c.chunk.js +0 -2
  82. package/static/js/210.e86cb1a7.chunk.js +0 -1
  83. package/static/js/219.cd528196.chunk.js +0 -1
  84. package/static/js/240.b51848e0.chunk.js +0 -2
  85. package/static/js/302.41f7dffe.chunk.js +0 -1
  86. package/static/js/348.89ff1a59.chunk.js +0 -1
  87. package/static/js/423.4d5ac85a.chunk.js +0 -1
  88. package/static/js/561.95fd0242.chunk.js +0 -1
  89. package/static/js/576.4ab6f670.chunk.js +0 -1
  90. package/static/js/731.4a524607.chunk.js +0 -1
  91. package/static/js/733.776b3238.chunk.js +0 -1
  92. package/static/js/751.372e1b41.chunk.js +0 -1
  93. package/static/js/819.0610382e.chunk.js +0 -2
  94. package/static/js/824.9f0c1e9c.chunk.js +0 -2
  95. package/static/js/app-main.26ba03f8.chunk.js +0 -1
  96. package/static/js/atc-with-form.c6e794f2.chunk.js +0 -1
  97. package/static/js/banner-template-a.dfc3c5b2.chunk.js +0 -1
  98. package/static/js/carousel-template-a.8adab1fb.chunk.js +0 -1
  99. package/static/js/carousel-template-b.2cee20ff.chunk.js +0 -1
  100. package/static/js/carousel-template-f.82ad4b56.chunk.js +0 -1
  101. package/static/js/carousel-template-feed.71618185.chunk.js +0 -1
  102. package/static/js/carousel-template-g.0ad5f5d7.chunk.js +0 -1
  103. package/static/js/carousel-template-h.f6884ddc.chunk.js +0 -1
  104. package/static/js/carousel-template-view-more.ef4c224a.chunk.js +0 -1
  105. package/static/js/collections-template-a.d79da3e9.chunk.js +0 -1
  106. package/static/js/collections-template-b.d191151d.chunk.js +0 -1
  107. package/static/js/collections-template-c.6aadef97.chunk.js +0 -1
  108. package/static/js/collections-template-stories.9696a048.chunk.js +0 -1
  109. package/static/js/event-click-main.e9e26fc2.chunk.js +0 -1
  110. package/static/js/event-click-product.60b5a8fa.chunk.js +0 -1
  111. package/static/js/event-click-spotlight.929fb915.chunk.js +0 -1
  112. package/static/js/homepage-carousel-view.3d894757.chunk.js +0 -1
  113. package/static/js/product-page-view.52ba9dc6.chunk.js +0 -1
  114. package/static/js/recommended-carousel.dc3caff3.chunk.js +0 -2
  115. package/static/js/spotlight-view.253d4fad.chunk.js +0 -1
  116. package/static/js/stories-template-a.69cd6742.chunk.js +0 -1
@@ -0,0 +1,117 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[650],{8650:function(t,e,i){i.r(e),i.d(e,{EventClickComponentContext:function(){return Ei},default:function(){return Ti}});var n=i(9950),o=i(9946),r=i(9094),l=i(140),a=i(5388),d=i(7239),s=i(6086),c=i(3247),u=i(1422),h=i(2576),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),b=i(4895),C=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)(C.A,{sx:{color:"white",fontSize:1.2*a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{d()}}):(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()}})})})},I=i(677),_=i(645),z=i(8283);const E=`${z.i7`
2
+ 0%,10%,15% {
3
+ opacity: 0;
4
+ }
5
+ 25%{
6
+ opacity: 0.25;
7
+ transform: translateY(-25%);
8
+ }
9
+ 50%{
10
+ opacity: 0.5;
11
+ transform: translateY(0%);
12
+ }
13
+ 75% {
14
+ opacity: 0.75;
15
+ transform: translateY(-8%)
16
+ }
17
+ 100%{
18
+ opacity: 1;
19
+ transform: translateY(0%)
20
+ }
21
+ `} 0.5s linear`,T=`\n ${z.i7`
22
+ 30% { transform: scale(1.2); }
23
+ 40%, 60% { transform: rotate(-20deg) scale(1.2); }
24
+ 50% { transform: rotate(20deg) scale(1.2); }
25
+ 70% { transform: rotate(0deg) scale(1.2); }
26
+ 100% { transform: scale(1); }
27
+ `} 1.5s linear;\n`;z.i7`
28
+ 3% { transform: scale(1.2); }
29
+ 4%, 6% { transform: rotate(-20deg) scale(1.2); }
30
+ 5%,7% { transform: rotate(20deg) scale(1.2); }
31
+ 8% { transform: rotate(0deg) scale(1.2); }
32
+ 10% { transform: scale(1); }
33
+ `,z.i7`
34
+ 0% { transform: scale(1); }
35
+ 10% { transform: scale(1.2); }
36
+ 20% { transform: scale(1); }
37
+ `;var N=i(8544);const F=`\n ${z.i7`
38
+ 0% {
39
+ opacity: 0;
40
+ }
41
+ 10%{
42
+ opacity: 0.5;
43
+ }
44
+ 20%{
45
+ opacity: 1;
46
+ }
47
+
48
+ `} 3s ease-in-out;\n`;function A(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 b=.24,C=.024;var S=r*b+"px",k=r*b+"px",_=r*C*1.5+"px",z=r*C+"px",T=r*C*1.5+"px";if(void 0==m.products||0==m.products.length)return(0,f.jsx)(f.Fragment,{});var A=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:A[a].thumbnail_image,objectFit:"cover",sx:{objectFit:(0,p.KZe)(h)+" !important"},borderRadius:"lg",animation:F},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)(A,{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)(Ei),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,b=`${z.i7`
49
+ 0% {
50
+ transform: translateY(0%) rotate(0deg);
51
+ }
52
+ 50% {
53
+ transform: translateY(-100%) translateX(+10%) rotate(+30deg);
54
+ }
55
+ 100% {
56
+ transform: translateY(0%) rotate(0deg);
57
+ }
58
+ `} infinite 1.5s linear`,C=`${z.i7`
59
+ 0% {
60
+ transform: translateY(0%) rotate(0deg);
61
+ }
62
+ 50% {
63
+ transform: translateX(30%) translateY(20%) rotate(-30deg);
64
+ }
65
+ 100% {
66
+ transform: translateY(0%) rotate(0deg);
67
+ }
68
+ `} infinite 1.5s linear`;return(0,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?b:C,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),q=i(4737);var $=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),b=t.product,C=t.event,{whatmoreWidgetSourceDetails:S}=(0,n.useContext)(q.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})})()}(C,b),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}(b)},_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,r):(pt||vt||(async()=>{(0,ct.Fu)(o,r,l,a,d)})(),(0,ut.It)(t,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)(Ei),{whatmoreUserInfo:h}=(0,n.useContext)(q.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){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,n){const d=function(t){const e=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",x.cart_count);f("atcApiCallInProgress",null);xt(d,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=>(function(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}(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,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=function(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}(e);s(n),function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)||i?!function(){if(c.current&&c.current.length>=1)return c.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},j,function(t){var e,i,n,r;const l=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 bt=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[b,C]=(0,n.useState)([w(l[0]),w(l[1]),w(l[2])]);return(0,n.useEffect)((()=>{p(b)}),[b]),(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===b||void 0===b?void 0:b[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)C([b[0],b[1],t]);else if(1==e){var i,n;C([b[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;C([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===b[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===b[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===b[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===b[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)}))})},Ct=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"),[b]=(0,v.QN)("whatmorePrimaryFont"),[C]=(0,v.QN)("whatmoreShopId"),[S,k,I,_]=(0,x.A)(),[z,E]=(0,n.useState)(!1),[T,N]=(0,n.useState)(t.product),F=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,n.useContext)(q.B),[P,L,B,O,D,R,W]=ft(0,T,t.event),[Q,V]=(0,n.useState)(null),[$,J]=(0,n.useState)(parseFloat(T.price)),[tt,it]=(0,n.useState)(parseFloat(T.compare_price)),[ot,rt]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[lt,at]=(0,n.useState)(T.currency),[dt,ct]=(0,n.useState)(null),ut=t.event,ht=t.productClickHandler,{whatmoreIsPreviewMode:pt}=(0,n.useContext)(q.B),[vt,xt]=(0,n.useState)(null),[mt,gt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,p.w4b)(C)&&(0,Ct.ck)(T,(0,p.NCy)(C),C).then((t=>{N(t),J(parseFloat(t.price)),it(parseFloat(t.compare_price)),at(t.currency),gt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,m.M)(T,(0,p.NCy)(C),C);ct(l),J("61916709004"==C&&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),it("61916709004"==C&&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),gt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=dt?null===dt||void 0===dt||null===(t=dt.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===dt||void 0===dt||null===(e=dt.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===dt||void 0===dt||null===(r=dt.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));xt({position:i,finalArr:n,finalArrExternal:o})}),[dt]);var wt=.68*_,jt=.55*wt,kt=.4*wt,It=wt*(.55-.4),_t=wt+"px",zt=kt+"px",Et=It+"px",Tt=.12*kt;const Nt=(0,p.XQu)(C);function Ft(){window.location.href=function(t){return(0,p.BLb)(C)?t.product_link+"?"+(0,p.VCz)(C)+"&"+(0,p.Spk)(C)+"&"+(0,p.$lz)(C):t.product_link}(T)}const At=A.landingLocationType,Pt=A.templateType,Lt=(0,St.Wd)(At)+(0,St.gf)(Pt)+(null!==ut&&void 0!==ut&&ut.isRelatedEvent?"R":"E")+"_"+(null===ut||void 0===ut?void 0:ut.event_id);return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(C),width:_t,height:"fit-content",boxShadow:"round"==F?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==C?Ft():ht(e),E(!0)}(ut,T)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(C)),animation:z?M.jd:null,borderRadius:"round"==F?"xl":null,overflow:"hidden",onAnimationEnd:()=>{E(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(C),borderColor:(0,p.Fwt)(C)},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:zt,width:zt,children:(0,f.jsx)(y._,{className:"product-tile-image",width:zt,height:zt,src:(0,yt.b)(null!==(e=null!==(i=null===vt||void 0===vt||null===(o=vt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===Q||void 0===Q?void 0:Q[null===vt||void 0===vt?void 0:vt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===vt||void 0===vt||null===(a=vt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===Q||void 0===Q?void 0:Q[null===vt||void 0===vt?void 0:vt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(C)+" !important"}})}),(0,f.jsxs)(c.az,{height:zt,width:wt-kt+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(C)?"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","black","important"),t.style.setProperty("font-size",1.1*Tt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",b,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,G.v)(ot,"prod-tile")}),(0,p.Nzx)(C)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==F?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[mt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Tt*(0,p.rh$)(C)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==$&&void 0!==$?$:null===T||void 0===T?void 0:T.price,"",C,lt)," \xa0"]}),(0,Z.P)($,tt)&&mt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Tt*(0,p.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==tt&&void 0!==tt?tt:null===T||void 0===T?void 0:T.compare_price,"",C,lt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.E,{fontSize:.82*Tt*(0,p.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:b+" !important",color:(0,p.Br1)(C)+" !important"},children:pt?(0,p.p6A)(C):(0,p.i2h)(C)})]}),(0,p.UlM)(C)?(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"==F?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(C)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:g},sx:{bg:g},children:(0,f.jsx)(j.E,{color:"white",paddingX:"6px",fontSize:.8*Tt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)(K.A,{sx:{color:g,fontSize:1.3*Tt+"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!=B?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*jt+"px",marginBottom:.1*jt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:jt*Nt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:_t,height:"fit-content",event:ut,product:T,finalArr:vt,data:dt,productVariantOptions:B,baseFontSize:1.2*Tt,onOptionSelected:t=>{!function(t){V(t);const e=R(t);e&&(J(e.price),it(e.compare_price),e.title.includes(" ")&&rt(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Et,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(st,{baseFontSize:.3*It,setProductVariantTitle:rt,product:T,cartState:P.state,cartCount:P.cart_count,updateCartState:L,onClickAtc:t=>{"init"==P.state?(O(Lt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:ut,productList:[T],ctaList:ut.cta})):"awaitingVariantSelection"==P.state&&(D(Q,Lt),rt(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{W()}})})]})},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,b=null!==(e=t.baseFontSize)&&void 0!==e?e:10,C=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:C,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*b,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*b}})})]})})})},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 Ft=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)(),[b,C]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)(q.B),[_,z,E,T,N,F,A]=ft(0,S,t.event),[P,L]=(0,n.useState)(null),[B,O]=(0,n.useState)(parseFloat(S.price)),[D,R]=(0,n.useState)(parseFloat(S.compare_price)),[W,Q]=(0,n.useState)(S.currency),[V,H]=(0,n.useState)(!1),$=t.event,K=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,tt=I.landingLocationType,it=I.templateType,nt=(0,St.Wd)(tt)+(0,St.gf)(it)+(null!==$&&void 0!==$&&$.isRelatedEvent?"R":"E")+"_"+(null===$||void 0===$?void 0:$.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(a)&&(0,Ct.ck)(S,(0,p.NCy)(a),a).then((t=>{k(t),O(parseFloat(t.price)),R(parseFloat(t.compare_price)),Q(t.currency)}));(async()=>{const t=await(0,m.M)(S,(0,p.NCy)(a),a);O(null===t||void 0===t?void 0:t.price),R(null===t||void 0===t?void 0:t.compare_at_price),H(!0)})()}),[]);var ot=w*J,rt=.3*ot,lt=ot+"px",at=.7*rt,dt=.9*at,ct=.12*rt;const ut=(0,p.XQu)(a);function ht(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),C(!0)}return(0,f.jsx)(u.B,{direction:"row",width:lt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:U,marginBottom:(0,p.qw1)(a),width:lt,onClick:t=>{},animation:b?M.jd:null,borderRadius:"lg",onAnimationEnd:()=>{C(!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:()=>{ht($,S)},children:[(0,f.jsx)(c.az,{height:at+"px",width:at+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:dt+"px",width:dt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(y._,{width:dt+"px",height:dt+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:at+"px",width:ot-at+"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*ct+"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:[V&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:1*ct+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==B&&void 0!==B?B:null===S||void 0===S?void 0:S.price,"",a,W)," \xa0"]}),(0,f.jsx)(s.o,{children:(0,Z.P)(S.price,S.compare_price)&&V?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.8*ct+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==D&&void 0!==D?D:null===S||void 0===S?void 0:S.compare_price,"",a,W)]}):(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*ct,fontColor:"white"})})]})]})})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==_.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==_.state&&null!=E?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*rt+"px",marginBottom:.1*rt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:rt*ut+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:lt,height:"fit-content",event:$,product:S,productVariantOptions:E,baseFontSize:1*ct,onOptionSelected:t=>{!function(t){L(t);const e=F(t);e&&(O(e.price),R(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*ct,event:$,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*ct,event:$,product:S,borderRadius:"md",onShopNowClick:t=>{ht($,S)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(a)?(0,f.jsx)(Et.default,{baseFontSize:.8*ct,event:$,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(st,{baseFontSize:.8*ct,event:$,product:S,cartState:_.state,cartCount:_.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==_.state?(T(nt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:$,productList:[S],ctaList:$.cta})):"awaitingVariantSelection"==_.state&&N(P,nt)},onCartIconClick:()=>{A()}})})})]})]})})})};var At=function(t){var e,i,o,r,a,d,s,h,g,w;const[b]=(0,v.QN)("isInDesignMode"),[C]=(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)(),[F,A]=(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)),[$,J]=(0,n.useState)(P.currency),tt=t.event,[et,it]=(0,n.useState)();(0,n.useEffect)((()=>{(0,p.w4b)(_)&&(0,Ct.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)(q.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){b||C||(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})})(),A(!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:F?M.jd:null,borderRadius:"round"==B?"xl":null,overflow:"hidden",onAnimationEnd:()=>{A(!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,Ct.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),"",_,$)," \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,Ct.Sb)(null!==(w=null===et||void 0===et?void 0:et.compare_at_price)&&void 0!==w?w: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"),[b,C,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)(q.B),[F,A,P,L,B,O,D]=ft(0,z,t.event),[R,W]=(0,n.useState)(null),[Q,V]=(0,n.useState)(parseFloat(z.price)),[$,K]=(0,n.useState)(parseFloat(z.compare_price)),[J,tt]=(0,n.useState)(z.currency),[et,it]=(0,n.useState)(null),nt=t.event,ot=t.productClickHandler,[rt,lt]=(0,n.useState)(null),[at,dt]=(0,n.useState)(!1),st=N.landingLocationType,ct=N.templateType,ut=(0,St.Wd)(st)+(0,St.gf)(ct)+"_"+(null===nt||void 0===nt?void 0:nt.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(w)&&(0,Ct.ck)(z,(0,p.NCy)(w),w).then((t=>{E(t),V(parseFloat(t.price)),K(parseFloat(t.compare_price)),tt(t.currency),dt(!0)}));(async()=>{const t=await(0,m.M)(z,(0,p.NCy)(w),w);it(t),V(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),dt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=et?null===et||void 0===et||null===(t=et.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===et||void 0===et||null===(e=et.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===et||void 0===et||null===(r=et.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));lt({position:i,finalArr:n,finalArrExternal:o})}),[et]);var ht=.72*k,pt=.37*ht,vt=ht*(.48-.37),xt=.95*ht+"px",mt=pt+"px",gt=.12*pt;function wt(){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:xt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?wt():ot(e),_(!0)}(nt,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:mt,width:mt,children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===rt||void 0===rt||null===(o=rt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===rt||void 0===rt||null===(a=rt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.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:mt,width:ht-pt+"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",gt+"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*gt+"px"},children:[at&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:g+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,Ct.Sb)(null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,J)," \xa0"]}),(0,Z.P)(Q,$)&&at?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(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,Ct.Sb)(null!==$&&void 0!==$?$:null===z||void 0===z?void 0:z.compare_price,"",w,J)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(Dt,{baseFontSize:.3*vt,event:nt,product:z,cartState:F.state,cartCount:F.cart_count,updateCartState:A,onClickAtc:t=>{"init"===F.state?(L(ut,!0),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:nt,productList:[z],ctaList:nt.cta})):"awaitingVariantSelection"===F.state&&ot(z)},onCartIconClick:t=>{D()}})]})})]})})};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)(At,{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}):"broad-tile-no-cta"==n?(0,f.jsx)(At,{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)($,{product:t.product,event:t.event}):"narrow-tile"==n?(0,f.jsx)(Ft,{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){const[e,i,n,l]=(0,x.A)(),[a]=(0,v.QN)("whatmoreShopId"),d=(0,v.Xd)("isInDesignMode"),h=(0,v.Xd)("isDemoBrand"),m=t.event,g=t.productClickHandler,w=(0,p.Vpi)(a);if(!(0,Vt.Z_)(m))return(0,f.jsx)(f.Fragment,{});if(1==m.products.length&&(void 0==m.cta||0==m.cta.length)){const t=m.products[0];return(0,p.uJl)(a)?(0,f.jsx)(u.B,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!d&&!h,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(Ft,{event:m,product:t,productClickHandler:g},m.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==w?"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:m,productList:[t],triggerFlag:!d&&!h,children:(0,f.jsx)(Wt,{event:m,product:t,productClickHandler:g},m.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:l+"px",backgroundImage:"narrow-tile"==w?"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==m.products.length?1:1.4,initialSlide:m.products.length<=2||(0,p.TYM)(a)?0:1,centeredSlides:!(0,p.TYM)(a),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[m.products[0]]:m.products).map((t=>("oos"!=t.product_status||(0,p.$7F)(a))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!d&&!h,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Wt,{event:m,product:t,productClickHandler:g},m.event_id+t.product_id)})})},m.event_id+t.product_id))),(0,p.Woi)(a)&&void 0!=m.cta&&m.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},m.event_id+t.cta_id)})},m.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)(Ei).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)(Ei),[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",{})]})]})})},qt=i(7642);function $t(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
+ 0% {
70
+ transform: translateY(100%);
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)(qt.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"),[b]=(0,v.QN)("websiteLanguage"),C=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)(q.B),[I,_]=(0,n.useState)(!1),{closeClickComponent:z}=(0,n.useContext)(Ei),[E,N]=(0,n.useState)(!1),F=t.FONT_SIZE,A=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,$=(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===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id,O,(0,p.NCy)(g),g,$,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(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.2) 0px 4px 6px -2px",position:t.position,bg:"27951333450"==g?"#fff":"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*F,children:[" ",V?(0,f.jsx)(nt.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==C?"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*F,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(nt.$,{width:"fit-content",height:2.5*F,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===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void _(!1);xt(n,O,(0,p.NCy)(g),g,P,B,$,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"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(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:F+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===ot||void 0===ot||null===(i=ot[b])||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===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*F,width:"90%",fontSize:F,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:(0,p.naM)(g)?(0,f.jsx)(nt.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"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:F,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===ot||void 0===ot||null===(d=ot[b])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})}):(0,f.jsx)(nt.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,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"==C?"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:F+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===ot||void 0===ot||null===(h=ot[b])||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*F}})})}):(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*F}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*F,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*F+"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%",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 !important",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 !important",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,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(u.B,{children:(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black !important",fontFamily:i+" !important"},children:"Description"})}),(0,f.jsx)(u.B,{children:(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,Ct.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 b=(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})(),C=b&&0!=b&&b>u?Math.round((b-u)/b*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(jt.s,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsx)(_t.N,{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),color:"white",width:"fit-content",children:(0,f.jsxs)(jt.s,{sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:d,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:r+" !important"},as:"b",children:"STRDOIDF6O7"==l&&null!==(e=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:[b&&b>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,Ct.Sb)(parseFloat(b)," ",l,i.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*d,fontWeight:"semibold !important",sx:{color:"black !important",fontFamily:r+" !important"},children:(0,Ct.Sb)(parseFloat(u),"",l,i.currency,!0)}),!isNaN(C)&&0!=C&&(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)?`${C}% off`:`Save ${(0,Ct.Sb)(parseFloat(b/100-u/100)," ",l,i.currency)}`})})]})]})})}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.Xd)("whatmoreSecondaryColorShade300"),h=t.setSelectedColor,x=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,g=t.selectOptionThirdHandler,w=t.isVariantAvailable,b=t.FONT_SIZE,C=t.data,S=(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===C||void 0===C||null===(n=C.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===C||void 0===C||null===(r=C.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===C||void 0===C||null===(n=C.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===C||void 0===C||null===(o=C.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===C||void 0===C||null===(l=C.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===C||void 0===C||null===(d=C.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===C||void 0===C||null===(c=C.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===C||void 0===C||null===(e=C.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===C||void 0===C||null===(n=C.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===C||void 0===C||null===(e=C.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===C||void 0===C||null===(r=C.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===C||void 0===C||null===(a=C.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===C||void 0===C||null===(e=C.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===C||void 0===C||null===(s=C.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===C||void 0===C||null===(u=C.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===C||void 0===C||null===(e=C.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===C||void 0===C||null===(e=C.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(jt.s,{direction:"column",width:"100%",gap:"4px",children:null===C||void 0===C||null===(i=C.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,k,I,_;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===C||void 0===C||null===(k=C.options)||void 0===k?void 0:k.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(jt.s,{justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*b+"px !important",sx:{color:"black !important",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,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===(I=e.values)||void 0===I?void 0:I.map((n=>{var l,d,s,v,k,I,_,z,E;const T=w(n,i),N=0==i||C.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&e.name.toLowerCase().includes("color"))&&N&&((null===t||void 0===t||null===(l=t.finalArr)||void 0===l?void 0:l.length)>0&&(null===t||void 0===t||null===(d=t.finalArr)||void 0===d||!d.includes(null))||(null===t||void 0===t||null===(s=t.finalArrExternal)||void 0===s?void 0:s.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:()=>{S(null===e||void 0===e?void 0:e.name,n,i),h(n),0===i&&x(n),1===i&&m(n),2===i&&g(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,yt.b)(null!==(v=null===t||void 0===t||null===(k=t.finalArr)||void 0===k||null===(I=k.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===I?void 0:I.src)&&void 0!==v?v:null===t||void 0===t||null===(_=t.finalArrExternal)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.optionsrc,"?width=400&height=400")})})},n)}):N&&(0,f.jsx)(jt.s,{paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(nt.$,{isDisabled:!T,size:"sm",px:"8px !important",bg:a[null===e||void 0===e?void 0:e.name]===n&&T?(null!==(E=(0,p.j2L)(r))&&void 0!==E?E:u)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(S(null===e||void 0===e?void 0:e.name,n,i),0===i&&x(n),1===i&&m(n),2===i&&g(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:T?"p":"s",textDecoration:T?"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&&T?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===C||void 0===C||null===(_=C.options)||void 0===_?void 0:_.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,b,C,S,k,I,_,E,T;const[N,F,A,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)((()=>{$((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===q[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===q[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===q[h]&&e.option2===q[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),bt=(0,v.Xd)("whatmoreUITheme"),Ct=(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)(Ct),Ct);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
+ 0% {
74
+ transform: translateY(100%);
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,Ft]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==zt&&"whatmore"!==(0,p.NCy)(Ct)&&async function(){const t=await(0,ht._N)(U);Ft(t)}()}),[]);let At=-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(++At,(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,At)],src:null===t||void 0===t?void 0:t.src}})):[],Lt=[];if("whatmore"==(0,p.NCy)(Ct)&&(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 At+1<(null===Nt||void 0===Nt||null===(b=Nt.product)||void 0===b||null===(C=b.options)||void 0===C||null===(S=C[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",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===bt||void 0===bt?void 0:bt.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===bt||void 0===bt?void 0:bt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(Ct),borderColor:(0,p.Fwt)(Ct)},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===bt||void 0===bt?void 0:bt.whatmoreUITheme)?"lg":null,src:(0,yt.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(Ct)+" !important"},fallback:(0,f.jsx)(V.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===bt||void 0===bt?void 0:bt.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)(Ct),size:"xs",width:"90%"})}),(0,f.jsx)(le,{data:M,dividerColor:(0,p.R6d)(Ct),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})]}),p.wW8&&((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)($t,{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,b]=(0,n.useState)(),C=(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,F="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:F,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:F,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)(C),C);b(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:F,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,b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)(q.B),[z,E,T,N]=(0,x.A)(),F=null!==(o=t.iconSize)&&void 0!==o?o:.1*N*(0,p.xkB)(b);function A(){const e=(0,v.Xd)("whatmoreLandingLocationType");var i;!function(t){C||S||(async()=>{(0,l.Zh)(t)})()}(g),(e.startsWith("product")||"embed"===e)&&(d="te"),i="event_product_link"===(0,p.moP)(b)?g.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,p.moP)(b)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+h+"&weid="+m,(0,p.BLb)(b)&&(i=i+"&"+(0,p.VCz)(b)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,p.kZI)(b),text:`${(0,p.dmA)(b)} \n ${i} ${(0,p.ZX9)(b)?"\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:F,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A(),(0,X.kz)({userInteractionType:Y.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:g,productList:g.products,ctaList:g.cta})}}),w&&(0,p.ViG)(b)?(0,f.jsxs)(j.E,{fontSize:.3*F+"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)(b)?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,{})]})})})},be=i(3420),Ce=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)(q.B),y=t.event,[b,C]=(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]:!b}),b?(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})),C(!b)}const N=y.total_like+(b?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:[b?(0,f.jsx)(Ce.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)?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(7300);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)(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)(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})]})]})]})})};var Te=function(t){var e,i;const n=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,v.Xd)("whatmorePrimaryFont"),r=(0,v.Xd)("whatmoreShopId"),l=null!==(i=t.fontSize)&&void 0!==i?i:"8",[a]=(0,Ie.A)(),d=`https://www.whatmore.ai/shoppable-videos?utm_source=${n}&utm_medium=referral&utm_campaign=${"landscape"===a?"customer_referral_desktop":"customer_referral_mobile"}`,s=t.labelText;return(0,f.jsx)(_t.N,{href:d,isExternal:!0,children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"}}),(0,f.jsx)(c.az,{width:"5px"}),(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",o,"important"),t.style.setProperty("font-size",1.1*l+"px","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("color","white"))},children:s})]})})},Ne=i(9879),Fe=i(9556),Ae=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)(q.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)(Ae.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)(Pe,{}),(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)))})})]})},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)(q.B),b=()=>{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.")},C=()=>{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:C})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then((()=>{h(!0),setTimeout((()=>{C()}),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:C})}),(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&&b()},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:b,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);function Qe(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(q.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],b=(0,n.useRef)(null);(0,n.useEffect)((()=>{b.current&&b.current.play()}),[]);const C=(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)(C)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:C,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:C,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 Ve=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"),[b]=(0,v.QN)("whatmoreShopId"),C=(0,n.useContext)(Ei),{whatmoreEventsBrowsingTemplate:S}=(0,n.useContext)(q.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,F=t.storySetId,A=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:$}=(0,n.useContext)(q.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]),et=(0,St.Yt)(S)?"Powered by Whatmore":"Whatmore",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="Free"==(0,p.yt9)(b)&&"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})}),"60934750449"==b&&(0,f.jsx)("div",{style:{position:"absolute",top:"50%",boxShadow:"dark-lg",transform:"translateY(-50%) scale(0.6)"},children:(0,f.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/whatmorelive.brand.other.assets/maryumnmaria/Text2.png"})}),(!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:[C.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)(Qe,{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:F,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),!(0,St.Yt)(S)&&"landscape"==r&&(0,f.jsx)(u.B,{pt:"12px",pl:"10px",sx:{position:"absolute",top:"10px",left:"0px"},children:(0,f.jsx)(Te,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E,labelText:et})}),ot&&!(0,St.Yt)(S)&&(0,f.jsx)(u.B,{pt:"12px",pl:"10px",sx:{position:"absolute",top:"10px",left:"0px"},children:(0,f.jsx)(Te,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E,labelText:et})}),(0,f.jsx)(k,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(B.A,{event:N,onCloseCallback:L})]})]})})]}),"78232846646"===b&&"portrait"===r&&(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:[C.totalEvents>1&&!w&&C.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:!A})})}):null,(0,f.jsxs)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:0,bottom:"25%",children:[(0,p.oZc)(b)&&!(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:function(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,X.kz)({userInteractionType:Y.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:$,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)(b),n=`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")},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)(b)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(b)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(b)?(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)(Se,{event:N})})}):(0,f.jsx)(f.Fragment,{}),(0,p.iQ5)(b)&&!(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:F,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)(b)?(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,St.Yt)(S)&&(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,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E,labelText:et})})]})]})},Me=i(5491),He=i.n(Me),Ue=i(6493);var Xe=function(t){var e,i,o,r,l,a,[d,w,j,y]=(0,x.A)();const[b,C]=(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,F=t.storyId,A=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:()=>{},$=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,n.useContext)(q.B),{questionList:G}=(0,n.useContext)(Ei),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=He()((()=>{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,Ue.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)(Ve,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{A(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),C(!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:$,storySetId:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L})})}):(0,f.jsx)(f.Fragment,{}),!0===b?(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:()=>A(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{C(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,f.jsx)("div",{})]})})},Ye=i(2039),qe=i(6613),$e=i(1085),Ke=i(5727);var Ge=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,Ue.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,$e.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ke.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,$e.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ze=i(3294),Je=i(9821);const ti=n.lazy((()=>i.e(931).then(i.bind(i,5015))));var ei=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,Je._)()?(0,f.jsx)(Ge,{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:Ze.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Xe,{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:Ze.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Ye.ij)(o)||(0,Ye.Il)(o))return(0,f.jsx)(Xe,{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:Ze.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)(ti,{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,Ye.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:b}=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",{})},ii=i(4806),ni=i.n(ii),oi=i(2804),ri=i(6834);function li(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)(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,"up")}}):(0,f.jsx)(oi.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 ai=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)(li,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(li,{type:"right",onClick:a,fontSize:l})]})})},di=i(964),si=i(3330);var ci=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 ui=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 hi=function(t,e){const i=(0,n.useRef)(He()(((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)}]},pi=i(6325);var vi=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,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[C,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(Ei),{slideDirection:z}=(0,n.useContext)(Ei),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,F]=ci(i,e.length),[A,P]=ui(z,50),[L]=hi("vertical",30),[B,O]=(0,n.useState)(!1),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)(q.B);function V(){O(!1)}function M(t){V(),setTimeout((()=>{a(t)}),500)}(0,n.useEffect)((()=>(O(!0),()=>{})),[]);const U=W.landingLocationType,$=W.templateType;_(M);let K=i;const{questionList:G}=(0,n.useContext)(Ei);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(F("right"),D.slideNext())}function J(t,e){F(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(ni(),{isOpen:B,onAfterOpen:function(){},onRequestClose:V,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(pi.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,H.YU)("#000000",13)},onTouchStart:t=>{A(t)},onTouchEnd:t=>{if(C)return;const e=P(t);e&&J(0,e)},onWheel:t=>{C||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:!C,allowSlidePrev:!C,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||b(!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)($)+(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,si.Si)(E,di.TB,di.Dk),(0,ct.Ch)(i.event_id,i.products,di.TB,di.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,si.Si)(E,di.DK,di.K1),(0,ct.Ch)(i.event_id,i.products,di.DK,di.K1,t)):T.startsWith("collection")?((0,si.Si)(E,di.Sx,di.rz),(0,ct.Ch)(i.event_id,i.products,di.Sx,di.rz,t)):((0,si.Si)(E,di.TB,di.Dk),(0,ct.Ch)(i.event_id,i.products,di.TB,di.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)(ei,{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&&!C&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(ai,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},xi=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const mi=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return xi.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)};mi.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var gi=mi;var fi=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,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ei),[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)(q.B),[N,F]=(0,n.useState)(!1),[A,P]=(0,n.useState)(null);function L(){F(!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||e.brand,(0,n.useRef)(0));function M(t){L(),setTimeout((()=>{R(t)}),500)}function U(){A&&!A.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&A.slideNext()}(0,n.useEffect)((()=>(F(!0),()=>{})),[]),C(M);const $=E.landingLocationType,K=E.templateType,[G,Z]=(0,n.useState)({}),J=parseInt(Math.min(5,O.length));return(0,f.jsx)(gi,{show:N,closeCallback:L,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsx)(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*J,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:J,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:J>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*J,watchSlidesProgress:!0,onSlideChange:t=>{var e;y?b(!1):(w||j(!0),e=O[t.activeIndex],m||g||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,St.Wd)($)+(0,St.gf)(K)+(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,si.Si)(I,di.TB,di.Dk),(0,ct.Ch)(e.event_id,e.products,di.TB,di.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,si.Si)(I,di.DK,di.K1),(0,ct.Ch)(e.event_id,e.products,di.DK,di.K1,t)):_.startsWith("collection")?((0,si.Si)(I,di.Sx,di.rz),(0,ct.Ch)(e.event_id,e.products,di.Sx,di.rz,t)):((0,si.Si)(I,di.TB,di.Dk),(0,ct.Ch)(e.event_id,e.products,di.TB,di.Dk,t))})(),(0,X.DG)({userInteractionType:Y.O.VIDEO_PLAYBACK,userInteractionMetadata:G,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)(ei,{event:O[e%Q],onBack:M,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{Z(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=>{A.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)(ei,{event:O[e%Q],onBack:M,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{Z(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===V.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.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)(ei,{event:O[e%Q],onBack:M,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{Z(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(V.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})})})})},wi=i(340),ji=i(5089),yi=i(572),bi=i(8603);var Ci=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 Si=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"),[b]=(0,v.QN)("isDemoBrand"),[C]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,n.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,n.useState)(null),[N,F]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:A,whatmoreUserInfo:P}=(0,n.useContext)(q.B),[L,B]=ci(s,c.length);function O(t){r(t)}const D=A.landingLocationType,R=A.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:A,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||b||(async()=>{(0,l.lB)(t),(0,si.Si)(C,di.TB,di.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:A,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,Ye.ij)(r)||(0,Ye.Il)(r)?(0,f.jsx)(Xe,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:O,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:F,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{Q("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{Q("right")},storyId:i.id,source:Ze.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)(Ci,{})})}},"event-story-view-slide-"+e)))})})};var ki=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex;var[d,s,c,h]=(0,x.A)();const[p]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g,w]=(0,n.useState)(!0),[j,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,C]=(0,n.useState)(!1),{setCloseClickComponent:S}=(0,n.useContext)(Ei),{slideDirection:k}=(0,n.useContext)(Ei),[I]=(0,v.QN)("whatmoreShopId"),[_,z]=ci(a,i.length),[E,T]=ui("horizontal",50),[N]=hi("vertical",30),F=t.eventIndex,[A,P]=(0,n.useState)(!1),[L,B]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:O,whatmoreUserInfo:D}=(0,n.useContext)(q.B);function R(){P(!1)}function W(t){R(),setTimeout((()=>{e(t)}),500)}(0,n.useEffect)((()=>(P(!0),()=>{})),[]),S(W);const Q=O.landingLocationType,V=O.templateType;function M(t){L&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(z(t),"right"==t?L.slideNext():L.slidePrev())}function H(t,e){M(e)}return(0,f.jsx)(ni(),{isOpen:A,onAfterOpen:function(){},onRequestClose:R,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{E(t)},onTouchEnd:t=>{const e=T(t);e&&H(0,e)},onWheel:t=>{N(t,(t=>{H(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:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,n;B(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:O,event:i[_().activeIndex].events[0],productList:null===(e=i[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[_().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;g?w(!1):(!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);p||m||(async()=>{(0,l.lB)(t),(0,si.Si)(I,di.TB,di.OL),(0,ct.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===D||void 0===D?void 0:D.userType)})()}(i[_().activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:O,event:i[_().activeIndex].events[0],productList:null===(e=i[_().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[_().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const s=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:d,justifyContent:"center",children:(0,f.jsx)(Si,{stories:i[_()[s]],onBack:W,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:M,nextStories:i[_().nextIndex],prevStories:i[_().prevIndex],initialEventIndex:a==_()[s]?F:0},"event-story-view-"+i[_()[s]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var Ii=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,b="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:b,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Ye.ij)(g)||(0,Ye.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:b,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 _i=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,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ei),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z,whatmoreEventsBrowsingTemplate:E}=(0,n.useContext)(q.B),[T,N]=(0,n.useState)(!1),[F,A]=(0,n.useState)(null);function P(){N(!1)}t.events;const L=t.eventIndex,O=t.onBack,D=t.eventsStories,R=t.initialStoryIndex,W=null===(e=D[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function Q(t){P(),setTimeout((()=>{O(t)}),500)}(0,n.useEffect)((()=>(N(!0),()=>{})),[]),C(Q);const V=_.landingLocationType,M=_.templateType;function H(t){F&&!F.isEnd&&("right"==t?F.slideNext():F.slidePrev())}const U=parseInt(Math.min(5,D.length));return(0,f.jsx)(gi,{show:T,closeCallback:P,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*U,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,i;A(t),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:U,centeredSlides:!0,allowTouchMove:!1,initialSlide:R,modules:[r.t9,r.Vx,r.FJ],navigation:U>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*U,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;y?b(!1):(w||j(!0),function(t){const e=(0,St.Wd)(V)+(0,St.gf)(M)+(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,si.Si)(I,di.TB,di.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)})()}(D[t.activeIndex].events[0]),(0,X.kz)({userInteractionType:Y.O.EVENT_VIEW,widgetSourceDetails:_,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[D.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(B.A,{onCloseCallback:O})}),D.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)(Si,{stories:t,onBack:Q,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:H,initialEventIndex:R==e?L:0,showCloseOverlay:(null===D||void 0===D?void 0:D.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=>{F.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(Ii,{showPausedVideo:!0,event:D[e].events[0],onBack:Q,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Te,{brandName:W,height:.04*h,width:.1*p,fontSize:.02*h,labelText:"Powered by Whatmore"})})]})})};const zi=(0,bi.A)({key:"whatmore-css-sv"}),Ei=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ti=function(t){var e,i,o;const[r,l,a]=(0,Ie.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(q.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)(q.B);var u=t.events,h=t.index,x=t.onBack,m=t.eventsStories,g=t.initialStoryIndex,w=(0,p.M3_)(d),j="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:u.length>1?"horizontal":"vertical",y="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(w)?history.replaceState(null,"","#"+w):history.pushState(null,"","#"+w),window.addEventListener("popstate",(()=>{window.location.href.includes(w)||x()})))}),[]),delete ji.Ay.styles.global,c?(0,f.jsx)(yi.C,{value:zi,children:(0,f.jsx)(wi.s,{theme:ji.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ei.Provider,{value:{isIOS:(0,qe.MN)(),totalEvents:u.length,closeClickComponent:x,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y},children:"portrait"===r?(0,f.jsx)(ki,{eventsStories:m,initialStoryIndex:g,onBack:x,eventIndex:h}):(0,p.Rdb)(d)?(0,f.jsx)(_i,{eventsStories:m,initialStoryIndex:g,onBack:x,eventIndex:h}):(0,f.jsx)(ki,{eventsStories:m,initialStoryIndex:g,onBack:x,eventIndex:h})})})}):(0,f.jsx)(yi.C,{value:zi,children:(0,f.jsx)(wi.s,{theme:ji.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ei.Provider,{value:{isIOS:(0,qe.MN)(),totalEvents:u.length,closeClickComponent:x,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:j,showSwipeIndicator:y,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)(vi,{events:u,eventIndex:h,onBack:x}):(0,f.jsx)(fi,{events:u,eventIndex:h,onBack:x})})})})}},5144:function(t,e,i){i.d(e,{jd:function(){return o}});var n=i(8283);const o=`\n ${n.i7`
77
+ 0% { transform: scale(1); }
78
+ 50%, { transform: scale(0.95); }
79
+ 100% { transform: scale(1); }
80
+ `} 0.2s linear;\n`;n.i7`
81
+ 100% {
82
+ -webkit-transform: rotate(360deg);
83
+ transform:rotate(360deg);
84
+ }
85
+ `,n.i7`
86
+ 0% {
87
+ opacity: 1;
88
+ transform: translateY(100%);
89
+ }
90
+ 10%{
91
+ transform: translateY(0%);
92
+ }
93
+ 12%{
94
+ transform: translateY(-5%);
95
+ }
96
+ 20%{
97
+ transform: translateY(0%);
98
+ }
99
+ 95%{
100
+ opacity: 1;
101
+ transform: scale(1);
102
+ }
103
+ 100%{
104
+ opacity: 0;
105
+ }
106
+ `},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return b}});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(8650),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 b=function(t){var e,i,a,b;const[C]=(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,F]=(0,d.useState)(!1),[A,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!==(b=(0,x.FyB)(z))&&void 0!==b?b: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=>{F(!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"===A.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:()=>{F(!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:C+" !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:A,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(8650),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"),[b,C]=(0,n.useState)(!0),[S,k]=(0,n.useState)(!1),I=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,n.useContext)(v.B),z=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,E=null!==(i=t.height)&&void 0!==i?i:"100%",T=null!==(o=t.width)&&void 0!==o?o:"100%",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",(()=>{C(!1)})),I&&e.addEventListener("timeupdate",(t=>{var i,n;e&&I(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(n=e.duration)&&void 0!==n?n:0)}))}else{var e;(e=g.current.children[0]).muted=z||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(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,b]),(0,n.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.rq)(g.current)}),[]);const F=(0,s.Xd)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:T,height:E,overflow:"hidden",backgroundColor:_?(0,h.KVz)(N):(0,h.QSX)(N),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:b?"0px":"100%",height:b?"0px":_?(0,h.tbf)(N):(0,h.CBm)(N)&&"product"==F?"auto":(0,h.R7q)(N)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==N&&b&&S?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,style:{height:"100%",width:T,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):b&&!S&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,height:"100%",width:T,onLoad:()=>{k(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:T,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var f=function(t){var e;return(0,m.jsx)(g,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function w(t){var e,i,o;const[l,d]=(0,r.A)(),[c,g]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),j=t.setDuration,y=(0,n.useRef)(null),b=(0,s.Xd)("whatmoreShopId"),C=t.timeUpdateCallback,{whatmoreIsPreviewMode:S}=(0,n.useContext)(v.B),k=(0,s.Xd)("whatmoreLandingLocationType"),I=null!==(e=t.height)&&void 0!==e?e:"100%",_=null!==(i=t.width)&&void 0!==i?i:"100%",z=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,E=null===t||void 0===t?void 0:t.posterImage;return(0,n.useEffect)((()=>{y.current&&(t.isPlaying?y.current.paused&&y.current.play():y.current.pause(),C&&y.current.addEventListener("timeupdate",(t=>{var e,i;y.current&&C(null!==(e=y.current.currentTime)&&void 0!==e?e:0,null!==(i=y.current.duration)&&void 0!==i?i:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:_,height:I,overflow:"hidden",backgroundColor:S?(0,h.KVz)(b):(0,h.QSX)(b),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{style:{width:c?"100%":"0px",height:c?S?(0,h.tbf)(b):(0,h.CBm)(b)&&"product"==k?"auto":(0,h.R7q)(b):"0px"},children:(0,m.jsxs)("video",{ref:y,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!z&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&y.current&&y.current.play(),(0,h.fwF)(b)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&y.current&&y.current.play(),setTimeout((()=>{!t.isPlaying&&y.current&&y.current.pause()}),(0,p.n)()?1900:800))},onLoadedMetadata:()=>{y.current&&j&&j(y.current.duration)},poster:"banner"==t.source?t.url:E,children:[(0,m.jsx)("source",{src:t.url,type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==b&&!c&&f?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,style:{height:"100%",width:_,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:E,height:"100%",width:_,onLoad:()=>{w(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:_,height:I,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var j=function(t){var e,i,r,a;return(0,o.Il)(t.event)?(0,m.jsx)(d.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,n.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,m.jsx)(f,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(r=t.isVideoMuted)&&void 0!==r?r:null,source:t.source,posterImage:null===(a=t.event)||void 0===a?void 0:a.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,m.jsx)(w,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},1079:function(t,e,i){var n=i(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
+ 0% {
108
+ opacity: 0;
109
+ }
110
+ 10%{
111
+ opacity: 0.5;
112
+ }
113
+ 20%{
114
+ opacity: 1;
115
+ }
116
+
117
+ `;const p=function(t,e){return(0,c.BLb)(e)?t+"?"+(0,c.VCz)(e)+"&"+(0,c.Spk)(e)+"&"+(0,c.yD5)(e):t};e.A=function(t){var e;const[i,s,v,x]=(0,a.A)(),m=(0,d.Xd)("isInDesignMode"),g=(0,d.Xd)("isDemoBrand"),f=(0,d.Xd)("whatmoreSecondaryColor"),w=(0,d.Xd)("whatmorePrimaryFont"),j=(0,d.Xd)("whatmoreShopId"),y=t.cta,b=.06*x;return(0,h.jsx)(n.o,{children:(0,h.jsx)(o.B,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*x+"px",marginTop:.03*x+"px",children:(0,h.jsx)(r.N,{href:p(y.cta_link,j),color:"white",onClick:()=>{m||g||(async()=>{(0,u.TG)(t)})()},children:(0,h.jsx)(l.E,{fontSize:b*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:t.isBanner?f:"#fff",bgColor:t.isBanner?"#fff":f,borderRadius:"round"==(0,c.hep)(j)?"5px":"0",sx:{boxShadow:"1px 1px #0000001a",fontFamily:w+" !important",textAlign:"center!important",fontWeight:t.isBanner?"bold":void 0},padding:"10px",paddingX:.06*x+"px",children:y.cta_title})})})})}},8385:function(t,e,i){i.d(e,{c:function(){return a}});var n=i(6649),o=i(9950),r=(i(4365),i(4414));function l(t){const[e,i,o]=(0,n.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:i?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{minWidth:t.defaultHeight,minHeight:t.defaultWidth}})})}function a(t){var e,i;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,i=!1;function n(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(i=!0,e=t.touches[0].clientX):(i=!0,e=t.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",i=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",n),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(i=t.dataList)||void 0===i?void 0:i.map(((e,i)=>(0,r.jsx)(l,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},6670:function(t,e,i){var n=i(9950),o=i(5830);e.A=function(t){const[e,i]=(0,o.QN)("muted");return(0,n.useEffect)((()=>{}),[]),[e,i]}},3080:function(t,e,i){var n=i(7300);e.A=function(t){const[e,i,o]=(0,n.A)();var r="landscape"==e?i*(9/16):o;if("landscape"==e){const t=.85;return[i,r,i*t,r*t]}return[i,r,i,r]}},6125:function(){}}]);