whatmore-react-assets 1.0.1608 → 1.0.1609
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/css/carousel-template-i.475a42b7.chunk.css +1 -0
- package/static/js/571.2c3e6ec1.chunk.js +1 -0
- package/static/js/832.3bf1d006.chunk.js +1 -0
- package/static/js/carousel-template-a.07863681.chunk.js +1 -0
- package/static/js/{carousel-template-feed.41cab835.chunk.js → carousel-template-feed.6532f2d1.chunk.js} +1 -1
- package/static/js/{carousel-template-g.8f3864d5.chunk.js → carousel-template-g.e070c03d.chunk.js} +1 -1
- package/static/js/carousel-template-h.defff08f.chunk.js +1 -0
- package/static/js/carousel-template-i.21aa68c9.chunk.js +1 -0
- package/static/js/carousel-template-view-more.2ae66731.chunk.js +15 -0
- package/static/js/homepage-carousel-view.68cf84ad.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/620.42fd6e4b.chunk.js +0 -1
- package/static/js/carousel-template-a.859c31c5.chunk.js +0 -1
- package/static/js/carousel-template-h.9b944e0b.chunk.js +0 -1
- package/static/js/carousel-template-view-more.f88abd0c.chunk.js +0 -15
- package/static/js/homepage-carousel-view.f0465eaa.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes whatmoreEventTileScaleOut{0%{transform:scale(1)}to{transform:scale(1.05)}}@keyframes whatmoreEventTileScaleIn{0%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes whatmoreProductOnEventTileSweepInandOut{0%{opacity:1;transform:translateY(100%)}10%{transform:translateY(0)}12%{transform:translateY(-5%)}20%{transform:translateY(0)}}@keyframes whatmoreEventTileFadeInAnimation{0%{opacity:0}to{opacity:1}}@keyframes whatmoreEventTileFadeOutAnimation{0%{opacity:1}to{opacity:0}}@keyframes whatmoreCarouselHorizontalSwipeNext{0%{opacity:1;transform:translateX(500%)}10%{transform:translateX(0)}12%{transform:translateX(-20%)}20%{transform:translateX(0)}}@keyframes whatmoreCarouselHorizontalSwipePrev{0%{opacity:1;transform:translateX(-500%)}10%{transform:translateX(0)}12%{transform:translateX(20%)}20%{transform:translateX(0)}}.whatmore-event-tile-scale-out-animation{animation-direction:linear;animation-duration:.2s;animation-fill-mode:forwards;animation-name:whatmoreEventTileScaleOut;animation-timing-function:ease-in}.whatmore-event-tile-scale-in-animation{animation-direction:linear;animation-duration:.2s;animation-fill-mode:forwards;animation-name:whatmoreEventTileScaleIn;animation-timing-function:ease-in}.whatmore-event-tile-product-scale-in-and-out-animation{animation-direction:linear;animation-duration:3s;animation-fill-mode:forwards;animation-name:whatmoreProductOnEventTileSweepInandOut;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-in-animation{animation-direction:linear;animation-duration:1s;animation-fill-mode:forwards;animation-name:whatmoreEventTileFadeInAnimation;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-out-animation{animation-direction:linear;animation-duration:.5s;animation-fill-mode:forwards;animation-name:whatmoreEventTileFadeOutAnimation;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-next{animation-direction:linear;animation-duration:2.3s;animation-fill-mode:forwards;animation-name:whatmoreCarouselHorizontalSwipeNext;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-prev{animation-direction:linear;animation-duration:2.3s;animation-fill-mode:forwards;animation-name:whatmoreCarouselHorizontalSwipePrev;animation-timing-function:ease-in-out}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[571],{3590:function(t,e,i){var o=i(2375),n=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const h=(0,n.FVo)(i);return"template-icon"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(o.A,{sx:{color:(0,n.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==h?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,h,c,[x,m]=(0,r.A)();m=null!==(e=t.width)&&void 0!==e?e:m;const y=(0,n.Xd)("whatmoreUITheme"),[f]=(0,n.QN)("whatmorePrimaryFont"),[w,g]=(0,o.useState)(0),v=(0,n.Xd)("whatmoreShopId"),u=t.event;if(0==u.products.length)return(0,d.jsx)(d.Fragment,{});const j=.3*m,b=j+"px",P=j+"px",F=.07*m,C=F+"px";return(0,d.jsx)("div",{style:{width:m+"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",P,"important")},style:{width:(0,s.H$k)(v)?b:"auto",boxShadow:"round"==y?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==y?"5px":"0px",borderWidth:(0,s.YcK)(v),borderColor:(0,s.Fwt)(v),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(v),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(u.products[w].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==y?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:m-5-j+"px",height:"100%",borderRadius:"round"==y?"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",C),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",f,"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)(u.products[w].title)})}),(0,s.gZ6)(v)&&(null===(i=u.products[w])||void 0===i||null===(p=i.product_metadata)||void 0===p?void 0:p.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:m-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==y?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",m-5-j+"px","important"),t.style.setProperty("font-size",.7*F+"px","important"),t.style.setProperty("font-family",f,"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===(h=u.products[w])||void 0===h||null===(c=h.product_metadata)||void 0===c?void 0:c.product_type})})]})]},w)})}},3571:function(t,e,i){var o=i(9950),n=i(932),r=(i(4826),i(5727)),l=i(5830),s=i(9879),a=i(7509),d=i(22),p=i(1348),h=i(3590),c=i(4616),x=i(6649),m=i(6613),y=i(1131),f=(i(9596),i(4414));function w(t){var e,[i,s]=(0,n.A)();const[d]=(0,l.QN)("whatmoreShopId"),[h,y,w]=(0,x.A)({triggerOnce:!0});var g=(0,o.useContext)(a.h);const v=t.event,u=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*s,b=(0,m.At)()?t.isOnFocus:y;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),g.showPlayButton&&!u?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==v.event_type&&(0,f.jsx)(r.A,{sx:{color:(0,p.KFN)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:h,children:b&&(0,p.imx)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(c.A,{event:v})}):(0,f.jsx)("div",{height:"20px"})})]})})}function g(t){var[e,i]=(0,n.A)();const[o]=(0,l.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",o,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function v(t){const[e,i,o,r,s]=(0,n.A)(),[a]=(0,l.QN)("whatmoreShowViews"),c=(0,l.Xd)("whatmoreShopId"),x=t.event,m=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===a&&"show"===(0,p.klK)(c)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(h.A,{event:x,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===s[d.dl]?(0,f.jsx)(f.Fragment,{}):m?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(g,{event:x})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(g,{event:x})})]})})}e.A=function(t){var e,i,r;const[h,c,x,m,g]=(0,n.A)();var u=(0,o.useContext)(a.h);const j=(0,l.Xd)("whatmoreUITheme"),b=(0,l.Xd)("whatmoreShopId"),[P]=(0,l.Xd)("whatmorePrimaryFont"),F=t.event,C=t.onClick,k=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,A=null!==(r=t.animateOnFocus&&(0,p.n5O)(b))&&void 0!==r&&r,S=(0,p.VYo)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",u.tileTopMargin+"px"),t.style.setProperty("margin-bottom",u.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:c,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j||"61187850326"==b||"19501891"==b?S:null,borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:A?k?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(F)},children:[(0,f.jsx)(s.A,{height:(0,p.u06)(b)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:k||I,event:F}),"51394281658"===b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:P+" !important"},children:null===F||void 0===F?void 0:F.title}),(0,f.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,f.jsx)(y.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,p.Q$)(b)&&(0,f.jsxs)("div",{style:{width:c,height:h},children:[(0,f.jsx)(v,{event:F,isOnFocus:k}),"87043703105"===b||"76467011883"===b||!k&&d.nN!==g[d.dl]?null:(0,f.jsx)(w,{event:F,unfocusedDisplay:!k,isOnFocus:k})]})]})}},9596:function(t,e,i){i(4365),i(5830),i(4414)},1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},2375:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)((0,r.jsx)("path",{d:"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")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[832],{7509:function(t,e,o){o.d(e,{h:function(){return r}});const r=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7136:function(t,e,o){var r=o(9950),i=o(932),n=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,r.useContext)(n.h);const s=(0,l.Xd)("whatmoreShopId");return t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"100%":e,overflow:"hidden"}})}},1957:function(t,e,o){var r=o(9950),i=o(932),n=(o(4826),o(5830)),l=o(9879),a=o(7509),s=o(22),d=o(1348),p=o(4737),c=o(6594),u=o(8538),y=o(8149),m=o(5727),v=o(7740),h=o(4414);e.A=function(t){var e,o,f,x,w,g,P,b,N,_,j,C,S,M,z,k,F;const[I,$,A,O,R]=(0,i.A)(),T=.5*$;(0,r.useContext)(a.h);const D=(0,n.Xd)("whatmoreUITheme"),W=(0,n.Xd)("whatmoreShopId"),E=(0,n.Xd)("whatmorePrimaryFont"),B=(0,n.Xd)("whatmoreSecondaryColor"),U=t.onClick,V=null===(e=t.isOnFocus)||void 0===e||e,X=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,Y=null!==(f=t.animateOnFocus&&(0,d.n5O)(W))&&void 0!==f&&f,H="portrait"===R[s.dl],K=(H?1.076*$*(0,d.HWj)(W):$*(0,d.N_4)(W))+"px",Q=(H?1.076*$*(0,d.HWj)(W):$*(0,d.N_4)(W))+"px",L=(H?.965*$*(0,d.HWj)(W):.859*$*(0,d.N_4)(W))+"px",G=(0,d.VYo)(W),{whatmoreIsPreviewMode:Z}=(0,r.useContext)(p.B),q=.25*$,J=q+"px",tt=1.25*q+"px",[et,ot]=(0,r.useState)(t.event),[rt,it]=(0,r.useState)(),nt=null!==(x=null===(w=et.products)||void 0===w?void 0:w.find((t=>"active"==t.product_status)))&&void 0!==x?x:null===(g=et.products)||void 0===g?void 0:g[0],lt=Math.round(+(null===nt||void 0===nt?void 0:nt.price)),at=Math.round(+(null===nt||void 0===nt?void 0:nt.compare_price)),st=at&&0!=at&&at>lt?Math.round((at-lt)/at*100):NaN,[dt,pt]=(0,r.useState)(st),[ct,ut]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{(0,d.w4b)(W)?(0,c.fu)(et,(0,d.NCy)(W),W).then((t=>{var e,o,r;ot(t);const i=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=n&&0!=n&&n>i?Math.round((n-i)/n*100):NaN;pt(l),ut(!0)})):(async()=>{const t=await(0,y.M)(nt,(0,d.NCy)(W),W);it(t),ut(!0)})()}),[]),(0,h.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:Y&&!H?V?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:$,margin:"0 auto",cursor:"pointer"},onClick:()=>{U(et)},children:["video"===et.event_type&&"55076552858"===W&&!H&&(0,h.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*T,marginLeft:T/2},children:(0,h.jsx)(m.A,{sx:{color:(0,d.KFN)(et.whatmoreShopId)+" !important",opacity:.8,fontSize:T,filter:"drop-shadow(0 0 15px black);"}})}),(0,h.jsx)("div",{style:{width:$,height:H&&V?"STR2FOC6KG9"==W||"STRDOIDF6O7"==W?I:1.1*I:I,borderRadius:"round"==D?"5px":"0px",boxShadow:"round"==D?G:null,borderWidth:(0,d.YcK)(W),borderColor:(0,d.Fwt)(W),overflow:"hidden"},children:(0,h.jsx)(l.A,{height:(0,d.u06)(W)+" !important",width:"100%",url:et.thumbnail_image,isPlaying:V||X,event:et})}),(0,h.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(Z?(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,h.jsx)("div",{style:{maxHeight:tt,maxWidth:J,minWidth:null!==nt&&void 0!==nt&&nt.thumbnail_image?J:"0",overflow:"hidden"},children:(0,h.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===(b=nt.thumbnail_image)||void 0===b||null===(N=b.split("?"))||void 0===N?void 0:N[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,h.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(W),"important"),t.style.setProperty("font-size",K,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",E,"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)}),ct&&(0,d.Nzx)(W)&&(0,h.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,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(W),"important"),t.style.setProperty("font-size",Q,"important"),t.style.setProperty("font-family",E,"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,c.Sb)(parseFloat((0,v.U)()?(null!==(_=null===rt||void 0===rt||null===(j=rt.variants)||void 0===j||null===(C=j[0])||void 0===C?void 0:C.price)&&void 0!==_?_:null===rt||void 0===rt?void 0:rt.price)/100:null===nt||void 0===nt?void 0:nt.price)," ",W,null===(S=et.products[0])||void 0===S?void 0:S.currency)}),!isNaN(at)&&at>lt&&(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(W),"important"),t.style.setProperty("font-size",Q,"important"),t.style.setProperty("font-family",E,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,c.Sb)(parseFloat((0,v.U)()?(null!==(M=null===rt||void 0===rt||null===(z=rt.variants)||void 0===z||null===(k=z[0])||void 0===k?void 0:k.compare_at_price)&&void 0!==M?M:null===rt||void 0===rt?void 0:rt.compare_at_price)/100:null===nt||void 0===nt?void 0:nt.compare_price)," ",W,null===(F=et.products[0])||void 0===F?void 0:F.currency)}),"56352899156"==W&&(0,d.Nzx)(W)&&ct&&!isNaN(dt)&&0!=dt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(W)?"#343434"==B?(0,d.ub$)(W):B:(0,d.ub$)(W),alignItems:"center",borderRadius:(0,d.v8m)(W)+"px",width:"fit-content",padding:"3px 4px"},children:(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(W),"important"),t.style.setProperty("font-size",L,"important"),t.style.setProperty("font-family",E,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${dt}% off`})})]}),(0,d.Nzx)(W)&&ct&&!isNaN(dt)&&0!=dt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(W)?"#343434"==B?(0,d.ub$)(W):B:(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,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(W),"important"),t.style.setProperty("font-size",L,"important"),t.style.setProperty("font-family",E,"important"))},children:`${dt}% Off`}):(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(W),"important"),t.style.setProperty("font-size",L,"important"),t.style.setProperty("font-family",(0,d.ogW)(W),"important"))},children:(0,d.rsz)(W)})})]})]})]})}},22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return r},b4:function(){return n},dl:function(){return i},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const r="device_type",i="device_mode",n="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var r=o(5830),i=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,i.A)(),[s]=(0,r.QN)("whatmoreLandscapePadding"),[d]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("whatmoreVideoTileSize"),[c]=(0,r.QN)("whatmoreVideoTileSizePortrait"),u=a>=1025,y="portrait"==e?c:p,m=!("portrait"!=e||!(a>=481)),v=y/100*1.3*.5,h=y/100;var f=Math.min(a,o),[x,w,g,P]=[.6*f*(16/9),.6*f,1.4,0];function b(t){return Math.round(10*t)/10}var N={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(u){const t=w*v,e=x*v;[x,w,g,P]=[e,t,(a-2*s-2*(0,l.$du)(d))/(1.1*t),s],N[n._]=n.$S,N[n.dl]=n.nN}else if(m){var _=.8*w,j=.8*x;"portrait"==e?(_*=h,j*=h,[x,w,g,P]=[j,_,b(a/(1.2*_)),0],N[n._]=n.vF,N[n.dl]=n.tn):([x,w,g,P]=[j,_,(a-2*s)/(1.1*_),s],N[n._]=n.vF,N[n.dl]=n.nN)}else{_=w,j=x;"portrait"==e?(_=_*h*.9,j=j*h*.9,[x,w,g,P]=[j,_,b(a/(1.15*_)),0],N[n._]=n.b4,N[n.dl]=n.tn):(_=.7*w,j=.7*x,[x,w,g,P]=[j,_,(a-2*s)/(1.1*_),s],N[n._]=n.b4,N[n.dl]=n.nN)}return[x,w,g,P,N]}},4826:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[474],{6945:function(e,t,n){n.r(t);var i=n(9950),s=n(340),l=n(9983),r=n(5873),o=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),c=n(8378),h=n(9094),d=n(932),u=n(1941),p=n(5491),m=n.n(p),g=n(5830),x=n(7509),f=n(7136),y=n(1348),v=n(4737),w=n(3571),C=n(1351),S=n(6157),j=n(6641),O=n(1957),A=n(4414);const I=(0,a.A)({key:"whatmore-css-hv"});function P(e){const[t,n,s]=(0,d.A)(),[l,r,o]=(0,u.A)(),a=(0,g.Xd)("whatmoreShopId"),h=e.events,p=e.onClick,m=s*(0,y.kcl)(a),x=(0,y.cbh)(a),[j,I]=(0,i.useState)(x?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(v.B);return(0,i.useEffect)((()=>{j<=m&&I((e=>e+m))}),[m]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:"8968077397"===a&&h.length<4?"200px":o,height:"fit-content"},children:(0,A.jsx)(c.RC,{slidesPerView:h.length>1?"51394281658"==a||"55820812447"==a?2:m:1,initialSlide:h.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,C.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),e.realIndex>e.previousIndex&&I((e=>e+m))},loop:x&&h.length>2,children:h.map(((e,t)=>t<=j&&(0,A.jsx)(c.qr,{children:t=>{let{isActive:n,isPrev:i,isNext:s,isVisible:l}=t;return i||s||n?(0,y.DmD)(a)?(0,A.jsx)(O.A,{isOnFocus:n&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,A.jsx)(w.A,{isOnFocus:("51394281658"==a||"55820812447"==a||n)&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function k(e){const[t,n,s,l]=(0,d.A)(),[r,o]=(0,i.useState)(-1),a=(0,g.Xd)("whatmoreShopId"),u=e.onClick,p=e.events,x=(0,y.cbh)(a),[j,I]=(0,i.useState)(x?p.length:s),P="8968077397"==a||"19501891"==a?Math.floor(Math.min(s,p.length)):Math.min(s,p.length),k=Math.floor(Math.min(4,p.length)),{whatmoreWidgetSourceDetails:M}=(0,i.useContext)(v.B),E=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(E.current){const e="8968077397"===a&&p.length>=4?.7:(0,y.fHt)(a),t=n*P*e+"px";p.length<4||"8968077397"===a?E.current.style.setProperty("width",t,"important"):E.current.style.width=t}}),[n,P,a,j,p.length]),(0,i.useEffect)((()=>{j<=s&&I((e=>e+s))}),[s]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:l+"px",paddingRight:l+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:E,style:{height:"100%"},children:(0,A.jsx)(c.RC,{slidesPerView:"8968077397"==a?k:P,watchSlidesProgress:!0,modules:[h.Vx],navigation:!0,slidesPerGroup:"8968077397"==a||"19501891"==a?Math.min(2,p.length):parseInt(P),onSlideChange:e=>{(0,C.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:M}),e.realIndex>e.previousIndex&&I((e=>e+s))},spaceBetween:0,loop:(x||"8968077397"==a||"19501891"==a)&&p.length>4,style:{height:"100%"},children:p.map(((e,t)=>{const n=m()((()=>o(t)),300);return t<=j&&(0,A.jsx)(c.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),o(-1)},style:{height:"100%"},children:n=>{let{isActive:i,isPrev:s,isNext:l,isVisible:o}=n;return o||"8968077397"==a||"19501891"==a&&(s||l)?(0,y.DmD)(a)?(0,A.jsx)(O.A,{isOnFocus:t==r,playOnUnfocus:!(0,y.aO7)(a)||t==parseInt(P/2)&&-1==r,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(w.A,{isOnFocus:t==r,playOnUnfocus:!(0,y.aO7)(a)||t==parseInt(P/2)&&-1==r,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,n,a]=(0,u.A)(),[c]=(0,g.QN)("whatmoreShopId"),[h]=(0,g.QN)("whatmorePrimaryColor"),[d]=(0,g.QN)("whatmoreTitleFont"),p="portrait"==t?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(v.B),f=(0,g.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(v.B),C=e.events,S=e.onClick,O=d;function M(e){S(e)}return(0,i.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{r.Sn.forEach((e=>{var t;const n=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!n)return;n&&e&&(e.style.minHeight="0px")}))}),[]),delete l.Ay.styles.global,(0,A.jsx)(o.C,{value:I,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(s.s,{theme:l.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,A.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",O,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(c),lineHeight:(0,y.L0y)(c),letterSpacing:(0,y.l3V)(c)},children:w?"W"!==f?f:"":e.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===t?(0,A.jsx)(k,{events:C,onClick:M}):(0,A.jsx)(P,{events:C,onClick:M})]})})})})}}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[933],{6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[933],{6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return B}});var i=n(9950),r=n(3852),o=n(340),l=n(9983),a=(n(3997),n(9733),n(4365),n(572)),s=n(8603),d=n(6086),c=n(3731),h=n(1941),p=n(5830),m=n(7509),u=n(1348),f=n(4737),x=n(1422),g=n(932),y=n(6649),v=n(4414);function w(t){var e;const[n,i,r]=(0,y.A)({triggerOnce:!1}),o=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,v.jsx)(x.B,{ref:n,direction:"row",minHeight:o,height:o,width:"100%",justifyContent:"center",alignItems:"center",children:i?t.data.map(((e,n)=>(0,v.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n))):(0,v.jsx)("div",{style:{minHeight:{rowHeight:o},minWidth:"100%"}})})}function j(t){var e;const[n,i,r]=(0,g.A)(),o=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(r,t.dataList.length)),l=function(t,e){var n=[];const i=e;for(let r=0;r<t.length;r+=i){const e=t.slice(r,r+i);n.push(e)}return n}(t.dataList,o);return(0,v.jsx)(x.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:l.map(((e,r)=>(0,v.jsx)(w,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:i},"key-"+r)))})}var b=n(2039),C=(n(4826),n(9879)),F=n(3590),P=n(8538),k=n(6594),A=n(8149),I=n(7740),S=n(22);var N=function(t){var e,n,r,o,[l,a,s,d,c]=(0,g.A)();const h="portrait"===c[S.dl],[m,f]=(0,i.useState)(0),[x,y]=(0,i.useState)(t.event),[w]=(0,p.QN)("whatmoreShopId"),j=(0,p.QN)("whatmoreUITheme"),[b]=(0,p.QN)("whatmorePrimaryFont"),C=x.products.length,[F,N]=(0,i.useState)(),[M,z]=(0,i.useState)(!1);if(0==C)return(0,v.jsx)(v.Fragment,{});(0,i.useEffect)((()=>{const t=setInterval((()=>{f((t=>(t+1)%C))}),3e3);return()=>{clearInterval(t)}}),[]),(0,i.useEffect)((()=>{(0,u.w4b)(w)?(0,k.fu)(x,(0,u.NCy)(w),w).then((t=>{y(t),z(!0)})):(async()=>{var t;const e=await(0,A.M)(null===x||void 0===x||null===(t=x.products)||void 0===t?void 0:t[0],(0,u.NCy)(w),w);N(e),z(!0)})()}),[]);const R=(h?1.23*a*(0,u.HWj)(w):1.4*a*(0,u.N_4)(w))+"px",_=(h?1.15*a*(0,u.HWj)(w):1.31*a*(0,u.N_4)(w))+"px",B=(+x.products[m].price).toFixed(),O=(+x.products[m].compare_price).toFixed();return(0,v.jsxs)("div",{style:{background:(0,u.ivR)(w),display:"flex",flexDirection:"column",padding:"10px 12px",gap:"6px",borderRadius:"round"==j?"0 0 12px 12px":"0"},children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",R,"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"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,P.v)(x.products[m].title)}),(0,v.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[M&&(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",_,"important"),t.style.setProperty("font-family",b,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,k.Sb)(parseFloat((0,I.U)()?(null===F||void 0===F?void 0:F.price)/100:null===x||void 0===x||null===(e=x.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)," ",w,x.products[m].currency)}),!isNaN(O)&&O>B&&M&&(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",_,"important"),t.style.setProperty("font-family",b,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,k.Sb)(parseFloat((0,I.U)()?(null===F||void 0===F?void 0:F.compare_at_price)/100:null===x||void 0===x||null===(r=x.products)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.compare_price)," ",w,x.products[m].currency)})]})]})},M=n(6613);function z(t){const[e,n]=(0,g.A)(),[i]=(0,p.QN)("whatmoreShowViews"),r=t.event;return(0,v.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,v.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,v.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,v.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,v.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,v.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,v.jsx)(F.A,{event:r,fontSize:.07*n+"px"})})}):(0,v.jsx)(v.Fragment,{})})})})})}var R=function(t){var e,n,r;const[o,l]=(0,g.A)();var a=(0,i.useContext)(m.h);const s=(0,p.Xd)("whatmoreUITheme"),d=(0,p.Xd)("whatmoreSecondaryColor"),c=(0,p.Xd)("whatmoreShopId"),h=t.event,f=t.onClick,x=null===(e=t.isOnFocus)||void 0===e||e,w=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,j=null!==(r=t.animateOnFocus&&(0,u.n5O)(c))&&void 0!==r&&r,[b,F,P]=(0,y.A)({triggerOnce:!0});return(0,v.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",a.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",a.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:l,height:o,borderRadius:"round"==s?"12px":"0px",borderWidth:(0,u.MRv)(c),borderColor:"white"==(0,u.Fwt)(c)?d:(0,u.Fwt)(c),overflow:"hidden",cursor:"pointer"},className:j?x?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{f(h)},children:[(0,v.jsx)(C.A,{height:"100%",width:"100%",url:h.thumbnail_image,isPlaying:x||w||(0,M.At)(),event:h}),(0,v.jsxs)("div",{style:{width:l,height:o},ref:b,children:[(0,v.jsx)(z,{event:h,isOnFocus:x}),(0,v.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,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,v.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,v.jsx)("p",{children:" "})}),(0,v.jsx)("div",{style:{width:"100%"},children:F&&(0,u.imx)(c)?(0,v.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,v.jsx)(N,{event:h})}):(0,v.jsx)("div",{height:"20px"})})]})})]})]})};const _=(0,s.A)({key:"whatmore-css-hv"});var B=function(t){var e;const[n,s,x]=(0,h.A)(),[y,w,C]=(0,g.A)(),[F]=(0,p.QN)("whatmoreShopId"),[P]=(0,p.QN)("whatmorePrimaryColor"),[k]=(0,p.QN)("whatmoreTitleFont"),A="portrait"==n?(0,p.Xd)("whatmoreTitleFontSizePortrait"):(0,p.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:I}=(0,i.useContext)(f.B),S=t.events,N=t.onClick,M=null!==(e=(0,u.sa6)(F))&&void 0!==e?e:k;function z(t){N(t)}const B=parseInt(Math.floor(C));return delete l.Ay.styles.global,(0,v.jsx)(a.C,{value:_,children:(0,v.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,v.jsx)(o.s,{theme:l.Ay,cssVarsRoot:I,resetCSS:!1,children:(0,v.jsxs)(m.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,v.jsx)(d.o,{paddingBottom:"28px",children:(0,v.jsx)(c.E,{bgColor:P,bgClip:"text",fontSize:A,sx:{fontFamily:M+" !important"},align:"center",children:t.heading})}):(0,v.jsx)(v.Fragment,{}),"landscape"===n?(0,v.jsx)(j,{renderElement:t=>{const e=t.eventData;return(0,v.jsx)("div",{style:{margin:"10px"},children:(0,b.ij)(e)||(0,b.Il)(e)?(0,v.jsx)(R,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{z(e)}}):(0,v.jsx)(r.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{z(e)}})})},dataList:S,elementsPerRow:B}):(0,v.jsx)(j,{renderElement:t=>{const e=t.eventData;return(0,v.jsx)("div",{style:{margin:"10px"},children:(0,v.jsx)(R,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{z(e)}})})},dataList:S,elementsPerRow:B})]})})})})}},3852:function(t,e,n){n.d(e,{A:function(){return v}});var i=n(3247),r=n(1422),o=n(3731),l=n(211),a=n(9950),s=n(932),d=n(5242),c=n(8781),h=n(8283);const p=h.i7`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(1);
|
|
4
4
|
}
|
package/static/js/{carousel-template-g.8f3864d5.chunk.js → carousel-template-g.e070c03d.chunk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[676],{3369:function(t,e,i){i.r(e),i.d(e,{default:function(){return E}});var o=i(9950),n=i(340),r=i(9983),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(8378),c=i(9094),p=i(932),h=i(1941),u=i(5491),m=i.n(u),v=i(5830),x=i(7509),y=i(7136),f=i(1348),g=i(4737),w=i(1351),b=i(6157),j=i(6641),P=(i(4826),i(9879)),S=i(4616),C=i(6649),k=i(6613),I=i(1131),_=i(4414);function A(t){const[e]=(0,v.QN)("whatmoreShopId"),[i,o,n]=(0,C.A)({triggerOnce:!0}),r=t.event,l=(0,k.At)()?t.isOnFocus:o;return(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,_.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,_.jsx)("p",{children:" "})}),(0,_.jsx)("div",{ref:i,children:l&&(0,f.imx)(e)?(0,_.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,_.jsx)(S.A,{event:r})}):(0,_.jsx)("div",{height:"20px"})})]})})}var F=function(t){var e,i,n,r,l,s,a,d;const[c,h,u,m,y]=(0,p.A)();var g=(0,o.useContext)(x.h);const w=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),j=(0,v.Xd)("whatmorePrimaryFont"),S=(0,v.Xd)("whatmoreSecondaryColor"),C=t.event,k=t.onClick,F=null===(e=t.isOnFocus)||void 0===e||e,N=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,O=null!==(n=t.animateOnFocus&&(0,f.n5O)(b))&&void 0!==n&&n,M=(0,f.VYo)(b);return(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",g.tileTopMargin+"px"),t.style.setProperty("margin-bottom",g.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:h,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w||"61187850326"==b||"19501891"==b?M:null,borderWidth:(0,f.YcK)(b),borderColor:(0,f.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:O?F?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,i;if("12326200"==b&&"image"==C.event_type&&(null===(t=C.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=C.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.product_status)){var o,n;window.location.href=null===(o=C.products)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.product_link}else{if("12326200"==b&&"image"==C.event_type)return;var r,l,s,a,d,c,p,h,u,m,v,x,y,f,g,w;if("10588815418"==b){if(null!==(r=C.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=C.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=C.cta)||void 0===c||null===(p=c[1])||void 0===p?void 0:p.cta_title))window.location.href=null===(g=C.cta)||void 0===g||null===(w=g[1])||void 0===w?void 0:w.cta_link;else if(null!==(h=C.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(m=u.cta_link)&&void 0!==m&&m.includes("whatmore")&&""!=(null===(v=C.cta)||void 0===v||null===(x=v[0])||void 0===x?void 0:x.cta_link)&&""==(null===(y=C.cta)||void 0===y||null===(f=y[0])||void 0===f?void 0:f.cta_title)){var j,P;window.location.href=null===(j=C.cta)||void 0===j||null===(P=j[0])||void 0===P?void 0:P.cta_link}}else k(C)}},children:[(0,_.jsx)(P.A,{height:(0,f.u06)(b)+" !important",width:"100%",url:C.thumbnail_image,isPlaying:F||N,event:C}),""!==(null===C||void 0===C?void 0:C.title)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,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"},children:(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,_.jsx)("p",{style:{fontFamily:j,fontSize:.1*h+"px",fontWeight:"600"},children:"12326200"==b?null===C||void 0===C||null===(r=C.title)||void 0===r?void 0:r.slice(7):null===C||void 0===C?void 0:C.title}),"12326200"==b&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*h+"px",fontWeight:"normal"},children:null===C||void 0===C||null===(l=C.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=C.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=C.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,_.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,_.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*h+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,_.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,_.jsx)(I.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,f.Q$)(b)&&(0,_.jsxs)("div",{style:{width:h,height:c},children:[(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,_.jsx)(A,{event:C,unfocusedDisplay:!F,isOnFocus:F})]})]})};const N=(0,a.A)({key:"whatmore-css-hv"});function O(t){const[e,i,n]=(0,p.A)(),[r,l,s]=(0,h.A)(),a=(0,v.Xd)("whatmoreShopId"),c=t.events,u=t.onClick,m=n*(0,f.kcl)(a),x=(0,f.cbh)(a),[j,P]=(0,o.useState)(x?c.length:m),{whatmoreWidgetSourceDetails:S}=(0,o.useContext)(g.B);return(0,o.useEffect)((()=>{j<=m&&P((t=>t+m))}),[m]),(0,_.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,_.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:S}),t.realIndex>t.previousIndex&&P((t=>t+m))},loop:x,children:c.map(((t,e)=>e<=j&&(0,_.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:o,isNext:n,isVisible:r}=e;return o||n||i?(0,_.jsx)(F,{isOnFocus:r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,_.jsx)(y.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function M(t){const[e,i,n,r]=(0,p.A)(),[l,s]=(0,o.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[h]=(0,v.QN)("whatmoreLandingLocationType"),u=t.onClick,x=t.events,j=(0,f.cbh)(a),[P,S]=(0,o.useState)(j?x.length:n),C=Math.min(n,x.length),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(g.B),I=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(I.current){const t=i*C*(0,f.fHt)(a)+"px";x.length<4?I.current.style.setProperty("width",t,"important"):I.current.style.width=t}}),[i,C,a,P,x.length]),(0,o.useEffect)((()=>{P<=n&&S((t=>t+n))}),[n]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,_.jsx)("div",{ref:I,style:{height:"100%"},children:(0,_.jsx)(d.RC,{slidesPerView:"product"===h&&"87174349065"===a?2:C,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),t.realIndex>t.previousIndex&&S((t=>t+n))},spaceBetween:0,loop:j&&x.length>4,style:{height:"100%"},children:x.map(((t,e)=>{const i=m()((()=>s(e)),300);return e<=P&&(0,_.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},style:{height:"100%"},children:i=>{let{isActive:o,isPrev:n,isNext:r,isVisible:s}=i;return s||n||r?(0,_.jsx)(F,{isOnFocus:e==l,playOnUnfocus:!(0,f.aO7)(a)||e==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,_.jsx)(y.A,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var E=function(t){const[e,i,a]=(0,h.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[p]=(0,v.QN)("whatmoreTitleFont"),u="portrait"==e?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,o.useContext)(g.B),y=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,o.useContext)(g.B),b=t.events,P=t.onClick,S=p;function C(t){P(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-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,_.jsx)(s.C,{value:N,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,_.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,_.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||w?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S),t.style.setProperty("font-size",u+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.Odx)(d),lineHeight:(0,f.L0y)(d),letterSpacing:(0,f.l3V)(d)},children:w?"W"!==y?y:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(M,{events:b,onClick:C}):(0,_.jsx)(O,{events:b,onClick:C})]})})})})}},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})},7136:function(t,e,i){var o=i(9950),n=i(932),r=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,n.A)();(0,o.useContext)(r.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"}})}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,c,p,[h,u]=(0,r.A)();const m=(0,n.Xd)("whatmoreUITheme"),[v]=(0,n.QN)("whatmorePrimaryFont"),[x,y]=(0,o.useState)(0),f=(0,n.Xd)("whatmoreShopId"),g=t.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const w=.3*u,b=w+"px",j=w+"px",P=.07*u,S=P+"px";return(0,d.jsx)("div",{style:{width:u+"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)(f)?b:"auto",boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,s.YcK)(f),borderColor:(0,s.Fwt)(f),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(f),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(g.products[x].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:u-5-w+"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",S),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",v,"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[x].title)})}),(0,s.gZ6)(f)&&(null===(e=g.products[x])||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:u-5-w+"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",u-5-w+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",v,"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===(c=g.products[x])||void 0===c||null===(p=c.product_metadata)||void 0===p?void 0:p.product_type})})]})]},x)})}},22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return o},b4:function(){return r},dl:function(){return n},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const o="device_type",n="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var o=i(5830),n=i(1941),r=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,n.A)(),[a]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>=1025,u="portrait"==e?p:c,m=!("portrait"!=e||!(s>=481)),v=u/100*1.3*.5,x=u/100;var y=Math.min(s,i),[f,g,w,b]=[.6*y*(16/9),.6*y,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*v,e=f*v;[f,g,w,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 S=.8*g,C=.8*f;"portrait"==e?(S*=x,C*=x,[f,g,w,b]=[C,S,j(s/(1.2*S)),0],P[r._]=r.vF,P[r.dl]=r.tn):([f,g,w,b]=[C,S,(s-2*a)/(1.1*S),a],P[r._]=r.vF,P[r.dl]=r.nN)}else{S=g,C=f;"portrait"==e?(S=S*x*.9,C=C*x*.9,[f,g,w,b]=[C,S,j(s/(1.15*S)),0],P[r._]=r.b4,P[r.dl]=r.tn):(S=.7*g,C=.7*f,[f,g,w,b]=[C,S,(s-2*a)/(1.1*S),a],P[r._]=r.b4,P[r.dl]=r.nN)}return[f,g,w,b,P]}},1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},4826:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[676],{3369:function(t,e,i){i.r(e),i.d(e,{default:function(){return E}});var o=i(9950),n=i(340),r=i(9983),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(8378),c=i(9094),p=i(932),h=i(1941),u=i(5491),m=i.n(u),v=i(5830),x=i(7509),y=i(7136),f=i(1348),g=i(4737),w=i(1351),b=i(6157),j=i(6641),P=(i(4826),i(9879)),S=i(4616),C=i(6649),k=i(6613),I=i(1131),_=i(4414);function A(t){const[e]=(0,v.QN)("whatmoreShopId"),[i,o,n]=(0,C.A)({triggerOnce:!0}),r=t.event,l=(0,k.At)()?t.isOnFocus:o;return(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,_.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,_.jsx)("p",{children:" "})}),(0,_.jsx)("div",{ref:i,children:l&&(0,f.imx)(e)?(0,_.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,_.jsx)(S.A,{event:r})}):(0,_.jsx)("div",{height:"20px"})})]})})}var F=function(t){var e,i,n,r,l,s,a,d;const[c,h,u,m,y]=(0,p.A)();var g=(0,o.useContext)(x.h);const w=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),j=(0,v.Xd)("whatmorePrimaryFont"),S=(0,v.Xd)("whatmoreSecondaryColor"),C=t.event,k=t.onClick,F=null===(e=t.isOnFocus)||void 0===e||e,N=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,O=null!==(n=t.animateOnFocus&&(0,f.n5O)(b))&&void 0!==n&&n,M=(0,f.VYo)(b);return(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",g.tileTopMargin+"px"),t.style.setProperty("margin-bottom",g.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:h,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w||"61187850326"==b||"19501891"==b?M:null,borderWidth:(0,f.YcK)(b),borderColor:(0,f.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:O?F?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,i;if("12326200"==b&&"image"==C.event_type&&(null===(t=C.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=C.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.product_status)){var o,n;window.location.href=null===(o=C.products)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.product_link}else{if("12326200"==b&&"image"==C.event_type)return;var r,l,s,a,d,c,p,h,u,m,v,x,y,f,g,w;if("10588815418"==b){if(null!==(r=C.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=C.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=C.cta)||void 0===c||null===(p=c[1])||void 0===p?void 0:p.cta_title))window.location.href=null===(g=C.cta)||void 0===g||null===(w=g[1])||void 0===w?void 0:w.cta_link;else if(null!==(h=C.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(m=u.cta_link)&&void 0!==m&&m.includes("whatmore")&&""!=(null===(v=C.cta)||void 0===v||null===(x=v[0])||void 0===x?void 0:x.cta_link)&&""==(null===(y=C.cta)||void 0===y||null===(f=y[0])||void 0===f?void 0:f.cta_title)){var j,P;window.location.href=null===(j=C.cta)||void 0===j||null===(P=j[0])||void 0===P?void 0:P.cta_link}}else k(C)}},children:[(0,_.jsx)(P.A,{height:(0,f.u06)(b)+" !important",width:"100%",url:C.thumbnail_image,isPlaying:F||N,event:C}),""!==(null===C||void 0===C?void 0:C.title)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,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"},children:(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,_.jsx)("p",{style:{fontFamily:j,fontSize:.1*h+"px",fontWeight:"600"},children:"12326200"==b?null===C||void 0===C||null===(r=C.title)||void 0===r?void 0:r.slice(7):null===C||void 0===C?void 0:C.title}),"12326200"==b&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*h+"px",fontWeight:"normal"},children:null===C||void 0===C||null===(l=C.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=C.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=C.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,_.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,_.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*h+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,_.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,_.jsx)(I.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,f.Q$)(b)&&(0,_.jsxs)("div",{style:{width:h,height:c},children:[(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,_.jsx)(A,{event:C,unfocusedDisplay:!F,isOnFocus:F})]})]})};const N=(0,a.A)({key:"whatmore-css-hv"});function O(t){const[e,i,n]=(0,p.A)(),[r,l,s]=(0,h.A)(),a=(0,v.Xd)("whatmoreShopId"),c=t.events,u=t.onClick,m=n*(0,f.kcl)(a),x=(0,f.cbh)(a),[j,P]=(0,o.useState)(x?c.length:m),{whatmoreWidgetSourceDetails:S}=(0,o.useContext)(g.B);return(0,o.useEffect)((()=>{j<=m&&P((t=>t+m))}),[m]),(0,_.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,_.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:S}),t.realIndex>t.previousIndex&&P((t=>t+m))},loop:x,children:c.map(((t,e)=>e<=j&&(0,_.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:o,isNext:n,isVisible:r}=e;return o||n||i?(0,_.jsx)(F,{isOnFocus:r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,_.jsx)(y.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function M(t){const[e,i,n,r]=(0,p.A)(),[l,s]=(0,o.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[h]=(0,v.QN)("whatmoreLandingLocationType"),u=t.onClick,x=t.events,j=(0,f.cbh)(a),[P,S]=(0,o.useState)(j?x.length:n),C=Math.min(n,x.length),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(g.B),I=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(I.current){const t=i*C*(0,f.fHt)(a)+"px";x.length<4?I.current.style.setProperty("width",t,"important"):I.current.style.width=t}}),[i,C,a,P,x.length]),(0,o.useEffect)((()=>{P<=n&&S((t=>t+n))}),[n]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,_.jsx)("div",{ref:I,style:{height:"100%"},children:(0,_.jsx)(d.RC,{slidesPerView:"product"===h&&"87174349065"===a?2:C,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),t.realIndex>t.previousIndex&&S((t=>t+n))},spaceBetween:0,loop:j&&x.length>4,style:{height:"100%"},children:x.map(((t,e)=>{const i=m()((()=>s(e)),300);return e<=P&&(0,_.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},style:{height:"100%"},children:i=>{let{isActive:o,isPrev:n,isNext:r,isVisible:s}=i;return s||n||r?(0,_.jsx)(F,{isOnFocus:e==l,playOnUnfocus:!(0,f.aO7)(a)||e==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,_.jsx)(y.A,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var E=function(t){const[e,i,a]=(0,h.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[p]=(0,v.QN)("whatmoreTitleFont"),u="portrait"==e?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,o.useContext)(g.B),y=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,o.useContext)(g.B),b=t.events,P=t.onClick,S=p;function C(t){P(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-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,_.jsx)(s.C,{value:N,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,_.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,_.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||w?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S),t.style.setProperty("font-size",u+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.Odx)(d),lineHeight:(0,f.L0y)(d),letterSpacing:(0,f.l3V)(d)},children:w?"W"!==y?y:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(M,{events:b,onClick:C}):(0,_.jsx)(O,{events:b,onClick:C})]})})})})}},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})},7136:function(t,e,i){var o=i(9950),n=i(932),r=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,n.A)();(0,o.useContext)(r.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"}})}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,c,p,h,[u,m]=(0,r.A)();m=null!==(e=t.width)&&void 0!==e?e:m;const v=(0,n.Xd)("whatmoreUITheme"),[x]=(0,n.QN)("whatmorePrimaryFont"),[y,f]=(0,o.useState)(0),g=(0,n.Xd)("whatmoreShopId"),w=t.event;if(0==w.products.length)return(0,d.jsx)(d.Fragment,{});const b=.3*m,j=b+"px",P=b+"px",S=.07*m,C=S+"px";return(0,d.jsx)("div",{style:{width:m+"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",P,"important")},style:{width:(0,s.H$k)(g)?j:"auto",boxShadow:"round"==v?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==v?"5px":"0px",borderWidth:(0,s.YcK)(g),borderColor:(0,s.Fwt)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(g),"important"),t.style.setProperty("max-width",j,"important"))},src:(0,a.b)(w.products[y].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==v?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:m-5-b+"px",height:"100%",borderRadius:"round"==v?"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",C),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"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)(w.products[y].title)})}),(0,s.gZ6)(g)&&(null===(i=w.products[y])||void 0===i||null===(c=i.product_metadata)||void 0===c?void 0:c.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:m-5-b+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==v?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",m-5-b+"px","important"),t.style.setProperty("font-size",.7*S+"px","important"),t.style.setProperty("font-family",x,"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=w.products[y])||void 0===p||null===(h=p.product_metadata)||void 0===h?void 0:h.product_type})})]})]},y)})}},22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return o},b4:function(){return r},dl:function(){return n},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const o="device_type",n="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var o=i(5830),n=i(1941),r=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,n.A)(),[a]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>=1025,u="portrait"==e?p:c,m=!("portrait"!=e||!(s>=481)),v=u/100*1.3*.5,x=u/100;var y=Math.min(s,i),[f,g,w,b]=[.6*y*(16/9),.6*y,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*v,e=f*v;[f,g,w,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 S=.8*g,C=.8*f;"portrait"==e?(S*=x,C*=x,[f,g,w,b]=[C,S,j(s/(1.2*S)),0],P[r._]=r.vF,P[r.dl]=r.tn):([f,g,w,b]=[C,S,(s-2*a)/(1.1*S),a],P[r._]=r.vF,P[r.dl]=r.nN)}else{S=g,C=f;"portrait"==e?(S=S*x*.9,C=C*x*.9,[f,g,w,b]=[C,S,j(s/(1.15*S)),0],P[r._]=r.b4,P[r.dl]=r.tn):(S=.7*g,C=.7*f,[f,g,w,b]=[C,S,(s-2*a)/(1.1*S),a],P[r._]=r.b4,P[r.dl]=r.nN)}return[f,g,w,b,P]}},1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},4826:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{7178:function(e,t,n){n.r(t);var i=n(9950),s=n(340),r=n(9983),l=n(5873),o=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),c=n(8378),h=n(9094),d=n(932),u=n(1941),p=n(5491),m=n.n(p),g=n(5830),x=n(7509),f=n(7136),y=n(1348),w=n(4737),v=n(1351),S=n(6157),C=n(6641),j=n(1957),A=n(4414);const I=(0,a.A)({key:"whatmore-css-hv"});function P(e){const[t,n,s]=(0,d.A)(),[r,l,o]=(0,u.A)(),a=(0,g.Xd)("whatmoreShopId"),h=e.events,p=e.onClick,m=s*(0,y.kcl)(a),x=(0,y.cbh)(a),[C,I]=(0,i.useState)(x?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(w.B);return(0,i.useEffect)((()=>{C<=m&&I((e=>e+m))}),[m]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:o,height:"fit-content"},children:(0,A.jsx)(c.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,v.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),e.realIndex>e.previousIndex&&I((e=>e+m))},loop:x,children:h.map(((e,t)=>t<=C&&(0,A.jsx)(c.qr,{children:t=>{let{isActive:n,isPrev:i,isNext:s,isVisible:r}=t;return i||s||n?(0,A.jsx)(j.A,{isOnFocus:n&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function k(e){const[t,n,s,r]=(0,d.A)(),[l,o]=(0,i.useState)(-1),a=(0,g.Xd)("whatmoreShopId"),u=e.onClick,p=e.events,x=(0,y.cbh)(a),[C,I]=(0,i.useState)(x?p.length:s),P=Math.min(s,p.length),{whatmoreWidgetSourceDetails:k}=(0,i.useContext)(w.B),E=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(E.current){const e=n*P*(0,y.fHt)(a)+"px";p.length<4?E.current.style.setProperty("width",e,"important"):E.current.style.width=e}}),[n,P,a,C,p.length]),(0,i.useEffect)((()=>{C<=s&&I((e=>e+s))}),[s]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:E,style:{height:"100%"},children:(0,A.jsx)(c.RC,{slidesPerView:P,watchSlidesProgress:!0,modules:[h.Vx],navigation:!0,slidesPerGroup:parseInt(P),onSlideChange:e=>{(0,v.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),e.realIndex>e.previousIndex&&I((e=>e+s))},spaceBetween:0,loop:x&&p.length>4,style:{height:"100%"},children:p.map(((e,t)=>{const n=m()((()=>o(t)),300);return t<=C&&(0,A.jsx)(c.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),o(-1)},style:{height:"100%"},children:n=>{let{isActive:i,isPrev:s,isNext:r,isVisible:o}=n;return o||s||r?(0,A.jsx)(j.A,{isOnFocus:t==l,playOnUnfocus:!(0,y.aO7)(a)||t==parseInt(P/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,n,a]=(0,u.A)(),[c]=(0,g.QN)("whatmoreShopId"),[h]=(0,g.QN)("whatmorePrimaryColor"),[d]=(0,g.QN)("whatmoreTitleFont"),p="portrait"==t?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(w.B),f=(0,g.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(w.B),S=e.events,j=e.onClick,E=d;function O(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 n=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!n)return;n&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,A.jsx)(o.C,{value:I,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(s.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,A.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||v?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",E,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(c),lineHeight:(0,y.L0y)(c),letterSpacing:(0,y.l3V)(c)},children:v?"W"!==f?f:"":e.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===t?(0,A.jsx)(k,{events:S,onClick:O}):(0,A.jsx)(P,{events:S,onClick:O})]})})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[306],{9406:function(t,e,i){i.r(e),i.d(e,{default:function(){return V}});var n=i(9950),o=i(340),r=i(9983),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(8378),p=i(9094),c=i(1941),h=i(5830),x=i(7509),m=i(7136),y=i(1348),f=i(4737),u=(i(1351),i(6157),i(6641)),w=i(3080),g=i(932),v=(i(4826),i(5727)),j=i(9879),b=i(22),P=i(3590),C=i(4616),F=i(6649),I=i(6613),k=(i(9596),i(4414));function S(t){var e,i=t.width;const[o]=(0,h.QN)("whatmoreShopId"),[r,l,s]=(0,F.A)({triggerOnce:!0});var a=(0,n.useContext)(x.h);const d=t.event,p=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,c=.5*i,m=(0,I.At)()?t.isOnFocus:l;return(0,k.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,k.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,k.jsx)("p",{children:" "})}),a.showPlayButton&&!p?(0,k.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,k.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,k.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==d.event_type&&(0,k.jsx)(v.A,{sx:{color:(0,y.KFN)(o)+" !important",opacity:.8,fontSize:c,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)("div",{ref:r,children:m&&(0,y.imx)(o)?(0,k.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,k.jsx)(C.A,{event:d,width:i})}):(0,k.jsx)("div",{height:"20px"})})]})})}function A(t){var e=t.width;const[i]=(0,h.QN)("whatmorePrimaryFont"),n=t.event;return n.title.trim().length?(0,k.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,k.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,k.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,k.jsx)("p",{style:{color:"white",fontSize:.08*e+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,k.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*e+"px",fontWeight:"normal",textAlign:"left"},children:n.title.substring(0,60)})]})})})}):(0,k.jsx)(k.Fragment,{})}function N(t){var[e,i,n,o,r]=(0,g.A)(),l=t.width;const[s]=(0,h.QN)("whatmoreShowViews"),a=(0,h.Xd)("whatmoreShopId"),d=t.event,p=t.isOnFocus;return(0,k.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,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,k.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,k.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===s&&"show"===(0,y.klK)(a)?(0,k.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,k.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,k.jsx)(P.A,{event:d,fontSize:.07*l+"px"})})}):(0,k.jsx)(k.Fragment,{}),!1]})}),b.nN===r[b.dl]?(0,k.jsx)(k.Fragment,{}):p?(0,k.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,k.jsx)(A,{event:d,width:l})}):(0,k.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,k.jsx)(A,{event:d,width:l})})]})})}var R=function(t){var e,i,o,r,[l,s,a,d,p]=(0,g.A)();const c=null!==(e=t.scaleFactor)&&void 0!==e?e:1;l*=c,s*=c;var m=(0,n.useContext)(x.h);const f=(0,h.Xd)("whatmoreUITheme"),u=(0,h.Xd)("whatmoreShopId"),[w]=(0,h.Xd)("whatmorePrimaryFont"),v=t.event,P=t.onClick,C=null===(i=t.isOnFocus)||void 0===i||i,F=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,I=null!==(r=t.animateOnFocus&&(0,y.n5O)(u))&&void 0!==r&&r,A=(0,y.VYo)(u);return(0,k.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","32px"),t.style.setProperty("margin-bottom",m.tileBottomMMargin+"px"))},style:{margin:"0 auto",width:s,height:l,borderRadius:"round"==f?"5px":"0px",boxShadow:"round"==f?A:null,borderWidth:(0,y.YcK)(u),borderColor:(0,y.Fwt)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:I?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(v)},children:[(0,k.jsx)(j.A,{height:(0,y.u06)(u)+" !important",width:"100%",url:v.thumbnail_image,isPlaying:C||F,event:v}),(0,y.Q$)(u)&&(0,k.jsxs)("div",{style:{width:s,height:l},children:[(0,k.jsx)(N,{event:v,isOnFocus:C,width:s}),"87043703105"===u||"76467011883"===u||!C&&b.nN!==p[b.dl]?null:(0,k.jsx)(S,{event:v,unfocusedDisplay:!C,isOnFocus:C,width:s})]})]})};i(1957);const O=(0,a.A)({key:"whatmore-css-hv"});function z(t){const e=t.events,i=t.onClick,[o,r]=(0,n.useState)(6);var[l,s,a,h]=(0,w.A)();const[x,y,f]=(0,c.A)();return(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,k.jsx)("div",{style:{width:f,height:"fit-content"},children:(0,k.jsx)(d.RC,{effect:"coverflow",slidesPerView:3,initialSlide:1,centeredSlides:!0,slidesPerGroup:1,watchSlidesProgress:!0,onSlideChange:t=>{t.realIndex>t.previousIndex&&r((t=>t+1))},modules:[p.t9,p.Vx],coverflowEffect:{rotate:0,stretch:Math.floor(.08*h),depth:100,scale:.8,modifier:1,slideShadows:!1},children:e.map(((t,e)=>e<=o&&(0,k.jsx)(d.qr,{children:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l}=e;return l?(0,k.jsx)(R,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{i(t)}}):(0,k.jsx)(m.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function W(t){var[e,i,o,r]=(0,w.A)();const l=t.onClick,s=t.events,[a,c]=(0,n.useState)(5);return(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,k.jsx)(d.RC,{effect:"coverflow",slidesPerView:s.length>=5?5:s.length,slidesPerGroup:1,initialSlide:s.length>=5?2:Math.floor(s.length)/2,centeredSlides:!0,onSlideChange:t=>{t.realIndex>t.previousIndex&&c((t=>t+1))},modules:[p.t9,p.Vx],navigation:!0,coverflowEffect:{rotate:0,stretch:0,depth:100,scale:.8,modifier:1,slideShadows:!1},children:s.map(((t,e)=>e<=a&&(0,k.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r}=e;return r?(0,k.jsx)(R,{isOnFocus:i,playOnUnfocus:!1,animateOnFocus:!0,event:t,scaleFactor:1.3,onClick:()=>{l(t)}}):(0,k.jsx)(m.A,{})}},"whatmore-event-tile-portr-"+t.index)))})})}var V=function(t){const[e,i,a]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),w="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(f.B),v=(0,h.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:j}=(0,n.useContext)(f.B),b=t.events,P=t.onClick,C=m;function F(t){P(t)}return(0,n.useEffect)((()=>{(0,u.Fk)("Video shopping powered by Whatmore!")}),[]),(0,n.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")}))}),[]),delete r.Ay.styles.global,(0,k.jsx)(s.C,{value:O,children:(0,k.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,k.jsx)(o.s,{theme:r.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,k.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||j?(0,k.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",w+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:j?"W"!==v?v:"":t.heading})}):(0,k.jsx)(k.Fragment,{}),"landscape"===e?(0,k.jsx)(W,{events:b,onClick:F}):(0,k.jsx)(z,{events:b,onClick:F})]})})})})}},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,m]=(0,r.A)();m=null!==(e=t.width)&&void 0!==e?e:m;const y=(0,o.Xd)("whatmoreUITheme"),[f]=(0,o.QN)("whatmorePrimaryFont"),[u,w]=(0,n.useState)(0),g=(0,o.Xd)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,d.jsx)(d.Fragment,{});const j=.3*m,b=j+"px",P=j+"px",C=.07*m,F=C+"px";return(0,d.jsx)("div",{style:{width:m+"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",P,"important")},style:{width:(0,s.H$k)(g)?b:"auto",boxShadow:"round"==y?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==y?"5px":"0px",borderWidth:(0,s.YcK)(g),borderColor:(0,s.Fwt)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(g),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(v.products[u].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==y?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:m-5-j+"px",height:"100%",borderRadius:"round"==y?"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",f,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(v.products[u].title)})}),(0,s.gZ6)(g)&&(null===(i=v.products[u])||void 0===i||null===(p=i.product_metadata)||void 0===p?void 0:p.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:m-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==y?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",m-5-j+"px","important"),t.style.setProperty("font-size",.7*C+"px","important"),t.style.setProperty("font-family",f,"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===(c=v.products[u])||void 0===c||null===(h=c.product_metadata)||void 0===h?void 0:h.product_type})})]})]},u)})}},9596:function(t,e,i){i(4365),i(5830),i(4414)},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")}}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[116],{3852:function(n,t,e){e.d(t,{A:function(){return v}});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 u=d.i7`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(1);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: scale(1.05);
|
|
7
|
+
}
|
|
8
|
+
`,m=d.i7`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(1.05);
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
}
|
|
15
|
+
`,f=`\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`,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`;var x=e(5830),p=e(7509),j=e(4414);var v=function(n){var t,e,[d,u]=(0,s.A)();const[m]=(0,x.QN)("whatmorePrimaryFont");var v=(0,l.useContext)(p.h);const w=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?f:g:"none",marginTop:v.tileTopMargin,marginBottom:v.tileBottomMMargin,marginLeft:v.tileLeftMargin,marginRight:v.tileRightMargin,width:u,height:d,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{C(w)},cursor:"pointer",children:[(0,j.jsx)(a._,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(h.A,{width:u,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:w,fontSize:.05*d+"px",maxWidth:.8*u})})})})}),(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*u+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.E,{fontSize:.08*u+"px",fontWeight:"normal",align:"left",sx:{fontFamily:m+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,j.jsx)(r.E,{fontSize:.08*u+"px",fontWeight:"bold",align:"left",sx:{fontFamily:m+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},7144:function(n,t,e){e.r(t);var i=e(9950),o=e(3852),r=e(340),a=e(9983),l=e(8726),s=(e(3997),e(9733),e(4365),e(572)),c=e(8603),h=e(6086),d=e(1422),u=e(3247),m=e(3731),f=e(932),g=e(1941),x=e(5830),p=(e(5144),e(7509)),j=e(1348),v=e(4737),w=e(2039),C=e(3571),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 M(n){var t;const[e,r,a]=(0,f.A)();var[s,c]=(0,i.useState)(0);const m=n.events,g=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,p=k(m,Math.floor(Math.min(a,m.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)(u.az,{style:{margin:"10px"},children:(0,w.ij)(n)||(0,w.Il)(n)?(0,y.jsx)(C.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{g(n)}}):(0,y.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{g(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+x))}})}):(0,y.jsx)(y.Fragment,{})})]})})}function S(n){var t;const[e,r,a,s]=(0,f.A)();var[c,m]=(0,i.useState)(0);const g=n.events,x=n.onClick,p=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,j=k(g,Math.floor(Math.min(a,g.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)(u.az,{style:{margin:"10px"},children:(0,w.ij)(n)||(0,w.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: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||m((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,g.A)(),[c]=(0,x.QN)("whatmoreShopId"),[d]=(0,x.QN)("whatmorePrimaryColor"),[u]=(0,x.QN)("whatmoreSecondaryColor"),[f]=(0,x.QN)("whatmoreTitleFont"),w="portrait"==e?(0,x.Xd)("whatmoreTitleFontSizePortrait"):(0,x.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:C}=(0,i.useContext)(v.B),b=n.events,k=n.onClick,A=null!==(t=(0,j.sa6)(c))&&void 0!==t?t:f;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)(m.E,{bgColor:d,bgClip:"text",fontSize:w,sx:{fontFamily:A+" !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)(M,{events:b,onClick:z,seeMoreIncrement:2})]})})})})}},7509:function(n,t,e){e.d(t,{h:function(){return i}});const i=(0,e(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},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,u]=(0,i.useState)(!1),[m]=(0,a.QN)("whatmoreSecondaryColor"),[f]=(0,a.QN)("whatmoreSecondaryColorShade600"),[g]=(0,a.QN)("whatmoreSecondaryColorShade300"),[x]=(0,a.QN)("whatmorePrimaryFont"),p=n.onClick,j=n.icon,v=null!==(t=n.borderRadius)&&void 0!==t?t:"sm",w=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:v,backgroundColor:c?g:m,animation:d?l.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:n=>{n.stopPropagation(),u(!0),p()},onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},children:[(0,s.jsx)(r.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:x+" !important",color:"white !important"},children:"VIEW MORE"}),j]})}},22:function(n,t,e){e.d(t,{$S:function(){return l},_:function(){return i},b4:function(){return r},dl:function(){return o},nN:function(){return c},tn:function(){return s},vF:function(){return a}});const i="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",c="landscape"},932:function(n,t,e){var i=e(5830),o=e(1941),r=e(22),a=e(1348);t.A=function(n){const[t,e,l]=(0,o.A)(),[s]=(0,i.QN)("whatmoreLandscapePadding"),[c]=(0,i.QN)("whatmoreShopId"),[h]=(0,i.QN)("whatmoreVideoTileSize"),[d]=(0,i.QN)("whatmoreVideoTileSizePortrait"),u=l>=1025,m="portrait"==t?d:h,f=!("portrait"!=t||!(l>=481)),g=m/100*1.3*.5,x=m/100;var p=Math.min(l,e),[j,v,w,C]=[.6*p*(16/9),.6*p,1.4,0];function b(n){return Math.round(10*n)/10}var y={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(u){const n=v*g,t=j*g;[j,v,w,C]=[t,n,(l-2*s-2*(0,a.$du)(c))/(1.1*n),s],y[r._]=r.$S,y[r.dl]=r.nN}else if(f){var F=.8*v,k=.8*j;"portrait"==t?(F*=x,k*=x,[j,v,w,C]=[k,F,b(l/(1.2*F)),0],y[r._]=r.vF,y[r.dl]=r.tn):([j,v,w,C]=[k,F,(l-2*s)/(1.1*F),s],y[r._]=r.vF,y[r.dl]=r.nN)}else{F=v,k=j;"portrait"==t?(F=F*x*.9,k=k*x*.9,[j,v,w,C]=[k,F,b(l/(1.15*F)),0],y[r._]=r.b4,y[r.dl]=r.tn):(F=.7*v,k=.7*j,[j,v,w,C]=[k,F,(l-2*s)/(1.1*F),s],y[r._]=r.b4,y[r.dl]=r.nN)}return[j,v,w,C,y]}},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")},4826:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[657,760],{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),m=n(4737),p=n(2039),v=n(4833),g=n(2979),S=n(6157),_=n(5100),y=n(8945),w=n(9821),f=(n(3080),n(7079)),I=n(4414);const x=i.lazy((()=>n.e(665).then(n.bind(n,8582)))),E=i.lazy((()=>Promise.all([n.e(571),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(832),n.e(571),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((()=>Promise.all([n.e(832),n.e(891)]).then(n.bind(n,7178)))),N=i.lazy((()=>Promise.all([n.e(832),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)))),P=i.lazy((()=>Promise.all([n.e(257),n.e(1)]).then(n.bind(n,4596))));var A=function(e){var t,n;const[A]=(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)(m.B),[V]=(0,a.QN)("whatmoreShopId"),[R]=(0,a.QN)("whatmoreLandingLocationType"),{whatmoreEventsBrowsingTemplate:z}=(0,i.useContext)(m.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)(m.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)(),A||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,p.ij)(e)||(0,p.Il)(e))&&(A||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 me(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)(me,{}):(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:!A&&!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:!A&&!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:!A&&!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:!A&&!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:!A&&!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:!A&&!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:!A&&!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:!A&&!F,children:(0,I.jsx)(P,{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:!A&&!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:!A&&!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:!A&&!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:!A&&!F,children:(0,I.jsx)(N,{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:!A&&!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:!A&&!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:!A&&!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,p]=(0,i.useState)(),{whatmoreIsStoriesTemplate:g}=(0,i.useContext)(m.B),{whatmoreIsCollectionsTemplate:_}=(0,i.useContext)(m.B),{whatmoreIsBannerTemplate:y}=(0,i.useContext)(m.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)(m.B),{whatmoreUserInfo:C,whatmoreIsPreviewMode:j}=(0,i.useContext)(m.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,P]=(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,m,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!==(m=null===(S=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===S?void 0:S.longitude)&&void 0!==m?m:"")+"&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),P(!0)})).catch((e=>{p(e.message),P(!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)(A,{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[m,p,v]=(0,K.A)({triggerOnce:!0});return(0,I.jsx)("div",{ref:m,style:{display:"block",height:"100%"},children:s||p||h||!(0,l.FlM)(t)||(0,l.wQ2)(t)?(0,I.jsx)(z,{heading:n,shopId:t}):(0,I.jsx)("div",{})})}},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},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}})},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})}}}]);
|