whatmore-react-assets 1.0.1647 → 1.0.1649
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/{137.3f374049.chunk.js → 137.c204446d.chunk.js} +1 -1
- package/static/js/262.38dc5116.chunk.js +1 -0
- package/static/js/304.024ba064.chunk.js +280 -0
- package/static/js/340.7bf77729.chunk.js +2 -0
- package/static/js/437.4ec0efaf.chunk.js +1 -0
- package/static/js/438.0d78087f.chunk.js +2 -0
- package/static/js/{498.e82b91d7.chunk.js → 451.8b0f1d96.chunk.js} +2 -2
- package/static/js/571.93bc3a3d.chunk.js +1 -0
- package/static/js/59.d947034b.chunk.js +2 -0
- package/static/js/620.0989f175.chunk.js +1 -0
- package/static/js/{647.e656bdd7.chunk.js → 647.c3af639c.chunk.js} +2 -2
- package/static/js/691.151a2fc3.chunk.js +2 -0
- package/static/js/72.4f779c68.chunk.js +2 -0
- package/static/js/879.b4278841.chunk.js +1 -0
- package/static/js/{925.14e2015f.chunk.js → 925.b301cf3b.chunk.js} +1 -1
- package/static/js/946.f96cd49c.chunk.js +1 -0
- package/static/js/968.baa2c975.chunk.js +15 -0
- package/static/js/carousel-template-a.d504d9aa.chunk.js +1 -0
- package/static/js/carousel-template-b.3cba552a.chunk.js +1 -0
- package/static/js/carousel-template-f.cdc84dd6.chunk.js +1 -0
- package/static/js/carousel-template-feed.fd453a82.chunk.js +2 -0
- package/static/js/carousel-template-g.3f96b508.chunk.js +1 -0
- package/static/js/carousel-template-h.70efb640.chunk.js +1 -0
- package/static/js/{carousel-template-i.aa7f7ff6.chunk.js → carousel-template-i.edf5e918.chunk.js} +1 -1
- package/static/js/carousel-template-view-more.3af121be.chunk.js +41 -0
- package/static/js/event-click-product.c7d627cf.chunk.js +2 -0
- package/static/js/event-click-spotlight.93dcffbf.chunk.js +2 -0
- package/static/js/event-click.324cacb2.chunk.js +2 -0
- package/static/js/homepage-carousel-view.5b2f5d87.chunk.js +1 -0
- package/static/js/product-page-view.dff87f24.chunk.js +1 -0
- package/static/js/share-shimmer-loader.325ec052.chunk.js +1 -0
- package/static/js/{spotlight-view.6375015f.chunk.js → spotlight-view.89cd2e98.chunk.js} +1 -1
- package/static/js/stories-template-a.3c063429.chunk.js +1 -0
- package/static/js/whatmore-root.b841b4c6.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/131.90afb45a.chunk.js +0 -1
- package/static/js/262.5014b74a.chunk.js +0 -1
- package/static/js/304.e3530c2f.chunk.js +0 -280
- package/static/js/310.40b47755.chunk.js +0 -2
- package/static/js/375.2cd5e9d8.chunk.js +0 -1
- package/static/js/437.bb6da7be.chunk.js +0 -1
- package/static/js/438.edcc26ce.chunk.js +0 -2
- package/static/js/571.6d50c925.chunk.js +0 -1
- package/static/js/59.0b037ebd.chunk.js +0 -2
- package/static/js/620.f1fb0745.chunk.js +0 -1
- package/static/js/691.9956e71d.chunk.js +0 -2
- package/static/js/72.5b4a0a96.chunk.js +0 -2
- package/static/js/879.b16b58a2.chunk.js +0 -1
- package/static/js/946.7875c6c1.chunk.js +0 -1
- package/static/js/carousel-template-a.8ccd196e.chunk.js +0 -2
- package/static/js/carousel-template-b.fdc48abc.chunk.js +0 -2
- package/static/js/carousel-template-f.6a7c94dd.chunk.js +0 -1
- package/static/js/carousel-template-feed.7b41dc2f.chunk.js +0 -16
- package/static/js/carousel-template-g.a334d92c.chunk.js +0 -1
- package/static/js/carousel-template-h.ffd5d66b.chunk.js +0 -1
- package/static/js/carousel-template-view-more.1138eae5.chunk.js +0 -55
- package/static/js/event-click-product.006e7126.chunk.js +0 -2
- package/static/js/event-click-spotlight.0f108d8b.chunk.js +0 -2
- package/static/js/event-click.71a94c90.chunk.js +0 -2
- package/static/js/homepage-carousel-view.962a01c8.chunk.js +0 -1
- package/static/js/product-page-view.a33bf39c.chunk.js +0 -1
- package/static/js/share-shimmer-loader.f70b8c55.chunk.js +0 -1
- package/static/js/stories-template-a.9e364754.chunk.js +0 -1
- package/static/js/whatmore-root.3697befe.chunk.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[665],{22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return n},b4:function(){return r},dl:function(){return o},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const n="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var n=i(5830),o=i(1941),r=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,o.A)(),[a]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[p]=(0,n.QN)("whatmoreVideoTileSize"),[c]=(0,n.QN)("whatmoreVideoTileSizePortrait"),h=s>=1025,x="portrait"==e?c:p,y=!("portrait"!=e||!(s>=481)),f=x/100*1.3*.5,m=x/100;var u=Math.min(s,i),[g,w,v,C]=[.6*u*(16/9),.6*u,1.4,0];function j(t){return Math.round(10*t)/10}var b={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(h){const t=w*f,e=g*f;[g,w,v,C]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],b[r._]=r.$S,b[r.dl]=r.nN}else if(y){var P=.8*w,I=.8*g;"portrait"==e?(P*=m,I*=m,[g,w,v,C]=[I,P,j(s/(1.2*P)),0],b[r._]=r.vF,b[r.dl]=r.tn):([g,w,v,C]=[I,P,(s-2*a)/(1.1*P),a],b[r._]=r.vF,b[r.dl]=r.nN)}else{P=w,I=g;"portrait"==e?(P=P*m*.9,I=I*m*.9,[g,w,v,C]=[I,P,j(s/(1.15*P)),0],b[r._]=r.b4,b[r.dl]=r.tn):(P=.7*w,I=.7*g,[g,w,v,C]=[I,P,(s-2*a)/(1.1*P),a],b[r._]=r.b4,b[r.dl]=r.nN)}return[g,w,v,C,b]}},2835:function(t,e,i){var n=i(7891),o=i(8454),r=i(3781),l=i(5830),s=i(4414);e.A=function(t){var e;const i=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,p]=(0,l.QN)("productRatings"),c=(0,l.Xd)("whatmorePrimaryFont"),h=t.productId,x=t.fontSize,y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(h in d)||d[h].avgRating>5)return(0,s.jsx)(s.Fragment,{});const f=d[h].avgRating,m=d[h].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(f))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:x+"px"}},"star-icon"+e))),f-Math.floor(f)>.2?(0,s.jsx)(o.A,{sx:{color:a,fontSize:x+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map(((t,e)=>(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon-"+e))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==i?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*x+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",f,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*x+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+m+")"]})})]})})}},3590:function(t,e,i){var n=i(2375),o=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const c=(0,o.FVo)(i);return"template-icon"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(n.A,{sx:{color:(0,o.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4669:function(){},6042:function(){},7136:function(t,e,i){var n=i(9950),o=i(932),r=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,o.A)();(0,n.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7206:function(t,e,i){i.r(e),i.d(e,{default:function(){return V}});var n=i(9950),o=i(340),r=i(5089),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),p=i(9094),c=i(932),h=i(1941),x=i(5491),y=i.n(x),f=i(5830),m=i(7509),u=i(1348),g=i(5551),w=i(7136),v=i(9879),C=i(6649),j=i(3590),b=i(8538),P=i(7458),I=i(2835),k=i(6594),S=i(7973),F=i(8149),A=i(7740),_=i(4414);const M=n.lazy((()=>Promise.all([i.e(437),i.e(286),i.e(451),i.e(262),i.e(647),i.e(939)]).then(i.bind(i,9408))));var O=function(t){var e,i,o,r;const l=(0,f.QN)("whatmoreUITheme");var[s,a]=(0,c.A)();const[d]=(0,f.QN)("whatmorePrimaryFont"),[p]=(0,f.QN)("whatmoreSecondaryColorShade900"),[h]=(0,f.QN)("whatmoreShopId"),[x,y]=(0,n.useState)(0),[m,w]=(0,n.useState)(t.event),[v,C]=(0,n.useState)(),[j,O]=(0,n.useState)(!1),R=t.onClick,L=m.products.length,{whatmoreIsPreviewMode:N}=(0,n.useContext)(g.B);if(0==L)return(0,_.jsx)(_.Fragment,{});(0,n.useEffect)((()=>{(0,u.w4b)(h)&&(0,k.fu)(m,(0,u.NCy)(h),h).then((t=>{w(t),O(!0)}));(async()=>{var t;const e=await(0,F.M)(null===m||void 0===m||null===(t=m.products)||void 0===t?void 0:t[0],(0,u.NCy)(h),h);C(e),O(!0)})()}),[]);const T=N,z=.3*a,B=z+"px",E=z+"px",W=.05*a*(0,u.PpQ)(h)+"px",X=.07*a*(0,u.y3u)(h),U=X+"px",V=.05*a;return(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*a,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:R,children:[(0,_.jsx)("div",{style:{width:B,height:E,overflow:"hidden",backgroundColor:"28062416930"===h?void 0:p,borderRadius:"round"==l?"5px":"0px",borderWidth:"0px"==(0,u.YcK)(h)?"2px":(0,u.YcK)(h),borderColor:"28062416930"===h?"white":"white"===(0,u.Fwt)(h)?p:(0,u.Fwt)(h)},children:"28062416930"!==h&&(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,u.KZe)(h),"important")},src:(0,S.b)(m.products[x].thumbnail_image,"&width=400&height=400"),style:{width:B,height:B,borderRadius:"round"==l?"5px":"0px",backgroundColor:p},alt:"product img"})}),(0,_.jsx)("div",{style:{width:.7*a+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"28062416930"===h?"18px":"2px",borderRadius:"round"==l?"5px":"0px"},children:(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":"flex-start",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size","28062416930"===h?"80%":W,"important"),t.style.setProperty("line-height","28062416930"===h?"170%":"140%","important"),t.style.setProperty("font-family",d,"important"),"28062416930"===h?(t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("display","block","important")):(t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important")))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium"},children:(0,b.v)("56411783377"===h?m.products[x].title.split("|")[0].trim():m.products[x].title)})}),(0,_.jsxs)("div",{className:"wht-price-tb",style:{display:"flex",flexFlow:(0,u.vw2)(h)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":(0,u.vw2)(h)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,_.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,u.uoB)(h),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("line-height","28062416930"===h?"160%":"140%","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("font-weight","28062416930"===h?"bold":void 0,"important"))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,k.Sb)(parseFloat((0,A.U)()?(null===v||void 0===v?void 0:v.price)/100:null===m||void 0===m||null===(e=m.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),"",h,m.products[x].currency)]}),(0,P.P)(m.products[x].price,m.products[x].compare_price)&&j?(0,_.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color",(0,u.gld)(h),"important"),t.style.setProperty("font-size",.9*X+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,k.Sb)(parseFloat((0,A.U)()?(null===v||void 0===v?void 0:v.compare_at_price)/100:null===m||void 0===m||null===(o=m.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price),"",h,m.products[x].currency)]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)(I.A,{storeId:h,productId:m.products[x].client_product_id,productLink:m.products[x].product_link,fontSize:V}),"28062416930"===h&&(0,_.jsx)("button",{onClick:R,onMouseEnter:t=>t.target.style.backgroundColor="#555",onMouseLeave:t=>t.target.style.backgroundColor="black",style:{padding:"2px 5px 2px 5px",backgroundColor:"black",color:"#fff",border:"none",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textAlign:"center"},children:"Buy Now"})]})})]},x),(0,u.nP1)(h)||T&&"5141594210"==h?(0,_.jsx)(n.Suspense,{children:(0,_.jsx)(M,{baseFontSize:.05*a,event:m,product:m.products[0],width:.9*a,height:"fit-content"})}):(0,_.jsx)(_.Fragment,{})]})},R=i(7802),L=i(8141);function N(t){const[e,i,n,o,r]=(0,c.A)(),l=(0,f.Xd)("whatmoreUITheme"),s=(0,f.Xd)("whatmoreShowViews"),a=(0,f.Xd)("whatmoreShopId"),d=t.PRODUCT_BOX_HEIGHT,p=t.PRODUCT_BOX_HEIGHT_IN_PX,h=t.PRODUCT_BOX_MARGIN,[x,y,m]=(0,C.A)({triggerOnce:!0}),g=t.event;t.isOnFocus;return(0,_.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,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{t.onClick(g)},children:["56411783377"===a&&(0,_.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,_.jsx)(L.A,{width:.15*i,height:.15*i})})}),"show"===s?(0,_.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,_.jsx)(j.A,{event:g,fontSize:.07*i+"px"})})}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{style:{display:"flex",width:"100%",height:e-d+"px"},onClick:()=>{t.onClick(g)}}),(0,R.Hl)(g,a)?(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"28062416930"===a?void 0:h+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:"28062416930"===a?"110%":.95*i,height:"28062416930"===a?"20%":p,marginLeft:h+"px",marginRight:h+"px",backgroundColor:"white",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,u.YcK)(a),borderColor:(0,u.Fwt)(a),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,_.jsx)("div",{ref:x,children:y&&(0,u.imx)(a)?(0,_.jsx)(O,{event:g,onClick:()=>{var e,i;(0,u.gq8)(a)?window.location.href=(i=null===(e=g.products)||void 0===e?void 0:e[0],(0,u.BLb)(a)?i.product_link+"?"+(0,u.VCz)(a)+"&"+(0,u.Spk)(a)+"&"+(0,u.$lz)(a):i.product_link):t.onClick(g)}}):(0,_.jsx)("div",{height:"20px"})})}):(0,_.jsx)(_.Fragment,{})]})})}var T=function(t){var e,i,o;const[r,l,s,a,d]=(0,c.A)();var p=(0,n.useContext)(m.h);const h=(0,f.Xd)("whatmoreUITheme"),x=(0,f.Xd)("whatmoreShopId"),y=(0,f.Xd)("whatmoreSecondaryColorShade600"),g=t.event,w=t.onClick,C=null===(e=t.isOnFocus)||void 0===e||e,j=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,b=null!==(o=t.animateOnFocus&&(0,u.n5O)(x))&&void 0!==o&&o,P=(0,u.nP1)(x)?.7:.8,I=r*P+"px",k=1-P,S=r*k,F=r*k+"px",A=r*k*.1,M=(0,u.VYo)(x),O="56411783377"==x?1:1.2;return(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",p.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",p.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:l+"px",height:r*O+"px",borderRadius:"round"==h?"5px":"0px",boxShadow:"28062416930"===x?void 0:"round"===h?M:null,borderWidth:(0,u.YcK)(x),borderColor:(0,u.Fwt)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:b?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{w(g)},children:[(0,_.jsx)(v.A,{height:I,width:"100%",url:g.thumbnail_image,isPlaying:C||j,event:g}),(0,u.Q$)(x)&&(0,R.Hl)(g,x)&&"56411783377"!==x?(0,_.jsx)("div",{style:{width:"100%",height:F,backgroundColor:y}}):(0,_.jsx)(_.Fragment,{})]}),(0,u.Q$)(x)&&(0,_.jsx)(N,{event:g,isOnFocus:C,PRODUCT_BOX_HEIGHT:S,PRODUCT_BOX_HEIGHT_IN_PX:F,PRODUCT_BOX_MARGIN:A,onClick:w})]})},z=i(6157),B=i(1351),E=i(6641);const W=(0,a.A)({key:"whatmore-css-hv"});function X(t){const[e,i,o]=(0,c.A)(),[r,l,s]=(0,h.A)(),a=(0,f.Xd)("whatmoreShopId"),p=t.events,x=t.onClick,y=o*(0,u.kcl)(a),m=(0,u.cbh)(a),[w,v]=(0,n.useState)(Math.min(p.length,m?p.length:y+5)),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{w<y+5&&v((t=>Math.min(t+5,p.length)))}),[y,5]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,_.jsx)(d.RC,{slidesPerView:p.length>1?"56411783377"==a?2:y:1,initialSlide:"25075712047"===a||"56411783377"==a?0:p.length>1?1:0,centeredSlides:"25075712047"!==a&&"56411783377"!=a,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,B.UM)({userInteractionType:z.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:C}),t.realIndex>t.previousIndex&&v((t=>Math.min(t+5,p.length)))},loop:(0,u.cbh)(a),children:p.map(((t,e)=>e<=w&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:i,isNext:n,isVisible:o})=>(0,_.jsx)(T,{isOnFocus:("56411783377"==a||e)&&o,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{x(t)}})},"whatmore-event-tile-portrait-"+t.index)))})})})}function U(t){const[e,i,o,r]=(0,c.A)(),[l,s]=(0,n.useState)(-1),a=(0,f.Xd)("whatmoreShopId"),h=t.onClick,x=t.events,m=(0,u.cbh)(a),[v,C]=(0,n.useState)(m?x.length:o),j=Math.min(o,x.length),{whatmoreWidgetSourceDetails:b}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{v<=o&&C((t=>t+o))}),[o]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,_.jsx)("div",{style:{width:i*j*1.1+"px"},children:(0,_.jsx)(d.RC,{slidesPerView:j,watchSlidesProgress:!0,modules:[p.Vx],navigation:!0,slidesPerGroup:parseInt(j),onSlideChange:t=>{(0,B.UM)({userInteractionType:z.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b}),t.realIndex>t.previousIndex&&C((t=>t+o))},spaceBetween:(0,u.If9)(a),loop:(0,u.cbh)(a),children:x.map(((t,e)=>{const i=y()((()=>s(e)),300);return e<=v&&(0,_.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},children:({isActive:i,isPrev:n,isNext:o,isVisible:r})=>r?(0,_.jsx)(T,{isOnFocus:e==l,playOnUnfocus:!(0,u.aO7)(a)||e==parseInt(j/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,_.jsx)(w.A,{})},"whatmore-event-tile-landscape-"+t.index)}))})})})}var V=function(t){const[e,i,a]=(0,h.A)(),[d]=(0,f.QN)("whatmorePrimaryColor"),[p]=(0,f.QN)("whatmoreShopId"),[c]=(0,f.QN)("whatmoreTitleFont"),x="portrait"==e?(0,f.Xd)("whatmoreTitleFontSizePortrait"):(0,f.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,n.useContext)(g.B),u=t.events,w=t.onClick,v=c,C=(0,f.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:j}=(0,n.useContext)(g.B);function b(t){w(t)}function P(t){const e=t.indexOf(" ",t.indexOf(" ")+1);return-1===e?[t,""]:[t.substring(0,e),t.substring(e)]}return(0,n.useEffect)((()=>{(0,E.Fk)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.Sn.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-b"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,_.jsx)(s.C,{value:W,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",children:(0,_.jsx)(o.s,{theme:r.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,_.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==p&&"2310668401"!==p&&"10648977444"!==p&&(t.heading.trim().length>0||j)?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==C?C:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"10588815418"==p||"2310668401"==p||"10648977444"==p?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,_.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:j?"W"!==C?C:"":P(t.heading)[0]}),(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family","Austin Text SemiBold Trial","important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==C?C:"":P(t.heading)[1]})]})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(U,{events:u,onClick:b}):(0,_.jsx)(X,{events:u,onClick:b})]})})})})}},7229:function(){},7458:function(t,e,i){i.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,i){i.d(e,{h:function(){return n}});const n=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8141:function(t,e,i){i(9950);var n=i(4414);e.A=({width:t=30,height:e=30})=>(0,n.jsxs)("svg",{width:t,height:e,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,n.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,n.jsx)("path",{d:"M16.942 9.3568C16.8684 9.32095 16.7862 9.30645 16.7048 9.31496C16.6234 9.32347 16.5461 9.35464 16.4815 9.40493L12.6621 12.375H10.1875C9.95544 12.375 9.73288 12.4672 9.56878 12.6313C9.40469 12.7954 9.3125 13.0179 9.3125 13.25V16.75C9.3125 16.9821 9.40469 17.2046 9.56878 17.3687C9.73288 17.5328 9.95544 17.625 10.1875 17.625H12.6621L16.4815 20.5951C16.5461 20.6453 16.6235 20.6764 16.705 20.6849C16.7864 20.6933 16.8686 20.6787 16.9421 20.6427C17.0157 20.6068 17.0777 20.5509 17.121 20.4815C17.1644 20.4121 17.1874 20.3319 17.1875 20.25V9.75C17.1875 9.66804 17.1645 9.58773 17.1211 9.51821C17.0777 9.44869 17.0156 9.39276 16.942 9.3568ZM16.3125 19.3553L13.081 16.8424C13.0044 16.7824 12.9098 16.7498 12.8125 16.75H10.1875V13.25H12.8125C12.9098 13.2502 13.0044 13.2176 13.081 13.1576L16.3125 10.6447V19.3553ZM21.872 16.003C21.9541 16.0851 22.0002 16.1964 22.0002 16.3125C22.0002 16.4286 21.9541 16.5399 21.872 16.622C21.7899 16.7041 21.6786 16.7502 21.5625 16.7502C21.4464 16.7502 21.3351 16.7041 21.253 16.622L20.25 15.6185L19.247 16.622C19.1649 16.7041 19.0536 16.7502 18.9375 16.7502C18.8214 16.7502 18.7101 16.7041 18.628 16.622C18.5459 16.5399 18.4998 16.4286 18.4998 16.3125C18.4998 16.1964 18.5459 16.0851 18.628 16.003L19.6315 15L18.628 13.997C18.5459 13.9149 18.4998 13.8036 18.4998 13.6875C18.4998 13.5714 18.5459 13.4601 18.628 13.378C18.7101 13.2959 18.8214 13.2498 18.9375 13.2498C19.0536 13.2498 19.1649 13.2959 19.247 13.378L20.25 14.3815L21.253 13.378C21.3351 13.2959 21.4464 13.2498 21.5625 13.2498C21.6786 13.2498 21.7899 13.2959 21.872 13.378C21.9541 13.4601 22.0002 13.5714 22.0002 13.6875C22.0002 13.8036 21.9541 13.9149 21.872 13.997L20.8685 15L21.872 16.003Z",fill:"#1A1A1A"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1_19",children:(0,n.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]})},9130:function(){},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[485,907],{22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return n},b4:function(){return r},dl:function(){return i},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const n="device_type",i="device_mode",r="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var n=o(5830),i=o(1941),r=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,i.A)(),[s]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[c]=(0,n.QN)("whatmoreVideoTileSize"),[p]=(0,n.QN)("whatmoreVideoTileSizePortrait"),u=a>=1025,h="portrait"==e?p:c,y=!("portrait"!=e||!(a>=481)),m=h/100*1.3*.5,f=h/100;var x=Math.min(a,o),[v,g,w,b]=[.6*x*(16/9),.6*x,1.4,0];function j(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(u){const t=g*m,e=v*m;[v,g,w,b]=[e,t,(a-2*s-2*(0,l.$du)(d))/(1.1*t),s],P[r._]=r.$S,P[r.dl]=r.nN}else if(y){var C=.8*g,S=.8*v;"portrait"==e?(C*=f,S*=f,[v,g,w,b]=[S,C,j(a/(1.2*C)),0],P[r._]=r.vF,P[r.dl]=r.tn):([v,g,w,b]=[S,C,(a-2*s)/(1.1*C),s],P[r._]=r.vF,P[r.dl]=r.nN)}else{C=g,S=v;"portrait"==e?(C=C*f*.9,S=S*f*.9,[v,g,w,b]=[S,C,j(a/(1.15*C)),0],P[r._]=r.b4,P[r.dl]=r.tn):(C=.7*g,S=.7*v,[v,g,w,b]=[S,C,(a-2*s)/(1.1*C),s],P[r._]=r.b4,P[r.dl]=r.nN)}return[v,g,w,b,P]}},2835:function(t,e,o){var n=o(7891),i=o(8454),r=o(3781),l=o(5830),a=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[s]=(0,l.QN)("whatmoreSecondaryColor"),[d,c]=(0,l.QN)("productRatings"),p=(0,l.Xd)("whatmorePrimaryFont"),u=t.productId,h=t.fontSize,y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,a.jsx)(a.Fragment,{});const m=d[u].avgRating,f=d[u].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map(((t,e)=>(0,a.jsx)(n.A,{sx:{color:s,fontSize:h+"px"}},"star-icon"+e))),m-Math.floor(m)>.2?(0,a.jsx)(i.A,{sx:{color:s,fontSize:h+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(r.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map(((t,e)=>(0,a.jsx)(r.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon-"+e))),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",m,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},3330:function(t,e,o){o.d(e,{initializeGA:function(){return u},sendVideoViewEventToGA:function(){return h}});var n,i=o(2595),r=o(7732),l=o(1348);const a="Whatmore Video Shopping",s=null!==(n="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==n&&n,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},c={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},p={homepage:"Home Page",product_page:"Product Page"};async function u(t){if((0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(r.Ay.initialize((0,l.xIo)(t)),s&&console.debug("Whatmore: initialized GA4")),(0,l.B6P)(t)&&null!==(0,l.jWS)(t)){const e=(0,l.Gc6)(t);i.Ay.initialize((0,l.jWS)(t),{useExistingGa:e}),s&&console.debug("Whatmore: initialized GA3")}}async function h(t,e,o){(0,l.B6P)(t)&&null!==(0,l.jWS)(t)&&(i.Ay.event({category:a,action:d.video_view,label:p[e]+":"+c[o]}),s&&console.debug("Whatmore: pushed view event to GA3")),(0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(r.Ay.event({category:a,action:d.video_view+":"+p[e]+":"+c[o],value:1,nonInteraction:!1}),s&&console.debug("Whatmore: pushed view event to GA4"))}},4063:function(t,e,o){var n=o(9950),i=o(3247),r=o(3731),l=o(5830),a=o(5144),s=o(4414);e.A=function(t){var e,o;const[d,c]=(0,n.useState)(!1),[p,u]=(0,n.useState)(!1),[h]=(0,l.QN)("whatmoreSecondaryColor"),[y]=(0,l.QN)("whatmoreSecondaryColorShade600"),[m]=(0,l.QN)("whatmoreSecondaryColorShade300"),[f]=(0,l.QN)("whatmorePrimaryFont"),x=t.onClick,v=t.icon,g=null!==(e=t.borderRadius)&&void 0!==e?e:"sm",w=null!==(o=t.baseFontSize)&&void 0!==o?o:12;return(0,s.jsxs)(i.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:g,backgroundColor:d?m:h,animation:p?a.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),u(!0),x()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,s.jsx)(r.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:f+" !important",color:"white !important"},children:"VIEW MORE"}),v]})}},4669:function(){},4826:function(){},6042:function(){},7136:function(t,e,o){var n=o(9950),i=o(932),r=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,n.useContext)(r.h);const s=(0,l.Xd)("whatmoreShopId");return t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"100%":e,overflow:"hidden"}})}},7229:function(){},7458:function(t,e,o){o.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return n}});const n=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9130:function(){},9418:function(t,e,o){o.r(e),o.d(e,{default:function(){return W}});var n=o(9950),i=(o(4826),o(340)),r=o(5873),l=o(5089),a=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),s=o(8603),d=o(932),c=o(1941),p=o(5491),u=o.n(p),h=o(5830),y=o(7509),m=o(7136),f=o(1348),x=o(5551),v=o(1351),g=o(6157),w=o(9879),b=o(8538),j=o(6594),P=o(22),C=o(6613),S=o(8149),M=o(7740),A=o(7035),N=o(6305),I=o(4833),k=o(4414);var _=function(t){var e,o,i,r,l,a,s,c,p,u,m,_,z,E,R,T,F,W;const[O,L,D,X,$]=(0,d.A)(),B=(0,h.Xd)("whatmoreShopId"),Q=(0,h.Xd)("whatmoreLandingLocationType"),V="portrait"===$[P.dl],Y=(V?1.076*L*(0,f.HWj)(B):L*(0,f.N_4)(B))+"px",H=(V?1.076*L*(0,f.HWj)(B):L*(0,f.N_4)(B))+"px",U=(V?.965*L*(0,f.HWj)(B):.859*L*(0,f.N_4)(B))+"px",[G,q]=(0,n.useState)(t.event),K=(0,h.Xd)("whatmoreSecondaryColor");var J=(0,n.useContext)(y.h);const Z=null===(e=t.isOnFocus)||void 0===e||e,tt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,et=t.onClick,ot=(0,h.Xd)("whatmoreUITheme"),nt=(0,h.Xd)("websiteLanguage"),it=null!==(i=t.animateOnFocus&&(0,f.n5O)(B))&&void 0!==i&&i,[rt,lt]=(0,n.useState)(!1),at=(0,h.Xd)("whatmorePrimaryFont"),st=null!==(r=null===(l=G.products)||void 0===l?void 0:l.find((t=>"active"==t.product_status)))&&void 0!==r?r:null===(a=G.products)||void 0===a?void 0:a[0],dt=Math.round(+(null===st||void 0===st?void 0:st.price)),ct=Math.round(+(null===st||void 0===st?void 0:st.compare_price)),pt=ct&&0!=ct&&ct>dt?Math.round((ct-dt)/ct*100):NaN,[ut,ht]=(0,n.useState)(pt),[yt,mt]=(0,n.useState)(),{whatmoreIsPreviewMode:ft,whatmoreWidgetSourceDetails:xt}=(0,n.useContext)(x.B),[vt,gt]=(0,n.useState)(!1),[wt,bt,jt,Pt,Ct,St]=(0,N.A)(0,st,G);(0,n.useEffect)((()=>{(0,f.w4b)(B)&&(0,j.fu)(G,(0,f.NCy)(B),B).then((t=>{var e,o,n;q(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&ht(null===t||void 0===t||null===(n=t.products[0])||void 0===n?void 0:n.discount),lt(!0)}));(async()=>{const t=await(0,S.M)(st,(0,f.NCy)(B),B);mt(t),lt(!0)})()}),[]);const Mt=t=>{t.stopPropagation();const e=xt.landingLocationType,o=xt.templateType,n=(0,I.Wd)(e)+(0,I.gf)(o)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);"init"==wt.state?(Ct(n),(0,v.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:xt,event:G,productList:[st],ctaList:G.cta})):"awaitingVariantSelection"==wt.state&&St(null,n)};return(0,k.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",J.tileTopMargin+"px"),t.style.setProperty("margin-bottom",J.tileBottomMMargin+"px"))},className:it&&!V?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:L},onClick:()=>{et(G)},onMouseEnter:()=>gt(!0),onMouseLeave:()=>gt(!1),children:[(0,k.jsxs)("div",{style:{borderRadius:"round"==ot?"5%":"0px",boxShadow:"round"==ot?"0px 0px 5px 0px #B0B0B0":null,height:O,borderWidth:(0,f.YcK)(B),borderColor:(0,f.Fwt)(B),overflow:"hidden",position:"relative"},children:[(0,k.jsx)(w.A,{height:(0,f.u06)(B)+" !important",width:"100%",url:G.thumbnail_image,isPlaying:Z||tt||(0,C.At)(),event:G}),"9238315068"===B&&(vt||V)&&(0,k.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:vt||V?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:vt||V?"translateY(0)":"translateY(100%)",opacity:vt||V?1:0},onClick:Mt,onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,k.jsx)("span",{style:{color:"white",fontSize:Y,fontFamily:at,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:"ADD TO CART"})})]}),(0,k.jsxs)("div",{className:"wht-prod-info",style:{display:(0,f.AmR)(B)?"flex":"none",flexDirection:"column",padding:"12px 4px",gap:"5px",alignItems:"flex-start",minHeight:"71256211737"===B?"110px":"auto",justifyContent:"71256211737"===B?"space-between":"flex-start"},children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f.m5c)(B),"important"),t.style.setProperty("font-size","45034766485"==B&&"product"==Q?"9px":Y),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",at,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,b.v)(null===st||void 0===st?void 0:st.title)}),rt&&(0,f.Nzx)(B)&&(0,k.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,f.vw2)(B)?"row":"row-reverse",justifyContent:(0,f.vw2)(B)?"flex-start":"flex-end",alignItems:"center"},children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f.m5c)(B),"important"),t.style.setProperty("font-size","45034766485"==B&&"product"==Q?"8px":H),t.style.setProperty("font-family",at,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,f.i6j)(B)?"normal":"bold"},children:(0,j.Sb)(parseFloat((0,M.U)()?(null!==(s=null===yt||void 0===yt||null===(c=yt.variants)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.price)&&void 0!==s?s:null===yt||void 0===yt?void 0:yt.price)/100:(null===st||void 0===st?void 0:st.price)>0?null===st||void 0===st?void 0:st.price:null===st||void 0===st?void 0:st.price_max)," ",B,null===(u=G.products[0])||void 0===u?void 0:u.currency)}),!isNaN(ct)&&ct>dt&&(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f.gld)(B),"important"),t.style.setProperty("font-size",H),t.style.setProperty("font-family",at,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,j.Sb)(parseFloat((0,M.U)()?(null!==(m=null===yt||void 0===yt||null===(_=yt.variants)||void 0===_||null===(z=_[0])||void 0===z?void 0:z.compare_at_price)&&void 0!==m?m:null===yt||void 0===yt?void 0:yt.compare_at_price)/100:null===st||void 0===st?void 0:st.compare_price)," ",B,null===(E=G.products[0])||void 0===E?void 0:E.currency)}),(0,f.Nzx)(B)&&!isNaN(ut)&&0!=ut&&rt&&"71256211737"===B&&(0,k.jsx)("div",{style:{display:(0,f.QNr)(B)?"flex":"none",backgroundColor:"green"===(0,f.ub$)(B)?"#343434"===K?(0,f.ub$)(B):K:(0,f.ub$)(B),alignItems:"center",borderRadius:(0,f.v8m)(B)+"px",width:"fit-content",padding:(0,f.Cf)(B)?"3px 6px":"0px"},children:(0,f.Cf)(B)?(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f.BRY)(B),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("font-family",at,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${ut}% ${null!==(R=null===A.m||void 0===A.m||null===(T=A.m[nt])||void 0===T?void 0:T.off)&&void 0!==R?R:"off"}`}):(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f._zx)(B),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("font-family",(0,f.ogW)(B),"important"))},children:(0,f.rsz)(B)})})]}),(0,f.Nzx)(B)&&!isNaN(ut)&&0!=ut&&rt&&"71256211737"!==B&&(0,k.jsx)("div",{style:{display:(0,f.QNr)(B)?"flex":"none",backgroundColor:"green"===(0,f.ub$)(B)?"#343434"===K?(0,f.ub$)(B):K:(0,f.ub$)(B),alignItems:"center",borderRadius:(0,f.v8m)(B)+"px",width:"fit-content",padding:(0,f.Cf)(B)?"3px 6px":"0px"},children:(0,f.Cf)(B)?(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f.BRY)(B),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("font-family",at,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${ut}% ${null!==(F=null===A.m||void 0===A.m||null===(W=A.m[nt])||void 0===W?void 0:W.off)&&void 0!==F?F:"off"}`}):(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,f._zx)(B),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("font-family",(0,f.ogW)(B),"important"))},children:(0,f.rsz)(B)})}),"71256211737"===B&&(0,k.jsx)("button",{style:{backgroundColor:K,color:"white",border:"none",borderRadius:"4px",padding:"8px 16px",fontSize:Y,fontFamily:at,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:V?"90%":"70%",marginTop:"auto",alignSelf:"flex-start"},onClick:Mt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:"ADD TO CART"})]})]})},z=o(6641),E=o(4063);const R=(0,s.A)({key:"whatmore-css-hv"});function T(t){const[e,o,i]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),a=t.events,s=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(x.B),p=Math.ceil(i),u=2*p,[y,w]=(0,n.useState)(u),[b,j]=(0,n.useState)(2*p),P=0===(0,f.If9)(r)?24:(0,f.If9)(r),[C,S]=(0,n.useState)({touchX:0,touchY:0}),M=()=>(0,k.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,k.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),A=()=>(0,k.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,k.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),N=t=>{if("next"===t){const t=2;j((t=>Math.min(t+Math.floor(i),a.length+p+1))),w((e=>Math.min(e+t,a.length+p+1)))}else j((t=>Math.max(t-Math.floor(i),u)));(0,v.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,k.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{S({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,n,i;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(n=t.changedTouches)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.clientY)-C.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&N(r>0?"prev":"next")},children:[(0,f.JSQ)(r)&&(0,k.jsxs)(k.Fragment,{children:[b<=a.length+p&&(0,k.jsx)("div",{onClick:()=>N("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,k.jsx)(M,{})}),b>2*p&&(0,k.jsx)("div",{onClick:()=>N("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,k.jsx)(A,{})})]}),(0,k.jsx)("div",{style:{display:"flex",gap:P,transform:`translateX(-${(b-u)*(o+P)}px)`,transition:"transform 0.4s ease-in-out"},children:a.map(((t,e)=>e<y?(0,k.jsx)("div",{children:(0,k.jsx)(_,{isOnFocus:e<=b-p-1&&e>=Math.max(0,b-u),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>s(t)})},`whatmore-carousel-tile-${e}`):(0,k.jsx)(m.A,{})))})]})}function F(t){const[e,o,i,r]=(0,d.A)(),[l,a]=(0,n.useState)(-1),s=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,n.useState)("next"),y=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(x.B),b=Math.min(Math.ceil(i),m.length),[j,P]=(0,n.useState)(0),C=0===(0,f.If9)(s)?24:(0,f.If9)(s),S=()=>(0,k.jsx)("div",{children:(0,k.jsx)("button",{onClick:I,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,k.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),M=()=>(0,k.jsx)("div",{children:(0,k.jsx)("button",{onClick:N,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,k.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)((()=>{j<=b&&P((t=>t+b))}),[b]);const A=()=>{a(-1)},N=()=>{j!==b&&(p("prev"),P((t=>Math.max(Math.ceil(t-i),b))),(0,v.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},I=()=>{j>m.length+i||(p("next"),P((t=>Math.floor(t+i))),(0,v.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},z=j>m.length?m.length-b+1:j-b,E=j>=m.length?m.length:z+b,R=m.slice(z,E);return(0,k.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`},children:[j!==b&&(0,k.jsx)("div",{style:{position:"absolute",left:r+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,k.jsx)(M,{})}),(0,k.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*i*(0,f.fHt)(s)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:R.map(((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,n=e===l;return(0,k.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()((()=>a(t)),300);return e(),e.cancel})(e),onMouseLeave:A,children:(0,k.jsx)(_,{isOnFocus:n,playOnUnfocus:!(0,f.aO7)(s)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{y(t)})(t)})},o)}))}),j<m.length&&(0,k.jsx)("div",{style:{position:"absolute",zIndex:1,top:"50%",right:r+"px",transform:"translateY(-65%)"},children:(0,k.jsx)(S,{})})]})}var W=function(t){const[e,o,s]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[u]=(0,h.QN)("whatmoreSecondaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),v="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(x.B),w=((0,h.Xd)("isInDesignMode"),(0,h.Xd)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:b}=(0,n.useContext)(x.B),j=t.events,P=t.onClick,C=m;function S(t){P(t)}return(0,n.useEffect)((()=>{(0,z.Fk)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{r.Sn.forEach((t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")}))}),[]),delete l.Ay.styles.global,(0,k.jsx)(a.C,{value:R,children:(0,k.jsx)("div",{className:"whatmore-carousel-events",children:(0,k.jsx)(i.s,{theme:l.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,k.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,k.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",v+"px"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.Odx)(d),lineHeight:(0,f.L0y)(d),letterSpacing:(0,f.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,k.jsx)(k.Fragment,{}),"landscape"===e?(0,k.jsx)(F,{events:j,onClick:S}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(T,{events:"45034766485"==d?j.slice(0,5):j,onClick:S}),"45034766485"==d&&(0,k.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,k.jsx)(E.A,{baseFontSize:.5*v,onClick:()=>S(null===j||void 0===j?void 0:j[5])})})]})]})})})})}},9733:function(){}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see carousel-template-feed.fd453a82.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[933],{2173:function(e,t,n){const r=n(8558);e.exports=function(e){if("string"!==typeof e)return;const t=e.toUpperCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0},e.exports.currencySymbolMap=r},6989:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var r=n(9950),o=n(3852),i=n(340),s=n(5089),l=(n(3997),n(9733),n(4365),n(572)),a=n(8603),c=n(6086),d=n(3731),p=n(1941),h=n(5830),u=n(7509),m=n(1348),f=n(5551),v=n(1422),x=n(932),y=n(6649),g=n(4414);function w(e){var t;const[n,r,o]=(0,y.A)({triggerOnce:!1}),i=null!==(t=e.defaultHeight)&&void 0!==t?t:"fit-content";return(0,g.jsx)(v.B,{ref:n,direction:"row",minHeight:i,height:i,width:"100%",justifyContent:"center",alignItems:"center",children:r?e.data.map(((t,n)=>(0,g.jsx)("div",{children:e.renderElement({eventData:t})},"key"+n))):(0,g.jsx)("div",{style:{minHeight:{rowHeight:i},minWidth:"100%"}})})}function C(e){var t;const[n,r,o]=(0,x.A)(),i=null!==(t=e.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(o,e.dataList.length)),s=function(e,t){var n=[];const r=t;for(let o=0;o<e.length;o+=r){const t=e.slice(o,o+r);n.push(t)}return n}(e.dataList,i);return(0,g.jsx)(v.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:s.map(((t,o)=>(0,g.jsx)(w,{renderElement:e.renderElement,data:t,defaultHeight:n,defaultWidth:r},"key-"+o)))})}var D=n(2039),S=(n(4826),n(9879)),j=n(3590),P=n(8538),R=n(6594),F=n(7973),b=n(8149),M=n(7740),N=n(22);var A=function(e){var t,n,o,i,[s,l,a,c,d]=(0,x.A)();const p="portrait"===d[N.dl],[u,f]=(0,r.useState)(0),[v,y]=(0,r.useState)(e.event),[w]=(0,h.QN)("whatmoreShopId"),C=(0,h.QN)("whatmoreUITheme"),[D]=(0,h.QN)("whatmorePrimaryFont"),[S]=(0,h.QN)("whatmoreSecondaryColorShade900"),j=v.products.length,[A,B]=(0,r.useState)(),[T,U]=(0,r.useState)(!1);if(0==j)return(0,g.jsx)(g.Fragment,{});(0,r.useEffect)((()=>{const e=setInterval((()=>{f((e=>(e+1)%j))}),3e3);return()=>{clearInterval(e)}}),[]),(0,r.useEffect)((()=>{(0,m.w4b)(w)?(0,R.fu)(v,(0,m.NCy)(w),w).then((e=>{y(e),U(!0)})):(async()=>{var e;const t=await(0,b.M)(null===v||void 0===v||null===(e=v.products)||void 0===e?void 0:e[0],(0,m.NCy)(w),w);B(t),U(!0)})()}),[]);const L=(p?1.23*l*(0,m.HWj)(w):1.4*l*(0,m.N_4)(w))+"px",O=(p?1.15*l*(0,m.HWj)(w):1.31*l*(0,m.N_4)(w))+"px",$=(+v.products[u].price).toFixed(),I=(+v.products[u].compare_price).toFixed(),K=.25*l,k="56352899156"===w||"90617479486"===w||"9238315068"===w;return(0,g.jsxs)("div",{style:{background:(0,m.ivR)(w),display:"flex",flexDirection:k?"row":"column",padding:"10px 12px",gap:k?"8px":"6px",borderRadius:"round"==C?"0 0 12px 12px":"0",alignItems:k?"center":"stretch"},children:[(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:k?"1":"none"},children:[(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,P.v)(v.products[u].title)}),(0,g.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[T&&(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",O,"important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,R.Sb)(parseFloat((0,M.U)()?(null===A||void 0===A?void 0:A.price)/100:null===v||void 0===v||null===(t=v.products)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.price)," ",w,v.products[u].currency)}),!isNaN(I)&&I>$&&T&&(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#808191","important"),e.style.setProperty("font-size",O,"important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,R.Sb)(parseFloat((0,M.U)()?(null===A||void 0===A?void 0:A.compare_at_price)/100:null===v||void 0===v||null===(o=v.products)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.compare_price)," ",w,v.products[u].currency)})]})]}),k&&(0,g.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,F.b)(v.products[u].thumbnail_image,"&width=400&height=400"),style:{width:K,height:K,borderRadius:"round"==C?"5px":"0px",backgroundColor:S,flexShrink:0},alt:"product img"})]})},B=n(6613);function T(e){const[t,n]=(0,x.A)(),[r]=(0,h.QN)("whatmoreShowViews"),o=e.event;return(0,g.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,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,g.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,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===r?(0,g.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,g.jsx)(j.A,{event:o,fontSize:.07*n+"px"})})}):(0,g.jsx)(g.Fragment,{})})})})})}var U=function(e){var t,n,o;const[i,s]=(0,x.A)();var l=(0,r.useContext)(u.h);const a=(0,h.Xd)("whatmoreUITheme"),c=(0,h.Xd)("whatmoreSecondaryColor"),d=(0,h.Xd)("whatmoreShopId"),p=e.event,f=e.onClick,v=null===(t=e.isOnFocus)||void 0===t||t,w=null!==(n=e.playOnUnfocus)&&void 0!==n&&n,C=null!==(o=e.animateOnFocus&&(0,m.n5O)(d))&&void 0!==o&&o,[D,j,P]=(0,y.A)({triggerOnce:!0});return(0,g.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",l.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",l.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s,height:i,borderRadius:"round"==a?"12px":"0px",borderWidth:(0,m.MRv)(d),borderColor:"white"==(0,m.Fwt)(d)?c:(0,m.Fwt)(d),overflow:"hidden",cursor:"pointer"},className:C?v?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{f(p)},children:[(0,g.jsx)(S.A,{height:"100%",width:"100%",url:p.thumbnail_image,isPlaying:v||w||(0,B.At)(),event:p}),(0,g.jsxs)("div",{style:{width:s,height:i},ref:D,children:[(0,g.jsx)(T,{event:p,isOnFocus:v}),(0,g.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,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)("p",{children:" "})}),(0,g.jsx)("div",{style:{width:"100%"},children:j&&(0,m.imx)(d)?(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)(A,{event:p})}):(0,g.jsx)("div",{height:"20px"})})]})})]})]})};const L=(0,a.A)({key:"whatmore-css-hv"});var O=function(e){var t;const[n,a,v]=(0,p.A)(),[y,w,S]=(0,x.A)(),[j]=(0,h.QN)("whatmoreShopId"),[P]=(0,h.QN)("whatmorePrimaryColor"),[R]=(0,h.QN)("whatmoreTitleFont"),F="portrait"==n?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:b}=(0,r.useContext)(f.B),M=e.events,N=e.onClick,A=null!==(t=(0,m.sa6)(j))&&void 0!==t?t:R;function B(e){N(e)}const T=parseInt(Math.floor(S));return delete s.Ay.styles.global,(0,g.jsx)(l.C,{value:L,children:(0,g.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,g.jsx)(i.s,{theme:s.Ay,cssVarsRoot:b,resetCSS:!1,children:(0,g.jsxs)(u.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,g.jsx)(c.o,{paddingBottom:"28px",children:(0,g.jsx)(d.E,{bgColor:P,bgClip:"text",fontSize:F,sx:{fontFamily:A+" !important"},align:"center",children:e.heading})}):(0,g.jsx)(g.Fragment,{}),"landscape"===n?(0,g.jsx)(C,{renderElement:e=>{const t=e.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,D.ij)(t)||(0,D.Il)(t)?(0,g.jsx)(U,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}}):(0,g.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}})})},dataList:M,elementsPerRow:T}):(0,g.jsx)(C,{renderElement:e=>{const t=e.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,g.jsx)(U,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}})})},dataList:M,elementsPerRow:T})]})})})})}},8558:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9211:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:function(){return o}});var o=function e(t,n){function o(e,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,!0!==i[l]&&(s+="="+i[l].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(r[l]=t.read(s,l),e===l)break}catch(a){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[676],{22:function(t,e,n){n.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return o},dl:function(){return r},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",r="device_mode",o="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,n){var i=n(5830),r=n(1941),o=n(22),l=n(1348);e.A=function(t){const[e,n,s]=(0,r.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=s>=1025,h="portrait"==e?u:c,f=!("portrait"!=e||!(s>=481)),v=h/100*1.3*.5,m=h/100;var x=Math.min(s,n),[y,w,g,b]=[.6*x*(16/9),.6*x,1.4,0];function C(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:o.b4,DEVICE_MODE:o.tn};if(p){const t=w*v,e=y*v;[y,w,g,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],j[o._]=o.$S,j[o.dl]=o.nN}else if(f){var P=.8*w,S=.8*y;"portrait"==e?(P*=m,S*=m,[y,w,g,b]=[S,P,C(s/(1.2*P)),0],j[o._]=o.vF,j[o.dl]=o.tn):([y,w,g,b]=[S,P,(s-2*a)/(1.1*P),a],j[o._]=o.vF,j[o.dl]=o.nN)}else{P=w,S=y;"portrait"==e?(P=P*m*.9,S=S*m*.9,[y,w,g,b]=[S,P,C(s/(1.15*P)),0],j[o._]=o.b4,j[o.dl]=o.tn):(P=.7*w,S=.7*y,[y,w,g,b]=[S,P,(s-2*a)/(1.1*P),a],j[o._]=o.b4,j[o.dl]=o.nN)}return[y,w,g,b,j]}},1131:function(t,e,n){var i=n(4994);e.A=void 0;var r=i(n(9526)),o=n(4414);e.A=(0,r.default)([(0,o.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,o.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")},3369:function(t,e,n){n.r(e),n.d(e,{default:function(){return O}});var i=n(9950),r=n(340),o=n(5089),l=n(5873),s=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),d=n(9946),c=n(9094),u=n(932),p=n(1941),h=n(5491),f=n.n(h),v=n(5830),m=n(7509),x=n(7136),y=n(1348),w=n(5551),g=n(1351),b=n(6157),C=n(6641),j=(n(4826),n(9879)),P=n(4616),S=n(6649),I=n(6613),k=n(1131),_=n(8141),A=n(4414);function E(t){const[e]=(0,v.QN)("whatmoreShopId"),[n,i,r,o,l]=(0,u.A)(),[s,a,d]=(0,S.A)({triggerOnce:!0}),c=t.event,p=(0,I.At)()?t.isOnFocus:a;return(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,A.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:["56411783377"===e&&(0,A.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,A.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,A.jsx)(_.A,{width:.15*i,height:.15*i})})}),(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)("p",{children:" "})}),(0,A.jsx)("div",{ref:s,children:p&&(0,y.imx)(e)?(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)(P.A,{event:c})}):(0,A.jsx)("div",{height:"20px"})})]})})}var F=function(t){var e,n,r,o,l,s,a,d;const[c,p,h,f,x]=(0,u.A)();var w=(0,i.useContext)(m.h);const g=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("whatmorePrimaryFont"),P=(0,v.Xd)("whatmoreSecondaryColor"),S=t.event,I=t.onClick,_=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,N=null!==(r=t.animateOnFocus&&(0,y.n5O)(b))&&void 0!==r&&r,L=(0,y.VYo)(b);return(0,A.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:p,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==g?"5px":"0px",boxShadow:"round"==g||"61187850326"==b||"19501891"==b?L:null,borderWidth:(0,y.YcK)(b),borderColor:(0,y.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:N?_?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,n;if("12326200"==b&&"image"==S.event_type&&(null===(t=S.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=S.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.product_status)){var i,r;window.location.href=null===(i=S.products)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.product_link}else{if("12326200"==b&&"image"==S.event_type)return;var o,l,s,a,d,c,u,p,h,f,v,m,x,y,w,g;if("10588815418"==b){if(null!==(o=S.cta)&&void 0!==o&&null!==(l=o[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=S.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=S.cta)||void 0===c||null===(u=c[1])||void 0===u?void 0:u.cta_title))window.location.href=null===(w=S.cta)||void 0===w||null===(g=w[1])||void 0===g?void 0:g.cta_link;else if(null!==(p=S.cta)&&void 0!==p&&null!==(h=p[1])&&void 0!==h&&null!==(f=h.cta_link)&&void 0!==f&&f.includes("whatmore")&&""!=(null===(v=S.cta)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.cta_link)&&""==(null===(x=S.cta)||void 0===x||null===(y=x[0])||void 0===y?void 0:y.cta_title)){var C,j;window.location.href=null===(C=S.cta)||void 0===C||null===(j=C[0])||void 0===j?void 0:j.cta_link}}else I(S)}},children:[(0,A.jsx)(j.A,{height:(0,y.u06)(b)+" !important",width:"100%",url:S.thumbnail_image,isPlaying:_||F,event:S}),""!==(null===S||void 0===S?void 0:S.title)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis"},children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,A.jsx)("p",{style:{fontFamily:C,fontSize:.1*p+"px",fontWeight:"600"},children:"12326200"==b?null===S||void 0===S||null===(o=S.title)||void 0===o?void 0:o.slice(7):null===S||void 0===S?void 0:S.title}),"12326200"==b&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*p+"px",fontWeight:"normal"},children:null===S||void 0===S||null===(l=S.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=S.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=S.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,A.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:P,padding:"8px 28px"},children:(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*p+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,A.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,A.jsx)(k.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,y.Q$)(b)&&(0,A.jsxs)("div",{style:{width:p,height:c},children:[(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,A.jsx)(E,{event:S,unfocusedDisplay:!_,isOnFocus:_})]})]})};const N=(0,a.A)({key:"whatmore-css-hv"});function L(t){const[e,n,r]=(0,u.A)(),[o,l,s]=(0,p.A)(),a=(0,v.Xd)("whatmoreShopId"),c=t.events,h=t.onClick,f=r*(0,y.kcl)(a),m=(0,y.cbh)(a),[C,j]=(0,i.useState)(m?c.length:f),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(w.B);return(0,i.useEffect)((()=>{C<=f&&j((t=>t+f))}),[f]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,A.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,g.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),t.realIndex>t.previousIndex&&j((t=>t+f))},loop:m,children:c.map(((t,e)=>e<=C&&(0,A.jsx)(d.qr,{children:({isActive:e,isPrev:n,isNext:i,isVisible:r})=>n||i||e?(0,A.jsx)(F,{isOnFocus:r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-portrait-"+t.index)))})})})}function M(t){const[e,n,r,o]=(0,u.A)(),[l,s]=(0,i.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[p]=(0,v.QN)("whatmoreLandingLocationType"),h=t.onClick,m=t.events,C=(0,y.cbh)(a),[j,P]=(0,i.useState)(C?m.length:r),S=Math.min(r,m.length),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(w.B),k=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(k.current){const t=n*S*(0,y.fHt)(a)+"px";m.length<4?k.current.style.setProperty("width",t,"important"):k.current.style.width=t}}),[n,S,a,j,m.length]),(0,i.useEffect)((()=>{j<=r&&P((t=>t+r))}),[r]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:o+"px",paddingRight:o+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:k,style:{height:"100%"},children:(0,A.jsx)(d.RC,{slidesPerView:"product"===p&&"87174349065"===a?2:S,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(S),onSlideChange:t=>{(0,g.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),t.realIndex>t.previousIndex&&P((t=>t+r))},spaceBetween:0,loop:C&&m.length>4,style:{height:"100%"},children:m.map(((t,e)=>{const n=f()((()=>s(e)),300);return e<=j&&(0,A.jsx)(d.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),s(-1)},style:{height:"100%"},children:({isActive:n,isPrev:i,isNext:r,isVisible:o})=>o||i||r?(0,A.jsx)(F,{isOnFocus:e==l,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(S/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-landscape-"+t.index)}))})})})}var O=function(t){const[e,n,a]=(0,p.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[u]=(0,v.QN)("whatmoreTitleFont"),h="portrait"==e?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,i.useContext)(w.B),x=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(w.B),b=t.events,j=t.onClick,P=u;function S(t){j(t)}return(0,i.useEffect)((()=>{(0,C.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((t=>{var e;const n=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!n)return;n&&t&&(t.style.minHeight="0px")}))}),[]),delete o.Ay.styles.global,(0,A.jsx)(s.C,{value:N,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(r.s,{theme:o.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,A.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||g?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",P),t.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:g?"W"!==x?x:"":t.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===e?(0,A.jsx)(M,{events:b,onClick:S}):(0,A.jsx)(L,{events:b,onClick:S})]})})})})}},3997:function(){},4616:function(t,e,n){var i=n(9950),r=n(5830),o=n(932),l=n(8538),s=(n(4826),n(1348)),a=n(7973),d=n(4414);e.A=function(t){var e,n,c,u,[p,h]=(0,o.A)();const f=(0,r.Xd)("whatmoreUITheme"),[v]=(0,r.QN)("whatmorePrimaryFont"),[m,x]=(0,i.useState)(0),y=(0,r.Xd)("whatmoreShopId"),w=t.event;if(0==w.products.length)return(0,d.jsx)(d.Fragment,{});const g=.3*h,b=g+"px",C=g+"px",j=.07*h,P=j+"px";return(0,d.jsx)("div",{style:{width:h+"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",C,"important")},style:{width:(0,s.H$k)(y)?b:"auto",boxShadow:"round"==f?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==f?"5px":"0px",borderWidth:(0,s.YcK)(y),borderColor:(0,s.Fwt)(y),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(y),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(w.products[m].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==f?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:h-5-g+"px",height:"100%",borderRadius:"round"==f?"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",P),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(w.products[m].title)})}),(0,s.gZ6)(y)&&(null===(e=w.products[m])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:h-5-g+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==f?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",h-5-g+"px","important"),t.style.setProperty("font-size",.7*j+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(c=w.products[m])||void 0===c||null===(u=c.product_metadata)||void 0===u?void 0:u.product_type})})]})]},m)})}},4669:function(){},4826:function(){},6042:function(){},6474:function(t,e,n){n.r(e),n.d(e,{capitalize:function(){return r.A},createChainedFunction:function(){return o},createSvgIcon:function(){return l.A},debounce:function(){return s},deprecatedPropType:function(){return a},isMuiElement:function(){return u},ownerDocument:function(){return h},ownerWindow:function(){return f},requirePropFactory:function(){return v},setRef:function(){return x},unstable_ClassNameGenerator:function(){return R},unstable_useEnhancedEffect:function(){return w},unstable_useId:function(){return C},unsupportedProp:function(){return j},useControlled:function(){return P},useEventCallback:function(){return S},useForkRef:function(){return I},useIsFocusVisible:function(){return T}});var i=n(4501),r=n(1676);var o=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))},l=n(3059);var s=function(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout((()=>{t.apply(this,i)}),e)}return i.clear=()=>{clearTimeout(n)},i};var a=function(t,e){return()=>null},d=n(9950),c=n.t(d,2);var u=function(t,e){var n,i;return d.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)};function p(t){return t&&t.ownerDocument||document}var h=p;var f=function(t){return p(t).defaultView||window};var v=function(t,e){return()=>null};function m(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var x=m;var y="undefined"!==typeof window?d.useLayoutEffect:d.useEffect,w=y;let g=0;const b=c["useId".toString()];var C=function(t){if(void 0!==b){const e=b();return null!=t?t:e}return function(t){const[e,n]=d.useState(t),i=t||e;return d.useEffect((()=>{null==e&&(g+=1,n(`mui-${g}`))}),[e]),i}(t)};var j=function(t,e,n,i,r){return null};var P=function({controlled:t,default:e,name:n,state:i="value"}){const{current:r}=d.useRef(void 0!==t),[o,l]=d.useState(e);return[r?t:o,d.useCallback((t=>{r||l(t)}),[])]};var S=function(t){const e=d.useRef(t);return y((()=>{e.current=t})),d.useRef(((...t)=>(0,e.current)(...t))).current};var I=function(...t){return d.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{m(t,e)}))}),t)};class k{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new k}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,e()}),t)}}let _=!0,A=!1;const E=new k,F={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function N(t){t.metaKey||t.altKey||t.ctrlKey||(_=!0)}function L(){_=!1}function M(){"hidden"===this.visibilityState&&A&&(_=!0)}function O(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return _||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!F[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var T=function(){const t=d.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",N,!0),e.addEventListener("mousedown",L,!0),e.addEventListener("pointerdown",L,!0),e.addEventListener("touchstart",L,!0),e.addEventListener("visibilitychange",M,!0))}),[]),e=d.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!O(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(A=!0,E.start(100,(()=>{A=!1})),e.current=!1,!0)},ref:t}};const R={configure:t=>{i.A.configure(t)}}},7136:function(t,e,n){var i=n(9950),r=n(932),o=n(7509),l=n(5830),s=n(4414);e.A=function(t){var[e,n]=(0,r.A)();(0,i.useContext)(o.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:n,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7229:function(){},7509:function(t,e,n){n.d(e,{h:function(){return i}});const i=(0,n(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,n){n.d(e,{B:function(){return l},b:function(){return o}});var i=n(1348),r=n(5830);function o(t,e=""){const n=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},8141:function(t,e,n){n(9950);var i=n(4414);e.A=({width:t=30,height:e=30})=>(0,i.jsxs)("svg",{width:t,height:e,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,i.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,i.jsx)("path",{d:"M16.942 9.3568C16.8684 9.32095 16.7862 9.30645 16.7048 9.31496C16.6234 9.32347 16.5461 9.35464 16.4815 9.40493L12.6621 12.375H10.1875C9.95544 12.375 9.73288 12.4672 9.56878 12.6313C9.40469 12.7954 9.3125 13.0179 9.3125 13.25V16.75C9.3125 16.9821 9.40469 17.2046 9.56878 17.3687C9.73288 17.5328 9.95544 17.625 10.1875 17.625H12.6621L16.4815 20.5951C16.5461 20.6453 16.6235 20.6764 16.705 20.6849C16.7864 20.6933 16.8686 20.6787 16.9421 20.6427C17.0157 20.6068 17.0777 20.5509 17.121 20.4815C17.1644 20.4121 17.1874 20.3319 17.1875 20.25V9.75C17.1875 9.66804 17.1645 9.58773 17.1211 9.51821C17.0777 9.44869 17.0156 9.39276 16.942 9.3568ZM16.3125 19.3553L13.081 16.8424C13.0044 16.7824 12.9098 16.7498 12.8125 16.75H10.1875V13.25H12.8125C12.9098 13.2502 13.0044 13.2176 13.081 13.1576L16.3125 10.6447V19.3553ZM21.872 16.003C21.9541 16.0851 22.0002 16.1964 22.0002 16.3125C22.0002 16.4286 21.9541 16.5399 21.872 16.622C21.7899 16.7041 21.6786 16.7502 21.5625 16.7502C21.4464 16.7502 21.3351 16.7041 21.253 16.622L20.25 15.6185L19.247 16.622C19.1649 16.7041 19.0536 16.7502 18.9375 16.7502C18.8214 16.7502 18.7101 16.7041 18.628 16.622C18.5459 16.5399 18.4998 16.4286 18.4998 16.3125C18.4998 16.1964 18.5459 16.0851 18.628 16.003L19.6315 15L18.628 13.997C18.5459 13.9149 18.4998 13.8036 18.4998 13.6875C18.4998 13.5714 18.5459 13.4601 18.628 13.378C18.7101 13.2959 18.8214 13.2498 18.9375 13.2498C19.0536 13.2498 19.1649 13.2959 19.247 13.378L20.25 14.3815L21.253 13.378C21.3351 13.2959 21.4464 13.2498 21.5625 13.2498C21.6786 13.2498 21.7899 13.2959 21.872 13.378C21.9541 13.4601 22.0002 13.5714 22.0002 13.6875C22.0002 13.8036 21.9541 13.9149 21.872 13.997L20.8685 15L21.872 16.003Z",fill:"#1A1A1A"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1_19",children:(0,i.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]})},8538:function(t,e,n){n.d(e,{v:function(){return r}});var i=n(5830);function r(t,e){const n=(0,i.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(r=t.split("- "))||void 0===r?void 0:r[0]:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}));var r}},9130:function(){},9526:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(6474)},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{7178:function(e,t,n){n.r(t);var i=n(9950),s=n(340),r=n(5089),l=n(5873),o=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),c=n(9946),h=n(9094),d=n(932),u=n(1941),p=n(5491),m=n.n(p),g=n(5830),x=n(7509),f=n(7136),y=n(1348),w=n(5551),v=n(1351),S=n(6157),C=n(6641),j=n(1957),A=n(4414);const I=(0,a.A)({key:"whatmore-css-hv"});function P(e){const[t,n,s]=(0,d.A)(),[r,l,o]=(0,u.A)(),a=(0,g.Xd)("whatmoreShopId"),h=e.events,p=e.onClick,m=s*(0,y.kcl)(a),x=(0,y.cbh)(a),[C,I]=(0,i.useState)(x?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(w.B);return(0,i.useEffect)((()=>{C<=m&&I((e=>e+m))}),[m]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:o,height:"fit-content"},children:(0,A.jsx)(c.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,v.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),e.realIndex>e.previousIndex&&I((e=>e+m))},loop:x,children:h.map(((e,t)=>t<=C&&(0,A.jsx)(c.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:s})=>n||i||t?(0,A.jsx)(j.A,{isOnFocus:t&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,A.jsx)(f.A,{})},"whatmore-event-tile-portrait-"+e.index)))})})})}function k(e){const[t,n,s,r]=(0,d.A)(),[l,o]=(0,i.useState)(-1),a=(0,g.Xd)("whatmoreShopId"),u=e.onClick,p=e.events,x=(0,y.cbh)(a),[C,I]=(0,i.useState)(x?p.length:s),P=Math.min(s,p.length),{whatmoreWidgetSourceDetails:k}=(0,i.useContext)(w.B),E=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(E.current){const e=n*P*(0,y.fHt)(a)+"px";p.length<4?E.current.style.setProperty("width",e,"important"):E.current.style.width=e}}),[n,P,a,C,p.length]),(0,i.useEffect)((()=>{C<=s&&I((e=>e+s))}),[s]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:E,style:{height:"100%"},children:(0,A.jsx)(c.RC,{slidesPerView:P,watchSlidesProgress:!0,modules:[h.Vx],navigation:!0,slidesPerGroup:parseInt(P),onSlideChange:e=>{(0,v.UM)({userInteractionType:S.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),e.realIndex>e.previousIndex&&I((e=>e+s))},spaceBetween:0,loop:x&&p.length>4,style:{height:"100%"},children:p.map(((e,t)=>{const n=m()((()=>o(t)),300);return t<=C&&(0,A.jsx)(c.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),o(-1)},style:{height:"100%"},children:({isActive:n,isPrev:i,isNext:s,isVisible:r})=>r||i||s?(0,A.jsx)(j.A,{isOnFocus:t==l,playOnUnfocus:!(0,y.aO7)(a)||t==parseInt(P/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(f.A,{})},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,n,a]=(0,u.A)(),[c]=(0,g.QN)("whatmoreShopId"),[h]=(0,g.QN)("whatmorePrimaryColor"),[d]=(0,g.QN)("whatmoreTitleFont"),p="portrait"==t?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(w.B),f=(0,g.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(w.B),S=e.events,j=e.onClick,E=d;function O(e){j(e)}return(0,i.useEffect)((()=>{(0,C.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const n=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!n)return;n&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,A.jsx)(o.C,{value:I,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(s.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,A.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||v?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",E,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(c),lineHeight:(0,y.L0y)(c),letterSpacing:(0,y.l3V)(c)},children:v?"W"!==f?f:"":e.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===t?(0,A.jsx)(k,{events:S,onClick:O}):(0,A.jsx)(P,{events:S,onClick:O})]})})})})}}}]);
|
package/static/js/{carousel-template-i.aa7f7ff6.chunk.js → carousel-template-i.edf5e918.chunk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[306],{9406:function(e,t,i){i.r(t),i.d(t,{default:function(){return R}});var o=i(9950),r=i(340),l=i(5089),n=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),p=i(9094),c=i(1941),u=i(5830),h=i(7509),v=i(7136),y=i(1348),m=i(5551),x=i(1351),f=i(6157),g=i(6641),w=i(3080),P=i(932),j=(i(4826),i(22)),b=i(6594),C=i(7740),S=i(8538),N=i(8149),A=i(3771),k=i(3936),_=i(7035),I=i(4414);var F=function(e){var t,i,r,l,n,s,a,d,p,c,h,v,x,f,g,w,F,M,z,W,O,R,E,[$,B,T,U,V]=(0,P.A)();B*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,$*=null!==(i=e.scaleFactor)&&void 0!==i?i:1;const X=(0,u.Xd)("whatmoreUITheme"),D=(0,u.Xd)("whatmoreShopId"),H=(0,u.Xd)("whatmorePrimaryFont"),q=(0,u.Xd)("whatmoreSecondaryColor"),L=(0,u.Xd)("websiteLanguage"),Y=e.onClick,Q=null===(r=e.isOnFocus)||void 0===r||r,G=null!==(l=e.playOnUnfocus)&&void 0!==l&&l,K="portrait"===V[j.dl],J=(K?1.076*B*(0,y.HWj)(D):B*(0,y.N_4)(D))+"px",Z=(K?1.076*B*(0,y.HWj)(D):B*(0,y.N_4)(D))+"px",ee=(K?.965*B*(0,y.HWj)(D):.859*B*(0,y.N_4)(D))+"px",te=(0,y.VYo)(D),{whatmoreIsPreviewMode:ie}=(0,o.useContext)(m.B),oe=.25*B,re=oe+"px",le=1.25*oe+"px",[ne,se]=(0,o.useState)(e.event),[ae,de]=(0,o.useState)(),pe=null!==(n=null===(s=ne.products)||void 0===s?void 0:s.find((e=>"active"==e.product_status)))&&void 0!==n?n:null===(a=ne.products)||void 0===a?void 0:a[0],ce=Math.round(+(null===pe||void 0===pe?void 0:pe.price)),ue=Math.round(+(null===pe||void 0===pe?void 0:pe.compare_price)),he=ue&&0!=ue&&ue>ce?Math.round((ue-ce)/ue*100):NaN,[ve,ye]=(0,o.useState)(he),[me,xe]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{(0,y.w4b)(D)?(0,b.fu)(ne,(0,y.NCy)(D),D).then((e=>{var t,i,o;se(e);const r=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),l=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),n=l&&0!=l&&l>r?Math.round((l-r)/l*100):NaN;ye(n),xe(!0)})):(async()=>{const e=await(0,N.M)(pe,(0,y.NCy)(D),D);de(e),xe(!0)})()}),[]),(0,I.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","24px"),e.style.setProperty("margin-bottom","12px"))},style:{width:B,margin:"0 auto",cursor:"pointer",filter:Q||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{Y(ne)},children:[(0,I.jsxs)("div",{style:{position:"relative",width:B,height:$,borderRadius:"round"==X?"5px":"0px",boxShadow:"round"==X?te:null,borderWidth:(0,y.YcK)(D),borderColor:(0,y.Fwt)(D),overflow:"hidden"},children:[(0,I.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:Q||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,I.jsx)(k.A,{})}),(0,I.jsx)(A.A,{height:"100%",width:"100%",url:null!==(d=null===ne||void 0===ne?void 0:ne.event_hls_url)&&void 0!==d?d:null===ne||void 0===ne?void 0:ne.thumbnail_image,isPlaying:Q||G,event:ne})]}),(0,I.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ie?(0,y.Tr1)(D):(0,y.UmS)(D))&&(null===ne||void 0===ne||null===(p=ne.products)||void 0===p?void 0:p.length)>0&&(0,I.jsx)("div",{style:{maxHeight:le,maxWidth:re,minWidth:null!==pe&&void 0!==pe&&pe.thumbnail_image?re:"0",overflow:"hidden"},children:(0,I.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,y.KZe)(D),"important")},style:{height:"100%"},src:(null===pe||void 0===pe||null===(c=pe.thumbnail_image)||void 0===c||null===(h=c.split("?"))||void 0===h?void 0:h[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,I.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(D),"important"),e.style.setProperty("font-size",J,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,S.v)(null===pe||void 0===pe?void 0:pe.title)}),me&&(0,y.Nzx)(D)&&(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,y.vw2)(D)?"row":"row-reverse",justifyContent:(0,y.vw2)(D)?"flex-start":"flex-end"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(D),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(D)?"normal":"bold"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(v=null===ae||void 0===ae||null===(x=ae.variants)||void 0===x||null===(f=x[0])||void 0===f?void 0:f.price)&&void 0!==v?v:null===ae||void 0===ae?void 0:ae.price)/100:null===pe||void 0===pe?void 0:pe.price)," ",D,null===(g=ne.products[0])||void 0===g?void 0:g.currency)}),!isNaN(ue)&&ue>ce&&(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.gld)(D),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==ce?"line-through":"none"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(w=null===ae||void 0===ae||null===(F=ae.variants)||void 0===F||null===(M=F[0])||void 0===M?void 0:M.compare_at_price)&&void 0!==w?w:null===ae||void 0===ae?void 0:ae.compare_at_price)/100:null===pe||void 0===pe?void 0:pe.compare_price)," ",D,null===(z=ne.products[0])||void 0===z?void 0:z.currency)}),"56352899156"==D&&(0,y.Nzx)(D)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(D)?"#343434"==q?(0,y.ub$)(D):q:(0,y.ub$)(D),alignItems:"center",borderRadius:(0,y.v8m)(D)+"px",width:"fit-content",padding:"3px 4px"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${ve}% ${null!==(W=null===_.m||void 0===_.m||null===(O=_.m[L])||void 0===O?void 0:O.off)&&void 0!==W?W:"off"}`})})]}),(Q||e.isActive)&&(0,y.Nzx)(D)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(D)?"#343434"==q?(0,y.ub$)(D):q:(0,y.ub$)(D),alignItems:"center",borderRadius:(0,y.v8m)(D)+"px",width:"fit-content",padding:(0,y.Cf)(D)?"3px 6px":"0px"},children:(0,y.Cf)(D)?(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",H,"important"))},children:`${ve}% ${null!==(R=null===_.m||void 0===_.m||null===(E=_.m[L])||void 0===E?void 0:E.off)&&void 0!==R?R:"off"}`}):(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y._zx)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",(0,y.ogW)(D),"important"))},children:(0,y.rsz)(D)})})]})]})]})},M=i(1957);const z=(0,a.A)({key:"whatmore-css-hv"});function W(e){const[t,i,r]=(0,P.A)(),[l,n,s]=(0,c.A)(),a=(0,u.Xd)("whatmoreShopId"),p=e.events,h=e.onClick,g=r*(0,y.kcl)(a),w=(0,y.cbh)(a),[j,b]=(0,o.useState)(w?p.length:g),{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(m.B);return(0,o.useEffect)((()=>{j<=g&&b((e=>e+g))}),[g]),(0,I.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,I.jsx)(d.RC,{slidesPerView:p.length>1?g:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,x.UM)({userInteractionType:f.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:C}),e.realIndex>e.previousIndex&&b((e=>e+g))},loop:w,children:p.map(((e,t)=>t<=j&&(0,I.jsx)(d.qr,{children:t=>{let{isActive:i,isPrev:o,isNext:r,isVisible:l}=t;return o||r||i?(0,I.jsx)(M.A,{isOnFocus:i&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,I.jsx)(v.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function O(e){var[t,i,r,l]=(0,w.A)();const n=e.onClick,s=e.index,a=e.events,[u,h]=(0,o.useState)(6),[y,m,x]=(0,c.A)();return(0,I.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,I.jsx)(d.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:e=>{e.realIndex>e.previousIndex&&h((e=>e+1))},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[p.t9,p.Vx,p.FJ],watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*l),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map(((e,t)=>t<=u&&(0,I.jsx)(d.qr,{children:t=>{let{isActive:i,isPrev:o,isNext:r,isVisible:l}=t;return l?(0,I.jsx)(F,{isOnFocus:i&&s<0,isActive:i,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{n(e)}}):(0,I.jsx)(v.A,{})}},"whatmore-event-tile-portr-"+e.index)))})})})}var R=function(e){const[t,i,a]=(0,c.A)(),[d]=(0,u.QN)("whatmoreShopId"),[p]=(0,u.QN)("whatmorePrimaryColor"),[v]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==t?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,o.useContext)(m.B),w=(0,u.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,o.useContext)(m.B),j=e.events,b=e.onClick,C=v;function S(e){b(e)}return(0,o.useEffect)((()=>{(0,g.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{n.Sn.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!i)return;i&&e&&(e.style.minHeight="0px")})),(0,u.t2)("muted",!0)}),[]),delete l.Ay.styles.global,(0,I.jsx)(s.C,{value:z,children:(0,I.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,I.jsx)(r.s,{theme:l.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,I.jsxs)(h.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||P?(0,I.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:P?"W"!==w?w:"":e.heading})}):(0,I.jsx)(I.Fragment,{}),"landscape"===t?(0,I.jsx)(O,{index:e.index,events:j,onClick:S}):(0,I.jsx)(W,{index:e.index,events:j,onClick:S})]})})})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[306],{9406:function(e,t,i){i.r(t),i.d(t,{default:function(){return R}});var o=i(9950),r=i(340),l=i(5089),n=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),p=i(9094),c=i(1941),h=i(5830),u=i(7509),v=i(7136),y=i(1348),m=i(5551),x=i(1351),f=i(6157),g=i(6641),w=i(3080),P=i(932),j=(i(4826),i(22)),b=i(6594),C=i(7740),S=i(8538),N=i(8149),A=i(3771),k=i(3936),_=i(7035),I=i(4414);var F=function(e){var t,i,r,l,n,s,a,d,p,c,u,v,x,f,g,w,F,M,z,W,O,R,E,[$,B,T,U,V]=(0,P.A)();B*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,$*=null!==(i=e.scaleFactor)&&void 0!==i?i:1;const X=(0,h.Xd)("whatmoreUITheme"),D=(0,h.Xd)("whatmoreShopId"),H=(0,h.Xd)("whatmorePrimaryFont"),q=(0,h.Xd)("whatmoreSecondaryColor"),L=(0,h.Xd)("websiteLanguage"),Y=e.onClick,Q=null===(r=e.isOnFocus)||void 0===r||r,G=null!==(l=e.playOnUnfocus)&&void 0!==l&&l,K="portrait"===V[j.dl],J=(K?1.076*B*(0,y.HWj)(D):B*(0,y.N_4)(D))+"px",Z=(K?1.076*B*(0,y.HWj)(D):B*(0,y.N_4)(D))+"px",ee=(K?.965*B*(0,y.HWj)(D):.859*B*(0,y.N_4)(D))+"px",te=(0,y.VYo)(D),{whatmoreIsPreviewMode:ie}=(0,o.useContext)(m.B),oe=.25*B,re=oe+"px",le=1.25*oe+"px",[ne,se]=(0,o.useState)(e.event),[ae,de]=(0,o.useState)(),pe=null!==(n=null===(s=ne.products)||void 0===s?void 0:s.find((e=>"active"==e.product_status)))&&void 0!==n?n:null===(a=ne.products)||void 0===a?void 0:a[0],ce=Math.round(+(null===pe||void 0===pe?void 0:pe.price)),he=Math.round(+(null===pe||void 0===pe?void 0:pe.compare_price)),ue=he&&0!=he&&he>ce?Math.round((he-ce)/he*100):NaN,[ve,ye]=(0,o.useState)(ue),[me,xe]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{(0,y.w4b)(D)?(0,b.fu)(ne,(0,y.NCy)(D),D).then((e=>{var t,i,o;se(e);const r=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),l=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),n=l&&0!=l&&l>r?Math.round((l-r)/l*100):NaN;ye(n),xe(!0)})):(async()=>{const e=await(0,N.M)(pe,(0,y.NCy)(D),D);de(e),xe(!0)})()}),[]),(0,I.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","24px"),e.style.setProperty("margin-bottom","12px"))},style:{width:B,margin:"0 auto",cursor:"pointer",filter:Q||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{Y(ne)},children:[(0,I.jsxs)("div",{style:{position:"relative",width:B,height:$,borderRadius:"round"==X?"5px":"0px",boxShadow:"round"==X?te:null,borderWidth:(0,y.YcK)(D),borderColor:(0,y.Fwt)(D),overflow:"hidden"},children:[(0,I.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:Q||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,I.jsx)(k.A,{})}),(0,I.jsx)(A.A,{height:"100%",width:"100%",url:null!==(d=null===ne||void 0===ne?void 0:ne.event_hls_url)&&void 0!==d?d:null===ne||void 0===ne?void 0:ne.thumbnail_image,isPlaying:Q||G,event:ne})]}),(0,I.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ie?(0,y.Tr1)(D):(0,y.UmS)(D))&&(null===ne||void 0===ne||null===(p=ne.products)||void 0===p?void 0:p.length)>0&&(0,I.jsx)("div",{style:{maxHeight:le,maxWidth:re,minWidth:null!==pe&&void 0!==pe&&pe.thumbnail_image?re:"0",overflow:"hidden"},children:(0,I.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,y.KZe)(D),"important")},style:{height:"100%"},src:(null===pe||void 0===pe||null===(c=pe.thumbnail_image)||void 0===c||null===(u=c.split("?"))||void 0===u?void 0:u[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,I.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(D),"important"),e.style.setProperty("font-size",J,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,S.v)(null===pe||void 0===pe?void 0:pe.title)}),me&&(0,y.Nzx)(D)&&(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,y.vw2)(D)?"row":"row-reverse",justifyContent:(0,y.vw2)(D)?"flex-start":"flex-end"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(D),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(D)?"normal":"bold"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(v=null===ae||void 0===ae||null===(x=ae.variants)||void 0===x||null===(f=x[0])||void 0===f?void 0:f.price)&&void 0!==v?v:null===ae||void 0===ae?void 0:ae.price)/100:null===pe||void 0===pe?void 0:pe.price)," ",D,null===(g=ne.products[0])||void 0===g?void 0:g.currency)}),!isNaN(he)&&he>ce&&(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.gld)(D),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==ce?"line-through":"none"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(w=null===ae||void 0===ae||null===(F=ae.variants)||void 0===F||null===(M=F[0])||void 0===M?void 0:M.compare_at_price)&&void 0!==w?w:null===ae||void 0===ae?void 0:ae.compare_at_price)/100:null===pe||void 0===pe?void 0:pe.compare_price)," ",D,null===(z=ne.products[0])||void 0===z?void 0:z.currency)}),"56352899156"==D&&(0,y.Nzx)(D)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(D)?"#343434"==q?(0,y.ub$)(D):q:(0,y.ub$)(D),alignItems:"center",borderRadius:(0,y.v8m)(D)+"px",width:"fit-content",padding:"3px 4px"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${ve}% ${null!==(W=null===_.m||void 0===_.m||null===(O=_.m[L])||void 0===O?void 0:O.off)&&void 0!==W?W:"off"}`})})]}),(Q||e.isActive)&&(0,y.Nzx)(D)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(D)?"#343434"==q?(0,y.ub$)(D):q:(0,y.ub$)(D),alignItems:"center",borderRadius:(0,y.v8m)(D)+"px",width:"fit-content",padding:(0,y.Cf)(D)?"3px 6px":"0px"},children:(0,y.Cf)(D)?(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",H,"important"))},children:`${ve}% ${null!==(R=null===_.m||void 0===_.m||null===(E=_.m[L])||void 0===E?void 0:E.off)&&void 0!==R?R:"off"}`}):(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y._zx)(D),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",(0,y.ogW)(D),"important"))},children:(0,y.rsz)(D)})})]})]})]})},M=i(1957);const z=(0,a.A)({key:"whatmore-css-hv"});function W(e){const[t,i,r]=(0,P.A)(),[l,n,s]=(0,c.A)(),a=(0,h.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,g=r*(0,y.kcl)(a),w=(0,y.cbh)(a),[j,b]=(0,o.useState)(w?p.length:g),{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(m.B);return(0,o.useEffect)((()=>{j<=g&&b((e=>e+g))}),[g]),(0,I.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,I.jsx)(d.RC,{slidesPerView:p.length>1?g:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,x.UM)({userInteractionType:f.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:C}),e.realIndex>e.previousIndex&&b((e=>e+g))},loop:w,children:p.map(((e,t)=>t<=j&&(0,I.jsx)(d.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:r})=>i||o||t?(0,I.jsx)(M.A,{isOnFocus:t&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,I.jsx)(v.A,{})},"whatmore-event-tile-portrait-"+e.index)))})})})}function O(e){var[t,i,r,l]=(0,w.A)();const n=e.onClick,s=e.index,a=e.events,[h,u]=(0,o.useState)(6),[y,m,x]=(0,c.A)();return(0,I.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,I.jsx)(d.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:e=>{e.realIndex>e.previousIndex&&u((e=>e+1))},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[p.t9,p.Vx,p.FJ],watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*l),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map(((e,t)=>t<=h&&(0,I.jsx)(d.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:r})=>r?(0,I.jsx)(F,{isOnFocus:t&&s<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{n(e)}}):(0,I.jsx)(v.A,{})},"whatmore-event-tile-portr-"+e.index)))})})})}var R=function(e){const[t,i,a]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[v]=(0,h.QN)("whatmoreTitleFont"),x="portrait"==t?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,o.useContext)(m.B),w=(0,h.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,o.useContext)(m.B),j=e.events,b=e.onClick,C=v;function S(e){b(e)}return(0,o.useEffect)((()=>{(0,g.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{n.Sn.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!i)return;i&&e&&(e.style.minHeight="0px")})),(0,h.t2)("muted",!0)}),[]),delete l.Ay.styles.global,(0,I.jsx)(s.C,{value:z,children:(0,I.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,I.jsx)(r.s,{theme:l.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,I.jsxs)(u.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||P?(0,I.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:P?"W"!==w?w:"":e.heading})}):(0,I.jsx)(I.Fragment,{}),"landscape"===t?(0,I.jsx)(O,{index:e.index,events:j,onClick:S}):(0,I.jsx)(W,{index:e.index,events:j,onClick:S})]})})})})}}}]);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[116],{3997:function(){},4063:function(n,t,e){var o=e(9950),r=e(3247),i=e(3731),a=e(5830),s=e(5144),c=e(4414);t.A=function(n){var t,e;const[l,d]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[m]=(0,a.QN)("whatmoreSecondaryColor"),[f]=(0,a.QN)("whatmoreSecondaryColorShade600"),[v]=(0,a.QN)("whatmoreSecondaryColorShade300"),[g]=(0,a.QN)("whatmorePrimaryFont"),p=n.onClick,x=n.icon,j=null!==(t=n.borderRadius)&&void 0!==t?t:"sm",w=null!==(e=n.baseFontSize)&&void 0!==e?e:12;return(0,c.jsxs)(r.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:j,backgroundColor:l?v:m,animation:u?s.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:n=>{n.stopPropagation(),h(!0),p()},onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},children:[(0,c.jsx)(i.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:g+" !important",color:"white !important"},children:"VIEW MORE"}),x]})}},5144:function(n,t,e){e.d(t,{jd:function(){return r},so:function(){return i}});var o=e(8283);const r=`\n ${o.i7`
|
|
2
|
+
0% { transform: scale(1); }
|
|
3
|
+
50%, { transform: scale(0.95); }
|
|
4
|
+
100% { transform: scale(1); }
|
|
5
|
+
`} 0.2s linear;\n`,i=(o.i7`
|
|
6
|
+
100% {
|
|
7
|
+
-webkit-transform: rotate(360deg);
|
|
8
|
+
transform:rotate(360deg);
|
|
9
|
+
}
|
|
10
|
+
`,o.i7`
|
|
11
|
+
0% {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
transform: translateY(100%);
|
|
14
|
+
}
|
|
15
|
+
10%{
|
|
16
|
+
transform: translateY(0%);
|
|
17
|
+
}
|
|
18
|
+
12%{
|
|
19
|
+
transform: translateY(-5%);
|
|
20
|
+
}
|
|
21
|
+
20%{
|
|
22
|
+
transform: translateY(0%);
|
|
23
|
+
}
|
|
24
|
+
95%{
|
|
25
|
+
opacity: 1;
|
|
26
|
+
transform: scale(1);
|
|
27
|
+
}
|
|
28
|
+
100%{
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
`,`\n ${o.i7`
|
|
32
|
+
0% {
|
|
33
|
+
transform: scale(0.3);
|
|
34
|
+
}
|
|
35
|
+
70% {
|
|
36
|
+
transform: scale(1.05);
|
|
37
|
+
}
|
|
38
|
+
100% {
|
|
39
|
+
transform: scale(1);
|
|
40
|
+
}
|
|
41
|
+
`} 0.3s ease-in-out;\n`)},5727:function(n,t,e){var o=e(4994);t.A=void 0;var r=o(e(9526)),i=e(4414);t.A=(0,r.default)((0,i.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")},7144:function(n,t,e){e.r(t);var o=e(9950),r=e(3852),i=e(340),a=e(5089),s=e(8726),c=(e(3997),e(9733),e(4365),e(572)),l=e(8603),d=e(6086),u=e(1422),h=e(3247),m=e(3731),f=e(932),v=e(1941),g=e(5830),p=(e(5144),e(7509)),x=e(1348),j=e(5551),w=e(2039),C=e(5620),y=e(4063),F=e(4414);const S=(0,l.A)({key:"whatmore-css-hv"});function k(n,t){var e=[];const o=t;for(let r=0;r<n.length;r+=o){const t=n.slice(r,r+o);e.push(t)}return e}function A(n){var t;const[e,i,a]=(0,f.A)();var[c,l]=(0,o.useState)(0);const m=n.events,v=n.onClick,g=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,p=k(m,Math.floor(Math.min(a,m.length)));return(0,F.jsx)(d.o,{children:(0,F.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,F.jsx)(F.Fragment,{children:p.map(((n,t)=>t>c?(0,F.jsx)(F.Fragment,{}):(0,F.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,F.jsx)(h.az,{style:{margin:"10px"},children:(0,w.ij)(n)||(0,w.Il)(n)?(0,F.jsx)(C.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{v(n)}}):(0,F.jsx)(r.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{v(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,F.jsx)(F.Fragment,{children:c<p.length-1?(0,F.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,F.jsx)(y.A,{baseFontSize:.1*i,icon:(0,F.jsx)(s.A,{style:{color:"white"}}),onClick:()=>{c>=p.length-1||l((n=>n+g))}})}):(0,F.jsx)(F.Fragment,{})})]})})}function M(n){var t;const[e,i,a,c]=(0,f.A)();var[l,m]=(0,o.useState)(0);const v=n.events,g=n.onClick,p=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=k(v,Math.floor(Math.min(a,v.length)));return(0,F.jsx)(d.o,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,F.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,F.jsx)(F.Fragment,{children:x.map(((n,t)=>t>l?(0,F.jsx)(F.Fragment,{}):(0,F.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,F.jsx)(h.az,{style:{margin:"10px"},children:(0,w.ij)(n)||(0,w.Il)(n)?(0,F.jsx)(C.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{g(n)}}):(0,F.jsx)(r.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{g(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,F.jsx)(F.Fragment,{children:l<x.length-1?(0,F.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,F.jsx)(y.A,{baseFontSize:.1*i,onClick:()=>{l>=x.length-1||m((n=>n+p))},icon:(0,F.jsx)(s.A,{style:{color:"white"}})})}):(0,F.jsx)(F.Fragment,{})})]})})}t.default=function(n){var t;const[e,r,s]=(0,v.A)(),[l]=(0,g.QN)("whatmoreShopId"),[u]=(0,g.QN)("whatmorePrimaryColor"),[h]=(0,g.QN)("whatmoreSecondaryColor"),[f]=(0,g.QN)("whatmoreTitleFont"),w="portrait"==e?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:C}=(0,o.useContext)(j.B),y=n.events,k=n.onClick,b=null!==(t=(0,x.sa6)(l))&&void 0!==t?t:f;function O(n){k(n)}return delete a.Ay.styles.global,(0,F.jsx)(c.C,{value:S,children:(0,F.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,F.jsx)(i.s,{theme:a.Ay,cssVarsRoot:C,resetCSS:!1,children:(0,F.jsxs)(p.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,F.jsx)(d.o,{children:(0,F.jsx)(m.E,{bgColor:u,bgClip:"text",fontSize:w,sx:{fontFamily:b+" !important"},align:"center",children:n.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===e?(0,F.jsx)(M,{events:y,onClick:O,seeMoreIncrement:1}):(0,F.jsx)(A,{events:y,onClick:O,seeMoreIncrement:2})]})})})})}},7973:function(n,t,e){e.d(t,{B:function(){return a},b:function(){return i}});var o=e(1348),r=e(5830);function i(n,t=""){const e=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(e)?"STRNV8MHJTF"==e?n+"?format=webp":n:n+t}function a(n){var t;if(null!==n&&void 0!==n&&n.includes("https://w-media.b-cdn.net/process-media"))return"image";const e=null===n||void 0===n||null===(t=n.trim())||void 0===t?void 0:t.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(e)?"image":null!==r&&void 0!==r&&r.test(e)?"video":void 0}},8538:function(n,t,e){e.d(t,{v:function(){return r}});var o=e(5830);function r(n,t){const e=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof n||"undefined"==n||null==n?"":"6873415750"==e||"72442478904"==e||"58562281529"==e?n:"66168324332"==e&&"prod-tile"!=t?null===n||void 0===n||null===(r=n.split("- "))||void 0===r?void 0:r[0]:n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}));var r}},8726:function(n,t,e){var o=e(4994);t.A=void 0;var r=o(e(9526)),i=e(4414);t.A=(0,r.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click-product.c7d627cf.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[592],{2173:function(t,e,n){const r=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),l=n(5830),s=n(4414);e.A=function(t){var e;const n=(0,l.Xd)("whatmoreUITheme"),[u]=(0,l.QN)("whatmoreSecondaryColor"),[a,c]=(0,l.QN)("productRatings"),f=(0,l.Xd)("whatmorePrimaryFont"),p=t.productId,d=t.fontSize,v=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===a||"undefined"==typeof a||!(p in a)||a[p].avgRating>5)return(0,s.jsx)(s.Fragment,{});const y=a[p].avgRating,h=a[p].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(y))].map(((t,e)=>(0,s.jsx)(r.A,{sx:{color:u,fontSize:d+"px"}},"star-icon"+e))),y-Math.floor(y)>.2?(0,s.jsx)(o.A,{sx:{color:u,fontSize:d+"px"}},"star-half-icon"):y-Math.floor(y)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:u,fontSize:d+"px"}},"star-outline-icon"),[...Array(Math.floor(5-y))].map(((t,e)=>(0,s.jsx)(i.A,{sx:{color:u,fontSize:d+"px"}},"star-outline-icon-"+e))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:u,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*d+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",y,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",v,"important"),t.style.setProperty("font-size",.8*d+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+h+")"]})})]})})}},3781:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},4669:function(){},6042:function(){},7229:function(){},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7802:function(t,e,n){"use strict";n.d(e,{Hl:function(){return o},Np:function(){return l},Po:function(){return s},Z_:function(){return r},Zf:function(){return a},d8:function(){return u},zJ:function(){return i}});const r=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},o=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t){if(null!=t)return t.filter((t=>{var e;return null===(e=null===t||void 0===t?void 0:t.in_stock)||void 0===e||e}))},l=function(t,e=!1){var n,r;if(null!=t)return e?{events:t.events[0].events,all_events:null!==(r=null===t||void 0===t?void 0:t.all_events)&&void 0!==r?r:[]}:{events:null===t||void 0===t?void 0:t.events,all_events:null!==(n=null===t||void 0===t?void 0:t.all_events)&&void 0!==n?n:[]}};const s=function(t,e){var n,r;let o=[];if(null==t)return[];if("eventsets"in t&&t.eventsets[e]){const n=function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach((t=>{e=e.concat(t.events)})),e}(t.eventsets[e]);o=[...n]}return{events:o,all_events:null!==(n=null===(r=o)||void 0===r?void 0:r.all_events)&&void 0!==n?n:[]}};function u(t){if(null!=t){var e=0;return t.forEach((t=>{t.index=e++})),t}}function a(t){if(null==t)return;let e=0;return t.reduce(((t,n)=>{var r;return(null===(r=null===n||void 0===n?void 0:n.in_stock)||void 0===r||r)&&(n.index=e++,t.push(n)),t}),[])}},7891:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},8454:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8558:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9130:function(){},9211:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in i)i[s]&&(l+="; "+s,!0!==i[s]&&(l+="="+i[s].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+l}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),l=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=e.read(l,s),t===s)break}catch(u){}}return t?r[t]:r}},remove:function(t,e){o(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click-spotlight.93dcffbf.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[657],{1351:function(t,e,o){"use strict";o.d(e,{PG:function(){return a},kz:function(){return s},UM:function(){return u},yP:function(){return d},DG:function(){return l}});var n=o(1348),i=o(6157);function r(t,e,o={},n){var r;const c=a[t];if(!c)return;const s=c.isActionEnabled(),l=null===n||void 0===n||null===(r=n.meta_actions)||void 0===r?void 0:r[c.customAction];(s||l)&&"function"==typeof fbq&&(async()=>{const n={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===i.O.VIDEO_PLAYBACK&&{watch_time:o.watch_time,video_duration:o.video_duration}};fbq("trackCustom",c.action,n),l&&setTimeout((()=>{null===l||void 0===l||l.forEach((t=>{fbq("trackCustom",t,n)}))}),500)})()}var c=o(7145);const a={[i.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[i.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[i.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[i.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[i.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[i.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:s}){var l;(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:s}),t in a&&r(t,null!==(l=null===i||void 0===i?void 0:i[1])&&void 0!==l?l:null===i||void 0===i?void 0:i[0],e,n)}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:s}){var l;(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:s}),t in a&&r(t,null!==(l=null===i||void 0===i?void 0:i[1])&&void 0!==l?l:null===i||void 0===i?void 0:i[0],e,n)}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r})}function d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r})}},2173:function(t,e,o){const n=o(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0},t.exports.currencySymbolMap=n},2835:function(t,e,o){"use strict";var n=o(7891),i=o(8454),r=o(3781),c=o(5830),a=o(4414);e.A=function(t){var e;const o=(0,c.Xd)("whatmoreUITheme"),[s]=(0,c.QN)("whatmoreSecondaryColor"),[l,u]=(0,c.QN)("productRatings"),d=(0,c.Xd)("whatmorePrimaryFont"),p=t.productId,f=t.fontSize,v=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===l||"undefined"==typeof l||!(p in l)||l[p].avgRating>5)return(0,a.jsx)(a.Fragment,{});const m=l[p].avgRating,D=l[p].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map(((t,e)=>(0,a.jsx)(n.A,{sx:{color:s,fontSize:f+"px"}},"star-icon"+e))),m-Math.floor(m)>.2?(0,a.jsx)(i.A,{sx:{color:s,fontSize:f+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(r.A,{sx:{color:s,fontSize:f+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map(((t,e)=>(0,a.jsx)(r.A,{sx:{color:s,fontSize:f+"px"}},"star-outline-icon-"+e))),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",m,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",v,"important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+D+")"]})})]})})}},3781:function(t,e,o){"use strict";var n=o(4994);e.A=void 0;var i=n(o(9526)),r=o(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},4669:function(){},6042:function(){},7229:function(){},7458:function(t,e,o){"use strict";o.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,o){"use strict";var n=o(4994);e.A=void 0;var i=n(o(9526)),r=o(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},8454:function(t,e,o){"use strict";var n=o(4994);e.A=void 0;var i=n(o(9526)),r=o(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8558:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9130:function(){},9211:function(t,e,o){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)t[n]=o[n]}return t}o.d(e,{A:function(){return i}});var i=function t(e,o){function i(t,i,r){if("undefined"!==typeof document){"number"===typeof(r=n({},o,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var a in r)r[a]&&(c+="; "+a,!0!==r[a]&&(c+="="+r[a].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+c}}return Object.create({set:i,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var o=document.cookie?document.cookie.split("; "):[],n={},i=0;i<o.length;i++){var r=o[i].split("="),c=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(n[a]=e.read(c,a),t===a)break}catch(s){}}return t?n[t]:n}},remove:function(t,e){i(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click.324cacb2.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[72,691,906,907,939],{2173:function(t,e,n){const r=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},2209:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),u=n(5830),c=n(4414);e.A=function(t){var e;const n=(0,u.Xd)("whatmoreUITheme"),[a]=(0,u.QN)("whatmoreSecondaryColor"),[s,l]=(0,u.QN)("productRatings"),f=(0,u.Xd)("whatmorePrimaryFont"),d=t.productId,p=t.fontSize,v=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===s||"undefined"==typeof s||!(d in s)||s[d].avgRating>5)return(0,c.jsx)(c.Fragment,{});const y=s[d].avgRating,m=s[d].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(y))].map(((t,e)=>(0,c.jsx)(r.A,{sx:{color:a,fontSize:p+"px"}},"star-icon"+e))),y-Math.floor(y)>.2?(0,c.jsx)(o.A,{sx:{color:a,fontSize:p+"px"}},"star-half-icon"):y-Math.floor(y)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(i.A,{sx:{color:a,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-y))].map(((t,e)=>(0,c.jsx)(i.A,{sx:{color:a,fontSize:p+"px"}},"star-outline-icon-"+e))),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",y,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",v,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+m+")"]})})]})})}},3330:function(t,e,n){"use strict";n.d(e,{initializeGA:function(){return d},sendVideoViewEventToGA:function(){return p}});var r,o=n(2595),i=n(7732),u=n(1348);const c="Whatmore Video Shopping",a=null!==(r="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==r&&r,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},f={homepage:"Home Page",product_page:"Product Page"};async function d(t){if((0,u.M$H)(t)&&null!==(0,u.xIo)(t)&&(i.Ay.initialize((0,u.xIo)(t)),a&&console.debug("Whatmore: initialized GA4")),(0,u.B6P)(t)&&null!==(0,u.jWS)(t)){const e=(0,u.Gc6)(t);o.Ay.initialize((0,u.jWS)(t),{useExistingGa:e}),a&&console.debug("Whatmore: initialized GA3")}}async function p(t,e,n){(0,u.B6P)(t)&&null!==(0,u.jWS)(t)&&(o.Ay.event({category:c,action:s.video_view,label:f[e]+":"+l[n]}),a&&console.debug("Whatmore: pushed view event to GA3")),(0,u.M$H)(t)&&null!==(0,u.xIo)(t)&&(i.Ay.event({category:c,action:s.video_view+":"+f[e]+":"+l[n],value:1,nonInteraction:!1}),a&&console.debug("Whatmore: pushed view event to GA4"))}},3781:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},4669:function(){},5727:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")},6042:function(){},6474:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return i},createSvgIcon:function(){return u.A},debounce:function(){return c},deprecatedPropType:function(){return a},isMuiElement:function(){return f},ownerDocument:function(){return p},ownerWindow:function(){return v},requirePropFactory:function(){return y},setRef:function(){return h},unstable_ClassNameGenerator:function(){return K},unstable_useEnhancedEffect:function(){return S},unstable_useId:function(){return C},unsupportedProp:function(){return D},useControlled:function(){return R},useEventCallback:function(){return w},useForkRef:function(){return g},useIsFocusVisible:function(){return I}});var r=n(4501),o=n(1676);var i=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))},u=n(3059);var c=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r};var a=function(t,e){return()=>null},s=n(9950),l=n.t(s,2);var f=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function d(t){return t&&t.ownerDocument||document}var p=d;var v=function(t){return d(t).defaultView||window};var y=function(t,e){return()=>null};function m(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var h=m;var A="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,S=A;let P=0;const x=l["useId".toString()];var C=function(t){if(void 0!==x){const e=x();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect((()=>{null==e&&(P+=1,n(`mui-${P}`))}),[e]),r}(t)};var D=function(t,e,n,r,o){return null};var R=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,u]=s.useState(e);return[o?t:i,s.useCallback((t=>{o||u(t)}),[])]};var w=function(t){const e=s.useRef(t);return A((()=>{e.current=t})),s.useRef(((...t)=>(0,e.current)(...t))).current};var g=function(...t){return s.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{m(t,e)}))}),t)};class M{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new M}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,e()}),t)}}let b=!0,L=!1;const T=new M,B={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $(t){t.metaKey||t.altKey||t.ctrlKey||(b=!0)}function E(){b=!1}function N(){"hidden"===this.visibilityState&&L&&(b=!0)}function F(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return b||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!B[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var I=function(){const t=s.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",$,!0),e.addEventListener("mousedown",E,!0),e.addEventListener("pointerdown",E,!0),e.addEventListener("touchstart",E,!0),e.addEventListener("visibilitychange",N,!0))}),[]),e=s.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!F(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(L=!0,T.start(100,(()=>{L=!1})),e.current=!1,!0)},ref:t}};const K={configure:t=>{r.A.configure(t)}}},7229:function(){},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},8454:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8558:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9130:function(){},9211:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+u}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(r[c]=e.read(u,c),t===c)break}catch(a){}}return t?r[t]:r}},remove:function(t,e){o(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},9526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6474)},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1985:function(e,t,n){n.r(t);var r=n(5830),s=n(9950),o=n(1348),i=n(6649),a=n(4414);const c=s.lazy((()=>Promise.all([n.e(925),n.e(199)]).then(n.bind(n,3350))));t.default=function(e){const[t]=(0,r.QN)("whatmoreShopId"),[n]=(0,r.QN)("whatmoreHeading"),[l,d]=(0,s.useState)(["initial",window.pageYOffset]),[u,h]=(0,s.useState)(!1),w="2665447536"==t?30:10,f=(0,r.Xd)("isLandingSharedLink");(0,s.useEffect)((()=>{if(!(0,o.FlM)(t))return;const e=w;let n=window.pageYOffset,r=!1;const s=()=>{const t=window.pageYOffset;var s,o;Math.abs(t-n)<e?r=!1:(o=!0,d(s=[t>n?"scrolled-down":"scrolled-up",t]),s[1]>w&&h(o),n=t>0?t:0,r=!1)},i=()=>{r||(window.requestAnimationFrame(s),r=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[]);const[g,v,p]=(0,i.A)({triggerOnce:!0});return(0,a.jsx)("div",{ref:g,style:{display:"block",height:"100%"},children:u||v||f||!(0,o.FlM)(t)||(0,o.wQ2)(t)?(0,a.jsx)(c,{heading:n,shopId:t}):(0,a.jsx)("div",{})})}},6649:function(e,t,n){var r=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:s=0}={})=>{const[o,i]=(0,r.useState)(!1),[a,c]=(0,r.useState)(null),l=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const r=new IntersectionObserver(((t,n)=>{t.forEach((t=>{c(t),t.isIntersecting?(i(!0),e&&n.disconnect()):e||i(!1)}))}),{root:t,rootMargin:n,threshold:s});return l.current&&r.observe(l.current),()=>{r.disconnect()}}),[e,t,n,s]),[l,o,a]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[774,907],{22:function(e,t,n){n.d(t,{$S:function(){return d},_:function(){return i},b4:function(){return r},dl:function(){return o},nN:function(){return s},tn:function(){return c},vF:function(){return a}});const i="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",c="portrait",s="landscape"},69:function(e,t,n){n.d(t,{Ij:function(){return r},bi:function(){return a}});let i,o=!1;function r(){return i?i.play().then((()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()})).catch((e=>{console.error("Failed to bless videos:",e.message)})):Promise.reject(new Error("Blessing video not initialized."))}function a(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const e=()=>{o||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},932:function(e,t,n){var i=n(5830),o=n(1941),r=n(22),a=n(1348);t.A=function(e){const[t,n,d]=(0,o.A)(),[c]=(0,i.QN)("whatmoreLandscapePadding"),[s]=(0,i.QN)("whatmoreShopId"),[l]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=d>=1025,v="portrait"==t?u:l,h=!("portrait"!=t||!(d>=481)),m=v/100*1.3*.5,f=v/100;var w=Math.min(d,n),[g,_,x,y]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const e=_*m,t=g*m;[g,_,x,y]=[t,e,(d-2*c-2*(0,a.$du)(s))/(1.1*e),c],E[r._]=r.$S,E[r.dl]=r.nN}else if(h){var S=.8*_,I=.8*g;"portrait"==t?(S*=f,I*=f,[g,_,x,y]=[I,S,b(d/(1.2*S)),0],E[r._]=r.vF,E[r.dl]=r.tn):([g,_,x,y]=[I,S,(d-2*c)/(1.1*S),c],E[r._]=r.vF,E[r.dl]=r.nN)}else{S=_,I=g;"portrait"==t?(S=S*f*.9,I=I*f*.9,[g,_,x,y]=[I,S,b(d/(1.15*S)),0],E[r._]=r.b4,E[r.dl]=r.tn):(S=.7*_,I=.7*g,[g,_,x,y]=[I,S,(d-2*c)/(1.1*S),c],E[r._]=r.b4,E[r.dl]=r.nN)}return[g,_,x,y,E]}},1351:function(e,t,n){n.d(t,{PG:function(){return d},kz:function(){return c},UM:function(){return l},yP:function(){return u},DG:function(){return s}});var i=n(1348),o=n(6157);function r(e,t,n={},i){var r;const a=d[e];if(!a)return;const c=a.isActionEnabled(),s=null===i||void 0===i||null===(r=i.meta_actions)||void 0===r?void 0:r[a.customAction];(c||s)&&"function"==typeof fbq&&(async()=>{const i={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===o.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,i),s&&setTimeout((()=>{null===s||void 0===s||s.forEach((e=>{fbq("trackCustom",e,i)}))}),500)})()}var a=n(7145);const d={[o.O.EVENT_VIEW]:{isActionEnabled:i.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[o.O.VIDEO_PLAYBACK]:{isActionEnabled:i.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[o.O.VIDEO_LIKED]:{isActionEnabled:i.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[o.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:i.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[o.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function c({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}){var s;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}),e in d&&r(e,null!==(s=null===o||void 0===o?void 0:o[1])&&void 0!==s?s:null===o||void 0===o?void 0:o[0],t,i)}function s({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}){var s;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}),e in d&&r(e,null!==(s=null===o||void 0===o?void 0:o[1])&&void 0!==s?s:null===o||void 0===o?void 0:o[0],t,i)}function l({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r})}function u({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r})}},3330:function(e,t,n){n.d(t,{initializeGA:function(){return p},sendVideoViewEventToGA:function(){return v}});var i,o=n(2595),r=n(7732),a=n(1348);const d="Whatmore Video Shopping",c=null!==(i="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==i&&i,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},u={homepage:"Home Page",product_page:"Product Page"};async function p(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.initialize((0,a.xIo)(e)),c&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);o.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),c&&console.debug("Whatmore: initialized GA3")}}async function v(e,t,n){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(o.Ay.event({category:d,action:s.video_view,label:u[t]+":"+l[n]}),c&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.event({category:d,action:s.video_view+":"+u[t]+":"+l[n],value:1,nonInteraction:!1}),c&&console.debug("Whatmore: pushed view event to GA4"))}},3389:function(e,t,n){n.r(t);var i=n(9950),o=n(1348),r=n(964),a=n(5830),d=n(140),c=n(4533),s=n(5901),l=n(1085),u=n(6613),p=n(3330),v=(n(3262),n(572)),h=n(8603),m=n(2039),f=n(4833),w=n(5551),g=n(1351),_=n(6157),x=n(2979),y=n(6641),b=n(8945),E=n(9821),S=n(69),I=n(4414);const A=(0,h.A)({key:"whatmore-css-ppv"}),j=i.lazy((()=>Promise.all([n.e(304),n.e(437),n.e(946),n.e(451),n.e(987),n.e(137),n.e(647),n.e(592)]).then(n.bind(n,5647)))),P=i.lazy((()=>n.e(374).then(n.bind(n,5100))));function L(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[h,C]=(0,i.useState)(),[T]=(0,a.QN)("isInDesignMode"),[N]=(0,a.QN)("isDemoBrand"),[O]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[D,k]=(0,i.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[V]=(0,a.QN)("whatmoreShopId");var[M]=(0,a.QN)("whatmoreProductId");const Q=(0,a.Xd)("isLandingSharedLink"),R=(0,a.Xd)("whatmoreShareTemplateId"),W=(0,a.Xd)("whatmoreShareEventId"),F=Q&&"template-embed"===(0,f.Mm)(R),[B,$]=(0,i.useState)(F);M=(0,o.BcY)(V)?function(e){if("STRR72TX6AT"==e){var t;const e=null===(t=window.location.pathname)||void 0===t?void 0:t.split("/");return e[e.length-1]}return"STR6HARJ3QY"==e||"STRI4V3OYCH"==e?L(window.location.href).split("/").pop():L(window.location.href)}(V):M;const[G,H]=(0,i.useState)((()=>"true"===O?z:M));var K=r.$$+"/v2/brand/"+V+"/product-events";const{whatmoreWidgetSourceDetails:U}=(0,i.useContext)(w.B);(0,i.useEffect)((()=>{(0,p.initializeGA)(V),(0,y.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||h||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,E._)()?(0,l.Pc)(l.F5):(0,S.bi)())}),[t]),(0,i.useEffect)((()=>{if(k(-1),(0,o.WH1)(V)){const e=`${r.$$}/v2/brand/${V}/product-events/recommendation`,t=(0,o.buK)(V);fetch(`${e}?client_product_id=${G}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then((e=>e.json())).then((e=>{const i=null===e||void 0===e?void 0:e.events;if((null===i||void 0===i?void 0:i.length)>0){var o;const r=t?null===e||void 0===e?void 0:e.all_events:null===e||void 0===e||null===(o=e.related_events)||void 0===o?void 0:o.map((e=>({...e,isRelatedEvent:!0})));n([...i,...r])}else n([])})).catch((e=>C(e.message)))}else fetch(K.toString()+"?client_product_id="+G.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.vfi)(V)&&(0,o.YOR)(e),n(e),e))).then((e=>((0,o.Uht)(V)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==L(window.location.href))return;const i={product_id:n.product_id,product_link:L(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,G),e))).catch((e=>{C(e.message)}))}),[G]),(0,i.useEffect)((()=>{var e,n;k(-2),(t&&t.length>0||"Scale"==(0,o.yt9)(V)||"Enterprise"==(0,o.yt9)(V)||"Premium"==(0,o.yt9)(V))&&(0,g.yP)({userInteractionType:_.O.PDP_VISITED,widgetSourceDetails:U,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{const e=L(window.location.href);let t=history.pushState;history.pushState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};let n=history.replaceState;history.replaceState=function(){let e=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("24950997070"==V&&window.location.origin+window.location.pathname!=e&&fetch(window.location.origin+window.location.pathname+".json").then((e=>e.json())).then((e=>{var t;return H(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.id)})),"true"===O){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&H(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!h&&F&&((0,b.H)("whatmore-video-player",(()=>{$(!1)})),null!=W)){const e=t.find((e=>W==e.event_id));if(e)return void q(e,!0,t.indexOf(e))}}),[t]);const Y=U.landingLocationType,X=U.templateType,q=async(e,t=!1,n=0)=>{if((0,u.MN)()&&!t&&await((0,E._)()?(0,l.bo)():(0,S.bi)()),(0,m.ij)(e)||(0,m.Il)(e))return T||N||(async()=>{const t=(0,f.Wd)(Y)+(0,f.gf)(X)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,d.lB)(e),(0,p.sendVideoViewEventToGA)(V,r.DK,r.K1),(0,c.Ch)(e.event_id,e.products,"product_page","video_popup",t)})(),void k(n)};function J(){return(0,I.jsx)(I.Fragment,{})}return null==t||0==t.length||h||(0,f.Ig)(U.templateType)?(0,I.jsx)("div",{}):(0,I.jsxs)(v.C,{value:A,children:[B&&(0,I.jsx)(P,{}),"no-product"===G||-1===D||0===t.length?(0,I.jsx)(J,{}):-2===D&&t.length>0?(0,I.jsx)("div",{children:(0,I.jsx)(x.S,{userInteractionType:_.O.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!N,children:(0,I.jsx)(s.A,{event:t[0],inVideoClick:q,closeClick:e=>{var n;e.stopPropagation(),k(-1),(0,g.kz)({userInteractionType:_.O.PDP_POPUP_CLOSED,widgetSourceDetails:U,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.products})}})})}):(0,I.jsx)("div",{children:(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(x.S,{userInteractionType:_.O.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!N,children:(0,I.jsx)(j,{events:t,index:D,onBack:function(){k(-2),$(!1)},template:"template-product-page"})})})})]})}},5901:function(e,t,n){n.d(t,{A:function(){return w}});var i=n(1005),o=n(9950),r=n(9879),a=n(22),d=n(5830),c=n(932);var s=function(e){const[t,n,i,o,r]=(0,c.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?l/100:s/100*1.2;return[t*u,n*u,r]},l=n(5727),u=n(1628),p=n.n(u),v=n(2209),h=n(6702),m=(n(9733),n(4365),n(1348)),f=n(4414);var w=function(e){var t;const n=o.useRef(null);var[c,u,w]=s();const g=(0,d.Xd)("whatmoreUITheme"),[_]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[x]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[b]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[I]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,d.Xd)("whatmoreShopId"),j=(0,d.Xd)("isWhatmorePreviewMode");var P=x,L=y,C=b;w[a.dl]===a.nN&&(P=E,L=S,C=I);const[T,N]=(0,o.useState)(["initial",window.pageYOffset]),[O,D]=(0,o.useState)(!1),k=null!==(t=e.isSpotlight)&&void 0!==t&&t,z=w[a.dl]===a.nN?.7*(0,m.O86)(A):(0,m.O86)(A),V=k?z:1;c*=V,u*=V;const M=k?(0,m.LrK)(A):P,Q=k?(0,m._2D)(A):(0,m.GSq)(A),[R,W]=(0,o.useState)(!k&&(0,m.n8Q)(A));function F(e,t){N(e),e[1]<=100?D(!1):t!=O&&(D(t),W(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(F([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[T]),(0,i.j)({ref:n,handler:()=>{F(["scrolled-up",T[1]],!0)}});const B=e.event,$=e.inVideoClick,G=e.closeClick,H=.3*u,K=.6*u,U=.1*u,Y=.1*(.5*u),X="round"==g?"10px":"0px",q=(0,m.GvQ)(A);var J=!1,Z=0,ee=0;function te(e){J=e}return(0,f.jsx)("div",{className:"wht-popup",children:R&&!Q?(0,f.jsx)(f.Fragment,{}):O&&Q?(0,f.jsx)("div",{style:"left"===M?{left:"1px",bottom:k?(0,m.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:k?(0,m.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{onClick:()=>{F(["initial",T[1]],!1)},style:{margin:"1px",width:u+"px",height:c+"px"},className:"left"===M?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(v.A,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:H+"px"},style:{position:"relative",zIndex:1,left:Y+"px",bottom:Y+"px"},onClick:G})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(h.A,{sx:{color:"white",fontSize:2*H+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:j?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,Z=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Z)>5||Math.abs(t.y-ee)>5)?te(!1):$(B)},children:(0,f.jsx)("div",{ref:n,style:"left"===M?{left:k?(0,m.D2A)(A)+"px":L+"px",bottom:k?(0,m.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:q}:{right:k?(0,m.D2A)(A)+"px":L+"px",bottom:k?(0,m.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==A?c+"px":u+"px",height:e.isSpotlight&&"60122562760"==A?u+"px":c+"px"}),className:"left"===M?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,f.jsx)(r.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(v.A,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:H+"px"},onClick:G,style:{position:"relative",zIndex:1,left:U+"px",bottom:U+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(l.A,{sx:{color:(0,m.KFN)(A),fontSize:K+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:X,borderBottomRightRadius:X,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.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*H+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",_]})})]})})]})})})})}},6649:function(e,t,n){var i=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:o=0}={})=>{const[r,a]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const i=new IntersectionObserver(((t,n)=>{t.forEach((t=>{c(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)}))}),{root:t,rootMargin:n,threshold:o});return s.current&&i.observe(s.current),()=>{i.disconnect()}}),[e,t,n,o]),[s,r,d]}},8945:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return i}})},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[374],{1941:function(n,e,i){i.d(e,{A:function(){return l}});var t=i(5830),r=i(9950);function a(n){if(!n)return{};var e={};return Array.from(n.attributes).forEach((n=>{var i;e[n.name]=(i=n.value,isNaN(+i)?i:+i)})),e}function o(...n){try{var e;const i=document.getElementById("whatmorePreviewMode");if(!i)return null;const t=null===n||void 0===n?void 0:n[0];if(!t)return!0;let r={};return r=t.includes("function")?{}:a(i),null!==(e=r)&&void 0!==e&&e[t]?r[t]:null}catch(i){return null}}var s=function({disablePreview:n=!1}={}){var e,i,t=n?window.innerHeight:null!==(e=o("height-wh"))&&void 0!==e?e:window.innerHeight,a=n?window.innerWidth:null!==(i=o("width-wh"))&&void 0!==i?i:window.innerWidth,[s,d]=[t,a];const[c,l]=(0,r.useState)([s>d?"portrait":"landscape",s,d]);return(0,r.useLayoutEffect)((()=>{function e(){var e,i,t=n?window.innerHeight:null!==(e=o("height-wh"))&&void 0!==e?e:window.innerHeight,r=n?window.innerWidth:null!==(i=o("width-wh"))&&void 0!==i?i:window.innerWidth,[a,s]=[t,r];l(a>s?["portrait",a,s]:["landscape",a,s])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),c};function d(){return[window.innerHeight,window.innerWidth]}var c=function(){var[n,e]=d();const[i,t]=(0,r.useState)([n>e?"portrait":"landscape",n,e]);return(0,r.useLayoutEffect)((()=>{function n(){var[n,e]=d();t(n>e?["portrait",n,e]:["landscape",n,e])}return window.addEventListener("resize",n),window.addEventListener("orientationchange",n),screen.orientation&&screen.orientation.addEventListener("change",n),n(),()=>{window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n),screen.orientation&&screen.orientation.removeEventListener("change",n)}}),[]),i};var l=function(n){var e;const i=(0,t.Xd)("isWhatmorePreviewMode"),r=c(),a=s({disablePreview:null!==(e=null===n||void 0===n?void 0:n.disablePreview)&&void 0!==e&&e});return i?a:r}},5100:function(n,e,i){i.r(e);var t=i(9950),r=i(1941),a=i(5830),o=i(4414);const s=t.memo((()=>{if(!(0,a.Xd)("isLandingSharedLink"))return(0,o.jsx)(o.Fragment,{});const[n]=(0,r.A)();return(0,o.jsxs)("div",{className:`shimmer-container ${n}`,children:["portrait"===n?(0,o.jsx)("div",{className:"shimmer-item portrait-full",children:(0,o.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((n,e)=>(0,o.jsx)("div",{className:"shimmer-item landscape-item "+(1===e?"center-item":""),children:(0,o.jsx)("div",{className:"shimmer-effect"})},e))),(0,o.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));e.default=s}}]);
|