whatmore-react-assets 1.0.1716 → 1.0.1718
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/620.ed61f788.chunk.js +1 -0
- package/static/js/{688.917437ea.chunk.js → 688.86007ac3.chunk.js} +1 -1
- package/static/js/{714.2ba0309e.chunk.js → 714.d5aec5d8.chunk.js} +1 -1
- package/static/js/{collections-template-stories.94ca71ba.chunk.js → collections-template-stories.dd4a472f.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/js/620.a2bd1867.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[620],{1131:function(t,e,i){var n=i(4994);e.A=void 0;var o=n(i(9526)),r=i(4414);e.A=(0,o.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},2375:function(t,e,i){var n=i(4994);e.A=void 0;var o=n(i(9526)),r=i(4414);e.A=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},4616:function(t,e,i){var n=i(9950),o=i(5830),r=i(932),s=i(8538),l=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,h,[c,m]=(0,r.A)();const x=(0,o.Xd)("whatmoreUITheme"),[y]=(0,o.QN)("whatmorePrimaryFont"),[f,g]=(0,n.useState)(0),v=(0,o.Xd)("whatmoreShopId"),u=t.event;if(0==u.products.length)return(0,d.jsx)(d.Fragment,{});const w=.3*m,j=w+"px",b=w+"px",A=.07*m,F=A+"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",b,"important")},style:{width:(0,l.H$k)(v)?j:"auto",boxShadow:"round"==x?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==x?"5px":"0px",borderWidth:(0,l.YcK)(v),borderColor:(0,l.Fwt)(v),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,l.KZe)(v),"important"),t.style.setProperty("max-width",j,"important"))},src:(0,a.b)(u.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==x?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:m-5-w+"px",height:"100%",borderRadius:"round"==x?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",F),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,s.v)(u.products[f].title)})}),(0,l.gZ6)(v)&&(null===(e=u.products[f])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:m-5-w+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==x?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",m-5-w+"px","important"),t.style.setProperty("font-size",.7*A+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(p=u.products[f])||void 0===p||null===(h=p.product_metadata)||void 0===h?void 0:h.product_type})})]})]},f)})}},5620:function(t,e,i){i.d(e,{A:function(){return w}});var n=i(9950),o=i(932),r=(i(4826),i(5727)),s=i(5830),l=i(9879),a=i(7509),d=i(22),p=i(1348),h=i(9258),c=i(4616),m=i(6649),x=i(6613),y=i(1131),f=(i(4365),i(4414));function g(t){var e,[i,l]=(0,o.A)();const[d]=(0,s.QN)("whatmoreShopId"),[h,y,g]=(0,m.A)({triggerOnce:!0});var v=(0,n.useContext)(a.h);const u=t.event,w=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*l,b=(0,x.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:" "})}),v.showPlayButton&&!w||"60934750449"==d?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsxs)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:["60934750449"==d&&(0,f.jsx)("div",{style:{transform:"scale(1)"},children:(0,f.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/whatmorelive.brand.other.assets/maryumnmaria/card+26.png"})}),"video"==u.event_type&&"60934750449"!=d&&(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:u})}):(0,f.jsx)("div",{height:"20px"})})]})})}function v(t){var[e,i]=(0,o.A)();const[n]=(0,s.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function u(t){const[e,i,n,r,l]=(0,o.A)(),[a]=(0,s.QN)("whatmoreShowViews"),c=(0,s.Xd)("whatmoreShopId"),m=t.event,x=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:m,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===l[d.dl]?(0,f.jsx)(f.Fragment,{}):x?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(v,{event:m})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(v,{event:m})})]})})}var w=function(t){var e,i,r;const[h,c,m,x,v]=(0,o.A)();var w=(0,n.useContext)(a.h);const j=(0,s.Xd)("whatmoreUITheme"),b=(0,s.Xd)("whatmoreShopId"),[A]=(0,s.Xd)("whatmorePrimaryFont"),F=t.event,k=t.onClick,N=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,S=null!==(r=t.animateOnFocus&&(0,p.n5O)(b))&&void 0!==r&&r,Y=(0,p.VYo)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",w.tileTopMargin+"px"),t.style.setProperty("margin-bottom",w.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?Y:null,borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:S?N?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{k(F)},children:[(0,f.jsx)(l.A,{height:(0,p.u06)(b)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:N||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:A+" !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)(u,{event:F,isOnFocus:N}),"87043703105"===b||"76467011883"===b||!N&&d.nN!==v[d.dl]?null:(0,f.jsx)(g,{event:F,unfocusedDisplay:!N,isOnFocus:N})]})]})}},9258:function(t,e,i){i.d(e,{A:function(){return a}});var n=i(2375),o=i(1348),r=i(5830),s=i(4414);function l(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}var 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,s.jsx)(s.Fragment,{});const h=(0,o.FVo)(i),c=()=>"57939755089"===i?{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABuySURBVHgB7V1NcFTXlT7ndotgUzN6qprJCONYzSYhK4kJCIYNzSreSazsrCStJsmQkVjFWSGtUrNCBJIMK6TVhBXSKvbKrZqqDAZP0dqFlVuuVAZWbtXEKUD97pnvO/e1rDDGahG1jH5OlUrqVvfr1/fc8/ednytyQAd0QPuILn2vMnppuDIqe4CC7BHSEM+LxarsASrJHqB/Ha6MmdprYuHJqWNZ8/4fm4/kgL5e+snpt66u/32mckt2OZVlF9LU2Uql1ZKrVL7RZMagvfj8j09XhsxkhZITzcY1aKP0VC7P1htN2UW0K21Ka02GRC3Dn/NB4jhY0rx0tlLFlzmvJo0o8biKzltu2bMeqcguI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m9FiG9ghe2AQX3FsNoLaQ9WS/R41HFPoxhaoLdKUlgYVgiNQpnT6q1w/kjCu0B+UjcpG9h9FSj/u6evJVsUl6a+WWzGIzXWUNNdvmZIdox9SXfzGJQ75AG4jeUic6Oqk/GcHu5kAaMmKAC8v3tk/ETifO2fm2yiFyzRJSMhq775MQZGmzahL33kAb7yndu00WfTpdpx07j/7ct7PGL363svD8852eW8W8xPCx7AcI/rhoi8jd3L7+n42GdzFbpNScgEtNjOrxub/P6rMfNx4Nf6tvGXaF/eqDQAxWr99rvL/p5+B+nr8njhkcPtr3+N7/NH8vO0A76n1tFxVSxxaMheSl6TJd5dLaemEChwcsMbYB82bbM+d3C+2YTdlOSiMBQy9s0hgL3DgykQvvY3i9M8DLesZge3oPxYO2v6+FaFP4m/ag/fduph1zibtJTA9wYGb+eUIIZJfTrlRfz5MDhEaPLGSd1Oq+6rQnJMUJIKf1HNiPAzqg/UP/B9k4kNQRhrrrAAAAAElFTkSuQmCC)"}:{backgroundColor:(0,o.sIk)(i)};return"template-icon"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"event-view-count",style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",...c(),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(n.A,{sx:{color:(0,o.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.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),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+l(d.total_views)+" "})})]})})}):"template-text"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",...c(),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.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:" "+l(d.total_views)+" views"})})})})}):void 0}}}]);
|
|
@@ -124,4 +124,4 @@
|
|
|
124
124
|
100% {
|
|
125
125
|
transform: scale(1);
|
|
126
126
|
}
|
|
127
|
-
`} 0.3s ease-in-out;\n`)},5242:function(t,e,n){var i=n(3731),o=n(1422),r=n(3247),l=n(7239),a=n(5388),d=n(4414);e.A=function(t){var e,n=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(n);return u.name===a.A.LIVE.name?(0,d.jsx)(r.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(r.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6125:function(){},6305:function(t,e,n){var i=n(9950),o=n(1348),r=n(5830),l=n(1052),a=n(140),d=n(8149),s=n(4688),c=n(3262),u=n(5551);e.A=function(t,e,n){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,g]=(0,i.useState)(null),m=(0,i.useRef)(null),{closeClickComponent:f}=(0,i.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,i.useContext)(u.B),[C,y]=(0,i.useState)({state:"init",cart_count:t});function j(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:C.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function b(t){const e=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);return 0==e.length?null:e[0].id}function S(t){var e=[],n=[],i=[];return t.variants.forEach(o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})}),e=e.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),n=n.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),i=i.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),[e,n,i]}function k(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(m.current&&m.current.length>=1){return m.current.filter(t=>t.available).length>=1}return!1}function z(t,e,n){p||v||(async()=>{(0,a.tO)(t,e,n)})()}function E(t,i){const a=b(t);if(!a)return void j("init",C.cart_count);j("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,n,e,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(z(n,e,1),j("init",C.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,()=>{},100,window.location.hostname,a,e.client_product_id,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout(()=>function(){const t=window.location.origin+"/cart";window.location.href=t}(),500),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})}return[C,function(t){const i=[];j("productVariantDetailsApiCallInProgress",null),Promise.all(n.products.map(t=>(0,d.M)(t,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const n=S(e);if(g(n),I(n)&&_()){const e=b([k(n[0]),k(n[1]),k(n[2])]);return e?(i.push(t),e):void j("init",C.cart_count)}}))).then(a=>{const d=a.filter(t=>void 0!=t);(0,l.cF)(d,1,(0,o.NCy)(h),h,n,e,t,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(i.forEach(t=>{z(n,t,1)}),j("init",C.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})})},j,x,function(t,n=!1){j("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const i=S(e);g(i),I(i)||n?_()?E([k(i[0]),k(i[1]),k(i[2])],t):j("errored",null):j("awaitingVariantSelection",null)}).catch(t=>{j("errored",null)})},E,function(t){var e,n,i,r;const l=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(n=l[0].compare_at_price)&&void 0!==n?n:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(i=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==i?i:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,n){var i=n(9950),o=n(5830);e.A=function(t){const[e,n]=(0,o.QN)("muted");return(0,i.useEffect)(()=>{},[]),[e,n]}},7035:function(t,e,n){n.d(e,{m:function(){return i}});const i={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off",swipe_more:"swipe for more"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"}}},7239:function(t,e,n){var i=n(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==i.A.LIVE.name)return{status:i.A.LIVE,bannerText:" "+i.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==i.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+n+" "+l),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,r=o/60,l=r/24;return n<=0?{status:i.A.COMPLETED,bannerText:" "+i.A.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:i.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:i.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,n){n.d(e,{c:function(){return a}});var i=n(6649),o=n(9950),r=(n(4365),n(4414));function l(t){const[e,n,o]=(0,i.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,n;const i=(0,o.useRef)(null),[a,d]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),u="90518552861"===t.shopId,h=()=>{const t=i.current;if(!t)return;const e=t.scrollLeft,n=t.scrollWidth,o=t.clientWidth;d(e>10);c(!(e+o>=n-10)&&n>o)};return(0,o.useEffect)(()=>{const t=i.current;let e,n=!1;function o(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(n=!0,e=t.touches[0].clientX):(n=!0,e=t.clientX)}function r(i){if(!n)return;const o=i.touches?i.touches[0].clientX:i.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function l(e){t.style.pointerEvents="auto",n=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",o),t.addEventListener("touchmove",r),t.addEventListener("touchend",l)),t.addEventListener("mousedown",o),document.addEventListener("mousemove",r),document.addEventListener("mouseup",l),u&&(t.addEventListener("scroll",h),setTimeout(()=>{h()},100),window.addEventListener("resize",h))),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",r),t.removeEventListener("touchend",l)),t.removeEventListener("mousedown",o),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",l),u&&(t.removeEventListener("scroll",h),window.removeEventListener("resize",h)))}},[u]),(0,r.jsxs)("div",{style:{position:"relative",width:"100%"},className:"whatmore-carousel-navigation-wrapper",children:[u&&a&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll left",children:(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),u&&s&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll right",children:(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("div",{ref:i,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(n=t.dataList)||void 0===n?void 0:n.map((e,n)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n))})]})}},9408:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var i=n(3247),o=n(1422),r=n(3731),l=n(6086),a=n(9810),d=n(9950),s=n(5830),c=n(140);var u=n(5144),h=n(4905),p=n(4688),v=n(1348),x=n(8149),g=n(5551),m=n(1351),f=n(6157),w=n(4414);function C(t){var e;const[n]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(i.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:n,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:n,fontSize:1.5*c}})})]})})}var y=function(t){var e,n,a,y;const[j]=(0,s.QN)("whatmorePrimaryFont"),[b]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,A]=(0,d.useState)(!1),[N,F]=(0,d.useState)({state:"initial"}),[P,L]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(g.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,n){b||S||(async()=>{(0,c.tO)(t,e,n)})()}(0,d.useEffect)(()=>{!async function(){var t,e,n,i;const o=await(0,x.M)(R,(0,v.NCy)(_),_);L({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(n=o.variants)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.price})}()},[]);const Q=null!==(n=t.width)&&void 0!==n?n:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return P.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{A(!0),V(D,R,1),(0,m.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout(()=>{B()},2e3)},children:"initial"===N.state?(0,w.jsx)(i.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:R,baseFontSize:W,cartState:N,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
|
|
127
|
+
`} 0.3s ease-in-out;\n`)},5242:function(t,e,n){var i=n(3731),o=n(1422),r=n(3247),l=n(7239),a=n(5388),d=n(4414);e.A=function(t){var e,n=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(n);return u.name===a.A.LIVE.name?(0,d.jsx)(r.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(r.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6125:function(){},6305:function(t,e,n){var i=n(9950),o=n(1348),r=n(5830),l=n(1052),a=n(140),d=n(8149),s=n(4688),c=n(3262),u=n(5551);e.A=function(t,e,n){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,g]=(0,i.useState)(null),m=(0,i.useRef)(null),{closeClickComponent:f}=(0,i.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,i.useContext)(u.B),[C,y]=(0,i.useState)({state:"init",cart_count:t});function j(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:C.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function b(t){const e=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);return 0==e.length?null:e[0].id}function S(t){var e=[],n=[],i=[];return t.variants.forEach(o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})}),e=e.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),n=n.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),i=i.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),[e,n,i]}function k(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(m.current&&m.current.length>=1){return m.current.filter(t=>t.available).length>=1}return!1}function z(t,e,n){p||v||(async()=>{(0,a.tO)(t,e,n)})()}function E(t,i){const a=b(t);if(!a)return void j("init",C.cart_count);j("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,n,e,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(z(n,e,1),j("init",C.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,()=>{},100,window.location.hostname,a,e.client_product_id,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout(()=>function(){const t=window.location.origin+"/cart";window.location.href=t}(),500),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})}return[C,function(t){const i=[];j("productVariantDetailsApiCallInProgress",null),Promise.all(n.products.map(t=>(0,d.M)(t,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const n=S(e);if(g(n),I(n)&&_()){const e=b([k(n[0]),k(n[1]),k(n[2])]);return e?(i.push(t),e):void j("init",C.cart_count)}}))).then(a=>{const d=a.filter(t=>void 0!=t);(0,l.cF)(d,1,(0,o.NCy)(h),h,n,e,t,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(i.forEach(t=>{z(n,t,1)}),j("init",C.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})})},j,x,function(t,n=!1){j("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const i=S(e);g(i),I(i)||n?_()?E([k(i[0]),k(i[1]),k(i[2])],t):j("errored",null):j("awaitingVariantSelection",null)}).catch(t=>{j("errored",null)})},E,function(t){var e,n,i,r;const l=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(n=l[0].compare_at_price)&&void 0!==n?n:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(i=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==i?i:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,n){var i=n(9950),o=n(5830);e.A=function(t){const[e,n]=(0,o.QN)("muted");return(0,i.useEffect)(()=>{},[]),[e,n]}},7035:function(t,e,n){n.d(e,{m:function(){return i}});const i={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off",swipe_more:"swipe for more"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"}}},7239:function(t,e,n){var i=n(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==i.A.LIVE.name)return{status:i.A.LIVE,bannerText:" "+i.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==i.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+n+" "+l),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,r=o/60,l=r/24;return n<=0?{status:i.A.COMPLETED,bannerText:" "+i.A.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:i.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:i.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,n){n.d(e,{c:function(){return a}});var i=n(6649),o=n(9950),r=(n(4365),n(4414));function l(t){const[e,n,o]=(0,i.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,n;const i=(0,o.useRef)(null),a=(0,o.useRef)(null),[d,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[h,p]=(0,o.useState)({top:"50%",left:"5px",right:"5px"}),v="58669793418"===t.shopId,x=()=>{const t=i.current,e=a.current;if(!t||!e)return;const n=t.scrollLeft,o=t.scrollWidth,r=t.clientWidth;s(n>10);u(!(n+r>=o-10)&&o>r);e.getBoundingClientRect(),t.getBoundingClientRect();p({top:"50%",left:"5px",right:"5px"})};return(0,o.useEffect)(()=>{const t=i.current;let e,n=!1;function o(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(n=!0,e=t.touches[0].clientX):(n=!0,e=t.clientX)}function r(i){if(!n)return;const o=i.touches?i.touches[0].clientX:i.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function l(e){t.style.pointerEvents="auto",n=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",o),t.addEventListener("touchmove",r),t.addEventListener("touchend",l)),t.addEventListener("mousedown",o),document.addEventListener("mousemove",r),document.addEventListener("mouseup",l),v&&(t.addEventListener("scroll",x),setTimeout(()=>{x()},100),window.addEventListener("resize",x))),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",r),t.removeEventListener("touchend",l)),t.removeEventListener("mousedown",o),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",l),v&&(t.removeEventListener("scroll",x),window.removeEventListener("resize",x)))}},[v]),(0,r.jsxs)("div",{ref:a,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[v&&d&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),v&&c&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("div",{ref:i,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(n=t.dataList)||void 0===n?void 0:n.map((e,n)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n))})]})}},9408:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var i=n(3247),o=n(1422),r=n(3731),l=n(6086),a=n(9810),d=n(9950),s=n(5830),c=n(140);var u=n(5144),h=n(4905),p=n(4688),v=n(1348),x=n(8149),g=n(5551),m=n(1351),f=n(6157),w=n(4414);function C(t){var e;const[n]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(i.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:n,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:n,fontSize:1.5*c}})})]})})}var y=function(t){var e,n,a,y;const[j]=(0,s.QN)("whatmorePrimaryFont"),[b]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,A]=(0,d.useState)(!1),[N,F]=(0,d.useState)({state:"initial"}),[P,L]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(g.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,n){b||S||(async()=>{(0,c.tO)(t,e,n)})()}(0,d.useEffect)(()=>{!async function(){var t,e,n,i;const o=await(0,x.M)(R,(0,v.NCy)(_),_);L({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(n=o.variants)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.price})}()},[]);const Q=null!==(n=t.width)&&void 0!==n?n:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return P.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{A(!0),V(D,R,1),(0,m.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout(()=>{B()},2e3)},children:"initial"===N.state?(0,w.jsx)(i.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:R,baseFontSize:W,cartState:N,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[714],{22:function(e,t,r){r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),s=r(5830),l=r(932);var d=function(e){const[t,r,o,n,i]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[p]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=i[a.dl]===a.nN?p/100:d/100*1.2;return[t*c,r*c,i]},p=r(1628),c=r.n(p),h=r(6702),x=(r(9733),r(4365),r(1348)),u=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,u.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,u.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,u.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,u.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,u.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,u.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,u.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[l,p,g]=d();(0,s.Xd)("whatmoreUITheme");const[v]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[k]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),N=(0,s.Xd)("isWhatmorePreviewMode");var C=b,z=y,P=j;g[a.dl]===a.nN&&(C=k,z=S,P=L);const[A,R]=(0,n.useState)(["initial",window.pageYOffset]),[M,Q]=(0,n.useState)(!1),I=null!==(t=e.isSpotlight)&&void 0!==t&&t,F=g[a.dl]===a.nN?.8*(0,x.O86)(E):1.2*(0,x.O86)(E),T=I?F:1.2;l*=T,p*=T;const B=I?(0,x.LrK)(E):C,_=I?(0,x._2D)(E):(0,x.GSq)(E),[W,D]=(0,n.useState)(!I&&(0,x.n8Q)(E));function V(e,t){R(e),e[1]<=100?Q(!1):t!=M&&(Q(t),D(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(V([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:r,handler:()=>{V(["scrolled-up",A[1]],!0)}});const X=e.event,Y=e.inVideoClick,H=e.closeClick,G=.25*p,O=.5*p,U=.6*p,$="20px",q=(0,x.GvQ)(E);var Z=!1,K=0,J=0;function ee(e){Z=e}return(0,u.jsx)("div",{className:"wht-popup",children:W&&!_?(0,u.jsx)(u.Fragment,{}):M&&_?(0,u.jsx)("div",{style:"left"===B?{left:"16px",bottom:I?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q}:{right:"16px",bottom:I?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{onClick:()=>{V(["initial",A[1]],!1)},style:{width:U+"px",height:U*(16/9)+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===B?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,u.jsx)(i.A,{url:X.thumbnail_image,isPlaying:!1,event:X})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,u.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),H()},children:(0,u.jsx)(m,{size:.8*G})})}),(0,u.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(h.A,{sx:{color:"white",fontSize:2*G+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,u.jsx)(c(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,K=r,J=o},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{Z&&(Math.abs(t.x-K)>5||Math.abs(t.y-J)>5)?ee(!1):Y(X)},children:(0,u.jsx)("div",{ref:r,style:"left"===B?{left:I?(0,x.D2A)(E)+"px":z+"px",bottom:I?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q}:{right:I?(0,x.D2A)(E)+"px":z+"px",bottom:I?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":p+"px",height:e.isSpotlight&&"60122562760"==E?p+"px":l+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===B?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,u.jsx)(i.A,{url:X.thumbnail_image,isMuted:!0,isPlaying:!0,event:X})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,u.jsx)("div",{className:"close-btn",onClick:H,children:(0,u.jsx)(m,{size:G})})}),(0,u.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,u.jsx)(f,{size:O})}),(0,u.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:$,borderBottomRightRadius:$,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,u.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*G+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,n.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[p]=(0,o.QN)("whatmoreVideoTileSize"),[c]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>r,x="portrait"==t?c:p,u=!("portrait"!=t||!(s>=481)),m=x/100*1.3*.5,f=x/100;var g=Math.min(s,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var k={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],k[i._]=i.$S,k[i.dl]=i.nN}else if(u){var S=.8*w,L=.8*v;"portrait"==t?(S*=f,L*=f,[v,w,b,y]=[L,S,j(s/(1.2*S)),0],k[i._]=i.vF,k[i.dl]=i.tn):([v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.vF,k[i.dl]=i.nN)}else{S=w,L=v;"portrait"==t?(S=S*f*.9,L=L*f*.9,[v,w,b,y]=[L,S,j(s/(1.15*S)),0],k[i._]=i.b4,k[i.dl]=i.tn):(S=.7*w,L=.7*v,[v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.b4,k[i.dl]=i.nN)}return[v,w,b,y,k]}},2410:function(e,t,r){var o=r(9950),n=r(1348),i=r(5830),a=(r(6125),r(4365),r(6614),r(9879)),s=(r(7509),r(932)),l=r(5551),d=r(4414);t.A=function(e){var t;const[r,p]=(0,s.A)(),[c]=(0,i.QN)("whatmoreSecondaryColor"),[h]=(0,i.QN)("whatmoreShopId"),x=(0,i.Xd)("whatmoreVideoTileSize"),u=(0,i.Xd)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?u:x,f=(0,i.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:g}=(0,o.useContext)(l.B),[v,w]=(0,o.useState)(!1),b=(0,n.ivI)(h),y=g.landingLocationType,j=e.event,k=e.onClick,S=e.removeBorders,L=r*m*.01,E=p*m*.01,N=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,n._hU)(h)?"auto":E+"px",marginLeft:S?"2px":"5px",marginRight:S?"2px":(0,n.FZM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{w(!0),k(j)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:N,overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+c+"50, 0px -1px 1px 0px "+b+"50, 1px 0px 1px 0px "+c+"50, -1px 0px 1px 0px "+b+"80, 1px -1px 1px 0px "+c+"80, -1px 1px 1px 0px "+b+"DA, 1px 1px 1px 0px "+c+"DA, -1px -1px 1px 0px "+b+"DA"},children:(0,d.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:L+"px",width:"40273707171"==h?"auto":E+"px",borderRadius:N,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.A,{height:"100%",width:"100%",url:j.thumbnail_image,isPlaying:!0,event:j})})}),y.startsWith("product")&&(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,d.jsx)("p",{ref:t=>{var r;t&&(t.style.setProperty("font-family",f,"important"),t.style.setProperty("font-size",(null!==(r=e.fontSize)&&void 0!==r?r:10)+"px","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:null===j||void 0===j?void 0:j.title})})]})}},3997:function(){},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return s}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function s(e){var t,r;const o=(0,n.useRef)(null),[s,l]=(0,n.useState)(!1),[d,p]=(0,n.useState)(!1),c="90518552861"===e.shopId,h=()=>{const e=o.current;if(!e)return;const t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;l(t>10);p(!(t+n>=r-10)&&r>n)};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),c&&(e.addEventListener("scroll",h),setTimeout(()=>{h()},100),window.addEventListener("resize",h))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),c&&(e.removeEventListener("scroll",h),window.removeEventListener("resize",h)))}},[c]),(0,i.jsxs)("div",{style:{position:"relative",width:"100%"},className:"whatmore-carousel-navigation-wrapper",children:[c&&s&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c&&d&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},9130:function(){},9733:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[714],{22:function(e,t,r){r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),s=r(5830),l=r(932);var d=function(e){const[t,r,o,n,i]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[p]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=i[a.dl]===a.nN?p/100:d/100*1.2;return[t*c,r*c,i]},p=r(1628),c=r.n(p),h=r(6702),x=(r(9733),r(4365),r(1348)),u=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,u.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,u.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,u.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,u.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,u.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,u.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,u.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[l,p,g]=d();(0,s.Xd)("whatmoreUITheme");const[v]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[k]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),N=(0,s.Xd)("isWhatmorePreviewMode");var C=b,z=y,P=j;g[a.dl]===a.nN&&(C=k,z=S,P=L);const[A,R]=(0,n.useState)(["initial",window.pageYOffset]),[M,Q]=(0,n.useState)(!1),B=null!==(t=e.isSpotlight)&&void 0!==t&&t,I=g[a.dl]===a.nN?.8*(0,x.O86)(E):1.2*(0,x.O86)(E),F=B?I:1.2;l*=F,p*=F;const T=B?(0,x.LrK)(E):C,_=B?(0,x._2D)(E):(0,x.GSq)(E),[W,D]=(0,n.useState)(!B&&(0,x.n8Q)(E));function V(e,t){R(e),e[1]<=100?Q(!1):t!=M&&(Q(t),D(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(V([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:r,handler:()=>{V(["scrolled-up",A[1]],!0)}});const X=e.event,Y=e.inVideoClick,H=e.closeClick,G=.25*p,O=.5*p,U=.6*p,$="20px",q=(0,x.GvQ)(E);var Z=!1,K=0,J=0;function ee(e){Z=e}return(0,u.jsx)("div",{className:"wht-popup",children:W&&!_?(0,u.jsx)(u.Fragment,{}):M&&_?(0,u.jsx)("div",{style:"left"===T?{left:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q}:{right:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{onClick:()=>{V(["initial",A[1]],!1)},style:{width:U+"px",height:U*(16/9)+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===T?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,u.jsx)(i.A,{url:X.thumbnail_image,isPlaying:!1,event:X})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,u.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),H()},children:(0,u.jsx)(m,{size:.8*G})})}),(0,u.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(h.A,{sx:{color:"white",fontSize:2*G+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,u.jsx)(c(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,K=r,J=o},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{Z&&(Math.abs(t.x-K)>5||Math.abs(t.y-J)>5)?ee(!1):Y(X)},children:(0,u.jsx)("div",{ref:r,style:"left"===T?{left:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q}:{right:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":p+"px",height:e.isSpotlight&&"60122562760"==E?p+"px":l+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===T?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,u.jsx)(i.A,{url:X.thumbnail_image,isMuted:!0,isPlaying:!0,event:X})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,u.jsx)("div",{className:"close-btn",onClick:H,children:(0,u.jsx)(m,{size:G})})}),(0,u.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,u.jsx)(f,{size:O})}),(0,u.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:$,borderBottomRightRadius:$,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,u.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*G+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,n.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[p]=(0,o.QN)("whatmoreVideoTileSize"),[c]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>r,x="portrait"==t?c:p,u=!("portrait"!=t||!(s>=481)),m=x/100*1.3*.5,f=x/100;var g=Math.min(s,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var k={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],k[i._]=i.$S,k[i.dl]=i.nN}else if(u){var S=.8*w,L=.8*v;"portrait"==t?(S*=f,L*=f,[v,w,b,y]=[L,S,j(s/(1.2*S)),0],k[i._]=i.vF,k[i.dl]=i.tn):([v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.vF,k[i.dl]=i.nN)}else{S=w,L=v;"portrait"==t?(S=S*f*.9,L=L*f*.9,[v,w,b,y]=[L,S,j(s/(1.15*S)),0],k[i._]=i.b4,k[i.dl]=i.tn):(S=.7*w,L=.7*v,[v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.b4,k[i.dl]=i.nN)}return[v,w,b,y,k]}},2410:function(e,t,r){var o=r(9950),n=r(1348),i=r(5830),a=(r(6125),r(4365),r(6614),r(9879)),s=(r(7509),r(932)),l=r(5551),d=r(4414);t.A=function(e){var t;const[r,p]=(0,s.A)(),[c]=(0,i.QN)("whatmoreSecondaryColor"),[h]=(0,i.QN)("whatmoreShopId"),x=(0,i.Xd)("whatmoreVideoTileSize"),u=(0,i.Xd)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?u:x,f=(0,i.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:g}=(0,o.useContext)(l.B),[v,w]=(0,o.useState)(!1),b=(0,n.ivI)(h),y=g.landingLocationType,j=e.event,k=e.onClick,S=e.removeBorders,L=r*m*.01,E=p*m*.01,N=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,n._hU)(h)?"auto":E+"px",marginLeft:S?"2px":"5px",marginRight:S?"2px":(0,n.FZM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{w(!0),k(j)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:N,overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+c+"50, 0px -1px 1px 0px "+b+"50, 1px 0px 1px 0px "+c+"50, -1px 0px 1px 0px "+b+"80, 1px -1px 1px 0px "+c+"80, -1px 1px 1px 0px "+b+"DA, 1px 1px 1px 0px "+c+"DA, -1px -1px 1px 0px "+b+"DA"},children:(0,d.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:L+"px",width:"40273707171"==h?"auto":E+"px",borderRadius:N,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.A,{height:"100%",width:"100%",url:j.thumbnail_image,isPlaying:!0,event:j})})}),y.startsWith("product")&&(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,d.jsx)("p",{ref:t=>{var r;t&&(t.style.setProperty("font-family",f,"important"),t.style.setProperty("font-size",(null!==(r=e.fontSize)&&void 0!==r?r:10)+"px","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:null===j||void 0===j?void 0:j.title})})]})}},3997:function(){},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return s}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function s(e){var t,r;const o=(0,n.useRef)(null),s=(0,n.useRef)(null),[l,d]=(0,n.useState)(!1),[p,c]=(0,n.useState)(!1),[h,x]=(0,n.useState)({top:"50%",left:"5px",right:"5px"}),u="58669793418"===e.shopId,m=()=>{const e=o.current,t=s.current;if(!e||!t)return;const r=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;d(r>10);c(!(r+i>=n-10)&&n>i);t.getBoundingClientRect(),e.getBoundingClientRect();x({top:"50%",left:"5px",right:"5px"})};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),u&&(e.addEventListener("scroll",m),setTimeout(()=>{m()},100),window.addEventListener("resize",m))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),u&&(e.removeEventListener("scroll",m),window.removeEventListener("resize",m)))}},[u]),(0,i.jsxs)("div",{ref:s,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[u&&l&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),u&&p&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},9130:function(){},9733:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[1],{22:function(e,t,r){r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),s=r(5830),l=r(932);var d=function(e){const[t,r,o,n,i]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=i[a.dl]===a.nN?c/100:d/100*1.2;return[t*p,r*p,i]},c=r(1628),p=r.n(c),h=r(6702),u=(r(9733),r(4365),r(1348)),x=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,x.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,x.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,x.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,x.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,x.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,x.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,x.jsxs)("defs",{children:[(0,x.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,x.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,x.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,x.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,x.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,x.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,x.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,x.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,x.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[l,c,g]=d();(0,s.Xd)("whatmoreUITheme");const[v]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[k]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[C]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),L=(0,s.Xd)("isWhatmorePreviewMode");var A=b,z=y,N=j;g[a.dl]===a.nN&&(A=S,z=k,N=C);const[P,M]=(0,n.useState)(["initial",window.pageYOffset]),[R,I]=(0,n.useState)(!1),F=null!==(t=e.isSpotlight)&&void 0!==t&&t,T=g[a.dl]===a.nN?.8*(0,u.O86)(E):1.2*(0,u.O86)(E),B=F?T:1.2;l*=B,c*=B;const Q=F?(0,u.LrK)(E):A,X=F?(0,u._2D)(E):(0,u.GSq)(E),[V,W]=(0,n.useState)(!F&&(0,u.n8Q)(E));function _(e,t){M(e),e[1]<=100?I(!1):t!=R&&(I(t),W(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(_([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[P]),(0,o.j)({ref:r,handler:()=>{_(["scrolled-up",P[1]],!0)}});const D=e.event,H=e.inVideoClick,Y=e.closeClick,O=.25*c,G=.5*c,q=.6*c,U="20px",$=(0,u.GvQ)(E);var Z=!1,K=0,J=0;function ee(e){Z=e}return(0,x.jsx)("div",{className:"wht-popup",children:V&&!X?(0,x.jsx)(x.Fragment,{}):R&&X?(0,x.jsx)("div",{style:"left"===Q?{left:"16px",bottom:F?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$}:{right:"16px",bottom:F?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$},children:(0,x.jsxs)("div",{onClick:()=>{_(["initial",P[1]],!1)},style:{width:q+"px",height:q*(16/9)+"px",borderRadius:U,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===Q?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,x.jsx)("div",{style:{overflow:"hidden",borderRadius:U,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,x.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,x.jsx)(i.A,{url:D.thumbnail_image,isPlaying:!1,event:D})})}),(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,x.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,x.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),Y()},children:(0,x.jsx)(m,{size:.8*O})})}),(0,x.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,x.jsx)(h.A,{sx:{color:"white",fontSize:2*O+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,x.jsx)(p(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:L?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,K=r,J=o},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{Z&&(Math.abs(t.x-K)>5||Math.abs(t.y-J)>5)?ee(!1):H(D)},children:(0,x.jsx)("div",{ref:r,style:"left"===Q?{left:F?(0,u.D2A)(E)+"px":z+"px",bottom:F?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$}:{right:F?(0,u.D2A)(E)+"px":z+"px",bottom:F?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$},children:(0,x.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":c+"px",height:e.isSpotlight&&"60122562760"==E?c+"px":l+"px",borderRadius:U,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===Q?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,x.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:U,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,x.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,x.jsx)(i.A,{url:D.thumbnail_image,isMuted:!0,isPlaying:!0,event:D})})}),(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,x.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,x.jsx)("div",{className:"close-btn",onClick:Y,children:(0,x.jsx)(m,{size:O})})}),(0,x.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,x.jsx)(f,{size:G})}),(0,x.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:U,borderBottomRightRadius:U,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,x.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*O+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,n.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>r,u="portrait"==t?p:c,x=!("portrait"!=t||!(s>=481)),m=u/100*1.3*.5,f=u/100;var g=Math.min(s,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var S={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],S[i._]=i.$S,S[i.dl]=i.nN}else if(x){var k=.8*w,C=.8*v;"portrait"==t?(k*=f,C*=f,[v,w,b,y]=[C,k,j(s/(1.2*k)),0],S[i._]=i.vF,S[i.dl]=i.tn):([v,w,b,y]=[C,k,(s-2*l)/(1.1*k),l],S[i._]=i.vF,S[i.dl]=i.nN)}else{k=w,C=v;"portrait"==t?(k=k*f*.9,C=C*f*.9,[v,w,b,y]=[C,k,j(s/(1.15*k)),0],S[i._]=i.b4,S[i.dl]=i.tn):(k=.7*w,C=.7*v,[v,w,b,y]=[C,k,(s-2*l)/(1.1*k),l],S[i._]=i.b4,S[i.dl]=i.nN)}return[v,w,b,y,S]}},3997:function(){},4596:function(e,t,r){r.r(t),r.d(t,{default:function(){return k}});var o=r(9950),n=r(340),i=r(5089),a=r(5873),s=(r(3997),r(9130),r(4669),r(9733),r(4365),r(7229),r(6042),r(572)),l=r(8603),d=r(1941),c=r(5830),p=r(7509),h=r(5551),u=r(1348),x=(r(6125),r(6614),r(9879)),m=r(932),f=r(8538),g=r(4414);var v=function(e){var t,r;const[n,i,a,s,l]=(0,m.A)(),d=(0,c.Xd)("whatmoreSecondaryColor"),p=(0,c.Xd)("whatmorePrimaryFont"),h=(0,c.Xd)("whatmoreShopId"),v=(0,c.Xd)("whatmoreVideoTileSize"),w=(0,c.Xd)("whatmoreVideoTileSizePortrait"),b="portrait"===e.mode?w:v,[y,j]=(0,o.useState)(!1),S=(0,u.ivI)(h),k=e.event,C=e.onClick,E=e.removeBorders,L=i*b*.01,A=(0,u.esc)(h);let z=null!==(t=(0,u.qAx)(h))&&void 0!==t?t:[d,S,d,S,d];return Array.isArray(z)||(z=Array(5).fill(z)),(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:E?"2px":(0,u.FZM)(h)+"px",marginTop:E?"2px":"5px",marginBottom:E?"2px":"5px",cursor:"pointer"},onClick:()=>{j(!0),C(k)},className:[y?"whatmore-scale-on-tap":""].join(" "),children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:"50%",overflow:"hidden",boxShadow:E?"":"0px 1px 1px 0px "+z[0]+"50, 0px -1px 1px 0px "+z[1]+"50, 1px 0px 1px 0px "+z[2]+"50, -1px 0px 1px 0px "+z[3]+"80, 1px -1px 1px 0px "+z[4]+"80, -1px 1px 1px 0px "+z[0]+"DA, 1px 1px 1px 0px "+z[1]+"DA, -1px -1px 1px 0px "+z[2]+"DA"},children:(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:L*A+"px",width:L*A+"px",borderRadius:"50%",backgroundColor:d,overflow:"hidden",border:"3px solid white"},children:(0,g.jsx)(x.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:!0,event:k})})})}),(0,g.jsx)("div",{className:"wht-car-vid-title",style:{display:"flex",justifyContent:"center",width:L*A+"px",fontFamily:p,paddingTop:"10px",fontSize:null!==(r=e.fontSize)&&void 0!==r?r:10},children:(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,f.v)(k.title)})})]})},w=r(8385),b=r(6641),y=r(851),j=r(6649);const S=(0,l.A)({key:"whatmore-css-cv"});var k=function(e){const[t]=(0,d.A)(),[r,l]=(0,m.A)(),x=(0,c.Xd)("whatmoreVideoTileSize"),f=(0,c.Xd)("whatmoreVideoTileSizePortrait"),k="portrait"===t?f:x,C="portrait"==t?0:(0,c.Xd)("whatmoreLandscapePadding"),E=(0,c.Xd)("whatmoreCollectionsTilesSpacing"),L=(0,c.Xd)("whatmoreShopId"),{whatmoreRootId:A}=(0,o.useContext)(h.B),z=e.events,N=e.onClick,{whatmoreIsCollectionsTemplate:P,whatmoreIsPreviewMode:M}=(0,o.useContext)(h.B);function R(e){N(e)}const[I,F,T]=(0,j.A)({triggerOnce:!1});delete i.Ay.styles.global;const B=.055*l;var Q=[];for(let o=0;o<z.length;)Q.push((0,g.jsx)(v,{mode:t,event:z[o],onClick:()=>{R(z[o-1])},removeBorders:(0,u.U74)(L),fontSize:.8*B},"collections-tile-"+o)),o+=1;return(0,o.useEffect)(()=>{(0,b.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{a.Sn.forEach(e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]');if(!r)return;r&&e&&(e.style.minHeight="0px")})},[]),"8111554613"!=L||"landscape"!=t||M?(0,g.jsx)(s.C,{value:S,children:(0,g.jsx)("div",{className:P?"whatmore-collection-events":"whatmore-carousel-events",children:(0,g.jsx)(n.s,{theme:i.Ay,cssVarsRoot:A,resetCSS:!1,children:(0,g.jsxs)(p.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,g.jsx)("div",{ref:I,style:{marginLeft:C+"px",marginRight:C+"px"},children:(0,g.jsx)(w.c,{renderElement:e=>(0,g.jsx)(g.Fragment,{children:e.eventData}),dataList:Q,spacing:E,defaultHeight:r*k*.01+"px",defaultWidth:l*k*.01+"px",retainAlreadyRenderedElements:!0})}),(0,u.wQ2)(L)&&!F&&-1==e.index&&(0,g.jsx)(y.A,{event:z[0],inVideoClick:R,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})}):(0,g.jsx)(g.Fragment,{})}},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return s}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function s(e){var t,r;const o=(0,n.useRef)(null),[s,l]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),p="90518552861"===e.shopId,h=()=>{const e=o.current;if(!e)return;const t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;l(t>10);c(!(t+n>=r-10)&&r>n)};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),p&&(e.addEventListener("scroll",h),setTimeout(()=>{h()},100),window.addEventListener("resize",h))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),p&&(e.removeEventListener("scroll",h),window.removeEventListener("resize",h)))}},[p]),(0,i.jsxs)("div",{style:{position:"relative",width:"100%"},className:"whatmore-carousel-navigation-wrapper",children:[p&&s&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),p&&d&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",zIndex:1e3,width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.3)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},8538:function(e,t,r){r.d(t,{v:function(){return n}});var o=r(5830);function n(e,t){const r=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof e||"undefined"==e||null==e?"":"6873415750"==r||"72442478904"==r||"58562281529"==r?e:"66168324332"==r&&"prod-tile"!=t?null===e||void 0===e||null===(n=e.split("- "))||void 0===n?void 0:n[0]:e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()});var n}},9130:function(){},9733:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[1],{22:function(e,t,r){r.d(t,{$S:function(){return l},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return s},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),l=r(5830),s=r(932);var d=function(e){const[t,r,o,n,i]=(0,s.A)(),[d]=(0,l.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=i[a.dl]===a.nN?c/100:d/100*1.2;return[t*p,r*p,i]},c=r(1628),p=r.n(c),h=r(6702),u=(r(9733),r(4365),r(1348)),x=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,x.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,x.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,x.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,x.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,x.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,x.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,x.jsxs)("defs",{children:[(0,x.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,x.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,x.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,x.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,x.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,x.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,x.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,x.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,x.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[s,c,g]=d();(0,l.Xd)("whatmoreUITheme");const[v]=(0,l.QN)("whatmorePrimaryFont"),[w]=(0,l.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,l.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,l.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,l.QN)("whatmoreEmbedAppPositionLandscape"),[k]=(0,l.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[C]=(0,l.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,l.Xd)("whatmoreShopId"),L=(0,l.Xd)("isWhatmorePreviewMode");var A=b,z=y,N=j;g[a.dl]===a.nN&&(A=S,z=k,N=C);const[P,R]=(0,n.useState)(["initial",window.pageYOffset]),[M,I]=(0,n.useState)(!1),B=null!==(t=e.isSpotlight)&&void 0!==t&&t,F=g[a.dl]===a.nN?.8*(0,u.O86)(E):1.2*(0,u.O86)(E),T=B?F:1.2;s*=T,c*=T;const Q=B?(0,u.LrK)(E):A,X=B?(0,u._2D)(E):(0,u.GSq)(E),[V,W]=(0,n.useState)(!B&&(0,u.n8Q)(E));function _(e,t){R(e),e[1]<=100?I(!1):t!=M&&(I(t),W(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(_([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[P]),(0,o.j)({ref:r,handler:()=>{_(["scrolled-up",P[1]],!0)}});const D=e.event,H=e.inVideoClick,Y=e.closeClick,O=.25*c,G=.5*c,q=.6*c,U="20px",$=(0,u.GvQ)(E);var Z=!1,K=0,J=0;function ee(e){Z=e}return(0,x.jsx)("div",{className:"wht-popup",children:V&&!X?(0,x.jsx)(x.Fragment,{}):M&&X?(0,x.jsx)("div",{style:"left"===Q?{left:"16px",bottom:B?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$}:{right:"16px",bottom:B?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$},children:(0,x.jsxs)("div",{onClick:()=>{_(["initial",P[1]],!1)},style:{width:q+"px",height:q*(16/9)+"px",borderRadius:U,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===Q?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,x.jsx)("div",{style:{overflow:"hidden",borderRadius:U,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,x.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,x.jsx)(i.A,{url:D.thumbnail_image,isPlaying:!1,event:D})})}),(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,x.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,x.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),Y()},children:(0,x.jsx)(m,{size:.8*O})})}),(0,x.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,x.jsx)(h.A,{sx:{color:"white",fontSize:2*O+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,x.jsx)(p(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:L?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,K=r,J=o},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{Z&&(Math.abs(t.x-K)>5||Math.abs(t.y-J)>5)?ee(!1):H(D)},children:(0,x.jsx)("div",{ref:r,style:"left"===Q?{left:B?(0,u.D2A)(E)+"px":z+"px",bottom:B?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$}:{right:B?(0,u.D2A)(E)+"px":z+"px",bottom:B?(0,u.pUQ)(E)+"px":N+"px",position:"fixed",zIndex:$},children:(0,x.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?s+"px":c+"px",height:e.isSpotlight&&"60122562760"==E?c+"px":s+"px",borderRadius:U,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===Q?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,x.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:U,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,x.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,x.jsx)(i.A,{url:D.thumbnail_image,isMuted:!0,isPlaying:!0,event:D})})}),(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,x.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,x.jsx)("div",{className:"close-btn",onClick:Y,children:(0,x.jsx)(m,{size:O})})}),(0,x.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,x.jsx)(f,{size:G})}),(0,x.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:U,borderBottomRightRadius:U,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,x.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*O+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,l]=(0,n.A)(),[s]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[p]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=l>r,u="portrait"==t?p:c,x=!("portrait"!=t||!(l>=481)),m=u/100*1.3*.5,f=u/100;var g=Math.min(l,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var S={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(l-2*s-2*(0,a.$du)(d))/(1.1*e),s],S[i._]=i.$S,S[i.dl]=i.nN}else if(x){var k=.8*w,C=.8*v;"portrait"==t?(k*=f,C*=f,[v,w,b,y]=[C,k,j(l/(1.2*k)),0],S[i._]=i.vF,S[i.dl]=i.tn):([v,w,b,y]=[C,k,(l-2*s)/(1.1*k),s],S[i._]=i.vF,S[i.dl]=i.nN)}else{k=w,C=v;"portrait"==t?(k=k*f*.9,C=C*f*.9,[v,w,b,y]=[C,k,j(l/(1.15*k)),0],S[i._]=i.b4,S[i.dl]=i.tn):(k=.7*w,C=.7*v,[v,w,b,y]=[C,k,(l-2*s)/(1.1*k),s],S[i._]=i.b4,S[i.dl]=i.nN)}return[v,w,b,y,S]}},3997:function(){},4596:function(e,t,r){r.r(t),r.d(t,{default:function(){return k}});var o=r(9950),n=r(340),i=r(5089),a=r(5873),l=(r(3997),r(9130),r(4669),r(9733),r(4365),r(7229),r(6042),r(572)),s=r(8603),d=r(1941),c=r(5830),p=r(7509),h=r(5551),u=r(1348),x=(r(6125),r(6614),r(9879)),m=r(932),f=r(8538),g=r(4414);var v=function(e){var t,r;const[n,i,a,l,s]=(0,m.A)(),d=(0,c.Xd)("whatmoreSecondaryColor"),p=(0,c.Xd)("whatmorePrimaryFont"),h=(0,c.Xd)("whatmoreShopId"),v=(0,c.Xd)("whatmoreVideoTileSize"),w=(0,c.Xd)("whatmoreVideoTileSizePortrait"),b="portrait"===e.mode?w:v,[y,j]=(0,o.useState)(!1),S=(0,u.ivI)(h),k=e.event,C=e.onClick,E=e.removeBorders,L=i*b*.01,A=(0,u.esc)(h);let z=null!==(t=(0,u.qAx)(h))&&void 0!==t?t:[d,S,d,S,d];return Array.isArray(z)||(z=Array(5).fill(z)),(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:E?"2px":(0,u.FZM)(h)+"px",marginTop:E?"2px":"5px",marginBottom:E?"2px":"5px",cursor:"pointer"},onClick:()=>{j(!0),C(k)},className:[y?"whatmore-scale-on-tap":""].join(" "),children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:"50%",overflow:"hidden",boxShadow:E?"":"0px 1px 1px 0px "+z[0]+"50, 0px -1px 1px 0px "+z[1]+"50, 1px 0px 1px 0px "+z[2]+"50, -1px 0px 1px 0px "+z[3]+"80, 1px -1px 1px 0px "+z[4]+"80, -1px 1px 1px 0px "+z[0]+"DA, 1px 1px 1px 0px "+z[1]+"DA, -1px -1px 1px 0px "+z[2]+"DA"},children:(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:L*A+"px",width:L*A+"px",borderRadius:"50%",backgroundColor:d,overflow:"hidden",border:"3px solid white"},children:(0,g.jsx)(x.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:!0,event:k})})})}),(0,g.jsx)("div",{className:"wht-car-vid-title",style:{display:"flex",justifyContent:"center",width:L*A+"px",fontFamily:p,paddingTop:"10px",fontSize:null!==(r=e.fontSize)&&void 0!==r?r:10},children:(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,f.v)(k.title)})})]})},w=r(8385),b=r(6641),y=r(851),j=r(6649);const S=(0,s.A)({key:"whatmore-css-cv"});var k=function(e){const[t]=(0,d.A)(),[r,s]=(0,m.A)(),x=(0,c.Xd)("whatmoreVideoTileSize"),f=(0,c.Xd)("whatmoreVideoTileSizePortrait"),k="portrait"===t?f:x,C="portrait"==t?0:(0,c.Xd)("whatmoreLandscapePadding"),E=(0,c.Xd)("whatmoreCollectionsTilesSpacing"),L=(0,c.Xd)("whatmoreShopId"),{whatmoreRootId:A}=(0,o.useContext)(h.B),z=e.events,N=e.onClick,{whatmoreIsCollectionsTemplate:P,whatmoreIsPreviewMode:R}=(0,o.useContext)(h.B);function M(e){N(e)}const[I,B,F]=(0,j.A)({triggerOnce:!1});delete i.Ay.styles.global;const T=.055*s;var Q=[];for(let o=0;o<z.length;)Q.push((0,g.jsx)(v,{mode:t,event:z[o],onClick:()=>{M(z[o-1])},removeBorders:(0,u.U74)(L),fontSize:.8*T},"collections-tile-"+o)),o+=1;return(0,o.useEffect)(()=>{(0,b.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{a.Sn.forEach(e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]');if(!r)return;r&&e&&(e.style.minHeight="0px")})},[]),"8111554613"!=L||"landscape"!=t||R?(0,g.jsx)(l.C,{value:S,children:(0,g.jsx)("div",{className:P?"whatmore-collection-events":"whatmore-carousel-events",children:(0,g.jsx)(n.s,{theme:i.Ay,cssVarsRoot:A,resetCSS:!1,children:(0,g.jsxs)(p.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,g.jsx)("div",{ref:I,style:{marginLeft:C+"px",marginRight:C+"px"},children:(0,g.jsx)(w.c,{renderElement:e=>(0,g.jsx)(g.Fragment,{children:e.eventData}),dataList:Q,spacing:E,defaultHeight:r*k*.01+"px",defaultWidth:s*k*.01+"px",retainAlreadyRenderedElements:!0})}),(0,u.wQ2)(L)&&!B&&-1==e.index&&(0,g.jsx)(y.A,{event:z[0],inVideoClick:M,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})}):(0,g.jsx)(g.Fragment,{})}},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return l}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function l(e){var t,r;const o=(0,n.useRef)(null),l=(0,n.useRef)(null),[s,d]=(0,n.useState)(!1),[c,p]=(0,n.useState)(!1),[h,u]=(0,n.useState)({top:"50%",left:"5px",right:"5px"}),x="58669793418"===e.shopId,m=()=>{const e=o.current,t=l.current;if(!e||!t)return;const r=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;d(r>10);p(!(r+i>=n-10)&&n>i);t.getBoundingClientRect(),e.getBoundingClientRect();u({top:"50%",left:"5px",right:"5px"})};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),x&&(e.addEventListener("scroll",m),setTimeout(()=>{m()},100),window.addEventListener("resize",m))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),x&&(e.removeEventListener("scroll",m),window.removeEventListener("resize",m)))}},[x]),(0,i.jsxs)("div",{ref:l,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[x&&s&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),x&&c&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"smooth",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},8538:function(e,t,r){r.d(t,{v:function(){return n}});var o=r(5830);function n(e,t){const r=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof e||"undefined"==e||null==e?"":"6873415750"==r||"72442478904"==r||"58562281529"==r?e:"66168324332"==r&&"prod-tile"!=t?null===e||void 0===e||null===(n=e.split("- "))||void 0===n?void 0:n[0]:e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()});var n}},9130:function(){},9733:function(){}}]);
|