whatmore-react-assets 1.0.1816 → 1.0.1821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/banner-template-a.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-a.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-ai.5886a824.chunk.css +1 -0
- package/static/css/carousel-template-f.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-feed.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-g.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-h.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-i.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-j.475a42b7.chunk.css +1 -0
- package/static/css/carousel-template-view-more.475a42b7.chunk.css +1 -0
- package/static/css/collections-template-a.83e3340f.chunk.css +1 -0
- package/static/css/collections-template-b.83e3340f.chunk.css +1 -0
- package/static/css/collections-template-c.83e3340f.chunk.css +1 -0
- package/static/css/collections-template-stories.83e3340f.chunk.css +1 -0
- package/static/css/event-click-product.68e25b66.chunk.css +1 -0
- package/static/css/stories-template-a.8292e9da.chunk.css +1 -0
- package/static/css/whatmore-root.09bcc075.chunk.css +2 -0
- package/static/js/257.731cff2e.chunk.js +1 -0
- package/static/js/286.70655d59.chunk.js +1 -0
- package/static/js/33.46a8c962.chunk.js +1 -0
- package/static/js/512.c411674d.chunk.js +1 -0
- package/static/js/526.706d86bb.chunk.js +2 -0
- package/static/js/620.8b81307a.chunk.js +1 -0
- package/static/js/820.3abb966c.chunk.js +1 -0
- package/static/js/832.8a126a68.chunk.js +1 -0
- package/static/js/981.93048a23.chunk.js +281 -0
- package/static/js/banner-template-a.32ec8591.chunk.js +1 -0
- package/static/js/carousel-template-a.f15148d1.chunk.js +1 -0
- package/static/js/carousel-template-ai.2232a497.chunk.js +1 -0
- package/static/js/carousel-template-b.52683dec.chunk.js +1 -0
- package/static/js/carousel-template-f.4ca967f4.chunk.js +1 -0
- package/static/js/carousel-template-feed.6e0611d8.chunk.js +15 -0
- package/static/js/carousel-template-g.2f11a57c.chunk.js +1 -0
- package/static/js/carousel-template-h.95284d4b.chunk.js +1 -0
- package/static/js/carousel-template-i.ef4eaa14.chunk.js +1 -0
- package/static/js/carousel-template-j.6e45a3e9.chunk.js +1 -0
- package/static/js/carousel-template-view-more.faaa02f7.chunk.js +15 -0
- package/static/js/collections-template-a.1f191615.chunk.js +1 -0
- package/static/js/collections-template-b.27d9d0b6.chunk.js +1 -0
- package/static/js/collections-template-c.5bcd3559.chunk.js +1 -0
- package/static/js/collections-template-stories.3684ecbf.chunk.js +1 -0
- package/static/js/embed-tracking-component.64b05bcf.chunk.js +1 -0
- package/static/js/event-click-product.ffdab8eb.chunk.js +127 -0
- package/static/js/event-click-spotlight.50e0f126.chunk.js +1 -0
- package/static/js/homepage-carousel-view.9dd55d57.chunk.js +1 -0
- package/static/js/location-details.bd3f495b.chunk.js +1 -0
- package/static/js/product-page-view.9c0ab6ef.chunk.js +1 -0
- package/static/js/share-shimmer-loader.fe4b39e4.chunk.js +1 -0
- package/static/js/spotlight-view.a4edee17.chunk.js +1 -0
- package/static/js/stories-template-a.7a417d48.chunk.js +1 -0
- package/static/js/whatmore-root.cc24f244.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/css/3987.5e4fe0bc.chunk.css +0 -1
- package/static/css/6496.5be4f6b9.chunk.css +0 -2
- package/static/css/atc-with-form.d506a6d0.chunk.css +0 -1
- package/static/css/banner-template-a.0de12ee0.chunk.css +0 -2
- package/static/css/carousel-template-ai.4f625b46.chunk.css +0 -1
- package/static/css/carousel-template-b.958c07ee.chunk.css +0 -2
- package/static/css/carousel-template-f.015efd91.chunk.css +0 -2
- package/static/css/carousel-template-feed.00fa46a7.chunk.css +0 -2
- package/static/css/carousel-template-g.0ed6363a.chunk.css +0 -2
- package/static/css/carousel-template-j.0ed6363a.chunk.css +0 -2
- package/static/css/carousel-template-view-more.aaf7bb12.chunk.css +0 -2
- package/static/css/collections-template-a.2292dfbf.chunk.css +0 -2
- package/static/css/collections-template-b.2292dfbf.chunk.css +0 -2
- package/static/css/collections-template-c.2292dfbf.chunk.css +0 -2
- package/static/css/collections-template-stories.2292dfbf.chunk.css +0 -2
- package/static/css/event-click-product.d506a6d0.chunk.css +0 -1
- package/static/css/event-click-spotlight.d506a6d0.chunk.css +0 -1
- package/static/css/event-click.a9e480c7.chunk.css +0 -2
- package/static/css/stories-template-a.097af4b8.chunk.css +0 -2
- package/static/js/2257.ff34d36c.chunk.js +0 -1
- package/static/js/2275.afa6c9f5.chunk.js +0 -127
- package/static/js/2607.5a1db4f5.chunk.js +0 -1
- package/static/js/3059.e019b18d.chunk.js +0 -2
- package/static/js/3262.9b098965.chunk.js +0 -1
- package/static/js/3714.ba9df5ea.chunk.js +0 -1
- package/static/js/4160.78581331.chunk.js +0 -1
- package/static/js/4241.93d1d2ed.chunk.js +0 -2
- package/static/js/4816.841cc97e.chunk.js +0 -1
- package/static/js/5620.e2de87a2.chunk.js +0 -1
- package/static/js/6340.c917ac9d.chunk.js +0 -2
- package/static/js/6496.932b3233.chunk.js +0 -1
- package/static/js/7184.66f26374.chunk.js +0 -2
- package/static/js/7387.9d636cdc.chunk.js +0 -1
- package/static/js/744.123da996.chunk.js +0 -2
- package/static/js/7534.47395526.chunk.js +0 -2
- package/static/js/8283.a69e6aaf.chunk.js +0 -2
- package/static/js/8286.60a08819.chunk.js +0 -1
- package/static/js/8304.f74a37d8.chunk.js +0 -280
- package/static/js/9009.2f0d1cbd.chunk.js +0 -1
- package/static/js/9946.a04656ca.chunk.js +0 -1
- package/static/js/atc-with-form.973f6aab.chunk.js +0 -1
- package/static/js/banner-template-a.b9a7ac6f.chunk.js +0 -1
- package/static/js/carousel-template-a.232be0ea.chunk.js +0 -1
- package/static/js/carousel-template-ai.e1de023a.chunk.js +0 -2
- package/static/js/carousel-template-b.7d831ae3.chunk.js +0 -1
- package/static/js/carousel-template-f.253f8dad.chunk.js +0 -1
- package/static/js/carousel-template-feed.8c9f52e5.chunk.js +0 -15
- package/static/js/carousel-template-g.487fc15d.chunk.js +0 -1
- package/static/js/carousel-template-h.a7c0b14d.chunk.js +0 -1
- package/static/js/carousel-template-i.f5a41a90.chunk.js +0 -1
- package/static/js/carousel-template-j.76720098.chunk.js +0 -2
- package/static/js/carousel-template-view-more.3952a12e.chunk.js +0 -55
- package/static/js/collections-template-a.3eaa1d4d.chunk.js +0 -1
- package/static/js/collections-template-b.cf0d7c7e.chunk.js +0 -1
- package/static/js/collections-template-c.e1d70538.chunk.js +0 -1
- package/static/js/collections-template-stories.69b95138.chunk.js +0 -1
- package/static/js/embed-tracking-component.70b392f7.chunk.js +0 -1
- package/static/js/event-click-product.20572489.chunk.js +0 -2
- package/static/js/event-click-spotlight.dac9b550.chunk.js +0 -2
- package/static/js/event-click.e5dec782.chunk.js +0 -2
- package/static/js/homepage-carousel-view.cee63e44.chunk.js +0 -1
- package/static/js/location-details.27aa0e1a.chunk.js +0 -1
- package/static/js/mock-events.bcdae891.chunk.js +0 -1
- package/static/js/product-page-view.fe290e46.chunk.js +0 -1
- package/static/js/share-shimmer-loader.703ffde2.chunk.js +0 -1
- package/static/js/spotlight-view.e2c8575d.chunk.js +0 -1
- package/static/js/stories-template-a.1ee2e09a.chunk.js +0 -1
- package/static/js/whatmore-root.1dcbe527.chunk.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[2665],{5213:function(e,t,i){i.r(t),i.d(t,{default:function(){return R}});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),h=i(9094),c=i(932),p=i(1941),x=i(5491),u=i.n(x),m=i(5830),g=i(7509),f=i(1348),w=i(5551),C=i(7136),v=i(9879),y=i(6649),j=i(9258),I=i(9664),S=i(7802),b=i(8141),P=i(4414);function O(e){const[t,i,n,o,r]=(0,c.A)(),l=(0,m.Xd)("whatmoreUITheme"),s=(0,m.Xd)("whatmoreShowViews"),a=(0,m.Xd)("whatmoreShopId"),d=e.PRODUCT_BOX_HEIGHT,h=e.PRODUCT_BOX_HEIGHT_IN_PX,p=e.PRODUCT_BOX_MARGIN,[x,u,g]=(0,y.A)({triggerOnce:!0}),w=e.event;e.isOnFocus;return(0,P.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,P.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,P.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{e.onClick(w)},children:["56411783377"===a&&(0,P.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,P.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,P.jsx)(b.A,{width:.15*i,height:.15*i})})}),"show"===s?(0,P.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,P.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,P.jsx)(j.A,{event:w,fontSize:.07*i+"px"})})}):(0,P.jsx)(P.Fragment,{})]}),(0,P.jsx)("div",{style:{display:"flex",width:"100%",height:t-d+"px"},onClick:()=>{e.onClick(w)}}),(0,S.Hl)(w,a)?(0,P.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"28062416930"===a?void 0:p+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:"28062416930"===a?"110%":.95*i,height:"28062416930"===a?"20%":h,marginLeft:p+"px",marginRight:p+"px",backgroundColor:"white",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,f.YcK)(a),borderColor:(0,f.Fwt)(a),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,P.jsx)("div",{ref:x,children:u&&(0,f.imx)(a)?(0,P.jsx)(I.Ay,{event:w,onClick:()=>{var t,i;(0,f.gq8)(a)?window.location.href=(i=null===(t=w.products)||void 0===t?void 0:t[0],(0,f.BLb)(a)?i.product_link+"?"+(0,f.VCz)(a)+"&"+(0,f.Spk)(a)+"&"+(0,f.$lz)(a):i.product_link):e.onClick(w)}}):(0,P.jsx)("div",{height:"20px"})})}):(0,P.jsx)(P.Fragment,{})]})})}var A=function(e){var t,i,o;const[r,l,s,a,d]=(0,c.A)();var h=(0,n.useContext)(g.h);const p=(0,m.Xd)("whatmoreUITheme"),x=(0,m.Xd)("whatmoreShopId"),u=(0,m.Xd)("whatmoreSecondaryColorShade600"),w=e.event,C=e.onClick,y=null===(t=e.isOnFocus)||void 0===t||t,j=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,I=null!==(o=e.animateOnFocus&&(0,f.n5O)(x))&&void 0!==o&&o,b=(0,f.nP1)(x)?.7:.8,A=r*b+"px",k=1-b,_=r*k,F=r*k+"px",L=r*k*.1,T=(0,f.VYo)(x),M="56411783377"==x?1:1.2;return(0,P.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",h.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",h.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:l+"px",height:r*M+"px",borderRadius:"round"==p?"5px":"0px",boxShadow:"28062416930"===x?void 0:"round"===p?T:null,borderWidth:(0,f.YcK)(x),borderColor:(0,f.Fwt)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:I?y?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,P.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{C(w)},children:[(0,P.jsx)(v.A,{height:A,width:"100%",url:w.thumbnail_image,isPlaying:y||j,event:w}),(0,f.Q$)(x)&&(0,S.Hl)(w,x)&&"56411783377"!==x?(0,P.jsx)("div",{style:{width:"100%",height:F,backgroundColor:u}}):(0,P.jsx)(P.Fragment,{})]}),(0,f.Q$)(x)&&(0,P.jsx)(O,{event:w,isOnFocus:y,PRODUCT_BOX_HEIGHT:_,PRODUCT_BOX_HEIGHT_IN_PX:F,PRODUCT_BOX_MARGIN:L,onClick:C})]})},k=i(6157),_=i(1351),F=i(6641);const L=(0,a.A)({key:"whatmore-css-hv"});function T(e){const[t,i,o]=(0,c.A)(),[r,l,s]=(0,p.A)(),a=(0,m.Xd)("whatmoreShopId"),h=e.events,x=e.onClick,u=o*(0,f.kcl)(a),g=(0,f.cbh)(a),[C,v]=(0,n.useState)(Math.min(h.length,g?h.length:u+5)),{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(w.B);return(0,n.useEffect)(()=>{C<u+5&&v(e=>Math.min(e+5,h.length))},[u,5]),(0,P.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,P.jsx)(d.RC,{slidesPerView:h.length>1?"56411783377"==a?2:u:1,initialSlide:"25075712047"===a||"56411783377"==a?0:h.length>1?1:0,centeredSlides:"25075712047"!==a&&"56411783377"!=a,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,_.UM)({userInteractionType:k.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}),e.realIndex>e.previousIndex&&v(e=>Math.min(e+5,h.length))},loop:(0,f.cbh)(a),children:h.map((e,t)=>t<=C&&(0,P.jsx)(d.qr,{children:({isActive:t,isPrev:i,isNext:n,isVisible:o})=>(0,P.jsx)(A,{isOnFocus:("56411783377"==a||t)&&o,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{x(e)}})},"whatmore-event-tile-portrait-"+e.index))})})})}function M(e){const[t,i,o,r]=(0,c.A)(),[l,s]=(0,n.useState)(-1),a=(0,m.Xd)("whatmoreShopId"),p=e.onClick,x=e.events,g=(0,f.cbh)(a),[v,y]=(0,n.useState)(g?x.length:o),j=Math.min(o,x.length),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)(w.B);return(0,n.useEffect)(()=>{v<=o&&y(e=>e+o)},[o]),(0,P.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,P.jsx)("div",{style:{width:i*j*1.1+"px"},children:(0,P.jsx)(d.RC,{slidesPerView:j,watchSlidesProgress:!0,modules:[h.Vx],navigation:!0,slidesPerGroup:parseInt(j),onSlideChange:e=>{(0,_.UM)({userInteractionType:k.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&y(e=>e+o)},spaceBetween:(0,f.If9)(a),loop:(0,f.cbh)(a),children:x.map((e,t)=>{const i=u()(()=>s(t),300);return t<=v&&(0,P.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},children:({isActive:i,isPrev:n,isNext:o,isVisible:r})=>r?(0,P.jsx)(A,{isOnFocus:t==l,playOnUnfocus:!(0,f.aO7)(a)||t==parseInt(j/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,P.jsx)(C.A,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var R=function(e){const[t,i,a]=(0,p.A)(),[d]=(0,m.QN)("whatmorePrimaryColor"),[h]=(0,m.QN)("whatmoreShopId"),[c]=(0,m.QN)("whatmoreTitleFont"),x="portrait"==t?(0,m.Xd)("whatmoreTitleFontSizePortrait"):(0,m.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:u}=(0,n.useContext)(w.B),f=e.events,C=e.onClick,v=c,{whatmoreCollectionHeading:y}=(0,n.useContext)(w.B),{whatmoreIsCollectionsTemplate:j}=(0,n.useContext)(w.B);function I(e){C(e)}function S(e){const t=e.indexOf(" ",e.indexOf(" ")+1);return-1===t?[e,""]:[e.substring(0,t),e.substring(t)]}return(0,n.useEffect)(()=>{(0,F.Fk)("Video shopping powered by Whatmore!")},[]),(0,n.useEffect)(()=>{l.Sn.forEach(e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-b"]');if(!i)return;i&&e&&(e.style.minHeight="0px")})},[]),delete r.Ay.styles.global,(0,P.jsx)(s.C,{value:L,children:(0,P.jsx)("div",{className:"whatmore-carousel-events",children:(0,P.jsx)(o.s,{theme:r.Ay,cssVarsRoot:u,resetCSS:!1,children:(0,P.jsxs)(g.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==h&&"2310668401"!==h&&"10648977444"!==h&&(e.heading.trim().length>0||j)?(0,P.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",v,"important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==y?y:"":e.heading})}):(0,P.jsx)(P.Fragment,{}),"10588815418"==h||"2310668401"==h||"10648977444"==h?(0,P.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,P.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",v,"important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:j?"W"!==y?y:"":S(e.heading)[0]}),(0,P.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family","Austin Text SemiBold Trial","important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==y?y:"":S(e.heading)[1]})]})}):(0,P.jsx)(P.Fragment,{}),"landscape"===t?(0,P.jsx)(M,{events:f,onClick:I}):(0,P.jsx)(T,{events:f,onClick:I})]})})})})}},7136:function(e,t,i){var n=i(9950),o=i(932),r=i(7509),l=i(5830),s=i(4414);t.A=function(e){var[t,i]=(0,o.A)();(0,n.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":t,overflow:"hidden"}})}},8141:function(e,t,i){i(9950);var n=i(4414);t.A=({width:e=30,height:t=30})=>(0,n.jsxs)("svg",{width:e,height:t,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)"})})})]})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[3262,3939,5485],{22:function(t,e,o){o.d(e,{$S:function(){return l},_:function(){return n},b4:function(){return r},dl:function(){return i},nN:function(){return d},tn:function(){return s},vF:function(){return a}});const n="device_type",i="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},932:function(t,e,o){var n=o(5830),i=o(1941),r=o(22),a=o(1348);e.A=function(t){const[e,o,l]=(0,i.A)(),[s]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[c]=(0,n.QN)("whatmoreVideoTileSize"),[p]=(0,n.QN)("whatmoreVideoTileSizePortrait"),u=l>o,h="portrait"==e?p:c,f=!("portrait"!=e||!(l>=481)),m=h/100*1.3*.5,x=h/100;var v=Math.min(l,o),[y,g,w,b]=[.6*v*(16/9),.6*v,1.4,0];function S(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(u){const t=g*m,e=y*m;[y,g,w,b]=[e,t,(l-2*s-2*(0,a.$du)(d))/(1.1*t),s],j[r._]=r.$S,j[r.dl]=r.nN}else if(f){var C=.8*g,T=.8*y;"portrait"==e?(C*=x,T*=x,[y,g,w,b]=[T,C,S(l/(1.2*C)),0],j[r._]=r.vF,j[r.dl]=r.tn):([y,g,w,b]=[T,C,(l-2*s)/(1.1*C),s],j[r._]=r.vF,j[r.dl]=r.nN)}else{C=g,T=y;"portrait"==e?(C=C*x*.9,T=T*x*.9,[y,g,w,b]=[T,C,S(l/(1.15*C)),0],j[r._]=r.b4,j[r.dl]=r.tn):(C=.7*g,T=.7*y,[y,g,w,b]=[T,C,(l-2*s)/(1.1*C),s],j[r._]=r.b4,j[r.dl]=r.nN)}return[y,g,w,b,j]}},2835:function(t,e,o){var n=o(7891),i=o(8454),r=o(3781),a=o(5830),l=o(4414);e.A=function(t){var e;const o=(0,a.Xd)("whatmoreUITheme"),[s]=(0,a.QN)("whatmoreSecondaryColor"),[d,c]=(0,a.QN)("productRatings"),p=(0,a.Xd)("whatmorePrimaryFont"),u=t.productId,h=t.fontSize,f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,l.jsx)(l.Fragment,{});const m=d[u].avgRating,x=d[u].totalRatings;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map((t,e)=>(0,l.jsx)(n.A,{sx:{color:s,fontSize:h+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,l.jsx)(i.A,{sx:{color:s,fontSize:h+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(r.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map((t,e)=>(0,l.jsx)(r.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon-"+e)),(0,l.jsx)("div",{children:(0,l.jsx)("div",{width:"2px"})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",m,"\xa0"]})})}),(0,l.jsx)("div",{children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+x+")"]})})]})})}},3161:function(t,e,o){function n(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return n}})},3262:function(t,e,o){o.d(e,{initiateCartSliderEvent:function(){return r}});var n=o(5830),i=o(1745);const r=async function(t,e,o,r,a="",l="",s="",d="",c="",p=""){(0,n.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("60595503283"===t){async function w(t,e=1){try{const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,quantity:e})});o.ok?setTimeout(()=>{(0,i.CP)(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",o.status)}catch(o){console.error("Error adding to cart:",o)}}return w(a,1),void setTimeout(e,o)}if("60183445561"===t){async function b(t,e=1,o="/cart"){const n=new URLSearchParams;n.append("id",t),n.append("quantity",e.toString()),n.append("return_to",o);const r=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString(),credentials:"include"}),a=await r.text();return r.ok&&setTimeout(()=>{(0,i.CP)(t),window.location.href="https://tapee.in/cart"},500),a}return b(a).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("22907887"===t){async function S(t,e=1){const o=new FormData;o.append("id",t),o.append("quantity",e.toString());const n=document.querySelector("cart-notification, cart-drawer");if(n){const t=n.getSectionsToRender();o.append("sections",t.map(t=>t.id).join(","))}o.append("sections_url",window.location.pathname);const i=await fetch("/cart/add.js",{method:"POST",body:o});if(!i.ok){const t=await i.text();throw new Error(`Failed to add to cart: ${t}`)}const r=await i.json();return n&&n.renderContents&&n.renderContents(r),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:r}})),r}return S(a).then(t=>{setTimeout(()=>{x(a)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("28575536"===t||"64287408360"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{x(a)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,o);if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{x(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{x(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("56444977250"===t){const j=document.querySelector('button[data-pf-type="ProductATC2"]');return j?(l&&j.setAttribute("data-product-id",l),j.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,o=e.quantity,n=e.properties;(0,i.CP)(t,o,n,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===p||void 0===p||null===(u=p.split("?"))||void 0===u?void 0:u[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&l&&e.setAttribute("data-product-id",l)}),void setTimeout(e,o));var u}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{x(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{x(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const C=a,T=1,P=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(P){let k=P.querySelector('input[name="id"]');k||(k=document.createElement("input"),k.type="hidden",k.name="id",P.appendChild(k)),k.disabled=!1,k.value=C;const M=P.querySelector('input[name="quantity"]');M&&(M.value=T);const A=P.querySelector('button[data-add-to-cart], button[type="submit"]');return A?(A.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),A.click(),A.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{x(C)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:C,quantity:T}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{x(C)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const E=document.querySelector('form[action="/cart/add"]');if(!E)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const N=E.querySelector('input[name="id"]');if(!N)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);N.value=a;const I=E.querySelector('button[type="submit"]');if(!I)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);I.click(),setTimeout(()=>{x(a)},500),setTimeout(e,o)}catch(g){console.error("[ATC 64683278550] error:",g),setTimeout(e,o)}return}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},f=(e,o,n)=>{const i=e.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",o),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let e=i.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(i),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const i=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=i.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const l=i.querySelector('input[name="product-id"]');l&&(l.value=String(o))})(a,o,n),a}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},x=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),n=o.key,r=o.quantity,a=o.properties;(0,i.CP)(n,r,a,s,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const R=f(v,a,l);m(R),setTimeout(()=>{x(a)},500),R.remove()}else{var y;fetch(null===p||void 0===p||null===(y=p.split("?"))||void 0===y?void 0:y[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=h(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=f(o,a,l);m(t),setTimeout(()=>{x(a)},500),t.remove()}})}setTimeout(e,o)}},3997:function(){},4063:function(t,e,o){var n=o(9950),i=o(3731),r=o(3247),a=o(5830),l=o(5144),s=o(4414);e.A=function(t){var e,o;const[d,c]=(0,n.useState)(!1),[p,u]=(0,n.useState)(!1),[h]=(0,a.QN)("whatmoreSecondaryColor"),[f]=(0,a.QN)("whatmoreSecondaryColorShade600"),[m]=(0,a.QN)("whatmoreSecondaryColorShade300"),[x]=(0,a.QN)("whatmorePrimaryFont"),v=t.onClick,y=t.icon,g=null!==(e=t.borderRadius)&&void 0!==e?e:"sm",w=null!==(o=t.baseFontSize)&&void 0!==o?o:12;return(0,s.jsxs)(r.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:g,backgroundColor:d?m:h,animation:p?l.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),u(!0),v()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,s.jsx)(i.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:x+" !important",color:"white !important"},children:"VIEW MORE"}),y]})}},4365:function(){},4431:function(t,e,o){o.r(e),o.d(e,{default:function(){return B}});var n=o(9950),i=(o(4826),o(340)),r=o(5873),a=o(5089),l=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),s=o(8603),d=o(932),c=o(1941),p=o(5491),u=o.n(p),h=o(5830),f=o(7509),m=o(7136),x=o(1348),v=o(5551),y=o(1351),g=o(6157),w=o(9879),b=o(6663),S=o(8538),j=o(6594),C=o(22),T=o(6613),P=o(8149),k=o(7740),M=o(7035),A=o(6305),E=o(4833),N=o(4533),I=o(63),R=o(7973),_=o(4414);var O=function({productList:t,firstAvailableProduct:e,setFirstAvailableProduct:o,tileWidth:n}){const i=.06*n,r=i+"px",[a]=(0,h.QN)("whatmorePrimaryFont");return(0,_.jsxs)("div",{onClick:t=>{t.stopPropagation()},style:{display:"flex",flexDirection:"column",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backgroundColor:"#fff",height:"fit-content",padding:"14px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.7)"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",r,"important"),t.style.setProperty("font-weight","600","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:"Select Product"}),(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*n,overflowY:"auto",paddingBottom:"12px"},children:t.map((t,n)=>(0,_.jsxs)("div",{onClick:e=>{e.stopPropagation(),(t=>{o(t)})(t)},style:{WebkitTapHighlightColor:"transparent",cursor:"pointer",padding:"8px",display:"flex",alignItems:"center",gap:"8px",borderRadius:"6px",backgroundColor:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"#f0f0f0":"white",border:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"1px solid #343434":"none"},children:[(0,_.jsx)("img",{src:(0,R.b)(null===t||void 0===t?void 0:t.thumbnail_image),alt:null===t||void 0===t?void 0:t.title,style:{width:2*i,height:2*i}}),(0,_.jsx)("p",{style:{fontSize:.8*i+"px",fontFamily:a,textTransform:"uppercase",backgroundColor:"inherit"},children:null===t||void 0===t?void 0:t.title})]},n))})]})};var F=function(t){var e,o,i,r,a,l,s,c,p,u,m,F,L,z,q,X,D,W,$,B,U,Y,H,Q,V;const[J,G,K,Z,tt]=(0,d.A)(),et=(0,h.Xd)("whatmoreShopId"),ot=(0,h.Xd)("whatmoreLandingLocationType"),nt="portrait"===tt[C.dl],it=nt?1.076*G*(0,x.HWj)(et):G*(0,x.N_4)(et),rt=it+"px",at=(nt?1.076*G*(0,x.HWj)(et):G*(0,x.N_4)(et))+"px",lt=(nt?.965*G*(0,x.HWj)(et):.859*G*(0,x.N_4)(et))+"px",[st,dt]=(0,n.useState)(t.event),[ct,pt]=(0,n.useState)(!1),ut=(0,h.Xd)("whatmoreSecondaryColor");(0,h.Xd)("whatmoreProductId");var ht=(0,n.useContext)(f.h);const ft=null===(e=t.isOnFocus)||void 0===e||e,mt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,xt=t.onClick,vt=(0,h.Xd)("whatmoreUITheme"),yt=(0,h.Xd)("websiteLanguage"),gt=null!==(i=t.animateOnFocus&&(0,x.n5O)(et))&&void 0!==i&&i,[wt,bt]=(0,n.useState)(!1),St=(0,h.Xd)("whatmorePrimaryFont"),[jt,Ct]=(0,n.useState)(null!==(r=null===(a=st.products)||void 0===a?void 0:a.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(l=st.products)||void 0===l?void 0:l[0]),Tt=jt&&Object.keys(jt).length>0;let Pt,kt,Mt;Pt=Math.round(+(null===jt||void 0===jt?void 0:jt.price)),kt=Math.round(+(null===jt||void 0===jt?void 0:jt.compare_price)),Mt=kt&&0!=kt&&kt>Pt?Math.round((kt-Pt)/kt*100):NaN;const[At,Et]=(0,n.useState)(Mt),[Nt,It]=(0,n.useState)(),{whatmoreIsPreviewMode:Rt,whatmoreWidgetSourceDetails:_t,whatmoreUserInfo:Ot}=(0,n.useContext)(v.B),[Ft,Lt]=(0,n.useState)(!1),[zt,qt,Xt,Dt,Wt,$t]=(0,A.A)(0,jt,st),Bt=Tt&&(0,x.mRH)(et),Ut=Tt&&(0,x.VhI)(et),Yt=(0,x.WRx)(et)||ut,Ht=(0,x.jsS)(et)||"white",Qt=(0,x.KPq)(et)||"ADD TO CART",[Vt,Jt]=(0,n.useState)(!1),Gt="76767920441"===et||"55840899223"===et,Kt=.25*G,[Zt,te]=(0,n.useState)(null),[ee,oe]=(0,n.useState)(!1),ne="64287408360"===et&&Nt&&Nt.options&&1===Nt.options.length&&"size"===Nt.options[0].name.toLowerCase()&&Nt.variants&&Nt.variants.length>0,ie=ne?Nt.variants.filter(t=>t.available):[];(0,n.useEffect)(()=>{if("6573064236"!==et){if(Tt&&(0,x.w4b)(et)&&(0,j.fu)(st,(0,x.NCy)(et),et).then(t=>{var e,o,n;dt(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&Et(null===t||void 0===t||null===(n=t.products[0])||void 0===n?void 0:n.discount),bt(!0)}),Tt){(async()=>{let t=jt;for(let n=0;n<(null===st||void 0===st||null===(e=st.products)||void 0===e?void 0:e.length);n++){var e;const o=await(0,P.M)(null===st||void 0===st?void 0:st.products[n],(0,x.NCy)(et),et);if(null!==o&&void 0!==o&&o.available){Ct(null===st||void 0===st?void 0:st.products[n]),t=null===st||void 0===st?void 0:st.products[n];break}}const o=await(0,P.M)(t,(0,x.NCy)(et),et);It(o),bt(!0)})()}}else bt(!0)},[Tt]),(0,n.useEffect)(()=>{if(Tt){if("6573064236"===et)return void bt(!0);(async()=>{const t=await(0,P.M)(jt,(0,x.NCy)(et),et);It(t),bt(!0)})()}},[jt]),(0,n.useEffect)(()=>{ne&&ie.length>0&&!Zt&&te(ie[0])},[ne,ie,Zt]),(0,n.useEffect)(()=>{if("awaitingVariantSelection"===zt.state&&Zt&&ne&&!ee){const t=_t.landingLocationType,e=_t.templateType,o=(0,E.Wd)(t)+(0,E.gf)(e)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);console.log("selectedVariant : ",Zt.option1),$t([Zt.option1,null,null],o)}},[zt]);const re=async t=>{if("6573064236"===et&&null!==jt&&void 0!==jt&&jt.product_link)return t.stopPropagation(),void(window.location.href=jt.product_link);if(t.stopPropagation(),!Tt)return;if(ne)return void oe(!0);pt(!0);const e=_t.landingLocationType,o=_t.templateType,n=(0,E.Wd)(e)+(0,E.gf)(o)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);(0,N.Ch)(st.event_id,st.products,"homepage","carousel",n,null===st||void 0===st?void 0:st.location,null===Ot||void 0===Ot?void 0:Ot.userType),"init"==zt.state?(Wt(n,!0),(0,y.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_t,event:st,productList:[jt],ctaList:st.cta})):"awaitingVariantSelection"==zt.state&&$t(null,n),setTimeout(()=>{pt(!1),Jt(!1)},3e3)},ae=nt?"36px":"44px",le=Gt&&nt?{width:.22*G,height:.29*G}:Gt?{width:1.2*Kt,height:1.6*Kt}:null;return(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",ht.tileTopMargin+"px"),t.style.setProperty("margin-bottom",ht.tileBottomMMargin+"px"))},className:gt&&!nt?ft?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:Gt&&!nt?1.1*G:G,position:"relative"},onClick:()=>{xt(st)},onMouseEnter:()=>Lt(!0),onMouseLeave:()=>Lt(!1),children:[(0,_.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==vt?"5%":"0px",boxShadow:"round"==vt?"0px 0px 5px 0px #B0B0B0":null,height:J,borderWidth:(0,x.YcK)(et),borderColor:(0,x.Fwt)(et),overflow:"hidden",position:"relative"},children:[(0,_.jsx)(w.A,{height:(0,x.u06)(et)+" !important",width:"100%",url:st.thumbnail_image,isPlaying:ft||mt||(0,T.At)(),event:st}),Ut&&Tt&&(Ft||nt)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{style:{position:"absolute",bottom:ae,left:0,right:0,display:Vt?"block":"none"},children:(0,_.jsx)(O,{productList:st.products,firstAvailableProduct:jt,setFirstAvailableProduct:Ct,tileWidth:G})}),(0,_.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Yt||"rgba(0, 0, 0, 0.75)",height:ae,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Ft||nt?"translateY(0)":"translateY(100%)",opacity:Ft||nt?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:re,children:[(0,_.jsx)("div",{style:{flex:1,textAlign:"center",color:Ht,fontSize:"12px",fontFamily:St,fontWeight:"500",letterSpacing:"0.5px"},children:ct?(0,_.jsx)(I.y,{size:"sm",color:"white"}):Qt}),(0,_.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Ht}`,opacity:.5}}),(0,_.jsx)("div",{onClick:t=>{t.stopPropagation(),Jt(!Vt)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Ht,transform:Vt?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,_.jsx)(b.A,{sx:{fontSize:2*it}})})]})]})]}),(0,_.jsxs)("div",{className:"wht-prod-info",style:{display:(0,x.AmR)(et)?"flex":"none",flexDirection:"row",padding:Gt&&nt?"6px 4px":"12px 4px",gap:Gt&&nt?"4px":"12px",alignItems:"stretch",minHeight:Bt?Gt&&nt?"85px":"110px":"auto"},children:[Gt&&Tt&&le&&(0,_.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,x.KZe)(et),"important")},src:(0,R.b)((null===jt||void 0===jt?void 0:jt.thumbnail_image)||(null===jt||void 0===jt?void 0:jt.image)||(null===jt||void 0===jt?void 0:jt.featured_image),"&width=400&height=400"),alt:null===jt||void 0===jt?void 0:jt.title,style:{width:le.width,height:le.height,borderRadius:"round"==vt?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:nt?"0px":"-3px"}})}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:Gt&&nt?"2px":"5px",flex:1,minWidth:0},children:[Tt&&(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x.m5c)(et),"important"),t.style.setProperty("font-size","45034766485"==et&&"product"==ot?"9px":rt),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",St,"important"),t.style.setProperty("-webkit-line-clamp","55840899223"===et?"2":"1","important"),t.style.setProperty("line-clamp","55840899223"===et?"2":"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"),"55840899223"===et&&t.style.setProperty("height",1.2*it*2+"px","important"))},children:(0,S.v)(null===jt||void 0===jt?void 0:jt.title)}),Tt&&wt&&(0,x.Nzx)(et)&&(0,_.jsxs)("div",{style:{display:"flex",gap:Gt&&nt?"6px":"12px",flexDirection:(0,x.vw2)(et)?"row":"row-reverse",justifyContent:(0,x.vw2)(et)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x.m5c)(et),"important"),t.style.setProperty("font-size","45034766485"==et&&"product"==ot?"8px":at),t.style.setProperty("font-family",St,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-align","left","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"==(0,x.i6j)(et)?"normal":"bold"},children:(0,j.Sb)(parseFloat((0,k.U)()?(null!==(s=null===Nt||void 0===Nt||null===(c=Nt.variants)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.price)&&void 0!==s?s:null===Nt||void 0===Nt?void 0:Nt.price)?(null!==(u=null===Nt||void 0===Nt||null===(m=Nt.variants)||void 0===m||null===(F=m[0])||void 0===F?void 0:F.price)&&void 0!==u?u:null===Nt||void 0===Nt?void 0:Nt.price)/100:Pt:Pt>0?Pt:null===jt||void 0===jt?void 0:jt.price_max)," ",et,null===(L=st.products[0])||void 0===L?void 0:L.currency)}),!isNaN(kt)&&kt>Pt&&(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x.gld)(et),"important"),t.style.setProperty("font-size",at),t.style.setProperty("font-family",St,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("width","auto","important"))},style:{textDecoration:"line-through"},children:(0,j.Sb)(parseFloat((0,k.U)()&&(null!==(z=null===Nt||void 0===Nt||null===(q=Nt.variants)||void 0===q||null===(X=q[0])||void 0===X?void 0:X.compare_at_price)&&void 0!==z?z:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)?(null!==(D=null===Nt||void 0===Nt||null===(W=Nt.variants)||void 0===W||null===($=W[0])||void 0===$?void 0:$.compare_at_price)&&void 0!==D?D:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)/100:kt)," ",et,null===(B=st.products[0])||void 0===B?void 0:B.currency)}),(0,x.Nzx)(et)&&!isNaN(At)&&0!=At&&wt&&Bt&&(0,_.jsx)("div",{style:{display:(0,x.QNr)(et)?"flex":"none",backgroundColor:"green"===(0,x.ub$)(et)?"#343434"===ut?(0,x.ub$)(et):ut:(0,x.ub$)(et),alignItems:"center",borderRadius:(0,x.v8m)(et)+"px",width:"fit-content",padding:(0,x.Cf)(et)?"3px 6px":"0px"},children:(0,x.Cf)(et)?(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x.BRY)(et),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",St,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${At}% ${null!==(U=null===M.m||void 0===M.m||null===(Y=M.m[yt])||void 0===Y?void 0:Y.off)&&void 0!==U?U:"off"}`}):(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x._zx)(et),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,x.ogW)(et),"important"))},children:(0,x.rsz)(et)})})]}),Tt&&(0,x.Nzx)(et)&&!isNaN(At)&&0!=At&&wt&&!Bt&&(0,_.jsx)("div",{style:{display:(0,x.QNr)(et)?"flex":"none",backgroundColor:"green"===(0,x.ub$)(et)?"#343434"===ut?(0,x.ub$)(et):ut:(0,x.ub$)(et),alignItems:"center",borderRadius:(0,x.v8m)(et)+"px",width:"fit-content",padding:(0,x.Cf)(et)?"3px 6px":"0px"},children:(0,x.Cf)(et)?(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x.BRY)(et),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",St,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${At}% ${null!==(H=null===M.m||void 0===M.m||null===(Q=M.m[yt])||void 0===Q?void 0:Q.off)&&void 0!==H?H:"off"}`}):(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,x._zx)(et),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,x.ogW)(et),"important"))},children:(0,x.rsz)(et)})}),Bt&&(0,_.jsx)("button",{style:{backgroundColor:ut,display:"flex",justifyContent:"center",color:"white",borderRadius:"4px",padding:"8px 16px",fontSize:rt,fontFamily:St,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:Gt&&nt?"100px":"90%",marginTop:Gt?"6px":"0px",alignSelf:"flex-start",marginLeft:Gt&&nt?"-30px":"0px"},onClick:re,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:ct?(0,_.jsx)(I.y,{size:"sm",display:"flex !important",color:"white"}):Qt})]})]}),ne&&ee&&(0,_.jsx)("div",{onClick:t=>{t.stopPropagation(),oe(!1)},style:{position:"absolute",bottom:nt?"25px":"10px",left:0,right:0,zIndex:1e4},children:(0,_.jsxs)("div",{onClick:t=>t.stopPropagation(),style:{backgroundColor:"#f5f5f5",borderRadius:nt?"10px 10px 0 0":"12px 12px 0 0",padding:nt?"8px":"14px",width:"100%",boxShadow:"0 -4px 20px rgba(0,0,0,0.15)"},children:[(0,_.jsx)("div",{style:{width:nt?"30px":"45px",height:"3px",backgroundColor:"#ccc",borderRadius:"2px",margin:nt?"0 auto 2px":"0 auto 4px"}}),(0,_.jsx)("h3",{style:{fontSize:nt?"10px":"12px",fontFamily:St,fontWeight:"500",textAlign:"center",margin:nt?"0 0 5px 0":"0 0 8px 0",color:"#000"},children:"Size"}),(0,_.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:nt?"5px":"8px",marginBottom:nt?"5px":"8px",justifyContent:"center"},children:null===Nt||void 0===Nt||null===(V=Nt.variants)||void 0===V?void 0:V.map(t=>(0,_.jsx)("div",{onClick:()=>{t.available&&te(t)},style:{padding:nt?"4px 4px":"6px 8px",borderRadius:nt?"4px":"5px",border:`1px solid ${(null===Zt||void 0===Zt?void 0:Zt.id)===t.id?"white":ut}`,textAlign:"center",cursor:t.available?"pointer":"not-allowed",fontSize:nt?"7px":"10px",fontFamily:St,fontWeight:"200",backgroundColor:(null===Zt||void 0===Zt?void 0:Zt.id)===t.id?ut:"white",color:(null===Zt||void 0===Zt?void 0:Zt.id)===t.id?"white":ut,textDecoration:t.available?"none":"line-through",whiteSpace:"nowrap",opacity:t.available?1:.5,boxShadow:(null===Zt||void 0===Zt?void 0:Zt.id)===t.id?"0px 1px 8px 0px rgba(0,0,0,0.18)":"none"},children:t.option1},t.id))}),(0,_.jsxs)("div",{style:{display:"flex",gap:nt?"5px":"6px"},children:[(0,_.jsx)("button",{onClick:()=>oe(!1),style:{flex:1,padding:nt?"6px":"9px",backgroundColor:"white",color:"#000",borderRadius:nt?"5px":"6px",fontSize:nt?"10px":"12px",fontFamily:St,fontWeight:"600",cursor:"pointer",border:"1px solid #ddd"},children:"Cancel"}),(0,_.jsx)("button",{onClick:async()=>{oe(!1),pt(!0);const t=_t.landingLocationType,e=_t.templateType,o=(0,E.Wd)(t)+(0,E.gf)(e)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);(0,N.Ch)(st.event_id,st.products,"homepage","carousel",o,null===st||void 0===st?void 0:st.location,null===Ot||void 0===Ot?void 0:Ot.userType),(0,y.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_t,event:st,productList:[jt],ctaList:st.cta}),"init"==zt.state?Wt(o,!1):"awaitingVariantSelection"==zt.state&&$t([null===Zt||void 0===Zt?void 0:Zt.option1,null,null],o),setTimeout(()=>{pt(!1),Jt(!1),oe(!1)},3e3)},style:{flex:1,padding:nt?"6px":"9px",backgroundColor:ut,color:"white",border:"1px solid #ddd",borderRadius:nt?"5px":"6px",fontSize:nt?"10px":"12px",fontFamily:St,fontWeight:"600",cursor:"pointer"},children:"Done"})]})]})})]})},L=o(6641),z=o(4063);const q=(0,s.A)({key:"whatmore-css-hv"});function X(t){const[e,o,i]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),a=(0,h.Xd)("whatmoreLandingLocationType"),l=t.events,s=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(v.B),p=Math.ceil(i),u=2*p,[f,w]=(0,n.useState)(u),[b,S]=(0,n.useState)(2*p),j=0===(0,x.If9)(r)?24:(0,x.If9)(r),[C,T]=(0,n.useState)({touchX:0,touchY:0}),P=()=>(0,_.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,_.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),k=()=>(0,_.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,_.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),M=t=>{if("next"===t){const t=2;S(t=>Math.min(t+Math.floor(i),l.length+p+1)),w(e=>Math.min(e+t,l.length+p+1))}else S(t=>Math.max(t-Math.floor(i),u));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,_.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==a?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{T({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,n,i;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,a=(null===(n=t.changedTouches)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.clientY)-C.touchY;Math.sqrt(r**2+a**2)>10&&Math.abs(r)>Math.abs(a)&&M(r>0?"prev":"next")},children:[(0,x.JSQ)(r)&&(0,_.jsxs)(_.Fragment,{children:[b<=l.length+p&&(0,_.jsx)("div",{onClick:()=>M("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,_.jsx)(P,{})}),b>2*p&&(0,_.jsx)("div",{onClick:()=>M("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,_.jsx)(k,{})})]}),(0,_.jsx)("div",{style:{display:"flex",gap:j,transform:`translateX(-${(b-u)*(o+j)}px)`,transition:"transform 0.4s ease-in-out"},children:l.map((t,e)=>e<f?(0,_.jsx)("div",{children:(0,_.jsx)(F,{isOnFocus:e<=b-p-1&&e>=Math.max(0,b-u),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>s(t)})},`whatmore-carousel-tile-${e}`):(0,_.jsx)(m.A,{}))})]})}function D(t){const[e,o,i,r]=(0,d.A)(),[a,l]=(0,n.useState)(-1),s=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,n.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(v.B),b=Math.min(Math.ceil(i),m.length),[S,j]=(0,n.useState)(0),C=0===(0,x.If9)(s)?24:(0,x.If9)(s),T=()=>(0,_.jsx)("div",{children:(0,_.jsx)("button",{onClick:A,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,_.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),P=()=>(0,_.jsx)("div",{children:(0,_.jsx)("button",{onClick:M,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,_.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)(()=>{S<=b&&j(t=>t+b)},[b]);const k=()=>{l(-1)},M=()=>{S!==b&&(p("prev"),j(t=>Math.max(Math.ceil(t-i),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},A=()=>{S>m.length+i||(p("next"),j(t=>Math.floor(t+i)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},E=S>m.length?m.length-b+1:S-b,N=S>=m.length?m.length:E+b,I=m.slice(E,N);return(0,_.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`},children:[S!==b&&(0,_.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:r+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,_.jsx)(P,{})}),(0,_.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*i*(0,x.fHt)(s)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:I.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,n=e===a;return(0,_.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>l(t),300);return e(),e.cancel})(e),onMouseLeave:k,children:(0,_.jsx)(F,{isOnFocus:n,playOnUnfocus:!(0,x.aO7)(s)||e==parseInt(b/2)&&-1==a,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})}),S<m.length&&(0,_.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:r+"px",transform:"translateY(-65%)"},children:(0,_.jsx)(T,{})})]})}function W(t){const[e,o,i,r]=(0,d.A)(),[a,l]=(0,n.useState)(-1),s=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,n.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(v.B),b=Math.min(Math.ceil(i),m.length),[S,j]=(0,n.useState)(0),C=0===(0,x.If9)(s)?24:(0,x.If9)(s),[T,P]=(0,n.useState)(!1),[k,M]=(0,n.useState)(0),[A,E]=(0,n.useState)(0),N=({disabled:t})=>(0,_.jsx)("button",{onClick:t?void 0:L,className:"wht-custom-nav-dot-next",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),I=({disabled:t})=>(0,_.jsx)("button",{onClick:t?void 0:O,className:"wht-custom-nav-dot-prev",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})});(0,n.useEffect)(()=>{S<=b&&j(t=>t+b)},[b]);const R=()=>{l(-1)},O=()=>{S!==b&&(p("prev"),j(t=>Math.max(Math.ceil(t-i),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},L=()=>{S>m.length+i||(p("next"),j(t=>Math.floor(t+i)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},z=S>m.length?m.length-b+1:S-b,q=S>=m.length?m.length:z+b,X=m.slice(z,q);return(0,_.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:`${e+60}px`,paddingBottom:"50px"},children:[(0,_.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`,cursor:T?"grabbing":"grab",userSelect:"none"},onMouseDown:t=>{P(!0),M(t.clientX),E(t.clientY)},onMouseMove:t=>{T&&t.preventDefault()},onMouseUp:t=>{if(!T)return;P(!1);const e=t.clientX-k,o=t.clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():L())},onMouseLeave:()=>{T&&P(!1)},onTouchStart:t=>{P(!0),M(t.touches[0].clientX),E(t.touches[0].clientY)},onTouchMove:t=>{},onTouchEnd:t=>{if(!T)return;P(!1);const e=t.changedTouches[0].clientX-k,o=t.changedTouches[0].clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():L())},children:(0,_.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*i*(0,x.fHt)(s)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:X.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,n=e===a;return(0,_.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>l(t),300);return e(),e.cancel})(e),onMouseLeave:R,children:(0,_.jsx)(F,{isOnFocus:n,playOnUnfocus:!(0,x.aO7)(s)||e==parseInt(b/2)&&-1==a,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})})}),(0,_.jsxs)("div",{style:{position:"absolute",bottom:"0",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"14px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center"},children:[(0,_.jsx)(I,{disabled:S===b}),(0,_.jsx)(N,{disabled:S>=m.length})]})]})}function $(t){const[e,o,i]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),a=(0,h.Xd)("whatmoreLandingLocationType"),l=t.events,s=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(v.B),p=.6*i,u=Math.ceil(p),f=2*u,[w,b]=(0,n.useState)(f),[S,j]=(0,n.useState)(2*u),C=0===(0,x.If9)(r)?24:(0,x.If9)(r),T=(0,n.useRef)({touchX:0,touchY:0}),P=(0,n.useRef)(!1),k=({disabled:t})=>(0,_.jsx)("button",{onClick:t?void 0:()=>A("next"),className:"wht-custom-nav-dot-next-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),M=({disabled:t})=>(0,_.jsx)("button",{onClick:t?void 0:()=>A("prev"),className:"wht-custom-nav-dot-prev-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,_.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),A=t=>{if("next"===t){const t=2,e=l.length+1;j(t=>Math.min(t+Math.floor(i),e)),b(e=>Math.min(e+t,l.length))}else j(t=>Math.max(t-Math.floor(i),f));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,_.jsx)("div",{style:{width:"100%",overflow:"hidden",paddingBottom:"50px"},children:(0,_.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==a?"center":"flex-start",paddingLeft:"12px",overflow:"visible",position:"relative",zoom:1.3,paddingBottom:"60px"},onTouchStart:t=>{t.target.closest("button")||(P.current=!1,T.current={touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchMove:t=>{if(0===T.current.touchX&&0===T.current.touchY)return;const e=t.touches[0].clientX-T.current.touchX,o=t.touches[0].clientY-T.current.touchY;Math.sqrt(e**2+o**2)>10&&!P.current&&(P.current=!0)},onTouchEnd:t=>{var e,o,n,i;if(t.target.closest("button"))return;if(!P.current)return void(T.current={touchX:0,touchY:0});const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-T.current.touchX,a=(null===(n=t.changedTouches)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.clientY)-T.current.touchY;Math.sqrt(r**2+a**2)>50&&Math.abs(r)>Math.abs(a)&&A(r>0?"prev":"next"),T.current={touchX:0,touchY:0},P.current=!1},children:[(0,_.jsx)("div",{style:{display:"flex",gap:C,transform:`translateX(-${(S-f)*(o+C)}px)`,transition:"transform 0.4s ease-in-out"},children:l.map((t,e)=>e<w?(0,_.jsx)("div",{children:(0,_.jsx)(F,{isOnFocus:e<=S-u-1&&e>=Math.max(0,S-f),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>s(t)})},`whatmore-carousel-tile-${e}`):(0,_.jsx)(m.A,{}))}),(0,_.jsxs)("div",{style:{position:"absolute",bottom:"-35px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"14px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center"},children:[(0,_.jsx)(M,{disabled:S<=2*u}),(0,_.jsx)(k,{disabled:S>=l.length+1})]})]})})}var B=function(t){const[e,o,s]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[u]=(0,h.QN)("whatmoreSecondaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),y="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(v.B),{whatmoreCollectionHeading:w}=((0,h.Xd)("isInDesignMode"),(0,n.useContext)(v.B)),{whatmoreIsCollectionsTemplate:b}=(0,n.useContext)(v.B),S=t.events,j=t.onClick,C=m;function T(t){j(t)}return(0,n.useEffect)(()=>{(0,L.Fk)("Video shopping powered by Whatmore!")},[]),(0,n.useEffect)(()=>{r.Sn.forEach(t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")})},[]),delete a.Ay.styles.global,(0,_.jsx)(l.C,{value:q,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",children:(0,_.jsx)(i.s,{theme:a.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,_.jsxs)(f.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",y+"px"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?"6573064236"===d?(0,_.jsx)(W,{events:S,onClick:T}):(0,_.jsx)(D,{events:S,onClick:T}):(0,_.jsxs)(_.Fragment,{children:["6573064236"===d?(0,_.jsx)($,{events:S,onClick:T}):(0,_.jsx)(X,{events:"45034766485"==d?S.slice(0,5):S,onClick:T}),"45034766485"==d&&(0,_.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,_.jsx)(z.A,{baseFontSize:.5*y,onClick:()=>T(null===S||void 0===S?void 0:S[5])})})]})]})})})})}},4669:function(){},4826:function(){},6042:function(){},7136:function(t,e,o){var n=o(9950),i=o(932),r=o(7509),a=o(5830),l=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,n.useContext)(r.h);const s=(0,a.Xd)("whatmoreShopId");return t.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%":e,overflow:"hidden"}})}},7229:function(){},7458:function(t,e,o){o.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return n}});const n=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,o){o.d(e,{B:function(){return a},b:function(){return r}});var n=o(1348),i=o(5830);function r(t,e=""){const o=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function a(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],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(o)?"image":null!==i&&void 0!==i&&i.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return i}});var n=o(5830);function i(t,e){const o=(0,n.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o||"73633562802"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(i=t.split("- "))||void 0===i?void 0:i[0]:"6573064236"===o?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var i}},9733:function(){}}]);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[3262,3939,7933],{3262:function(t,e,n){n.d(e,{initiateCartSliderEvent:function(){return r}});var o=n(5830),i=n(1745);const r=async function(t,e,n,r,a="",s="",l="",d="",c="",u=""){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("60595503283"===t){async function w(t,e=1){try{const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,quantity:e})});n.ok?setTimeout(()=>{(0,i.CP)(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",n.status)}catch(n){console.error("Error adding to cart:",n)}}return w(a,1),void setTimeout(e,n)}if("60183445561"===t){async function b(t,e=1,n="/cart"){const o=new URLSearchParams;o.append("id",t),o.append("quantity",e.toString()),o.append("return_to",n);const r=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString(),credentials:"include"}),a=await r.text();return r.ok&&setTimeout(()=>{(0,i.CP)(t),window.location.href="https://tapee.in/cart"},500),a}return b(a).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("22907887"===t){async function j(t,e=1){const n=new FormData;n.append("id",t),n.append("quantity",e.toString());const o=document.querySelector("cart-notification, cart-drawer");if(o){const t=o.getSectionsToRender();n.append("sections",t.map(t=>t.id).join(","))}n.append("sections_url",window.location.pathname);const i=await fetch("/cart/add.js",{method:"POST",body:n});if(!i.ok){const t=await i.text();throw new Error(`Failed to add to cart: ${t}`)}const r=await i.json();return o&&o.renderContents&&o.renderContents(r),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:r}})),r}return j(a).then(t=>{setTimeout(()=>{y(a)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("28575536"===t||"64287408360"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,n);if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("56444977250"===t){const S=document.querySelector('button[data-pf-type="ProductATC2"]');return S?(s&&S.setAttribute("data-product-id",s),S.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,o=e.properties;(0,i.CP)(t,n,o,l,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,n));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const T=a,C=1,A=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(A){let k=A.querySelector('input[name="id"]');k||(k=document.createElement("input"),k.type="hidden",k.name="id",A.appendChild(k)),k.disabled=!1,k.value=T;const P=A.querySelector('input[name="quantity"]');P&&(P.value=C);const O=A.querySelector('button[data-add-to-cart], button[type="submit"]');return O?(O.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),O.click(),O.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{y(T)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:T,quantity:C}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{y(T)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const E=document.querySelector('form[action="/cart/add"]');if(!E)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const F=E.querySelector('input[name="id"]');if(!F)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);F.value=a;const q=E.querySelector('button[type="submit"]');if(!q)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);q.click(),setTimeout(()=>{y(a)},500),setTimeout(e,n)}catch(x){console.error("[ATC 64683278550] error:",x),setTimeout(e,n)}return}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(e,n,o)=>{const i=e.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",n),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",o);let e=i.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",o);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(i),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,n)=>{var o;const i=null!==(o=t.matches)&&void 0!==o&&o.call(t,"form")?t:t.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=i.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const s=i.querySelector('input[name="product-id"]');s&&(s.value=String(n))})(a,n,o),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),o=n.key,r=n.quantity,a=n.properties;(0,i.CP)(o,r,a,l,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const N=m(v,a,s);f(N),setTimeout(()=>{y(a)},500),N.remove()}else{var g;fetch(null===u||void 0===u||null===(g=u.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,a,s);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,n)}},3852:function(t,e,n){n.d(e,{A:function(){return x}});var o=n(3247),i=n(1422),r=n(3731),a=n(211),s=n(9950),l=n(932),d=n(5242),c=n(8781),u=n(8283);const p=u.i7`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(1);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: scale(1.05);
|
|
7
|
-
}
|
|
8
|
-
`,h=u.i7`
|
|
9
|
-
0% {
|
|
10
|
-
transform: scale(1.05);
|
|
11
|
-
}
|
|
12
|
-
100% {
|
|
13
|
-
transform: scale(1);
|
|
14
|
-
}
|
|
15
|
-
`,m=`\n ${p}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,f=`\n ${h}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var y=n(5830),v=n(7509),g=n(4414);var x=function(t){var e,n,[u,p]=(0,l.A)();const[h]=(0,y.QN)("whatmorePrimaryFont");var x=(0,s.useContext)(v.h);const w=t.event,b=t.onClick,j=null===(e=t.isOnFocus)||void 0===e||e,S=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,g.jsxs)(o.az,{animation:S?j?m:f:"none",marginTop:x.tileTopMargin,marginBottom:x.tileBottomMMargin,marginLeft:x.tileLeftMargin,marginRight:x.tileRightMargin,width:p,height:u,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{b(w)},cursor:"pointer",children:[(0,g.jsx)(a._,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,g.jsx)(c.A,{width:p,height:u}),borderRadius:"lg"}),(0,g.jsx)(o.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,g.jsxs)(i.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,g.jsx)(o.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,g.jsx)(i.B,{direction:"column",justifyContent:"flex-start",children:(0,g.jsx)(o.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,g.jsx)(i.B,{direction:"row",justifyContent:"space-between",children:(0,g.jsx)(d.A,{event:w,fontSize:.05*u+"px",maxWidth:.8*p})})})})}),(0,g.jsx)(o.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,g.jsx)(i.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,g.jsx)(o.az,{width:"full",borderRadius:"lg",children:(0,g.jsxs)(i.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,g.jsx)(r.E,{color:"white",fontSize:.08*p+"px",fontWeight:"normal",align:"left",children:" "}),(0,g.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,g.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},4826:function(){},6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return D}});var o=n(9950),i=n(3852),r=n(340),a=n(5089),s=(n(3997),n(9733),n(4365),n(572)),l=n(8603),d=n(6086),c=n(3731),u=n(1941),p=n(5830),h=n(7509),m=n(1348),f=n(5551),y=n(1422),v=n(932),g=n(6649),x=n(4414);function w(t){var e;const[n,o,i]=(0,g.A)({triggerOnce:!1}),r=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,x.jsx)(y.B,{ref:n,direction:"row",minHeight:r,height:r,width:"100%",justifyContent:"center",alignItems:"center",children:o?t.data.map((e,n)=>(0,x.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n)):(0,x.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function b(t){var e;const[n,o,i]=(0,v.A)(),r=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(i,t.dataList.length)),a=function(t,e){var n=[];const o=e;for(let i=0;i<t.length;i+=o){const e=t.slice(i,i+o);n.push(e)}return n}(t.dataList,r);return(0,x.jsx)(y.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:a.map((e,i)=>(0,x.jsx)(w,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:o},"key-"+i))})}var j=n(2039),S=(n(4826),n(9879)),T=n(9258),C=n(8538),A=n(6594),k=n(7973),P=n(8149),O=n(7740),E=n(22);var F=function(t){var e,n,i,r,[a,s,l,d,c]=(0,v.A)();const u="portrait"===c[E.dl],[h,f]=(0,o.useState)(0),[y,g]=(0,o.useState)(t.event),[w]=(0,p.QN)("whatmoreShopId"),b=(0,p.QN)("whatmoreUITheme"),[j]=(0,p.QN)("whatmorePrimaryFont"),[S]=(0,p.QN)("whatmoreSecondaryColorShade900"),T=y.products.length,[F,q]=(0,o.useState)(),[N,R]=(0,o.useState)(!1);if(0==T)return(0,x.jsx)(x.Fragment,{});(0,o.useEffect)(()=>{const t=setInterval(()=>{f(t=>(t+1)%T)},3e3);return()=>{clearInterval(t)}},[]),(0,o.useEffect)(()=>{(0,m.w4b)(w)?(0,A.fu)(y,(0,m.NCy)(w),w).then(t=>{g(t),R(!0)}):(async()=>{var t;const e=await(0,P.M)(null===y||void 0===y||null===(t=y.products)||void 0===t?void 0:t[0],(0,m.NCy)(w),w);q(e),R(!0)})()},[]);const M=(u?1.23*s*(0,m.HWj)(w):1.4*s*(0,m.N_4)(w))+"px",I=(u?1.15*s*(0,m.HWj)(w):1.31*s*(0,m.N_4)(w))+"px",L=(+y.products[h].price).toFixed(),z=(+y.products[h].compare_price).toFixed(),B=.25*s,_=(0,m.zAb)(w);return(0,x.jsxs)("div",{style:{background:"9238315068"===w?"transparent":(0,m.ivR)(w),display:"flex",flexDirection:_?"row":"column",padding:"10px 12px",gap:_?"8px":"6px",borderRadius:"round"==b?"0 0 12px 12px":"0",alignItems:_?"center":"stretch"},children:[(0,x.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:_?"1":"none"},children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",M),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",1),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,C.v)(y.products[h].title)}),(0,x.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[N&&(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",I),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,A.Sb)(parseFloat((0,O.U)()?(null===F||void 0===F?void 0:F.price)/100:null===y||void 0===y||null===(e=y.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)," ",w,y.products[h].currency)}),!isNaN(z)&&z>L&&N&&(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",I),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,A.Sb)(parseFloat((0,O.U)()?(null===F||void 0===F?void 0:F.compare_at_price)/100:null===y||void 0===y||null===(i=y.products)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.compare_price)," ",w,y.products[h].currency)})]})]}),_&&(0,x.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,k.b)(y.products[h].thumbnail_image,"&width=400&height=400"),style:{width:B,height:B,borderRadius:"round"==b?"5px":"0px",backgroundColor:S,flexShrink:0},alt:"product img"})]})},q=n(6613),N=n(6305),R=n(4833),M=n(1351),I=n(6157),L=n(4533),z=n(9664);function B(t){const[e,n]=(0,v.A)(),[o]=(0,p.QN)("whatmoreShowViews"),i=t.event;return(0,x.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,x.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,x.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,x.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===o?(0,x.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,x.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,x.jsx)(T.A,{event:i,fontSize:.07*n+"px"})})}):(0,x.jsx)(x.Fragment,{})})})})})}var _=function(t){var e,n,i,r,a,s,l=(0,o.useContext)(h.h);const d=(0,p.Xd)("whatmoreUITheme"),c=(0,p.Xd)("whatmoreSecondaryColor"),u=(0,p.Xd)("whatmoreShopId"),[y]=(0,p.QN)("whatmorePrimaryFont");var[w,b,j,T,C]=(0,v.A)();const A="portrait"===C[E.dl],k=t.event,P=t.onClick,O=null===(e=t.isOnFocus)||void 0===e||e,_=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,W=null!==(i=t.animateOnFocus&&(0,m.n5O)(u))&&void 0!==i&&i,[D,U,J]=(0,g.A)({triggerOnce:!0}),[Q,H]=(0,o.useState)(!1),{whatmoreWidgetSourceDetails:$,whatmoreUserInfo:X}=(0,o.useContext)(f.B),G=null!==(r=null===(a=k.products)||void 0===a?void 0:a.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(s=k.products)||void 0===s?void 0:s[0],V=G&&Object.keys(G).length>0,[Y,Z,K,tt,et,nt]=(0,N.A)(0,G,k),ot=.07*b+"px",it=V&&(0,m.Kr7)(u),rt=(0,m.ZzM)(u),at=rt?"BUY NOW":"ADD TO CART",st=t=>{if(t.stopPropagation(),!V)return;const e=$.landingLocationType,n=$.templateType,o=(0,R.Wd)(e)+(0,R.gf)(n)+(null!==k&&void 0!==k&&k.isRelatedEvent?"R":"E")+"_"+(null===k||void 0===k?void 0:k.event_id);if((0,L.Ch)(k.event_id,k.products,"homepage","carousel",o,null===k||void 0===k?void 0:k.location,null===X||void 0===X?void 0:X.userType),rt&&G){const t=G.product_link;if(t)return void window.open(t,"_blank")}"init"==Y.state?(et(o,!0),(0,M.kz)({userInteractionType:I.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:$,event:k,productList:[G],ctaList:k.cta})):"awaitingVariantSelection"==Y.state&&nt(null,o)};return(0,x.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,x.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",l.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom","9238315068"===u?"0px":l.tileBottomMMargin+"px","important"))},style:{width:b,height:w,borderRadius:"round"==d?"12px":"0px",borderWidth:"9238315068"===u?0:(0,m.MRv)(u),borderColor:"9238315068"===u?"transparent":"white"==(0,m.Fwt)(u)?c:(0,m.Fwt)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:W?O?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(k)},onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),children:[(0,x.jsx)(S.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:O||_||(0,q.At)(),event:k}),"9238315068"===u&&V&&(Q||A)&&(0,x.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Q||A?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Q||A?"translateY(0)":"translateY(100%)",opacity:Q||A?1:0,zIndex:10},onClick:st,onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,x.jsx)("span",{style:{color:"white",fontSize:ot,fontFamily:y,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:at})}),(0,x.jsxs)("div",{style:{width:b,height:w},ref:D,children:[(0,x.jsx)(B,{event:k,isOnFocus:O}),"9238315068"!==u&&(0,x.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,x.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,x.jsx)("p",{children:" "})}),(0,x.jsx)("div",{style:{width:"100%"},children:U&&(0,m.imx)(u)?(0,x.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===u?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===u?(0,x.jsx)(z.Ay,{event:k}):(0,x.jsx)(F,{event:k})}):(0,x.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===u&&U&&(0,m.imx)(u)&&(0,x.jsx)("div",{style:{width:b,marginBottom:l.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,x.jsx)(F,{event:k})}),it&&(0,x.jsx)("div",{style:{width:b,padding:"15px 0"},children:(0,x.jsx)("button",{style:{backgroundColor:c,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:ot,fontFamily:y,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:st,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:at})})]})};const W=(0,l.A)({key:"whatmore-css-hv"});var D=function(t){var e;const[n,l,y]=(0,u.A)(),[g,w,S]=(0,v.A)(),[T]=(0,p.QN)("whatmoreShopId"),[C]=(0,p.QN)("whatmorePrimaryColor"),[A]=(0,p.QN)("whatmoreTitleFont"),k="portrait"==n?(0,p.Xd)("whatmoreTitleFontSizePortrait"):(0,p.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:P}=(0,o.useContext)(f.B),O=t.events,E=t.onClick,F=null!==(e=(0,m.sa6)(T))&&void 0!==e?e:A;function q(t){E(t)}const N=parseInt(Math.floor(S));return delete a.Ay.styles.global,(0,x.jsx)(s.C,{value:W,children:(0,x.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,x.jsx)(r.s,{theme:a.Ay,cssVarsRoot:P,resetCSS:!1,children:(0,x.jsxs)(h.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,x.jsx)(d.o,{paddingBottom:"28px",children:(0,x.jsx)(c.E,{bgColor:C,bgClip:"text",fontSize:k,sx:{fontFamily:F+" !important"},align:"center",children:t.heading})}):(0,x.jsx)(x.Fragment,{}),"landscape"===n?(0,x.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,x.jsx)("div",{style:{margin:"10px"},children:(0,j.ij)(e)||(0,j.Il)(e)?(0,x.jsx)(_,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{q(e)}}):(0,x.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{q(e)}})})},dataList:O,elementsPerRow:N}):(0,x.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,x.jsx)("div",{style:{margin:"10px"},children:(0,x.jsx)(_,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{q(e)}})})},dataList:O,elementsPerRow:N})]})})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[2676],{22:function(t,e,n){n.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return r},dl:function(){return o},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,n){var i=n(5830),o=n(1941),r=n(22),l=n(1348);e.A=function(t){const[e,n,s]=(0,o.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=s>n,h="portrait"==e?u:c,f=!("portrait"!=e||!(s>=481)),v=h/100*1.3*.5,m=h/100;var x=Math.min(s,n),[y,g,w,b]=[.6*x*(16/9),.6*x,1.4,0];function C(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=g*v,e=y*v;[y,g,w,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],j[r._]=r.$S,j[r.dl]=r.nN}else if(f){var S=.8*g,P=.8*y;"portrait"==e?(S*=m,P*=m,[y,g,w,b]=[P,S,C(s/(1.2*S)),0],j[r._]=r.vF,j[r.dl]=r.tn):([y,g,w,b]=[P,S,(s-2*a)/(1.1*S),a],j[r._]=r.vF,j[r.dl]=r.nN)}else{S=g,P=y;"portrait"==e?(S=S*m*.9,P=P*m*.9,[y,g,w,b]=[P,S,C(s/(1.15*S)),0],j[r._]=r.b4,j[r.dl]=r.tn):(S=.7*g,P=.7*y,[y,g,w,b]=[P,S,(s-2*a)/(1.1*S),a],j[r._]=r.b4,j[r.dl]=r.nN)}return[y,g,w,b,j]}},1131:function(t,e,n){var i=n(4994);e.A=void 0;var o=i(n(9526)),r=n(4414);e.A=(0,o.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},3369:function(t,e,n){n.r(e),n.d(e,{default:function(){return M}});var i=n(9950),o=n(340),r=n(5089),l=n(5873),s=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),d=n(9946),c=n(9094),u=n(932),p=n(1941),h=n(5491),f=n.n(h),v=n(5830),m=n(7509),x=n(7136),y=n(1348),g=n(5551),w=n(1351),b=n(6157),C=n(6641),j=(n(4826),n(9879)),S=n(4616),P=n(6649),I=n(6613),k=n(1131),_=n(8141),A=n(4414);function E(t){var e;const[n]=(0,v.QN)("whatmoreShopId"),[i,o,r,l,s]=(0,u.A)(),[a,d,c]=(0,P.A)({triggerOnce:!0}),p=t.event,h=(0,I.At)()?t.isOnFocus:d,f="56411783377"==n,m="56411783377"===n&&Array.isArray(null===p||void 0===p?void 0:p.products)&&!!p.products[0];return(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,A.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:["56411783377"===n&&(0,A.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,A.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,A.jsx)(_.A,{width:.15*o,height:.15*o})})}),(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)("p",{children:" "})}),(0,A.jsx)("div",{ref:a,children:h&&(0,y.imx)(n)?(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)(S.A,{event:p})}):(0,A.jsx)("div",{height:"20px"})}),f&&(0,A.jsx)("div",{style:{position:"absolute",top:.045*o,right:.05*o,width:.35*o,height:.15*o,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,A.jsx)("img",{src:"https://whatmorelive-brand-image-poster-assets.b-cdn.net/trunativ_56411783377/trunativ_white_logo.svg",alt:"Trunativ",style:{width:"100%",height:"100%",objectFit:"contain"}})}),m&&(0,A.jsxs)("div",{style:{overflow:"visible",background:"white",position:"absolute",left:.05*o+"px",width:.9*o+"px",bottom:.06*o+"px",borderRadius:.07*o,display:"flex",alignItems:"center",justifyContent:"center",padding:`${.015*o}px ${.04*o}px`,boxShadow:"0 2px 12px rgba(23, 18, 18, 0.08)"},children:[(null===(e=p.products[0])||void 0===e?void 0:e.thumbnail_image)&&(0,A.jsx)("img",{src:p.products[0].thumbnail_image,style:{width:.12*o,height:.12*o,borderRadius:"50%",objectFit:"cover",marginRight:.03*o,border:"1.5px solid #E3E3E3",background:"#fff"}}),(0,A.jsx)("span",{style:{fontWeight:500,fontSize:.048*o,color:"#2D2D2D",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.products[0].title?p.products[0].title:"SHOP AMAZING WITH TRUNATIV"})]})]})})}var F=function(t){var e,n,o,r,l,s,a,d;const[c,p,h,f,x]=(0,u.A)();var g=(0,i.useContext)(m.h);const w=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("whatmorePrimaryFont"),S=(0,v.Xd)("whatmoreSecondaryColor"),P=t.event,I=t.onClick,_=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,N=null!==(o=t.animateOnFocus&&(0,y.n5O)(b))&&void 0!==o&&o,T=(0,y.VYo)(b);return(0,A.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",g.tileTopMargin+"px"),t.style.setProperty("margin-bottom",g.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:p,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w||"61187850326"==b||"19501891"==b?T:null,borderWidth:(0,y.YcK)(b),borderColor:(0,y.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:N?_?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,n;if("12326200"==b&&"image"==P.event_type&&(null===(t=P.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=P.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.product_status)){var i,o;window.location.href=null===(i=P.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.product_link}else{if("12326200"==b&&"image"==P.event_type)return;var r,l,s,a,d,c,u,p,h,f,v,m,x,y,g,w;if("10588815418"==b){if(null!==(r=P.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=P.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=P.cta)||void 0===c||null===(u=c[1])||void 0===u?void 0:u.cta_title))window.location.href=null===(g=P.cta)||void 0===g||null===(w=g[1])||void 0===w?void 0:w.cta_link;else if(null!==(p=P.cta)&&void 0!==p&&null!==(h=p[1])&&void 0!==h&&null!==(f=h.cta_link)&&void 0!==f&&f.includes("whatmore")&&""!=(null===(v=P.cta)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.cta_link)&&""==(null===(x=P.cta)||void 0===x||null===(y=x[0])||void 0===y?void 0:y.cta_title)){var C,j;window.location.href=null===(C=P.cta)||void 0===C||null===(j=C[0])||void 0===j?void 0:j.cta_link}}else I(P)}},children:[(0,A.jsx)(j.A,{height:(0,y.u06)(b)+" !important",width:"100%",url:P.thumbnail_image,isPlaying:_||F,event:P}),""!==(null===P||void 0===P?void 0:P.title)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis"},children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,A.jsx)("p",{style:{fontFamily:C,fontSize:.1*p+"px",fontWeight:"600"},children:"12326200"==b?null===P||void 0===P||null===(r=P.title)||void 0===r?void 0:r.slice(7):null===P||void 0===P?void 0:P.title}),"12326200"==b&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*p+"px",fontWeight:"normal"},children:null===P||void 0===P||null===(l=P.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=P.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=P.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,A.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*p+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,A.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,A.jsx)(k.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,y.Q$)(b)&&(0,A.jsxs)("div",{style:{width:p,height:c},children:[(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,A.jsx)(E,{event:P,unfocusedDisplay:!_,isOnFocus:_})]})]})};const N=(0,a.A)({key:"whatmore-css-hv"});function T(t){const[e,n,o]=(0,u.A)(),[r,l,s]=(0,p.A)(),a=(0,v.Xd)("whatmoreShopId"),h=t.events,f=t.onClick,m=o*(0,y.kcl)(a),C=(0,y.cbh)(a),[j,S]=(0,i.useState)(C?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(g.B);(0,i.useEffect)(()=>{j<=m&&S(t=>t+m)},[m]);const I="6573064236"===a?.9*s:s,k="6573064236"===a?1.5:2;return(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:I,height:"fit-content"},children:(0,A.jsx)(d.RC,{slidesPerView:k,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),t.realIndex>t.previousIndex&&S(t=>t+m)},loop:C,modules:(0,y.JSQ)(a)?[c.Vx]:[],navigation:(0,y.JSQ)(a),children:h.map((t,e)=>e<=j&&(0,A.jsx)(d.qr,{children:({isActive:e,isPrev:n,isNext:i,isVisible:o})=>n||i||e?(0,A.jsx)(F,{isOnFocus:o,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{f(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-portrait-"+t.index))})})})}function L(t){const[e,n,o,r]=(0,u.A)(),[l,s]=(0,i.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[p]=(0,v.QN)("whatmoreLandingLocationType"),h=t.onClick,m=t.events,C=(0,y.cbh)(a),[j,S]=(0,i.useState)(C?m.length:o),P=Math.min(o,m.length),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(g.B),k=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(k.current){const t=n*P*(0,y.fHt)(a)+"px";m.length<4?k.current.style.setProperty("width",t,"important"):k.current.style.width=t}},[n,P,a,j,m.length]),(0,i.useEffect)(()=>{j<=o&&S(t=>t+o)},[o]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:k,style:{height:"100%"},children:(0,A.jsx)(d.RC,{slidesPerView:"product"===p&&"87174349065"===a?2:P,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(P),onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),t.realIndex>t.previousIndex&&S(t=>t+o)},spaceBetween:0,loop:C&&m.length>4,style:{height:"100%"},children:m.map((t,e)=>{const n=f()(()=>s(e),300);return e<=j&&(0,A.jsx)(d.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),s(-1)},style:{height:"100%"},children:({isActive:n,isPrev:i,isNext:o,isVisible:r})=>r||i||o?(0,A.jsx)(F,{isOnFocus:e==l,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(P/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-landscape-"+t.index)})})})})}var M=function(t){const[e,n,a]=(0,p.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[u]=(0,v.QN)("whatmoreTitleFont"),h="portrait"==e?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,i.useContext)(g.B),{whatmoreCollectionHeading:x}=(0,i.useContext)(g.B),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),b=t.events,j=t.onClick,S=u;function P(t){j(t)}return(0,i.useEffect)(()=>{(0,C.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{l.Sn.forEach(t=>{var e;const n=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!n)return;n&&t&&(t.style.minHeight="0px")})},[]),delete r.Ay.styles.global,(0,A.jsx)(s.C,{value:N,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(o.s,{theme:r.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,A.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||w?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S),t.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:w?"W"!==x?x:"":t.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===e?(0,A.jsx)(L,{events:b,onClick:P}):(0,A.jsx)(T,{events:b,onClick:P})]})})})})}},3997:function(){},4365:function(){},4616:function(t,e,n){var i=n(9950),o=n(5830),r=n(932),l=n(8538),s=(n(4826),n(1348)),a=n(7973),d=n(4414);e.A=function(t){var e,n,c,u,[p,h]=(0,r.A)();const f=(0,o.Xd)("whatmoreUITheme"),[v]=(0,o.QN)("whatmorePrimaryFont"),[m,x]=(0,i.useState)(0),y=(0,o.Xd)("whatmoreShopId"),g=t.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const w=.3*h,b=w+"px",C=w+"px",j=.07*h,S=j+"px";return(0,d.jsx)("div",{style:{width:h+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",C,"important")},style:{width:(0,s.H$k)(y)?b:"auto",boxShadow:"round"==f?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==f?"5px":"0px",borderWidth:(0,s.YcK)(y),borderColor:(0,s.Fwt)(y),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(y),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(g.products[m].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==f?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:h-5-w+"px",height:"100%",borderRadius:"round"==f?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",S),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(g.products[m].title)})}),(0,s.gZ6)(y)&&(null===(e=g.products[m])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:h-5-w+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==f?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",h-5-w+"px","important"),t.style.setProperty("font-size",.7*j+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(c=g.products[m])||void 0===c||null===(u=c.product_metadata)||void 0===u?void 0:u.product_type})})]})]},m)})}},4669:function(){},4826:function(){},6042:function(){},6474:function(t,e,n){n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return r},createSvgIcon:function(){return l.A},debounce:function(){return s},deprecatedPropType:function(){return a},isMuiElement:function(){return u},ownerDocument:function(){return h},ownerWindow:function(){return f},requirePropFactory:function(){return v},setRef:function(){return x},unstable_ClassNameGenerator:function(){return R},unstable_useEnhancedEffect:function(){return g},unstable_useId:function(){return C},unsupportedProp:function(){return j},useControlled:function(){return S},useEventCallback:function(){return P},useForkRef:function(){return I},useIsFocusVisible:function(){return O}});var i=n(4501),o=n(1676);var r=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})},l=n(3059);var s=function(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{t.apply(this,i)},e)}return i.clear=()=>{clearTimeout(n)},i};var a=function(t,e){return()=>null},d=n(9950),c=n.t(d,2);var u=function(t,e){var n,i;return d.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)};function p(t){return t&&t.ownerDocument||document}var h=p;var f=function(t){return p(t).defaultView||window};var v=function(t,e){return()=>null};function m(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var x=m;var y="undefined"!==typeof window?d.useLayoutEffect:d.useEffect,g=y;let w=0;const b=c["useId".toString()];var C=function(t){if(void 0!==b){const e=b();return null!=t?t:e}return function(t){const[e,n]=d.useState(t),i=t||e;return d.useEffect(()=>{null==e&&(w+=1,n(`mui-${w}`))},[e]),i}(t)};var j=function(t,e,n,i,o){return null};var S=function({controlled:t,default:e,name:n,state:i="value"}){const{current:o}=d.useRef(void 0!==t),[r,l]=d.useState(e);return[o?t:r,d.useCallback(t=>{o||l(t)},[])]};var P=function(t){const e=d.useRef(t);return y(()=>{e.current=t}),d.useRef((...t)=>(0,e.current)(...t)).current};var I=function(...t){return d.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{m(t,e)})},t)};class k{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new k}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let _=!0,A=!1;const E=new k,F={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function N(t){t.metaKey||t.altKey||t.ctrlKey||(_=!0)}function T(){_=!1}function L(){"hidden"===this.visibilityState&&A&&(_=!0)}function M(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return _||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!F[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var O=function(){const t=d.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",N,!0),e.addEventListener("mousedown",T,!0),e.addEventListener("pointerdown",T,!0),e.addEventListener("touchstart",T,!0),e.addEventListener("visibilitychange",L,!0))},[]),e=d.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!M(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(A=!0,E.start(100,()=>{A=!1}),e.current=!1,!0)},ref:t}};const R={configure:t=>{i.A.configure(t)}}},7136:function(t,e,n){var i=n(9950),o=n(932),r=n(7509),l=n(5830),s=n(4414);e.A=function(t){var[e,n]=(0,o.A)();(0,i.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:n,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7229:function(){},7509:function(t,e,n){n.d(e,{h:function(){return i}});const i=(0,n(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,n){n.d(e,{B:function(){return l},b:function(){return r}});var i=n(1348),o=n(5830);function r(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8141:function(t,e,n){n(9950);var i=n(4414);e.A=({width:t=30,height:e=30})=>(0,i.jsxs)("svg",{width:t,height:e,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,i.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,i.jsx)("path",{d:"M16.942 9.3568C16.8684 9.32095 16.7862 9.30645 16.7048 9.31496C16.6234 9.32347 16.5461 9.35464 16.4815 9.40493L12.6621 12.375H10.1875C9.95544 12.375 9.73288 12.4672 9.56878 12.6313C9.40469 12.7954 9.3125 13.0179 9.3125 13.25V16.75C9.3125 16.9821 9.40469 17.2046 9.56878 17.3687C9.73288 17.5328 9.95544 17.625 10.1875 17.625H12.6621L16.4815 20.5951C16.5461 20.6453 16.6235 20.6764 16.705 20.6849C16.7864 20.6933 16.8686 20.6787 16.9421 20.6427C17.0157 20.6068 17.0777 20.5509 17.121 20.4815C17.1644 20.4121 17.1874 20.3319 17.1875 20.25V9.75C17.1875 9.66804 17.1645 9.58773 17.1211 9.51821C17.0777 9.44869 17.0156 9.39276 16.942 9.3568ZM16.3125 19.3553L13.081 16.8424C13.0044 16.7824 12.9098 16.7498 12.8125 16.75H10.1875V13.25H12.8125C12.9098 13.2502 13.0044 13.2176 13.081 13.1576L16.3125 10.6447V19.3553ZM21.872 16.003C21.9541 16.0851 22.0002 16.1964 22.0002 16.3125C22.0002 16.4286 21.9541 16.5399 21.872 16.622C21.7899 16.7041 21.6786 16.7502 21.5625 16.7502C21.4464 16.7502 21.3351 16.7041 21.253 16.622L20.25 15.6185L19.247 16.622C19.1649 16.7041 19.0536 16.7502 18.9375 16.7502C18.8214 16.7502 18.7101 16.7041 18.628 16.622C18.5459 16.5399 18.4998 16.4286 18.4998 16.3125C18.4998 16.1964 18.5459 16.0851 18.628 16.003L19.6315 15L18.628 13.997C18.5459 13.9149 18.4998 13.8036 18.4998 13.6875C18.4998 13.5714 18.5459 13.4601 18.628 13.378C18.7101 13.2959 18.8214 13.2498 18.9375 13.2498C19.0536 13.2498 19.1649 13.2959 19.247 13.378L20.25 14.3815L21.253 13.378C21.3351 13.2959 21.4464 13.2498 21.5625 13.2498C21.6786 13.2498 21.7899 13.2959 21.872 13.378C21.9541 13.4601 22.0002 13.5714 22.0002 13.6875C22.0002 13.8036 21.9541 13.9149 21.872 13.997L20.8685 15L21.872 16.003Z",fill:"#1A1A1A"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1_19",children:(0,i.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]})},8538:function(t,e,n){n.d(e,{v:function(){return o}});var i=n(5830);function o(t,e){const n=(0,i.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n||"73633562802"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(o=t.split("- "))||void 0===o?void 0:o[0]:"6573064236"===n?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var o}},9130:function(){},9526:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(6474)},9733:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[7891],{7178:function(e,t,n){n.r(t);var i=n(9950),s=n(340),r=n(5089),l=n(5873),o=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),c=n(9946),h=n(9094),d=n(932),u=n(1941),p=n(5491),m=n.n(p),x=n(5830),g=n(7509),f=n(7136),y=n(1348),w=n(5551),v=n(1351),C=n(6157),S=n(6641),j=n(1957),A=n(4414);const I=(0,a.A)({key:"whatmore-css-hv"});function P(e){const[t,n,s]=(0,d.A)(),[r,l,o]=(0,u.A)(),a=(0,x.Xd)("whatmoreShopId"),h=e.events,p=e.onClick,m=s*(0,y.kcl)(a),g=(0,y.cbh)(a),[S,I]=(0,i.useState)(g?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(w.B);return(0,i.useEffect)(()=>{S<=m&&I(e=>e+m)},[m]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:o,height:"fit-content"},children:(0,A.jsx)(c.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,v.UM)({userInteractionType:C.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),e.realIndex>e.previousIndex&&I(e=>e+m)},loop:g,children:h.map((e,t)=>t<=S&&(0,A.jsx)(c.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:s})=>n||i||t?(0,A.jsx)(j.A,{isOnFocus:t&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,A.jsx)(f.A,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function k(e){const[t,n,s,r]=(0,d.A)(),[l,o]=(0,i.useState)(-1),a=(0,x.Xd)("whatmoreShopId"),u=e.onClick,p=e.events,g=(0,y.cbh)(a),[S,I]=(0,i.useState)(g?p.length:s),P=Math.min(s,p.length),{whatmoreWidgetSourceDetails:k}=(0,i.useContext)(w.B),E=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(E.current){const e=n*P*(0,y.fHt)(a)+"px";p.length<4?E.current.style.setProperty("width",e,"important"):E.current.style.width=e}},[n,P,a,S,p.length]),(0,i.useEffect)(()=>{S<=s&&I(e=>e+s)},[s]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"72471412977"==a?"flex-start":"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:E,style:{height:"100%"},children:(0,A.jsx)(c.RC,{slidesPerView:P,watchSlidesProgress:!0,modules:[h.Vx],navigation:!0,slidesPerGroup:"91705082162"==a?1:parseInt(P),onSlideChange:e=>{(0,v.UM)({userInteractionType:C.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),e.realIndex>e.previousIndex&&I(e=>e+s)},spaceBetween:0,loop:g&&p.length>4,style:{height:"100%"},children:p.map((e,t)=>{const n=m()(()=>o(t),300);return t<=S&&(0,A.jsx)(c.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),o(-1)},style:{height:"100%"},children:({isActive:n,isPrev:i,isNext:s,isVisible:r})=>r||i||s?(0,A.jsx)(j.A,{isOnFocus:t==l,playOnUnfocus:!(0,y.aO7)(a)||t==parseInt(P/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(f.A,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}t.default=function(e){const[t,n,a]=(0,u.A)(),[c]=(0,x.QN)("whatmoreShopId"),[h]=(0,x.QN)("whatmorePrimaryColor"),[d]=(0,x.QN)("whatmoreTitleFont"),p="portrait"==t?(0,x.Xd)("whatmoreTitleFontSizePortrait"):(0,x.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(w.B),{whatmoreCollectionHeading:f}=(0,i.useContext)(w.B),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(w.B),C=e.events,j=e.onClick,E=d;function O(e){j(e)}return(0,i.useEffect)(()=>{(0,S.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{l.Sn.forEach(e=>{var t;const n=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!n)return;n&&e&&(e.style.minHeight="0px")})},[]),delete r.Ay.styles.global,(0,A.jsx)(o.C,{value:I,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(s.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,A.jsxs)(g.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||v?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",E,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(c),lineHeight:(0,y.L0y)(c),letterSpacing:(0,y.l3V)(c)},children:v?"W"!==f?f:"":e.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===t?(0,A.jsx)(k,{events:C,onClick:O}):(0,A.jsx)(P,{events:C,onClick:O})]})})})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[7306],{9406:function(e,t,i){i.r(t),i.d(t,{default:function(){return R}});var o=i(9950),r=i(340),l=i(5089),n=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),p=i(9094),c=i(1941),u=i(5830),h=i(7509),v=i(7136),y=i(1348),m=i(5551),x=i(1351),f=i(6157),g=i(6641),w=i(3080),P=i(932),j=(i(4826),i(22)),b=i(6594),C=i(7740),S=i(8538),N=i(8149),A=i(3771),k=i(3936),_=i(7035),I=i(4414);var F=function(e){var t,i,r,l,n,s,a,d,p,c,h,v,x,f,g,w,F,M,z,W,O,R,B,[E,$,T,U,V]=(0,P.A)();$*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,E*=null!==(i=e.scaleFactor)&&void 0!==i?i:1;const D=(0,u.Xd)("whatmoreUITheme"),H=(0,u.Xd)("whatmoreShopId"),X=(0,u.Xd)("whatmorePrimaryFont"),q=(0,u.Xd)("whatmoreSecondaryColor"),L=(0,u.Xd)("websiteLanguage"),Y=e.onClick,Q=null===(r=e.isOnFocus)||void 0===r||r,G=null!==(l=e.playOnUnfocus)&&void 0!==l&&l,K="portrait"===V[j.dl],J=(K?1.076*$*(0,y.HWj)(H):$*(0,y.N_4)(H))+"px",Z=(K?1.076*$*(0,y.HWj)(H):$*(0,y.N_4)(H))+"px",ee=(K?.965*$*(0,y.HWj)(H):.859*$*(0,y.N_4)(H))+"px",te=(0,y.VYo)(H),{whatmoreIsPreviewMode:ie}=(0,o.useContext)(m.B),oe=.25*$,re=oe+"px",le=1.25*oe+"px",[ne,se]=(0,o.useState)(e.event),[ae,de]=(0,o.useState)(),pe=null!==(n=null===(s=ne.products)||void 0===s?void 0:s.find(e=>"active"==e.product_status))&&void 0!==n?n:null===(a=ne.products)||void 0===a?void 0:a[0],ce=Math.round(+(null===pe||void 0===pe?void 0:pe.price)),ue=Math.round(+(null===pe||void 0===pe?void 0:pe.compare_price)),he=ue&&0!=ue&&ue>ce?Math.round((ue-ce)/ue*100):NaN,[ve,ye]=(0,o.useState)(he),[me,xe]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,y.w4b)(H)?(0,b.fu)(ne,(0,y.NCy)(H),H).then(e=>{var t,i,o;se(e);const r=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),l=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),n=l&&0!=l&&l>r?Math.round((l-r)/l*100):NaN;ye(n),xe(!0)}):(async()=>{const e=await(0,N.M)(pe,(0,y.NCy)(H),H);de(e),xe(!0)})()},[]),(0,I.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","24px"),e.style.setProperty("margin-bottom","12px"))},style:{width:$,margin:"0 auto",cursor:"pointer",filter:Q||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{Y(ne)},children:[(0,I.jsxs)("div",{style:{position:"relative",width:$,height:E,borderRadius:"round"==D?"5px":"0px",boxShadow:"round"==D?te:null,borderWidth:(0,y.YcK)(H),borderColor:(0,y.Fwt)(H),overflow:"hidden"},children:[(0,I.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:Q||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,I.jsx)(k.A,{})}),(0,I.jsx)(A.A,{height:"100%",width:"100%",url:null!==(d=null===ne||void 0===ne?void 0:ne.event_hls_url)&&void 0!==d?d:null===ne||void 0===ne?void 0:ne.thumbnail_image,isPlaying:Q||G,event:ne})]}),(0,I.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ie?(0,y.Tr1)(H):(0,y.UmS)(H))&&(null===ne||void 0===ne||null===(p=ne.products)||void 0===p?void 0:p.length)>0&&(0,I.jsx)("div",{style:{maxHeight:le,maxWidth:re,minWidth:null!==pe&&void 0!==pe&&pe.thumbnail_image?re:"0",overflow:"hidden"},children:(0,I.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,y.KZe)(H),"important")},style:{height:"100%"},src:(null===pe||void 0===pe||null===(c=pe.thumbnail_image)||void 0===c||null===(h=c.split("?"))||void 0===h?void 0:h[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,I.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(H),"important"),e.style.setProperty("font-size",J,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",X,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,S.v)(null===pe||void 0===pe?void 0:pe.title)}),me&&(0,y.Nzx)(H)&&(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,y.vw2)(H)?"row":"row-reverse",justifyContent:(0,y.vw2)(H)?"flex-start":"flex-end"},children:[(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.m5c)(H),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",X,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(H)?"normal":"bold"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(v=null===ae||void 0===ae||null===(x=ae.variants)||void 0===x||null===(f=x[0])||void 0===f?void 0:f.price)&&void 0!==v?v:null===ae||void 0===ae?void 0:ae.price)/100:null===pe||void 0===pe?void 0:pe.price)," ",H,null===(g=ne.products[0])||void 0===g?void 0:g.currency)}),!isNaN(ue)&&ue>ce&&(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.gld)(H),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",X,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==ce?"line-through":"none"},children:(0,b.Sb)(parseFloat((0,C.U)()?(null!==(w=null===ae||void 0===ae||null===(F=ae.variants)||void 0===F||null===(M=F[0])||void 0===M?void 0:M.compare_at_price)&&void 0!==w?w:null===ae||void 0===ae?void 0:ae.compare_at_price)/100:null===pe||void 0===pe?void 0:pe.compare_price)," ",H,null===(z=ne.products[0])||void 0===z?void 0:z.currency)}),"56352899156"==H&&(0,y.Nzx)(H)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(H)?"#343434"==q?(0,y.ub$)(H):q:(0,y.ub$)(H),alignItems:"center",borderRadius:(0,y.v8m)(H)+"px",width:"fit-content",padding:"3px 4px"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(H),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",X,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${ve}% ${null!==(W=null===_.m||void 0===_.m||null===(O=_.m[L])||void 0===O?void 0:O.off)&&void 0!==W?W:"off"}`})})]}),(Q||e.isActive)&&(0,y.Nzx)(H)&&me&&!isNaN(ve)&&0!=ve&&(0,I.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(H)?"#343434"==q?(0,y.ub$)(H):q:(0,y.ub$)(H),alignItems:"center",borderRadius:(0,y.v8m)(H)+"px",width:"fit-content",padding:(0,y.Cf)(H)?"3px 6px":"0px"},children:(0,y.Cf)(H)?(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y.BRY)(H),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",X,"important"))},children:`${ve}% ${null!==(R=null===_.m||void 0===_.m||null===(B=_.m[L])||void 0===B?void 0:B.off)&&void 0!==R?R:"off"}`}):(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,y._zx)(H),"important"),e.style.setProperty("font-size",ee,"important"),e.style.setProperty("font-family",(0,y.ogW)(H),"important"))},children:(0,y.rsz)(H)})})]})]})]})},M=i(1957);const z=(0,a.A)({key:"whatmore-css-hv"});function W(e){const[t,i,r]=(0,P.A)(),[l,n,s]=(0,c.A)(),a=(0,u.Xd)("whatmoreShopId"),p=e.events,h=e.onClick,g=r*(0,y.kcl)(a),w=(0,y.cbh)(a),[j,b]=(0,o.useState)(w?p.length:g),{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(m.B);return(0,o.useEffect)(()=>{j<=g&&b(e=>e+g)},[g]),(0,I.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,I.jsx)(d.RC,{slidesPerView:p.length>1?g:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,x.UM)({userInteractionType:f.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:C}),e.realIndex>e.previousIndex&&b(e=>e+g)},loop:w,children:p.map((e,t)=>t<=j&&(0,I.jsx)(d.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:r})=>i||o||t?(0,I.jsx)(M.A,{isOnFocus:t&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,I.jsx)(v.A,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function O(e){var[t,i,r,l]=(0,w.A)();const n=e.onClick,s=e.index,a=e.events,[u,h]=(0,o.useState)(6),[y,m,x]=(0,c.A)();return(0,I.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,I.jsx)(d.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:e=>{e.realIndex>e.previousIndex&&h(e=>e+1)},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[p.t9,p.Vx,p.FJ],watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*l),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map((e,t)=>t<=u&&(0,I.jsx)(d.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:r})=>r?(0,I.jsx)(F,{isOnFocus:t&&s<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{n(e)}}):(0,I.jsx)(v.A,{})},"whatmore-event-tile-portr-"+e.index))})})})}var R=function(e){const[t,i,a]=(0,c.A)(),[d]=(0,u.QN)("whatmoreShopId"),[p]=(0,u.QN)("whatmorePrimaryColor"),[v]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==t?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,o.useContext)(m.B),{whatmoreCollectionHeading:w}=(0,o.useContext)(m.B),{whatmoreIsCollectionsTemplate:P}=(0,o.useContext)(m.B),j=e.events,b=e.onClick,C=v;function S(e){b(e)}return(0,o.useEffect)(()=>{(0,g.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{n.Sn.forEach(e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}),(0,u.t2)("muted",!0)},[]),delete l.Ay.styles.global,(0,I.jsx)(s.C,{value:z,children:(0,I.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,I.jsx)(r.s,{theme:l.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,I.jsxs)(h.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||P?(0,I.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",x+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:P?"W"!==w?w:"":e.heading})}):(0,I.jsx)(I.Fragment,{}),"landscape"===t?(0,I.jsx)(O,{index:e.index,events:j,onClick:S}):(0,I.jsx)(W,{index:e.index,events:j,onClick:S})]})})})})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see carousel-template-j.76720098.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[4497],{22:function(e,t,o){"use strict";o.d(t,{$S:function(){return s},_:function(){return r},b4:function(){return i},dl:function(){return n},nN:function(){return c},tn:function(){return l},vF:function(){return a}});const r="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",c="landscape"},932:function(e,t,o){"use strict";var r=o(5830),n=o(1941),i=o(22),a=o(1348);t.A=function(e){const[t,o,s]=(0,n.A)(),[l]=(0,r.QN)("whatmoreLandscapePadding"),[c]=(0,r.QN)("whatmoreShopId"),[d]=(0,r.QN)("whatmoreVideoTileSize"),[p]=(0,r.QN)("whatmoreVideoTileSizePortrait"),u=s>o,h="portrait"==t?p:d,f=!("portrait"!=t||!(s>=481)),y=h/100*1.3*.5,m=h/100;var v=Math.min(s,o),[g,x,w,_]=[.6*v*(16/9),.6*v,1.4,0];function P(e){return Math.round(10*e)/10}var C={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(u){const e=x*y,t=g*y;[g,x,w,_]=[t,e,(s-2*l-2*(0,a.$du)(c))/(1.1*e),l],C[i._]=i.$S,C[i.dl]=i.nN}else if(f){var b=.8*x,S=.8*g;"portrait"==t?(b*=m,S*=m,[g,x,w,_]=[S,b,P(s/(1.2*b)),0],C[i._]=i.vF,C[i.dl]=i.tn):([g,x,w,_]=[S,b,(s-2*l)/(1.1*b),l],C[i._]=i.vF,C[i.dl]=i.nN)}else{b=x,S=g;"portrait"==t?(b=b*m*.9,S=S*m*.9,[g,x,w,_]=[S,b,P(s/(1.15*b)),0],C[i._]=i.b4,C[i.dl]=i.tn):(b=.7*x,S=.7*g,[g,x,w,_]=[S,b,(s-2*l)/(1.1*b),l],C[i._]=i.b4,C[i.dl]=i.nN)}return[g,x,w,_,C]}},2173:function(e,t,o){const r=o(8558);e.exports=function(e){if("string"!==typeof e)return;const t=e.toUpperCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0},e.exports.currencySymbolMap=r},3795:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return j}});var r=o(9950),n=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),p=o(932),u=o(1941),h=o(5491),f=o.n(h),y=o(5830),m=o(7509),v=o(7136),g=o(1348),x=o(5551),w=o(1351),_=o(6157),P=o(6641),C=(o(4826),o(9879)),b=o(22),S=o(6594),k=o(8149),D=o(7740),A=(o(7035),o(4414));var M=function(e){var t,o,n,i,a,s,l,c,d,u,h,f,m,v,w,_;const[P,M,R,N,T]=(0,p.A)(),j=1*M,B=1*P,I=((0,y.Xd)("whatmoreUITheme"),(0,y.Xd)("whatmoreShopId")),O=(0,y.Xd)("whatmorePrimaryFont"),F=(0,y.Xd)("whatmoreSecondaryColor"),U=((0,y.Xd)("websiteLanguage"),e.onClick),E=null===(t=e.isOnFocus)||void 0===t||t,L=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,$=null!==(n=e.animateOnFocus&&(0,g.n5O)(I))&&void 0!==n&&n,z="portrait"===T[b.dl],W=(z?1.15*M*(0,g.HWj)(I):1.05*M*(0,g.N_4)(I))+"px",G=z?1.2*M*(0,g.HWj)(I):1.1*M*(0,g.N_4)(I),K=G+"px",V=z?.8*M*(0,g.HWj)(I):.7*M*(0,g.N_4)(I),{whatmoreIsPreviewMode:H,whatmoreWidgetSourceDetails:Y}=(0,r.useContext)(x.B),[X,Z]=(0,r.useState)(e.event),[J,Q]=(0,r.useState)(),[q,ee]=(0,r.useState)(!1),[te,oe]=(0,r.useState)(!1),re=null!==(i=null===(a=X.products)||void 0===a?void 0:a.find(e=>"active"==e.product_status))&&void 0!==i?i:null===(s=X.products)||void 0===s?void 0:s[0],ne=Math.round(+(null===re||void 0===re?void 0:re.price)),ie=Math.round(+(null===re||void 0===re?void 0:re.compare_price)),ae=ie&&0!=ie&&ie>ne?Math.round((ie-ne)/ie*100):NaN,[se,le]=(0,r.useState)(ae),[ce,de]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(0,g.w4b)(I)?(0,S.fu)(X,(0,g.NCy)(I),I).then(e=>{var t,o,r;Z(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),i=Math.round(null===e||void 0===e||null===(r=e.products[0])||void 0===r?void 0:r.compare_price),a=i&&0!=i&&i>n?Math.round((i-n)/i*100):NaN;le(a),de(!0)}):(async()=>{const e=await(0,k.M)(re,(0,g.NCy)(I),I);Q(e),de(!0)})()},[]),(0,A.jsxs)("div",{className:$&&!z?E?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:j,margin:"0",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",background:"transparent",position:"relative",transition:"transform 0.2s ease-out",transform:q?"translateY(-2px)":"translateY(0)"},onClick:()=>{U(X)},onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),children:[(0,A.jsxs)("div",{style:{width:"100%",height:B,borderRadius:"0px",overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",background:"#fafafa",transition:"box-shadow 0.2s ease-out",boxShadow:q?"0 2px 8px rgba(0, 0, 0, 0.08)":"none"},children:[(0,A.jsx)(C.A,{height:(0,g.u06)(I)+" !important",width:"100%",url:X.thumbnail_image,isPlaying:E||L,event:X,style:{objectFit:"cover",filter:"none",transition:"none"}}),re&&(0,g.WDJ)(I)&&(q||z)&&(0,A.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-out",cursor:"pointer",transform:q||z?"translateY(0)":"translateY(100%)",opacity:q||z?1:0,zIndex:10},onClick:e=>{e.stopPropagation()},onMouseEnter:e=>{e.target.style.background="rgba(0, 0, 0, 0.7)"},onMouseLeave:e=>{e.target.style.background="rgba(0, 0, 0, 0.6)"},children:(0,A.jsx)("span",{style:{color:"white",fontSize:W,fontFamily:O,fontWeight:"400",textAlign:"center",letterSpacing:"0.5px",textTransform:"uppercase"},children:"ADD TO CART"})})]}),re&&(0,g.LPW)(I)&&(0,A.jsxs)("div",{style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",padding:"12px 0 8px 0",width:"100%",background:"transparent"},children:[(null===re||void 0===re?void 0:re.product_type)&&(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size","9px"),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","400"),e.style.setProperty("text-transform","uppercase"),e.style.setProperty("letter-spacing","0.7px"),e.style.setProperty("margin","0"),e.style.setProperty("line-height","1"),e.style.setProperty("overflow","hidden"),e.style.setProperty("text-overflow","ellipsis"),e.style.setProperty("white-space","nowrap"))},children:null===re||void 0===re?void 0:re.product_type}),(0,A.jsxs)("div",{style:{display:"flex",gap:"8px",alignItems:"flex-start",width:"100%"},children:[(null===re||void 0===re?void 0:re.thumbnail_image)&&(0,g.UmS)(I)&&(0,A.jsx)("div",{style:{width:"48px",height:"48px",flexShrink:0,borderRadius:"0px",overflow:"hidden",background:"#f8f8f8"},children:(0,A.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit","cover")},src:(null===re||void 0===re||null===(l=re.thumbnail_image)||void 0===l||null===(c=l.split("?"))||void 0===c?void 0:c[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>oe(!0),style:{width:"100%",height:"100%",opacity:te?1:0}})}),(0,A.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[(null===re||void 0===re?void 0:re.title)&&(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",W),e.style.setProperty("line-height","1.2"),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","400"),e.style.setProperty("letter-spacing","0px"),e.style.setProperty("margin","0"),e.style.setProperty("overflow","hidden"),e.style.setProperty("text-overflow","ellipsis"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("-webkit-line-clamp","1"),e.style.setProperty("-webkit-box-orient","vertical"),e.style.setProperty("text-transform","uppercase"),e.style.setProperty("letter-spacing","0.7px"))},children:null===re||void 0===re?void 0:re.title}),ce&&(0,g.Nzx)(I)&&(0,A.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"6px"},children:[(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",K),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","500"),e.style.setProperty("letter-spacing","0px"),e.style.setProperty("white-space","nowrap"),e.style.setProperty("margin","0"))},children:(0,S.Sb)(parseFloat((0,D.U)()?(null!==(d=null===J||void 0===J||null===(u=J.variants)||void 0===u||null===(h=u[0])||void 0===h?void 0:h.price)&&void 0!==d?d:null===J||void 0===J?void 0:J.price)/100:null===re||void 0===re?void 0:re.price)," ",I,null===(f=X.products[0])||void 0===f?void 0:f.currency)}),!isNaN(ie)&&ie>ne&&(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size",.9*G+"px"),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","400"),e.style.setProperty("white-space","nowrap"),e.style.setProperty("margin","0"))},style:{textDecoration:"line-through",textDecorationColor:"#cccccc"},children:(0,S.Sb)(parseFloat((0,D.U)()?(null!==(m=null===J||void 0===J||null===(v=J.variants)||void 0===v||null===(w=v[0])||void 0===w?void 0:w.compare_at_price)&&void 0!==m?m:null===J||void 0===J?void 0:J.compare_at_price)/100:null===re||void 0===re?void 0:re.compare_price)," ",I,null===(_=X.products[0])||void 0===_?void 0:_.currency)}),(0,g.Nzx)(I)&&ce&&!isNaN(se)&&0!=se&&(0,g.Cf)(I)&&(0,A.jsx)("div",{style:{display:"inline-flex",background:F,alignItems:"center",justifyContent:"center",borderRadius:"0px",padding:"4px 8px"},children:(0,A.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","#ffffff"),e.style.setProperty("font-size",1.2*V+"px"),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","600"),e.style.setProperty("letter-spacing","0.5px"),e.style.setProperty("text-transform","uppercase"),e.style.setProperty("margin","0"),e.style.setProperty("line-height","1.2"),e.style.setProperty("white-space","nowrap"))},children:[se,"%"]})})]})]})]}),""!=(null===X||void 0===X?void 0:X.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,A.jsx)("div",{className:"wht-video-title",style:{display:"none",marginTop:"8px"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#666666"),e.style.setProperty("font-family",O),e.style.setProperty("font-weight","400"),e.style.setProperty("font-size","11px"),e.style.setProperty("line-height","1.4"),e.style.setProperty("letter-spacing","0px"))},style:{margin:"0",textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:null===X||void 0===X?void 0:X.title})})]})]})};const R=(0,l.A)({key:"whatmore-css-hv"});function N(e){const[t,o,n]=(0,p.A)(),[i,a,s]=(0,u.A)(),l=(0,y.Xd)("whatmoreShopId"),h=e.events,f=e.onClick,m=n*(0,g.kcl)(l),P=(0,g.cbh)(l),[C,b]=(0,r.useState)(P?h.length:m),{whatmoreWidgetSourceDetails:S}=(0,r.useContext)(x.B);return(0,r.useEffect)(()=>{C<=m&&b(e=>e+m)},[m]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait premium-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 24px",background:"transparent",margin:"8px 0",position:"relative",overflow:"hidden"},children:(0,A.jsx)("div",{style:{width:s-48,height:"fit-content",position:"relative",zIndex:1},children:(0,A.jsx)(c.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[d.U1],spaceBetween:12,freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.7,momentumBounce:!1,momentumVelocityRatio:.9},touchRatio:1.2,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:400,onSlideChange:e=>{(0,w.UM)({userInteractionType:_.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:S}),e.realIndex>e.previousIndex&&b(e=>e+m)},loop:P,style:{paddingTop:"8px",paddingBottom:"8px"},children:h.map((e,t)=>t<=C&&(0,A.jsx)(c.qr,{children:({isActive:t,isPrev:o,isNext:r,isVisible:n})=>o||r||t?(0,A.jsx)("div",{style:{transform:t?"scale(1.02)":"scale(0.98)",transition:"transform 0.3s ease-out",filter:t?"none":"brightness(0.9)",opacity:t?1:.85},children:(0,A.jsx)(M,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{f(e)}})}):(0,A.jsx)(v.A,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function T(e){const[t,o,n,i]=(0,p.A)(),[a,s]=(0,r.useState)(-1),l=(0,y.Xd)("whatmoreShopId"),u=e.onClick,h=e.events,m=(0,g.cbh)(l),[P,C]=(0,r.useState)(m?h.length:n),b=Math.min(n,h.length),{whatmoreWidgetSourceDetails:S}=(0,r.useContext)(x.B),k=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(k.current){const e=o*b*(0,g.fHt)(l)+"px";h.length<4?k.current.style.setProperty("width",e,"important"):k.current.style.width=e}},[o,b,l,P,h.length]),(0,r.useEffect)(()=>{P<=n&&C(e=>e+n)},[n]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:i+"px",paddingRight:i+"px",background:"transparent"},className:"whatmore-events-carousel-landscape premium-carousel-landscape",children:(0,A.jsx)("div",{ref:k,style:{zIndex:1},children:(0,A.jsx)(c.RC,{slidesPerView:b,watchSlidesProgress:!0,modules:[d.FJ,d.U1],freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onSlideChange:e=>{(0,w.UM)({userInteractionType:_.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:S}),e.realIndex>e.previousIndex&&C(e=>e+n)},spaceBetween:0,loop:!1,touchRatio:1,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:500,mousewheel:{forceToAxis:!0,sensitivity:.6,releaseOnEdges:!0,invert:!1},children:h.map((e,t)=>{const o=f()(()=>s(t),50);return t<=P&&(0,A.jsx)(c.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:({isActive:o,isPrev:r,isNext:n,isVisible:i})=>i||r||n?(0,A.jsx)("div",{style:{height:"100%",transform:t===a?"translate3d(0, -1px, 0)":"translate3d(0, 0, 0)",transition:"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease-out, opacity 0.3s ease-out",filter:t===a?"brightness(1.02)":"none",opacity:t===a?1:.98,willChange:"transform, filter, opacity"},children:(0,A.jsx)(M,{isOnFocus:t==a,playOnUnfocus:!(0,g.aO7)(l)||t==parseInt(b/2)&&-1==a,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})}):(0,A.jsx)(v.A,{})},"wht-event-tile-landscape-"+e.index)})})})})}var j=function(e){const[t,o,l]=(0,u.A)(),[c]=(0,y.QN)("whatmoreShopId"),[d]=(0,y.QN)("whatmorePrimaryColor"),[p]=(0,y.QN)("whatmoreTitleFont"),h="portrait"==t?(0,y.Xd)("whatmoreTitleFontSizePortrait"):(0,y.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,r.useContext)(x.B),{whatmoreCollectionHeading:v}=(0,r.useContext)(x.B),{whatmoreIsCollectionsTemplate:g}=(0,r.useContext)(x.B),w=e.events,_=e.onClick,C=p;function b(e){_(e)}return(0,r.useEffect)(()=>{(0,P.Fk)("Video shopping powered by Whatmore!")},[]),(0,r.useEffect)(()=>{a.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 i.Ay.styles.global,(0,A.jsx)(s.C,{value:R,children:(0,A.jsx)("div",{className:"whatmore-carousel-events premium-carousel-container",style:{height:"100%",background:"transparent",position:"relative",padding:"portrait"===t?"8px 0":"16px 0"},children:(0,A.jsx)(n.s,{theme:i.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,A.jsxs)(m.h.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[(e.heading.trim().length>0||g)&&(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginBottom:"portrait"===t?"12px":"16px",position:"relative",zIndex:1},children:(0,A.jsx)("div",{style:{background:"transparent",padding:"8px 24px",position:"relative"},children:(0,A.jsx)("h2",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",h+"px","important"))},style:{color:"#1a1a1a",textAlign:"center",fontWeight:"300",lineHeight:"1.2",letterSpacing:"0.5px",margin:0,position:"relative",zIndex:1,textTransform:"uppercase",fontSize:h+"px"},children:g?"W"!==v?v:"":e.heading})})}),"landscape"===t?(0,A.jsx)(T,{events:w,onClick:b}):(0,A.jsx)(N,{events:w,onClick:b})]})})})})}},3997:function(){},4365:function(){},4669:function(){},4826:function(){},6042:function(){},7035:function(e,t,o){"use strict";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",swipe_more:"swipe for more"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"},tr:{swipe_more:"Daha fazlas\u0131 i\xe7in kayd\u0131r\u0131n"}}},7136:function(e,t,o){"use strict";var r=o(9950),n=o(932),i=o(7509),a=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,r.useContext)(i.h);const l=(0,a.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==l?void 0:o,aspectRatio:"8968077397"==l?9/16:void 0,height:"8968077397"==l?"100%":t,overflow:"hidden"}})}},7229:function(){},7509:function(e,t,o){"use strict";o.d(t,{h:function(){return r}});const r=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8558:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9211:function(e,t,o){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)e[r]=o[r]}return e}o.d(t,{A:function(){return n}});var n=function e(t,o){function n(e,n,i){if("undefined"!==typeof document){"number"===typeof(i=r({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],r={},n=0;n<o.length;n++){var i=o[n].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}},remove:function(e,t){n(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},9733:function(){}}]);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[7116],{22:function(t,n,e){e.d(n,{$S:function(){return s},_:function(){return r},b4:function(){return o},dl:function(){return i},nN:function(){return l},tn:function(){return c},vF:function(){return a}});const r="device_type",i="device_mode",o="mobile",a="tablet",s="desktop",c="portrait",l="landscape"},932:function(t,n,e){var r=e(5830),i=e(1941),o=e(22),a=e(1348);n.A=function(t){const[n,e,s]=(0,i.A)(),[c]=(0,r.QN)("whatmoreLandscapePadding"),[l]=(0,r.QN)("whatmoreShopId"),[u]=(0,r.QN)("whatmoreVideoTileSize"),[d]=(0,r.QN)("whatmoreVideoTileSizePortrait"),f=s>e,h="portrait"==n?d:u,m=!("portrait"!=n||!(s>=481)),p=h/100*1.3*.5,g=h/100;var v=Math.min(s,e),[x,w,b,y]=[.6*v*(16/9),.6*v,1.4,0];function j(t){return Math.round(10*t)/10}var C={DEVICE_TYPE:o.b4,DEVICE_MODE:o.tn};if(f){const t=w*p,n=x*p;[x,w,b,y]=[n,t,(s-2*c-2*(0,a.$du)(l))/(1.1*t),c],C[o._]=o.$S,C[o.dl]=o.nN}else if(m){var M=.8*w,S=.8*x;"portrait"==n?(M*=g,S*=g,[x,w,b,y]=[S,M,j(s/(1.2*M)),0],C[o._]=o.vF,C[o.dl]=o.tn):([x,w,b,y]=[S,M,(s-2*c)/(1.1*M),c],C[o._]=o.vF,C[o.dl]=o.nN)}else{M=w,S=x;"portrait"==n?(M=M*g*.9,S=S*g*.9,[x,w,b,y]=[S,M,j(s/(1.15*M)),0],C[o._]=o.b4,C[o.dl]=o.tn):(M=.7*w,S=.7*x,[x,w,b,y]=[S,M,(s-2*c)/(1.1*M),c],C[o._]=o.b4,C[o.dl]=o.nN)}return[x,w,b,y,C]}},3852:function(t,n,e){e.d(n,{A:function(){return w}});var r=e(3247),i=e(1422),o=e(3731),a=e(211),s=e(9950),c=e(932),l=e(5242),u=e(8781),d=e(8283);const f=d.i7`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(1);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: scale(1.05);
|
|
7
|
-
}
|
|
8
|
-
`,h=d.i7`
|
|
9
|
-
0% {
|
|
10
|
-
transform: scale(1.05);
|
|
11
|
-
}
|
|
12
|
-
100% {
|
|
13
|
-
transform: scale(1);
|
|
14
|
-
}
|
|
15
|
-
`,m=`\n ${f}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,p=`\n ${h}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var g=e(5830),v=e(7509),x=e(4414);var w=function(t){var n,e,[d,f]=(0,c.A)();const[h]=(0,g.QN)("whatmorePrimaryFont");var w=(0,s.useContext)(v.h);const b=t.event,y=t.onClick,j=null===(n=t.isOnFocus)||void 0===n||n,C=(t.playOnUnfocus,null!==(e=t.animateOnFocus)&&void 0!==e&&e);return(0,x.jsxs)(r.az,{animation:C?j?m:p:"none",marginTop:w.tileTopMargin,marginBottom:w.tileBottomMMargin,marginLeft:w.tileLeftMargin,marginRight:w.tileRightMargin,width:f,height:d,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{y(b)},cursor:"pointer",children:[(0,x.jsx)(a._,{width:"full",height:"full",src:b.thumbnail_image,objectFit:"cover",fallback:(0,x.jsx)(u.A,{width:f,height:d}),borderRadius:"lg"}),(0,x.jsx)(r.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,x.jsxs)(i.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,x.jsx)(r.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(i.B,{direction:"column",justifyContent:"flex-start",children:(0,x.jsx)(r.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,x.jsx)(i.B,{direction:"row",justifyContent:"space-between",children:(0,x.jsx)(l.A,{event:b,fontSize:.05*d+"px",maxWidth:.8*f})})})})}),(0,x.jsx)(r.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,x.jsx)(i.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,x.jsx)(r.az,{width:"full",borderRadius:"lg",children:(0,x.jsxs)(i.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,x.jsx)(o.E,{color:"white",fontSize:.08*f+"px",fontWeight:"normal",align:"left",children:" "}),(0,x.jsx)(o.E,{fontSize:.08*f+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:b.title.substring(0,40)}),(0,x.jsx)(o.E,{fontSize:.08*f+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:b.presenter_name.substring(0,15)})]})})})})]})})]})}},3997:function(){},4063:function(t,n,e){var r=e(9950),i=e(3731),o=e(3247),a=e(5830),s=e(5144),c=e(4414);n.A=function(t){var n,e;const[l,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),[h]=(0,a.QN)("whatmoreSecondaryColor"),[m]=(0,a.QN)("whatmoreSecondaryColorShade600"),[p]=(0,a.QN)("whatmoreSecondaryColorShade300"),[g]=(0,a.QN)("whatmorePrimaryFont"),v=t.onClick,x=t.icon,w=null!==(n=t.borderRadius)&&void 0!==n?n:"sm",b=null!==(e=t.baseFontSize)&&void 0!==e?e:12;return(0,c.jsxs)(o.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:w,backgroundColor:l?p:h,animation:d?s.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),f(!0),v()},onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},children:[(0,c.jsx)(i.E,{fontSize:b+"px !important",fontWeight:"normal",sx:{fontFamily:g+" !important",color:"white !important"},children:"VIEW MORE"}),x]})}},4365:function(){},4826:function(){},5144:function(t,n,e){e.d(n,{jd:function(){return i},so:function(){return o}});var r=e(8283);const i=`\n ${r.i7`
|
|
16
|
-
0% { transform: scale(1); }
|
|
17
|
-
50%, { transform: scale(0.95); }
|
|
18
|
-
100% { transform: scale(1); }
|
|
19
|
-
`} 0.2s linear;\n`,o=(r.i7`
|
|
20
|
-
100% {
|
|
21
|
-
-webkit-transform: rotate(360deg);
|
|
22
|
-
transform:rotate(360deg);
|
|
23
|
-
}
|
|
24
|
-
`,r.i7`
|
|
25
|
-
0% {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
transform: translateY(100%);
|
|
28
|
-
}
|
|
29
|
-
10%{
|
|
30
|
-
transform: translateY(0%);
|
|
31
|
-
}
|
|
32
|
-
12%{
|
|
33
|
-
transform: translateY(-5%);
|
|
34
|
-
}
|
|
35
|
-
20%{
|
|
36
|
-
transform: translateY(0%);
|
|
37
|
-
}
|
|
38
|
-
95%{
|
|
39
|
-
opacity: 1;
|
|
40
|
-
transform: scale(1);
|
|
41
|
-
}
|
|
42
|
-
100%{
|
|
43
|
-
opacity: 0;
|
|
44
|
-
}
|
|
45
|
-
`,`\n ${r.i7`
|
|
46
|
-
0% {
|
|
47
|
-
transform: scale(0.3);
|
|
48
|
-
}
|
|
49
|
-
70% {
|
|
50
|
-
transform: scale(1.05);
|
|
51
|
-
}
|
|
52
|
-
100% {
|
|
53
|
-
transform: scale(1);
|
|
54
|
-
}
|
|
55
|
-
`} 0.3s ease-in-out;\n`)},5242:function(t,n,e){var r=e(3731),i=e(1422),o=e(3247),a=e(7239),s=e(5388),c=e(4414);n.A=function(t){var n,e=t.event,l=t.fontSize,u=null!==(n=t.maxWidth)&&void 0!==n?n:"100%",{status:d,bannerText:f,timeToStartInMins:h}=a.A.getEventStatus(e);return d.name===s.A.LIVE.name?(0,c.jsx)(o.az,{maxWidth:u,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"bold",color:"white",children:f})})}):(0,c.jsx)(o.az,{maxWidth:u,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"medium",children:f})})})}},5388:function(t,n){n.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6474:function(t,n,e){e.r(n),e.d(n,{capitalize:function(){return i.A},createChainedFunction:function(){return o},createSvgIcon:function(){return a.A},debounce:function(){return s},deprecatedPropType:function(){return c},isMuiElement:function(){return d},ownerDocument:function(){return h},ownerWindow:function(){return m},requirePropFactory:function(){return p},setRef:function(){return v},unstable_ClassNameGenerator:function(){return P},unstable_useEnhancedEffect:function(){return w},unstable_useId:function(){return j},unsupportedProp:function(){return C},useControlled:function(){return M},useEventCallback:function(){return S},useForkRef:function(){return E},useIsFocusVisible:function(){return L}});var r=e(4501),i=e(1676);var o=function(...t){return t.reduce((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)},()=>{})},a=e(3059);var s=function(t,n=166){let e;function r(...r){clearTimeout(e),e=setTimeout(()=>{t.apply(this,r)},n)}return r.clear=()=>{clearTimeout(e)},r};var c=function(t,n){return()=>null},l=e(9950),u=e.t(l,2);var d=function(t,n){var e,r;return l.isValidElement(t)&&-1!==n.indexOf(null!=(e=t.type.muiName)?e:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function f(t){return t&&t.ownerDocument||document}var h=f;var m=function(t){return f(t).defaultView||window};var p=function(t,n){return()=>null};function g(t,n){"function"===typeof t?t(n):t&&(t.current=n)}var v=g;var x="undefined"!==typeof window?l.useLayoutEffect:l.useEffect,w=x;let b=0;const y=u["useId".toString()];var j=function(t){if(void 0!==y){const n=y();return null!=t?t:n}return function(t){const[n,e]=l.useState(t),r=t||n;return l.useEffect(()=>{null==n&&(b+=1,e(`mui-${b}`))},[n]),r}(t)};var C=function(t,n,e,r,i){return null};var M=function({controlled:t,default:n,name:e,state:r="value"}){const{current:i}=l.useRef(void 0!==t),[o,a]=l.useState(n);return[i?t:o,l.useCallback(t=>{i||a(t)},[])]};var S=function(t){const n=l.useRef(t);return x(()=>{n.current=t}),l.useRef((...t)=>(0,n.current)(...t)).current};var E=function(...t){return l.useMemo(()=>t.every(t=>null==t)?null:n=>{t.forEach(t=>{g(t,n)})},t)};class A{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let T=!0,I=!1;const F=new A,k={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function N(t){t.metaKey||t.altKey||t.ctrlKey||(T=!0)}function O(){T=!1}function z(){"hidden"===this.visibilityState&&I&&(T=!0)}function R(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch(e){}return T||function(t){const{type:n,tagName:e}=t;return!("INPUT"!==e||!k[n]||t.readOnly)||"TEXTAREA"===e&&!t.readOnly||!!t.isContentEditable}(n)}var L=function(){const t=l.useCallback(t=>{var n;null!=t&&((n=t.ownerDocument).addEventListener("keydown",N,!0),n.addEventListener("mousedown",O,!0),n.addEventListener("pointerdown",O,!0),n.addEventListener("touchstart",O,!0),n.addEventListener("visibilitychange",z,!0))},[]),n=l.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(t){return!!R(t)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(I=!0,F.start(100,()=>{I=!1}),n.current=!1,!0)},ref:t}};const P={configure:t=>{r.A.configure(t)}}},7144:function(t,n,e){e.r(n);var r=e(9950),i=e(3852),o=e(340),a=e(5089),s=e(8726),c=(e(3997),e(9733),e(4365),e(572)),l=e(8603),u=e(3731),d=e(1422),f=e(3247),h=e(6086),m=e(932),p=e(1941),g=e(5830),v=(e(5144),e(7509)),x=e(1348),w=e(5551),b=e(2039),y=e(5620),j=e(4063),C=e(4414);const M=(0,l.A)({key:"whatmore-css-hv"});function S(t,n){var e=[];const r=n;for(let i=0;i<t.length;i+=r){const n=t.slice(i,i+r);e.push(n)}return e}function E(t){var n;const[e,o,a]=(0,m.A)();var[c,l]=(0,r.useState)(0);const u=t.events,p=t.onClick,g=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,v=S(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(h.o,{children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:v.map((t,n)=>n>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:c<v.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,icon:(0,C.jsx)(s.A,{style:{color:"white"}}),onClick:()=>{c>=v.length-1||l(t=>t+g)}})}):(0,C.jsx)(C.Fragment,{})})]})})}function A(t){var n;const[e,o,a,c]=(0,m.A)();var[l,u]=(0,r.useState)(0);const p=t.events,g=t.onClick,v=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,x=S(p,Math.floor(Math.min(a,p.length)));return(0,C.jsx)(h.o,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:x.map((t,n)=>n>l?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:l<x.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,onClick:()=>{l>=x.length-1||u(t=>t+v)},icon:(0,C.jsx)(s.A,{style:{color:"white"}})})}):(0,C.jsx)(C.Fragment,{})})]})})}n.default=function(t){var n;const[e,i,s]=(0,p.A)(),[l]=(0,g.QN)("whatmoreShopId"),[d]=(0,g.QN)("whatmorePrimaryColor"),[f]=(0,g.QN)("whatmoreSecondaryColor"),[m]=(0,g.QN)("whatmoreTitleFont"),b="portrait"==e?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,r.useContext)(w.B),j=t.events,S=t.onClick,T=null!==(n=(0,x.sa6)(l))&&void 0!==n?n:m;function I(t){S(t)}return delete a.Ay.styles.global,(0,C.jsx)(c.C,{value:M,children:(0,C.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,C.jsx)(o.s,{theme:a.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,C.jsxs)(v.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,C.jsx)(h.o,{children:(0,C.jsx)(u.E,{bgColor:d,bgClip:"text",fontSize:b,sx:{fontFamily:T+" !important"},align:"center",children:t.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(A,{events:j,onClick:I,seeMoreIncrement:1}):(0,C.jsx)(E,{events:j,onClick:I,seeMoreIncrement:2})]})})})})}},7239:function(t,n,e){var r=e(5388);n.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,i=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==r.A.LIVE.name)return{status:r.A.LIVE,bannerText:" "+r.A.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==r.A.UPCOMING.name){var s=new Date(i+" "+n+" "+a),c=(new Date(i+" "+e+" "+a),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,i=e/60,o=i/60,a=o/24;return e<=0?{status:r.A.COMPLETED,bannerText:" "+r.A.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:i<60?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:o<24?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:r.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:c.status,bannerText:c.bannerText,timeToStartInMins:c.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},7509:function(t,n,e){e.d(n,{h:function(){return r}});const r=(0,e(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,n,e){e.d(n,{B:function(){return a},b:function(){return o}});var r=e(1348),i=e(5830);function o(t,n=""){const e=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(e)?"STRNV8MHJTF"==e?t+"?format=webp":t:t+n}function a(t){var n;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const e=null===t||void 0===t||null===(n=t.trim())||void 0===n?void 0:n.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(e)?"image":null!==i&&void 0!==i&&i.test(e)?"video":void 0}},8538:function(t,n,e){e.d(n,{v:function(){return i}});var r=e(5830);function i(t,n){const e=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==e||"72442478904"==e||"58562281529"==e||"73633562802"==e?t:"66168324332"==e&&"prod-tile"!=n?null===t||void 0===t||null===(i=t.split("- "))||void 0===i?void 0:i[0]:"6573064236"===e?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var i}},8726:function(t,n,e){var r=e(4994);n.A=void 0;var i=r(e(9526)),o=e(4414);n.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},9526:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=e(6474)},9733:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[2423],{517:function(e,t,o){o.r(t);var r=o(9950),i=o(340),n=o(5089),a=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),l=o(8603),p=o(1941),s=o(5830),d=o(7509),x=o(5551),h=o(2410),c=o(9611),m=o(8385),u=o(932),g=o(6641),w=o(851),f=o(6649),v=o(1348),y=o(5873),b=o(4414);const j=(0,l.A)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o]=(0,p.A)(),[l,S]=(0,u.A)(),[C,k]=(0,r.useState)(Array(t.length).fill(0).map(()=>Math.random())),A=(0,s.Xd)("whatmoreVideoTileSize"),R=(0,s.Xd)("whatmoreVideoTileSizePortrait"),T="portrait"===o?R:A,B="portrait"==o?0:(0,s.Xd)("whatmoreLandscapePadding"),P=(0,s.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:L}=(0,r.useContext)(x.B),V=(0,s.Xd)("whatmoreShopId"),{whatmoreRootId:F}=(0,r.useContext)(x.B),M=e.onClick;function N(e){M(e)}(0,r.useEffect)(()=>{(0,g.Fk)("Video shopping powered by Whatmore!")},[]),delete n.Ay.styles.global;var E=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&C[r]>.2?(E.push((0,b.jsx)(c.A,{mode:o,event1:t[r],event2:t[r+1],onClick:()=>{N(t[r-1])}},"collections-tile-"+r)),r+=2,i=!i):(E.push((0,b.jsx)(h.A,{mode:o,event:t[r],onClick:()=>{N(t[r-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+r)),r+=1,i=!i);(0,r.useEffect)(()=>{y.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-a"]')))return;e&&(e.style.minHeight="0px")})},[]);const[I,Q,X]=(0,f.A)({triggerOnce:!1});return(0,b.jsx)(a.C,{value:j,children:(0,b.jsx)("div",{className:L?"whatmore-collection-events":"whatmore-carousel-events",children:(0,b.jsx)(i.s,{theme:n.Ay,cssVarsRoot:F,resetCSS:!1,children:(0,b.jsxs)(d.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,b.jsx)("div",{ref:I,style:{marginLeft:B+"px",marginRight:B+"px"},children:(0,b.jsx)(m.c,{renderElement:e=>(0,b.jsx)(b.Fragment,{children:e.eventData}),dataList:E,spacing:P,defaultHeight:l*T*.01+"px",defaultWidth:S*T*.01+"px",retainAlreadyRenderedElements:!0})}),(0,v.wQ2)(V)&&L&&!Q&&-1==e.index&&(0,b.jsx)(w.A,{event:t[0],inVideoClick:N,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},9611:function(e,t,o){var r=o(9950),i=o(1348),n=o(5830),a=(o(6125),o(4365),o(6614),o(9879)),l=o(932),p=o(4414);t.A=function(e){var t;const[o,s]=(0,l.A)(),[d]=(0,n.QN)("whatmoreSecondaryColor"),[x]=(0,n.QN)("whatmoreShopId"),[h]=(0,n.QN)("whatmoreVideoTileSize"),[c]=(0,n.QN)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?c:h,[u,g]=(0,r.useState)(!1),w=(0,i.ivI)(x),f=e.event1,v=e.event2,y=e.onClick,b=.01*m,j=o*b,S=o*b*.5,C=s*b,k=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",A="15%",R=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:j+"px",width:C+"px",marginLeft:R?"2px":"5px",marginRight:R?"2px":"5px",marginTop:R?"2px":"5px",marginBottom:R?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:R?"0px":k,boxShadow:R?"":"0px 1px 1px 0px "+d+"50, 0px -1px 1px 0px "+w+"50, 1px 0px 1px 0px "+d+"50, -1px 0px 1px 0px "+w+"80, 1px -1px 1px 0px "+d+"80, -1px 1px 1px 0px "+w+"DA, 1px 1px 1px 0px "+d+"DA, -1px -1px 1px 0px "+w+"DA"},onClick:()=>{g(!0),y(f)},className:[u?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:C+"px",borderTopLeftRadius:R?"0px":A,borderTopRightRadius:R?"0px":A,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(a.A,{height:"100%",width:"100%",url:f.thumbnail_image,isPlaying:!0,event:f})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:C+"px",borderBottomLeftRadius:R?"0px":A,borderBottomRightRadius:R?"0px":A,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(a.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!0,event:v})})]})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[2412],{7646:function(e,t,o){o.r(t);var r=o(9950),i=o(340),a=o(5089),n=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),l=o(8603),p=o(1941),s=o(5830),d=o(7509),h=o(5551),x=o(5873),c=o(2410),m=o(9611),u=o(8385),w=o(932),g=o(6641),v=o(1348),f=o(851),y=o(6649),b=o(4414);const S=(0,l.A)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o]=(0,p.A)(),[l,j]=(0,r.useState)(Array(t.length).fill(0).map(()=>Math.random())),[C,k]=(0,w.A)(),A=(0,s.Xd)("whatmoreVideoTileSize"),R=(0,s.Xd)("whatmoreVideoTileSizePortrait"),B="portrait"===o?R:A,T="portrait"==o?0:(0,s.Xd)("whatmoreLandscapePadding"),P=(0,s.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:L}=(0,r.useContext)(h.B),V=(0,s.Xd)("whatmoreShopId"),{whatmoreRootId:F}=(0,r.useContext)(h.B),M=e.onClick,[N,E,I]=(0,y.A)({triggerOnce:!1});function Q(e){M(e)}delete a.Ay.styles.global;var X=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&l[r]>.2?(X.push((0,b.jsx)(m.A,{event1:t[r],event2:t[r+1],onClick:()=>{Q(t[r-1])},removeBorders:!0},"collections-tile-"+r)),r+=2,i=!i):(X.push((0,b.jsx)(c.A,{mode:o,event:t[r],onClick:()=>{Q(t[r-1])},removeBorders:!0,borderRadius:"0%"},"collections-tile-"+r)),r+=1,i=!i);return(0,r.useEffect)(()=>{(0,g.Fk)("Video shopping powered by Whatmore!")},[]),(0,r.useEffect)(()=>{x.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-d"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-d"]')))return;e&&(e.style.minHeight="0px")})},[]),(0,b.jsx)(n.C,{value:S,children:(0,b.jsx)("div",{className:L?"whatmore-collection-events":"whatmore-carousel-events",children:(0,b.jsx)(i.s,{theme:a.Ay,cssVarsRoot:F,resetCSS:!1,children:(0,b.jsxs)(d.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,b.jsx)("div",{ref:N,style:{marginLeft:T+"px",marginRight:T+"px"},children:(0,b.jsx)(u.c,{showBgPlaceholder:!0,renderElement:e=>(0,b.jsx)(b.Fragment,{children:e.eventData}),dataList:X,spacing:P,defaultHeight:C*B*.01+"px",defaultWidth:k*B*.01+"px",retainAlreadyRenderedElements:!0})}),(0,v.wQ2)(V)&&L&&!E&&-1==e.index&&(0,b.jsx)(f.A,{event:t[0],inVideoClick:Q,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},9611:function(e,t,o){var r=o(9950),i=o(1348),a=o(5830),n=(o(6125),o(4365),o(6614),o(9879)),l=o(932),p=o(4414);t.A=function(e){var t;const[o,s]=(0,l.A)(),[d]=(0,a.QN)("whatmoreSecondaryColor"),[h]=(0,a.QN)("whatmoreShopId"),[x]=(0,a.QN)("whatmoreVideoTileSize"),[c]=(0,a.QN)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?c:x,[u,w]=(0,r.useState)(!1),g=(0,i.ivI)(h),v=e.event1,f=e.event2,y=e.onClick,b=.01*m,S=o*b,j=o*b*.5,C=s*b,k=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",A="15%",R=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:S+"px",width:C+"px",marginLeft:R?"2px":"5px",marginRight:R?"2px":"5px",marginTop:R?"2px":"5px",marginBottom:R?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:R?"0px":k,boxShadow:R?"":"0px 1px 1px 0px "+d+"50, 0px -1px 1px 0px "+g+"50, 1px 0px 1px 0px "+d+"50, -1px 0px 1px 0px "+g+"80, 1px -1px 1px 0px "+d+"80, -1px 1px 1px 0px "+g+"DA, 1px 1px 1px 0px "+d+"DA, -1px -1px 1px 0px "+g+"DA"},onClick:()=>{w(!0),y(v)},className:[u?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:j+"px",width:C+"px",borderTopLeftRadius:R?"0px":A,borderTopRightRadius:R?"0px":A,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(n.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!0,event:v})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:j+"px",width:C+"px",borderBottomLeftRadius:R?"0px":A,borderBottomRightRadius:R?"0px":A,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(n.A,{height:"100%",width:"100%",url:f.thumbnail_image,isPlaying:!0,event:f})})]})})}}}]);
|