whatmore-react-assets 1.0.1637 → 1.0.1639
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/262.4724036b.chunk.js +1 -0
- package/static/js/413.a37d75e4.chunk.js +127 -0
- package/static/js/988.f25d4f2e.chunk.js +1 -0
- package/static/js/carousel-template-a.ba8a94e9.chunk.js +1 -0
- package/static/js/{carousel-template-b.2e550617.chunk.js → carousel-template-b.dc5dc194.chunk.js} +1 -1
- package/static/js/carousel-template-f.0f07f331.chunk.js +41 -0
- package/static/js/carousel-template-h.a334544b.chunk.js +1 -0
- package/static/js/carousel-template-i.9519224f.chunk.js +1 -0
- package/static/js/product-page-view.e73f4e12.chunk.js +1 -0
- package/static/js/{spotlight-view.1758a8e1.chunk.js → spotlight-view.b0ad0b09.chunk.js} +1 -1
- package/static/js/whatmore-root.28aa8b9c.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/176.e1494954.chunk.js +0 -127
- package/static/js/852.62635cf8.chunk.js +0 -1
- package/static/js/988.370f90ec.chunk.js +0 -1
- package/static/js/carousel-template-a.541979bb.chunk.js +0 -1
- package/static/js/carousel-template-f.9bfd9d30.chunk.js +0 -41
- package/static/js/carousel-template-h.70efb640.chunk.js +0 -1
- package/static/js/carousel-template-i.e3d5453c.chunk.js +0 -1
- package/static/js/product-page-view.5e8ffb1a.chunk.js +0 -1
- package/static/js/whatmore-root.467877bb.chunk.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[988],{22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return i},b4:function(){return n},dl:function(){return r},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const i="device_type",r="device_mode",n="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var i=o(5830),r=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,r.A)(),[s]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[p]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),c=a>=1025,v="portrait"==e?u:p,m=!("portrait"!=e||!(a>=481)),y=v/100*1.3*.5,f=v/100;var h=Math.min(a,o),[x,w,g,P]=[.6*h*(16/9),.6*h,1.4,0];function b(t){return Math.round(10*t)/10}var N={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(c){const t=w*y,e=x*y;[x,w,g,P]=[e,t,(a-2*s-2*(0,l.$du)(d))/(1.1*t),s],N[n._]=n.$S,N[n.dl]=n.nN}else if(m){var _=.8*w,j=.8*x;"portrait"==e?(_*=f,j*=f,[x,w,g,P]=[j,_,b(a/(1.2*_)),0],N[n._]=n.vF,N[n.dl]=n.tn):([x,w,g,P]=[j,_,(a-2*s)/(1.1*_),s],N[n._]=n.vF,N[n.dl]=n.nN)}else{_=w,j=x;"portrait"==e?(_=_*f*.9,j=j*f*.9,[x,w,g,P]=[j,_,b(a/(1.15*_)),0],N[n._]=n.b4,N[n.dl]=n.tn):(_=.7*w,j=.7*x,[x,w,g,P]=[j,_,(a-2*s)/(1.1*_),s],N[n._]=n.b4,N[n.dl]=n.nN)}return[x,w,g,P,N]}},1957:function(t,e,o){var i=o(9950),r=o(932),n=(o(4826),o(5830)),l=o(9879),a=o(7509),s=o(22),d=o(1348),p=o(5551),u=o(6594),c=o(8538),v=o(8149),m=o(5727),y=o(7740),f=o(7035),h=o(4414);e.A=function(t){var e,o,x,w,g,P,b,N,_,j,C,S,M,z,k,$,F,I,A,R,T;const[D,O,W,E,X]=(0,r.A)(),B=.5*O;(0,i.useContext)(a.h);const U=(0,n.Xd)("whatmoreUITheme"),V=(0,n.Xd)("whatmoreShopId"),Y=(0,n.Xd)("whatmorePrimaryFont"),H=(0,n.Xd)("whatmoreSecondaryColor"),K=(0,n.Xd)("websiteLanguage"),L=t.onClick,Q=null===(e=t.isOnFocus)||void 0===e||e,G=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,Z=null!==(x=t.animateOnFocus&&(0,d.n5O)(V))&&void 0!==x&&x,q="portrait"===X[s.dl],J=(q?1.076*O*(0,d.HWj)(V):O*(0,d.N_4)(V))+"px",tt=(q?1.076*O*(0,d.HWj)(V):O*(0,d.N_4)(V))+"px",et=(q?.965*O*(0,d.HWj)(V):.859*O*(0,d.N_4)(V))+"px",ot=(0,d.VYo)(V),{whatmoreIsPreviewMode:it}=(0,i.useContext)(p.B),rt=.25*O,nt=rt+"px",lt=1.25*rt+"px",[at,st]=(0,i.useState)(t.event),[dt,pt]=(0,i.useState)(),ut=null!==(w=null===(g=at.products)||void 0===g?void 0:g.find((t=>"active"==t.product_status)))&&void 0!==w?w:null===(P=at.products)||void 0===P?void 0:P[0],ct=Math.round(+(null===ut||void 0===ut?void 0:ut.price)),vt=Math.round(+(null===ut||void 0===ut?void 0:ut.compare_price)),mt=vt&&0!=vt&&vt>ct?Math.round((vt-ct)/vt*100):NaN,[yt,ft]=(0,i.useState)(mt),[ht,xt]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(V)?(0,u.fu)(at,(0,d.NCy)(V),V).then((t=>{var e,o,i;st(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;ft(l),xt(!0)})):(async()=>{const t=await(0,v.M)(ut,(0,d.NCy)(V),V);pt(t),xt(!0)})()}),[]),(0,h.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:Z&&!q?Q?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:O,margin:"0 auto",cursor:"pointer"},onClick:()=>{L(at)},children:["video"===at.event_type&&"55076552858"===V&&!q&&(0,h.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*B,marginLeft:B/2},children:(0,h.jsx)(m.A,{sx:{color:(0,d.KFN)(at.whatmoreShopId)+" !important",opacity:.8,fontSize:B,filter:"drop-shadow(0 0 15px black);"}})}),(0,h.jsx)("div",{style:{width:O,height:q&&Q?"STR2FOC6KG9"==V||"STRDOIDF6O7"==V?D:1.1*D:D,borderRadius:"round"==U?"5px":"0px",boxShadow:"round"==U?ot:null,borderWidth:(0,d.YcK)(V),borderColor:(0,d.Fwt)(V),overflow:"hidden"},children:(0,h.jsx)(l.A,{height:(0,d.u06)(V)+" !important",width:"100%",url:at.thumbnail_image,isPlaying:Q||G,event:at})}),(0,h.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(it?(0,d.Tr1)(V):(0,d.UmS)(V))&&(null===at||void 0===at||null===(b=at.products)||void 0===b?void 0:b.length)>0&&(0,h.jsx)("div",{style:{maxHeight:lt,maxWidth:nt,minWidth:null!==ut&&void 0!==ut&&ut.thumbnail_image?nt:"0",overflow:"hidden"},children:(0,h.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(V),"important")},style:{height:"100%"},src:(null===ut||void 0===ut||null===(N=ut.thumbnail_image)||void 0===N||null===(_=N.split("?"))||void 0===_?void 0:_[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,h.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(V),"important"),t.style.setProperty("font-size",J,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",Y,"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,c.v)(null===ut||void 0===ut?void 0:ut.title)}),ht&&(0,d.Nzx)(V)&&(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(V)?"row":"row-reverse",justifyContent:(0,d.vw2)(V)?"flex-start":"flex-end"},children:[(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(V),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(V)?"normal":"bold"},children:(0,u.Sb)(parseFloat((0,y.U)()?(null!==(j=null===dt||void 0===dt||null===(C=dt.variants)||void 0===C||null===(S=C[0])||void 0===S?void 0:S.price)&&void 0!==j?j:null===dt||void 0===dt?void 0:dt.price)/100:null===ut||void 0===ut?void 0:ut.price)," ",V,null===(M=at.products[0])||void 0===M?void 0:M.currency)}),!isNaN(vt)&&vt>ct&&(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(V),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,u.Sb)(parseFloat((0,y.U)()?(null!==(z=null===dt||void 0===dt||null===(k=dt.variants)||void 0===k||null===($=k[0])||void 0===$?void 0:$.compare_at_price)&&void 0!==z?z:null===dt||void 0===dt?void 0:dt.compare_at_price)/100:null===ut||void 0===ut?void 0:ut.compare_price)," ",V,null===(F=at.products[0])||void 0===F?void 0:F.currency)}),"56352899156"==V&&(0,d.Nzx)(V)&&ht&&!isNaN(yt)&&0!=yt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(V)?"#343434"==H?(0,d.ub$)(V):H:(0,d.ub$)(V),alignItems:"center",borderRadius:(0,d.v8m)(V)+"px",width:"fit-content",padding:"3px 4px"},children:(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${yt}% ${null!==(I=null===f.m||void 0===f.m||null===(A=f.m[K])||void 0===A?void 0:A.off)&&void 0!==I?I:"off"}`})})]}),(0,d.Nzx)(V)&&ht&&!isNaN(yt)&&0!=yt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(V)?"#343434"==H?(0,d.ub$)(V):H:(0,d.ub$)(V),alignItems:"center",borderRadius:(0,d.v8m)(V)+"px",width:"fit-content",padding:(0,d.Cf)(V)?"3px 6px":"0px"},children:(0,d.Cf)(V)?(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",Y,"important"))},children:`${yt}% ${null!==(R=null===f.m||void 0===f.m||null===(T=f.m[K])||void 0===T?void 0:T.off)&&void 0!==R?R:"off"}`}):(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",(0,d.ogW)(V),"important"))},children:(0,d.rsz)(V)})})]})]})]})}},4669:function(){},4826:function(){},6042:function(){},7136:function(t,e,o){var i=o(9950),r=o(932),n=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,r.A)();(0,i.useContext)(n.h);const s=(0,l.Xd)("whatmoreShopId");return t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"100%":e,overflow:"hidden"}})}},7229:function(){},7509:function(t,e,o){o.d(e,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9130:function(){},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[474],{2375:function(e,t,o){var n=o(4994);t.A=void 0;var r=n(o(9526)),i=o(4414);t.A=(0,r.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},3590:function(e,t,o){var n=o(2375),r=o(1348),i=o(5830),a=o(4414);function s(e){return e<1e3?e:e<1e5?(e/1e3).toFixed(0)+"K":(e/1e5).toFixed(0)+"L"}t.A=function(e){const t=(0,i.Xd)("whatmoreUITheme"),o=(0,i.Xd)("whatmoreShopId"),l=(0,i.Xd)("whatmorePrimaryFont"),c=e.event,d=e.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const u=(0,r.FVo)(o);return"template-icon"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.sIk)(o),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,r.YcK)(o),borderColor:(0,r.Fwt)(o)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(n.A,{sx:{color:(0,r.s0t)(o)+" !important",fontSize:d,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,r.s0t)(o),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",l,"important"),e.style.setProperty("font-size",d,"important"),e.style.setProperty("min-height","0","important"),e.style.setProperty("display","inline","important"),e.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(c.total_views)+" "})})]})})}):"template-text"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.sIk)(o),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,r.YcK)(o),borderColor:(0,r.Fwt)(o)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,r.s0t)(o),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",l,"important"))},style:{fontSize:d,fontWeight:"bold"},children:" "+s(c.total_views)+" views"})})})})}):void 0}},6945:function(e,t,o){o.r(t);var n=o(9950),r=o(340),i=o(5089),a=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),l=o(8603),c=o(9946),d=o(9094),u=o(932),h=o(1941),p=o(5491),f=o.n(p),m=o(5830),_=o(7509),g=o(7136),y=o(1348),w=o(5551),x=o(5620),v=o(1351),k=o(6157),b=o(6641),C=o(1957),j=o(4414);const S=(0,l.A)({key:"whatmore-css-hv"});function A(e){const[t,o,r]=(0,u.A)(),[i,a,s]=(0,h.A)(),l=(0,m.Xd)("whatmoreShopId"),d=e.events,p=e.onClick,f=r*(0,y.kcl)(l),_=(0,y.cbh)(l),[b,S]=(0,n.useState)(_?d.length:f),{whatmoreWidgetSourceDetails:A}=(0,n.useContext)(w.B);return(0,n.useEffect)((()=>{b<=f&&S((e=>e+f))}),[f]),(0,j.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,j.jsx)("div",{style:{width:"8968077397"===l&&d.length<4?"200px":s,height:"fit-content"},children:(0,j.jsx)(c.RC,{slidesPerView:d.length>1?"51394281658"==l||"55820812447"==l?2:f:1,initialSlide:d.length>1&&"51394281658"!=l&&"55820812447"!=l?1:0,centeredSlides:"51394281658"!=l&&"55820812447"!=l,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==l?1:.5,onSlideChange:e=>{(0,v.UM)({userInteractionType:k.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:A}),e.realIndex>e.previousIndex&&S((e=>e+f))},loop:_&&d.length>2,children:d.map(((e,t)=>t<=b&&(0,j.jsx)(c.qr,{children:({isActive:t,isPrev:o,isNext:n,isVisible:r})=>o||n||t?(0,y.DmD)(l)?(0,j.jsx)(C.A,{isOnFocus:t&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,j.jsx)(x.A,{isOnFocus:("51394281658"==l||"55820812447"==l||t)&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,j.jsx)(g.A,{})},"whatmore-event-tile-portrait-"+e.index)))})})})}function P(e){const[t,o,r,i]=(0,u.A)(),[a,s]=(0,n.useState)(-1),l=(0,m.Xd)("whatmoreShopId"),h=e.onClick,p=e.events,_=(0,y.cbh)(l),[b,S]=(0,n.useState)(_?p.length:r),A="8968077397"==l||"19501891"==l?Math.floor(Math.min(r,p.length)):Math.min(r,p.length),P=Math.floor(Math.min(4,p.length)),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)(w.B),F=(0,n.useRef)(null);return(0,n.useEffect)((()=>{if(F.current){const e="8968077397"===l&&p.length>=4?.7:(0,y.fHt)(l),t=o*A*e+"px";p.length<4||"8968077397"===l?F.current.style.setProperty("width",t,"important"):F.current.style.width=t}}),[o,A,l,b,p.length]),(0,n.useEffect)((()=>{b<=r&&S((e=>e+r))}),[r]),(0,j.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:i+"px",paddingRight:i+"px"},className:"whatmore-events-carousel-landscape",children:(0,j.jsx)("div",{ref:F,style:{height:"100%"},children:(0,j.jsx)(c.RC,{slidesPerView:"8968077397"==l?P:A,watchSlidesProgress:!0,modules:[d.Vx],navigation:!0,slidesPerGroup:"8968077397"==l||"19501891"==l?Math.min(2,p.length):parseInt(A),onSlideChange:e=>{(0,v.UM)({userInteractionType:k.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&S((e=>e+r))},spaceBetween:0,loop:(_||"8968077397"==l||"19501891"==l)&&p.length>4,style:{height:"100%"},children:p.map(((e,t)=>{const o=f()((()=>s(t)),300);return t<=b&&(0,j.jsx)(c.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:({isActive:o,isPrev:n,isNext:r,isVisible:i})=>i||"8968077397"==l||"19501891"==l&&(n||r)?(0,y.DmD)(l)?(0,j.jsx)(C.A,{isOnFocus:t==a,playOnUnfocus:!(0,y.aO7)(l)||t==parseInt(A/2)&&-1==a,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,j.jsx)(x.A,{isOnFocus:t==a,playOnUnfocus:!(0,y.aO7)(l)||t==parseInt(A/2)&&-1==a,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,j.jsx)(g.A,{})},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,l]=(0,h.A)(),[c]=(0,m.QN)("whatmoreShopId"),[d]=(0,m.QN)("whatmorePrimaryColor"),[u]=(0,m.QN)("whatmoreTitleFont"),p="portrait"==t?(0,m.Xd)("whatmoreTitleFontSizePortrait"):(0,m.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,n.useContext)(w.B),g=(0,m.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:x}=(0,n.useContext)(w.B),v=e.events,k=e.onClick,C=u;function I(e){k(e)}return(0,n.useEffect)((()=>{(0,b.Fk)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete i.Ay.styles.global,(0,j.jsx)(s.C,{value:S,children:(0,j.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,j.jsx)(r.s,{theme:i.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,j.jsxs)(_.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||x?(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(c),lineHeight:(0,y.L0y)(c),letterSpacing:(0,y.l3V)(c)},children:x?"W"!==g?g:"":e.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===t?(0,j.jsx)(P,{events:v,onClick:I}):(0,j.jsx)(A,{events:v,onClick:I})]})})})})}},7035:function(e,t,o){o.d(t,{m:function(){return n}});const n={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"}}},7973:function(e,t,o){o.d(t,{B:function(){return a},b:function(){return i}});var n=o(1348),r=o(5830);function i(e,t=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(o)?"STRNV8MHJTF"==o?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}}}]);
|
package/static/js/{carousel-template-b.2e550617.chunk.js → carousel-template-b.dc5dc194.chunk.js}
RENAMED
|
@@ -1 +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,f=!("portrait"!=e||!(s>=481)),u=x/100*1.3*.5,m=x/100;var y=Math.min(s,i),[g,w,v,C]=[.6*y*(16/9),.6*y,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*u,e=g*u;[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(f){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,f=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 u=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(u))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:x+"px"}},"star-icon"+e))),u-Math.floor(u)>.2?(0,s.jsx)(o.A,{sx:{color:a,fontSize:x+"px"}},"star-half-icon"):u-Math.floor(u)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon"),[...Array(Math.floor(5-u))].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",u,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"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),f=i.n(x),u=i(5830),m=i(7509),y=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),S=i(6594),k=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(852),i.e(176),i.e(939)]).then(i.bind(i,9408))));var O=function(t){var e,i,o,r;const l=(0,u.QN)("whatmoreUITheme");var[s,a]=(0,c.A)();const[d]=(0,u.QN)("whatmorePrimaryFont"),[p]=(0,u.QN)("whatmoreSecondaryColorShade900"),[h]=(0,u.QN)("whatmoreShopId"),[x,f]=(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,N=m.products.length,{whatmoreIsPreviewMode:T}=(0,n.useContext)(g.B);if(0==N)return(0,_.jsx)(_.Fragment,{});(0,n.useEffect)((()=>{(0,y.w4b)(h)&&(0,S.fu)(m,(0,y.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,y.NCy)(h),h);C(e),O(!0)})()}),[]);const L=T,z=.3*a,B=z+"px",E=z+"px",W=.05*a*(0,y.PpQ)(h)+"px",X=.07*a*(0,y.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,y.YcK)(h)?"2px":(0,y.YcK)(h),borderColor:"28062416930"===h?"white":"white"===(0,y.Fwt)(h)?p:(0,y.Fwt)(h)},children:"28062416930"!==h&&(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(h),"important")},src:(0,k.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,y.vw2)(h)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":(0,y.vw2)(h)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,_.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.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,S.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,y.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,S.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,y.nP1)(h)||L&&"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),N=i(8141);function T(t){const[e,i,n,o,r]=(0,c.A)(),l=(0,u.Xd)("whatmoreUITheme"),s=(0,u.Xd)("whatmoreShowViews"),a=(0,u.Xd)("whatmoreShopId"),d=t.PRODUCT_BOX_HEIGHT,p=t.PRODUCT_BOX_HEIGHT_IN_PX,h=t.PRODUCT_BOX_MARGIN,[x,f,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)(N.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,y.YcK)(a),borderColor:(0,y.Fwt)(a),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,_.jsx)("div",{ref:x,children:f&&(0,y.imx)(a)?(0,_.jsx)(O,{event:g,onClick:()=>{var e,i;(0,y.gq8)(a)?window.location.href=(i=null===(e=g.products)||void 0===e?void 0:e[0],(0,y.BLb)(a)?i.product_link+"?"+(0,y.VCz)(a)+"&"+(0,y.Spk)(a)+"&"+(0,y.$lz)(a):i.product_link):t.onClick(g)}}):(0,_.jsx)("div",{height:"20px"})})}):(0,_.jsx)(_.Fragment,{})]})})}var L=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,u.Xd)("whatmoreUITheme"),x=(0,u.Xd)("whatmoreShopId"),f=(0,u.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,y.n5O)(x))&&void 0!==o&&o,P=(0,y.nP1)(x)?.7:.8,I=r*P+"px",S=1-P,k=r*S,F=r*S+"px",A=r*S*.1,M=(0,y.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,y.YcK)(x),borderColor:(0,y.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,y.Q$)(x)&&(0,R.Hl)(g,x)&&"56411783377"!==x?(0,_.jsx)("div",{style:{width:"100%",height:F,backgroundColor:f}}):(0,_.jsx)(_.Fragment,{})]}),(0,y.Q$)(x)&&(0,_.jsx)(T,{event:g,isOnFocus:C,PRODUCT_BOX_HEIGHT:k,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,u.Xd)("whatmoreShopId"),p=t.events,x=t.onClick,f=o*(0,y.kcl)(a),m=(0,y.cbh)(a),[w,v]=(0,n.useState)(Math.min(p.length,m?p.length:f+5)),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{w<f+5&&v((t=>Math.min(t+5,p.length)))}),[f,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:f: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,y.cbh)(a),children:p.map(((t,e)=>e<=w&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:i,isNext:n,isVisible:o})=>(0,_.jsx)(L,{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,u.Xd)("whatmoreShopId"),h=t.onClick,x=t.events,m=(0,y.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,y.If9)(a),loop:(0,y.cbh)(a),children:x.map(((t,e)=>{const i=f()((()=>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)(L,{isOnFocus:e==l,playOnUnfocus:!(0,y.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,u.QN)("whatmorePrimaryColor"),[p]=(0,u.QN)("whatmoreShopId"),[c]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,n.useContext)(g.B),y=t.events,w=t.onClick,v=c,C=(0,u.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:f,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:y,onClick:b}):(0,_.jsx)(X,{events:y,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})},7973:function(t,e,i){i.d(e,{B:function(){return l},b:function(){return r}});var n=i(1348),o=i(5830);function r(t,e=""){const i=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(i)?"STRNV8MHJTF"==i?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 i=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(i)?"image":null!==o&&void 0!==o&&o.test(i)?"video":void 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(){}}]);
|
|
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,f=!("portrait"!=e||!(s>=481)),u=x/100*1.3*.5,m=x/100;var y=Math.min(s,i),[g,w,v,C]=[.6*y*(16/9),.6*y,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*u,e=g*u;[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(f){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,f=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 u=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(u))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:x+"px"}},"star-icon"+e))),u-Math.floor(u)>.2?(0,s.jsx)(o.A,{sx:{color:a,fontSize:x+"px"}},"star-half-icon"):u-Math.floor(u)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon"),[...Array(Math.floor(5-u))].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",u,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"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),f=i.n(x),u=i(5830),m=i(7509),y=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),S=i(6594),k=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(413),i.e(939)]).then(i.bind(i,9408))));var O=function(t){var e,i,o,r;const l=(0,u.QN)("whatmoreUITheme");var[s,a]=(0,c.A)();const[d]=(0,u.QN)("whatmorePrimaryFont"),[p]=(0,u.QN)("whatmoreSecondaryColorShade900"),[h]=(0,u.QN)("whatmoreShopId"),[x,f]=(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,N=m.products.length,{whatmoreIsPreviewMode:T}=(0,n.useContext)(g.B);if(0==N)return(0,_.jsx)(_.Fragment,{});(0,n.useEffect)((()=>{(0,y.w4b)(h)&&(0,S.fu)(m,(0,y.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,y.NCy)(h),h);C(e),O(!0)})()}),[]);const L=T,z=.3*a,B=z+"px",E=z+"px",W=.05*a*(0,y.PpQ)(h)+"px",X=.07*a*(0,y.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,y.YcK)(h)?"2px":(0,y.YcK)(h),borderColor:"28062416930"===h?"white":"white"===(0,y.Fwt)(h)?p:(0,y.Fwt)(h)},children:"28062416930"!==h&&(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(h),"important")},src:(0,k.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,y.vw2)(h)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":(0,y.vw2)(h)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,_.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.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,S.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,y.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,S.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,y.nP1)(h)||L&&"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),N=i(8141);function T(t){const[e,i,n,o,r]=(0,c.A)(),l=(0,u.Xd)("whatmoreUITheme"),s=(0,u.Xd)("whatmoreShowViews"),a=(0,u.Xd)("whatmoreShopId"),d=t.PRODUCT_BOX_HEIGHT,p=t.PRODUCT_BOX_HEIGHT_IN_PX,h=t.PRODUCT_BOX_MARGIN,[x,f,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)(N.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,y.YcK)(a),borderColor:(0,y.Fwt)(a),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,_.jsx)("div",{ref:x,children:f&&(0,y.imx)(a)?(0,_.jsx)(O,{event:g,onClick:()=>{var e,i;(0,y.gq8)(a)?window.location.href=(i=null===(e=g.products)||void 0===e?void 0:e[0],(0,y.BLb)(a)?i.product_link+"?"+(0,y.VCz)(a)+"&"+(0,y.Spk)(a)+"&"+(0,y.$lz)(a):i.product_link):t.onClick(g)}}):(0,_.jsx)("div",{height:"20px"})})}):(0,_.jsx)(_.Fragment,{})]})})}var L=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,u.Xd)("whatmoreUITheme"),x=(0,u.Xd)("whatmoreShopId"),f=(0,u.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,y.n5O)(x))&&void 0!==o&&o,P=(0,y.nP1)(x)?.7:.8,I=r*P+"px",S=1-P,k=r*S,F=r*S+"px",A=r*S*.1,M=(0,y.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,y.YcK)(x),borderColor:(0,y.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,y.Q$)(x)&&(0,R.Hl)(g,x)&&"56411783377"!==x?(0,_.jsx)("div",{style:{width:"100%",height:F,backgroundColor:f}}):(0,_.jsx)(_.Fragment,{})]}),(0,y.Q$)(x)&&(0,_.jsx)(T,{event:g,isOnFocus:C,PRODUCT_BOX_HEIGHT:k,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,u.Xd)("whatmoreShopId"),p=t.events,x=t.onClick,f=o*(0,y.kcl)(a),m=(0,y.cbh)(a),[w,v]=(0,n.useState)(Math.min(p.length,m?p.length:f+5)),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{w<f+5&&v((t=>Math.min(t+5,p.length)))}),[f,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:f: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,y.cbh)(a),children:p.map(((t,e)=>e<=w&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:i,isNext:n,isVisible:o})=>(0,_.jsx)(L,{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,u.Xd)("whatmoreShopId"),h=t.onClick,x=t.events,m=(0,y.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,y.If9)(a),loop:(0,y.cbh)(a),children:x.map(((t,e)=>{const i=f()((()=>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)(L,{isOnFocus:e==l,playOnUnfocus:!(0,y.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,u.QN)("whatmorePrimaryColor"),[p]=(0,u.QN)("whatmoreShopId"),[c]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,n.useContext)(g.B),y=t.events,w=t.onClick,v=c,C=(0,u.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:f,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:y,onClick:b}):(0,_.jsx)(X,{events:y,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})},7973:function(t,e,i){i.d(e,{B:function(){return l},b:function(){return r}});var n=i(1348),o=i(5830);function r(t,e=""){const i=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(i)?"STRNV8MHJTF"==i?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 i=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(i)?"image":null!==o&&void 0!==o&&o.test(i)?"video":void 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,41 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[485],{22:function(e,t,o){o.d(t,{$S:function(){return l},_:function(){return r},b4:function(){return i},dl:function(){return n},nN:function(){return c},tn:function(){return s},vF:function(){return a}});const r="device_type",n="device_mode",i="mobile",a="tablet",l="desktop",s="portrait",c="landscape"},932:function(e,t,o){var r=o(5830),n=o(1941),i=o(22),a=o(1348);t.A=function(e){const[t,o,l]=(0,n.A)(),[s]=(0,r.QN)("whatmoreLandscapePadding"),[c]=(0,r.QN)("whatmoreShopId"),[d]=(0,r.QN)("whatmoreVideoTileSize"),[u]=(0,r.QN)("whatmoreVideoTileSizePortrait"),p=l>=1025,h="portrait"==t?u:d,f=!("portrait"!=t||!(l>=481)),m=h/100*1.3*.5,v=h/100;var y=Math.min(l,o),[x,_,g,w]=[.6*y*(16/9),.6*y,1.4,0];function b(e){return Math.round(10*e)/10}var k={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(p){const e=_*m,t=x*m;[x,_,g,w]=[t,e,(l-2*s-2*(0,a.$du)(c))/(1.1*e),s],k[i._]=i.$S,k[i.dl]=i.nN}else if(f){var j=.8*_,C=.8*x;"portrait"==t?(j*=v,C*=v,[x,_,g,w]=[C,j,b(l/(1.2*j)),0],k[i._]=i.vF,k[i.dl]=i.tn):([x,_,g,w]=[C,j,(l-2*s)/(1.1*j),s],k[i._]=i.vF,k[i.dl]=i.nN)}else{j=_,C=x;"portrait"==t?(j=j*v*.9,C=C*v*.9,[x,_,g,w]=[C,j,b(l/(1.15*j)),0],k[i._]=i.b4,k[i.dl]=i.tn):(j=.7*_,C=.7*x,[x,_,g,w]=[C,j,(l-2*s)/(1.1*j),s],k[i._]=i.b4,k[i.dl]=i.nN)}return[x,_,g,w,k]}},4063:function(e,t,o){var r=o(9950),n=o(3247),i=o(3731),a=o(5830),l=o(5144),s=o(4414);t.A=function(e){var t,o;const[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),[h]=(0,a.QN)("whatmoreSecondaryColor"),[f]=(0,a.QN)("whatmoreSecondaryColorShade600"),[m]=(0,a.QN)("whatmoreSecondaryColorShade300"),[v]=(0,a.QN)("whatmorePrimaryFont"),y=e.onClick,x=e.icon,_=null!==(t=e.borderRadius)&&void 0!==t?t:"sm",g=null!==(o=e.baseFontSize)&&void 0!==o?o:12;return(0,s.jsxs)(n.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:_,backgroundColor:c?m:h,animation:u?l.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:e=>{e.stopPropagation(),p(!0),y()},onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},children:[(0,s.jsx)(i.E,{fontSize:g+"px !important",fontWeight:"normal",sx:{fontFamily:v+" !important",color:"white !important"},children:"VIEW MORE"}),x]})}},4669:function(){},4826:function(){},5144:function(e,t,o){o.d(t,{jd:function(){return n},so:function(){return i}});var r=o(8283);const n=`\n ${r.i7`
|
|
2
|
+
0% { transform: scale(1); }
|
|
3
|
+
50%, { transform: scale(0.95); }
|
|
4
|
+
100% { transform: scale(1); }
|
|
5
|
+
`} 0.2s linear;\n`,i=(r.i7`
|
|
6
|
+
100% {
|
|
7
|
+
-webkit-transform: rotate(360deg);
|
|
8
|
+
transform:rotate(360deg);
|
|
9
|
+
}
|
|
10
|
+
`,r.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 ${r.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`)},7035:function(e,t,o){o.d(t,{m:function(){return r}});const r={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"}}},7136:function(e,t,o){var r=o(9950),n=o(932),i=o(7509),a=o(5830),l=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,r.useContext)(i.h);const s=(0,a.Xd)("whatmoreShopId");return e.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"100%":t,overflow:"hidden"}})}},7229:function(){},7509:function(e,t,o){o.d(t,{h:function(){return r}});const r=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9418:function(e,t,o){o.r(t),o.d(t,{default:function(){return O}});var r=o(9950),n=(o(4826),o(340)),i=o(5873),a=o(5089),l=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),s=o(8603),c=o(932),d=o(1941),u=o(5491),p=o.n(u),h=o(5830),f=o(7509),m=o(7136),v=o(1348),y=o(5551),x=o(1351),_=o(6157),g=o(9879),w=o(8538),b=o(6594),k=o(22),j=o(6613),C=o(8149),S=o(7740),M=o(7035),P=o(4414);var N=function(e){var t,o,n,i,a,l,s,d,u,p,m,y,x,_,N,A;const[I,z,E,F,O]=(0,c.A)(),T=(0,h.Xd)("whatmoreShopId"),D=(0,h.Xd)("whatmoreLandingLocationType"),R="portrait"===O[k.dl],W=(R?1.076*z*(0,v.HWj)(T):z*(0,v.N_4)(T))+"px",X=(R?1.076*z*(0,v.HWj)(T):z*(0,v.N_4)(T))+"px",B=(R?.965*z*(0,v.HWj)(T):.859*z*(0,v.N_4)(T))+"px",[L,Y]=(0,r.useState)(e.event),$=(0,h.Xd)("whatmoreSecondaryColor");var V=(0,r.useContext)(f.h);const Q=null===(t=e.isOnFocus)||void 0===t||t,U=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,H=e.onClick,G=(0,h.Xd)("whatmoreUITheme"),J=(0,h.Xd)("websiteLanguage"),K=null!==(n=e.animateOnFocus&&(0,v.n5O)(T))&&void 0!==n&&n,[q,Z]=(0,r.useState)(!1),ee=(0,h.Xd)("whatmorePrimaryFont"),te=null!==(i=null===(a=L.products)||void 0===a?void 0:a.find((e=>"active"==e.product_status)))&&void 0!==i?i:null===(l=L.products)||void 0===l?void 0:l[0],oe=Math.round(+(null===te||void 0===te?void 0:te.price)),re=Math.round(+(null===te||void 0===te?void 0:te.compare_price)),ne=re&&0!=re&&re>oe?Math.round((re-oe)/re*100):NaN,[ie,ae]=(0,r.useState)(ne),[le,se]=(0,r.useState)();return(0,r.useEffect)((()=>{(0,v.w4b)(T)&&(0,b.fu)(L,(0,v.NCy)(T),T).then((e=>{var t,o,r;Y(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.discount)&&ae(null===e||void 0===e||null===(r=e.products[0])||void 0===r?void 0:r.discount),Z(!0)}));(async()=>{const e=await(0,C.M)(te,(0,v.NCy)(T),T);se(e),Z(!0)})()}),[]),(0,P.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",V.tileTopMargin+"px"),e.style.setProperty("margin-bottom",V.tileBottomMMargin+"px"))},className:K&&!R?Q?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:z},onClick:()=>{H(L)},children:[(0,P.jsx)("div",{style:{borderRadius:"round"==G?"5%":"0px",boxShadow:"round"==G?"0px 0px 5px 0px #B0B0B0":null,height:I,borderWidth:(0,v.YcK)(T),borderColor:(0,v.Fwt)(T),overflow:"hidden"},children:(0,P.jsx)(g.A,{height:(0,v.u06)(T)+" !important",width:"100%",url:L.thumbnail_image,isPlaying:Q||U||(0,j.At)(),event:L})}),(0,P.jsxs)("div",{className:"wht-prod-info",style:{display:(0,v.AmR)(T)?"flex":"none",flexDirection:"column",padding:"12px 4px",gap:"5px",alignItems:"flex-start"},children:[(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.m5c)(T),"important"),e.style.setProperty("font-size","45034766485"==T&&"product"==D?"9px":W),e.style.setProperty("line-height","120%"),e.style.setProperty("font-family",ee,"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,w.v)(null===te||void 0===te?void 0:te.title)}),q&&(0,v.Nzx)(T)&&(0,P.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,v.vw2)(T)?"row":"row-reverse",justifyContent:(0,v.vw2)(T)?"flex-start":"flex-end"},children:[(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.m5c)(T),"important"),e.style.setProperty("font-size","45034766485"==T&&"product"==D?"8px":X),e.style.setProperty("font-family",ee,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.i6j)(T)?"normal":"bold"},children:(0,b.Sb)(parseFloat((0,S.U)()?(null!==(s=null===le||void 0===le||null===(d=le.variants)||void 0===d||null===(u=d[0])||void 0===u?void 0:u.price)&&void 0!==s?s:null===le||void 0===le?void 0:le.price)/100:(null===te||void 0===te?void 0:te.price)>0?null===te||void 0===te?void 0:te.price:null===te||void 0===te?void 0:te.price_max)," ",T,null===(p=L.products[0])||void 0===p?void 0:p.currency)}),!isNaN(re)&&re>oe&&(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.gld)(T),"important"),e.style.setProperty("font-size",X),e.style.setProperty("font-family",ee,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,b.Sb)(parseFloat((0,S.U)()?(null!==(m=null===le||void 0===le||null===(y=le.variants)||void 0===y||null===(x=y[0])||void 0===x?void 0:x.compare_at_price)&&void 0!==m?m:null===le||void 0===le?void 0:le.compare_at_price)/100:null===te||void 0===te?void 0:te.compare_price)," ",T,null===(_=L.products[0])||void 0===_?void 0:_.currency)})]}),(0,v.Nzx)(T)&&!isNaN(ie)&&0!=ie&&q&&(0,P.jsx)("div",{style:{display:(0,v.QNr)(T)?"flex":"none",backgroundColor:"green"===(0,v.ub$)(T)?"#343434"===$?(0,v.ub$)(T):$:(0,v.ub$)(T),alignItems:"center",borderRadius:(0,v.v8m)(T)+"px",width:"fit-content",padding:(0,v.Cf)(T)?"3px 6px":"0px"},children:(0,v.Cf)(T)?(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.BRY)(T),"important"),e.style.setProperty("font-size",B,"important"),e.style.setProperty("font-family",ee,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${ie}% ${null!==(N=null===M.m||void 0===M.m||null===(A=M.m[J])||void 0===A?void 0:A.off)&&void 0!==N?N:"off"}`}):(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v._zx)(T),"important"),e.style.setProperty("font-size",B,"important"),e.style.setProperty("font-family",(0,v.ogW)(T),"important"))},children:(0,v.rsz)(T)})})]})]})},A=o(6641),I=o(4063);const z=(0,s.A)({key:"whatmore-css-hv"});function E(e){const[t,o,n]=(0,c.A)(),i=(0,h.Xd)("whatmoreShopId"),a=(0,h.Xd)("whatmoreLandingLocationType"),l=e.events,s=e.onClick,{whatmoreWidgetSourceDetails:d}=(0,r.useContext)(y.B),u=Math.ceil(n),p=2*u,[f,g]=(0,r.useState)(p),[w,b]=(0,r.useState)(2*u),k=0===(0,v.If9)(i)?24:(0,v.If9)(i),[j,C]=(0,r.useState)({touchX:0,touchY:0}),S=()=>(0,P.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),M=()=>(0,P.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),A=e=>{if("next"===e){const e=2;b((e=>Math.min(e+Math.floor(n),l.length+u+1))),g((t=>Math.min(t+e,l.length+u+1)))}else b((e=>Math.max(e-Math.floor(n),p)));(0,x.UM)({userInteractionType:_.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:d})};return(0,P.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==i&&"product"==a?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:e=>{C({touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchEnd:e=>{var t,o,r,n;const i=(null===(t=e.changedTouches)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.clientX)-j.touchX,a=(null===(r=e.changedTouches)||void 0===r||null===(n=r[0])||void 0===n?void 0:n.clientY)-j.touchY;Math.sqrt(i**2+a**2)>10&&Math.abs(i)>Math.abs(a)&&A(i>0?"prev":"next")},children:[(0,v.JSQ)(i)&&(0,P.jsxs)(P.Fragment,{children:[w<=l.length+u&&(0,P.jsx)("div",{onClick:()=>A("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,P.jsx)(S,{})}),w>2*u&&(0,P.jsx)("div",{onClick:()=>A("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,P.jsx)(M,{})})]}),(0,P.jsx)("div",{style:{display:"flex",gap:k,transform:`translateX(-${(w-p)*(o+k)}px)`,transition:"transform 0.4s ease-in-out"},children:l.map(((e,t)=>t<f?(0,P.jsx)("div",{children:(0,P.jsx)(N,{isOnFocus:t<=w-u-1&&t>=Math.max(0,w-p),playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>s(e)})},`whatmore-carousel-tile-${t}`):(0,P.jsx)(m.A,{})))})]})}function F(e){const[t,o,n,i]=(0,c.A)(),[a,l]=(0,r.useState)(-1),s=(0,h.Xd)("whatmoreShopId"),[d,u]=(0,r.useState)("next"),f=e.onClick,m=e.events,{whatmoreWidgetSourceDetails:g}=(0,r.useContext)(y.B),w=Math.min(Math.ceil(n),m.length),[b,k]=(0,r.useState)(0),j=0===(0,v.If9)(s)?24:(0,v.If9)(s),C=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:I,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),S=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:A,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,r.useEffect)((()=>{b<=w&&k((e=>e+w))}),[w]);const M=()=>{l(-1)},A=()=>{b!==w&&(u("prev"),k((e=>Math.max(Math.ceil(e-n),w))),(0,x.UM)({userInteractionType:_.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:g}))},I=()=>{b>m.length+n||(u("next"),k((e=>Math.floor(e+n))),(0,x.UM)({userInteractionType:_.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:g}))},z=b>m.length?m.length-w+1:b-w,E=b>=m.length?m.length:z+w,F=m.slice(z,E);return(0,P.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${i}px`,paddingRight:`${i}px`},children:[b!==w&&(0,P.jsx)("div",{style:{position:"absolute",left:i+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,P.jsx)(S,{})}),(0,P.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:j+"px",width:o*n*(0,v.fHt)(s)+"px",justifyContent:m.length>w?"flex-start":"center",overflow:"auto"},children:F.map(((e,t)=>{const o=`whatmore-event-tile-landscape-${e.index}${t===w-1?"-last":""}`,r=t===a;return(0,P.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===d?"next":"prev"),onMouseEnter:()=>(e=>{const t=p()((()=>l(e)),300);return t(),t.cancel})(t),onMouseLeave:M,children:(0,P.jsx)(N,{isOnFocus:r,playOnUnfocus:!(0,v.aO7)(s)||t==parseInt(w/2)&&-1==a,animateOnFocus:!0,event:e,onClick:()=>(e=>{f(e)})(e)})},o)}))}),b<m.length&&(0,P.jsx)("div",{style:{position:"absolute",zIndex:1,top:"50%",right:i+"px",transform:"translateY(-65%)"},children:(0,P.jsx)(C,{})})]})}var O=function(e){const[t,o,s]=(0,d.A)(),[c]=(0,h.QN)("whatmoreShopId"),[u]=(0,h.QN)("whatmorePrimaryColor"),[p]=(0,h.QN)("whatmoreSecondaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),x="portrait"==t?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:_}=(0,r.useContext)(y.B),g=((0,h.Xd)("isInDesignMode"),(0,h.Xd)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:w}=(0,r.useContext)(y.B),b=e.events,k=e.onClick,j=m;function C(e){k(e)}return(0,r.useEffect)((()=>{(0,A.Fk)("Video shopping powered by Whatmore!")}),[]),(0,r.useEffect)((()=>{i.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete a.Ay.styles.global,(0,P.jsx)(l.C,{value:z,children:(0,P.jsx)("div",{className:"whatmore-carousel-events",children:(0,P.jsx)(n.s,{theme:a.Ay,cssVarsRoot:_,resetCSS:!1,children:(0,P.jsxs)(f.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,P.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==c?"flex-start":"center"},children:(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",j,"important"),e.style.setProperty("font-size",x+"px"))},style:{color:u,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.Odx)(c),lineHeight:(0,v.L0y)(c),letterSpacing:(0,v.l3V)(c)},children:w?"W"!==g?g:"":e.heading})}):(0,P.jsx)(P.Fragment,{}),"landscape"===t?(0,P.jsx)(F,{events:b,onClick:C}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(E,{events:"45034766485"==c?b.slice(0,5):b,onClick:C}),"45034766485"==c&&(0,P.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,P.jsx)(I.A,{baseFontSize:.5*x,onClick:()=>C(null===b||void 0===b?void 0:b[5])})})]})]})})})})}},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{7035:function(e,t,o){o.d(t,{m:function(){return r}});const r={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"}}},7178:function(e,t,o){o.r(t);var r=o(9950),n=o(340),a=o(5089),i=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),c=o(8603),l=o(9946),d=o(9094),u=o(932),h=o(1941),_=o(5491),p=o.n(_),f=o(5830),m=o(7509),w=o(7136),g=o(1348),y=o(5551),k=o(1351),v=o(6157),x=o(6641),b=o(1957),C=o(4414);const S=(0,c.A)({key:"whatmore-css-hv"});function A(e){const[t,o,n]=(0,u.A)(),[a,i,s]=(0,h.A)(),c=(0,f.Xd)("whatmoreShopId"),d=e.events,_=e.onClick,p=n*(0,g.kcl)(c),m=(0,g.cbh)(c),[x,S]=(0,r.useState)(m?d.length:p),{whatmoreWidgetSourceDetails:A}=(0,r.useContext)(y.B);return(0,r.useEffect)((()=>{x<=p&&S((e=>e+p))}),[p]),(0,C.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,C.jsx)(l.RC,{slidesPerView:d.length>1?p:1,initialSlide:d.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,k.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:A}),e.realIndex>e.previousIndex&&S((e=>e+p))},loop:m,children:d.map(((e,t)=>t<=x&&(0,C.jsx)(l.qr,{children:({isActive:t,isPrev:o,isNext:r,isVisible:n})=>o||r||t?(0,C.jsx)(b.A,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{_(e)}}):(0,C.jsx)(w.A,{})},"whatmore-event-tile-portrait-"+e.index)))})})})}function j(e){const[t,o,n,a]=(0,u.A)(),[i,s]=(0,r.useState)(-1),c=(0,f.Xd)("whatmoreShopId"),h=e.onClick,_=e.events,m=(0,g.cbh)(c),[x,S]=(0,r.useState)(m?_.length:n),A=Math.min(n,_.length),{whatmoreWidgetSourceDetails:j}=(0,r.useContext)(y.B),P=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(P.current){const e=o*A*(0,g.fHt)(c)+"px";_.length<4?P.current.style.setProperty("width",e,"important"):P.current.style.width=e}}),[o,A,c,x,_.length]),(0,r.useEffect)((()=>{x<=n&&S((e=>e+n))}),[n]),(0,C.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:a+"px",paddingRight:a+"px"},className:"whatmore-events-carousel-landscape",children:(0,C.jsx)("div",{ref:P,style:{height:"100%"},children:(0,C.jsx)(l.RC,{slidesPerView:A,watchSlidesProgress:!0,modules:[d.Vx],navigation:!0,slidesPerGroup:parseInt(A),onSlideChange:e=>{(0,k.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j}),e.realIndex>e.previousIndex&&S((e=>e+n))},spaceBetween:0,loop:m&&_.length>4,style:{height:"100%"},children:_.map(((e,t)=>{const o=p()((()=>s(t)),300);return t<=x&&(0,C.jsx)(l.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:({isActive:o,isPrev:r,isNext:n,isVisible:a})=>a||r||n?(0,C.jsx)(b.A,{isOnFocus:t==i,playOnUnfocus:!(0,g.aO7)(c)||t==parseInt(A/2)&&-1==i,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,C.jsx)(w.A,{})},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,c]=(0,h.A)(),[l]=(0,f.QN)("whatmoreShopId"),[d]=(0,f.QN)("whatmorePrimaryColor"),[u]=(0,f.QN)("whatmoreTitleFont"),_="portrait"==t?(0,f.Xd)("whatmoreTitleFontSizePortrait"):(0,f.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:p}=(0,r.useContext)(y.B),w=(0,f.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:k}=(0,r.useContext)(y.B),v=e.events,b=e.onClick,P=u;function I(e){b(e)}return(0,r.useEffect)((()=>{(0,x.Fk)("Video shopping powered by Whatmore!")}),[]),(0,r.useEffect)((()=>{i.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete a.Ay.styles.global,(0,C.jsx)(s.C,{value:S,children:(0,C.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,C.jsx)(n.s,{theme:a.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,C.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||k?(0,C.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",P,"important"),e.style.setProperty("font-size",_+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,g.Odx)(l),lineHeight:(0,g.L0y)(l),letterSpacing:(0,g.l3V)(l)},children:k?"W"!==w?w:"":e.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===t?(0,C.jsx)(j,{events:v,onClick:I}):(0,C.jsx)(A,{events:v,onClick:I})]})})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[306,907],{2209:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.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,o){var i=o(7891),r=o(8454),n=o(3781),l=o(5830),s=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,p]=(0,l.QN)("productRatings"),c=(0,l.Xd)("whatmorePrimaryFont"),u=t.productId,y=t.fontSize,h=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,s.jsx)(s.Fragment,{});const v=d[u].avgRating,m=d[u].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(v))].map(((t,e)=>(0,s.jsx)(i.A,{sx:{color:a,fontSize:y+"px"}},"star-icon"+e))),v-Math.floor(v)>.2?(0,s.jsx)(r.A,{sx:{color:a,fontSize:y+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(n.A,{sx:{color:a,fontSize:y+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:y+"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"==o?"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*y+"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",v,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",h,"important"),t.style.setProperty("font-size",.8*y+"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+")"]})})]})})}},3330:function(t,e,o){o.d(e,{initializeGA:function(){return u},sendVideoViewEventToGA:function(){return y}});var i,r=o(2595),n=o(7732),l=o(1348);const s="Whatmore Video Shopping",a=null!==(i="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==i&&i,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},c={homepage:"Home Page",product_page:"Product Page"};async function u(t){if((0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(n.Ay.initialize((0,l.xIo)(t)),a&&console.debug("Whatmore: initialized GA4")),(0,l.B6P)(t)&&null!==(0,l.jWS)(t)){const e=(0,l.Gc6)(t);r.Ay.initialize((0,l.jWS)(t),{useExistingGa:e}),a&&console.debug("Whatmore: initialized GA3")}}async function y(t,e,o){(0,l.B6P)(t)&&null!==(0,l.jWS)(t)&&(r.Ay.event({category:s,action:d.video_view,label:c[e]+":"+p[o]}),a&&console.debug("Whatmore: pushed view event to GA3")),(0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(n.Ay.event({category:s,action:d.video_view+":"+c[e]+":"+p[o],value:1,nonInteraction:!1}),a&&console.debug("Whatmore: pushed view event to GA4"))}},3781:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.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")},7458:function(t,e,o){o.d(e,{P:function(){return i}});const i=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){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.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")},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return n}});var i=o(1348),r=o(5830);function n(t,e=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(o)?"STRNV8MHJTF"==o?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 o=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(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}},8454:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.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")},9406:function(t,e,o){o.r(e),o.d(e,{default:function(){return V}});var i=o(9950),r=o(340),n=o(5089),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(9946),p=o(9094),c=o(1941),u=o(5830),y=o(7509),h=o(7136),v=o(1348),m=o(5551),f=o(1351),x=o(6157),g=o(6641),w=o(3080),P=o(932),j=(o(4826),o(22)),b=o(6594),S=o(7740),A=o(8538),C=o(8149),N=o(3771),z=o(3936),k=o(7035),I=o(4414);var _=function(t){var e,o,r,n,l,s,a,d,p,c,y,h,f,x,g,w,_,M,F,W,R,V,L,[$,B,H,O,T]=(0,P.A)();B*=null!==(e=t.scaleFactor)&&void 0!==e?e:1,$*=null!==(o=t.scaleFactor)&&void 0!==o?o:1;const E=(0,u.Xd)("whatmoreUITheme"),X=(0,u.Xd)("whatmoreShopId"),G=(0,u.Xd)("whatmorePrimaryFont"),U=(0,u.Xd)("whatmoreSecondaryColor"),D=(0,u.Xd)("websiteLanguage"),Q=t.onClick,q=null===(r=t.isOnFocus)||void 0===r||r,Y=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,J="portrait"===T[j.dl],K=(J?1.076*B*(0,v.HWj)(X):B*(0,v.N_4)(X))+"px",Z=(J?1.076*B*(0,v.HWj)(X):B*(0,v.N_4)(X))+"px",tt=(J?.965*B*(0,v.HWj)(X):.859*B*(0,v.N_4)(X))+"px",et=(0,v.VYo)(X),{whatmoreIsPreviewMode:ot}=(0,i.useContext)(m.B),it=.25*B,rt=it+"px",nt=1.25*it+"px",[lt,st]=(0,i.useState)(t.event),[at,dt]=(0,i.useState)(),pt=null!==(l=null===(s=lt.products)||void 0===s?void 0:s.find((t=>"active"==t.product_status)))&&void 0!==l?l:null===(a=lt.products)||void 0===a?void 0:a[0],ct=Math.round(+(null===pt||void 0===pt?void 0:pt.price)),ut=Math.round(+(null===pt||void 0===pt?void 0:pt.compare_price)),yt=ut&&0!=ut&&ut>ct?Math.round((ut-ct)/ut*100):NaN,[ht,vt]=(0,i.useState)(yt),[mt,ft]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,v.w4b)(X)?(0,b.fu)(lt,(0,v.NCy)(X),X).then((t=>{var e,o,i;st(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;vt(l),ft(!0)})):(async()=>{const t=await(0,C.M)(pt,(0,v.NCy)(X),X);dt(t),ft(!0)})()}),[]),(0,I.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","24px"),t.style.setProperty("margin-bottom","12px"))},style:{width:B,margin:"0 auto",cursor:"pointer",filter:q||t.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{Q(lt)},children:[(0,I.jsxs)("div",{style:{position:"relative",width:B,height:$,borderRadius:"round"==E?"5px":"0px",boxShadow:"round"==E?et:null,borderWidth:(0,v.YcK)(X),borderColor:(0,v.Fwt)(X),overflow:"hidden"},children:[(0,I.jsx)("div",{onClick:t=>t.stopPropagation(),style:{display:q||t.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,I.jsx)(z.A,{})}),(0,I.jsx)(N.A,{height:"100%",width:"100%",url:null!==(d=null===lt||void 0===lt?void 0:lt.event_hls_url)&&void 0!==d?d:null===lt||void 0===lt?void 0:lt.thumbnail_image,isPlaying:q||Y,event:lt})]}),(0,I.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ot?(0,v.Tr1)(X):(0,v.UmS)(X))&&(null===lt||void 0===lt||null===(p=lt.products)||void 0===p?void 0:p.length)>0&&(0,I.jsx)("div",{style:{maxHeight:nt,maxWidth:rt,minWidth:null!==pt&&void 0!==pt&&pt.thumbnail_image?rt:"0",overflow:"hidden"},children:(0,I.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,v.KZe)(X),"important")},style:{height:"100%"},src:(null===pt||void 0===pt||null===(c=pt.thumbnail_image)||void 0===c||null===(y=c.split("?"))||void 0===y?void 0:y[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:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(X),"important"),t.style.setProperty("font-size",K,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",G,"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,A.v)(null===pt||void 0===pt?void 0:pt.title)}),mt&&(0,v.Nzx)(X)&&(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,v.vw2)(X)?"row":"row-reverse",justifyContent:(0,v.vw2)(X)?"flex-start":"flex-end"},children:[(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(X),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",G,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.i6j)(X)?"normal":"bold"},children:(0,b.Sb)(parseFloat((0,S.U)()?(null!==(h=null===at||void 0===at||null===(f=at.variants)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)&&void 0!==h?h:null===at||void 0===at?void 0:at.price)/100:null===pt||void 0===pt?void 0:pt.price)," ",X,null===(g=lt.products[0])||void 0===g?void 0:g.currency)}),!isNaN(ut)&&ut>ct&&(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.gld)(X),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",G,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==ct?"line-through":"none"},children:(0,b.Sb)(parseFloat((0,S.U)()?(null!==(w=null===at||void 0===at||null===(_=at.variants)||void 0===_||null===(M=_[0])||void 0===M?void 0:M.compare_at_price)&&void 0!==w?w:null===at||void 0===at?void 0:at.compare_at_price)/100:null===pt||void 0===pt?void 0:pt.compare_price)," ",X,null===(F=lt.products[0])||void 0===F?void 0:F.currency)}),"56352899156"==X&&(0,v.Nzx)(X)&&mt&&!isNaN(ht)&&0!=ht&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,v.ub$)(X)?"#343434"==U?(0,v.ub$)(X):U:(0,v.ub$)(X),alignItems:"center",borderRadius:(0,v.v8m)(X)+"px",width:"fit-content",padding:"3px 4px"},children:(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",G,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${ht}% ${null!==(W=null===k.m||void 0===k.m||null===(R=k.m[D])||void 0===R?void 0:R.off)&&void 0!==W?W:"off"}`})})]}),(q||t.isActive)&&(0,v.Nzx)(X)&&mt&&!isNaN(ht)&&0!=ht&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,v.ub$)(X)?"#343434"==U?(0,v.ub$)(X):U:(0,v.ub$)(X),alignItems:"center",borderRadius:(0,v.v8m)(X)+"px",width:"fit-content",padding:(0,v.Cf)(X)?"3px 6px":"0px"},children:(0,v.Cf)(X)?(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",G,"important"))},children:`${ht}% ${null!==(V=null===k.m||void 0===k.m||null===(L=k.m[D])||void 0===L?void 0:L.off)&&void 0!==V?V:"off"}`}):(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v._zx)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",(0,v.ogW)(X),"important"))},children:(0,v.rsz)(X)})})]})]})]})},M=o(1957);const F=(0,a.A)({key:"whatmore-css-hv"});function W(t){const[e,o,r]=(0,P.A)(),[n,l,s]=(0,c.A)(),a=(0,u.Xd)("whatmoreShopId"),p=t.events,y=t.onClick,g=r*(0,v.kcl)(a),w=(0,v.cbh)(a),[j,b]=(0,i.useState)(w?p.length:g),{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(m.B);return(0,i.useEffect)((()=>{j<=g&&b((t=>t+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:t=>{(0,f.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:S}),t.realIndex>t.previousIndex&&b((t=>t+g))},loop:w,children:p.map(((t,e)=>e<=j&&(0,I.jsx)(d.qr,{children:({isActive:e,isPrev:o,isNext:i,isVisible:r})=>o||i||e?(0,I.jsx)(M.A,{isOnFocus:e&&r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{y(t)}}):(0,I.jsx)(h.A,{})},"whatmore-event-tile-portrait-"+t.index)))})})})}function R(t){var[e,o,r,n]=(0,w.A)();const l=t.onClick,s=t.index,a=t.events,[u,y]=(0,i.useState)(6),[v,m,f]=(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:f,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:t=>{t.realIndex>t.previousIndex&&y((t=>t+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*n),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map(((t,e)=>e<=u&&(0,I.jsx)(d.qr,{children:({isActive:e,isPrev:o,isNext:i,isVisible:r})=>r?(0,I.jsx)(_,{isOnFocus:e&&s<0,isActive:e,playOnUnfocus:!1,animateOnFocus:!0,event:t,scaleFactor:1.3,onClick:()=>{l(t)}}):(0,I.jsx)(h.A,{})},"whatmore-event-tile-portr-"+t.index)))})})})}var V=function(t){const[e,o,a]=(0,c.A)(),[d]=(0,u.QN)("whatmoreShopId"),[p]=(0,u.QN)("whatmorePrimaryColor"),[h]=(0,u.QN)("whatmoreTitleFont"),f="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:x}=(0,i.useContext)(m.B),w=(0,u.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,i.useContext)(m.B),j=t.events,b=t.onClick,S=h;function A(t){b(t)}return(0,i.useEffect)((()=>{(0,g.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&t&&(t.style.minHeight="0px")})),(0,u.t2)("muted",!0)}),[]),delete n.Ay.styles.global,(0,I.jsx)(s.C,{value:F,children:(0,I.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,I.jsx)(r.s,{theme:n.Ay,cssVarsRoot:x,resetCSS:!1,children:(0,I.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||P?(0,I.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S,"important"),t.style.setProperty("font-size",f+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.Odx)(d),lineHeight:(0,v.L0y)(d),letterSpacing:(0,v.l3V)(d)},children:P?"W"!==w?w:"":t.heading})}):(0,I.jsx)(I.Fragment,{}),"landscape"===e?(0,I.jsx)(R,{index:t.index,events:j,onClick:A}):(0,I.jsx)(W,{index:t.index,events:j,onClick: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,b]=[.6*w*(16/9),.6*w,1.4,0];function y(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,b]=[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,b]=[I,S,y(d/(1.2*S)),0],E[r._]=r.vF,E[r.dl]=r.tn):([g,_,x,b]=[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,b]=[I,S,y(d/(1.15*S)),0],E[r._]=r.b4,E[r.dl]=r.tn):(S=.7*_,I=.7*g,[g,_,x,b]=[I,S,(d-2*c)/(1.1*S),c],E[r._]=r.b4,E[r.dl]=r.nN)}return[g,_,x,b,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),b=n(6641),y=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(946),n.e(437),n.e(451),n.e(987),n.e(669),n.e(413),n.e(592)]).then(n.bind(n,6413)))),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)(),[N]=(0,a.QN)("isInDesignMode"),[T]=(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"),W=(0,a.Xd)("whatmoreShareTemplateId"),F=(0,a.Xd)("whatmoreShareEventId"),R=Q&&"template-embed"===(0,f.Mm)(W),[B,$]=(0,i.useState)(R);M=(0,o.BcY)(V)?"STRR72TX6AT"==V?function(){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}():L(window.location.href):M;const[G,K]=(0,i.useState)((()=>"true"===O?z:M));var H=r.$$+"/v2/brand/"+V+"/product-events";const{whatmoreWidgetSourceDetails:U}=(0,i.useContext)(w.B);(0,i.useEffect)((()=>{(0,p.initializeGA)(V),(0,b.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(H.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||(0,o.WKl)(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 K(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&&K(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!h&&R&&((0,y.H)("whatmore-video-player",(()=>{$(!1)})),null!=F)){const e=t.find((e=>F==e.event_id));if(e)return void q(e,!0,t.indexOf(e))}}),[t]);const X=U.landingLocationType,Y=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 N||T||(async()=>{const t=(0,f.Wd)(X)+(0,f.gf)(Y)+(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:!N&&!T,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:!N&&!T,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"),[b]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[y]=(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=b,C=y;w[a.dl]===a.nN&&(P=E,L=S,C=I);const[N,T]=(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),[W,F]=(0,o.useState)(!k&&(0,m.n8Q)(A));function R(e,t){T(e),e[1]<=100?D(!1):t!=O&&(D(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(R([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)}),[N]),(0,i.j)({ref:n,handler:()=>{R(["scrolled-up",N[1]],!0)}});const B=e.event,$=e.inVideoClick,G=e.closeClick,K=.3*u,H=.6*u,U=.1*u,X=.1*(.5*u),Y="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:W&&!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:()=>{R(["initial",N[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:K+"px"},style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"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*K+"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:K+"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:H+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:Y,borderBottomRightRadius:Y,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*K+"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(){}}]);
|