whatmore-react-assets 1.0.1612 → 1.0.1613

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[620],{22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return n},b4:function(){return r},dl:function(){return o},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const n="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var n=i(5830),o=i(1941),r=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,o.A)(),[a]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[p]=(0,n.QN)("whatmoreVideoTileSize"),[c]=(0,n.QN)("whatmoreVideoTileSizePortrait"),h=s>=1025,x="portrait"==e?c:p,m=!("portrait"!=e||!(s>=481)),y=x/100*1.3*.5,f=x/100;var u=Math.min(s,i),[w,g,v,b]=[.6*u*(16/9),.6*u,1.4,0];function j(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(h){const t=g*y,e=w*y;[w,g,v,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],P[r._]=r.$S,P[r.dl]=r.nN}else if(m){var F=.8*g,C=.8*w;"portrait"==e?(F*=f,C*=f,[w,g,v,b]=[C,F,j(s/(1.2*F)),0],P[r._]=r.vF,P[r.dl]=r.tn):([w,g,v,b]=[C,F,(s-2*a)/(1.1*F),a],P[r._]=r.vF,P[r.dl]=r.nN)}else{F=g,C=w;"portrait"==e?(F=F*f*.9,C=C*f*.9,[w,g,v,b]=[C,F,j(s/(1.15*F)),0],P[r._]=r.b4,P[r.dl]=r.tn):(F=.7*g,C=.7*w,[w,g,v,b]=[C,F,(s-2*a)/(1.1*F),a],P[r._]=r.b4,P[r.dl]=r.nN)}return[w,g,v,b,P]}},1131:function(t,e,i){var n=i(4994);e.A=void 0;var o=n(i(9526)),r=i(4414);e.A=(0,o.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},2375:function(t,e,i){var n=i(4994);e.A=void 0;var o=n(i(9526)),r=i(4414);e.A=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},3590:function(t,e,i){var n=i(2375),o=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const c=(0,o.FVo)(i);return"template-icon"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(n.A,{sx:{color:(0,o.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4616:function(t,e,i){var n=i(9950),o=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,c,[h,x]=(0,r.A)();const m=(0,o.Xd)("whatmoreUITheme"),[y]=(0,o.QN)("whatmorePrimaryFont"),[f,u]=(0,n.useState)(0),w=(0,o.Xd)("whatmoreShopId"),g=t.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const v=.3*x,b=v+"px",j=v+"px",P=.07*x,F=P+"px";return(0,d.jsx)("div",{style:{width:x+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",j,"important")},style:{width:(0,s.H$k)(w)?b:"auto",boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,s.YcK)(w),borderColor:(0,s.Fwt)(w),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(w),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(g.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:x-5-v+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",F),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(g.products[f].title)})}),(0,s.gZ6)(w)&&(null===(e=g.products[f])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:x-5-v+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",x-5-v+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(p=g.products[f])||void 0===p||null===(c=p.product_metadata)||void 0===c?void 0:c.product_type})})]})]},f)})}},4826:function(){},5620:function(t,e,i){i.d(e,{A:function(){return v}});var n=i(9950),o=i(932),r=(i(4826),i(5727)),l=i(5830),s=i(9879),a=i(7509),d=i(22),p=i(1348),c=i(3590),h=i(4616),x=i(6649),m=i(6613),y=i(1131),f=(i(4365),i(4414));function u(t){var e,[i,s]=(0,o.A)();const[d]=(0,l.QN)("whatmoreShopId"),[c,y,u]=(0,x.A)({triggerOnce:!0});var w=(0,n.useContext)(a.h);const g=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,b=.5*s,j=(0,m.At)()?t.isOnFocus:y;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),w.showPlayButton&&!v?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==g.event_type&&(0,f.jsx)(r.A,{sx:{color:(0,p.KFN)(d)+" !important",opacity:.8,fontSize:b,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:c,children:j&&(0,p.imx)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(h.A,{event:g})}):(0,f.jsx)("div",{height:"20px"})})]})})}function w(t){var[e,i]=(0,o.A)();const[n]=(0,l.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function g(t){const[e,i,n,r,s]=(0,o.A)(),[a]=(0,l.QN)("whatmoreShowViews"),h=(0,l.Xd)("whatmoreShopId"),x=t.event,m=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===a&&"show"===(0,p.klK)(h)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(c.A,{event:x,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===s[d.dl]?(0,f.jsx)(f.Fragment,{}):m?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(w,{event:x})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(w,{event:x})})]})})}var v=function(t){var e,i,r;const[c,h,x,m,w]=(0,o.A)();var v=(0,n.useContext)(a.h);const b=(0,l.Xd)("whatmoreUITheme"),j=(0,l.Xd)("whatmoreShopId"),[P]=(0,l.Xd)("whatmorePrimaryFont"),F=t.event,C=t.onClick,I=null===(e=t.isOnFocus)||void 0===e||e,k=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,S=null!==(r=t.animateOnFocus&&(0,p.n5O)(j))&&void 0!==r&&r,A=(0,p.VYo)(j);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",v.tileTopMargin+"px"),t.style.setProperty("margin-bottom",v.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==j||"19501891"==j?void 0:h,aspectRatio:"8968077397"==j||"19501891"==j?9/16:void 0,height:"8968077397"==j||"19501891"==j?"100%":c,borderRadius:"round"==b?"5px":"0px",boxShadow:"round"==b||"61187850326"==j||"19501891"==j?A:null,borderWidth:(0,p.YcK)(j),borderColor:(0,p.Fwt)(j),overflow:"hidden",cursor:"pointer",position:"relative"},className:S?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(F)},children:[(0,f.jsx)(s.A,{height:(0,p.u06)(j)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:I||k,event:F}),"51394281658"===j?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:P+" !important"},children:null===F||void 0===F?void 0:F.title}),(0,f.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,f.jsx)(y.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,p.Q$)(j)&&(0,f.jsxs)("div",{style:{width:h,height:c},children:[(0,f.jsx)(g,{event:F,isOnFocus:I}),"87043703105"===j||"76467011883"===j||!I&&d.nN!==w[d.dl]?null:(0,f.jsx)(u,{event:F,unfocusedDisplay:!I,isOnFocus:I})]})]})}},7509:function(t,e,i){i.d(e,{h:function(){return n}});const n=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[474],{1957:function(e,t,o){var i=o(9950),n=o(932),r=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),p=o(4737),c=o(6594),h=o(8538),u=o(8149),m=o(5727),y=o(7740),v=o(4414);t.A=function(e){var t,o,x,f,g,w,P,j,C,S,b,N,O,I,A,k,M;const[F,_,R,D,E]=(0,n.A)(),z=.5*_;(0,i.useContext)(s.h);const W=(0,r.Xd)("whatmoreUITheme"),U=(0,r.Xd)("whatmoreShopId"),T=(0,r.Xd)("whatmorePrimaryFont"),B=(0,r.Xd)("whatmoreSecondaryColor"),H=e.onClick,X=null===(t=e.isOnFocus)||void 0===t||t,V=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,$=null!==(x=e.animateOnFocus&&(0,d.n5O)(U))&&void 0!==x&&x,L="portrait"===E[a.dl],q=(L?1.076*_*(0,d.HWj)(U):_*(0,d.N_4)(U))+"px",G=(L?1.076*_*(0,d.HWj)(U):_*(0,d.N_4)(U))+"px",K=(L?.965*_*(0,d.HWj)(U):.859*_*(0,d.N_4)(U))+"px",Y=(0,d.VYo)(U),{whatmoreIsPreviewMode:Q}=(0,i.useContext)(p.B),Z=.25*_,J=Z+"px",ee=1.25*Z+"px",[te,oe]=(0,i.useState)(e.event),[ie,ne]=(0,i.useState)(),re=null!==(f=null===(g=te.products)||void 0===g?void 0:g.find((e=>"active"==e.product_status)))&&void 0!==f?f:null===(w=te.products)||void 0===w?void 0:w[0],le=Math.round(+(null===re||void 0===re?void 0:re.price)),se=Math.round(+(null===re||void 0===re?void 0:re.compare_price)),ae=se&&0!=se&&se>le?Math.round((se-le)/se*100):NaN,[de,pe]=(0,i.useState)(ae),[ce,he]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(U)?(0,c.fu)(te,(0,d.NCy)(U),U).then((e=>{var t,o,i;oe(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;pe(l),he(!0)})):(async()=>{const e=await(0,u.M)(re,(0,d.NCy)(U),U);ne(e),he(!0)})()}),[]),(0,v.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","12px"),e.style.setProperty("margin-bottom","12px"))},className:$&&!L?X?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:_,margin:"0 auto",cursor:"pointer"},onClick:()=>{H(te)},children:["video"===te.event_type&&"55076552858"===U&&!L&&(0,v.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*z,marginLeft:z/2},children:(0,v.jsx)(m.A,{sx:{color:(0,d.KFN)(te.whatmoreShopId)+" !important",opacity:.8,fontSize:z,filter:"drop-shadow(0 0 15px black);"}})}),(0,v.jsx)("div",{style:{width:_,height:L&&X?"STR2FOC6KG9"==U||"STRDOIDF6O7"==U?F:1.1*F:F,borderRadius:"round"==W?"5px":"0px",boxShadow:"round"==W?Y:null,borderWidth:(0,d.YcK)(U),borderColor:(0,d.Fwt)(U),overflow:"hidden"},children:(0,v.jsx)(l.A,{height:(0,d.u06)(U)+" !important",width:"100%",url:te.thumbnail_image,isPlaying:X||V,event:te})}),(0,v.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(Q?(0,d.Tr1)(U):(0,d.UmS)(U))&&(null===te||void 0===te||null===(P=te.products)||void 0===P?void 0:P.length)>0&&(0,v.jsx)("div",{style:{maxHeight:ee,maxWidth:J,minWidth:null!==re&&void 0!==re&&re.thumbnail_image?J:"0",overflow:"hidden"},children:(0,v.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,d.KZe)(U),"important")},style:{height:"100%"},src:(null===re||void 0===re||null===(j=re.thumbnail_image)||void 0===j||null===(C=j.split("?"))||void 0===C?void 0:C[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,v.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(U),"important"),e.style.setProperty("font-size",q,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",T,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,h.v)(null===re||void 0===re?void 0:re.title)}),ce&&(0,d.Nzx)(U)&&(0,v.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(U)?"row":"row-reverse",justifyContent:(0,d.vw2)(U)?"flex-start":"flex-end"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(U),"important"),e.style.setProperty("font-size",G,"important"),e.style.setProperty("font-family",T,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(U)?"normal":"bold"},children:(0,c.Sb)(parseFloat((0,y.U)()?(null!==(S=null===ie||void 0===ie||null===(b=ie.variants)||void 0===b||null===(N=b[0])||void 0===N?void 0:N.price)&&void 0!==S?S:null===ie||void 0===ie?void 0:ie.price)/100:null===re||void 0===re?void 0:re.price)," ",U,null===(O=te.products[0])||void 0===O?void 0:O.currency)}),!isNaN(se)&&se>le&&(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.gld)(U),"important"),e.style.setProperty("font-size",G,"important"),e.style.setProperty("font-family",T,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,c.Sb)(parseFloat((0,y.U)()?(null!==(I=null===ie||void 0===ie||null===(A=ie.variants)||void 0===A||null===(k=A[0])||void 0===k?void 0:k.compare_at_price)&&void 0!==I?I:null===ie||void 0===ie?void 0:ie.compare_at_price)/100:null===re||void 0===re?void 0:re.compare_price)," ",U,null===(M=te.products[0])||void 0===M?void 0:M.currency)}),"56352899156"==U&&(0,d.Nzx)(U)&&ce&&!isNaN(de)&&0!=de&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(U)?"#343434"==B?(0,d.ub$)(U):B:(0,d.ub$)(U),alignItems:"center",borderRadius:(0,d.v8m)(U)+"px",width:"fit-content",padding:"3px 4px"},children:(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(U),"important"),e.style.setProperty("font-size",K,"important"),e.style.setProperty("font-family",T,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${de}% off`})})]}),(0,d.Nzx)(U)&&ce&&!isNaN(de)&&0!=de&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(U)?"#343434"==B?(0,d.ub$)(U):B:(0,d.ub$)(U),alignItems:"center",borderRadius:(0,d.v8m)(U)+"px",width:"fit-content",padding:(0,d.Cf)(U)?"3px 6px":"0px"},children:(0,d.Cf)(U)?(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(U),"important"),e.style.setProperty("font-size",K,"important"),e.style.setProperty("font-family",T,"important"))},children:`${de}% Off`}):(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d._zx)(U),"important"),e.style.setProperty("font-size",K,"important"),e.style.setProperty("font-family",(0,d.ogW)(U),"important"))},children:(0,d.rsz)(U)})})]})]})]})}},6945:function(e,t,o){o.r(t);var i=o(9950),n=o(340),r=o(5089),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(9946),p=o(9094),c=o(932),h=o(1941),u=o(5491),m=o.n(u),y=o(5830),v=o(7509),x=o(7136),f=o(1348),g=o(4737),w=o(5620),P=o(1351),j=o(6157),C=o(6641),S=o(1957),b=o(4414);const N=(0,a.A)({key:"whatmore-css-hv"});function O(e){const[t,o,n]=(0,c.A)(),[r,l,s]=(0,h.A)(),a=(0,y.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=n*(0,f.kcl)(a),v=(0,f.cbh)(a),[C,N]=(0,i.useState)(v?p.length:m),{whatmoreWidgetSourceDetails:O}=(0,i.useContext)(g.B);return(0,i.useEffect)((()=>{C<=m&&N((e=>e+m))}),[m]),(0,b.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("div",{style:{width:"8968077397"===a&&p.length<4?"200px":s,height:"fit-content"},children:(0,b.jsx)(d.RC,{slidesPerView:p.length>1?"51394281658"==a||"55820812447"==a?2:m:1,initialSlide:p.length>1&&"51394281658"!=a&&"55820812447"!=a?1:0,centeredSlides:"51394281658"!=a&&"55820812447"!=a,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==a?1:.5,onSlideChange:e=>{(0,P.UM)({userInteractionType:j.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:O}),e.realIndex>e.previousIndex&&N((e=>e+m))},loop:v&&p.length>2,children:p.map(((e,t)=>t<=C&&(0,b.jsx)(d.qr,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:r}=t;return i||n||o?(0,f.DmD)(a)?(0,b.jsx)(S.A,{isOnFocus:o&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(w.A,{isOnFocus:("51394281658"==a||"55820812447"==a||o)&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(x.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function I(e){const[t,o,n,r]=(0,c.A)(),[l,s]=(0,i.useState)(-1),a=(0,y.Xd)("whatmoreShopId"),h=e.onClick,u=e.events,v=(0,f.cbh)(a),[C,N]=(0,i.useState)(v?u.length:n),O="8968077397"==a||"19501891"==a?Math.floor(Math.min(n,u.length)):Math.min(n,u.length),I=Math.floor(Math.min(4,u.length)),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(g.B),k=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(k.current){const e="8968077397"===a&&u.length>=4?.7:(0,f.fHt)(a),t=o*O*e+"px";u.length<4||"8968077397"===a?k.current.style.setProperty("width",t,"important"):k.current.style.width=t}}),[o,O,a,C,u.length]),(0,i.useEffect)((()=>{C<=n&&N((e=>e+n))}),[n]),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,b.jsx)("div",{ref:k,style:{height:"100%"},children:(0,b.jsx)(d.RC,{slidesPerView:"8968077397"==a?I:O,watchSlidesProgress:!0,modules:[p.Vx],navigation:!0,slidesPerGroup:"8968077397"==a||"19501891"==a?Math.min(2,u.length):parseInt(O),onSlideChange:e=>{(0,P.UM)({userInteractionType:j.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:A}),e.realIndex>e.previousIndex&&N((e=>e+n))},spaceBetween:0,loop:(v||"8968077397"==a||"19501891"==a)&&u.length>4,style:{height:"100%"},children:u.map(((e,t)=>{const o=m()((()=>s(t)),300);return t<=C&&(0,b.jsx)(d.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s||"8968077397"==a||"19501891"==a&&(n||r)?(0,f.DmD)(a)?(0,b.jsx)(S.A,{isOnFocus:t==l,playOnUnfocus:!(0,f.aO7)(a)||t==parseInt(O/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,b.jsx)(w.A,{isOnFocus:t==l,playOnUnfocus:!(0,f.aO7)(a)||t==parseInt(O/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,b.jsx)(x.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,a]=(0,h.A)(),[d]=(0,y.QN)("whatmoreShopId"),[p]=(0,y.QN)("whatmorePrimaryColor"),[c]=(0,y.QN)("whatmoreTitleFont"),u="portrait"==t?(0,y.Xd)("whatmoreTitleFontSizePortrait"):(0,y.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(g.B),x=(0,y.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),P=e.events,j=e.onClick,S=c;function A(e){j(e)}return(0,i.useEffect)((()=>{(0,C.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,b.jsx)(s.C,{value:N,children:(0,b.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,b.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,b.jsxs)(v.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,b.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S,"important"),e.style.setProperty("font-size",u+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.Odx)(d),lineHeight:(0,f.L0y)(d),letterSpacing:(0,f.l3V)(d)},children:w?"W"!==x?x:"":e.heading})}):(0,b.jsx)(b.Fragment,{}),"landscape"===t?(0,b.jsx)(I,{events:P,onClick:A}):(0,b.jsx)(O,{events:P,onClick:A})]})})})})}},7136:function(e,t,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":t,overflow:"hidden"}})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return o},b4:function(){return n},dl:function(){return r},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const o="device_type",r="device_mode",n="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var o=i(5830),r=i(1941),n=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,r.A)(),[a]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),u=s>=1025,h="portrait"==e?p:c,m=!("portrait"!=e||!(s>=481)),y=h/100*1.3*.5,v=h/100;var f=Math.min(s,i),[x,g,w,P]=[.6*f*(16/9),.6*f,1.4,0];function j(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(u){const t=g*y,e=x*y;[x,g,w,P]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],S[n._]=n.$S,S[n.dl]=n.nN}else if(m){var C=.8*g,b=.8*x;"portrait"==e?(C*=v,b*=v,[x,g,w,P]=[b,C,j(s/(1.2*C)),0],S[n._]=n.vF,S[n.dl]=n.tn):([x,g,w,P]=[b,C,(s-2*a)/(1.1*C),a],S[n._]=n.vF,S[n.dl]=n.nN)}else{C=g,b=x;"portrait"==e?(C=C*v*.9,b=b*v*.9,[x,g,w,P]=[b,C,j(s/(1.15*C)),0],S[n._]=n.b4,S[n.dl]=n.tn):(C=.7*g,b=.7*x,[x,g,w,P]=[b,C,(s-2*a)/(1.1*C),a],S[n._]=n.b4,S[n.dl]=n.nN)}return[x,g,w,P,S]}},1957:function(t,e,i){var o=i(9950),r=i(932),n=(i(4826),i(5830)),l=i(9879),s=i(7509),a=i(22),d=i(1348),c=i(4737),p=i(6594),u=i(8538),h=i(8149),m=i(5727),y=i(7740),v=i(4414);e.A=function(t){var e,i,f,x,g,w,P,j,S,C,b,N,_,I,M,A,k;const[O,E,F,R,z]=(0,r.A)(),T=.5*E;(0,o.useContext)(s.h);const D=(0,n.Xd)("whatmoreUITheme"),W=(0,n.Xd)("whatmoreShopId"),B=(0,n.Xd)("whatmorePrimaryFont"),V=(0,n.Xd)("whatmoreSecondaryColor"),U=t.onClick,$=null===(e=t.isOnFocus)||void 0===e||e,H=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,X=null!==(f=t.animateOnFocus&&(0,d.n5O)(W))&&void 0!==f&&f,L="portrait"===z[a.dl],Q=(L?1.076*E*(0,d.HWj)(W):E*(0,d.N_4)(W))+"px",Y=(L?1.076*E*(0,d.HWj)(W):E*(0,d.N_4)(W))+"px",q=(L?.965*E*(0,d.HWj)(W):.859*E*(0,d.N_4)(W))+"px",G=(0,d.VYo)(W),{whatmoreIsPreviewMode:K}=(0,o.useContext)(c.B),Z=.25*E,J=Z+"px",tt=1.25*Z+"px",[et,it]=(0,o.useState)(t.event),[ot,rt]=(0,o.useState)(),nt=null!==(x=null===(g=et.products)||void 0===g?void 0:g.find((t=>"active"==t.product_status)))&&void 0!==x?x:null===(w=et.products)||void 0===w?void 0:w[0],lt=Math.round(+(null===nt||void 0===nt?void 0:nt.price)),st=Math.round(+(null===nt||void 0===nt?void 0:nt.compare_price)),at=st&&0!=st&&st>lt?Math.round((st-lt)/st*100):NaN,[dt,ct]=(0,o.useState)(at),[pt,ut]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{(0,d.w4b)(W)?(0,p.fu)(et,(0,d.NCy)(W),W).then((t=>{var e,i,o;it(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),n=Math.round(null===t||void 0===t||null===(o=t.products[0])||void 0===o?void 0:o.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;ct(l),ut(!0)})):(async()=>{const t=await(0,h.M)(nt,(0,d.NCy)(W),W);rt(t),ut(!0)})()}),[]),(0,v.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:X&&!L?$?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:E,margin:"0 auto",cursor:"pointer"},onClick:()=>{U(et)},children:["video"===et.event_type&&"55076552858"===W&&!L&&(0,v.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*T,marginLeft:T/2},children:(0,v.jsx)(m.A,{sx:{color:(0,d.KFN)(et.whatmoreShopId)+" !important",opacity:.8,fontSize:T,filter:"drop-shadow(0 0 15px black);"}})}),(0,v.jsx)("div",{style:{width:E,height:L&&$?"STR2FOC6KG9"==W||"STRDOIDF6O7"==W?O:1.1*O:O,borderRadius:"round"==D?"5px":"0px",boxShadow:"round"==D?G:null,borderWidth:(0,d.YcK)(W),borderColor:(0,d.Fwt)(W),overflow:"hidden"},children:(0,v.jsx)(l.A,{height:(0,d.u06)(W)+" !important",width:"100%",url:et.thumbnail_image,isPlaying:$||H,event:et})}),(0,v.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(K?(0,d.Tr1)(W):(0,d.UmS)(W))&&(null===et||void 0===et||null===(P=et.products)||void 0===P?void 0:P.length)>0&&(0,v.jsx)("div",{style:{maxHeight:tt,maxWidth:J,minWidth:null!==nt&&void 0!==nt&&nt.thumbnail_image?J:"0",overflow:"hidden"},children:(0,v.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(W),"important")},style:{height:"100%"},src:(null===nt||void 0===nt||null===(j=nt.thumbnail_image)||void 0===j||null===(S=j.split("?"))||void 0===S?void 0:S[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,v.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(W),"important"),t.style.setProperty("font-size",Q,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,u.v)(null===nt||void 0===nt?void 0:nt.title)}),pt&&(0,d.Nzx)(W)&&(0,v.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(W)?"row":"row-reverse",justifyContent:(0,d.vw2)(W)?"flex-start":"flex-end"},children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(W),"important"),t.style.setProperty("font-size",Y,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(W)?"normal":"bold"},children:(0,p.Sb)(parseFloat((0,y.U)()?(null!==(C=null===ot||void 0===ot||null===(b=ot.variants)||void 0===b||null===(N=b[0])||void 0===N?void 0:N.price)&&void 0!==C?C:null===ot||void 0===ot?void 0:ot.price)/100:null===nt||void 0===nt?void 0:nt.price)," ",W,null===(_=et.products[0])||void 0===_?void 0:_.currency)}),!isNaN(st)&&st>lt&&(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(W),"important"),t.style.setProperty("font-size",Y,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,p.Sb)(parseFloat((0,y.U)()?(null!==(I=null===ot||void 0===ot||null===(M=ot.variants)||void 0===M||null===(A=M[0])||void 0===A?void 0:A.compare_at_price)&&void 0!==I?I:null===ot||void 0===ot?void 0:ot.compare_at_price)/100:null===nt||void 0===nt?void 0:nt.compare_price)," ",W,null===(k=et.products[0])||void 0===k?void 0:k.currency)}),"56352899156"==W&&(0,d.Nzx)(W)&&pt&&!isNaN(dt)&&0!=dt&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(W)?"#343434"==V?(0,d.ub$)(W):V:(0,d.ub$)(W),alignItems:"center",borderRadius:(0,d.v8m)(W)+"px",width:"fit-content",padding:"3px 4px"},children:(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${dt}% off`})})]}),(0,d.Nzx)(W)&&pt&&!isNaN(dt)&&0!=dt&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(W)?"#343434"==V?(0,d.ub$)(W):V:(0,d.ub$)(W),alignItems:"center",borderRadius:(0,d.v8m)(W)+"px",width:"fit-content",padding:(0,d.Cf)(W)?"3px 6px":"0px"},children:(0,d.Cf)(W)?(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",B,"important"))},children:`${dt}% Off`}):(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",(0,d.ogW)(W),"important"))},children:(0,d.rsz)(W)})})]})]})]})}},4826:function(){},7136:function(t,e,i){var o=i(9950),r=i(932),n=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,r.A)();(0,o.useContext)(n.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7178:function(t,e,i){i.r(e);var o=i(9950),r=i(340),n=i(5089),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),c=i(9094),p=i(932),u=i(1941),h=i(5491),m=i.n(h),y=i(5830),v=i(7509),f=i(7136),x=i(1348),g=i(4737),w=i(1351),P=i(6157),j=i(6641),S=i(1957),C=i(4414);const b=(0,a.A)({key:"whatmore-css-hv"});function N(t){const[e,i,r]=(0,p.A)(),[n,l,s]=(0,u.A)(),a=(0,y.Xd)("whatmoreShopId"),c=t.events,h=t.onClick,m=r*(0,x.kcl)(a),v=(0,x.cbh)(a),[j,b]=(0,o.useState)(v?c.length:m),{whatmoreWidgetSourceDetails:N}=(0,o.useContext)(g.B);return(0,o.useEffect)((()=>{j<=m&&b((t=>t+m))}),[m]),(0,C.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,C.jsx)(d.RC,{slidesPerView:c.length>1?m:1,initialSlide:c.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:N}),t.realIndex>t.previousIndex&&b((t=>t+m))},loop:v,children:c.map(((t,e)=>e<=j&&(0,C.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:o,isNext:r,isVisible:n}=e;return o||r||i?(0,C.jsx)(S.A,{isOnFocus:i&&n,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,C.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function _(t){const[e,i,r,n]=(0,p.A)(),[l,s]=(0,o.useState)(-1),a=(0,y.Xd)("whatmoreShopId"),u=t.onClick,h=t.events,v=(0,x.cbh)(a),[j,b]=(0,o.useState)(v?h.length:r),N=Math.min(r,h.length),{whatmoreWidgetSourceDetails:_}=(0,o.useContext)(g.B),I=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(I.current){const t=i*N*(0,x.fHt)(a)+"px";h.length<4?I.current.style.setProperty("width",t,"important"):I.current.style.width=t}}),[i,N,a,j,h.length]),(0,o.useEffect)((()=>{j<=r&&b((t=>t+r))}),[r]),(0,C.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:n+"px",paddingRight:n+"px"},className:"whatmore-events-carousel-landscape",children:(0,C.jsx)("div",{ref:I,style:{height:"100%"},children:(0,C.jsx)(d.RC,{slidesPerView:N,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(N),onSlideChange:t=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:_}),t.realIndex>t.previousIndex&&b((t=>t+r))},spaceBetween:0,loop:v&&h.length>4,style:{height:"100%"},children:h.map(((t,e)=>{const i=m()((()=>s(e)),300);return e<=j&&(0,C.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},style:{height:"100%"},children:i=>{let{isActive:o,isPrev:r,isNext:n,isVisible:s}=i;return s||r||n?(0,C.jsx)(S.A,{isOnFocus:e==l,playOnUnfocus:!(0,x.aO7)(a)||e==parseInt(N/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,C.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}e.default=function(t){const[e,i,a]=(0,u.A)(),[d]=(0,y.QN)("whatmoreShopId"),[c]=(0,y.QN)("whatmorePrimaryColor"),[p]=(0,y.QN)("whatmoreTitleFont"),h="portrait"==e?(0,y.Xd)("whatmoreTitleFontSizePortrait"):(0,y.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,o.useContext)(g.B),f=(0,y.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,o.useContext)(g.B),P=t.events,S=t.onClick,I=p;function M(t){S(t)}return(0,o.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.Sn.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-h"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete n.Ay.styles.global,(0,C.jsx)(s.C,{value:b,children:(0,C.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,C.jsx)(r.s,{theme:n.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,C.jsxs)(v.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||w?(0,C.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",I,"important"),t.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:w?"W"!==f?f:"":t.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(_,{events:P,onClick:M}):(0,C.jsx)(N,{events:P,onClick:M})]})})})})}},7509:function(t,e,i){i.d(e,{h:function(){return o}});const o=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[306],{22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return o},b4:function(){return n},dl:function(){return r},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const o="device_type",r="device_mode",n="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var o=i(5830),r=i(1941),n=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,r.A)(),[a]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),u=s>=1025,h="portrait"==e?p:c,v=!("portrait"!=e||!(s>=481)),y=h/100*1.3*.5,m=h/100;var f=Math.min(s,i),[x,w,g,P]=[.6*f*(16/9),.6*f,1.4,0];function j(t){return Math.round(10*t)/10}var b={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(u){const t=w*y,e=x*y;[x,w,g,P]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],b[n._]=n.$S,b[n.dl]=n.nN}else if(v){var C=.8*w,S=.8*x;"portrait"==e?(C*=m,S*=m,[x,w,g,P]=[S,C,j(s/(1.2*C)),0],b[n._]=n.vF,b[n.dl]=n.tn):([x,w,g,P]=[S,C,(s-2*a)/(1.1*C),a],b[n._]=n.vF,b[n.dl]=n.nN)}else{C=w,S=x;"portrait"==e?(C=C*m*.9,S=S*m*.9,[x,w,g,P]=[S,C,j(s/(1.15*C)),0],b[n._]=n.b4,b[n.dl]=n.tn):(C=.7*w,S=.7*x,[x,w,g,P]=[S,C,(s-2*a)/(1.1*C),a],b[n._]=n.b4,b[n.dl]=n.nN)}return[x,w,g,P,b]}},4826:function(){},7136:function(t,e,i){var o=i(9950),r=i(932),n=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,r.A)();(0,o.useContext)(n.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7509:function(t,e,i){i.d(e,{h:function(){return o}});const o=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9406:function(t,e,i){i.r(e),i.d(e,{default:function(){return I}});var o=i(9950),r=i(340),n=i(5089),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),c=i(9094),p=i(1941),u=i(5830),h=i(7509),v=i(7136),y=i(1348),m=i(4737),f=(i(1351),i(6157),i(6641)),x=i(3080),w=i(932),g=(i(4826),i(9879),i(22)),P=i(6594),j=i(7740),b=i(8538),C=i(8149),S=i(3771),N=i(3936),_=i(4414);var A=function(t){var e,i,r,n,l,s,a,d,c,p,h,v,f,x,A,k,M,F,I,[z,V,E,R,T]=(0,w.A)();V*=null!==(e=t.scaleFactor)&&void 0!==e?e:1,z*=null!==(i=t.scaleFactor)&&void 0!==i?i:1;const O=(0,u.Xd)("whatmoreUITheme"),W=(0,u.Xd)("whatmoreShopId"),$=(0,u.Xd)("whatmorePrimaryFont"),B=(0,u.Xd)("whatmoreSecondaryColor"),D=t.onClick,X=null===(r=t.isOnFocus)||void 0===r||r,H=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,Q="portrait"===T[g.dl],U=(Q?1.076*V*(0,y.HWj)(W):V*(0,y.N_4)(W))+"px",Y=(Q?1.076*V*(0,y.HWj)(W):V*(0,y.N_4)(W))+"px",q=(Q?.965*V*(0,y.HWj)(W):.859*V*(0,y.N_4)(W))+"px",L=(0,y.VYo)(W),{whatmoreIsPreviewMode:G}=(0,o.useContext)(m.B),K=.25*V,J=K+"px",Z=1.25*K+"px",[tt,et]=(0,o.useState)(t.event),[it,ot]=(0,o.useState)(),rt=null!==(l=null===(s=tt.products)||void 0===s?void 0:s.find((t=>"active"==t.product_status)))&&void 0!==l?l:null===(a=tt.products)||void 0===a?void 0:a[0],nt=Math.round(+(null===rt||void 0===rt?void 0:rt.price)),lt=Math.round(+(null===rt||void 0===rt?void 0:rt.compare_price)),st=lt&&0!=lt&&lt>nt?Math.round((lt-nt)/lt*100):NaN,[at,dt]=(0,o.useState)(st),[ct,pt]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{(0,y.w4b)(W)?(0,P.fu)(tt,(0,y.NCy)(W),W).then((t=>{var e,i,o;et(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),n=Math.round(null===t||void 0===t||null===(o=t.products[0])||void 0===o?void 0:o.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;dt(l),pt(!0)})):(async()=>{const t=await(0,C.M)(rt,(0,y.NCy)(W),W);ot(t),pt(!0)})()}),[]),(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","24px"),t.style.setProperty("margin-bottom","12px"))},style:{width:V,margin:"0 auto",cursor:"pointer",filter:X||t.isActive?void 0:"blur(1.25px) drop-shadow(0 0 10px rgba(0, 0, 0, 0.2))"},onClick:()=>{D(tt)},children:[(0,_.jsxs)("div",{style:{position:"relative",width:V,height:z,borderRadius:"round"==O?"5px":"0px",boxShadow:"round"==O?L:null,borderWidth:(0,y.YcK)(W),borderColor:(0,y.Fwt)(W),overflow:"hidden"},children:[(0,_.jsx)("div",{onClick:t=>t.stopPropagation(),style:{display:X||t.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,_.jsx)(N.A,{})}),(0,_.jsx)(S.A,{height:"100%",width:"100%",url:null!==(d=null===tt||void 0===tt?void 0:tt.event_hls_url)&&void 0!==d?d:null===tt||void 0===tt?void 0:tt.thumbnail_image,isPlaying:X||H,event:tt})]}),(0,_.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(G?(0,y.Tr1)(W):(0,y.UmS)(W))&&(null===tt||void 0===tt||null===(c=tt.products)||void 0===c?void 0:c.length)>0&&(0,_.jsx)("div",{style:{maxHeight:Z,maxWidth:J,minWidth:null!==rt&&void 0!==rt&&rt.thumbnail_image?J:"0",overflow:"hidden"},children:(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(W),"important")},style:{height:"100%"},src:(null===rt||void 0===rt||null===(p=rt.thumbnail_image)||void 0===p||null===(h=p.split("?"))||void 0===h?void 0:h[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,_.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(W),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,b.v)(null===rt||void 0===rt?void 0:rt.title)}),ct&&(0,y.Nzx)(W)&&(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,y.vw2)(W)?"row":"row-reverse",justifyContent:(0,y.vw2)(W)?"flex-start":"flex-end"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(W),"important"),t.style.setProperty("font-size",Y,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(W)?"normal":"bold"},children:(0,P.Sb)(parseFloat((0,j.U)()?(null!==(v=null===it||void 0===it||null===(f=it.variants)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)&&void 0!==v?v:null===it||void 0===it?void 0:it.price)/100:null===rt||void 0===rt?void 0:rt.price)," ",W,null===(A=tt.products[0])||void 0===A?void 0:A.currency)}),!isNaN(lt)&&lt>nt&&(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.gld)(W),"important"),t.style.setProperty("font-size",Y,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,P.Sb)(parseFloat((0,j.U)()?(null!==(k=null===it||void 0===it||null===(M=it.variants)||void 0===M||null===(F=M[0])||void 0===F?void 0:F.compare_at_price)&&void 0!==k?k:null===it||void 0===it?void 0:it.compare_at_price)/100:null===rt||void 0===rt?void 0:rt.compare_price)," ",W,null===(I=tt.products[0])||void 0===I?void 0:I.currency)}),"56352899156"==W&&(0,y.Nzx)(W)&&ct&&!isNaN(at)&&0!=at&&(0,_.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(W)?"#343434"==B?(0,y.ub$)(W):B:(0,y.ub$)(W),alignItems:"center",borderRadius:(0,y.v8m)(W)+"px",width:"fit-content",padding:"3px 4px"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${at}% off`})})]}),(X||t.isActive)&&(0,y.Nzx)(W)&&ct&&!isNaN(at)&&0!=at&&(0,_.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(W)?"#343434"==B?(0,y.ub$)(W):B:(0,y.ub$)(W),alignItems:"center",borderRadius:(0,y.v8m)(W)+"px",width:"fit-content",padding:(0,y.Cf)(W)?"3px 6px":"0px"},children:(0,y.Cf)(W)?(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",$,"important"))},children:`${at}% Off`}):(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(W),"important"),t.style.setProperty("font-size",q,"important"),t.style.setProperty("font-family",(0,y.ogW)(W),"important"))},children:(0,y.rsz)(W)})})]})]})]})};const k=(0,a.A)({key:"whatmore-css-hv"});function M(t){const e=t.events,i=t.onClick,r=t.index,[n,l]=(0,o.useState)(6);var[s,a,u,h]=(0,x.A)();const[y,m,f]=(0,p.A)(),[g,P,j]=(0,w.A)();return(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:f,height:"fit-content"},children:(0,_.jsx)(d.RC,{effect:"coverflow",slidesPerView:j,initialSlide:1,slidesPerGroup:1,centeredSlides:!0,watchSlidesProgress:!0,onSlideChange:t=>{t.realIndex>t.previousIndex&&l((t=>t+1))},modules:[c.t9,c.Vx],coverflowEffect:{rotate:0,stretch:Math.floor(.16*h),depth:100,scale:.75,modifier:1,slideShadows:!1},children:e.map(((t,e)=>e<=n&&(0,_.jsx)(d.qr,{children:e=>{let{isActive:o,isPrev:n,isNext:l,isVisible:s}=e;return o||n||l||s?(0,_.jsx)(A,{isOnFocus:o&&r<0,playOnUnfocus:!1,animateOnFocus:!0,isActive:o,event:t,onClick:()=>{i(t)}}):(0,_.jsx)(v.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function F(t){var[e,i,r,n]=(0,x.A)();const l=t.onClick,s=t.index,a=t.events,[u,h]=(0,o.useState)(6),[y,m,f]=(0,p.A)();return(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:f,height:"fit-content"},children:(0,_.jsx)(d.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:t=>{t.realIndex>t.previousIndex&&h((t=>t+1))},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[c.t9,c.Vx,c.FJ],watchSlidesProgress:!0,navigation:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*n),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map(((t,e)=>e<=u&&(0,_.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:o,isNext:r,isVisible:n}=e;return n?(0,_.jsx)(A,{isOnFocus:i&&s<0,isActive:i,playOnUnfocus:!1,animateOnFocus:!0,event:t,scaleFactor:1.3,onClick:()=>{l(t)}}):(0,_.jsx)(v.A,{})}},"whatmore-event-tile-portr-"+t.index)))})})})}var I=function(t){const[e,i,a]=(0,p.A)(),[d]=(0,u.QN)("whatmoreShopId"),[c]=(0,u.QN)("whatmorePrimaryColor"),[v]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:w}=(0,o.useContext)(m.B),g=(0,u.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,o.useContext)(m.B),j=t.events,b=t.onClick,C=v;function S(t){b(t)}return(0,o.useEffect)((()=>{(0,f.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.Sn.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-a"]');if(!i)return;i&&t&&(t.style.minHeight="0px")})),(0,u.t2)("muted",!0)}),[]),delete n.Ay.styles.global,(0,_.jsx)(s.C,{value:k,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,_.jsx)(r.s,{theme:n.Ay,cssVarsRoot:w,resetCSS:!1,children:(0,_.jsxs)(h.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||P?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:P?"W"!==g?g:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(F,{index:t.index,events:j,onClick:S}):(0,_.jsx)(M,{index:t.index,events:j,onClick:S})]})})})})}}}]);
@@ -1,15 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[116],{3852:function(n,t,e){e.d(t,{A:function(){return w}});var i=e(3247),o=e(1422),r=e(3731),a=e(211),l=e(9950),s=e(932),c=e(5242),h=e(8781),d=e(8283);const m=d.i7`
2
- 0% {
3
- transform: scale(1);
4
- }
5
- 100% {
6
- transform: scale(1.05);
7
- }
8
- `,u=d.i7`
9
- 0% {
10
- transform: scale(1.05);
11
- }
12
- 100% {
13
- transform: scale(1);
14
- }
15
- `,g=`\n ${m}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,x=`\n ${u}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var f=e(5830),p=e(7509),j=e(4414);var w=function(n){var t,e,[d,m]=(0,s.A)();const[u]=(0,f.QN)("whatmorePrimaryFont");var w=(0,l.useContext)(p.h);const v=n.event,C=n.onClick,b=null===(t=n.isOnFocus)||void 0===t||t,y=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(i.az,{animation:y?b?g:x:"none",marginTop:w.tileTopMargin,marginBottom:w.tileBottomMMargin,marginLeft:w.tileLeftMargin,marginRight:w.tileRightMargin,width:m,height:d,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{C(v)},cursor:"pointer",children:[(0,j.jsx)(a._,{width:"full",height:"full",src:v.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(h.A,{width:m,height:d}),borderRadius:"lg"}),(0,j.jsx)(i.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,j.jsxs)(o.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(o.B,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(i.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(o.B,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(c.A,{event:v,fontSize:.05*d+"px",maxWidth:.8*m})})})})}),(0,j.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(o.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(i.az,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(o.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.E,{color:"white",fontSize:.08*m+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.E,{fontSize:.08*m+"px",fontWeight:"normal",align:"left",sx:{fontFamily:u+" !important",color:"white !important"},children:v.title.substring(0,40)}),(0,j.jsx)(r.E,{fontSize:.08*m+"px",fontWeight:"bold",align:"left",sx:{fontFamily:u+" !important",color:"white !important"},children:v.presenter_name.substring(0,15)})]})})})})]})})]})}},4063:function(n,t,e){var i=e(9950),o=e(3247),r=e(3731),a=e(5830),l=e(5144),s=e(4414);t.A=function(n){var t,e;const[c,h]=(0,i.useState)(!1),[d,m]=(0,i.useState)(!1),[u]=(0,a.QN)("whatmoreSecondaryColor"),[g]=(0,a.QN)("whatmoreSecondaryColorShade600"),[x]=(0,a.QN)("whatmoreSecondaryColorShade300"),[f]=(0,a.QN)("whatmorePrimaryFont"),p=n.onClick,j=n.icon,w=null!==(t=n.borderRadius)&&void 0!==t?t:"sm",v=null!==(e=n.baseFontSize)&&void 0!==e?e:12;return(0,s.jsxs)(o.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:w,backgroundColor:c?x:u,animation:d?l.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:n=>{n.stopPropagation(),m(!0),p()},onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},children:[(0,s.jsx)(r.E,{fontSize:v+"px !important",fontWeight:"normal",sx:{fontFamily:f+" !important",color:"white !important"},children:"VIEW MORE"}),j]})}},7144:function(n,t,e){e.r(t);var i=e(9950),o=e(3852),r=e(340),a=e(5089),l=e(8726),s=(e(3997),e(9733),e(4365),e(572)),c=e(8603),h=e(6086),d=e(1422),m=e(3247),u=e(3731),g=e(932),x=e(1941),f=e(5830),p=(e(5144),e(7509)),j=e(1348),w=e(4737),v=e(2039),C=e(5620),b=e(4063),y=e(4414);const F=(0,c.A)({key:"whatmore-css-hv"});function k(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}function A(n){var t;const[e,r,a]=(0,g.A)();var[s,c]=(0,i.useState)(0);const u=n.events,x=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,p=k(u,Math.floor(Math.min(a,u.length)));return(0,y.jsx)(h.o,{children:(0,y.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,y.jsx)(y.Fragment,{children:p.map(((n,t)=>t>s?(0,y.jsx)(y.Fragment,{}):(0,y.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,y.jsx)(m.az,{style:{margin:"10px"},children:(0,v.ij)(n)||(0,v.Il)(n)?(0,y.jsx)(C.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{x(n)}}):(0,y.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{x(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,y.jsx)(y.Fragment,{children:s<p.length-1?(0,y.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,y.jsx)(b.A,{baseFontSize:.1*r,icon:(0,y.jsx)(l.A,{style:{color:"white"}}),onClick:()=>{s>=p.length-1||c((n=>n+f))}})}):(0,y.jsx)(y.Fragment,{})})]})})}function S(n){var t;const[e,r,a,s]=(0,g.A)();var[c,u]=(0,i.useState)(0);const x=n.events,f=n.onClick,p=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,j=k(x,Math.floor(Math.min(a,x.length)));return(0,y.jsx)(h.o,{paddingLeft:s+"px",paddingRight:s+"px",children:(0,y.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,y.jsx)(y.Fragment,{children:j.map(((n,t)=>t>c?(0,y.jsx)(y.Fragment,{}):(0,y.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,y.jsx)(m.az,{style:{margin:"10px"},children:(0,v.ij)(n)||(0,v.Il)(n)?(0,y.jsx)(C.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}}):(0,y.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,y.jsx)(y.Fragment,{children:c<j.length-1?(0,y.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,y.jsx)(b.A,{baseFontSize:.1*r,onClick:()=>{c>=j.length-1||u((n=>n+p))},icon:(0,y.jsx)(l.A,{style:{color:"white"}})})}):(0,y.jsx)(y.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,l]=(0,x.A)(),[c]=(0,f.QN)("whatmoreShopId"),[d]=(0,f.QN)("whatmorePrimaryColor"),[m]=(0,f.QN)("whatmoreSecondaryColor"),[g]=(0,f.QN)("whatmoreTitleFont"),v="portrait"==e?(0,f.Xd)("whatmoreTitleFontSizePortrait"):(0,f.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:C}=(0,i.useContext)(w.B),b=n.events,k=n.onClick,M=null!==(t=(0,j.sa6)(c))&&void 0!==t?t:g;function z(n){k(n)}return delete a.Ay.styles.global,(0,y.jsx)(s.C,{value:F,children:(0,y.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,y.jsx)(r.s,{theme:a.Ay,cssVarsRoot:C,resetCSS:!1,children:(0,y.jsxs)(p.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,y.jsx)(h.o,{children:(0,y.jsx)(u.E,{bgColor:d,bgClip:"text",fontSize:v,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,y.jsx)(y.Fragment,{}),"landscape"===e?(0,y.jsx)(S,{events:b,onClick:z,seeMoreIncrement:1}):(0,y.jsx)(A,{events:b,onClick:z,seeMoreIncrement:2})]})})})})}},8726:function(n,t,e){var i=e(4994);t.A=void 0;var o=i(e(9526)),r=e(4414);t.A=(0,o.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[657,760],{1351:function(e,t,n){n.d(t,{Qj:function(){return s},kz:function(){return c},UM:function(){return u},yP:function(){return h},DG:function(){return d}});var a=n(1348),i=n(5830),o=n(6157);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,i.Xd)("whatmoreShopId");(e!=o.O.EVENT_VIEW||(0,a.NFF)(r))&&(e!=o.O.VIDEO_PLAYBACK||(0,a.Eel)(r))&&(e!=o.O.SHOPNOW_ATC_CLICKED&&e!=o.O.PRODUCT_TILE_ATC_CLICKED||(0,a.T9r)(r))&&(e!=o.O.VIDEO_LIKED||(0,a.Mz3)(r))&&(e!=o.O.VIDEO_SHARE_CTA_CLICKED||(0,a.OLZ)(r))&&(e!=o.O.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=o.O.SHOPNOW_CLICKED||(0,a.nEf)(r))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===o.O.VIDEO_PLAYBACK?{watch_time:n.watch_time,video_duration:n.video_duration}:{}})})()}var l=n(7145);const s={[o.O.EVENT_VIEW]:"whatmore_video_click_event",[o.O.VIDEO_LIKED]:"whatmore_video_like_event",[o.O.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[o.O.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[o.O.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[o.O.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.O.VIDEO_PLAYBACK]:"whatmore_video_watch_event"};function c(e){var t;let{userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}=e;(0,l.B)({userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}),n in s&&r(n,null!==(t=null===c||void 0===c?void 0:c[1])&&void 0!==t?t:null===c||void 0===c?void 0:c[0])}function d(e){var t;let{userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}=e;(0,l.B)({userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}),n in s&&r(n,null!==(t=null===c||void 0===c?void 0:c[1])&&void 0!==t?t:null===c||void 0===c?void 0:c[0],a)}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r}=e;(0,l.B)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r})}function h(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r}=e;(0,l.B)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r})}},5100:function(e,t,n){var a=n(9950),i=n(1941),o=n(5830),r=n(4414);const l=a.memo((()=>{if(!(0,o.Xd)("isLandingSharedLink"))return(0,r.jsx)(r.Fragment,{});const[e]=(0,i.A)();return(0,r.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,r.jsx)("div",{className:"shimmer-item portrait-full",children:(0,r.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,r.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,r.jsx)("div",{className:"shimmer-effect"})},t))),(0,r.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.A=l},8289:function(e,t,n){n.r(t),n.d(t,{default:function(){return H}});var a=n(5830),i=n(9950),o=n(964),r=n(140),l=n(1348),s=n(4533),c=n(6613),d=n(1085),u=n(3330),h=n(852),p=n(4737),m=n(2039),v=n(4833),g=n(2979),S=n(6157),_=n(5100),y=n(8945),w=n(9821),f=(n(3080),n(3568)),I=n(4414);const x=i.lazy((()=>n.e(665).then(n.bind(n,8582)))),E=i.lazy((()=>Promise.all([n.e(620),n.e(116)]).then(n.bind(n,7144)))),O=i.lazy((()=>Promise.all([n.e(257),n.e(794),n.e(423)]).then(n.bind(n,517)))),T=i.lazy((()=>Promise.all([n.e(257),n.e(794),n.e(412)]).then(n.bind(n,7646)))),C=i.lazy((()=>Promise.all([n.e(257),n.e(794),n.e(221)]).then(n.bind(n,5451)))),j=i.lazy((()=>n.e(491).then(n.bind(n,3319)))),L=i.lazy((()=>Promise.all([n.e(620),n.e(474)]).then(n.bind(n,6945)))),D=i.lazy((()=>n.e(485).then(n.bind(n,9418)))),b=i.lazy((()=>n.e(676).then(n.bind(n,3369)))),q=i.lazy((()=>n.e(891).then(n.bind(n,7178)))),N=i.lazy((()=>n.e(306).then(n.bind(n,9406)))),k=i.lazy((()=>n.e(933).then(n.bind(n,6989)))),W=i.lazy((()=>n.e(806).then(n.bind(n,3278)))),A=i.lazy((()=>Promise.all([n.e(257),n.e(1)]).then(n.bind(n,4596))));var P=function(e){var t,n;const[P]=(0,a.QN)("isInDesignMode"),[F]=(0,a.QN)("isDemoBrand"),[M]=(0,a.QN)("whatmoreTopBottomPadding"),[$]=(0,a.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:B,whatmoreIsCollectionsTemplate:G}=(0,i.useContext)(p.B),[V]=(0,a.QN)("whatmoreShopId"),[R]=(0,a.QN)("whatmoreLandingLocationType"),{whatmoreEventsBrowsingTemplate:z}=(0,i.useContext)(p.B),K=(0,a.Xd)("isLandingSharedLink"),H=(0,a.Xd)("whatmoreShareTemplateId"),J=(0,a.Xd)("whatmoreShareStoryId"),Q=(0,a.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:U,whatmoreUserInfo:X}=(0,i.useContext)(p.B),Y=K&&z===(0,v.Mm)(H),[Z,ee]=(0,i.useState)(Y),[te,ne]=(0,i.useState)(-1),[ae,ie]=(0,i.useState)(null);let oe=e.events,re=null===e||void 0===e?void 0:e.allEvents,le=[...oe,...re];var se=null;B&&!se&&(se=function(e){var t=e.reduce(((e,t,n)=>{var a,i=t.storyset_id;return i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(a=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==a&&a,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(oe));const ce=U.landingLocationType,de=U.templateType;function ue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,c.MN)()&&(0,w._)()&&!t&&(0,d.bo)(),P||F||(async()=>{const t=se[e].events[0],n=(0,v.Wd)(ce)+(0,v.gf)(de)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,r.lB)(t),(0,u.Si)(V,o.TB,o.OL),(0,s.Ch)(t.event_id,t.products,"homepage","stories",n,null===t||void 0===t?void 0:t.location,null===X||void 0===X?void 0:X.userType)})();var a=0;null!=n&&se[e].events.map(((e,t)=>{e.event_id==n&&(a=t)})),ne(a),ie(e)}async function he(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.MN)()&&(0,w._)()&&!t&&await(0,d.bo)(),ne(e.index),((0,m.ij)(e)||(0,m.Il)(e))&&(P||F||(async()=>{const t=(0,v.Wd)(ce)+(0,v.gf)(de)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,r.lB)(e),(0,u.Si)(V,o.TB,o.Dk),(0,s.Ch)(e.event_id,e.products,"homepage","carousel",t)})())}function pe(e){return(0,I.jsx)(I.Fragment,{})}return(0,i.useEffect)((()=>{if(Y)if((0,y.H)("whatmore-video-player",(()=>{ee(!1)})),null!=J&&B){const e=se.find((e=>J==e.id));if(e)return void ue(se.indexOf(e),!0,Q)}else if(null!=Q){const e=le.find((e=>Q==e.event_id));if(e)return void he(e,!0)}}),[]),(0,I.jsxs)(I.Fragment,{children:[Z&&(0,I.jsx)(_.A,{}),-1==te||-2==te?(0,I.jsx)(pe,{}):(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.EVENT_VIEW,event:oe[te],productList:null===(t=oe[te])||void 0===t?void 0:t.products,cta:null===(n=oe[te])||void 0===n?void 0:n.cta,triggerFlag:!P&&!F,children:(0,I.jsx)(f.default,{events:le,index:te,onBack:function(){(0,l.ei)(V)&&(0,a.Xd)("whatmoreAddedToCart")&&(0,h.H)(V,(()=>{}),100,window.location.hostname),ne(-1),ee(!1)},slideDirection:B||"horizontal"===(0,l.br0)(V)?"horizontal":"vertical",eventsStories:se,initialStoryIndex:ae,template:z})})}),(0,I.jsx)("div",{className:"whatmore-widget-container",style:{height:"100%",marginTop:(B?$:M)+"px",marginBottom:(B?$:M)+"px"},children:"template-b"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(x,{events:oe,onClick:he,heading:e.heading})})}):"template-a-1"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(E,{events:oe,onClick:he,heading:e.heading})}):"template-feed-a"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(k,{events:oe,onClick:he,heading:e.heading})}):"template-collections-a"===z||"template-c"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(O,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-collections-b"===z||"template-d"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(T,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-collections-c"===z||"template-e"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(C,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-collections-d"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(x,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-collections-e"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(L,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-collections-stories"===z||"template-stories"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.COLLECTION_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(A,{events:oe,index:te,setScreen:ne,onClick:he,heading:e.heading})})}):"template-f"===z||"template-collections-f"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(D,{events:oe,onClick:he,heading:e.heading})})}):"template-g"===z||"template-collections-g"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(b,{events:oe,onClick:he,heading:e.heading})})}):"template-h"===z||"template-collections-h"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(q,{events:oe,onClick:he,heading:e.heading})})}):"template-i"===z||"template-collections-i"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(N,{index:te,events:oe,onClick:he,heading:e.heading})})}):"template-banner-a"===z?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.BANNER_WIDGET_VIEW,event:oe[0],triggerFlag:!P&&!F,children:(0,I.jsx)(W,{events:oe})})}):B?(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.STORIES_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(j,{eventsStories:se,onClick:ue,template:z})})}):(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(g.S,{userInteractionType:S.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!P&&!F,children:(0,I.jsx)(L,{events:oe,onClick:he,heading:e.heading})})})})]})};const F=function(e,t,n){const i=(0,a.Xd)("whatmoreShopId");var o=t.reduce(((e,t,n)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),r=Object.keys(o);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var l={};fera.getRatings(r,(e=>{new Promise(((t,n)=>{e.forEach((e=>{l[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(l)})).then((e=>n(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";l={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+r.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{l[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),l))).then((e=>n(e))).catch((e=>console.error(e)))}};var M=n(7802),$=n(6641),B=n(1351),G=n(4820),V=n(5873),R=n(6018);var z=function(e){const[t,n]=(0,i.useState)(),[r,u]=(0,i.useState)([]),[h,m]=(0,i.useState)(),{whatmoreIsStoriesTemplate:g}=(0,i.useContext)(p.B),{whatmoreIsCollectionsTemplate:_}=(0,i.useContext)(p.B),{whatmoreIsBannerTemplate:y}=(0,i.useContext)(p.B),[f]=(0,a.QN)("whatmoreShopId"),[x]=(0,a.QN)("whatmoreCollectionId"),E=(0,a.Xd)("whatmoreLandingLocationType"),O=(0,a.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:T}=(0,i.useContext)(p.B),{whatmoreUserInfo:C,whatmoreIsPreviewMode:j}=(0,i.useContext)(p.B),L=(0,a.Xd)("whatmoreCollectionUrl"),[D]=(0,a.QN)("isInDesignMode"),[b]=(0,a.QN)("isDemoBrand"),q=(0,l.mJ$)(f)?(0,l.jLA)(f)?L:window.location.href.split(/[?#]/)[0]:x,[N,k]=(0,a.QN)("productRatings"),[W,A]=(0,i.useState)(!1);var z=(0,l.SOt)(f)?o.aD+"/v2/events/":o.$$+"/v2/events/",K=(0,l.SOt)(f)?o.aD+"/v3/events/":o.$$+"/v3/events/",H=(0,l.SOt)(f)?o.aD+"/v4/events/":o.$$+"/v4/events/",J=(0,l.SOt)(f)?o.aD+"/v5/events/":o.$$+"/v5/events/",Q=(0,l.SOt)(f)?o.aD+"/v6/events/":o.$$+"/v6/events/",U=(0,l.SOt)(f)?o.aD+"/get_eventset/":o.$$+"/get_eventset/",X=(0,l.SOt)(f)?o.aD+"/v2/collection":o.$$+"/v2/collection",Y=(0,l.SOt)(f)?o.aD+"/v3/collection":o.$$+"/v3/collection",Z=(0,l.SOt)(f)?o.aD+"/v4/collection":o.$$+"/v4/collection",ee=(0,l.SOt)(f)?o.aD+"/v2/brand/"+f+"/product-events":o.$$+"/v2/brand/"+f+"/product-events",te=e.shopId,ne="live,upcoming",ae="true";return(0,i.useEffect)((()=>{(0,s.wm)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,G.u)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null!=t&&0!=t.length&&!h&&(0,c.MN)()&&!(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,w._)()&&(0,d.Pc)(d.F5)}),[t]),(0,i.useEffect)((()=>{var e;if(E.startsWith("product"))if((0,l.vvU)(f))e=z.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+(g?"&template_type=stories":"");else{var t=(0,a.Xd)("whatmoreProductId");t=(0,l.BcY)(f)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,f):t,e=ee.toString()+"?client_product_id="+t.toString()+"&status="+ne.toString()+"&event_type=video"}else if(_||"invalid-url"!==L)e=(0,l.JwJ)(f)?`${Y.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==E&&(0,l.FKG)(f).length>0?(0,l.FKG)(f)[0]:q}`:"78232846646"==f?`${Z.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==E&&(0,l.FKG)(f).length>0?(0,l.FKG)(f)[0]:q}`:`${X.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==E&&(0,l.FKG)(f).length>0?(0,l.FKG)(f)[0]:q}`;else if(y){const t=v.Jh,n=(0,v.t6)(E);e=U.toString()+te.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+f}else{var i,o,r,c;if(("72201044272"==f||"2665447536"==f&&j)&&!g)e=K.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+"&latitude="+(null!==(i=null===(o=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===o?void 0:o.latitude)&&void 0!==i?i:"")+"&longitude="+(null!==(r=null===(c=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===c?void 0:c.longitude)&&void 0!==r?r:"")+"&user_type="+(null!==C&&void 0!==C&&C.userType?"olduser":"newuser");else if((0,l.JwJ)(f)&&!g)e=H.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString();else if("78232846646"==f&&j){var d,h,p,S;e=Q.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+"&latitude="+(null!==(d=null===(h=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===h?void 0:h.latitude)&&void 0!==d?d:"")+"&longitude="+(null!==(p=null===(S=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===S?void 0:S.longitude)&&void 0!==p?p:"")+"&user_type="+(null!==C&&void 0!==C&&C.userType?"olduser":"newuser")}else e="78232846646"==f?J.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString():z.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+(g?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{var t;if(y){const t=v.Jh;return(0,M.Po)(e,t)}if((0,l.JwJ)(f)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,s.d3)(null===e||void 0===e?void 0:e.questions)),null!==e&&void 0!==e&&e.all_events){let t=null===e||void 0===e?void 0:e.all_events;(0,l.xku)(f)||(t=(0,M.zJ)(null===e||void 0===e?void 0:e.all_events)),u(t)}return(0,M.Np)(e,_||"invalid-url"!==L)})).then((e=>{O&&console.debug("initial received events size : "+e.length);let t=e;return(0,l.xku)(f)||(t=(0,M.zJ)(e)),t})).then((e=>(("28849832033"===f||"85317058852"===f&&Array.isArray(e))&&(e=function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}(e)),null!=e&&0!=e.length&&(0,l.WiD)(f)&&function(e,t,n){const i=setInterval((()=>{null===(0,a.Xd)("productRatings")&&F(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(f,e,(e=>{k(e)})),e))).then((e=>{(b||D)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))?n(g?R.Yo:y?R.N9:R.uG):n(e),A(!0)})).catch((e=>{m(e.message),A(!0)}))}),[]),(0,i.useEffect)((()=>{"index"===E?t&&t.length>0&&(0,B.yP)({userInteractionType:S.O.HOMEPAGE_VISITED,widgetSourceDetails:T}):"collection"===E&&(t&&t.length>0||(0,l.BZ$)(f))&&(0,B.yP)({userInteractionType:S.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:T})}),[t]),W&&(null==t||0==t.length||h)&&V.Sn.forEach((e=>{var t,n,a,i;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),r=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-feed-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]'),l=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]'),s=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(g){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!_){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(s||l||r||o)&&(r&&c||o&&c||s&&c||l&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||h?(0,I.jsx)("div",{}):(O&&(0,$.xv)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}([...t,...r]),O&&console.debug("final transformed events data : "+JSON.stringify(t)),O&&console.debug("valid events size : "+t.length),(0,I.jsx)(P,{heading:e.heading,events:t,allEvents:r}))},K=n(6649);var H=function(e){const[t]=(0,a.QN)("whatmoreShopId"),[n]=(0,a.QN)("whatmoreHeading"),[o,r]=(0,i.useState)(["initial",window.pageYOffset]),[s,c]=(0,i.useState)(!1),d="2665447536"==t?30:10,h=(0,a.Xd)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,u.hr)(t),!(0,l.FlM)(t))return;const e=d;let n=window.pageYOffset,a=!1;const i=()=>{const t=window.pageYOffset;var i,o;Math.abs(t-n)<e?a=!1:(o=!0,r(i=[t>n?"scrolled-down":"scrolled-up",t]),i[1]>d&&c(o),n=t>0?t:0,a=!1)},o=()=>{a||(window.requestAnimationFrame(i),a=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)}),[]);const[p,m,v]=(0,K.A)({triggerOnce:!0});return(0,I.jsx)("div",{ref:p,style:{display:"block",height:"100%"},children:s||m||h||!(0,l.FlM)(t)||(0,l.wQ2)(t)?(0,I.jsx)(z,{heading:n,shopId:t}):(0,I.jsx)("div",{})})}},8945:function(e,t,n){function a(e,t){let n=0;let a=new MutationObserver((function(){document.querySelector("."+e)?(t(),a.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),a.disconnect()}),8e3))}));a.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return a}})}}]);