whatmore-react-assets 1.0.1666 → 1.0.1668

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1666",
3
+ "version": "1.0.1668",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[620],{1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},3590:function(t,e,i){var o=i(2375),n=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const h=(0,n.FVo)(i);return"template-icon"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(o.A,{sx:{color:(0,n.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,h,[c,x]=(0,r.A)();const m=(0,n.Xd)("whatmoreUITheme"),[y]=(0,n.QN)("whatmorePrimaryFont"),[f,w]=(0,o.useState)(0),g=(0,n.Xd)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,d.jsx)(d.Fragment,{});const u=.3*x,j=u+"px",b=u+"px",P=.07*x,F=P+"px";return(0,d.jsx)("div",{style:{width:x+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",b,"important")},style:{width:(0,s.H$k)(g)?j:"auto",boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,s.YcK)(g),borderColor:(0,s.Fwt)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(g),"important"),t.style.setProperty("max-width",j,"important"))},src:(0,a.b)(v.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:x-5-u+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",F),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(v.products[f].title)})}),(0,s.gZ6)(g)&&(null===(e=v.products[f])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:x-5-u+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",x-5-u+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(p=v.products[f])||void 0===p||null===(h=p.product_metadata)||void 0===h?void 0:h.product_type})})]})]},f)})}},5620:function(t,e,i){i.d(e,{A:function(){return u}});var o=i(9950),n=i(932),r=(i(4826),i(5727)),l=i(5830),s=i(9879),a=i(7509),d=i(22),p=i(1348),h=i(3590),c=i(4616),x=i(6649),m=i(6613),y=i(1131),f=(i(4365),i(4414));function w(t){var e,[i,s]=(0,n.A)();const[d]=(0,l.QN)("whatmoreShopId"),[h,y,w]=(0,x.A)({triggerOnce:!0});var g=(0,o.useContext)(a.h);const v=t.event,u=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*s,b=(0,m.At)()?t.isOnFocus:y;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),g.showPlayButton&&!u||"90999947547"==d?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsxs)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:["90999947547"==d&&(0,f.jsx)("div",{style:{boxShadow:"dark-lg",transform:"scale(1.25)"},children:(0,f.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/whatmorelive.brand.other.assets/meeral/meeral-sale.png"})}),"90999947547"!=d&&"video"==v.event_type&&(0,f.jsx)(r.A,{sx:{color:(0,p.KFN)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})]})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:h,children:b&&(0,p.imx)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(c.A,{event:v})}):(0,f.jsx)("div",{height:"20px"})})]})})}function g(t){var[e,i]=(0,n.A)();const[o]=(0,l.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",o,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function v(t){const[e,i,o,r,s]=(0,n.A)(),[a]=(0,l.QN)("whatmoreShowViews"),c=(0,l.Xd)("whatmoreShopId"),x=t.event,m=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===a&&"show"===(0,p.klK)(c)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(h.A,{event:x,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===s[d.dl]?(0,f.jsx)(f.Fragment,{}):m?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(g,{event:x})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(g,{event:x})})]})})}var u=function(t){var e,i,r;const[h,c,x,m,g]=(0,n.A)();var u=(0,o.useContext)(a.h);const j=(0,l.Xd)("whatmoreUITheme"),b=(0,l.Xd)("whatmoreShopId"),[P]=(0,l.Xd)("whatmorePrimaryFont"),F=t.event,C=t.onClick,k=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,A=null!==(r=t.animateOnFocus&&(0,p.n5O)(b))&&void 0!==r&&r,S=(0,p.VYo)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",u.tileTopMargin+"px"),t.style.setProperty("margin-bottom",u.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:c,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j||"61187850326"==b||"19501891"==b?S:null,borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:A?k?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(F)},children:[(0,f.jsx)(s.A,{height:(0,p.u06)(b)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:k||I,event:F}),"51394281658"===b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:P+" !important"},children:null===F||void 0===F?void 0:F.title}),(0,f.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,f.jsx)(y.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,p.Q$)(b)&&(0,f.jsxs)("div",{style:{width:c,height:h},children:[(0,f.jsx)(v,{event:F,isOnFocus:k}),"87043703105"===b||"76467011883"===b||!k&&d.nN!==g[d.dl]?null:(0,f.jsx)(w,{event:F,unfocusedDisplay:!k,isOnFocus:k})]})]})}},5727:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[620],{1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},3590:function(t,e,i){var o=i(2375),n=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const h=(0,n.FVo)(i);return"template-icon"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(o.A,{sx:{color:(0,n.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,h,[c,x]=(0,r.A)();const m=(0,n.Xd)("whatmoreUITheme"),[y]=(0,n.QN)("whatmorePrimaryFont"),[f,w]=(0,o.useState)(0),g=(0,n.Xd)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,d.jsx)(d.Fragment,{});const u=.3*x,j=u+"px",b=u+"px",P=.07*x,F=P+"px";return(0,d.jsx)("div",{style:{width:x+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",b,"important")},style:{width:(0,s.H$k)(g)?j:"auto",boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,s.YcK)(g),borderColor:(0,s.Fwt)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(g),"important"),t.style.setProperty("max-width",j,"important"))},src:(0,a.b)(v.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:x-5-u+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",F),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(v.products[f].title)})}),(0,s.gZ6)(g)&&(null===(e=v.products[f])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:x-5-u+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",x-5-u+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(p=v.products[f])||void 0===p||null===(h=p.product_metadata)||void 0===h?void 0:h.product_type})})]})]},f)})}},5620:function(t,e,i){i.d(e,{A:function(){return u}});var o=i(9950),n=i(932),r=(i(4826),i(5727)),l=i(5830),s=i(9879),a=i(7509),d=i(22),p=i(1348),h=i(3590),c=i(4616),x=i(6649),m=i(6613),y=i(1131),f=(i(4365),i(4414));function w(t){var e,[i,s]=(0,n.A)();const[d]=(0,l.QN)("whatmoreShopId"),[h,y,w]=(0,x.A)({triggerOnce:!0});var g=(0,o.useContext)(a.h);const v=t.event,u=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*s,b=(0,m.At)()?t.isOnFocus:y;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),g.showPlayButton&&!u?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==v.event_type&&(0,f.jsx)(r.A,{sx:{color:(0,p.KFN)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:h,children:b&&(0,p.imx)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(c.A,{event:v})}):(0,f.jsx)("div",{height:"20px"})})]})})}function g(t){var[e,i]=(0,n.A)();const[o]=(0,l.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",o,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function v(t){const[e,i,o,r,s]=(0,n.A)(),[a]=(0,l.QN)("whatmoreShowViews"),c=(0,l.Xd)("whatmoreShopId"),x=t.event,m=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===a&&"show"===(0,p.klK)(c)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(h.A,{event:x,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===s[d.dl]?(0,f.jsx)(f.Fragment,{}):m?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(g,{event:x})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(g,{event:x})})]})})}var u=function(t){var e,i,r;const[h,c,x,m,g]=(0,n.A)();var u=(0,o.useContext)(a.h);const j=(0,l.Xd)("whatmoreUITheme"),b=(0,l.Xd)("whatmoreShopId"),[P]=(0,l.Xd)("whatmorePrimaryFont"),F=t.event,C=t.onClick,k=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,A=null!==(r=t.animateOnFocus&&(0,p.n5O)(b))&&void 0!==r&&r,S=(0,p.VYo)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",u.tileTopMargin+"px"),t.style.setProperty("margin-bottom",u.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:c,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j||"61187850326"==b||"19501891"==b?S:null,borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:A?k?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(F)},children:[(0,f.jsx)(s.A,{height:(0,p.u06)(b)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:k||I,event:F}),"51394281658"===b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:P+" !important"},children:null===F||void 0===F?void 0:F.title}),(0,f.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,f.jsx)(y.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,p.Q$)(b)&&(0,f.jsxs)("div",{style:{width:c,height:h},children:[(0,f.jsx)(v,{event:F,isOnFocus:k}),"87043703105"===b||"76467011883"===b||!k&&d.nN!==g[d.dl]?null:(0,f.jsx)(w,{event:F,unfocusedDisplay:!k,isOnFocus:k})]})]})}},5727:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")}}]);
@@ -124,4 +124,4 @@
124
124
  0% {
125
125
  transform: translateY(100%);
126
126
  }
127
- `} 0.5s`,It=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"))})),[_t,zt]=(0,n.useState)(-1!==It?null===(i=M.options)||void 0===i||null===(o=i[It])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Et,Tt]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==It&&"whatmore"!==(0,p.NCy)(yt)&&async function(){const t=await(0,Wt._N)(U);Tt(t)}()}),[]);let Nt=-1,Ft=-1!==It&&null!==Et&&void 0!==Et&&Et.product&&(null===Et||void 0===Et||null===(l=Et.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Et||void 0===Et||null===(d=Et.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[It])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Et||void 0===Et||null===(g=Et.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===Et||void 0===Et||null===(e=Et.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex((t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name)));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Et||void 0===Et||null===(n=Et.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(++Nt,(null===Et||void 0===Et||null===(a=Et.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[It])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Et||void 0===Et||null===(u=Et.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Nt)],src:null===t||void 0===t?void 0:t.src}})):[],At=[];if("whatmore"==(0,p.NCy)(yt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Lt;var Pt;if(-1!==(null===M||void 0===M||null===(Lt=M.options)||void 0===Lt?void 0:Lt.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"))}))))At=null===M||void 0===M||null===(Pt=M.images)||void 0===Pt?void 0:Pt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Nt+1<(null===Et||void 0===Et||null===(b=Et.product)||void 0===b||null===(C=b.options)||void 0===C||null===(S=C[It])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Ft=[]),(0,f.jsxs)(dt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"xl":null,animation:kt,children:[(0,f.jsx)(Yt,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:W}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(dt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(yt),borderColor:(0,p.Fwt)(yt)},children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(Jt.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===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(yt)+" !important"},fallback:(0,f.jsx)(R.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:Ft.length>0&&!Ft.includes(null)?null===(_=Ft)||void 0===_?void 0:_.filter((t=>(null===t||void 0===t?void 0:t.color)==_t)):At.length>0?[null===(z=At)||void 0===z?void 0:z.find((t=>(null===t||void 0===t?void 0:t.color)==_t))]: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)(Kt,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,getVariantPrice:ie,selectedVariantId:nt,itemPrice:ct,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:ft}),(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)(at.c,{color:(0,p.R6d)(yt),size:"xs",width:"90%"})}),(0,f.jsx)(Zt,{data:M,dividerColor:(0,p.R6d)(yt),setSelectedColor:zt,finalArr:Ft,finalArrExternal:At,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,selectOptionFirstHandler:bt,selectOptionSecondHandler:Ct,selectOptionThirdHandler:St,getVariantPrice:ie,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(yt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)($t,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:W,data:M,handleToggle:()=>Q(!V),show:V}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(Xt,{position:"relative",data:M,FONT_SIZE:W,product:U})}),(0,f.jsx)(Xt,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:W,PRODUCT_TILE_WIDTH:P,product:U,itemQuantity:rt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:mt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H})]})}const ee=(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},ie=(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},ne=(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},oe=(0,n.createContext)({setShowOptionsChart:null});var re=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,n.useState)(!1);return(0,f.jsx)(oe.Provider,{value:{setShowOptionsChart:s},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)(te,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a})})}),d?(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)(Dt,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var le=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)(Ot,{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)(re,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const ae=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function de(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 se=i(3788),ce=i(758);const ue=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,he=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var pe=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)(U.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),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} ${"50529403072"!==b&&(0,p.ZX9)(b)?"\n \n -via Whatmore":""}`};navigator.share&&!he?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)(ce.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,M.kz)({userInteractionType:H.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",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(b)?ue(g.total_share):null!==(r=null===tt.m||void 0===tt.m||null===(a=tt.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},ve=i(3420),xe=i(7170);var me=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)(U.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,M.kz)({userInteractionType:H.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,M.kz)({userInteractionType:H.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)(xe.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)(ve.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)?ue(N):null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ge=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 fe=i(1941);const we=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"})})})},je=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 ye=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)(A.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(at.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)(ge,{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)(we,{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)(je,{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 be=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,fe.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`,m=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(xt.N,{href:m,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,f.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},Ce=i(9879),Se=i(9556),ke=i(2209);var Ie=()=>(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 _e=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)(U.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,M.kz)({userInteractionType:H.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)(ke.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)(Se.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)(Ie,{}),(0,f.jsx)(Se.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,M.kz)({userInteractionType:H.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)))})})]})},ze=i(4533),Ee=i(9935);var Te=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)(U.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,M.kz)({userInteractionType:H.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,M.kz)({userInteractionType:H.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)(dt.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)(L,{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)(Ee.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)(L,{onCloseCallback:C})}),(0,f.jsxs)(dt.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 Ne=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Te,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Fe=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,ze.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)(Ne,{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)(_e,{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})})},Ae=i(6118);const Le=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,f.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,f.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})})};var Pe=function(t){const e=(0,v.Xd)("whatmoreShopId"),i=t.event,[n,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,se.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),n=await e.blob(),o=window.URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${i.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Le,{iconSize:a})})})})};function Be(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(U.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,se.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,st.B)(C)?(0,f.jsx)(Ce.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 Oe=function(t){var e,i,o;const[r,a,d]=(0,fe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),S=(0,n.useContext)(Ci),{whatmoreEventsBrowsingTemplate:k}=(0,n.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),F=t.event,A=t.storySetId,P=t.isLast,B=t.onCloseCallback,O=t.focusRef,R=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,X=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)(U.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(F,1)})(),(0,M.kz)({userInteractionType:H.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:F,productList:null===F||void 0===F?void 0:F.products,ctaList:null===F||void 0===F?void 0:F.cta});const e=F.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${F.products.length>1?"these products":"this product"} I saw on ${null===(t=F.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Ft.S,{userInteractionType:H.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)(Fe,{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)(ye,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(de,{progress:ae(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(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)(Be,{event:F,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(b.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(L,{event:F,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{X()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.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)(D,{swipeUp:!P})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==C&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Pe,{event:F})})})]}),(0,p.oZc)(C)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ge,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(me,{event:F})}),(0,ht.Yt)(k)&&"50529403072"===C&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ge,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Nt.Z_)(F)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(N,{event:F,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)(Lt,{event:F,productClickHandler:R})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(be,{brandName:null===F||void 0===F?void 0:F.brand,fontSize:.033*E})})]})]})},De=i(5491),Re=i.n(De),We=i(6493);var Ve=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,L=n.useRef(),P=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,n.useContext)(U.B),{questionList:G}=(0,n.useContext)(Ci),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=Re()((()=>{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,se.s)((0,We.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=ae(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})})})}),X?(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)(Oe,{focusRef:L,event:t.event,isLast:O,onCloseCallback:t=>{A(t),(0,M.DG)({userInteractionType:H.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,M.kz)({userInteractionType:H.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:P})})}):(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)(re,{focusRef:L,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",{})]})})},Qe=i(2039),Me=i(6613),He=i(1085),Ue=i(5727);var Xe=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,se.s)((0,We.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,He.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ue.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,He.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ye=i(3294),$e=i(9821);var qe=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,Pt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,Me.MN)()&&0==m)return(0,$e._)()?(0,f.jsx)(Xe,{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:Ye.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ve,{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:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.ij)(o)||(0,Qe.Il)(o))return(0,f.jsx)(Ve,{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:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:b}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(le,{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",{})},Ke=i(4806),Ge=i.n(Ke),Ze=i(2804),Je=i(6834);function ti(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)(Je.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)(Ze.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 ei=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)(ti,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(ti,{type:"right",onClick:a,fontSize:l})]})})},ii=i(964),ni=i(3330);var oi=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 ri=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 li=function(t,e){const i=(0,n.useRef)(Re()(((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)}]},ai=i(6325);var di=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)(Ci),{slideDirection:z}=(0,n.useContext)(Ci),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,F]=oi(i,e.length),[A,L]=ri(z,10),[P]=li("vertical",10),[B,O]=(0,n.useState)(!0),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)(U.B);function X(){O(!1)}function Y(t){X(),setTimeout((()=>{a(t)}),500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=i;const{questionList:G}=(0,n.useContext)(Ci);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)(Ge(),{isOpen:B,onRequestClose:X,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(ai.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,V.YU)("#000000",13)},onTouchStart:t=>{A(t)},onTouchEnd:t=>{if(C)return;const e=L(t);e&&J(0,e)},onWheel:t=>{C||P(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,M.kz)({userInteractionType:H.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,M.DG)({userInteractionType:H.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,ht.Wd)($)+(0,ht.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.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,ni.sendVideoViewEventToGA)(E,ii.DK,ii.K1),(0,ze.Ch)(i.event_id,i.products,ii.DK,ii.K1,t)):T.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(E,ii.Sx,ii.rz),(0,ze.Ch)(i.event_id,i.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t))})(),(0,M.UM)({userInteractionType:H.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)(qe,{event:e[c],showQuestion:h,onBack:Y,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)(ei,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},si=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const ci=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return si.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)};ci.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var ui=ci;var hi=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)(Ci),[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)(U.B),[N,F]=(0,n.useState)(!1),[A,P]=(0,n.useState)(null);function B(){F(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,X=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,n.useRef)(0);function $(t){B(),setTimeout((()=>{R(t)}),500)}function q(){A&&!A.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&A.slideNext()}(0,n.useEffect)((()=>(F(!0),()=>{})),[]),C($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:N,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,V.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:tt>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;y?b(!1):(w||j(!0),e=O[t.activeIndex],m||g||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ni.sendVideoViewEventToGA)(I,ii.DK,ii.K1),(0,ze.Ch)(e.event_id,e.products,ii.DK,ii.K1,t)):_.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(I,ii.Sx,ii.rz),(0,ze.Ch)(e.event_id,e.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t))})(),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,M.UM)({userInteractionType:H.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)(L,{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)(qe,{event:O[e%Q],onBack:$,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(o)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(Y.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(be,{brandName:X,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},pi=i(340),vi=i(5089),xi=i(572),mi=i(8603);var gi=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 fi=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,Pt.A)(),[y]=(0,v.QN)("isInDesignMode"),[b]=(0,v.QN)("isDemoBrand"),[C]=(0,v.QN)("whatmoreShopId"),[S,k]=(0,n.useState)(!0),[I,_]=(0,v.QN)("isFirstIndicatorRenderDone"),[z,E]=(0,n.useState)(null),[T,N]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:A}=(0,n.useContext)(U.B),[L,P]=oi(s,c.length);function B(t){r(t)}const O=F.landingLocationType,D=F.templateType;function R(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(P("right"),z&&z.slideNext())}function W(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(P(t),z&&("left"==t?z.slidePrev():z.slideNext()))}const[V,Q]=(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=>{E(t)},onSlideChange:t=>{S?k(!1):(I||_(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(O)+(0,ht.gf)(D)+(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,ni.sendVideoViewEventToGA)(C,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===A||void 0===A?void 0:A.userType)})()}(c[L().activeIndex]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map((e=>(0,f.jsx)(o.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=c[L()[e]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Qe.ij)(r)||(0,Qe.Il)(r)?(0,f.jsx)(Ve,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:B,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:N,onVideoEndedCallback:R,progressUpdateCallback:t=>{Q(t)},leftOpenSpaceClickHandler:()=>{W("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{W("right")},storyId:i.id,source:Ye.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)(gi,{})})}},"event-story-view-slide-"+e)))})})};var wi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,fe.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ci),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=oi(a,i.length),[b,C]=ri("horizontal",50),[S]=li("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!0),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)(U.B);function F(){_(!1)}function A(t){F(),setTimeout((()=>{e(t)}),500)}g(A);const L=T.landingLocationType,P=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(Ge(),{isOpen:I,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{b(t)},onTouchEnd:t=>{const e=C(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,ht.Wd)(L)+(0,ht.gf)(P)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(w,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const d=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(fi,{stories:i[j()[d]],onBack:A,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[d]?k:0},"event-story-view-"+i[j()[d]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var ji=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,Qe.ij)(g)||(0,Qe.Il)(g)?(0,f.jsx)(Ce.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 yi=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)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)(U.B),[E,T]=(0,n.useState)(!1),[N,F]=(0,n.useState)(null);function A(){T(!1)}t.events;const P=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){A(),setTimeout((()=>{B(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),C(W);const V=_.landingLocationType,Q=_.templateType;function X(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:E,closeCallback:A,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*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,i;F(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;y?b(!1):(w||j(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(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,ni.sendVideoViewEventToGA)(I,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(L,{onCloseCallback:B})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(fi,{stories:t,onBack:W,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:X,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(ji,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(be,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const bi=(0,mi.A)({key:"whatmore-css-sv"}),Ci=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Si=function(t){var e,i,o;const[r,l,a]=(0,fe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",b="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete vi.Ay.styles.global,c?(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(yi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(wi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b,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)(di,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(hi,{events:h,eventIndex:x,onBack:m})})})})}},6125:function(){},6305:function(t,e,i){var n=i(9950),o=i(1348),r=i(5830),l=i(1052),a=i(140),d=i(8149),s=i(5647),c=i(3262),u=i(5551);e.A=function(t,e,i){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,m]=(0,n.useState)(null),g=(0,n.useRef)(null),{closeClickComponent:f}=(0,n.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,n.useContext)(u.B),[j,y]=(0,n.useState)({state:"init",cart_count:t});function b(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:j.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function C(t){const e=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function S(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(g.current&&g.current.length>=1){return g.current.filter((t=>t.available)).length>=1}return!1}function z(t,e,i){p||v||(async()=>{(0,a.tO)(t,e,i)})()}function E(t,n){const a=C(t);if(!a)return void b("init",j.cart_count);b("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,i,e,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(i,e,1),b("init",j.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,(()=>{}),100,window.location.hostname,a,e.client_product_id,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}return[j,function(t){const n=[];b("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,d.M)(t,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const i=S(e);if(m(i),I(i)&&_()){const e=C([k(i[0]),k(i[1]),k(i[2])]);return e?(n.push(t),e):void b("init",j.cart_count)}}))))).then((a=>{const d=a.filter((t=>void 0!=t));(0,l.cF)(d,1,(0,o.NCy)(h),h,i,e,t,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{z(i,t,1)})),b("init",j.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}))},b,x,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const n=S(e);m(n),I(n)||i?_()?E([k(n[0]),k(n[1]),k(n[2])],t):b("errored",null):b("awaitingVariantSelection",null)})).catch((t=>{b("errored",null)}))},E,function(t){var e,i,n,r;const l=g.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,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},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]}},7035:function(t,e,i){i.d(e,{m:function(){return n}});const n={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",shop_now:"SHOP NOW",off:"off"},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",off:"\u062e\u0635\u0645"},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",off:"rabat"},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",off:"rabatt"},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",off:"descuento"},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",off:"remise"},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",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},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",off:"korting"},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",off:"de desconto"},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",off:"\u6298\u6263"}}},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}}}},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:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}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,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(140);var u=i(5144),h=i(4905),p=i(5647),v=i(1348),x=i(8149),m=i(5551),g=i(1351),f=i(6157),w=i(4414);function j(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,N]=(0,d.useState)(!1),[F,A]=(0,d.useState)({state:"initial"}),[L,P]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(m.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){C||S||(async()=>{(0,c.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,x.M)(R,(0,v.NCy)(_),_);P({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const Q=null!==(i=t.width)&&void 0!==i?i:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{N(!0),V(D,R,1),(0,g.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout((()=>{B()}),2e3)},children:"initial"===F.state?(0,w.jsx)(n.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{N(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(j,{event:D,product:R,baseFontSize:W,cartState:F,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
127
+ `} 0.5s`,It=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"))})),[_t,zt]=(0,n.useState)(-1!==It?null===(i=M.options)||void 0===i||null===(o=i[It])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Et,Tt]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==It&&"whatmore"!==(0,p.NCy)(yt)&&async function(){const t=await(0,Wt._N)(U);Tt(t)}()}),[]);let Nt=-1,Ft=-1!==It&&null!==Et&&void 0!==Et&&Et.product&&(null===Et||void 0===Et||null===(l=Et.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Et||void 0===Et||null===(d=Et.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[It])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Et||void 0===Et||null===(g=Et.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===Et||void 0===Et||null===(e=Et.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex((t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name)));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Et||void 0===Et||null===(n=Et.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(++Nt,(null===Et||void 0===Et||null===(a=Et.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[It])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Et||void 0===Et||null===(u=Et.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Nt)],src:null===t||void 0===t?void 0:t.src}})):[],At=[];if("whatmore"==(0,p.NCy)(yt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Lt;var Pt;if(-1!==(null===M||void 0===M||null===(Lt=M.options)||void 0===Lt?void 0:Lt.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"))}))))At=null===M||void 0===M||null===(Pt=M.images)||void 0===Pt?void 0:Pt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Nt+1<(null===Et||void 0===Et||null===(b=Et.product)||void 0===b||null===(C=b.options)||void 0===C||null===(S=C[It])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Ft=[]),(0,f.jsxs)(dt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"xl":null,animation:kt,children:[(0,f.jsx)(Yt,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:W}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(dt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(yt),borderColor:(0,p.Fwt)(yt)},children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(Jt.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===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(yt)+" !important"},fallback:(0,f.jsx)(R.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:Ft.length>0&&!Ft.includes(null)?null===(_=Ft)||void 0===_?void 0:_.filter((t=>(null===t||void 0===t?void 0:t.color)==_t)):At.length>0?[null===(z=At)||void 0===z?void 0:z.find((t=>(null===t||void 0===t?void 0:t.color)==_t))]: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)(Kt,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,getVariantPrice:ie,selectedVariantId:nt,itemPrice:ct,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:ft}),(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)(at.c,{color:(0,p.R6d)(yt),size:"xs",width:"90%"})}),(0,f.jsx)(Zt,{data:M,dividerColor:(0,p.R6d)(yt),setSelectedColor:zt,finalArr:Ft,finalArrExternal:At,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,selectOptionFirstHandler:bt,selectOptionSecondHandler:Ct,selectOptionThirdHandler:St,getVariantPrice:ie,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(yt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)($t,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:W,data:M,handleToggle:()=>Q(!V),show:V}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(Xt,{position:"relative",data:M,FONT_SIZE:W,product:U})}),(0,f.jsx)(Xt,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:W,PRODUCT_TILE_WIDTH:P,product:U,itemQuantity:rt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:mt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H})]})}const ee=(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},ie=(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},ne=(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},oe=(0,n.createContext)({setShowOptionsChart:null});var re=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,n.useState)(!1);return(0,f.jsx)(oe.Provider,{value:{setShowOptionsChart:s},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)(te,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a})})}),d?(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)(Dt,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var le=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)(Ot,{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)(re,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const ae=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function de(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 se=i(3788),ce=i(758);const ue=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,he=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var pe=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)(U.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),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} ${"50529403072"!==b&&(0,p.ZX9)(b)?"\n \n -via Whatmore":""}`};navigator.share&&!he?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)(ce.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,M.kz)({userInteractionType:H.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",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(b)?ue(g.total_share):null!==(r=null===tt.m||void 0===tt.m||null===(a=tt.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},ve=i(3420),xe=i(7170);var me=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)(U.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,M.kz)({userInteractionType:H.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,M.kz)({userInteractionType:H.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)(xe.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)(ve.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)?ue(N):null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ge=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 fe=i(1941);const we=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"})})})},je=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 ye=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)(A.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(at.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)(ge,{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)(we,{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)(je,{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 be=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,fe.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`,m=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(xt.N,{href:m,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,f.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},Ce=i(9879),Se=i(9556),ke=i(2209);var Ie=()=>(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 _e=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)(U.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,M.kz)({userInteractionType:H.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)(ke.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)(Se.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)(Ie,{}),(0,f.jsx)(Se.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,M.kz)({userInteractionType:H.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)))})})]})},ze=i(4533),Ee=i(9935);var Te=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)(U.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,M.kz)({userInteractionType:H.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,M.kz)({userInteractionType:H.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)(dt.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)(L,{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)(Ee.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)(L,{onCloseCallback:C})}),(0,f.jsxs)(dt.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 Ne=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Te,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Fe=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,ze.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)(Ne,{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)(_e,{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})})},Ae=i(6118);const Le=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,f.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,f.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})})};var Pe=function(t){const e=(0,v.Xd)("whatmoreShopId"),i=t.event,[n,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,se.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),n=await e.blob(),o=window.URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${i.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Le,{iconSize:a})})})})};function Be(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(U.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,se.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,st.B)(C)?(0,f.jsx)(Ce.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 Oe=function(t){var e,i,o;const[r,a,d]=(0,fe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),S=(0,n.useContext)(Ci),{whatmoreEventsBrowsingTemplate:k}=(0,n.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),F=t.event,A=t.storySetId,P=t.isLast,B=t.onCloseCallback,O=t.focusRef,R=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,X=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)(U.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(F,1)})(),(0,M.kz)({userInteractionType:H.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:F,productList:null===F||void 0===F?void 0:F.products,ctaList:null===F||void 0===F?void 0:F.cta});const e=F.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${F.products.length>1?"these products":"this product"} I saw on ${null===(t=F.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Ft.S,{userInteractionType:H.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)(Fe,{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)(ye,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(de,{progress:ae(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(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)(Be,{event:F,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(b.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(L,{event:F,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{X()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.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)(D,{swipeUp:!P})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==C&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Pe,{event:F})})})]}),(0,p.oZc)(C)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ge,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(me,{event:F})}),(0,ht.Yt)(k)&&"50529403072"===C&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ge,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Nt.Z_)(F)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(N,{event:F,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),m&&(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Lt,{event:F,productClickHandler:R})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(be,{brandName:null===F||void 0===F?void 0:F.brand,fontSize:.033*E})})]})]})},De=i(5491),Re=i.n(De),We=i(6493);var Ve=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,L=n.useRef(),P=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,n.useContext)(U.B),{questionList:G}=(0,n.useContext)(Ci),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=Re()((()=>{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,se.s)((0,We.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=ae(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})})})}),X?(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)(Oe,{focusRef:L,event:t.event,isLast:O,onCloseCallback:t=>{A(t),(0,M.DG)({userInteractionType:H.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,M.kz)({userInteractionType:H.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:P})})}):(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)(re,{focusRef:L,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",{})]})})},Qe=i(2039),Me=i(6613),He=i(1085),Ue=i(5727);var Xe=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,se.s)((0,We.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,He.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ue.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,He.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ye=i(3294),$e=i(9821);var qe=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,Pt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,Me.MN)()&&0==m)return(0,$e._)()?(0,f.jsx)(Xe,{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:Ye.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ve,{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:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.ij)(o)||(0,Qe.Il)(o))return(0,f.jsx)(Ve,{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:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:b}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(le,{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",{})},Ke=i(4806),Ge=i.n(Ke),Ze=i(2804),Je=i(6834);function ti(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)(Je.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)(Ze.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 ei=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)(ti,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(ti,{type:"right",onClick:a,fontSize:l})]})})},ii=i(964),ni=i(3330);var oi=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 ri=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 li=function(t,e){const i=(0,n.useRef)(Re()(((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)}]},ai=i(6325);var di=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)(Ci),{slideDirection:z}=(0,n.useContext)(Ci),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,F]=oi(i,e.length),[A,L]=ri(z,10),[P]=li("vertical",10),[B,O]=(0,n.useState)(!0),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)(U.B);function X(){O(!1)}function Y(t){X(),setTimeout((()=>{a(t)}),500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=i;const{questionList:G}=(0,n.useContext)(Ci);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)(Ge(),{isOpen:B,onRequestClose:X,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(ai.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,V.YU)("#000000",13)},onTouchStart:t=>{A(t)},onTouchEnd:t=>{if(C)return;const e=L(t);e&&J(0,e)},onWheel:t=>{C||P(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,M.kz)({userInteractionType:H.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,M.DG)({userInteractionType:H.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,ht.Wd)($)+(0,ht.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.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,ni.sendVideoViewEventToGA)(E,ii.DK,ii.K1),(0,ze.Ch)(i.event_id,i.products,ii.DK,ii.K1,t)):T.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(E,ii.Sx,ii.rz),(0,ze.Ch)(i.event_id,i.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t))})(),(0,M.UM)({userInteractionType:H.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)(qe,{event:e[c],showQuestion:h,onBack:Y,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)(ei,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},si=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const ci=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return si.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)};ci.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var ui=ci;var hi=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)(Ci),[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)(U.B),[N,F]=(0,n.useState)(!1),[A,P]=(0,n.useState)(null);function B(){F(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,X=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,n.useRef)(0);function $(t){B(),setTimeout((()=>{R(t)}),500)}function q(){A&&!A.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&A.slideNext()}(0,n.useEffect)((()=>(F(!0),()=>{})),[]),C($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:N,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,V.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:tt>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;y?b(!1):(w||j(!0),e=O[t.activeIndex],m||g||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ni.sendVideoViewEventToGA)(I,ii.DK,ii.K1),(0,ze.Ch)(e.event_id,e.products,ii.DK,ii.K1,t)):_.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(I,ii.Sx,ii.rz),(0,ze.Ch)(e.event_id,e.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t))})(),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,M.UM)({userInteractionType:H.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)(L,{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)(qe,{event:O[e%Q],onBack:$,isPlaying:!0,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(o)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(Y.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(be,{brandName:X,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},pi=i(340),vi=i(5089),xi=i(572),mi=i(8603);var gi=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 fi=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,Pt.A)(),[y]=(0,v.QN)("isInDesignMode"),[b]=(0,v.QN)("isDemoBrand"),[C]=(0,v.QN)("whatmoreShopId"),[S,k]=(0,n.useState)(!0),[I,_]=(0,v.QN)("isFirstIndicatorRenderDone"),[z,E]=(0,n.useState)(null),[T,N]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:A}=(0,n.useContext)(U.B),[L,P]=oi(s,c.length);function B(t){r(t)}const O=F.landingLocationType,D=F.templateType;function R(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(P("right"),z&&z.slideNext())}function W(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(P(t),z&&("left"==t?z.slidePrev():z.slideNext()))}const[V,Q]=(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=>{E(t)},onSlideChange:t=>{S?k(!1):(I||_(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(O)+(0,ht.gf)(D)+(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,ni.sendVideoViewEventToGA)(C,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===A||void 0===A?void 0:A.userType)})()}(c[L().activeIndex]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map((e=>(0,f.jsx)(o.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=c[L()[e]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Qe.ij)(r)||(0,Qe.Il)(r)?(0,f.jsx)(Ve,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:B,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:N,onVideoEndedCallback:R,progressUpdateCallback:t=>{Q(t)},leftOpenSpaceClickHandler:()=>{W("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{W("right")},storyId:i.id,source:Ye.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)(gi,{})})}},"event-story-view-slide-"+e)))})})};var wi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,fe.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ci),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=oi(a,i.length),[b,C]=ri("horizontal",50),[S]=li("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!0),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)(U.B);function F(){_(!1)}function A(t){F(),setTimeout((()=>{e(t)}),500)}g(A);const L=T.landingLocationType,P=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(Ge(),{isOpen:I,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{b(t)},onTouchEnd:t=>{const e=C(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,ht.Wd)(L)+(0,ht.gf)(P)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(w,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const d=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(fi,{stories:i[j()[d]],onBack:A,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[d]?k:0},"event-story-view-"+i[j()[d]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var ji=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,Qe.ij)(g)||(0,Qe.Il)(g)?(0,f.jsx)(Ce.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 yi=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)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)(U.B),[E,T]=(0,n.useState)(!1),[N,F]=(0,n.useState)(null);function A(){T(!1)}t.events;const P=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){A(),setTimeout((()=>{B(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),C(W);const V=_.landingLocationType,Q=_.templateType;function X(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:E,closeCallback:A,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*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,i;F(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;y?b(!1):(w||j(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(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,ni.sendVideoViewEventToGA)(I,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(L,{onCloseCallback:B})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(fi,{stories:t,onBack:W,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:X,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(ji,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(be,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const bi=(0,mi.A)({key:"whatmore-css-sv"}),Ci=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Si=function(t){var e,i,o;const[r,l,a]=(0,fe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",b="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete vi.Ay.styles.global,c?(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(yi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(wi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b,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)(di,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(hi,{events:h,eventIndex:x,onBack:m})})})})}},6125:function(){},6305:function(t,e,i){var n=i(9950),o=i(1348),r=i(5830),l=i(1052),a=i(140),d=i(8149),s=i(5647),c=i(3262),u=i(5551);e.A=function(t,e,i){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,m]=(0,n.useState)(null),g=(0,n.useRef)(null),{closeClickComponent:f}=(0,n.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,n.useContext)(u.B),[j,y]=(0,n.useState)({state:"init",cart_count:t});function b(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:j.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function C(t){const e=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function S(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(g.current&&g.current.length>=1){return g.current.filter((t=>t.available)).length>=1}return!1}function z(t,e,i){p||v||(async()=>{(0,a.tO)(t,e,i)})()}function E(t,n){const a=C(t);if(!a)return void b("init",j.cart_count);b("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,i,e,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(i,e,1),b("init",j.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,(()=>{}),100,window.location.hostname,a,e.client_product_id,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}return[j,function(t){const n=[];b("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,d.M)(t,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const i=S(e);if(m(i),I(i)&&_()){const e=C([k(i[0]),k(i[1]),k(i[2])]);return e?(n.push(t),e):void b("init",j.cart_count)}}))))).then((a=>{const d=a.filter((t=>void 0!=t));(0,l.cF)(d,1,(0,o.NCy)(h),h,i,e,t,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{z(i,t,1)})),b("init",j.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}))},b,x,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const n=S(e);m(n),I(n)||i?_()?E([k(n[0]),k(n[1]),k(n[2])],t):b("errored",null):b("awaitingVariantSelection",null)})).catch((t=>{b("errored",null)}))},E,function(t){var e,i,n,r;const l=g.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,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},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]}},7035:function(t,e,i){i.d(e,{m:function(){return n}});const n={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",shop_now:"SHOP NOW",off:"off"},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",off:"\u062e\u0635\u0645"},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",off:"rabat"},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",off:"rabatt"},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",off:"descuento"},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",off:"remise"},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",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},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",off:"korting"},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",off:"de desconto"},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",off:"\u6298\u6263"}}},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}}}},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:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}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,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(140);var u=i(5144),h=i(4905),p=i(5647),v=i(1348),x=i(8149),m=i(5551),g=i(1351),f=i(6157),w=i(4414);function j(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,N]=(0,d.useState)(!1),[F,A]=(0,d.useState)({state:"initial"}),[L,P]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(m.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){C||S||(async()=>{(0,c.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,x.M)(R,(0,v.NCy)(_),_);P({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const Q=null!==(i=t.width)&&void 0!==i?i:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{N(!0),V(D,R,1),(0,g.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout((()=>{B()}),2e3)},children:"initial"===F.state?(0,w.jsx)(n.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{N(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(j,{event:D,product:R,baseFontSize:W,cartState:F,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);