whatmore-react-assets 1.0.402 → 1.0.404
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 +1 -1
- package/static/js/{364.5137f4df.chunk.js → 364.a1eb8927.chunk.js} +1 -1
- package/static/js/580.fd96b795.chunk.js +1 -0
- package/static/js/660.3ea4358e.chunk.js +1 -0
- package/static/js/959.67b02559.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/580.bef9c451.chunk.js +0 -1
- package/static/js/660.0076c026.chunk.js +0 -1
- package/static/js/959.488e80e8.chunk.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[580],{3580:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var r=n(7313),o=n(8866),i=n(7753),s=(n(9111),n(123),n(9778),n(9854)),a=n(868),l=n(6417);var d=function(t){var e,n;const[d,c,p]=(0,o.Z)(),h=(0,i.MO)("whatmorePrimaryFont"),u=((0,i.MO)("whatmorePrimaryColor"),(0,i.MO)("whatmoreSecondaryColor")),f=(0,i.MO)("whatmoreShopId"),[x,m]=(0,r.useState)(!1),w=t.storyId,g=(0,a.V)(t.imageUrl),y=t.title,v=t.onClick,b=t.template,j=(0,s.f6)(f),k="template-stories-a"===b?"50%":"30%",z="portrait"==d?1:(0,s.Zy)(f),S=Math.floor(t.tileSize*z),C=.12*S*(0,s.LM)(f),F=null!==(e=(0,s.Q)(f))&&void 0!==e?e:h,L=null!==(n=(0,s.u2)(f))&&void 0!==n?n:[u,j,u,j,u];return(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:S*(0,s.jJ)(f)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{m(!0),v(w)},className:[x?"whatmore-scale-on-tap":""].join(" "),children:[(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:k,boxShadow:"0px 2px 1px 0px "+L[0]+"50, 0px -2px 1px 0px "+L[1]+"50, 2px 0px 1px 0px "+L[2]+"50, -2px 0px 1px 0px "+L[3]+"80, 2px -2px 1px 0px "+L[4]+"80, -2px 2px 1px 0px "+L[0]+"DA, 2px 2px 1px 0px "+L[1]+"DA, -2px -2px 1px 0px "+L[2]+"DA"},children:(0,l.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:S+"px",borderRadius:k,border:"3px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,l.jsx)("img",{src:g,style:{objectFit:"cover",height:S+"px",width:S+"px",backgroundColor:"white"},alt:"story image"})})}),(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,l.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",C+"px","important")},style:{textAlign:"center",color:(0,s.WS)(f),fontFamily:F,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto !important"},children:y.substring(0,24)})})]})},c=n(9302);const p=(0,n(2575).Z)({key:"whatmore-stories-css"});var h=function(t){const[e,n,a]=(0,o.Z)(),[h]=(0,i.j1)("whatmoreLandscapePadding"),[u]=(0,i.j1)("whatmoreStoryTileSize"),[f]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[x]=(0,i.j1)("whatmoreShopId"),[m,w]=(0,r.useState)("center"),g=(0,r.useRef)(null);var y=t.eventsStories;const v=t.onClick,b=t.template,j=t=>{if(g.current){const e="left"===t?4*-k:4*k;g.current.scrollBy({left:e,behavior:"smooth"})}};(0,r.useEffect)((()=>{!function(){if(g.current){const t=g.current.scrollWidth,e=g.current.offsetWidth;w(t>e?"flex-start":"center")}}()}),[m,a]);const k="landscape"===e?n*(f/100)*.3:a*(u/100)*.5;return(0,l.jsx)(c.C,{value:p,children:(0,l.jsx)("div",{style:{left:h+"px",right:h+"px",marginBottom:"portrait"==e?(0,s.cj)(x):(0,s.TM)(x)},children:(0,l.jsx)("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:"landscape"==e&&!(0,s.DF)(x)||"portrait"==e&&!(0,s.J)(x)?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:m,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:g,children:y.map(((t,e)=>(0,l.jsx)(d,{storyId:t.id,tileSize:k,onClick:t=>{v(e)},template:b,imageUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)))}),"landscape"===e&&(0,s.sM)(x)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{onClick:()=>j("left"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",left:0},children:(0,l.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:"<"})}),(0,l.jsx)("button",{onClick:()=>j("right"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",right:0},children:(0,l.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:">"})})]})]})})})})}},868:function(t,e,n){n.d(e,{V:function(){return a}});var r=n(9854),o=n(7753);const i={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},s={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},a=function(t){const e=(0,o.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,r.zp)(e))return t;if("AZURECDN"==(0,r.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,r.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(s))if(t.includes(e))return t.replace(e,s[e]);return t}}return t}},8866:function(t,e,n){var r=n(7313);function o(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=o();const[i,s]=(0,r.useState)(["portrait",e,n]);return(0,r.useLayoutEffect)((()=>{function t(){var[t,e]=o();s(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),i}},9111:function(){},123:function(){},9778:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[660],{1660:function(t,e,n){n.r(e),n.d(e,{EventClickComponentContext:function(){return un},default:function(){return pn}});var i=n(4897),o=n(7313),r=n(5160),a=n(7753),l=n(6417);var d=n(499),s=n(6422),c=n(2210),h=n(8486),u=n(3271),p=n(9854),x=n(7789),g=n(7053),m=n(4844),f=(n(8493),n(264));var v=function(t){return(0,l.jsx)(f.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},w=n(5098),j=n(3437),C=n(3455);var S,y,b,k,I=function(t){const[e,n]=(0,s.Z)(),[i,o,r,a]=(0,x.Z)(),d=.08*a;function c(){n(!e)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:e?(0,l.jsx)(C.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}}):(0,l.jsx)(j.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}})})})},F=n(168),_=n(8449),T=n(5180),E=n(686);const O=(0,E.F4)(S||(S=(0,F.Z)(["\n 0%,10%,15% {\n opacity: 0; \n }\n 25%{\n opacity: 0.25;\n transform: translateY(-25%);\n }\n 50%{\n opacity: 0.5;\n transform: translateY(0%);\n }\n 75% {\n opacity: 0.75;\n transform: translateY(-8%)\n }\n 100%{\n opacity: 1;\n transform: translateY(0%)\n }\n"]))),P="".concat(O," 0.5s linear"),D=(0,E.F4)(y||(y=(0,F.Z)(["\n 30% { transform: scale(1.2); }\n 40%, 60% { transform: rotate(-20deg) scale(1.2); }\n 50% { transform: rotate(20deg) scale(1.2); }\n 70% { transform: rotate(0deg) scale(1.2); }\n 100% { transform: scale(1); }\n"]))),z="\n ".concat(D," 1.5s linear;\n"),R=(0,E.F4)(b||(b=(0,F.Z)(["\n 3% { transform: scale(1.2); }\n 4%, 6% { transform: rotate(-20deg) scale(1.2); }\n 5%,7% { transform: rotate(20deg) scale(1.2); }\n 8% { transform: rotate(0deg) scale(1.2); }\n 10% { transform: scale(1); }\n"]))),L=("\n ".concat(R," 10s linear infinite;\n"),(0,E.F4)(k||(k=(0,F.Z)(["\n 0% { transform: scale(1); }\n 10% { transform: scale(1.2); }\n 20% { transform: scale(1); }\n"]))));"\n ".concat(L," 5s ease-in-out infinite;\n");var K,M=n(4937);const Z=(0,E.F4)(K||(K=(0,F.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),W="\n ".concat(Z," ").concat(3,"s ease-in-out;\n");function q(t){const[e,n,i,r]=(0,x.Z)(),[d]=(0,a.j1)("whatmoreSecondaryColor"),[s,c]=(0,o.useState)(0),h=t.event,p=t.onClick,g=h.products.length;t.isFirstProductsIconClickDone;(0,o.useEffect)((()=>{const t=setInterval((()=>{c((t=>(t+1)%g))}),3e3);return()=>{clearInterval(t)}}),[]);const m=.24,f=.024;var v=r*m+"px",j=r*m+"px",C=r*f*1.5+"px",S=r*f+"px",y=r*f*1.5+"px";if(void 0==h.products||0==h.products.length)return(0,l.jsx)(l.Fragment,{});var b=h.products;return(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,l.jsxs)(u.xu,{margin:"10px",width:v,height:j,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:P,onClick:()=>p(),children:[(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:b[s].thumbnail_image,objectFit:"cover",borderRadius:"lg",animation:W},s),(0,l.jsx)(u.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,l.jsx)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:d,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:S,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(M.Z,{sx:{color:"white",fontSize:y}})})]})})})}),(0,l.jsx)(u.Kq,{direction:"row",height:"fit-content",width:v,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.Ct,{fontSize:C,variant:"subtle",textColor:d,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:g>1?g:""})})]})})}var H=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),[i,r,d,s]=(0,x.Z)(),[c,h]=(0,o.useState)(!1),p=t.onToggle,g=t.event,m=.07*s;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.bK,{style:{marginTop:"10px"},children:e?(0,l.jsx)(_.Z,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"relative",zIndex:2},onClick:()=>{p("minimize-button")}}):(0,l.jsx)(q,{event:g,onClick:()=>{p("products-button"),h(!0)},isFirstProductsIconClickDone:c})})})},A=n(2634),N=n(8302);var B,V,U=function(t){const e=t.onCloseCallback,[n,i,o,r]=(0,x.Z)(),a=.08*r;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsx)(N.Z,{sx:{boxShadow:3,color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e(t)}})})})},Y=n(756),X=n(5428),G=n(8022);var J=function(t){var e,n;const[i,r,a,d]=(0,x.Z)(),[s,c]=(0,o.useState)(!0),{slideDirection:h}=(0,o.useContext)(un),p=null!==(e=t.showForSeconds)&&void 0!==e?e:3,g=null!==(n=t.delayInSeconds)&&void 0!==n?n:1;t.swipeUp,(0,o.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*p);return()=>{clearTimeout(t)}}),[]);const m=.15*d,f=.07*d,v=(0,E.F4)(B||(B=(0,F.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateY(-100%) translateX(+10%) rotate(+30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),w="".concat(v," infinite 1.5s linear"),j=(0,E.F4)(V||(V=(0,F.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateX(30%) translateY(20%) rotate(-30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),C="".concat(j," infinite 1.5s linear");return(0,l.jsx)(Y.MT,{unmountOnExit:!0,initialScale:.2,in:s,reverse:!0,delay:g,children:(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,l.jsx)(u.M5,{animation:"vertical"===h?w:C,children:"vertical"===h?(0,l.jsx)(X.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}}):(0,l.jsx)(G.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var $=function(t){const[e,n]=(0,a.j1)("isFirstIndicatorRenderDone"),[i]=(0,a.j1)("indicatorRenderSeconds"),r=i,d=t.swipeUp;return(0,o.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,l.jsx)(J,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:d})},Q=n(9316),tt=n(5254);const et="15px";var nt=n(7376),it=n(778),ot=n(4136);var rt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),[d]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId"),[c,h,g,m]=(0,x.Z)(),[f,v]=(0,o.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(ot.I),S=.1*g,y=.95*m,b=.05*m;return(0,l.jsx)(u.Kq,{direction:"row",width:m,height:S,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.800)",children:(0,l.jsx)(u.Kq,{direction:"column",width:"fit-content",height:S,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,l.jsx)(u.xu,{width:y+"px",height:"fit-content",padding:"6px",marginTop:et,backgroundColor:i,borderRadius:"5px",animation:f?Q.mT:null,onAnimationEnd:()=>{v(!1)},marginBottom:(0,p.pq)(s),onClick:()=>{v(!0),function(t,i){e||n||(async()=>{(0,r.wz)(t,i),(0,nt.GF)({userInteractionType:it.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:C,event:t,productList:[i],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,p.lj)(s)?t.product_link+"?"+(0,p.aw)(s)+"&"+(0,p.n9)(s)+"&"+(0,p.v)(s):t.product_link}(w)},_hover:{backgroundColor:(0,tt.lA)(i,8)},cursor:"pointer",children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*b+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:d+" !important",color:"white !important"},children:"Shop Now"})})})})})},at=n(7009),lt=n(5945),dt=n(5456),st=n(6984),ct=n(6227),ht=n(7329);n(9111);function ut(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height,m=t.title,f=t.showInProgressIcon;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:f?(0,tt.lA)(n,8):n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important"},children:["\xa0",m,"\xa0"]}),f?(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(ht.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,l.jsx)(l.Fragment,{})]})})}function pt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c,fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important"},children:["\xa0",(0,p.t)(r),"\xa0"]})})})})}function xt(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),[i]=(0,a.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,d=t.height;return(0,l.jsx)(u.xu,{width:r,height:d,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,l.jsxs)(u.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o,fontWeight:"semibold",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function gt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[o]=(0,a.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),d=t.onClick,s=t.cartCount,c=t.width,h=t.height,p=t.onCartIconClick;return(0,l.jsx)(u.xu,{width:c,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,l.jsx)(u.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,l.jsx)(ct.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,l.jsx)(u.xv,{color:n,fontSize:1.3*r,fontWeight:"semibold",sx:{fontFamily:i+" !important"},children:s}),(0,l.jsx)(u.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),d()},children:(0,l.jsx)(st.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var mt=function(t){var e,n,i,o;const[r]=(0,a.j1)("whatmoreShopId"),d=t.event,s=t.product,c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,p=t.cartCount,x=t.onClickAtc,g=t.onCartIconClick;function m(){x()}const f=null!==(i=t.width)&&void 0!==i?i:"100%",v=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,l.jsx)(Y.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,l.jsx)(xt,{event:d,product:s,baseFontSize:c,width:f,height:v})}):"init"==u?0==p?(0,l.jsx)(pt,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v}):h?(0,l.jsx)(Y.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,l.jsx)(gt,{onClick:m,event:d,product:s,baseFontSize:c,cartCount:p,width:f,height:v,onCartIconClick:g})}):(0,l.jsx)(pt,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v}):(0,l.jsx)(ut,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v,title:"awaitingVariantSelection"==u?"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})},ft=n(6163),vt=n(6967),wt=n(6233);const jt=(0,a.MO)("isInDesignMode"),Ct=(0,a.MO)("isDemoBrand");async function St(t,e,n,i,o,r){return"shopify"==n?(0,m.wW)(t,e,i):(jt||Ct||(async()=>{(0,vt.FF)(o,r)})(),(0,wt.jg)(t,e,i))}function yt(t,e){return"shopify"==t?(0,m.JL)(e):(0,wt.TE)(e)}var bt=function(t,e,n){const[i]=(0,a.j1)("whatmoreShopId"),[l]=(0,a.j1)("isInDesignMode"),[d]=(0,a.j1)("isDemoBrand"),[s,c]=(0,o.useState)(null),h=(0,o.useRef)(null),{closeClickComponent:u}=(0,o.useContext)(un),[x,m]=(0,o.useState)({state:"init",cart_count:t});function f(t,e){m({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,a.bU)("whatmoreAllowAutoSlide",!1):(0,a.bU)("whatmoreAllowAutoSlide",!0)}function v(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function w(t){const o=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!o)return void f("init",x.cart_count);f("atcApiCallInProgress",null);St(o,1,(0,p.Ip)(i),i,n,e).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){l||d||(async()=>{(0,r.JX)(t,e,n)})()}(n,e,1),f("init",x.cart_count+1),(0,a.bU)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[x,s,function(){f("productVariantDetailsApiCallInProgress",null),(0,g.pO)(e,(0,p.Ip)(i),i).then((t=>{h.current=t.variants;const e=function(t){var e=[],n=[],i=[];return t.variants.forEach((o=>{var r,a,l;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(a=o.available)||void 0===a||a,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(l=o.available)||void 0===l||l,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}(t);c(e),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(e)?f("awaitingVariantSelection",null):!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):w([v(e[0]),v(e[1]),v(e[2])])})).catch((t=>{f("errored",null)}))},w,function(t){var e,n;const i=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==i.length?null:{price:(null!==(e=i[0].price)&&void 0!==e?e:0)/100,compare_price:(null!==(n=i[0].compare_at_price)&&void 0!==n?n:0)/100}},function(){"do_nothing"!==(0,p.v9)(i)&&("go_to_cart_page"!==(0,p.v9)(i)?"open_cart_slider"!==(0,p.v9)(i)||null!==u&&u():yt((0,p.Ip)(i),i))}]};var kt=function(t){var e,n,i,r;t.product,t.event;const d=t.productVariantOptions,s=null!==(e=t.width)&&void 0!==e?e:"100%",c=null!==(n=t.height)&&void 0!==n?n:"fit-content",h=null!==(i=t.baseFontSize)&&void 0!==i?i:10,p=t.onOptionSelected,g=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",[m]=(0,a.j1)("isInDesignMode"),[f]=(0,a.j1)("isDemoBrand"),[v]=(0,a.j1)("whatmoreSecondaryColor"),[w]=(0,a.j1)("whatmorePrimaryFont"),[j]=(0,a.j1)("whatmoreShopId"),[C,S,y,b]=(0,x.Z)();function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[I,F]=(0,o.useState)([k(d[0]),k(d[1]),k(d[2])]);return(0,o.useEffect)((()=>{p(I)}),[I]),(0,l.jsx)(u.Kq,{direction:"column",width:s,height:c,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:d.map(((t,e)=>{if(0!=t.length)return(0,l.jsxs)(u.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,l.jsxs)(u.xv,{as:"b",fontSize:1.2*h+"px",sx:{color:g+" !important",fontFamily:w+" !important"},align:"center",children:["\xa0",t[0].type,"\xa0"]}),(0,l.jsx)(u.Eq,{justify:"center",children:t.map((t=>{return(0,l.jsx)(u.Uc,{children:(0,l.jsx)(u.xu,{borderRadius:"2px",padding:"2px",onClick:n=>{n.stopPropagation(),t.available&&F([0==e?t.option:I[0],1==e?t.option:I[1],2==e?t.option:I[2]])},backgroundColor:t.option==I[e]?v:"white",_hover:{bg:t.option==I[e]?v:(0,tt.lA)(v,5)},cursor:"pointer",children:(0,l.jsxs)(u.xv,{as:t.available?"samp":"s",fontSize:h+"px",sx:{color:(t.available?t.option==I[e]?"white":"black":"gray")+" !important",fontFamily:w+" !important"},align:"center",paddingX:(n=t.option,n.length>=3?"0px":.5*h+"px"),children:["\xa0",t.option,"\xa0"]})})},t.option);var n}))},e)]},e)}))})},It=n(9219);var Ft=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),d=(0,a.MO)("whatmoreSecondaryColorShade900"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),{whatmoreUITheme:y}=(0,o.useContext)(ot.I),{whatmoreWidgetSourceDetails:b}=(0,o.useContext)(ot.I),[k,I,F,_,T,E]=bt(0,C,t.event),[O,P]=(0,o.useState)(null),[D,z]=(0,o.useState)(parseFloat(C.price)),[R,L]=(0,o.useState)(parseFloat(C.compare_price)),[K,M]=(0,o.useState)(C.currency),Z=t.event,W=t.productClickHandler;(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,It.Rb)(C,(0,p.Ip)(c),c).then((t=>{S(t),z(parseFloat(t.price)),L(parseFloat(t.compare_price)),M(t.currency)}))}),[]);var q=.68*f,H=.55*q,A=.4*q,N=q*(.55-.4),B=q+"px",V=A+"px",U=N+"px",X=.12*A;const G=(0,p.IT)(c);return(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,p.pq)(c),width:B,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{!function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),W(i),j(!0)}(Z,C)},backgroundColor:(0,tt.lA)("#ffffff",(0,p.U5)(c)),animation:v?Q.mT:null,borderRadius:"round"==y?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,p.al)(c),borderColor:(0,p.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:V,width:V,bgColor:d,children:(0,l.jsx)(w.Ee,{width:V,height:V,src:C.thumbnail_image,sx:{objectFit:(0,p.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:V,width:q-A+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,p.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:2,fontSize:1.1*X+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:(0,lt.s)(null==C.title?"":C.title.toString())}),(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*X+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:["\xa0"," "+(0,It.jx)(D,"",c,K)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,dt.B)(D,R)?(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:.9*X+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"gray !important",padding:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,It.jx)(R,"",c,K)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,p.Fr)(c)?(0,l.jsx)(u.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(at.Z,{sx:{color:i,fontSize:1.3*X+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(Y.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==k.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==k.state&&null!=I?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*H+"px",marginBottom:.1*H+"px",overflowY:"auto",overflowX:"hidden",maxHeight:H*G+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(kt,{width:B,height:"fit-conten",event:Z,product:C,productVariantOptions:I,baseFontSize:1.2*X,onOptionSelected:t=>{!function(t){P(t);const e=T(t);e&&(z(e.price),L(e.compare_price))}(t)}})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:U,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(mt,{baseFontSize:.3*N,event:Z,product:C,cartState:k.state,cartCount:k.cart_count,onClickAtc:t=>{"init"==k.state?(F(),(0,nt.GF)({userInteractionType:it.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:b,event:Z,productList:[C],ctaList:Z.cta})):"awaitingVariantSelection"==k.state&&_(O)},onCartIconClick:()=>{E()}})})]})},_t=n(3867);var Tt=function(t){var e,n,i;const[o]=(0,a.j1)("isInDesignMode"),[d]=(0,a.j1)("isDemoBrand"),[s]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmorePrimaryFont"),h=t.event,p=t.product,x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,l.jsx)(u.rU,{href:p.product_link,color:s,onClick:()=>{!function(t,e){o||d||(async()=>{(0,r.$L)(t,e)})()}(h,p)},children:(0,l.jsx)(u.xu,{width:g,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{lineHeight:"100%",fontSize:1.4*x,fontWeight:"semibold",sx:{fontFamily:c+" !important",color:s+" !important"},children:" VIEW MORE "})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(at.Z,{sx:{color:s,fontSize:1.4*x}})})]})})})},Et=n(7605);function Ot(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height,m=t.title;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,l.jsxs)(u.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Pt=function(t){var e,n,i;const[o]=(0,a.j1)("whatmoreShopId"),r=t.event,d=t.product,s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,h=null!==(n=t.width)&&void 0!==n?n:"100%",u=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,l.jsx)(Ot,{onClick:function(){c()},event:r,product:d,baseFontSize:s,width:h,height:u,title:"SHOP NOW"})};var Dt=function(t){var e;const[n]=(0,a.j1)("isInDesignMode"),[i]=(0,a.j1)("isDemoBrand"),[d]=(0,a.j1)("whatmoreSecondaryColor"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),{whatmoreWidgetSourceDetails:y}=(0,o.useContext)(ot.I),[b,k,I,F,_,T]=bt(0,C,t.event),[E,O]=(0,o.useState)(null),[P,D]=(0,o.useState)(parseFloat(C.price)),[z,R]=(0,o.useState)(parseFloat(C.compare_price)),[L,K]=(0,o.useState)(C.currency),M=t.event,Z=t.productClickHandler,W=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1;(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,It.Rb)(C,brandDomainContext(c),c).then((t=>{S(t),D(parseFloat(t.price)),R(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var q=f*W,H=.3*q,A=q+"px",N=.7*H,B=.9*N,V=.12*H;const U=(0,p.IT)(c);function X(t,e){n||i||(async()=>{(0,r.wz)(t,e)})(),Z(e),j(!0)}return(0,l.jsx)(u.Kq,{direction:"row",width:A,height:"fit-content",justifyContent:"center",children:(0,l.jsx)(u.xu,{marginTop:et,marginBottom:(0,p.pq)(c),width:A,onClick:t=>{},animation:v?Q.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{X(M,C)},children:[(0,l.jsx)(u.xu,{height:N+"px",width:N+"px",children:(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,l.jsx)(u.xu,{height:B+"px",width:B+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,l.jsx)(w.Ee,{width:B+"px",height:B+"px",src:C.thumbnail_image,objectFit:"cover"})})})}),(0,l.jsx)(u.xu,{height:N+"px",width:q-N+"px",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*V+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"white !important"},children:(0,lt.s)(C.title.toString())}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",aligntItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*V+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"white !important"},children:["\xa0"," ",(0,It.jx)(parseFloat(P),"",c,L)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,dt.B)(C.price,C.compare_price)?(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:.8*V+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,It.jx)(parseFloat(z),"",c,L)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(_t.Z,{storeId:c,productId:C.client_product_id,productLink:C.product_link,fontSize:1*V,fontColor:"white"})})]})]})})]}),(0,l.jsx)(Y.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=k?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*H+"px",marginBottom:.1*H+"px",overflowY:"auto",overflowX:"hidden",maxHeight:H*U+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(kt,{width:A,height:"fit-content",event:M,product:C,productVariantOptions:k,baseFontSize:1*V,onOptionSelected:t=>{!function(t){O(t);const e=_(t);e&&(D(e.price),R(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(Tt,{baseFontSize:.8*V,event:M,product:C,width:"100%",height:"100%"})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.Ib)(c)?(0,l.jsx)(Pt,{baseFontSize:.8*V,event:M,product:C,borderRadius:"md",onShopNowClick:t=>{X(M,C)}}):(0,l.jsx)(l.Fragment,{children:"form"===(0,p._5)(c)?(0,l.jsx)(ft.default,{baseFontSize:.8*V,event:M,product:C,width:"100%",height:"100%",showAddedToCart:!0}):(0,l.jsx)(mt,{baseFontSize:.8*V,event:M,product:C,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?(I(),(0,nt.GF)({userInteractionType:it.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:y,event:M,productList:[C],ctaList:M.cta})):"awaitingVariantSelection"==b.state&&F(E)},onCartIconClick:()=>{T()}})})})]})]})})})};var zt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),d=(0,a.MO)("whatmoreSecondaryColorShade900"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),{whatmoreUITheme:y}=(0,o.useContext)(ot.I),[b,k]=(0,o.useState)(parseFloat(C.price)),[I,F]=(0,o.useState)(parseFloat(C.compare_price)),[_,T]=(0,o.useState)(C.currency),E=t.event;t.productClickHandler,(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,It.Rb)(C,(0,p.Ip)(c),c).then((t=>{S(t),k(parseFloat(t.price)),F(parseFloat(t.compare_price)),T(t.currency)}))}),[]);var O=.68*f,P=.4*O,D=O+"px",z=P+"px",R=O*(.55-.4)+"px",L=.12*P;(0,p.IT)(c);const{whatmoreWidgetSourceDetails:K}=(0,o.useContext)(ot.I);function M(t){return(0,p.lj)(c)?t.product_link+"?"+(0,p.aw)(c)+"&"+(0,p.n9)(c)+"&"+(0,p.v)(c):t.product_link}function Z(t,i){e||n||(async()=>{(0,r.wz)(t,i),(0,nt.GF)({userInteractionType:it.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:K,event:t,productList:[i],ctaList:t.cta})})(),j(!0)}return(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,p.pq)(c),width:D,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{Z(E,C),window.location.href=M(C)},backgroundColor:(0,tt.lA)("#ffffff",(0,p.U5)(c)),animation:v?Q.mT:null,borderRadius:"round"==y?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,p.al)(c),borderColor:(0,p.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:z,width:z,bgColor:d,children:(0,l.jsx)(w.Ee,{width:z,height:z,src:C.thumbnail_image,sx:{objectFit:(0,p.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:z,width:O-P+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,p.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},style:{overflow:"hidden",textOverflow:"ellipsis"},sx:{fontFamily:s+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*L+"px !important",noOfLines:"2 !important"},children:(0,lt.s)(null==C.title?"":C.title.toString())}),(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:1*L+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"black !important"},children:["\xa0"," "+(0,It.jx)(b,"",c,_)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,dt.B)(b,I)?(0,l.jsxs)(u.xv,{as:"s",style:{minHeight:0},noOfLines:1,fontSize:.9*L+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"gray !important"},children:[" ",(0,It.jx)(I,"",c,_)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,p.Fr)(c)?(0,l.jsx)(u.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(at.Z,{sx:{color:i,fontSize:1.3*L+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,p.pp)(c)&&(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:R,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(Pt,{baseFontSize:.8*L,event:E,product:C,borderRadius:"md",onShopNowClick:t=>{Z(E,C),window.location.href=M(C)}})})]})};var Rt=function(t){const[e]=(0,a.j1)("whatmoreShopId"),n=(0,p.ey)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,l.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,l.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,l.jsx)(rt,{product:t.product,event:t.event}):"narrow-tile"==n?(0,l.jsx)(Dt,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,l.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})},Lt=n(6119),Kt=n(3388),Mt=n(7643);var Zt=function(t){const[e,n,i,o]=(0,x.Z)(),[r]=(0,a.j1)("whatmoreShopId"),d=(0,a.MO)("isInDesignMode"),s=(0,a.MO)("isDemoBrand"),g=t.event,m=t.productClickHandler,f=(0,p.ey)(r);if(!(0,Kt.kT)(g))return(0,l.jsx)(l.Fragment,{});if(1==g.products.length&&(void 0==g.cta||0==g.cta.length)){const t=g.products[0];return(0,p.rn)(r)?(0,l.jsx)(u.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,l.jsx)(Mt.u,{userInteractionType:it.K.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!d&&!s,children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(Dt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})}):(0,l.jsx)(u.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==f?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(Mt.u,{userInteractionType:it.K.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!d&&!s,children:(0,l.jsx)(Rt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})})}return(0,l.jsx)(u.M5,{children:(0,l.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(u.xu,{width:o+"px",backgroundImage:"narrow-tile"==f?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,l.jsxs)(c.tq,{slidesPerView:1==g.products.length?1:1.4,initialSlide:g.products.length<=2?0:1,centeredSlides:!0,modules:[h.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[g.products.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(Mt.u,{userInteractionType:it.K.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!d&&!s,children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(Rt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})},g.event_id+t.product_id))),void 0!=g.cta&&g.cta.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(Lt.Z,{event:g,cta:t},g.event_id+t.cta_id)})},g.event_id+t.cta_id)))]})})})})};var Wt=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),i=t.event,r=t.productClickHandler;return(0,o.useContext)(un).isIOS&&e?(0,l.jsx)(Zt,{event:i,productClickHandler:r},i.event_id):(0,l.jsx)(Y.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,l.jsx)(Zt,{event:i,productClickHandler:r},i.event_id)})};function qt(t){const e=t.event,[n,i,o,r]=(0,x.Z)(),[d]=(0,a.j1)("whatmorePrimaryFont");return(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.xv,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:d+" !important"},children:e.presenter_name.substring(0,15)}),(0,l.jsx)(A.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Ht,At=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[d,c]=(0,s.Z)(),[h,x]=(0,a.j1)("isFirstIndicatorRenderDone"),g=(0,o.useContext)(un),[m]=(0,a.j1)("whatmoreShopId"),f=t.event,v=t.isLast,w=t.onCloseCallback,j=t.focusRef,C=t.productClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsx)(u.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(qt,{event:f}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,l.jsx)(I,{focusRef:j}),(0,l.jsx)(U,{event:f,onCloseCallback:w})]})]})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",onClick:()=>{c(!d)}}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[g.totalEvents>1&&!h&&g.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!v})})}):null,void 0!=f.products&&f.products.length>0?(0,l.jsxs)(u.xu,{width:"full",children:[(0,p.Jm)(m)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(H,{event:f,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Wt,{event:f,productClickHandler:C})})]}):(0,l.jsx)("div",{})]})]})})};function Nt(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.setOpenShopNow,o=t.FONT_SIZE,r=t.setLockSwiper,d=null!==(e=t.headerText)&&void 0!==e?e:"Shop Now";return(0,l.jsxs)(u.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,l.jsx)(u.kC,{width:"10%",display:"flex !important"}),(0,l.jsx)(u.kC,{width:"90%",justifyContent:"center",children:(0,l.jsx)(u.xv,{align:"center",fontSize:1.25*o,fontWeight:"semibold",sx:{color:"black !important",fontFamily:n+" !important"},as:"b",children:d})}),(0,l.jsx)(u.kC,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),r(!1)},cursor:"pointer",children:(0,l.jsx)(N.Z,{sx:{boxShadow:3,color:"black !important",fontSize:1.2*o,filter:"drop-shadow(0 0 5px black);"}})})]})}function Bt(t){const[e,n,i,o]=(0,x.Z)(),[r]=(0,a.j1)("whatmorePrimaryFont"),[d]=(0,a.j1)("whatmoreShopId"),s=(t.data,t.event,t.product,t.setShowOptionsChart);var c=.4*o*.8*.13;const h=(0,E.F4)(Ht||(Ht=(0,F.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),g="".concat(h," 0.5s");return(0,l.jsx)(u.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,l.jsxs)(u.xu,{width:"100%",height:"100%",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:(0,p.KM)(d),objectFit:"cover",borderTopRadius:"xl"})}),(0,l.jsx)(u.Kq,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:()=>{s(!1)},cursor:"pointer",padding:"10px",children:(0,l.jsx)(N.Z,{sx:{boxShadow:3,color:"white !important",fontSize:2*c,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Vt=n(9748),Ut=n(5630),Yt=(n(51),n(6665));function Xt(t){var e;const[n,i]=(0,o.useState)(null),r=t.product;return(0,o.useEffect)((()=>{(0,m.bN)(r).then((t=>{i(t.variants)}))}),[]),null==n?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",overflow:"hidden",height:1.5*t.height,backgroundColor:"white"},children:(0,l.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,l.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,l.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,l.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,l.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,l.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,l.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(n).toString()})]})})}function Gt(t){const e=(0,a.MO)("whatmoreShopId"),n=t.product;return"63748341981"==e||"55845847231"==e||"47837511839"==e?(0,l.jsx)(Xt,{product:n,variantId:t.variantId,height:t.height,width:t.width}):(0,l.jsx)(l.Fragment,{})}function Jt(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreShopId"),[d]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreSecondaryColor"),{whatmoreUITheme:c}=(0,o.useContext)(ot.I),{whatmoreWidgetSourceDetails:h}=(0,o.useContext)(ot.I),[x,g]=(0,o.useState)(!1),{closeClickComponent:f}=(0,o.useContext)(un),[v,w]=(0,o.useState)(!1),j=t.FONT_SIZE,C=t.data,S=t.event,y=t.selectedVariantId,b=t.product,k=t.itemQuantity,I=t.PRODUCT_TILE_WIDTH,F=t.cartItemCount,_=t.addToCartFlag,T=t.setAddToCartFlag,E=t.soldOutFlag,O=t.setSoldOutFlag;const P=t=>{!function(t,i){e||n||(async()=>{(0,r.$L)(t,i)})()}(S,b),"buy-now"==t&&(!function(t,e,n,i){"shopify"==n?(0,m.bj)(t,e,i):(0,wt.rY)(t,e,i)}(void 0!==y?y:C.product.variants[0].id,k,(0,p.Ip)(i),i),(0,nt.GF)({userInteractionType:it.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:h,event:S,productList:[b],ctaList:S.cta})),"view-more"==t&&(window.location.href=b.product_link+"?"+(0,p.aw)(i)+"&"+(0,p.n9)(i)+"&"+(0,p.v)(i)+((0,p.C0)(i)?"¤cy="+b.currency:""))};return(0,l.jsxs)(u.Kq,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",position:t.position,bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*j,children:[" ",E?(0,l.jsx)(Vt.zx,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*j,disabled:!0,sx:{borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.al)(i),borderColor:(0,p.qP)(i)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:d+" !important"},children:"Sold Out"})}):(0,l.jsxs)(u.Kq,{direction:"vertical"==(0,p.rc)(i)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*j,justifyContent:"center",children:[(0,p.$b)(i)?(0,l.jsx)(Vt.zx,{width:"90%",height:2.5*j,onClick:async t=>{if(t.stopPropagation(),g(!0),function(t,i,o){e||n||(async()=>{(0,r.JX)(t,i,o)})()}(S,b,k),(0,nt.GF)({userInteractionType:it.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:h,event:S,productList:[b],ctaList:S.cta}),void 0===y)return void console.log("ERROR ! Select the option.");const o=void 0!==y?y:C.product.variants[0].id,l=C.product.variants.filter((t=>t.id==o))[0].price;St(o,k,(0,p.Ip)(i),i,S,b).then((t=>{if(!t.ok)throw new Error(t.status);return g(!1),T(!0),t.json()})).then((t=>((0,a.bU)("whatmoreAddedToCart",!0),(0,p.k)(i)&&(e||(async()=>{const t=await(0,m.Mj)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}));(0,Et.a)(i,window.location.hostname,"",S.event_id,b.product_id,o,l,k,"add-to-cart",t.token)})()),t))).catch((t=>{g(!1),O(!0),console.error("Error:",t)}))},sx:{paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,p.Fd)(i)?s+" !important":(0,p.Fd)(i)+" !important",borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.p5)(i),borderColor:"#343434"===(0,p.yx)(i)?s:(0,p.yx)(i),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.p5)(i),borderColor:"#343434"===(0,p.yx)(i)?s:(0,p.yx)(i)}},children:x?(0,l.jsx)(Ut.$,{display:"flex !important",color:"white"}):(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:(0,p.eS)(i)+" !important",fontFamily:d+" !important"},fontSize:j,children:(0,p.t)(i)})}):(0,l.jsx)(l.Fragment,{}),(0,p.cD)(i)?(0,l.jsx)(l.Fragment,{children:(0,p.H$)(i)?(0,l.jsx)(Gt,{variantId:void 0!==y?y:C.product.variants[0].id,product:b,height:2.5*j,width:"90%",fontSize:j,fontFamily:d}):(0,l.jsx)(l.Fragment,{children:(0,p.St)(i)?(0,l.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*j,onClick:()=>P("view-more"),sx:{backgroundColor:"white !important",borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.al)(i),borderColor:(0,p.qP)(i)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:s+"!important",fontFamily:d+" !important"},fontSize:j,children:(0,p.Z5)(i)})}):(0,l.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*j,onClick:()=>P("buy-now"),sx:{backgroundColor:(0,p.II)(i)+" !important",borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.p5)(i),borderColor:"#343434"===(0,p.yx)(i)?s:(0,p.yx)(i),_hover:{backgroundColor:"transparent !important"}},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.iK)(i)?s+" !important":(0,p.iK)(i)+" !important",fontFamily:d+" !important"},fontSize:j,children:(0,p.Zu)(i)})})})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(l.Fragment,{children:(0,p.$b)(i)?(0,l.jsx)(l.Fragment,{children:v?(0,l.jsx)(u.kC,{width:"10%",spacing:"0",right:0,children:(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(Yt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*j}})})}):(0,l.jsxs)(u.kC,{animation:_?z:"none",onAnimationEnd:()=>T(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.v9)(i)&&("go_to_cart_page"!==(0,p.v9)(i)?(w(!0),function(t){"open_cart_slider"!==(0,p.v9)(t)||null!==f&&f()}(i)):yt((0,p.Ip)(i),i))},cursor:"pointer",children:[(0,l.jsx)(ct.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*j}}),F>0?(0,l.jsx)(u.Cd,{padding:"2px",bg:"white",size:1.1*j,top:.03*-I,verticalAlign:"top",position:"relative",left:.11*-I,zIndex:"1",children:(0,l.jsx)(u.xv,{sx:{color:"black !important",fontFamily:d+" !important"},fontWeight:"bold",fontSize:.7*j,children:F})}):(0,l.jsx)(l.Fragment,{})]})}):(0,l.jsx)(l.Fragment,{})})]})}function $t(t){const[e]=(0,a.j1)("whatmoreSecondaryColor"),[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.FONT_SIZE,o=t.data;return(0,l.jsxs)(u.Kq,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xv,{fontSize:i,fontWeight:"bold",justifyContent:"center",sx:{color:"black !important",fontFamily:n+" !important"},children:"Description"})}),(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xu,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,l.jsx)(u.xv,{fontSize:.8*i,justifyContent:"normal",dangerouslySetInnerHTML:{__html:(r=o.product.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:n+" !important",lineHeight:"140% !important"}})})})]});var r}function Qt(t){var e;const[n,i]=(0,o.useState)(t.product),[r]=(0,a.j1)("whatmoreSecondaryColor"),[d]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId");(0,a.MO)("whatmoreSecondaryColorShade900");(0,o.useEffect)((()=>{(0,p.N8)(s)&&(0,It.Rb)(n,(0,p.Ip)(s),s).then((t=>{i(t)}))}),[]);const c=t.FONT_SIZE,h=t.data,x=t.itemPrice;const g=null===(e=t.data.product.variants.find((e=>e.id==t.selectedVariantId)))||void 0===e?void 0:e.compare_at_price,m=g&&0!=g&&g>x?Math.ceil((g-x)/g*100):NaN;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(u.kC,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,l.jsx)(u.kC,{children:(0,l.jsx)(u.rU,{href:function(t){return(0,p.lj)(s)?t.product_link+"?"+(0,p.aw)(s)+"&"+(0,p.n9)(s)+"&"+(0,p.v)(s)+((0,p.C0)(s)?"¤cy="+t.currency:""):t.product_link+((0,p.C0)(s)?"?currency="+t.currency:"")}(n),color:"white",children:(0,l.jsx)(u.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:1.1*c,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:d+" !important"},as:"b",children:h.product.title})})}),(0,l.jsxs)(u.kC,{direction:"row",gap:"6px",paddingTop:"4px",children:[g&&g>x&&(0,l.jsx)(u.xv,{as:"s",padding:"2px",fontSize:1.2*c,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:d+" !important"},children:(0,It.jx)(parseFloat(g)," ",s,n.currency)}),(0,l.jsx)(u.xv,{as:"b",padding:"2px",fontSize:1.2*c,fontWeight:"semibold",sx:{color:"black !important",fontFamily:d+" !important"},children:(0,It.jx)(parseFloat(x)," ",s,n.currency)}),!isNaN(m)&&0!=m&&(0,l.jsx)(u.xu,{display:"flex",bg:(0,p.sT)(s)?(0,p.ZJ)(s):"white",alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,l.jsx)(u.xv,{fontSize:(0,p.sT)(s)?"14px":1.1*c,sx:{color:(0,p.ms)(s)+" !important",fontFamily:d+" !important"},children:(0,p.sT)(s)?"".concat(m,"% off"):"Save ".concat((0,It.jx)(parseFloat(g-x)," ",s,n.currency))})})]})]})})}function te(t){var e,n;const[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),{setShowOptionsChart:d}=(0,o.useContext)(ce),[s,c]=(0,o.useState)({}),h=(0,a.MO)("whatmoreSecondaryColorShade300"),x=((0,a.MO)("whatmoreSecondaryColorShade600"),(0,a.MO)("whatmoreSecondaryColorShade1200"),t.selectedColor),g=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,f=t.selectOptionThirdHandler,v=(t.PRODUCT_TILE_HEIGHT,t.PRODUCT_TILE_WIDTH,t.FONT_SIZE),j=t.data,C=(t.product,(t,e)=>{c((n=>({...n,[t]:e})))});(0,o.useEffect)((()=>{c((t=>{var e,n,i,o,r,a,l,d,s,c,h,u,p,x,g,m,f,v,w,C;return{...t,[null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.name]:null===(o=j.product.options)||void 0===o||null===(r=o[0])||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0],[null===j||void 0===j||null===(l=j.product)||void 0===l||null===(d=l.options)||void 0===d||null===(s=d[1])||void 0===s?void 0:s.name]:null===j||void 0===j||null===(c=j.product)||void 0===c||null===(h=c.options)||void 0===h||null===(u=h[1])||void 0===u||null===(p=u.values)||void 0===p?void 0:p[0],[null===j||void 0===j||null===(x=j.product)||void 0===x||null===(g=x.options)||void 0===g||null===(m=g[2])||void 0===m?void 0:m.name]:null===j||void 0===j||null===(f=j.product)||void 0===f||null===(v=f.options)||void 0===v||null===(w=v[2])||void 0===w||null===(C=w.values)||void 0===C?void 0:C[0]}}))}),[]);let S=[];for(let o=0;o<(null===j||void 0===j||null===(y=j.product)||void 0===y||null===(b=y.images)||void 0===b?void 0:b.length);o++){var y,b,k,I;(null===j||void 0===j||null===(k=j.product)||void 0===k||null===(I=k.images[o].variant_ids)||void 0===I?void 0:I.length)>0&&S.push(o)}return(0,l.jsx)(u.kC,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.length)>0&&(0,l.jsx)(u.kC,{direction:"column",w:"fit-content",justifyContent:"flex-end",gap:"4px",children:j.product.options.map(((e,n)=>{var o,a;return(0,l.jsx)(l.Fragment,{children:(e.values.length>1||"Color"===e.name)&&(0,l.jsxs)(u.kC,{direction:"column",gap:"4px",children:[(0,l.jsxs)(u.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,l.jsx)(u.xv,{fontSize:1*v,sx:{color:"black !important",fontFamily:i+" !important",fontWeight:"bold"},children:e.name}),"Size"===e.name&&(0,p.eg)(r)?(0,l.jsx)(u.kC,{justifyContent:"center",marginTop:"10px",children:(0,l.jsx)(u.xv,{fontSize:.7*v,as:"u",sx:{color:"black !important",fontFamily:i+" !important"},onClick:()=>{null!==d&&d(!0)},children:(0,p.me)(r)})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(u.Ug,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:e.values.map(((t,o)=>{var a,d;return"Color"===e.name&&S.length===(null===e||void 0===e||null===(a=e.values)||void 0===a?void 0:a.length)?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.kC,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,l.jsx)(u.xu,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.lm)(r),size:"sm",border:s[e.name]===t?"2px solid ".concat((0,p.u)(r)," !important"):"",width:"fit-content !important",onClick:()=>{C(e.name,t);const i=e.values.indexOf(t);x(i),0===n&&g(t),1===n&&m(t),2===n&&f(t)},children:(0,l.jsx)(w.Ee,{padding:"2px",borderRadius:(0,p.lm)(r),width:"58px",height:"58px",src:j.product.images[S[o]].src})})},t)}):(0,l.jsx)(u.kC,{paddingBottom:"8px",paddingRight:"8px",children:(0,l.jsx)(Vt.zx,{size:"sm",px:"8px !important",bg:s[e.name]===t?(null!==(d=(0,p.CP)(r))&&void 0!==d?d:h)+" !important":(0,p.bC)(r)+" !important",width:"fit-content !important",onClick:()=>{C(e.name,t),0===n&&g(t),1===n&&m(t),2===n&&f(t)},children:(0,l.jsx)(u.xv,{fontSize:.9*v,sx:{fontFamily:i+" !important",fontWeight:"normal",color:s[e.name]===t?(0,p.cY)(r)+" !important":(0,p.Fb)(r)+" !important"},children:t})})},t)}))}),n===(null===j||void 0===j||null===(o=j.product)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.length)-1&&(0,l.jsx)(u.M5,{paddingTop:"8px",width:"100%",children:(0,l.jsx)(u.iz,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ee,ne=n(8782);function ie(t){var e,n;const[i,r,d,s]=(0,x.Z)();var c=.4*s*.8,h=c*(16/9)*.6*.8;const g=1.1*c,f=g*(16/9)*.8;var v=.13*c;const[j,C]=(0,o.useState)(!1),S=t.data,y=t.event,b=t.product,k=t.setOpenShopNow,I=t.setLockSwiper,[_]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[O,P]=(0,o.useState)((()=>{if("true"===_)return ae(S,b.client_product_id)})),[D,z]=(0,o.useState)((()=>{if("true"===_)return le(S,b.client_product_id)})),[R,L]=(0,o.useState)((()=>{if("true"===_)return de(S,b.client_product_id)})),[K,M]=(0,o.useState)(),[Z,W]=(0,o.useState)(1),[q,H]=(0,o.useState)(),[A,N]=(0,o.useState)(0),[B,V]=(0,o.useState)(!1),[U,Y]=(0,o.useState)(!1),[X,G]=(0,o.useState)(b.thumbnail_image),J=(0,o.useContext)(ot.I),$=(0,a.MO)("whatmoreShopId"),Q=((0,a.MO)("whatmoreSecondaryColorShade300"),(0,a.MO)("whatmoreSecondaryColorShade600"),(0,a.MO)("whatmoreSecondaryColorShade1200"),(0,o.useCallback)((t=>{P(t)}),[])),tt=(0,o.useCallback)((t=>{z(t)}),[]),et=(0,o.useCallback)((t=>{L(t)}),[]);(0,o.useEffect)((()=>{const t=oe(S,O,D,R);M(t),H(re(S,t)),W(1),Y(!1);const e=se(S,t);null!==e&&G(e)}),[O,D,R]),(0,o.useEffect)((()=>{const t=void 0===K?S.product.variants[0].price:re(S,K);H(t*Z)}),[Z]),(0,o.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view");e&&!e.contains(t.target)&&(k(!1),I(!1))}function e(t){t.preventDefault(),t.stopPropagation(),n.scrollTop+=t.deltaY}document.addEventListener("click",t);const n=document.getElementById("whatmore-shopnow-view");return null===n||void 0===n||n.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),document.removeEventListener("wheel",e)}}),[]),(0,o.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,m.Bi)():(0,wt.OM)(e)}((0,p.Ip)($),$);t.then((t=>t.json())).then((t=>{N(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[B]);const[nt,it]=(0,o.useState)(0),rt=(0,E.F4)(ee||(ee=(0,F.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),at="".concat(rt," 0.5s"),lt=t.data.product.images;let dt=0,st=lt.length,ct=0;for(let o=0,a=0;o<lt.length;o++){var ht,ut;if((null===(ht=lt[o])||void 0===ht||null===(ut=ht.variant_ids)||void 0===ut?void 0:ut.length)>0){if(a++,a===nt+1){ct=1,dt=o;continue}if(1==ct){st=o;break}}}return(0,l.jsxs)(u.kC,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===J||void 0===J?void 0:J.whatmoreUITheme)?"xl":null,animation:at,children:[(0,l.jsx)(Nt,{setOpenShopNow:k,setLockSwiper:I,FONT_SIZE:v}),(0,l.jsx)(u.M5,{marginBottom:"10px",px:"20px",py:"5px",children:(0,l.jsx)(u.kC,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===J||void 0===J?void 0:J.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.al)($),borderColor:(0,p.qP)($)},children:(0,l.jsx)(u.kC,{width:"100%",children:(0,l.jsx)(ne.P,{renderElement:t=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.xu,{width:g+"px",height:f+"px",children:(0,l.jsx)(w.Ee,{width:g+"px",height:f+"px",borderRadius:"round"==(null===J||void 0===J?void 0:J.whatmoreUITheme)?"lg":null,src:t.eventData.src,alt:b.handle,sx:{objectFit:(0,p.yO)($)+" !important"},fallback:(0,l.jsx)(T.Z,{width:g+"px",height:f+"px",borderRadius:"round"==(null===J||void 0===J?void 0:J.whatmoreUITheme)?"10px":"0px"})})})}),dataList:null===S||void 0===S||null===(e=S.product)||void 0===e?void 0:e.images.slice(dt,st),spacing:10,defaultHeight:g+"px",defaultWidth:f+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,l.jsx)(Qt,{data:S,product:b,PRODUCT_TILE_HEIGHT:h,PRODUCT_TILE_WIDTH:c,FONT_SIZE:v,getVariantPrice:re,selectedVariantId:K,itemPrice:q,itemQuantity:Z,setItemQuantity:W,thumbnailImage:X}),S.product.variants.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.M5,{paddingTop:"4px",width:"100%",children:(0,l.jsx)(u.iz,{color:(0,p.W8)($),size:"xs",width:"90%"})}),(0,l.jsx)(te,{data:S,dividerColor:(0,p.W8)($),selectedColor:t=>{it(t)},product:b,PRODUCT_TILE_HEIGHT:h,PRODUCT_TILE_WIDTH:c,FONT_SIZE:v,selectOptionFirstHandler:Q,selectOptionSecondHandler:tt,selectOptionThirdHandler:et,getVariantPrice:re,selectedOptionFirst:O,selectedOptionSecond:D,selectedOptionThird:R,selectedVariantId:K})]}),p.$2&&(null===S||void 0===S||null===(n=S.product)||void 0===n?void 0:n.body_html)&&(0,l.jsx)($t,{PRODUCT_TILE_HEIGHT:h,FONT_SIZE:v,data:S,handleToggle:()=>C(!j),show:j}),(0,l.jsx)(u.xu,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,l.jsx)(Jt,{position:"relative",data:S,FONT_SIZE:v,product:b})}),(0,l.jsx)(Jt,{position:"fixed",selectedVariantId:K,data:S,FONT_SIZE:v,PRODUCT_TILE_WIDTH:c,product:b,itemQuantity:Z,cartItemCount:A,addToCartFlag:B,setAddToCartFlag:V,soldOutFlag:U,setSoldOutFlag:Y,event:y})]})}const oe=(t,e,n,i)=>{if(void 0===e&&void 0===n&&void 0===i)return t.product.variants[0].id;if(void 0===i&&void 0===n)return t.product.variants.find((t=>t.option1===e)).id;if(void 0===i&&void 0===e)return t.product.variants.find((t=>t.option2===n)).id;if(void 0===n&&void 0===e)return t.product.variants.find((t=>t.option3===i)).id;if(void 0===n)return t.product.variants.find((t=>t.option1===e&&t.option3===i)).id;if(void 0===i)return t.product.variants.find((t=>t.option1===e&&t.option2===n)).id;if(void 0===e)return t.product.variants.find((t=>t.option2===n&&t.option3===i)).id;const o=t.product.variants.find((t=>t.option1===e&&t.option2===n&&t.option3===i));return void 0===o?t.product.variants[0].id:o.id},re=(t,e)=>t.product.variants.find((t=>t.id===e)).price,ae=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option1,le=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option2,de=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option3,se=(t,e)=>{const n=t.product.images.find((t=>t.variant_ids.find((t=>t===e))));return void 0===n?null:n.src},ce=(0,o.createContext)({setShowOptionsChart:null});var he=function(t){const e=t.event,n=t.data,i=t.currentProduct,r=t.setOpenShopNow,a=t.setLockSwiper,[d,s]=(t.isLast,t.onCloseCallback,t.focusRef,(0,o.useState)(!1));return(0,l.jsx)(ce.Provider,{value:{setShowOptionsChart:s},children:(0,l.jsxs)(u.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(ie,{data:n,event:e,product:i,setOpenShopNow:r,setLockSwiper:a})})}),d?(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(Bt,{data:n,event:e,product:i,setShowOptionsChart:()=>{s(!1)}})})}):(0,l.jsx)(l.Fragment,{})]})})};var ue=function(t){var e,[n,i,r,d]=(0,x.Z)();const[s,c]=(0,o.useState)(!1),[h,m]=(0,o.useState)(),[f,w]=(0,o.useState)(),j=(0,a.MO)("whatmoreShopId"),C=t.event,S=t.onBack,y=o.useRef(),b=t.isPlaying,k=t.isLast,I=t.setLockSwiper,F=t.selectedVariantId,_=null===(e=t.showOverlay)||void 0===e||e,T="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:d,height:r,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:T,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:d/r,children:(0,l.jsx)(v,{height:"100%",width:"100%",url:C.event_hls_url,isPlaying:b,event:C})})})}),_?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(At,{focusRef:y,event:t.event,isLast:k,onCloseCallback:S,productClickHandler:async t=>{const e=await(0,g.gK)(t,(0,p.Ip)(j),j);w(t),m(e),c(!0),I(!0)}})})}):(0,l.jsx)(l.Fragment,{}),!0===s?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(he,{focusRef:y,event:t.event,isLast:k,onCloseCallback:()=>S(),setLockSwiper:I,data:h,currentProduct:f,setOpenShopNow:c,selectedVariantId:F})})}):(0,l.jsx)("div",{})]})})};const pe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function xe(t){var e,n,[i,o,r,d]=(0,x.Z)();const[s]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColorShade900"),[h]=(0,a.j1)("whatmoreShopId"),p=t.progress,g=null!==(e=t.totalSiblings)&&void 0!==e?e:1,m=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,l.jsx)(u.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(g).keys()].map((t=>(0,l.jsx)(u.Kq,{width:"100%",height:.004*r+"px",backgroundColor:t<m?s:c+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==m?(0,l.jsx)(u.xu,{height:"100%",width:p+"%",bgColor:s,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,l.jsx)(l.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ge=n(868),me=n(442);n(1824);const fe=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t;var ve=function(t){var e,n,i,d=t.whatmoreShareTemplateId;const s=t.whatmoreShareStoryId,c=t.whatmoreShareEventId,h=t.event,g=null===(e=t.showShareText)||void 0===e||e,m=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,f=(0,a.MO)("whatmoreShopId"),v=(0,a.MO)("isInDesignMode"),w=(0,a.MO)("isDemoBrand"),j=(0,a.MO)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(ot.I),[S,y,b,k]=(0,x.Z)(),I=null!==(i=t.iconSize)&&void 0!==i?i:.1*k;function F(){const t=(0,a.MO)("whatmoreLandingLocationType");var e;!function(t){v||w||(async()=>{(0,r.x0)(t)})()}(h),(t.startsWith("product")||"embed"===t)&&(d="te"),e=(e="event_product_link"===(0,p.EE)(f)?h.products[0].product_link||"":window.location.pathname)+"?wtt="+d+"&wsid="+s+"&weid="+c,(0,p.lj)(f)&&(e=e+"&"+(0,p.aw)(f)+"&utm_campaign=video-share&utm_medium="+t);const n={title:(0,p.JN)(f),text:(0,p.QR)(f),url:e};navigator.share(n)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",style:{marginBottom:m+"px"},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,l.jsx)(me.Z,{sx:{boxShadow:3,rotate:"-30deg",color:"white",fontSize:I,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),F(),(0,nt.GF)({userInteractionType:it.K.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:C,event:h,productList:h.products,ctaList:h.cta})}}),g&&(0,p.u8)(f)?(0,l.jsxs)(u.xv,{fontSize:.3*I+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:j+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",h.total_share>(0,p.LW)(f)?fe(h.total_share):"Share","\xa0"]}):(0,l.jsx)(l.Fragment,{})]})})})},we=n(6524),je=n(7933),Ce=n(2785);var Se=function(t){var e;const n=(0,a.MO)("whatmoreShopId"),i=(0,a.MO)("whatmorePrimaryFont"),d=(0,a.MO)("whatmoreLikedEvents"),s=((0,a.MO)("whatmoreSecondaryColor"),(0,a.MO)("isInDesignMode")),c=(0,a.MO)("isDemoBrand"),{whatmoreWidgetSourceDetails:h}=(0,o.useContext)(ot.I),g=t.event,[m,f]=(0,o.useState)(null!==(e=d[g.event_id])&&void 0!==e&&e),[v,w,j,C]=(0,x.Z)(),S=.1*C;function y(t,e){s||c||(async()=>{(0,r.Z6)(t,e)})()}function b(){(0,a.bU)("whatmoreLikedEvents",{...d,[g.event_id]:!m}),m?(y(g,-1),(0,nt.GF)({userInteractionType:it.K.VIDEO_UNLIKED,widgetSourceDetails:h,event:g,productList:g.products,ctaList:g.cta})):(y(g,1),(0,nt.GF)({userInteractionType:it.K.VIDEO_LIKED,widgetSourceDetails:h,event:g,productList:g.products,ctaList:g.cta})),f(!m)}const k=g.total_like+(m?1:0);return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[m?(0,l.jsx)(Ce.Z,{sx:{boxShadow:3,color:"red",fontSize:S,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}):(0,l.jsx)(je.Z,{sx:{boxShadow:3,color:"white",fontSize:S,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}),(0,l.jsx)(l.Fragment,{children:(0,p.CE)(n)?(0,l.jsxs)(u.xv,{fontSize:.3*S+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:i+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",k>=(0,p.zK)(n)?fe(k):"Like","\xa0"]}):(0,l.jsx)(l.Fragment,{})})]})})})};function ye(t){var e;const n=t.event,[i,r,d,s]=(0,x.Z)(),[c]=(0,a.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,o.useContext)(ot.I),[g]=(0,a.j1)("whatmoreSecondaryColor"),[m]=(0,a.j1)("whatmoreShopId"),f=(0,p.f6)(m),v=null!==(e=(0,p.u2)(m))&&void 0!==e?e:[g,f,g,f,g];return(0,l.jsx)(l.Fragment,{children:h?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.14*s+"px",sx:{boxShadow:"0px 2px 1px 0px "+v[0]+"50, 0px -2px 1px 0px "+v[1]+"50, 2px 0px 1px 0px "+v[2]+"50, -2px 0px 1px 0px "+v[3]+"80, 2px -2px 1px 0px "+v[4]+"80, -2px 2px 1px 0px "+v[0]+"DA, 2px 2px 1px 0px "+v[1]+"DA, -2px -2px 1px 0px "+v[2]+"DA"},children:(0,l.jsx)("img",{src:(0,ge.V)(n.storyset_thumbnail_image),style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*s+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:c+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,l.jsx)(l.Fragment,{})})}var be=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[d,c]=(0,s.Z)(),[h,g]=(0,a.j1)("isFirstIndicatorRenderDone"),[m]=(0,a.j1)("whatmoreSecondaryColor"),[f]=(0,a.j1)("whatmoreSecondaryColorShade900"),[v]=(0,a.j1)("whatmoreShopId"),w=(0,o.useContext)(un),{whatmoreIsStoriesTemplate:j}=(0,o.useContext)(ot.I),{whatmoreEventsBrowsingTemplate:C}=(0,o.useContext)(ot.I),[S,y,b,k]=(0,x.Z)(),F=t.event,_=t.storySetId,T=t.isLast,E=t.onCloseCallback,O=t.focusRef,P=t.productClickHandler,D=t.videoPlayingData,z=t.totalSiblingEvents,R=t.indexAmongSiblings,L=t.leftOpenSpaceClickHandler,K=t.midOpenSpaceClickHandler,M=t.rightOpenSpaceClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsxs)(u.Kq,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[w.showVideoPlayingData?(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,l.jsx)(xe,{progress:pe(D.current_time,D.video_duration),totalSiblings:z,indexAmongSiblings:R})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(ye,{event:F}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,we.ZK)(C)?(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(C),whatmoreShareStoryId:_,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.07*k,shareButtonBottomMargin:6}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(I,{focusRef:O}),(0,l.jsx)(U,{event:F,onCloseCallback:E})]})]})})]}),(0,l.jsxs)(u.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{L()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"34%",height:"100%",onClick:()=>{K()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}})]}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[w.totalEvents>1&&!h&&w.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!T})})}):null,(0,p.jY)(v)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"2%",children:(0,l.jsx)(Se,{event:F})})}):(0,l.jsx)(l.Fragment,{}),(0,p.RO)(v)&&!(0,we.ZK)(C)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"1%",children:(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(C),whatmoreShareStoryId:_,whatmoreShareEventId:F.event_id,event:F})})}):(0,l.jsx)(l.Fragment,{}),(0,Kt.kT)(F)?(0,l.jsxs)(u.xu,{width:"full",children:[(0,p.Jm)(v)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(H,{event:F,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Wt,{event:F,productClickHandler:P})})]}):(0,l.jsx)(l.Fragment,{})]})]})})},ke=n(2279),Ie=n.n(ke),Fe=n(342);var _e=function(t){var e,n,i,r,d,s,[c,h,m,v]=(0,x.Z)();const[w,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(),[y,b]=(0,o.useState)(),[k,I]=(0,o.useState)({current_time:0,video_duration:0,is_video_ended:!1}),F=(0,a.MO)("whatmoreShopId"),_=t.event,T=t.storyId,E=t.onBack,O=o.useRef(),P=t.isPlaying,D=t.isLast,z=t.setLockSwiper,R=t.onVideoEndedCallback,L=t.progressUpdateCallback,K=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,M=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,Z=null===(i=t.showOverlay)||void 0===i||i,W=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},q=null!==(d=t.midOpenSpaceClickHandler)&&void 0!==d?d:()=>{},H=null!==(s=t.rightOpenSpaceClickHandler)&&void 0!==s?s:()=>{},{whatmoreWidgetSourceDetails:A}=(0,o.useContext)(ot.I),N="center",B=Ie()((()=>{R()}),1e3,{leading:!0,trailing:!1});return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:v,height:m,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:v/m,children:(0,l.jsx)(f.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,Fe.uv)(_)),isPlaying:P,timeUpdateCallback:function(t,e){const n=pe(t,e);L(n);const i=k.is_video_ended;n>=99&&P&&!i?(B(),I({current_time:t,video_duration:e,is_video_ended:!0})):I({current_time:t,video_duration:e,is_video_ended:i})},event:_})})})}),Z?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(be,{focusRef:O,event:t.event,isLast:D,onCloseCallback:()=>{E(),(0,nt.Z2)({userInteractionType:it.K.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:k.current_time},widgetSourceDetails:A,event:_,productList:_.products,ctaList:_.cta})},productClickHandler:async t=>{const e=await(0,g.gK)(t,(0,p.Ip)(F),F);b(t),S(e),j(!0),z(!0),(0,nt.GF)({userInteractionType:it.K.SHOPNOW_CLICKED,widgetSourceDetails:A,event:_,productList:_.products,ctaList:_.cta}),(0,a.bU)("whatmoreAllowAutoSlide",!1)},videoPlayingData:k,totalSiblingEvents:K,indexAmongSiblings:M,leftOpenSpaceClickHandler:W,midOpenSpaceClickHandler:q,rightOpenSpaceClickHandler:H,storySetId:T})})}):(0,l.jsx)(l.Fragment,{}),!0===w?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(he,{focusRef:O,event:t.event,isLast:D,onCloseCallback:()=>E(),setLockSwiper:z,data:C,currentProduct:y,setOpenShopNow:t=>{j(t),(0,a.bU)("whatmoreAllowAutoSlide",!t)}})})}):(0,l.jsx)("div",{})]})})},Te=n(7300),Ee=n(8984),Oe=n(58),Pe=n(9723);var De=function(t){var[e,n,i,o]=(0,x.Z)();(0,a.MO)("whatmoreShopId");const r=t.event,d=t.isPlaying,s="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:s,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:o/i,children:(0,l.jsx)(f.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,Fe.uv)(r)),isPlaying:d,timeUpdateCallback:function(t,e){},event:r})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:s,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Oe.QV)()},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,l.jsx)(Pe.Z,{sx:{boxShadow:3,color:"white",fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Oe.QV)()}}),(0,l.jsx)(u.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})};var ze=function(t){var e,n;const o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,c=t.onBack,h=t.isLast,u=t.setLockSwiper,p=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),x=t.progressUpdateCallback,[g,m]=(0,s.Z)(),[f]=(0,a.j1)("whatmoreVideoPlayerPoolBlessed"),v=null===(n=t.showOverlay)||void 0===n||n;function w(){m(!g)}if((0,Ee.KE)()&&0==f)return(0,l.jsx)(De,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:p,progressUpdateCallback:x,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:v},"shopping-video-view"+o.event_id);if((0,Te.B6)(o)||(0,Te.WJ)(o))return(0,l.jsx)(_e,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:p,progressUpdateCallback:x,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:v},"shopping-video-view"+o.event_id);if((0,Te.yC)(o)){var{status:j,bannerText:C,timeToStartInMins:S}=i.Z.getEventStatus(o);if(j.name===d.Z.LIVE.name)return(0,l.jsx)(ue,{event:o,onBack:c,isPlaying:r,isLast:h,showOverlay:v},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,l.jsx)("div",{})},Re=n(204),Le=n(8866),Ke=n(9284),Me=n.n(Ke),Ze=n(7463),We=n(2154);function qe(t){var e;const[n,i]=(0,o.useState)(!1),r=t.onClick,a=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,l.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,l.jsx)(We.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"up")}}):(0,l.jsx)(Ze.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"down")}})})}var He=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",a=null!==(i=t.fontSize)&&void 0!==i?i:50,d=t.handleClick;return(0,l.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,l.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,l.jsx)(qe,{type:"left",onClick:d,fontSize:a}),(0,l.jsx)(qe,{type:"right",onClick:d,fontSize:a})]})})},Ae=n(2860),Ne=n(4669);var Be=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const i=(0,o.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return i.current},function(t){i.current="right"==t?{prevIndex:n(i.current.activeIndex,e),activeIndex:n(i.current.activeIndex+1,e),nextIndex:n(i.current.activeIndex+2,e)}:{prevIndex:n(i.current.activeIndex-2,e),activeIndex:n(i.current.activeIndex-1,e),nextIndex:n(i.current.activeIndex,e)}},function(t){return n(i.current.activeIndex+t)}]};var Ve=function(t,e){const n=(0,o.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var a=o-i.changedTouches[0].clientX,l=r-i.changedTouches[0].clientY;return"vertical"==t&&Math.abs(l)>e||"horizontal"==t&&Math.abs(a)>e?"vertical"==t?l>0?"right":"left":a>0?"right":"left":null}]};var Ue=function(t,e){const n=(0,o.useRef)(Ie()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const a=r>0?"right":"left";n.current(o,a)}]},Ye=n(5173);var Xe=function(t){const e=t.events,n=t.eventIndex,i=t.onBack;var[d,g,m,f]=(0,x.Z)();const[v,w]=(0,s.Z)(),[j]=(0,a.j1)("isInDesignMode"),[C]=(0,a.j1)("isDemoBrand"),[S,y]=(0,o.useState)(!0),[b,k]=(0,a.j1)("isFirstIndicatorRenderDone"),[I,F]=(0,o.useState)(!1),{setCloseClickComponent:_}=(0,o.useContext)(un),{slideDirection:T}=(0,o.useContext)(un),[E]=(0,a.j1)("whatmoreShopId"),[O]=(0,a.j1)("whatmoreLandingLocationType"),[P,D]=Be(n,e.length),[z,R]=Ve(T,50),[L]=Ue("vertical",30),[K,M]=(0,o.useState)(!1),[Z,W]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:q}=(0,o.useContext)(ot.I);function H(){M(!1)}function A(){H(),setTimeout((()=>{i()}),500)}function N(){(0,a.MO)("whatmoreAllowAutoSlide")&&(D("right"),Z.slideNext())}function B(t,e){D(e),function(t,e){Z&&("left"===e?Z.slidePrev():Z.slideNext())}(0,e)}(0,o.useEffect)((()=>(M(!0),()=>{})),[]),_(A);const V=Math.round(.05*m);return(0,l.jsx)(Me(),{isOpen:K,onAfterOpen:function(){},onRequestClose:H,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)(Ye.Z,{children:(0,l.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,tt.lA)("#000000",13)},onTouchStart:t=>{z(t)},onTouchEnd:t=>{const e=R(t);e&&B(0,e)},onWheel:t=>{L(t,(t=>{B(0,t)}))},children:[(0,l.jsx)(c.tq,{speed:400,threshold:V,slidesPerView:1,direction:T,modules:[h.tl,h.Gk],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!I,allowSlidePrev:!I,allowTouchMove:!1,onSwiper:t=>{W(t)},onSlideChange:t=>{var n;S?y(!1):(b||k(!0),n=e[P().activeIndex],j||C||(async()=>{(0,r.wh)(n),"index"===O?((0,Ne.Tc)(E,Ae.Xh,Ae.pR),(0,vt.H4)(n.event_id,n.products,Ae.Xh,Ae.pR)):O.startsWith("product")||"embed"===O?((0,Ne.Tc)(E,Ae.h7,Ae.dU),(0,vt.H4)(n.event_id,n.products,Ae.h7,Ae.dU)):O.startsWith("collection")?((0,Ne.Tc)(E,Ae.U$,Ae.Pk),(0,vt.H4)(n.event_id,n.products,Ae.U$,Ae.Pk)):((0,Ne.Tc)(E,Ae.Xh,Ae.pR),(0,vt.H4)(n.event_id,n.products,Ae.Xh,Ae.pR))})(),(0,nt.y4)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:q,event:e[P().activeIndex],productList:e[P().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;const s=n?"activeIndex":i?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(ze,{event:e[P()[s]],onBack:A,isPlaying:1==e.length||n&&r,isLast:!1,setLockSwiper:F,onVideoEndedCallback:N,progressUpdateCallback:t=>{}})})}},"event-vertical-scroll-slide-"+t)))}),e.length>1&&!I&&(0,p.h6)(E)&&"horizontal"===(0,p.e8)(E)&&"horizontal"===T?(0,l.jsx)(He,{relativeBottomPercentage:"50%",width:f,handleClick:(t,e)=>{B(0,"down"==e?"right":"left")},fontSize:parseInt(.12*f)}):(0,l.jsx)(l.Fragment,{})]})})})},Ge=n(4892);var Je=function(t){var e,n,i,[r,d,c,h]=(0,x.Z)();const[p]=(0,s.Z)(),[g]=(0,a.j1)("whatmorePrimaryColor"),[m]=(0,a.j1)("whatmoreSecondaryColor"),f=t.event,v=(t.onBack,o.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(n=t.heightFactor)&&void 0!==n?n:1,C="flex-end";return h*=null!==(i=t.widthFactor)&&void 0!==i?i:1,c*=j,(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:h,height:c,children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:C,height:"full",width:"full",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:v?(0,Te.B6)(f)||(0,Te.WJ)(f)?(0,l.jsx)(Ge.Z,{height:"100%",width:"100%",url:f.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:f}):(0,l.jsx)(w.Ee,{width:"full",height:"full",src:f.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,l.jsx)(u.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+g+", gray, "+m+")"})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:C,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(u.xu,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})},$e=n(1168);n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811);const Qe=t=>{let{children:e,customClass:n,show:i,closeCallback:o}=t;return $e.createPortal((0,l.jsxs)("div",{className:"whatmore-landscape-modal whatmore-root ".concat(n),style:{display:i?"block":"none"},children:[(0,l.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,l.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};Qe.defaultProps={children:(0,l.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var tn=Qe;var en=function(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),o=(t.height,t.width,null!==(e=t.fontSize)&&void 0!==e?e:"8");return(0,l.jsx)(u.rU,{href:"https://www.whatmore.live",isExternal:!0,children:(0,l.jsxs)(u.Kq,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",paddingBottom:"2px",marginBottom:"2px",children:[(0,l.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:i,fontWeight:"normal",fontSize:o+"px",margin:0,padding:0,lineHeight:"110%"},children:"powered by whatmore"}),(0,l.jsx)(u.xu,{width:"10px"}),(0,l.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px"}})]})})};var nn=function(t){var[e,n,i,d]=(0,x.Z)();const[s]=(0,a.j1)("isInDesignMode"),[g]=(0,a.j1)("isDemoBrand"),[m,f]=(0,a.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,o.useContext)(un),[C,S]=(0,o.useState)(!1),[y]=(0,a.j1)("whatmoreShopId"),[b]=(0,a.j1)("whatmoreLandingLocationType"),{whatmoreUITheme:k}=(0,o.useContext)(ot.I),{whatmoreWidgetSourceDetails:I}=(0,o.useContext)(ot.I),[F,_]=(0,o.useState)(!1),[T,E]=(0,o.useState)(null);function O(){_(!1)}const P=t.events,D=t.eventIndex,z=t.onBack;function R(){O(),setTimeout((()=>{z()}),500)}function L(){T&&!T.isEnd&&(0,a.MO)("whatmoreAllowAutoSlide")&&T.slideNext()}(0,o.useEffect)((()=>(_(!0),()=>{})),[]),j(R);const K=parseInt(Math.min(5,P.length));return(0,l.jsx)(tn,{show:F,closeCallback:O,customClass:"whatmore-landscape-modal-swipe-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:(0,tt.lA)("#000000",13),children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:d*K,children:(0,l.jsx)(c.tq,{onInit:t=>{E(t)},slidesPerView:K,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[h.lI,h.W_,h.Gk],navigation:K>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:d*K,watchSlidesProgress:!0,onSlideChange:t=>{var e;v?w(!1):(m||f(!0),e=P[t.activeIndex],s||g||(async()=>{(0,r.wh)(e),"index"===b?((0,Ne.Tc)(y,Ae.Xh,Ae.pR),(0,vt.H4)(e.event_id,e.products,Ae.Xh,Ae.pR)):b.startsWith("product")||"embed"===b?((0,Ne.Tc)(y,Ae.h7,Ae.dU),(0,vt.H4)(e.event_id,e.products,Ae.h7,Ae.dU)):b.startsWith("collection")?((0,Ne.Tc)(y,Ae.U$,Ae.Pk),(0,vt.H4)(e.event_id,e.products,Ae.U$,Ae.Pk)):((0,Ne.Tc)(y,Ae.Xh,Ae.pR),(0,vt.H4)(e.event_id,e.products,Ae.Xh,Ae.pR))})(),(0,nt.y4)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:I,event:P[t.activeIndex],productList:P[t.activeIndex].products,ctaList:P[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:o,isNext:r,isVisible:a,isDuplicate:s}=t;return n?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:1*d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,p.al)(y),borderColor:(0,p.qP)(y)},children:(0,l.jsx)(ze,{event:P[e],onBack:R,isPlaying:!0,isLast:e===P.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:L,progressUpdateCallback:t=>{}})})}):r||o?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{T.slideTo(e,300)},children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,p.al)(y),borderColor:(0,p.qP)(y)},children:(0,l.jsx)(ze,{event:P[e],onBack:R,isPlaying:!1,isLast:e===P.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:L,progressUpdateCallback:t=>{},showOverlay:!1})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))})})}),(0,p.XF)(y)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(en,{height:.04*i,width:.1*d,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})},on=n(6090),rn=n(7616),an=n(9302),ln=n(2575);var dn=function(t){var e;const n=t.stories,i=t.onBack,d=t.onStoryCompleteCallback,h=t.isActive,p=(t.isNext,t.isPrev,null!==(e=t.initialEventIndex)&&void 0!==e?e:0),g=n.events;var[m,f,v,w]=(0,x.Z)();const[j,C]=(0,s.Z)(),[S]=(0,a.j1)("isInDesignMode"),[y]=(0,a.j1)("isDemoBrand"),[b]=(0,a.j1)("whatmoreShopId"),[k]=(0,a.j1)("whatmoreSecondaryColorShade900"),[I]=(0,a.j1)("whatmoreSecondaryColor"),[F,_]=(0,o.useState)(!0),[T,E]=(0,a.j1)("isFirstIndicatorRenderDone"),{setCloseClickComponent:O}=(0,o.useContext)(un),{slideDirection:P}=(0,o.useContext)(un),[D,z]=(0,o.useState)(null),[R,L]=(0,o.useState)(!1),[K,M]=(0,o.useState)(0),{whatmoreWidgetSourceDetails:Z}=(0,o.useContext)(ot.I),[W,q]=Be(p,g.length);function H(){i()}function A(){if(!(0,a.MO)("whatmoreAllowAutoSlide"))return;W().activeIndex+1>=g.length?d("right"):(q("right"),D&&D.slideNext())}function N(t){const e=W().activeIndex;"right"==t&&e+1>=g.length||"left"==t&&e-1<0?d(t):(q(t),D&&("left"==t?D.slidePrev():D.slideNext()))}return g[W().activeIndex],(0,l.jsx)("div",{children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:v,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{z(t)},onSlideChange:t=>{var e;F?_(!1):(T||E(!0),e=g[W().activeIndex],S||y||(async()=>{(0,r.wh)(e),(0,Ne.Tc)(b,Ae.Xh,Ae.OW),(0,vt.H4)(e.event_id,e.products,"homepage","stories")})(),(0,nt.GF)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:Z,event:g[W().activeIndex],productList:g[W().activeIndex].products,ctaList:g[W().activeIndex].cta}))},children:[...Array(Math.min(g.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;if(h){const t=e?"activeIndex":i?"prevIndex":"nextIndex",o=g[W()[t]];return(0,l.jsx)(u.Kq,{direction:"column",height:v,justifyContent:"center",children:(0,Te.B6)(o)||(0,Te.WJ)(o)?(0,l.jsx)(_e,{event:o,totalSiblingEvents:g.length,indexAmongSiblings:W()[t],onBack:H,isPlaying:h&&e&&r,isLast:!1,setLockSwiper:L,onVideoEndedCallback:A,progressUpdateCallback:t=>{},leftOpenSpaceClickHandler:()=>{N("left")},midOpenSpaceClickHandler:()=>{C(!j)},rightOpenSpaceClickHandler:()=>{N("right")},storyId:n.id},"shopping-video-view"+o.event_id):(0,l.jsx)(l.Fragment,{})})}return(0,l.jsx)(u.Kq,{direction:"column",height:m,justifyContent:"center",children:(0,l.jsx)(Re.Z,{})})}},"event-story-view-slide-"+t)))})})};var sn=function(t){const e=t.onBack,n=t.eventsStories,i=t.initialStoryIndex;var[d,p,g,m]=(0,x.Z)();const[f,v]=(0,s.Z)(),[w]=(0,a.j1)("isInDesignMode"),[j]=(0,a.j1)("isDemoBrand"),[C,S]=(0,o.useState)(!0),[y,b]=(0,a.j1)("isFirstIndicatorRenderDone"),[k,I]=(0,o.useState)(!1),{setCloseClickComponent:F}=(0,o.useContext)(un),{slideDirection:_}=(0,o.useContext)(un),[T]=(0,a.j1)("whatmoreShopId"),[E,O]=Be(i,n.length),[P,D]=Ve("horizontal",50),[z]=Ue("vertical",30),R=t.eventIndex,[L,K]=(0,o.useState)(!1),[M,Z]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:W}=(0,o.useContext)(ot.I);function q(){K(!1)}function H(){q(),setTimeout((()=>{e()}),500)}function A(t){M&&(0,a.MO)("whatmoreAllowAutoSlide")&&(O(t),"right"==t?M.slideNext():M.slidePrev())}function N(t,e){A(e)}return(0,o.useEffect)((()=>(K(!0),()=>{})),[]),F(H),(0,l.jsx)(Me(),{isOpen:L,onAfterOpen:function(){},onRequestClose:q,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{P(t)},onTouchEnd:t=>{const e=D(t);e&&N(0,e)},onWheel:t=>{z(t,(t=>{N(0,t)}))},children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[h.SH,h.Gk],initialSlide:i,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{Z(t)},onSlideChange:t=>{var e,i,o;C?S(!1):(o=n[E().activeIndex].events[0],w||j||(async()=>{(0,r.wh)(o),(0,Ne.Tc)(T,Ae.Xh,Ae.OW),(0,vt.H4)(o.event_id,o.products,"homepage","stories")})(),(0,nt.GF)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:W,event:n[E().activeIndex].events[0],productList:null===(e=n[E().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[E().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:o,isNext:r,isVisible:a,isDuplicate:s}=t;const c=e?"activeIndex":o?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(dn,{stories:n[E()[c]],onBack:H,isActive:e&&a,isNext:r,isPrev:o,onStoryCompleteCallback:A,nextStories:n[E().nextIndex],prevStories:n[E().prevIndex],initialEventIndex:i==E()[c]?R:0},"event-story-view-"+n[E()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var cn=function(t){var[e,n,i,d]=(0,x.Z)();const[s]=(0,a.j1)("isInDesignMode"),[g]=(0,a.j1)("isDemoBrand"),[m,f]=(0,a.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,o.useContext)(un),[C,S]=(0,o.useState)(!1),[y]=(0,a.j1)("whatmoreShopId"),{whatmoreWidgetSourceDetails:b}=(0,o.useContext)(ot.I),[k,I]=(0,o.useState)(!1),[F,_]=(0,o.useState)(null);function T(){I(!1)}t.events;const E=t.eventIndex,O=t.onBack,P=t.eventsStories,D=t.initialStoryIndex;function z(){T(),setTimeout((()=>{O()}),500)}function R(t){F&&!F.isEnd&&("right"==t?F.slideNext():F.slidePrev())}(0,o.useEffect)((()=>(I(!0),()=>{})),[]),j(z);const L=parseInt(Math.min(5,P.length));return(0,l.jsx)(tn,{show:k,closeCallback:T,customClass:"whatmore-landscape-modal-stories-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:"blackAlpha.800",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:d*L,children:(0,l.jsx)(c.tq,{onInit:t=>{_(t)},slidesPerView:L,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[h.lI,h.W_,h.Gk],navigation:L>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:d*L,watchSlidesProgress:!0,onSlideChange:t=>{var e,n,i;v?w(!1):(m||f(!0),i=P[t.activeIndex].events[0],s||g||(async()=>{(0,r.wh)(i),(0,Ne.Tc)(y,Ae.Xh,Ae.OW),(0,vt.H4)(i.event_id,i.products,"homepage","stories")})(),(0,nt.GF)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:b,event:P[t.activeIndex].events[0],productList:null===(e=P[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=P[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,l.jsx)(c.o5,{children:n=>{let{isActive:o,isPrev:r,isNext:a,isVisible:s,isDuplicate:c}=n;if(o){const n=1;return(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(dn,{stories:t,onBack:z,isActive:o&&s,isNext:!1,isPrev:!1,onStoryCompleteCallback:R,initialEventIndex:D==e?E:0},"event-story-view-"+t.id)})})}return r||a?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e,300)},children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(Je,{showPausedVideo:!0,event:P[e].events[0],onBack:z,isPlaying:!1,setLockSwiper:S})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))})})}),(0,p.XF)(y)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(en,{height:.04*i,width:.1*d,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})};const hn=(0,ln.Z)({key:"whatmore-css-sv"}),un=(0,o.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0});var pn=function(t){var e,n;const[r,c,h]=(0,Le.Z)(),[u,x]=(0,s.Z)(),[g]=(0,a.j1)("whatmoreShopId"),{whatmoreRootId:m}=(0,o.useContext)(ot.I),{whatmoreIsStoriesTemplate:f}=(0,o.useContext)(ot.I);var v=t.events,w=t.index,j=t.onBack,C=t.eventsStories,S=t.initialStoryIndex,y=(t.template,(0,p.cX)(g)),b=v[w],k="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:v.length>1?"horizontal":"vertical",I="portrait"===r?!(0,p.h6)(g)&&!f:(0,p.n8)(g),F=(b=v[w],[]);if((0,o.useLayoutEffect)((()=>{(0,p.TL)(g)&&(window.location.href.includes(y)?history.replaceState(null,"","#"+y):history.pushState(null,"","#"+y),window.addEventListener("popstate",(()=>{window.location.href.includes(y)||j()})))}),[]),(0,Te.yC)(b)){var{status:_,bannerText:T,timeToStartInMins:E}=i.Z.getEventStatus(v[w]);if(_.name!=d.Z.LIVE.name)return(0,l.jsx)("div",{children:"// TODO : fix event registration view for live events"})}if(delete rn.ZP.styles.global,f)return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Ee.KE)(),totalEvents:v.length,closeClickComponent:j,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I},children:"portrait"===r?(0,l.jsx)(sn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w}):v.length>1&&(0,p.Bb)(g)?(0,l.jsx)(cn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w}):(0,l.jsx)(sn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w})})})});F=[];for(var O=0;O<v.length;O++)if((0,Te.B6)(v[O])||(0,Te.WJ)(v[O]))F.push(v[O]);else if((0,Te.yC)(v[O])){var{status:_,bannerText:T,timeToStartInMins:E}=i.Z.getEventStatus(v[O]);_.name===d.Z.LIVE.name&&F.push(v[O])}return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Ee.KE)(),totalEvents:v.length,closeClickComponent:j,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I},children:"portrait"===r?(0,l.jsx)(Xe,{events:F,eventIndex:w,onBack:j}):v.length>1?(0,l.jsx)(nn,{events:F,eventIndex:w,onBack:j}):(0,l.jsx)(Xe,{events:F,eventIndex:w,onBack:j})})})})}},204:function(t,e,n){var i=n(3271),o=(n(7313),n(6422)),r=n(7753),a=n(7789),l=n(6417);e.Z=function(t){const[e,n,d,s]=(0,a.Z)(),[c]=(0,o.Z)(),[h]=(0,r.j1)("whatmorePrimaryColor"),[u]=(0,r.j1)("whatmoreSecondaryColor"),p="flex-end";return(0,l.jsx)(i.M5,{children:(0,l.jsxs)(i.xu,{width:s,height:d,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,l.jsx)(i.Kq,{direction:"column",justifyContent:p,height:"full",width:"full",children:(0,l.jsx)(i.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(i.oM,{width:"full",ratio:s/d,children:(0,l.jsx)(i.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+h+", gray, "+u+")"})})})}),(0,l.jsx)(i.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:p,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(i.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(i.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(i.xu,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})}},9316:function(t,e,n){n.d(e,{mT:function(){return s}});var i,o,r,a=n(168),l=n(686);const d=(0,l.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(d," 0.2s linear;\n"),c=(0,l.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),h=("\n ".concat(c," 0.5s infinite linear;\n"),(0,l.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(h," ").concat(3,"s ease-in-out;\n")},6163:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var i=n(3271),o=n(5427),r=n(7313),a=n(7753),l=n(756),d=(n(4844),n(5160));var s=n(9316),c=n(9748),h=n(1660),u=n(9854),p=(n(7605),n(7053)),x=n(4136),g=n(7376),m=n(778),f=n(6417);function v(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[r]=(0,a.j1)("whatmorePrimaryFont"),l=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.width,s=t.height;return(0,f.jsx)(i.xu,{width:d,height:s,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,f.jsxs)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,f.jsxs)(i.xv,{color:n,fontSize:1.3*l,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,f.jsx)(i.M5,{paddingX:"5px",children:(0,f.jsx)(o.Z,{sx:{color:n,fontSize:1.5*l}})})]})})}var w=function(t){var e,n,o,w;const[j]=(0,a.j1)("whatmorePrimaryFont"),[C]=(0,a.j1)("isInDesignMode"),[S]=(0,a.j1)("isDemoBrand"),[y,b]=(0,a.j1)("appCartData"),[k]=(0,a.j1)("whatmoreShopId"),[I]=[(0,u.hm)(k)],F=(0,u.hm)(k),[_,T]=(0,r.useState)(!1),[E,O]=(0,r.useState)({state:"initial"}),[P,D]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:z}=(0,r.useContext)(h.EventClickComponentContext),{whatmoreWidgetSourceDetails:R}=(0,r.useContext)(x.I),L=t.event,K=t.product,M=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function Z(t,e,n){C||S||(async()=>{(0,d.JX)(t,e,n)})()}(0,r.useEffect)((()=>{!async function(){const t=await(0,p.gK)(K,(0,u.Ip)(k),k);D({loaded:!0,client_product_id:K.client_product_id,variant_id:t.product.variants[0].id,variant_price:t.product.variants[0].price})}()}),[]);const W=null!==(n=t.width)&&void 0!==n?n:"fit-content",q=null!==(o=t.height)&&void 0!==o?o:"fit-content",H=(null!==(w=(0,u.Jb)(k))&&void 0!==w?w:2)+"px";return P.loaded?(0,f.jsx)("div",{style:{width:W,height:q},children:(0,f.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,f.jsx)(c.zx,{type:"submit",className:(0,u.Sl)(k),sx:{width:W,height:q,minHeight:q},onClick:t=>{T(!0),Z(L,K,1),(0,g.GF)({userInteractionType:m.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:R,event:L,productList:[K],ctaList:L.cta}),null!==z&&setTimeout((()=>{z()}),2e3)},children:"initial"===E.state?(0,f.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:W},children:(0,f.jsx)(i.xu,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:F,borderColor:F,borderWidth:"1px",animation:_?s.mT:null,onAnimationEnd:()=>{T(!1)},children:(0,f.jsx)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsx)(i.M5,{children:(0,f.jsxs)(i.xv,{lineHeight:"100%",fontSize:1.3*M,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,u.KC)(k)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,f.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:W},children:(0,f.jsx)(v,{event:L,product:K,baseFontSize:M,cartState:E,width:W,height:q})})})})}):(0,f.jsx)(f.Fragment,{})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),a=n(6417);e.Z=function(t){var e,n=t.event,l=t.fontSize,d=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:s,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(n);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:d,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:d,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"medium",children:c})})})}},7605:function(t,e,n){n.d(e,{a:function(){return i}});n(5160);const i=async function(t,e,n,i,o,r,a,l,d,s){}},264:function(t,e,n){var i=n(7313),o=n(7300),r=n(6422),a=n(1660),l=n(3175),d=n(2887),s=n(8493),c=n(7753),h=(n(868),n(6417));function u(t){var e,n,o;const[a,d]=(0,r.Z)(),[s,c]=(0,i.useState)(!1),u=(0,i.useRef)(null),p=t.timeUpdateCallback,x=null!==(e=t.height)&&void 0!==e?e:"100%",g=null!==(n=t.width)&&void 0!==n?n:"100%",m=null!==(o=t.isVideoMuted)&&void 0!==o?o:a;return(0,i.useEffect)((()=>{u.current&&(t.isPlaying?u.current.paused&&u.current.play():u.current.pause(),p&&u.current.addEventListener("timeupdate",(t=>{var e,n;u.current&&p(null!==(e=u.current.currentTime)&&void 0!==e?e:0,null!==(n=u.current.duration)&&void 0!==n?n:0)})))}),[t.isPlaying]),(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:g,height:x,overflow:"hidden"},children:[(0,h.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,h.jsx)("video",{ref:u,className:"whatmore-video-player",width:g,height:x,preload:"auto",loop:!0,playsInline:!0,muted:!!m,src:t.url,onLoadedData:()=>{c(!0)}})}),s?(0,h.jsx)(h.Fragment,{}):(0,h.jsx)(l.Z,{width:g,height:x})]})}e.Z=function(t){var e,n;return(0,o.WJ)(t.event)?(0,h.jsx)(d.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,i.useContext)(a.EventClickComponentContext).isIOS&&1==(0,c.MO)("whatmoreVideoPlayerPoolBlessed")?(0,h.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(n=t.isVideoMuted)&&void 0!==n?n:null}):(0,h.jsx)(u,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null})}},8493:function(t,e,n){var i=n(7313),o=n(6422),r=n(7753),a=(n(1660),n(204),n(3175)),l=n(58),d=n(6417);function s(t){var e,n,s;const[c,h]=(0,o.Z)(),[u,p]=(0,i.useState)(i.useRef()),[x,g]=(0,r.j1)("whatmoreVideoPlayerPoolBlessed"),[m,f]=(0,i.useState)(!0),v=t.timeUpdateCallback,w=null!==(e=t.isVideoMuted)&&void 0!==e?e:c,j=null!==(n=t.height)&&void 0!==n?n:"100%",C=null!==(s=t.width)&&void 0!==s?s:"100%";return(0,i.useLayoutEffect)((()=>{var e;u.current&&x&&(0==u.current.children.length?((e=(0,l.Bi)(u.current,t.url,w||!t.isPlaying,t.isPlaying)).addEventListener("loadeddata",(()=>{f(!1)})),v&&e.addEventListener("timeupdate",(t=>{var n,i;e&&v(null!==(n=e.currentTime)&&void 0!==n?n:0,null!==(i=e.duration)&&void 0!==i?i:0)}))):((e=u.current.children[0]).muted=w||!t.isPlaying,t.isPlaying?e.play():e.pause()))}),[w,t.isPlaying,x]),(0,i.useLayoutEffect)((()=>()=>{u.current&&0!=u.current.children.length&&(0,l.P7)(u.current)}),[]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:C,height:j,overflow:"hidden"},children:[(0,d.jsx)("div",{ref:u,style:{width:m?"0px":"100%",height:m?"0px":"100%"},className:"whatmore-video-player-ios-holder"}),m?(0,d.jsx)(a.Z,{width:C,height:j}):(0,d.jsx)(d.Fragment,{})]})}e.Z=function(t){var e;return(0,d.jsx)(s,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null})}},6119:function(t,e,n){var i,o=n(168),r=n(3271),a=n(7313),l=n(7789),d=n(7753),s=n(686),c=n(9854),h=n(4136),u=n(5160),p=n(6417);const x=(0,s.F4)(i||(i=(0,o.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),g=("\n ".concat(x," ").concat(3,"s ease-in-out;\n"),function(t,e){return(0,c.lj)(e)?t+"?"+(0,c.aw)(e)+"&"+(0,c.n9)(e)+"&"+(0,c.po)(e):t});e.Z=function(t){var e;const[n,i,o,s]=(0,l.Z)(),[x,m]=(0,a.useState)(!1),{whatmoreUITheme:f}=(0,a.useContext)(h.I),v=(0,d.MO)("isInDesignMode"),w=(0,d.MO)("isDemoBrand"),j=(0,d.MO)("whatmoreSecondaryColor"),C=(0,d.MO)("whatmoreSecondaryColorShade1200"),S=(0,d.MO)("whatmorePrimaryFont"),y=(0,d.MO)("whatmoreShopId"),b=(t.event,t.cta),k=.05*s;return(0,p.jsx)(r.M5,{children:(0,p.jsx)(r.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*s+"px",marginTop:.03*s+"px",children:(0,p.jsx)(r.rU,{href:g(b.cta_link,y),color:"white",onClick:()=>{v||w||(async()=>{(0,u.uD)(t)})()},children:(0,p.jsx)(r.xv,{fontSize:k*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:j,bgColor:C,sx:{borderRadius:"round"==f?"5px":"0px",borderWidth:(0,c.p5)(y),borderColor:"#343434"===(0,c.yx)(y)?j:(0,c.yx)(y),fontFamily:S+" !important",textAlign:"center!important",fontWeight:"bold"},paddingY:"8px",paddingX:.05*s+"px",children:b.cta_title})})})})}},8782:function(t,e,n){n.d(e,{P:function(){return d}});var i=n(3933),o=n(8866),r=n(7313),a=(n(123),n(6417));function l(t){const{ref:e,inView:n,entry:o}=(0,i.YD)({triggerOnce:t.retainAlreadyRenderedElements});return(0,a.jsx)("div",{ref:e,children:n?t.renderElement({eventData:t.data}):(0,a.jsx)("div",{style:{minWidth:t.defaultHeight,minHeight:t.defaultWidth}})})}function d(t){var e;const[n,i,d]=(0,o.Z)();return(0,r.useEffect)((()=>{function e(t){t.preventDefault(),t.stopPropagation(),n.scrollLeft+=t.deltaX,n.scrollLeft+=t.deltaY}const n=document.querySelector(".whatmore-carousel-horizontal-flex");return t.isScroll&&(null===n||void 0===n||n.addEventListener("wheel",e)),()=>{document.removeEventListener("wheel",e)}}),[]),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto"},className:"whatmore-carousel-horizontal-flex",children:t.dataList.map(((e,n)=>(0,a.jsx)(l,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n)))})}},342:function(t,e,n){n.d(e,{WN:function(){return o},uv:function(){return i}});const i=function(t){var e;return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null:t.event_hls_url},o=function(t){return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.landscape.content_video_1080p:t.event_media_urls.primary.landscape.content_video_1080p:t.event_hls_url}},7789:function(t,e,n){var i=n(8866);e.Z=function(t){const[e,n,o]=(0,i.Z)();var r="landscape"==e?n*(9/16):o;if("landscape"==e){const t=.85;return[n,r,n*t,r*t]}return[n,r,n,r]}},7053:function(t,e,n){n.d(e,{gK:function(){return r},pO:function(){return a}});var i=n(6233),o=n(4844);async function r(t,e,n){return"shopify"==e?(0,o.dg)(t):(0,i.Y4)(t,n)}async function a(t,e,n){return"shopify"==e?(0,o.bN)(t):(0,i.ln)(t,n)}},9111:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[959],{4048:function(e,t,n){n.r(t);var i=n(7313),o=n(6090),r=n(7616),s=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),l=n(2575),a=n(2210),d=n(8486),c=n(9821),h=n(8866),p=n(2279),x=n.n(p),m=n(7753),u=n(7129),f=n(1855),y=n(9854),g=n(4136),w=n(4920),v=n(7376),j=n(778),C=n(6417);const b=(0,l.Z)({key:"whatmore-css-hv"});function P(e){const[t,n,o]=(0,c.Z)(),r=(0,m.MO)("whatmoreShopId"),s=e.events,l=e.onClick,d=o*(0,y.u6)(r),{whatmoreWidgetSourceDetails:h}=(0,i.useContext)(g.I);return(0,C.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,C.jsx)(a.tq,{slidesPerView:s.length>1?d:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!0,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,v.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:h,event:s[e.activeIndex],productList:s[e.activeIndex].products})},children:s.map((e=>(0,C.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:o,isVisible:r}=t;return i||o||n?(0,C.jsx)(w.Z,{isOnFocus:n&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{l(e)}}):(0,C.jsx)(f.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function I(e){const[t,n,o,r]=(0,c.Z)(),[s,l]=(0,i.useState)((h=o,Math.floor(Math.random()*Math.floor(h))));var h;const p=e.onClick,m=e.events,u=Math.min(o,m.length),{whatmoreWidgetSourceDetails:y}=(0,i.useContext)(g.I);return(0,C.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,C.jsx)("div",{style:{width:n*u*1.1+"px"},children:(0,C.jsx)(a.tq,{slidesPerView:u,watchSlidesProgress:!0,modules:[d.W_],navigation:!0,slidesPerGroup:parseInt(u),onSlideChange:()=>{(0,v.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y,event:m[s],productList:m[s].products})},children:m.map(((e,t)=>{const n=x()((()=>l(t)),300);return(0,C.jsx)(a.o5,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel()},children:n=>{let{isActive:i,isPrev:o,isNext:r,isVisible:l}=n;return l?(0,C.jsx)(w.Z,{isOnFocus:t==s,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,C.jsx)(f.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){var t;const[n,l,a]=(0,h.Z)(),[d]=(0,m.j1)("whatmoreShopId"),[c]=(0,m.j1)("whatmorePrimaryColor"),[p]=(0,m.j1)("whatmoreSecondaryColor"),[x]=(0,m.j1)("whatmoreTitleFont"),f="portrait"==n?(0,m.MO)("whatmoreTitleFontSizePortrait"):(0,m.MO)("whatmoreTitleFontSize"),{whatmoreRootId:w}=(0,i.useContext)(g.I),v=e.events,j=e.onClick,S=null!==(t=(0,y.aR)(d))&&void 0!==t?t:x;function F(e){j(e)}return delete r.ZP.styles.global,(0,C.jsx)(s.C,{value:b,children:(0,C.jsx)("div",{children:(0,C.jsx)(o.x,{theme:r.ZP,cssVarsRoot:w,resetCSS:!1,children:(0,C.jsxs)(u.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0?(0,C.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S,"important"),e.style.setProperty("font-size",f+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center"},children:e.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===n?(0,C.jsx)(I,{events:v,onClick:F}):(0,C.jsx)(P,{events:v,onClick:F})]})})})})}},1092:function(e,t,n){var i=n(237),o=n(9854),r=n(7753),s=n(4136),l=n(7313),a=n(6417);function d(e){return e<1e3?e:e<1e5?(e/1e3).toFixed(0)+"K":(e/1e5).toFixed(0)+"L"}t.Z=function(e){const{whatmoreUITheme:t}=(0,l.useContext)(s.I),n=(0,r.MO)("whatmoreShopId"),c=(0,r.MO)("whatmorePrimaryFont"),h=e.event,p=e.fontSize;if(h.total_views<=0)return(0,a.jsx)(a.Fragment,{});const x=(0,o.S_)(n);return"template-icon"==x?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(i.Z,{sx:{color:(0,o.aL)(n)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,o.aL)(n),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("font-size",p,"important"),e.style.setProperty("min-height","0","important"),e.style.setProperty("display","inline","important"),e.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(h.total_views)+" "})})]})})}):"template-text"==x?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,o.aL)(n),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",c,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+d(h.total_views)+" views"})})})})}):void 0}},7129:function(e,t,n){n.d(t,{V:function(){return i}});const i=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},5945:function(e,t,n){function i(e){return"undefined"==typeof e||"undefined"==e||null==e?"":e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}n.d(t,{s:function(){return i}})},1855:function(e,t,n){var i=n(7313),o=n(9821),r=n(7129),s=n(6417);t.Z=function(e){var[t,n]=(0,o.Z)();return(0,i.useContext)(r.V),e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:n,height:t,overflow:"hidden"}})}},4920:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),s=n(7753),l=n(4892),a=n(7129),d=n(6805),c=n(9854),h=n(1092),p=n(5945),x=n(4136),m=n(6417);var u=function(e){var[t,n]=(0,o.Z)();const{whatmoreUITheme:r}=(0,i.useContext)(x.I),[l]=(0,s.j1)("whatmorePrimaryFont"),[a]=(0,s.j1)("whatmorePrimaryColor"),[d]=(0,s.j1)("whatmoreSecondaryColor"),[h,u]=(0,i.useState)(0),f=(0,s.MO)("whatmoreShopId"),y=e.event,g=y.products.length;if(0==g)return(0,m.jsx)(m.Fragment,{});(0,i.useEffect)((()=>{const e=setInterval((()=>{u((e=>(e+1)%g))}),3e3);return()=>{clearInterval(e)}}),[]);const w=.3*n,v=w+"px",j=w+"px",C=.07*n+"px";return(0,m.jsx)("div",{style:{width:n+"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,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",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,m.jsx)("div",{style:{width:v,height:j,boxShadow:"round"==r?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==r?"5px":"0px",borderWidth:(0,c.al)(f),borderColor:(0,c.qP)(f),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,m.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,c.yO)(f),"important")},src:y.products[h].thumbnail_image,style:{width:"100%",height:"100%",borderRadius:"round"==r?"5px":"0px"},alt:"product image"})}),(0,m.jsx)("div",{style:{width:n-5-w+"px",height:j,borderRadius:"round"==r?"5px":"0px",overflow:"visible"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",height:"100%",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",C,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",l,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,p.s)(y.products[h].title)})})})]},h)})},f=n(3933),y=n(8984);function g(e){var t,[n,l]=(0,o.Z)();const[d]=(0,s.j1)("whatmoreShopId"),[h,p,x]=(0,f.YD)({triggerOnce:!0});var g=(0,i.useContext)(a.V);const w=e.event,v=null!==(t=e.unfocusedDisplay)&&void 0!==t&&t,j=.5*l;return(0,m.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,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)("p",{children:" "})}),g.showPlayButton&&!v?(0,m.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(r.Z,{sx:{color:"#F5F5F5 !important",opacity:(0,y.KE)()?0:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,m.jsx)(m.Fragment,{}),(0,m.jsx)("div",{ref:h,children:p&&(0,c.PW)(d)?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(u,{event:w})}):(0,m.jsx)("div",{height:"20px"})})]})})}function w(e){var[t,n]=(0,o.Z)();const[i]=(0,s.j1)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,m.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,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,m.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,m.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,m.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,m.jsx)(m.Fragment,{})}function v(e){const[t,n,i,r,l]=(0,o.Z)(),[a]=(0,s.j1)("whatmoreShowViews"),c=e.event,p=e.isOnFocus;return(0,m.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,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,m.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,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===a?(0,m.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,m.jsx)(h.Z,{event:c,fontSize:.07*n+"px"})})}):(0,m.jsx)(m.Fragment,{})})}),d.$w===l[d.YP]?(0,m.jsx)(m.Fragment,{}):p?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,m.jsx)(w,{event:c})}):(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(w,{event:c})})]})})}var j=function(e){var t,n,r;const[h,p,u,f,y]=(0,o.Z)();var w=(0,i.useContext)(a.V);const{whatmoreUITheme:j}=(0,i.useContext)(x.I),C=(0,s.MO)("whatmoreShopId"),b=e.event,P=e.onClick,I=null===(t=e.isOnFocus)||void 0===t||t,S=null!==(n=e.playOnUnfocus)&&void 0!==n&&n,F=null!==(r=e.animateOnFocus&&(0,c.iW)(C))&&void 0!==r&&r,M=(0,c.nz)(C);return(0,m.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",w.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",w.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:p,height:h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j?M:null,borderWidth:(0,c.al)(C),borderColor:(0,c.qP)(C),overflow:"hidden",cursor:"pointer"},className:F?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(b)},children:[(0,m.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:I||S,event:b}),(0,m.jsxs)("div",{style:{width:p,height:h},children:[(0,m.jsx)(v,{event:b,isOnFocus:I}),I||d.$w===y[d.YP]?(0,m.jsx)(g,{event:b,unfocusedDisplay:!I}):null]})]})}},9723:function(e,t,n){var i=n(5318);t.Z=void 0;var o=i(n(5045)),r=n(6417),s=(0,o.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.82z"}),"PlayArrowRounded");t.Z=s},237:function(e,t,n){var i=n(5318);t.Z=void 0;var o=i(n(5045)),r=n(6417),s=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=s},3439:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){}}]);
|