whatmore-react-assets 1.0.421 → 1.0.423
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/334.88494847.chunk.js +1 -0
- package/static/js/660.0f7b2e31.chunk.js +1 -0
- package/static/js/{68.d3d6bf06.chunk.js → 68.4a214ffd.chunk.js} +1 -1
- package/static/js/891.718e4771.chunk.js +1 -0
- package/static/js/{950.6df8c768.chunk.js → 950.e86f8ad9.chunk.js} +1 -1
- package/static/js/959.2f29a785.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/334.8ca3324c.chunk.js +0 -1
- package/static/js/660.df0a545e.chunk.js +0 -1
- package/static/js/891.37570c43.chunk.js +0 -1
- package/static/js/959.83ffd9fe.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[334,68,12],{51:function(t,e,n){n.d(e,{Z:function(){return i}});var o=n(7313),c=n(7753),a=n(5254),r=n(6417);var i=function(t){return(0,o.useEffect)((()=>{const t=(0,a.oo)((0,c.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const c="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),a="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(c,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(c,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(c,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(c,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(c,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(c,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(c,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(c,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=a,document.head.appendChild(r)}(t[0],t[1],t[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},4658:function(t,e,n){n.r(e),n.d(e,{default:function(){return z}});var o=n(7313),c=n(6090),a=n(7616),r=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),i=n(2575),s=n(8866),l=n(7753),m=n(7129),d=n(4136),h=(n(3439),n(4892),n(9854)),u=n(3933),f=n(868),g=n(342),p=n(3437),v=n(3455),w=n(6417);var x=function(t){var e;const n=t.isMuted,o=null!==(e=t.iconSize)&&void 0!==e?e:30;function c(){t.onToggle()}return(0,w.jsx)("div",{style:{cursor:"pointer"},children:n?(0,w.jsx)(v.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}}):(0,w.jsx)(p.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}})})},y=n(264),b=n(8984),j=n(58),P=n(6119);function C(t){const[e,n]=(0,o.useState)(t.initialMuteState);function c(){n(!e),(0,b.KE)()&&(0,j.QV)(),t.onMuteToggle()}t.event;return(0,w.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,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>c()}),(0,w.jsx)(x,{isMuted:e,onToggle:()=>{c()}})]}),(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>c()})]})})}var k=function(t){const[e,n,c]=(0,s.Z)(),[a,r]=(0,o.useState)(!0),{whatmoreUITheme:i}=(0,o.useContext)(d.I),m=(0,l.MO)("whatmoreVideoTileSize"),{ref:p,inView:v,entry:x}=(0,u.YD)({triggerOnce:!1}),b=(0,l.MO)("whatmoreShopId"),j=t.event,k=(0,h.nz)(b),M=(0,g.uv)(j),z=(0,g.WN)(j);if("portrait"===e&&!M)return(0,w.jsx)(w.Fragment,{});if("landscape"===e&&!z)return(0,w.jsx)(w.Fragment,{});const Z=(0,f.V)("portrait"===e?M:z),S=m/100,I=m/100*(0,h.Gm)(b),L="portrait"===e?c*S:c*I,F="portrait"===e?L*(16/9):L*(9/16);return(0,w.jsxs)("div",{ref:p,onClick:()=>{var t,e;(0,h.hr)(b)&&!(0,h.j1)(b)&&window.open(null===(t=j.cta)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.cta_link,"_blank")},style:{margin:"0 auto",width:L,height:F,padding:"0px",borderRadius:"round"==i?"5px":"0px",boxShadow:"round"==i?k:null,borderWidth:(0,h.al)(b),borderColor:(0,h.qP)(b),overflow:"hidden",cursor:"pointer"},children:[(0,w.jsx)(y.Z,{height:"100%",width:"100%",url:Z,isPlaying:v,event:j,isVideoMuted:a}),!(0,h.hr)(b)&&(0,w.jsx)(C,{event:j,onMuteToggle:()=>r(!a),initialMuteState:a}),(0,h.j1)(b)&&(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"portrait"===e?"12%":"20%"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)("div",{children:(0,w.jsx)(P.Z,{event:j,cta:j.cta[0],fontFactor:.6})})})]})};const M=(0,i.Z)({key:"whatmore-css-bv"});var z=function(t){const[e,n,i]=(0,s.Z)(),{whatmoreRootId:h}=((0,l.MO)("whatmorePrimaryColor"),(0,l.MO)("whatmoreShopId"),(0,l.MO)("whatmoreSecondaryColor"),(0,l.MO)("whatmoreTitleFont"),(0,o.useContext)(d.I)),u=t.events;return delete a.ZP.styles.global,(0,w.jsx)(r.C,{value:M,children:(0,w.jsx)("div",{children:(0,w.jsx)(c.x,{theme:a.ZP,cssVarsRoot:h,resetCSS:!1,children:(0,w.jsx)(m.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(k,{event:u[0]})})})})})}},3867:function(t,e,n){var o=n(8816),c=n(417),a=n(4885),r=n(7753),i=n(4136),s=n(7313),l=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[m]=(0,r.j1)("whatmoreSecondaryColor"),[d,h]=(0,r.j1)("productRatings"),u=(0,r.MO)("whatmorePrimaryFont"),f=(t.storeId,t.productId),g=(t.productLink,t.fontSize),p=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,l.jsx)(l.Fragment,{});const v=d[f].avgRating,w=d[f].totalRatings;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((t,e)=>(0,l.jsx)(o.Z,{sx:{color:m,fontSize:g+"px"}},"star-icon"+e))),v-Math.floor(v)>.2?(0,l.jsx)(c.Z,{sx:{color:m,fontSize:g+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(a.Z,{sx:{color:m,fontSize:g+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((t,e)=>(0,l.jsx)(a.Z,{sx:{color:m,fontSize:g+"px"}},"star-outline-icon-"+e))),(0,l.jsx)("div",{children:(0,l.jsx)("div",{width:"2px"})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{style:{backgroundColor:m,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*g+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,l.jsx)("div",{children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",p,"important"),t.style.setProperty("font-size",.8*g+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+w+")"]})})]})})}},7129:function(t,e,n){n.d(e,{V:function(){return o}});const o=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(t,e,n){var o=n(51),c=n(5180),a=n(6417);e.Z=function(t){var e,n;const r=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,a.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,a.jsx)(c.Z,{height:r,width:i}),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,a.jsx)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,c;const a=null!==(e=t.height)&&void 0!==e?e:"100%",r=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(c=t.borderRadius)&&void 0!==c?c:"10px";return(0,o.jsx)("div",{style:{height:a,width:a,borderRadius:i,overflow:"hidden",minHeight:a,minWidth:r,maxHeight:a,maxWidth:r},children:(0,o.jsx)("div",{style:{minHeight:a,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),c=n(3175),a=n(6417);e.Z=function(t){var e,n,r;const[i,s]=(0,o.useState)(!1),l=o.useRef(0),m=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)((()=>{l.current=0;const t=setInterval((()=>{l.current=l.current+.03,m.current&&d(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,a.jsx)("img",{ref:m,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(c.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return d}});var o=n(7313),c=n(3933),a=n(868),r=n(8984),i=n(7300),s=n(2887),l=n(6417);var m=function(t){var e,n;const a=(0,o.useRef)(null),[r,i,s]=(0,c.YD)({triggerOnce:!0}),m=null!==(e=t.height)&&void 0!==e?e:"100%",d=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{a.current&&(t.isPlaying?a.current.play():a.current.pause())}),[t.isPlaying,i]),(0,l.jsx)("div",{ref:r,style:{width:m,height:d,overflow:"hidden"},children:i?(0,l.jsx)("video",{ref:a,className:"whatmore-video-player",width:d,height:m,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:t.url,style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:d,height:m,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var d=function(t){var e,n,d;const[h,u,f]=(0,c.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,l.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const g=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,r.KE)())return(0,l.jsx)(m,{height:"100%",width:"100%",url:(0,a.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:g});const p=(0,o.useRef)(null),v=null!==(n=t.height)&&void 0!==n?n:"100%",w=null!==(d=t.width)&&void 0!==d?d:"100%";return(0,o.useEffect)((()=>{p.current&&(t.isPlaying?p.current.play():p.current.pause())}),[t.isPlaying,u]),(0,l.jsx)("div",{ref:h,style:{width:v,height:w,overflow:"hidden"},children:u?(0,l.jsx)("video",{ref:p,className:"whatmore-video-player",width:w,height:v,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,a.V)(t.url),style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:w,height:v,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),c=n(7753);const a={"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"},r={"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"},i=function(t){const e=(0,c.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zp)(e))return t;if("AZURECDN"==(0,o.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}if("BUNNYCDN"==(0,o.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}return t}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8866:function(t,e,n){var o=n(7313);function c(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=c();const[a,r]=(0,o.useState)([e>n?"portrait":"landscape",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=c();r(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)}}),[]),a}},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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");e.Z=r},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=r},417:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=r},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=r},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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(2210),c=n(8486),h=n(3271),u=n(9854),p=n(7789),x=n(7053),g=n(4844),m=(n(8493),n(264));var f=function(t){return(0,l.jsx)(m.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},v=n(5098),w=n(3437),j=n(3455),C=n(6422);var S,y,b,k,I=function(t){const[e,n]=(0,C.Z)(),[i,o,r,a]=(0,p.Z)(),d=.08*a;function s(){n(!e)}return(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.Cd,{cursor:"pointer",children:e?(0,l.jsx)(j.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{s()}}):(0,l.jsx)(w.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{s()}})})})},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"]))),R="\n ".concat(D," 1.5s linear;\n"),z=(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(z," 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 W=(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"]))),Z="\n ".concat(W," ").concat(3,"s ease-in-out;\n");function q(t){const[e,n,i,r]=(0,p.Z)(),[d]=(0,a.j1)("whatmoreSecondaryColor"),[s,c]=(0,o.useState)(0),u=t.event,x=t.onClick,g=u.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 w=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==u.products||0==u.products.length)return(0,l.jsx)(l.Fragment,{});var b=u.products;return(0,l.jsx)(h.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,l.jsxs)(h.xu,{margin:"10px",width:w,height:j,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:P,onClick:()=>x(),children:[(0,l.jsx)(v.Ee,{width:"100%",height:"100%",src:b[s].thumbnail_image,objectFit:"cover",borderRadius:"lg",animation:Z},s),(0,l.jsx)(h.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,l.jsx)(h.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,l.jsx)(h.M5,{children:(0,l.jsxs)(h.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)(h.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)(h.M5,{children:(0,l.jsx)(M.Z,{sx:{color:"white",fontSize:y}})})]})})})}),(0,l.jsx)(h.Kq,{direction:"row",height:"fit-content",width:w,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(h.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,p.Z)(),[c,u]=(0,o.useState)(!1),x=t.onToggle,g=t.event,m=.07*s;return(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.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:()=>{x("minimize-button")}}):(0,l.jsx)(q,{event:g,onClick:()=>{x("products-button"),u(!0)},isFirstProductsIconClickDone:c})})})},A=n(2634),N=n(8302);var B,V,U=function(t){const e=t.onCloseCallback,[n,i,o,r]=(0,p.Z)(),a=.08*r;return(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.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,p.Z)(),[s,c]=(0,o.useState)(!0),{slideDirection:u}=(0,o.useContext)(un),x=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*x);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)(h.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,l.jsxs)(h.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,l.jsx)(h.M5,{animation:"vertical"===u?w:C,children:"vertical"===u?(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)(h.M5,{children:(0,l.jsx)(h.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,x,g,m]=(0,p.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)(h.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)(h.Kq,{direction:"column",width:"fit-content",height:S,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,l.jsx)(h.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,u.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,u.lj)(s)?t.product_link+"?"+(0,u.aw)(s)+"&"+(0,u.n9)(s)+"&"+(0,u.v)(s):t.product_link}(w)},_hover:{backgroundColor:(0,tt.lA)(i,8)},cursor:"pointer",children:(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.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),p=t.onClick,x=t.width,g=t.height,m=t.title,f=t.showInProgressIcon;return(0,l.jsx)(h.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:f?(0,tt.lA)(n,8):n,onClick:t=>{t.stopPropagation(),p(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:[(0,l.jsxs)(h.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,u.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),p=t.onClick,x=t.width,g=t.height;return(0,l.jsx)(h.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),p(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,l.jsx)(h.M5,{children:(0,l.jsxs)(h.xv,{lineHeight:"100%",fontSize:1.4*c,fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,u.KC)(r)+" !important"},children:["\xa0",(0,u.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)(h.xu,{width:r,height:d,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,l.jsx)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,l.jsxs)(h.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,u=t.height,p=t.onCartIconClick;return(0,l.jsx)(h.xu,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,l.jsx)(h.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,l.jsx)(ct.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,l.jsx)(h.xv,{color:n,fontSize:1.3*r,fontWeight:"semibold",sx:{fontFamily:i+" !important"},children:s}),(0,l.jsx)(h.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,g.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,g.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:p}=(0,o.useContext)(un),[g,m]=(0,o.useState)({state:"init",cart_count:t});function f(t,e){m({state:t,cart_count:null!==e&&void 0!==e?e:g.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",g.cart_count);f("atcApiCallInProgress",null);St(o,1,(0,u.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",g.cart_count+1),(0,a.bU)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[g,s,function(){f("productVariantDetailsApiCallInProgress",null),(0,x.pO)(e,(0,u.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,u.v9)(i)&&("go_to_cart_page"!==(0,u.v9)(i)?"open_cart_slider"!==(0,u.v9)(i)||null!==p&&p():yt((0,u.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",x=null!==(i=t.baseFontSize)&&void 0!==i?i:10,g=t.onOptionSelected,m=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",[f]=(0,a.j1)("isInDesignMode"),[w]=(0,a.j1)("isDemoBrand"),[j]=(0,a.j1)("whatmoreSecondaryColor"),[C]=(0,a.j1)("whatmorePrimaryFont"),[S]=(0,a.j1)("whatmoreShopId"),[y,b,k,I]=(0,p.Z)();let F=[];for(let o=0;o<(null===t||void 0===t||null===(_=t.data)||void 0===_||null===(T=_.product)||void 0===T||null===(E=T.images)||void 0===E?void 0:E.length);o++){var _,T,E,O,P,D;(null===t||void 0===t||null===(O=t.data)||void 0===O||null===(P=O.product)||void 0===P||null===(D=P.images[o].variant_ids)||void 0===D?void 0:D.length)>0&&F.push(o)}function R(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[z,L]=(0,o.useState)([R(d[0]),R(d[1]),R(d[2])]);return(0,o.useEffect)((()=>{g(z)}),[z]),(0,l.jsx)(h.Kq,{direction:"column",width:s,height:c,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:d.map(((e,n)=>{if(0!=e.length)return(0,l.jsxs)(h.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,l.jsx)(h.M5,{width:"100%",children:(0,l.jsx)(h.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,l.jsxs)(h.xv,{as:"b",fontSize:1.2*x+"px",sx:{color:m+" !important",fontFamily:C+" !important"},align:"center",children:["\xa0",e[0].type,"\xa0"]}),(0,l.jsx)(h.Eq,{justify:"center",children:e.map(((i,o)=>{var r,a,d,s;return(0,l.jsx)(h.Uc,{children:(0,l.jsx)(h.xu,{borderRadius:"Colour"!==i.type&&"Color"!==i.type||F.length!==(null===e||void 0===e?void 0:e.length)?"2px":"50%",padding:"2px",onClick:t=>{t.stopPropagation(),i.available&&L([0==n?i.option:z[0],1==n?i.option:z[1],2==n?i.option:z[2]])},backgroundColor:i.option==z[n]?j:"white",_hover:{bg:i.option==z[n]?j:(0,tt.lA)(j,5)},cursor:"pointer",children:"Colour"!==i.type&&"Color"!==i.type||F.length!==(null===e||void 0===e?void 0:e.length)?(0,l.jsxs)(h.xv,{as:i.available?"samp":"s",fontSize:x+"px",sx:{color:(i.available?i.option==z[n]?"white":"black":"gray")+" !important",fontFamily:C+" !important"},align:"center",paddingX:(s=i.option,s.length>=3?"0px":.5*x+"px"),children:["\xa0",i.option,"\xa0"]}):(0,l.jsx)(v.Ee,{padding:"2px",borderRadius:(0,u.lm)(S),width:"58px",height:"58px",src:null===t||void 0===t||null===(r=t.data)||void 0===r||null===(a=r.product)||void 0===a||null===(d=a.images)||void 0===d?void 0:d[F[o]].src})})},i.option)}))},n)]},n)}))})},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"),[g,m,f,w]=(0,p.Z)(),[j,C]=(0,o.useState)(!1),[S,y]=(0,o.useState)(t.product),{whatmoreUITheme:b}=(0,o.useContext)(ot.I),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(ot.I),[I,F,_,T,E,O]=bt(0,S,t.event),[P,D]=(0,o.useState)(null),[R,z]=(0,o.useState)(parseFloat(S.price)),[L,K]=(0,o.useState)(parseFloat(S.compare_price)),[M,W]=(0,o.useState)(S.currency),[Z,q]=(0,o.useState)(),H=t.event,A=t.productClickHandler;(0,o.useEffect)((()=>{(0,u.N8)(c)&&(0,It.Rb)(S,(0,u.Ip)(c),c).then((t=>{y(t),z(parseFloat(t.price)),K(parseFloat(t.compare_price)),W(t.currency)}));(async()=>{const t=await(0,x.gK)(S,(0,u.Ip)(c),c);q(t)})()}),[]);var N=.68*w,B=.55*N,V=.4*N,U=N*(.55-.4),X=N+"px",G=V+"px",J=U+"px",$=.12*V;const rt=(0,u.IT)(c);return(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,u.pq)(c),width:X,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{!function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),A(i),C(!0)}(H,S)},backgroundColor:(0,tt.lA)("#ffffff",(0,u.U5)(c)),animation:j?Q.mT:null,borderRadius:"round"==b?"xl":null,overflow:"hidden",onAnimationEnd:()=>{C(!1)},spacing:0,sx:{borderWidth:(0,u.al)(c),borderColor:(0,u.qP)(c)},children:[(0,l.jsxs)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(h.xu,{height:G,width:G,bgColor:d,children:(0,l.jsx)(v.Ee,{width:G,height:G,src:S.thumbnail_image,sx:{objectFit:(0,u.yO)(c)+" !important"}})}),(0,l.jsxs)(h.xu,{height:G,width:N-V+"px",children:[(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:(0,u.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(h.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:2,fontSize:1.1*$+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:(0,lt.s)(null==S.title?"":S.title.toString())}),(0,u.is)(c)?(0,l.jsxs)(h.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(h.xv,{noOfLines:1,fontSize:1*$+"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)(R,"",c,M)," \xa0"]}),(0,l.jsx)(h.M5,{children:(0,dt.B)(R,L)?(0,l.jsxs)(h.xv,{noOfLines:1,fontSize:.9*$+"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)(L,"",c,M)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,u.Fr)(c)?(0,l.jsx)(h.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)(h.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(h.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(at.Z,{sx:{color:i,fontSize:1.3*$+"px"}})}),(0,l.jsx)(h.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(Y.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==I.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==I.state&&null!=F?(0,l.jsx)(h.xu,{width:"100%",height:"fit-content",marginTop:.1*B+"px",marginBottom:.1*B+"px",overflowY:"auto",overflowX:"hidden",maxHeight:B*rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(kt,{width:X,height:"fit-conten",event:H,product:S,data:Z,productVariantOptions:F,baseFontSize:1.2*$,onOptionSelected:t=>{!function(t){D(t);const e=E(t);e&&(z(e.price),K(e.compare_price))}(t)}})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(h.Kq,{direction:"row",width:"100%",height:J,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(mt,{baseFontSize:.3*U,event:H,product:S,cartState:I.state,cartCount:I.cart_count,onClickAtc:t=>{"init"==I.state?(_(),(0,nt.GF)({userInteractionType:it.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:k,event:H,productList:[S],ctaList:H.cta})):"awaitingVariantSelection"==I.state&&T(P)},onCartIconClick:()=>{O()}})})]})},_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"),u=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)(h.rU,{href:p.product_link,color:s,onClick:()=>{!function(t,e){o||d||(async()=>{(0,r.$L)(t,e)})()}(u,p)},children:(0,l.jsx)(h.xu,{width:g,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.xv,{lineHeight:"100%",fontSize:1.4*x,fontWeight:"semibold",sx:{fontFamily:c+" !important",color:s+" !important"},children:" VIEW MORE "})}),(0,l.jsx)(h.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),p=t.onClick,x=t.width,g=t.height,m=t.title;return(0,l.jsx)(h.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),p(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(h.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,l.jsxs)(h.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,u.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"),[x,g,m,f]=(0,p.Z)(),[w,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)),[R,z]=(0,o.useState)(parseFloat(C.compare_price)),[L,K]=(0,o.useState)(C.currency),M=t.event,W=t.productClickHandler,Z=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1;(0,o.useEffect)((()=>{(0,u.N8)(c)&&(0,It.Rb)(C,brandDomainContext(c),c).then((t=>{S(t),D(parseFloat(t.price)),z(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var q=f*Z,H=.3*q,A=q+"px",N=.7*H,B=.9*N,V=.12*H;const U=(0,u.IT)(c);function X(t,e){n||i||(async()=>{(0,r.wz)(t,e)})(),W(e),j(!0)}return(0,l.jsx)(h.Kq,{direction:"row",width:A,height:"fit-content",justifyContent:"center",children:(0,l.jsx)(h.xu,{marginTop:et,marginBottom:(0,u.pq)(c),width:A,onClick:t=>{},animation:w?Q.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,l.jsxs)(h.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{X(M,C)},children:[(0,l.jsx)(h.xu,{height:N+"px",width:N+"px",children:(0,l.jsx)(h.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,l.jsx)(h.xu,{height:B+"px",width:B+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,l.jsx)(v.Ee,{width:B+"px",height:B+"px",src:C.thumbnail_image,objectFit:"cover"})})})}),(0,l.jsx)(h.xu,{height:N+"px",width:q-N+"px",children:(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,l.jsx)(h.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)(h.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,u.is)(c)?(0,l.jsxs)(h.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)(h.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)(h.M5,{children:(0,dt.B)(C.price,C.compare_price)?(0,l.jsxs)(h.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(R),"",c,L)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.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)(h.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),z(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,l.jsx)(h.xu,{width:"100%",height:"100%",children:(0,l.jsx)(Tt,{baseFontSize:.8*V,event:M,product:C,width:"100%",height:"100%"})}),(0,l.jsx)(h.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,u.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,u._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 Rt=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"),[x,g,m,f]=(0,p.Z)(),[w,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,u.N8)(c)&&(0,It.Rb)(C,(0,u.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",R=P+"px",z=O*(.55-.4)+"px",L=.12*P;(0,u.IT)(c);const{whatmoreWidgetSourceDetails:K}=(0,o.useContext)(ot.I);function M(t){return(0,u.lj)(c)?t.product_link+"?"+(0,u.aw)(c)+"&"+(0,u.n9)(c)+"&"+(0,u.v)(c):t.product_link}function W(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)(h.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,u.pq)(c),width:D,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{W(E,C),window.location.href=M(C)},backgroundColor:(0,tt.lA)("#ffffff",(0,u.U5)(c)),animation:w?Q.mT:null,borderRadius:"round"==y?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,u.al)(c),borderColor:(0,u.qP)(c)},children:[(0,l.jsxs)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(h.xu,{height:R,width:R,bgColor:d,children:(0,l.jsx)(v.Ee,{width:R,height:R,src:C.thumbnail_image,sx:{objectFit:(0,u.yO)(c)+" !important"}})}),(0,l.jsxs)(h.xu,{height:R,width:O-P+"px",children:[(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:(0,u.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(h.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,u.is)(c)?(0,l.jsxs)(h.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)(h.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)(h.M5,{children:(0,dt.B)(b,I)?(0,l.jsxs)(h.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,u.Fr)(c)?(0,l.jsx)(h.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)(h.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(h.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)(h.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,u.pp)(c)&&(0,l.jsx)(h.Kq,{direction:"row",width:"100%",height:z,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(Pt,{baseFontSize:.8*L,event:E,product:C,borderRadius:"md",onShopNowClick:t=>{W(E,C),window.location.href=M(C)}})})]})};var zt=function(t){const[e]=(0,a.j1)("whatmoreShopId"),n=(0,u.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)(Rt,{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 Wt=function(t){const[e,n,i,o]=(0,p.Z)(),[r]=(0,a.j1)("whatmoreShopId"),d=(0,a.MO)("isInDesignMode"),x=(0,a.MO)("isDemoBrand"),g=t.event,m=t.productClickHandler,f=(0,u.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,u.rn)(r)?(0,l.jsx)(h.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&&!x,children:(0,l.jsx)(h.M5,{children:(0,l.jsx)(Dt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})}):(0,l.jsx)(h.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)(h.M5,{children:(0,l.jsx)(Mt.u,{userInteractionType:it.K.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!d&&!x,children:(0,l.jsx)(zt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})})}return(0,l.jsx)(h.M5,{children:(0,l.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(h.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)(s.tq,{slidesPerView:1==g.products.length?1:1.4,initialSlide:g.products.length<=2?0:1,centeredSlides:!0,modules:[c.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[g.products.map((t=>(0,l.jsx)(s.o5,{children:(0,l.jsx)(Mt.u,{userInteractionType:it.K.PRODUCT_CTA_VIEW,event:g,productList:[t],triggerFlag:!d&&!x,children:(0,l.jsx)(h.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(zt,{event:g,product:t,productClickHandler:m},g.event_id+t.product_id)})})},g.event_id+t.product_id))),(0,u.pp)(r)&&void 0!=g.cta&&g.cta.map((t=>(0,l.jsx)(s.o5,{children:(0,l.jsx)(h.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 Zt=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)(Wt,{event:i,productClickHandler:r},i.event_id):(0,l.jsx)(Y.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,l.jsx)(Wt,{event:i,productClickHandler:r},i.event_id)})};function qt(t){const e=t.event,[n,i,o,r]=(0,p.Z)(),[d]=(0,a.j1)("whatmorePrimaryFont");return(0,l.jsx)(h.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,l.jsx)(v.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,l.jsx)(h.xu,{width:"fit-content",height:"fit-content",children:(0,l.jsxs)(h.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(h.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,s]=(0,C.Z)(),[c,p]=(0,a.j1)("isFirstIndicatorRenderDone"),x=(0,o.useContext)(un),[g]=(0,a.j1)("whatmoreShopId"),m=t.event,f=t.isLast,v=t.onCloseCallback,w=t.focusRef,j=t.productClickHandler;return(0,l.jsx)(h.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(h.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsx)(h.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(qt,{event:m}),(0,l.jsxs)(h.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,l.jsx)(I,{focusRef:w}),(0,l.jsx)(U,{event:m,onCloseCallback:v})]})]})}),(0,l.jsx)(h.xu,{width:"100%",height:"100%",onClick:()=>{s(!d)}}),(0,l.jsxs)(h.xu,{width:"full",height:"fit-content",children:[x.totalEvents>1&&!c&&x.showSwipeIndicator?(0,l.jsx)(h.xu,{width:"full",margin:"2px",children:(0,l.jsx)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!f})})}):null,void 0!=m.products&&m.products.length>0?(0,l.jsxs)(h.xu,{width:"full",children:[(0,u.Jm)(g)?(0,l.jsx)(h.xu,{w:"100%",children:(0,l.jsx)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(H,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Zt,{event:m,productClickHandler:j})})]}):(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)(h.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,l.jsx)(h.kC,{width:"10%",display:"flex !important"}),(0,l.jsx)(h.kC,{width:"90%",justifyContent:"center",children:(0,l.jsx)(h.xv,{align:"center",fontSize:1.25*o,fontWeight:"semibold",sx:{color:"black !important",fontFamily:n+" !important"},as:"b",children:d})}),(0,l.jsx)(h.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,p.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 x=(0,E.F4)(Ht||(Ht=(0,F.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),g="".concat(x," 0.5s");return(0,l.jsx)(h.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,l.jsxs)(h.xu,{width:"100%",height:"100%",children:[(0,l.jsx)(h.xu,{width:"100%",height:"100%",children:(0,l.jsx)(v.Ee,{width:"100%",height:"100%",src:(0,u.KM)(d),objectFit:"cover",borderTopRadius:"xl"})}),(0,l.jsx)(h.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)(h.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,g.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:p}=(0,o.useContext)(ot.I),[x,m]=(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,g.bj)(t,e,i):(0,wt.rY)(t,e,i)}(void 0!==y?y:C.product.variants[0].id,k,(0,u.Ip)(i),i),(0,nt.GF)({userInteractionType:it.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:p,event:S,productList:[b],ctaList:S.cta})),"view-more"==t&&(window.location.href=b.product_link+"?"+(0,u.aw)(i)+"&"+(0,u.n9)(i)+"&"+(0,u.v)(i)+((0,u.C0)(i)?"¤cy="+b.currency:""))};return(0,l.jsxs)(h.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,u.al)(i),borderColor:(0,u.qP)(i)},children:(0,l.jsx)(h.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:d+" !important"},children:"Sold Out"})}):(0,l.jsxs)(h.Kq,{direction:"vertical"==(0,u.rc)(i)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*j,justifyContent:"center",children:[(0,u.$b)(i)?(0,l.jsx)(Vt.zx,{width:"90%",height:2.5*j,onClick:async t=>{if(t.stopPropagation(),m(!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:p,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,u.Ip)(i),i,S,b).then((t=>{if(!t.ok)throw new Error(t.status);return m(!1),T(!0),t.json()})).then((t=>((0,a.bU)("whatmoreAddedToCart",!0),(0,u.k)(i)&&(e||(async()=>{const t=await(0,g.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=>{m(!1),O(!0),console.error("Error:",t)}))},sx:{paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,u.Fd)(i)?s+" !important":(0,u.Fd)(i)+" !important",borderRadius:"round"==c?"5px":"0px",borderWidth:(0,u.p5)(i),borderColor:"#343434"===(0,u.yx)(i)?s:(0,u.yx)(i),_hover:{backgroundColor:"transparent !important",borderWidth:(0,u.p5)(i),borderColor:"#343434"===(0,u.yx)(i)?s:(0,u.yx)(i)}},children:x?(0,l.jsx)(Ut.$,{display:"flex !important",color:"white"}):(0,l.jsx)(h.xv,{fontWeight:"extrabold",sx:{color:(0,u.eS)(i)+" !important",fontFamily:d+" !important"},fontSize:j,children:(0,u.t)(i)})}):(0,l.jsx)(l.Fragment,{}),(0,u.cD)(i)?(0,l.jsx)(l.Fragment,{children:(0,u.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,u.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,u.al)(i),borderColor:(0,u.qP)(i)},children:(0,l.jsx)(h.xv,{fontWeight:"extrabold",sx:{color:s+"!important",fontFamily:d+" !important"},fontSize:j,children:(0,u.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,u.II)(i)+" !important",borderRadius:"round"==c?"5px":"0px",borderWidth:(0,u.p5)(i),borderColor:"#343434"===(0,u.yx)(i)?s:(0,u.yx)(i),_hover:{backgroundColor:"transparent !important"}},children:(0,l.jsx)(h.xv,{fontWeight:"extrabold",sx:{color:"#343434"===(0,u.iK)(i)?s+" !important":(0,u.iK)(i)+" !important",fontFamily:d+" !important"},fontSize:j,children:(0,u.Zu)(i)})})})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(l.Fragment,{children:(0,u.$b)(i)?(0,l.jsx)(l.Fragment,{children:v?(0,l.jsx)(h.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)(h.kC,{animation:_?R:"none",onAnimationEnd:()=>T(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,u.v9)(i)&&("go_to_cart_page"!==(0,u.v9)(i)?(w(!0),function(t){"open_cart_slider"!==(0,u.v9)(t)||null!==f&&f()}(i)):yt((0,u.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)(h.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)(h.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)(h.Kq,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,l.jsx)(h.Kq,{children:(0,l.jsx)(h.xv,{fontSize:i,fontWeight:"bold",justifyContent:"center",sx:{color:"black !important",fontFamily:n+" !important"},children:"Description"})}),(0,l.jsx)(h.Kq,{children:(0,l.jsx)(h.xu,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,l.jsx)(h.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,u.N8)(s)&&(0,It.Rb)(n,(0,u.Ip)(s),s).then((t=>{i(t)}))}),[]);const c=t.FONT_SIZE,p=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)(h.kC,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,l.jsx)(h.kC,{children:(0,l.jsx)(h.rU,{href:function(t){return(0,u.lj)(s)?t.product_link+"?"+(0,u.aw)(s)+"&"+(0,u.n9)(s)+"&"+(0,u.v)(s)+((0,u.C0)(s)?"¤cy="+t.currency:""):t.product_link+((0,u.C0)(s)?"?currency="+t.currency:"")}(n),color:"white",children:(0,l.jsx)(h.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:1.1*c,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:d+" !important"},as:"b",children:p.product.title})})}),(0,l.jsxs)(h.kC,{direction:"row",gap:"6px",paddingTop:"4px",children:[g&&g>x&&(0,l.jsx)(h.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)(h.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)(h.xu,{display:"flex",bg:(0,u.sT)(s)?(0,u.ZJ)(s):"white",alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,l.jsx)(h.xv,{fontSize:(0,u.sT)(s)?"14px":1.1*c,sx:{color:(0,u.ms)(s)+" !important",fontFamily:d+" !important"},children:(0,u.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)({}),p=(0,a.MO)("whatmoreSecondaryColorShade300"),x=((0,a.MO)("whatmoreSecondaryColorShade600"),(0,a.MO)("whatmoreSecondaryColorShade1200"),t.selectedColor),g=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,f=t.selectOptionThirdHandler,w=(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)(h.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)(h.kC,{direction:"column",width:"100%",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||"Colour"===e.name)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(h.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,l.jsx)(h.xv,{fontSize:1*w,sx:{color:"black !important",fontFamily:i+" !important",fontWeight:"bold"},children:e.name}),"Size"===e.name&&(0,u.eg)(r)?(0,l.jsx)(h.kC,{marginTop:"4px",whiteSpace:"nowrap",children:(0,l.jsx)(h.xv,{fontSize:.7*w,as:"u",sx:{color:"black !important",fontFamily:i+" !important"},onClick:()=>{null!==d&&d(!0)},children:(0,u.me)(r)})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(h.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&&"Colour"!==e.name||S.length!==(null===e||void 0===e||null===(a=e.values)||void 0===a?void 0:a.length)?(0,l.jsx)(h.kC,{paddingBottom:"8px",paddingRight:"8px",children:(0,l.jsx)(Vt.zx,{size:"sm",px:"8px !important",bg:s[e.name]===t?(null!==(d=(0,u.CP)(r))&&void 0!==d?d:p)+" !important":(0,u.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)(h.xv,{fontSize:.9*w,sx:{fontFamily:i+" !important",fontWeight:"normal",color:s[e.name]===t?(0,u.cY)(r)+" !important":(0,u.Fb)(r)+" !important"},children:t})})},t):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h.kC,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,l.jsx)(h.xu,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,u.lm)(r),size:"sm",border:s[e.name]===t?"2px solid ".concat((0,u.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)(v.Ee,{padding:"2px",borderRadius:(0,u.lm)(r),width:"58px",height:"58px",src:j.product.images[S[o]].src})})},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)(h.M5,{paddingTop:"8px",width:"100%",children:(0,l.jsx)(h.iz,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ee,ne=n(8782);function ie(t){var e,n;const[i,r,d,s]=(0,p.Z)();var c=.4*s*.8,x=c*(16/9)*.6*.8;const m=1.1*c,f=m*(16/9)*.8;var w=.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,R]=(0,o.useState)((()=>{if("true"===_)return le(S,b.client_product_id)})),[z,L]=(0,o.useState)((()=>{if("true"===_)return de(S,b.client_product_id)})),[K,M]=(0,o.useState)(),[W,Z]=(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=>{R(t)}),[]),et=(0,o.useCallback)((t=>{L(t)}),[]);(0,o.useEffect)((()=>{const t=oe(S,O,D,z);M(t),H(re(S,t)),Z(1),Y(!1);const e=se(S,t);null!==e&&G(e)}),[O,D,z]),(0,o.useEffect)((()=>{const t=void 0===K?S.product.variants[0].price:re(S,K);H(t*W)}),[W]),(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,g.Bi)():(0,wt.OM)(e)}((0,u.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)(h.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:w}),(0,l.jsx)(h.M5,{marginBottom:"10px",px:"20px",py:"5px",children:(0,l.jsx)(h.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,u.al)($),borderColor:(0,u.qP)($)},children:(0,l.jsx)(h.kC,{width:"100%",children:(0,l.jsx)(ne.P,{renderElement:t=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h.xu,{width:m+"px",height:f+"px",children:(0,l.jsx)(v.Ee,{width:m+"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,u.yO)($)+" !important"},fallback:(0,l.jsx)(T.Z,{width:m+"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:m+"px",defaultWidth:f+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,l.jsx)(Qt,{data:S,product:b,PRODUCT_TILE_HEIGHT:x,PRODUCT_TILE_WIDTH:c,FONT_SIZE:w,getVariantPrice:re,selectedVariantId:K,itemPrice:q,itemQuantity:W,setItemQuantity:Z,thumbnailImage:X}),S.product.variants.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.M5,{paddingTop:"4px",width:"100%",children:(0,l.jsx)(h.iz,{color:(0,u.W8)($),size:"xs",width:"90%"})}),(0,l.jsx)(te,{data:S,dividerColor:(0,u.W8)($),selectedColor:t=>{it(t)},product:b,PRODUCT_TILE_HEIGHT:x,PRODUCT_TILE_WIDTH:c,FONT_SIZE:w,selectOptionFirstHandler:Q,selectOptionSecondHandler:tt,selectOptionThirdHandler:et,getVariantPrice:re,selectedOptionFirst:O,selectedOptionSecond:D,selectedOptionThird:z,selectedVariantId:K})]}),u.$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:x,FONT_SIZE:w,data:S,handleToggle:()=>C(!j),show:j}),(0,l.jsx)(h.xu,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,l.jsx)(Jt,{position:"relative",data:S,FONT_SIZE:w,product:b})}),(0,l.jsx)(Jt,{position:"fixed",selectedVariantId:K,data:S,FONT_SIZE:w,PRODUCT_TILE_WIDTH:c,product:b,itemQuantity:W,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)(h.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,l.jsx)(h.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,l.jsx)(h.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)(h.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)(h.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,p.Z)();const[s,c]=(0,o.useState)(!1),[g,m]=(0,o.useState)(),[v,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)(h.M5,{children:(0,l.jsxs)(h.xu,{width:d,height:r,sx:{overflow:"hidden"},children:[(0,l.jsx)(h.Kq,{direction:"column",justifyContent:T,height:"full",width:"full",children:(0,l.jsx)(h.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(h.oM,{width:"full",ratio:d/r,children:(0,l.jsx)(f,{height:"100%",width:"100%",url:C.event_hls_url,isPlaying:b,event:C})})})}),_?(0,l.jsx)(h.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)(h.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,x.gK)(t,(0,u.Ip)(j),j);w(t),m(e),c(!0),I(!0)}})})}):(0,l.jsx)(l.Fragment,{}),!0===s?(0,l.jsx)(h.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)(h.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:g,currentProduct:v,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,p.Z)();const[s]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColorShade900"),[u]=(0,a.j1)("whatmoreShopId"),x=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)(h.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(g).keys()].map((t=>(0,l.jsx)(h.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)(h.xu,{height:"100%",width:x+"%",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,x=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,p.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)})()}(x),(t.startsWith("product")||"embed"===t)&&(d="te"),e=(e="event_product_link"===(0,u.EE)(f)?x.products[0].product_link||"":window.location.pathname)+"?wtt="+d+"&wsid="+s+"&weid="+c,(0,u.lj)(f)&&(e=e+"&"+(0,u.aw)(f)+"&utm_campaign=video-share&utm_medium="+t);const n={title:(0,u.JN)(f),text:(0,u.QR)(f),url:e};navigator.share(n)}return(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.Cd,{cursor:"pointer",style:{marginBottom:m+"px"},children:(0,l.jsxs)(h.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:x,productList:x.products,ctaList:x.cta})}}),g&&(0,u.u8)(f)?(0,l.jsxs)(h.xv,{fontSize:.3*I+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:j+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",x.total_share>(0,u.LW)(f)?fe(x.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:x}=(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,p.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:x,event:g,productList:g.products,ctaList:g.cta})):(y(g,1),(0,nt.GF)({userInteractionType:it.K.VIDEO_LIKED,widgetSourceDetails:x,event:g,productList:g.products,ctaList:g.cta})),f(!m)}const k=g.total_like+(m?1:0);return(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.Cd,{cursor:"pointer",children:(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[m?(0,l.jsx)(Ce.Z,{sx:{boxShadow:3,color:(0,u.dm)(n),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,u.CE)(n)?(0,l.jsxs)(h.xv,{fontSize:.3*S+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:i+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",k>=(0,u.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,p.Z)(),[c]=(0,a.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:x}=(0,o.useContext)(ot.I),[g]=(0,a.j1)("whatmoreSecondaryColor"),[m]=(0,a.j1)("whatmoreShopId"),f=(0,u.f6)(m),v=null!==(e=(0,u.u2)(m))&&void 0!==e?e:[g,f,g,f,g];return(0,l.jsx)(l.Fragment,{children:x?(0,l.jsx)(h.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,l.jsxs)(h.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.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)(h.M5,{children:(0,l.jsx)(h.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,s]=(0,C.Z)(),[c,x]=(0,a.j1)("isFirstIndicatorRenderDone"),[g]=(0,a.j1)("whatmoreSecondaryColor"),[m]=(0,a.j1)("whatmoreSecondaryColorShade900"),[f]=(0,a.j1)("whatmoreShopId"),v=(0,o.useContext)(un),{whatmoreIsStoriesTemplate:w}=(0,o.useContext)(ot.I),{whatmoreEventsBrowsingTemplate:j}=(0,o.useContext)(ot.I),[S,y,b,k]=(0,p.Z)(),F=t.event,_=t.storySetId,T=t.isLast,E=t.onCloseCallback,O=t.focusRef,P=t.productClickHandler,D=t.videoPlayingData,R=t.totalSiblingEvents,z=t.indexAmongSiblings,L=t.leftOpenSpaceClickHandler,K=t.midOpenSpaceClickHandler,M=t.rightOpenSpaceClickHandler;return(0,l.jsx)(h.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(h.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsxs)(h.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:[v.showVideoPlayingData?(0,l.jsx)(h.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:R,indexAmongSiblings:z})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,l.jsxs)(h.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)(h.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,we.ZK)(j)?(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(j),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)(h.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,l.jsx)(h.xu,{width:"33%",height:"100%",onClick:()=>{L()},sx:{display:"block !important"}}),(0,l.jsx)(h.xu,{width:"34%",height:"100%",onClick:()=>{K()},sx:{display:"block !important"}}),(0,l.jsx)(h.xu,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}})]}),(0,l.jsxs)(h.xu,{width:"full",height:"fit-content",children:[v.totalEvents>1&&!c&&v.showSwipeIndicator?(0,l.jsx)(h.xu,{width:"full",margin:"2px",children:(0,l.jsx)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!T})})}):null,(0,u.jY)(f)?(0,l.jsx)(h.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(h.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,u.RO)(f)&&!(0,we.ZK)(j)?(0,l.jsx)(h.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(h.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"1%",children:(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(j),whatmoreShareStoryId:_,whatmoreShareEventId:F.event_id,event:F})})}):(0,l.jsx)(l.Fragment,{}),(0,Kt.kT)(F)?(0,l.jsxs)(h.xu,{width:"full",children:[(0,u.Jm)(f)?(0,l.jsx)(h.xu,{w:"100%",children:(0,l.jsx)(h.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)(h.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Zt,{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,g,f,v]=(0,p.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,R=t.setLockSwiper,z=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,W=null===(i=t.showOverlay)||void 0===i||i,Z=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()((()=>{z()}),1e3,{leading:!0,trailing:!1});return(0,l.jsx)(h.M5,{children:(0,l.jsxs)(h.xu,{width:v,height:f,sx:{overflow:"hidden"},children:[(0,l.jsx)(h.Kq,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,l.jsx)(h.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(h.oM,{width:"full",ratio:v/f,children:(0,l.jsx)(m.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:_})})})}),W?(0,l.jsx)(h.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)(h.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,x.gK)(t,(0,u.Ip)(F),F);b(t),S(e),j(!0),R(!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:Z,midOpenSpaceClickHandler:q,rightOpenSpaceClickHandler:H,storySetId:T})})}):(0,l.jsx)(l.Fragment,{}),!0===w?(0,l.jsx)(h.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)(h.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(he,{focusRef:O,event:t.event,isLast:D,onCloseCallback:()=>E(),setLockSwiper:R,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,p.Z)();const r=(0,a.MO)("whatmoreShopId"),d=t.event,s=t.isPlaying,c="center";return(0,l.jsx)(h.M5,{children:(0,l.jsxs)(h.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,l.jsx)(h.Kq,{direction:"column",justifyContent:c,height:"full",width:"full",children:(0,l.jsx)(h.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(h.oM,{width:"full",ratio:o/i,children:(0,l.jsx)(m.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,Fe.uv)(d)),isPlaying:s,timeUpdateCallback:function(t,e){},event:d})})})}),(0,l.jsx)(h.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)(h.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Oe.QV)()},children:(0,l.jsxs)(h.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,l.jsx)(Pe.Z,{sx:{boxShadow:3,color:(0,u.Y)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Oe.QV)()}}),(0,l.jsx)(h.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})};var Re=function(t){var e,n;const o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,s=t.onBack,c=t.isLast,h=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),p=t.progressUpdateCallback,[x,g]=(0,C.Z)(),[m]=(0,a.j1)("whatmoreVideoPlayerPoolBlessed"),f=null===(n=t.showOverlay)||void 0===n||n;function v(){g(!x)}if((0,Ee.KE)()&&0==m)return(0,l.jsx)(De,{event:o,onBack:s,isPlaying:r,isLast:c,setLockSwiper:h,onVideoEndedCallback:u,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{v()},midOpenSpaceClickHandler:()=>{v()},rightOpenSpaceClickHandler:()=>{v()},showOverlay:f},"shopping-video-view"+o.event_id);if((0,Te.B6)(o)||(0,Te.WJ)(o))return(0,l.jsx)(_e,{event:o,onBack:s,isPlaying:r,isLast:c,setLockSwiper:h,onVideoEndedCallback:u,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{v()},midOpenSpaceClickHandler:()=>{v()},rightOpenSpaceClickHandler:()=>{v()},showOverlay:f},"shopping-video-view"+o.event_id);if((0,Te.yC)(o)){var{status:w,bannerText:j,timeToStartInMins:S}=i.Z.getEventStatus(o);if(w.name===d.Z.LIVE.name)return(0,l.jsx)(ue,{event:o,onBack:s,isPlaying:r,isLast:c,showOverlay:f},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,l.jsx)("div",{})},ze=n(204),Le=n(8866),Ke=n(9284),Me=n.n(Ke),We=n(7463),Ze=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)(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,"up")}}):(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,"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,x,g,m]=(0,p.Z)();const[f]=(0,a.j1)("isInDesignMode"),[v]=(0,a.j1)("isDemoBrand"),[w,j]=(0,o.useState)(!0),[C,S]=(0,a.j1)("isFirstIndicatorRenderDone"),[y,b]=(0,o.useState)(!1),{setCloseClickComponent:k}=(0,o.useContext)(un),{slideDirection:I}=(0,o.useContext)(un),[F]=(0,a.j1)("whatmoreShopId"),[_]=(0,a.j1)("whatmoreLandingLocationType"),[T,E]=Be(n,e.length),[O,P]=Ve(I,50),[D]=Ue("vertical",30),[R,z]=(0,o.useState)(!1),[L,K]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:M}=(0,o.useContext)(ot.I);function W(){z(!1)}function Z(){W(),setTimeout((()=>{i()}),500)}function q(){(0,a.MO)("whatmoreAllowAutoSlide")&&(E("right"),L.slideNext())}function H(t,e){E(e),function(t,e){L&&("left"===e?L.slidePrev():L.slideNext())}(0,e)}(0,o.useEffect)((()=>(z(!0),()=>{})),[]),k(Z);const A=Math.round(.05*g);return(0,l.jsx)(Me(),{isOpen:R,onAfterOpen:function(){},onRequestClose:W,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=>{O(t)},onTouchEnd:t=>{const e=P(t);e&&H(0,e)},onWheel:t=>{D(t,(t=>{H(0,t)}))},children:[(0,l.jsx)(s.tq,{speed:400,threshold:A,slidesPerView:1,direction:I,modules:[c.tl,c.Gk],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{K(t)},onSlideChange:t=>{var n;w?j(!1):(C||S(!0),n=e[T().activeIndex],f||v||(async()=>{(0,r.wh)(n),"index"===_?((0,Ne.Tc)(F,Ae.Xh,Ae.pR),(0,vt.H4)(n.event_id,n.products,Ae.Xh,Ae.pR)):_.startsWith("product")||"embed"===_?((0,Ne.Tc)(F,Ae.h7,Ae.dU),(0,vt.H4)(n.event_id,n.products,Ae.h7,Ae.dU)):_.startsWith("collection")?((0,Ne.Tc)(F,Ae.U$,Ae.Pk),(0,vt.H4)(n.event_id,n.products,Ae.U$,Ae.Pk)):((0,Ne.Tc)(F,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:M,event:e[T().activeIndex],productList:e[T().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((t=>(0,l.jsx)(s.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)(h.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(Re,{event:e[T()[s]],onBack:Z,isPlaying:1==e.length||n&&r,isLast:!1,setLockSwiper:b,onVideoEndedCallback:q,progressUpdateCallback:t=>{}})})}},"event-vertical-scroll-slide-"+t)))}),e.length>1&&!y&&(0,u.h6)(F)&&"horizontal"===(0,u.e8)(F)&&"horizontal"===I?(0,l.jsx)(He,{relativeBottomPercentage:"50%",width:m,handleClick:(t,e)=>{H(0,"down"==e?"right":"left")},fontSize:parseInt(.12*m)}):(0,l.jsx)(l.Fragment,{})]})})})},Ge=n(4892);var Je=function(t){var e,n,i,[r,d,s,c]=(0,p.Z)();const[u]=(0,a.j1)("whatmorePrimaryColor"),[x]=(0,a.j1)("whatmoreSecondaryColor"),g=t.event,m=(t.onBack,o.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),f=null!==(n=t.heightFactor)&&void 0!==n?n:1,w="flex-end";return c*=null!==(i=t.widthFactor)&&void 0!==i?i:1,s*=f,(0,l.jsx)(h.M5,{children:(0,l.jsxs)(h.xu,{width:c,height:s,children:[(0,l.jsx)(h.Kq,{direction:"column",justifyContent:w,height:"full",width:"full",children:(0,l.jsx)(h.xu,{children:(0,l.jsx)(h.oM,{width:"full",ratio:9/16,children:m?(0,Te.B6)(g)||(0,Te.WJ)(g)?(0,l.jsx)(Ge.Z,{height:"100%",width:"100%",url:g.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:g}):(0,l.jsx)(v.Ee,{width:"full",height:"full",src:g.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,l.jsx)(h.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+u+", gray, "+x+")"})})})}),(0,l.jsx)(h.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:w,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(h.xu,{children:(0,l.jsx)(h.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(h.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)(h.rU,{href:"https://www.whatmore.live",isExternal:!0,children:(0,l.jsxs)(h.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)(h.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,p.Z)();const[x]=(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,R=t.onBack;function z(){O(),setTimeout((()=>{R()}),500)}function L(){T&&!T.isEnd&&(0,a.MO)("whatmoreAllowAutoSlide")&&T.slideNext()}(0,o.useEffect)((()=>(_(!0),()=>{})),[]),j(z);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)(h.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:(0,tt.lA)("#000000",13),children:[(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.xu,{height:"fit-content",width:d*K,children:(0,l.jsx)(s.tq,{onInit:t=>{E(t)},slidesPerView:K,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[c.lI,c.W_,c.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],x||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)(s.o5,{children:t=>{let{isActive:n,isPrev:o,isNext:r,isVisible:a,isDuplicate:s}=t;return n?(0,l.jsx)(h.Kq,{direction:"column",height:i,width:1*d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(h.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,u.al)(y),borderColor:(0,u.qP)(y)},children:(0,l.jsx)(Re,{event:P[e],onBack:z,isPlaying:!0,isLast:e===P.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:L,progressUpdateCallback:t=>{}})})}):r||o?(0,l.jsx)(h.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{T.slideTo(e,300)},children:(0,l.jsx)(h.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,u.al)(y),borderColor:(0,u.qP)(y)},children:(0,l.jsx)(Re,{event:P[e],onBack:z,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,u.XF)(y)?(0,l.jsx)(h.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,c=t.isActive,u=(t.isNext,t.isPrev,null!==(e=t.initialEventIndex)&&void 0!==e?e:0),x=n.events;var[g,m,f,v]=(0,p.Z)();const[w,j]=(0,C.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,R]=(0,o.useState)(null),[z,L]=(0,o.useState)(!1),[K,M]=(0,o.useState)(0),{whatmoreWidgetSourceDetails:W}=(0,o.useContext)(ot.I),[Z,q]=Be(u,x.length);function H(){i()}function A(){if(!(0,a.MO)("whatmoreAllowAutoSlide"))return;Z().activeIndex+1>=x.length?d("right"):(q("right"),D&&D.slideNext())}function N(t){const e=Z().activeIndex;"right"==t&&e+1>=x.length||"left"==t&&e-1<0?d(t):(q(t),D&&("left"==t?D.slidePrev():D.slideNext()))}return x[Z().activeIndex],(0,l.jsx)("div",{children:(0,l.jsx)(s.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:f,width:v,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{R(t)},onSlideChange:t=>{var e;F?_(!1):(T||E(!0),e=x[Z().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:W,event:x[Z().activeIndex],productList:x[Z().activeIndex].products,ctaList:x[Z().activeIndex].cta}))},children:[...Array(Math.min(x.length,3)).keys()].map((t=>(0,l.jsx)(s.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;if(c){const t=e?"activeIndex":i?"prevIndex":"nextIndex",o=x[Z()[t]];return(0,l.jsx)(h.Kq,{direction:"column",height:f,justifyContent:"center",children:(0,Te.B6)(o)||(0,Te.WJ)(o)?(0,l.jsx)(_e,{event:o,totalSiblingEvents:x.length,indexAmongSiblings:Z()[t],onBack:H,isPlaying:c&&e&&r,isLast:!1,setLockSwiper:L,onVideoEndedCallback:A,progressUpdateCallback:t=>{},leftOpenSpaceClickHandler:()=>{N("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{N("right")},storyId:n.id},"shopping-video-view"+o.event_id):(0,l.jsx)(l.Fragment,{})})}return(0,l.jsx)(h.Kq,{direction:"column",height:g,justifyContent:"center",children:(0,l.jsx)(ze.Z,{})})}},"event-story-view-slide-"+t)))})})};var sn=function(t){const e=t.onBack,n=t.eventsStories,i=t.initialStoryIndex;var[d,u,x,g]=(0,p.Z)();const[m]=(0,a.j1)("isInDesignMode"),[f]=(0,a.j1)("isDemoBrand"),[v,w]=(0,o.useState)(!0),[j,C]=(0,a.j1)("isFirstIndicatorRenderDone"),[S,y]=(0,o.useState)(!1),{setCloseClickComponent:b}=(0,o.useContext)(un),{slideDirection:k}=(0,o.useContext)(un),[I]=(0,a.j1)("whatmoreShopId"),[F,_]=Be(i,n.length),[T,E]=Ve("horizontal",50),[O]=Ue("vertical",30),P=t.eventIndex,[D,R]=(0,o.useState)(!1),[z,L]=(0,o.useState)(null),{whatmoreWidgetSourceDetails:K}=(0,o.useContext)(ot.I);function M(){R(!1)}function W(){M(),setTimeout((()=>{e()}),500)}function Z(t){z&&(0,a.MO)("whatmoreAllowAutoSlide")&&(_(t),"right"==t?z.slideNext():z.slidePrev())}function q(t,e){Z(e)}return(0,o.useEffect)((()=>(R(!0),()=>{})),[]),b(W),(0,l.jsx)(Me(),{isOpen:D,onAfterOpen:function(){},onRequestClose:M,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=>{T(t)},onTouchEnd:t=>{const e=E(t);e&&q(0,e)},onWheel:t=>{O(t,(t=>{q(0,t)}))},children:(0,l.jsx)(s.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[c.SH,c.Gk],initialSlide:i,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{L(t)},onSlideChange:t=>{var e,i,o;v?w(!1):(o=n[F().activeIndex].events[0],m||f||(async()=>{(0,r.wh)(o),(0,Ne.Tc)(I,Ae.Xh,Ae.OW),(0,vt.H4)(o.event_id,o.products,"homepage","stories")})(),(0,nt.GF)({userInteractionType:it.K.EVENT_VIEW,widgetSourceDetails:K,event:n[F().activeIndex].events[0],productList:null===(e=n[F().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[F().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)(s.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)(h.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(dn,{stories:n[F()[c]],onBack:W,isActive:e&&a,isNext:r,isPrev:o,onStoryCompleteCallback:Z,nextStories:n[F().nextIndex],prevStories:n[F().prevIndex],initialEventIndex:i==F()[c]?P:0},"event-story-view-"+n[F()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var cn=function(t){var[e,n,i,d]=(0,p.Z)();const[x]=(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 R(){T(),setTimeout((()=>{O()}),500)}function z(t){F&&!F.isEnd&&("right"==t?F.slideNext():F.slidePrev())}(0,o.useEffect)((()=>(I(!0),()=>{})),[]),j(R);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)(h.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:"blackAlpha.800",children:[(0,l.jsx)(h.M5,{children:(0,l.jsx)(h.xu,{height:"fit-content",width:d*L,children:(0,l.jsx)(s.tq,{onInit:t=>{_(t)},slidesPerView:L,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[c.lI,c.W_,c.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],x||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)(s.o5,{children:n=>{let{isActive:o,isPrev:r,isNext:a,isVisible:s,isDuplicate:c}=n;if(o){const n=1;return(0,l.jsx)(h.Kq,{direction:"column",height:i,width:d*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(h.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(dn,{stories:t,onBack:R,isActive:o&&s,isNext:!1,isPrev:!1,onStoryCompleteCallback:z,initialEventIndex:D==e?E:0},"event-story-view-"+t.id)})})}return r||a?(0,l.jsx)(h.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e,300)},children:(0,l.jsx)(h.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(Je,{showPausedVideo:!0,event:P[e].events[0],onBack:R,isPlaying:!1,setLockSwiper:S})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))})})}),(0,u.XF)(y)?(0,l.jsx)(h.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,s,c]=(0,Le.Z)(),[h]=(0,a.j1)("whatmoreShopId"),{whatmoreRootId:p}=(0,o.useContext)(ot.I),{whatmoreIsStoriesTemplate:x}=(0,o.useContext)(ot.I);var g=t.events,m=t.index,f=t.onBack,v=t.eventsStories,w=t.initialStoryIndex,j=(t.template,(0,u.cX)(h)),C=g[m],S="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:g.length>1?"horizontal":"vertical",y="portrait"===r?!(0,u.h6)(h)&&!x:(0,u.n8)(h),b=(C=g[m],[]);if((0,o.useLayoutEffect)((()=>{(0,u.TL)(h)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||f()})))}),[]),(0,Te.yC)(C)){var{status:k,bannerText:I,timeToStartInMins:F}=i.Z.getEventStatus(g[m]);if(k.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,x)return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:p,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Ee.KE)(),totalEvents:g.length,closeClickComponent:f,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:S,showSwipeIndicator:y},children:"portrait"===r?(0,l.jsx)(sn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m}):g.length>1&&(0,u.Bb)(h)?(0,l.jsx)(cn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m}):(0,l.jsx)(sn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m})})})});b=[];for(var _=0;_<g.length;_++)if((0,Te.B6)(g[_])||(0,Te.WJ)(g[_]))b.push(g[_]);else if((0,Te.yC)(g[_])){var{status:k,bannerText:I,timeToStartInMins:F}=i.Z.getEventStatus(g[_]);k.name===d.Z.LIVE.name&&b.push(g[_])}return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:p,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Ee.KE)(),totalEvents:g.length,closeClickComponent:f,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:S,showSwipeIndicator:y},children:"portrait"===r?(0,l.jsx)(Xe,{events:b,eventIndex:m,onBack:f}):g.length>1?(0,l.jsx)(nn,{events:b,eventIndex:m,onBack:f}):(0,l.jsx)(Xe,{events:b,eventIndex:m,onBack:f})})})})}},204:function(t,e,n){var i=n(3271),o=(n(7313),n(7753)),r=n(7789),a=n(6417);e.Z=function(t){const[e,n,l,d]=(0,r.Z)(),[s]=(0,o.j1)("whatmorePrimaryColor"),[c]=(0,o.j1)("whatmoreSecondaryColor"),h="flex-end";return(0,a.jsx)(i.M5,{children:(0,a.jsxs)(i.xu,{width:d,height:l,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,a.jsx)(i.Kq,{direction:"column",justifyContent:h,height:"full",width:"full",children:(0,a.jsx)(i.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,a.jsx)(i.oM,{width:"full",ratio:d/l,children:(0,a.jsx)(i.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+s+", gray, "+c+")"})})})}),(0,a.jsx)(i.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:h,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,a.jsx)(i.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,a.jsx)(i.oM,{width:"full",ratio:9/16,children:(0,a.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:R}=(0,r.useContext)(h.EventClickComponentContext),{whatmoreWidgetSourceDetails:z}=(0,r.useContext)(x.I),L=t.event,K=t.product,M=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function W(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 Z=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:Z,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:Z,height:q,minHeight:q},onClick:t=>{T(!0),W(L,K,1),(0,g.GF)({userInteractionType:m.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:z,event:L,productList:[K],ctaList:L.cta}),null!==R&&setTimeout((()=>{R()}),2e3)},children:"initial"===E.state?(0,f.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:Z},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:Z},children:(0,f.jsx)(v,{event:L,product:K,baseFontSize:M,cartState:E,width:Z,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}},6422:function(t,e,n){var i=n(7313),o=n(7753);e.Z=function(t){const[e,n]=(0,o.j1)("muted");return(0,i.useEffect)((()=>{}),[]),[e,n]}},7789:function(t,e,n){var i=n(8866);e.Z=function(t){const[e,n,o]=(0,i.Z)();var r="landscape"==e?n*(9/16):o;if("landscape"==e){const t=.85;return[n,r,n*t,r*t]}return[n,r,n,r]}},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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[68,12],{51:function(t,e,n){n.d(e,{Z:function(){return i}});var o=n(7313),c=n(7753),a=n(5254),r=n(6417);var i=function(t){return(0,o.useEffect)((()=>{const t=(0,a.oo)((0,c.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const c="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),a="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(c,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(c,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(c,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(c,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(c,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(c,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(c,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(c,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=a,document.head.appendChild(r)}(t[0],t[1],t[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},3867:function(t,e,n){var o=n(8816),c=n(417),a=n(4885),r=n(7753),i=n(4136),s=n(7313),m=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[l]=(0,r.j1)("whatmoreSecondaryColor"),[d,h]=(0,r.j1)("productRatings"),u=(0,r.MO)("whatmorePrimaryFont"),f=(t.storeId,t.productId),p=(t.productLink,t.fontSize),g=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,m.jsx)(m.Fragment,{});const b=d[f].avgRating,y=d[f].totalRatings;return(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(b))].map(((t,e)=>(0,m.jsx)(o.Z,{sx:{color:l,fontSize:p+"px"}},"star-icon"+e))),b-Math.floor(b)>.2?(0,m.jsx)(c.Z,{sx:{color:l,fontSize:p+"px"}},"star-half-icon"):b-Math.floor(b)==0?(0,m.jsx)(m.Fragment,{}):(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-b))].map(((t,e)=>(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon-"+e))),(0,m.jsx)("div",{children:(0,m.jsx)("div",{width:"2px"})}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",b,"\xa0"]})})}),(0,m.jsx)("div",{children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",g,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3175:function(t,e,n){var o=n(51),c=n(5180),a=n(6417);e.Z=function(t){var e,n;const r=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,a.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,a.jsx)(c.Z,{height:r,width:i}),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,a.jsx)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,c;const a=null!==(e=t.height)&&void 0!==e?e:"100%",r=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(c=t.borderRadius)&&void 0!==c?c:"10px";return(0,o.jsx)("div",{style:{height:a,width:a,borderRadius:i,overflow:"hidden",minHeight:a,minWidth:r,maxHeight:a,maxWidth:r},children:(0,o.jsx)("div",{style:{minHeight:a,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),c=(n(6422),n(3175)),a=n(6417);e.Z=function(t){var e,n,r;const[i,s]=(0,o.useState)(!1),m=o.useRef(0),l=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)((()=>{m.current=0;const t=setInterval((()=>{m.current=m.current+.03,l.current&&d(m.current,5),m.current>=5&&(m.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,a.jsx)("img",{ref:l,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(c.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return d}});var o=n(7313),c=n(3933),a=n(868),r=n(8984),i=n(7300),s=(n(6422),n(2887)),m=n(6417);var l=function(t){var e,n;const a=(0,o.useRef)(null),[r,i,s]=(0,c.YD)({triggerOnce:!0}),l=null!==(e=t.height)&&void 0!==e?e:"100%",d=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{a.current&&(t.isPlaying?a.current.play():a.current.pause())}),[t.isPlaying,i]),(0,m.jsx)("div",{ref:r,style:{width:l,height:d,overflow:"hidden"},children:i?(0,m.jsx)("video",{ref:a,className:"whatmore-video-player",width:d,height:l,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:t.url,style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:d,height:l,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var d=function(t){var e,n,d;const[h,u,f]=(0,c.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,m.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const p=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,r.KE)())return(0,m.jsx)(l,{height:"100%",width:"100%",url:(0,a.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:p});const g=(0,o.useRef)(null),b=null!==(n=t.height)&&void 0!==n?n:"100%",y=null!==(d=t.width)&&void 0!==d?d:"100%";return(0,o.useEffect)((()=>{g.current&&(t.isPlaying?g.current.play():g.current.pause())}),[t.isPlaying,u]),(0,m.jsx)("div",{ref:h,style:{width:b,height:y,overflow:"hidden"},children:u?(0,m.jsx)("video",{ref:g,className:"whatmore-video-player",width:y,height:b,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,a.V)(t.url),style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:y,height:b,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),c=n(7753);const a={"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"},r={"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"},i=function(t){const e=(0,c.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zp)(e))return t;if("AZURECDN"==(0,o.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}if("BUNNYCDN"==(0,o.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}return t}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},6422:function(t,e,n){var o=n(7313),c=n(7753);e.Z=function(t){const[e,n]=(0,c.j1)("muted");return(0,o.useEffect)((()=>{}),[]),[e,n]}},8866:function(t,e,n){var o=n(7313);function c(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=c();const[a,r]=(0,o.useState)([e>n?"portrait":"landscape",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=c();r(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)}}),[]),a}},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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");e.Z=r},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=r},417:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=r},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=r},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[68,12],{51:function(t,e,n){n.d(e,{Z:function(){return i}});var o=n(7313),c=n(7753),a=n(5254),r=n(6417);var i=function(t){return(0,o.useEffect)((()=>{const t=(0,a.oo)((0,c.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const c="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),a="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(c,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(c,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(c,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(c,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(c,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(c,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(c,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(c,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=a,document.head.appendChild(r)}(t[0],t[1],t[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},3867:function(t,e,n){var o=n(8816),c=n(417),a=n(4885),r=n(7753),i=n(4136),s=n(7313),m=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[l]=(0,r.j1)("whatmoreSecondaryColor"),[d,h]=(0,r.j1)("productRatings"),u=(0,r.MO)("whatmorePrimaryFont"),f=(t.storeId,t.productId),p=(t.productLink,t.fontSize),g=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,m.jsx)(m.Fragment,{});const b=d[f].avgRating,y=d[f].totalRatings;return(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(b))].map(((t,e)=>(0,m.jsx)(o.Z,{sx:{color:l,fontSize:p+"px"}},"star-icon"+e))),b-Math.floor(b)>.2?(0,m.jsx)(c.Z,{sx:{color:l,fontSize:p+"px"}},"star-half-icon"):b-Math.floor(b)==0?(0,m.jsx)(m.Fragment,{}):(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-b))].map(((t,e)=>(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon-"+e))),(0,m.jsx)("div",{children:(0,m.jsx)("div",{width:"2px"})}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",b,"\xa0"]})})}),(0,m.jsx)("div",{children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",g,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3175:function(t,e,n){var o=n(51),c=n(5180),a=n(6417);e.Z=function(t){var e,n;const r=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,a.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,a.jsx)(c.Z,{height:r,width:i}),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,a.jsx)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,c;const a=null!==(e=t.height)&&void 0!==e?e:"100%",r=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(c=t.borderRadius)&&void 0!==c?c:"10px";return(0,o.jsx)("div",{style:{height:a,width:a,borderRadius:i,overflow:"hidden",minHeight:a,minWidth:r,maxHeight:a,maxWidth:r},children:(0,o.jsx)("div",{style:{minHeight:a,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),c=n(3175),a=n(6417);e.Z=function(t){var e,n,r;const[i,s]=(0,o.useState)(!1),m=o.useRef(0),l=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)((()=>{m.current=0;const t=setInterval((()=>{m.current=m.current+.03,l.current&&d(m.current,5),m.current>=5&&(m.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,a.jsx)("img",{ref:l,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(c.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return d}});var o=n(7313),c=n(3933),a=n(868),r=n(8984),i=n(7300),s=n(2887),m=n(6417);var l=function(t){var e,n;const a=(0,o.useRef)(null),[r,i,s]=(0,c.YD)({triggerOnce:!0}),l=null!==(e=t.height)&&void 0!==e?e:"100%",d=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{a.current&&(t.isPlaying?a.current.play():a.current.pause())}),[t.isPlaying,i]),(0,m.jsx)("div",{ref:r,style:{width:l,height:d,overflow:"hidden"},children:i?(0,m.jsx)("video",{ref:a,className:"whatmore-video-player",width:d,height:l,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:t.url,style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:d,height:l,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var d=function(t){var e,n,d;const[h,u,f]=(0,c.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,m.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const p=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,r.KE)())return(0,m.jsx)(l,{height:"100%",width:"100%",url:(0,a.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:p});const g=(0,o.useRef)(null),b=null!==(n=t.height)&&void 0!==n?n:"100%",y=null!==(d=t.width)&&void 0!==d?d:"100%";return(0,o.useEffect)((()=>{g.current&&(t.isPlaying?g.current.play():g.current.pause())}),[t.isPlaying,u]),(0,m.jsx)("div",{ref:h,style:{width:b,height:y,overflow:"hidden"},children:u?(0,m.jsx)("video",{ref:g,className:"whatmore-video-player",width:y,height:b,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,a.V)(t.url),style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:y,height:b,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),c=n(7753);const a={"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"},r={"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"},i=function(t){const e=(0,c.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zp)(e))return t;if("AZURECDN"==(0,o.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}if("BUNNYCDN"==(0,o.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}return t}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8866:function(t,e,n){var o=n(7313);function c(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=c();const[a,r]=(0,o.useState)([e>n?"portrait":"landscape",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=c();r(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)}}),[]),a}},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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");e.Z=r},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=r},417:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=r},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=r},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{3867:function(t,e,i){var o=i(8816),n=i(417),r=i(4885),s=i(7753),l=i(4136),a=i(7313),d=i(6417);e.Z=function(t){var e;const{whatmoreUITheme:i}=(0,a.useContext)(l.I),[p]=(0,s.j1)("whatmoreSecondaryColor"),[c,h]=(0,s.j1)("productRatings"),x=(0,s.MO)("whatmorePrimaryFont"),y=(t.storeId,t.productId),m=(t.productLink,t.fontSize),u=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===c||"undefined"==typeof c||!(y in c)||c[y].avgRating>5)return(0,d.jsx)(d.Fragment,{});const f=c[y].avgRating,g=c[y].totalRatings;return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(f))].map(((t,e)=>(0,d.jsx)(o.Z,{sx:{color:p,fontSize:m+"px"}},"star-icon"+e))),f-Math.floor(f)>.2?(0,d.jsx)(n.Z,{sx:{color:p,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map(((t,e)=>(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon-"+e))),(0,d.jsx)("div",{children:(0,d.jsx)("div",{width:"2px"})}),(0,d.jsx)("div",{children:(0,d.jsx)("div",{style:{backgroundColor:p,borderRadius:"round"==i?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",f,"\xa0"]})})}),(0,d.jsx)("div",{children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",u,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+g+")"]})})]})})}},4095:function(t,e,i){i.r(e),i.d(e,{default:function(){return W}});var o=i(7313),n=i(6090),r=i(7616),s=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),l=i(2575),a=i(2210),d=i(8486),p=i(9821),c=i(8866),h=i(2279),x=i.n(h),y=i(7753),m=i(7129),u=i(9854),f=i(4136),g=i(1855),w=i(4892),v=i(3933),j=i(1092),P=i(5945),C=i(5456),b=i(3867),I=i(9219),S=i(6417);const k=o.lazy((()=>Promise.all([i.e(576),i.e(803),i.e(660),i.e(12)]).then(i.bind(i,6163))));var O=function(t){const{whatmoreUITheme:e}=(0,o.useContext)(f.I);var[i,n]=(0,p.Z)();const[r]=(0,y.j1)("whatmorePrimaryFont"),[s]=(0,y.j1)("whatmoreSecondaryColorShade900"),[l]=(0,y.j1)("whatmoreShopId"),[a,d]=(0,o.useState)(0),[c,h]=(0,o.useState)(t.event),x=t.onClick;if(0==c.products.length)return(0,S.jsx)(S.Fragment,{});(0,o.useEffect)((()=>{(0,u.N8)(l)&&(0,I.p_)(c,(0,u.Ip)(l),l).then((t=>{h(t)}))}),[]);const m=.3*n,g=m+"px",w=m+"px",v=.05*n+"px",j=.07*n,O=j+"px",F=.05*n;return(0,S.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,S.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*n,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:x,children:[(0,S.jsx)("div",{style:{width:g,height:w,overflow:"hidden",backgroundColor:s,borderRadius:"round"==e?"5px":"0px",borderWidth:"0px"==(0,u.al)(l)?"2px":(0,u.al)(l),borderColor:"white"==(0,u.qP)(l)?s:(0,u.qP)(l)},children:(0,S.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,u.yO)(l),"important")},src:c.products[a].thumbnail_image,style:{width:g,height:g,borderRadius:"round"==e?"5px":"0px",backgroundColor:s},alt:"product image"})}),(0,S.jsx)("div",{style:{width:.7*n+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"2px",borderRadius:"round"==e?"5px":"0px"},children:(0,S.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,S.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",v,"important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",r,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:(0,P.s)(c.products[a].title)})}),(0,S.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"4px"},children:[(0,S.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",O,"important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",r,"important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat(c.products[a].price),"",l,c.products[a].currency)]}),(0,S.jsx)("div",{children:(0,C.B)(c.products[a].price,c.products[a].compare_price)?(0,S.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color","gray","important"),t.style.setProperty("font-size",.9*j+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",r,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat(c.products[a].compare_price),"",l,c.products[a].currency)]}):(0,S.jsx)(S.Fragment,{})})]}),(0,S.jsx)(b.Z,{storeId:l,productId:c.products[a].client_product_id,productLink:c.products[a].product_link,fontSize:F})]})})]},a),(0,u.IX)(l)?(0,S.jsx)(o.Suspense,{children:(0,S.jsx)(k,{baseFontSize:.05*n,event:c,product:c.products[0],width:.9*n,height:"fit-content"})}):(0,S.jsx)(S.Fragment,{})]})},F=i(3388);function M(t){const[e,i,n,r,s]=(0,p.Z)(),{whatmoreUITheme:l}=(0,o.useContext)(f.I),a=(0,y.MO)("whatmoreShowViews"),d=(0,y.MO)("whatmoreShopId"),c=((0,y.MO)("whatmoreSecondaryColorShade600"),t.PRODUCT_BOX_HEIGHT),h=t.PRODUCT_BOX_HEIGHT_IN_PX,x=t.PRODUCT_BOX_MARGIN,[m,g,w]=(0,v.YD)({triggerOnce:!0}),P=t.event;t.isOnFocus;return(0,S.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,S.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,S.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{t.onClick(P)},children:"show"===a?(0,S.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,S.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,S.jsx)(j.Z,{event:P,fontSize:.07*i+"px"})})}):(0,S.jsx)(S.Fragment,{})}),(0,S.jsx)("div",{style:{display:"flex",width:"100%",height:e-c+"px"},onClick:()=>{t.onClick(P)}}),(0,F.xg)(P,d)?(0,S.jsx)("div",{style:{position:"relative",zIndex:1,bottom:x+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:.95*i,height:h,marginLeft:x+"px",marginRight:x+"px",backgroundColor:"white",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,u.al)(d),borderColor:(0,u.qP)(d),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,S.jsx)("div",{ref:m,children:g&&(0,u.PW)(d)?(0,S.jsx)(O,{event:P,onClick:()=>{t.onClick(P)}}):(0,S.jsx)("div",{height:"20px"})})}):(0,S.jsx)(S.Fragment,{})]})})}var _=function(t){var e,i,n;const[r,s,l,a,d]=(0,p.Z)();var c=(0,o.useContext)(m.V);const{whatmoreUITheme:h}=(0,o.useContext)(f.I),x=(0,y.MO)("whatmoreShopId"),g=(0,y.MO)("whatmoreSecondaryColorShade600"),v=t.event,j=t.onClick,P=null===(e=t.isOnFocus)||void 0===e||e,C=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,b=null!==(n=t.animateOnFocus&&(0,u.iW)(x))&&void 0!==n&&n,I=(0,u.IX)(x)?.7:.8,k=r*I+"px",O=1-I,_=r*O,R=r*O+"px",L=r*O*.1,z=(0,u.nz)(x);return(0,S.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",c.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",c.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s+"px",height:1.2*r+"px",borderRadius:"round"==h?"5px":"0px",boxShadow:"round"==h?z:null,borderWidth:(0,u.al)(x),borderColor:(0,u.qP)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:b?P?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{},children:[(0,S.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},children:[(0,S.jsx)(w.Z,{height:k,width:"100%",url:v.thumbnail_image,isPlaying:P||C,event:v}),(0,F.xg)(v,x)?(0,S.jsx)("div",{style:{width:"100%",height:R,backgroundColor:g}}):(0,S.jsx)(S.Fragment,{})]}),(0,S.jsx)(M,{event:v,isOnFocus:P,PRODUCT_BOX_HEIGHT:_,PRODUCT_BOX_HEIGHT_IN_PX:R,PRODUCT_BOX_MARGIN:L,onClick:j})]})},R=i(778),L=i(7376);const z=(0,l.Z)({key:"whatmore-css-hv"});function Z(t){const[e,i,n]=(0,p.Z)(),r=(0,y.MO)("whatmoreShopId"),s=t.events,l=t.onClick,d=n*(0,u.u6)(r),{whatmoreWidgetSourceDetails:c}=(0,o.useContext)(f.I);return(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,S.jsx)(a.tq,{slidesPerView:s.length>1?d:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!0,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,L.y4)({userInteractionType:R.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})},children:s.map((t=>!(null===t||void 0===t?void 0:t.products.every((t=>"oos"===(null===t||void 0===t?void 0:t.product_status))))&&(0,S.jsx)(a.o5,{children:e=>{let{isActive:i,isPrev:o,isNext:n,isVisible:r}=e;return o||n||i?(0,S.jsx)(_,{isOnFocus:i&&r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{l(t)}}):(0,S.jsx)(g.Z,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function T(t){const[e,i,n,r]=(0,p.Z)(),[s,l]=(0,o.useState)(-1),c=(0,y.MO)("whatmoreShopId"),h=t.onClick,m=t.events,w=Math.min(n,m.length),{whatmoreWidgetSourceDetails:v}=(0,o.useContext)(f.I);return(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,S.jsx)("div",{style:{width:i*w*1.1+"px"},children:(0,S.jsx)(a.tq,{slidesPerView:w,watchSlidesProgress:!0,modules:[d.W_],navigation:!0,slidesPerGroup:parseInt(w),onSlideChange:()=>{(0,L.y4)({userInteractionType:R.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v})},spaceBetween:(0,u.WG)(c),children:m.map(((t,e)=>{const i=x()((()=>l(e)),300);return!(null===t||void 0===t?void 0:t.products.every((t=>"oos"===(null===t||void 0===t?void 0:t.product_status))))&&(0,S.jsx)(a.o5,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),l(-1)},children:i=>{let{isActive:o,isPrev:n,isNext:r,isVisible:l}=i;return l?(0,S.jsx)(_,{isOnFocus:e==s,playOnUnfocus:!0,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,S.jsx)(g.Z,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var W=function(t){var e;const[i,l,a]=(0,c.Z)(),[d]=(0,y.j1)("whatmorePrimaryColor"),[p]=(0,y.j1)("whatmoreShopId"),[h]=(0,y.j1)("whatmoreSecondaryColor"),[x]=(0,y.j1)("whatmoreTitleFont"),g="portrait"==i?(0,y.MO)("whatmoreTitleFontSizePortrait"):(0,y.MO)("whatmoreTitleFontSize"),{whatmoreRootId:w}=(0,o.useContext)(f.I),v=t.events,j=t.onClick,P=null!==(e=(0,u.aR)(p))&&void 0!==e?e:x;function C(t){j(t)}return delete r.ZP.styles.global,(0,S.jsx)(s.C,{value:z,children:(0,S.jsx)("div",{children:(0,S.jsx)(n.x,{theme:r.ZP,cssVarsRoot:w,resetCSS:!1,children:(0,S.jsxs)(m.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:[t.heading.trim().length>0?(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",P,"important"),t.style.setProperty("font-size",g+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:t.heading})}):(0,S.jsx)(S.Fragment,{}),"landscape"===i?(0,S.jsx)(T,{events:v,onClick:C}):(0,S.jsx)(Z,{events:v,onClick:C})]})})})})}},1092:function(t,e,i){var o=i(237),n=i(9854),r=i(7753),s=i(4136),l=i(7313),a=i(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,l.useContext)(s.I),i=(0,r.MO)("whatmoreShopId"),p=(0,r.MO)("whatmorePrimaryFont"),c=t.event,h=t.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const x=(0,n.S_)(i);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,n.XC)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.al)(i),borderColor:(0,n.qP)(i)},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)(o.Z,{sx:{color:(0,n.aL)(i)+" !important",fontSize:h,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.aL)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("font-size",h,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(c.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,n.XC)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.al)(i),borderColor:(0,n.qP)(i)},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:t=>{t&&(t.style.setProperty("color",(0,n.aL)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"))},style:{fontSize:h,fontWeight:"bold"},children:" "+d(c.total_views)+" views"})})})})}):void 0}},7129:function(t,e,i){i.d(e,{V:function(){return o}});const o=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,i){var o=i(7313),n=i(9821),r=i(7129),s=i(6417);e.Z=function(t){var[e,i]=(0,n.Z)();return(0,o.useContext)(r.V),t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:i,height:e,overflow:"hidden"}})}},5456:function(t,e,i){i.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8816:function(t,e,i){var o=i(5318);e.Z=void 0;var n=o(i(5045)),r=i(6417),s=(0,n.default)((0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=s},417:function(t,e,i){var o=i(5318);e.Z=void 0;var n=o(i(5045)),r=i(6417),s=(0,n.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=s},4885:function(t,e,i){var o=i(5318);e.Z=void 0;var n=o(i(5045)),r=i(6417),s=(0,n.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=s},237:function(t,e,i){var o=i(5318);e.Z=void 0;var n=o(i(5045)),r=i(6417),s=(0,n.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");e.Z=s},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|