whatmore-react-assets 1.0.1829 → 1.0.1830

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.
@@ -0,0 +1,15 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1013:function(e,t,o){o.r(t),o.d(t,{default:function(){return ho}});var i=o(9950),n=o(7483),r=o(1592),l=o(964),s=o(140),a=o(1348),d=o(4533),p=o(6613),c=o(1085),h=o(2039),u=o(4833),m=o(2979),x=o(6157),v=o(8945),y=o(9821),g=o(340),f=o(5089),w=o(5873),j=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),b=o(8603),C=o(9946),S=o(9094),P=o(932),I=o(1941),k=o(5491),_=o.n(k),A=o(7509),F=o(4414);var T=function(e){var[t,o]=(0,P.A)();(0,i.useContext)(A.h);const r=(0,n.Xd)("whatmoreShopId");return e.event,(0,F.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==r?void 0:o,aspectRatio:"8968077397"==r?9/16:void 0,height:"8968077397"==r?"100%":t,overflow:"hidden"}})},M=o(9879);const N={top_left:{top:"0",left:"0"},top_center:{top:"0",left:"50%",transform:"translateX(-50%)"},top_right:{top:"0",right:"0"},center_left:{top:"50%",left:"0",transform:"translateY(-50%)"},center:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"},center_right:{top:"50%",right:"0",transform:"translateY(-50%)"},bottom_left:{bottom:"0",left:"0"},bottom_center:{bottom:"0",left:"50%",transform:"translateX(-50%)"},bottom_right:{bottom:"0",right:"0"}};function R(e){const t=Number(e);return`${Number.isFinite(t)?Math.min(100,Math.max(1,t)):25}%`}function O(e,t){return{position:"absolute",width:R(t),height:"auto",objectFit:"contain",pointerEvents:"none",zIndex:2,...(o=e,N[o]||N.bottom_right)};var o}function E(e){null!==e&&void 0!==e&&e.target&&(e.target.style.display="none")}function W({shopId:e}){const t=(0,a._W0)(e);return t?(0,F.jsx)("img",{className:"wht-thumbnail-overlay",src:t,alt:"",onError:E,style:O((0,a.tik)(e),(0,a.H0Z)(e))}):null}var z=o(1615),L=o(6649),D=o(9258),X=o(8538),B=o(7458),V=o(2835),U=o(6594),H=o(7973),$=o(8149),q=o(7740),Q=o(3161);const G=i.lazy(()=>o.e(939).then(o.bind(o,9408)));var Y=function(e){var t,o,l,s;const d=(0,n.QN)("whatmoreUITheme");var[p,c]=(0,P.A)();const[h]=(0,n.QN)("whatmorePrimaryFont"),[u]=(0,n.QN)("whatmoreSecondaryColorShade900"),[m]=(0,n.QN)("whatmoreShopId"),[x,v]=(0,i.useState)(0),[y,g]=(0,i.useState)(e.event),[f,w]=(0,i.useState)(),[j,b]=(0,i.useState)(!1),C=e.onClick,S=y.products.length,{whatmoreIsPreviewMode:I}=(0,i.useContext)(r.AppContext);if(0==S)return(0,F.jsx)(F.Fragment,{});(0,i.useEffect)(()=>{(0,a.w4b)(m)&&(0,U.fu)(y,(0,a.NCy)(m),m).then(e=>{g(e),b(!0)});(async()=>{var e;const t=await(0,$.M)(null===y||void 0===y||null===(e=y.products)||void 0===e?void 0:e[0],(0,a.NCy)(m),m);w(t),b(!0)})()},[]);const k=I,_=.3*c,A=_+"px",T=_+"px",M=.05*c*(0,a.PpQ)(m)+"px",N=.07*c*(0,a.y3u)(m),R=N+"px",O=.05*c;return(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*c,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:C,children:[(0,F.jsx)("div",{style:{width:A,height:T,overflow:"hidden",backgroundColor:"28062416930"===m?void 0:u,borderRadius:"round"==d?"5px":"0px",borderWidth:"0px"==(0,a.YcK)(m)?"2px":(0,a.YcK)(m),borderColor:"28062416930"===m?"white":"white"===(0,a.Fwt)(m)?u:(0,a.Fwt)(m)},children:"28062416930"!==m&&(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(m),"important")},src:(0,H.b)(y.products[x].thumbnail_image,"&width=400&height=400"),style:{width:A,height:A,borderRadius:"round"==d?"5px":"0px",backgroundColor:u},alt:"product img"})}),(0,F.jsx)("div",{style:{width:.7*c+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"28062416930"===m?"18px":"2px",borderRadius:"round"==d?"5px":"0px"},children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,F.jsx)("div",{className:"wht-title-tb",style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===m?"center":"flex-start",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size","28062416930"===m?"80%":M),e.style.setProperty("line-height","28062416930"===m?"170%":"140%","important"),e.style.setProperty("font-family",h,"important"),"28062416930"===m?(e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("display","block","important")):(e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important")))},style:{textAlign:"28062416930"===m?"center":"left",fontWeight:"medium"},children:(0,X.v)("56411783377"===m?y.products[x].title.split("|")[0].trim():"58396311733"===m?(0,Q.$)(y.products[x].title):y.products[x].title)})}),(0,F.jsxs)("div",{className:"wht-price-tb",style:{display:"flex",flexFlow:(0,a.vw2)(m)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===m?"center":(0,a.vw2)(m)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,F.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.uoB)(m),"important"),e.style.setProperty("font-size",R),e.style.setProperty("line-height","28062416930"===m?"160%":"140%","important"),e.style.setProperty("font-family",h,"important"),e.style.setProperty("font-weight","28062416930"===m?"bold":void 0,"important"))},style:{textAlign:"28062416930"===m?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,U.Sb)(parseFloat((0,q.U)()?(null===f||void 0===f?void 0:f.price)/100:null===y||void 0===y||null===(t=y.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),"",m,y.products[x].currency)]}),(0,B.P)(y.products[x].price,y.products[x].compare_price)&&j?(0,F.jsxs)("strike",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(m),"important"),e.style.setProperty("font-size",.9*N+"px","important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",h,"important"),e.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"28062416930"===m?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,U.Sb)(parseFloat((0,q.U)()?(null===f||void 0===f?void 0:f.compare_at_price)/100:null===y||void 0===y||null===(l=y.products)||void 0===l||null===(s=l[0])||void 0===s?void 0:s.compare_price),"",m,y.products[x].currency)]}):(0,F.jsx)(F.Fragment,{})]}),(0,F.jsx)(V.A,{storeId:m,productId:y.products[x].client_product_id,productLink:y.products[x].product_link,fontSize:O}),"28062416930"===m&&(0,F.jsx)("button",{onClick:C,onMouseEnter:e=>e.target.style.backgroundColor="#555",onMouseLeave:e=>e.target.style.backgroundColor="black",style:{padding:"2px 5px 2px 5px",backgroundColor:"black",color:"#fff",border:"none",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textAlign:"center"},children:"Buy Now"})]})})]},x),(0,a.nP1)(m)||k&&"5141594210"==m?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(G,{baseFontSize:.05*c,event:y,product:y.products[0],width:.9*c,height:"fit-content"})}):(0,F.jsx)(F.Fragment,{})]})},K=o(7802);var J=({width:e=30,height:t=30})=>(0,F.jsxs)("svg",{width:e,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,F.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,F.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,F.jsx)("defs",{children:(0,F.jsx)("clipPath",{id:"clip0_1_19",children:(0,F.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]});function Z(e){const[t,o,i,r,l]=(0,P.A)(),s=(0,n.Xd)("whatmoreUITheme"),d=(0,n.Xd)("whatmoreShowViews"),p=(0,n.Xd)("whatmoreShopId"),c=e.PRODUCT_BOX_HEIGHT,h=e.PRODUCT_BOX_HEIGHT_IN_PX,u=e.PRODUCT_BOX_MARGIN,[m,x,v]=(0,L.A)({triggerOnce:!0}),y=e.event;e.isOnFocus;return(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{e.onClick(y)},children:["56411783377"===p&&(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,F.jsx)(J,{width:.15*o,height:.15*o})})}),"show"===d?(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:y,fontSize:.07*o+"px"})})}):(0,F.jsx)(F.Fragment,{})]}),(0,F.jsx)("div",{style:{display:"flex",width:"100%",height:t-c+"px"},onClick:()=>{e.onClick(y)}}),(0,K.Hl)(y,p)?(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"28062416930"===p?void 0:u+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:"28062416930"===p?"110%":.95*o,height:"28062416930"===p?"20%":h,marginLeft:u+"px",marginRight:u+"px",backgroundColor:"white",borderRadius:"round"==s?"5px":"0px",borderWidth:(0,a.YcK)(p),borderColor:(0,a.Fwt)(p),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,F.jsx)("div",{ref:m,children:x&&(0,a.imx)(p)?(0,F.jsx)(Y,{event:y,onClick:()=>{var t,o;(0,a.gq8)(p)?window.location.href=(o=null===(t=y.products)||void 0===t?void 0:t[0],(0,a.BLb)(p)?o.product_link+"?"+(0,a.VCz)(p)+"&"+(0,a.Spk)(p)+"&"+(0,a.$lz)(p):o.product_link):e.onClick(y)}}):(0,F.jsx)("div",{height:"20px"})})}):(0,F.jsx)(F.Fragment,{})]})})}var ee,te=function(e){var t,o,r;const[l,s,d,p,c]=(0,P.A)();var h=(0,i.useContext)(A.h);const u=(0,n.Xd)("whatmoreUITheme"),m=(0,n.Xd)("whatmoreShopId"),x=(0,n.Xd)("whatmoreSecondaryColorShade600"),v=e.event,y=e.onClick,g=null===(t=e.isOnFocus)||void 0===t||t,f=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,w=null!==(r=e.animateOnFocus&&(0,a.n5O)(m))&&void 0!==r&&r,j=(0,a.nP1)(m)?.7:.8,b=l*j+"px",C=1-j,S=l*C,I=l*C+"px",k=l*C*.1,_=(0,a.VYo)(m),T="56411783377"==m?1:1.2;return(0,F.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:s+"px",height:l*T+"px",borderRadius:"round"==u?"5px":"0px",boxShadow:"28062416930"===m?void 0:"round"===u?_:null,borderWidth:(0,a.YcK)(m),borderColor:(0,a.Fwt)(m),overflow:"hidden",cursor:"pointer",position:"relative"},className:w?g?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",...(0,z.i)(`Play video: ${v.title||v.event_id||""}`),onClick:()=>{y(v)},children:[(0,F.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,F.jsx)(M.A,{height:b,width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),(0,F.jsx)(W,{shopId:m})]}),(0,a.Q$)(m)&&(0,K.Hl)(v,m)&&"56411783377"!==m?(0,F.jsx)("div",{style:{width:"100%",height:I,backgroundColor:x}}):(0,F.jsx)(F.Fragment,{})]}),(0,a.Q$)(m)&&(0,F.jsx)(Z,{event:v,isOnFocus:g,PRODUCT_BOX_HEIGHT:S,PRODUCT_BOX_HEIGHT_IN_PX:I,PRODUCT_BOX_MARGIN:k,onClick:y})]})},oe=o(1351),ie=o(6641);const ne=(0,b.A)({key:"whatmore-css-hv"}),re=null!==(ee="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==ee&&ee;function le(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),[y,g]=(0,i.useState)(Math.min(h.length,v?h.length:m+5)),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{y<m+5&&g(e=>Math.min(e+5,h.length))},[m,5]),re&&console.debug("am i reaching here in portrait component?"),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,F.jsx)(C.RC,{slidesPerView:h.length>1?"56411783377"==c?2:m:1,initialSlide:"25075712047"===c||"56411783377"==c?0:h.length>1?1:0,centeredSlides:"25075712047"!==c&&"56411783377"!=c,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&g(e=>Math.min(e+5,h.length))},loop:(0,a.cbh)(c),modules:[S.s3,S.Jq,..."63897305308"==c?[S.FJ]:[]],keyboard:{enabled:!0},speed:"63897305308"==c?250:300,mousewheel:"63897305308"==c&&{forceToAxis:!0,sensitivity:1,releaseOnEdges:!0,invert:!1,thresholdDelta:20,thresholdTime:150},children:h.map((e,t)=>t<=y&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>(0,F.jsx)(te,{isOnFocus:("56411783377"==c||t)&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})},"whatmore-event-tile-portrait-"+e.index))})})})}function se(e){re&&console.debug("START : am i reaching here in landscape component?");const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),h=e.onClick,u=e.events,m=(0,a.cbh)(c),[v,y]=(0,i.useState)(m?u.length:l),g=Math.min(l,u.length),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{v<=l&&y(e=>e+l)},[l]),re&&console.debug("am i reaching here in landscape component?"),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:s+"px",paddingRight:s+"px"},children:(0,F.jsx)("div",{style:{width:o*g*1.1+"px"},children:(0,F.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[S.s3,S.Jq,..."63897305308"==c?[S.Vx,S.FJ]:[S.Vx]],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:"63897305308"==c?1:parseInt(g),onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&y(e=>e+l)},spaceBetween:(0,a.If9)(c),loop:(0,a.cbh)(c),speed:"63897305308"==c?250:300,mousewheel:"63897305308"==c&&{forceToAxis:!0,sensitivity:1,releaseOnEdges:!0,invert:!1,thresholdDelta:20,thresholdTime:150},children:u.map((e,t)=>(re&&console.debug("START : inside the swiper loop : ",t<=v),re&&console.debug("END : inside the swiper loop : ",t<=v),t<=v&&(0,F.jsx)(C.qr,{children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r?(re&&console.debug("RENDERING : inside the swiper loop : ",t<=v),(0,F.jsx)(te,{isOnFocus:!1,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{h(e)}})):(0,F.jsx)(T,{})},"whatmore-event-tile-landscape-"+e.index)))})})})}var ae=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmorePrimaryColor"),[a]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmoreTitleFont"),p="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,i.useContext)(r.AppContext),h=e.events,u=e.onClick,m=d,{whatmoreCollectionHeading:x}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(r.AppContext);function y(e){u(e)}function b(e){const t=e.indexOf(" ",e.indexOf(" ")+1);return-1===t?[e,""]:[e.substring(0,t),e.substring(t)]}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-b"]'))&&e&&(e.style.minHeight="0px")})},[]),re&&console.debug("am i here before delete styles?"),delete f.Ay.styles.global,re&&console.debug("am i reaching here after delete styles?"),(0,F.jsx)(j.C,{value:ne,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==a&&"2310668401"!==a&&"10648977444"!==a&&(e.heading.trim().length>0||v)?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",m,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center"},children:v?"W"!==x?x:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"10588815418"==a||"2310668401"==a||"10648977444"==a?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,F.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",m,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:v?"W"!==x?x:"":b(e.heading)[0]}),(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family","Austin Text SemiBold Trial","important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center"},children:v?"W"!==x?x:"":b(e.heading)[1]})]})}):(0,F.jsx)(F.Fragment,{children:re&&console.debug("returning the empty div")}),"landscape"===t?(0,F.jsx)(se,{events:h,onClick:y}):(0,F.jsx)(le,{events:h,onClick:y})]})})})})},de=o(3247),pe=o(1422),ce=o(3731),he=o(211),ue=o(5242),me=o(8781),xe=o(8283);const ve=xe.i7`
2
+ 0% {
3
+ transform: scale(1);
4
+ }
5
+ 100% {
6
+ transform: scale(1.05);
7
+ }
8
+ `,ye=xe.i7`
9
+ 0% {
10
+ transform: scale(1.05);
11
+ }
12
+ 100% {
13
+ transform: scale(1);
14
+ }
15
+ `,ge=`\n ${ve}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,fe=`\n ${ye}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var we=function(e){var t,o,[r,l]=(0,P.A)();const[s]=(0,n.QN)("whatmorePrimaryFont");var a=(0,i.useContext)(A.h);const d=e.event,p=e.onClick,c=null===(t=e.isOnFocus)||void 0===t||t,h=(e.playOnUnfocus,null!==(o=e.animateOnFocus)&&void 0!==o&&o);return(0,F.jsxs)(de.az,{animation:h?c?ge:fe:"none",marginTop:a.tileTopMargin,marginBottom:a.tileBottomMMargin,marginLeft:a.tileLeftMargin,marginRight:a.tileRightMargin,width:l,height:r,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{p(d)},cursor:"pointer",children:[(0,F.jsx)(he._,{width:"full",height:"full",src:d.thumbnail_image,objectFit:"cover",fallback:(0,F.jsx)(me.A,{width:l,height:r}),borderRadius:"lg"}),(0,F.jsx)(de.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,F.jsxs)(pe.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,F.jsx)(de.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,F.jsx)(pe.B,{direction:"column",justifyContent:"flex-start",children:(0,F.jsx)(de.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,F.jsx)(pe.B,{direction:"row",justifyContent:"space-between",children:(0,F.jsx)(ue.A,{event:d,fontSize:.05*r+"px",maxWidth:.8*l})})})})}),(0,F.jsx)(de.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,F.jsx)(pe.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,F.jsx)(de.az,{width:"full",borderRadius:"lg",children:(0,F.jsxs)(pe.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,F.jsx)(ce.E,{color:"white",fontSize:.08*l+"px",fontWeight:"normal",align:"left",children:" "}),(0,F.jsx)(ce.E,{fontSize:.08*l+"px",fontWeight:"normal",align:"left",sx:{fontFamily:s+" !important",color:"white !important"},children:d.title.substring(0,40)}),(0,F.jsx)(ce.E,{fontSize:.08*l+"px",fontWeight:"bold",align:"left",sx:{fontFamily:s+" !important",color:"white !important"},children:d.presenter_name.substring(0,15)})]})})})})]})})]})},je=o(8726),be=o(6086),Ce=o(5144),Se=(o(4826),o(5727)),Pe=o(22),Ie=o(6305),ke=o(63);function _e({event:e}){var t,o,l;const s=(0,n.Xd)("whatmoreShopId"),p=(0,n.Xd)("whatmoreSecondaryColor"),c=(0,n.Xd)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:h,whatmoreUserInfo:m}=(0,i.useContext)(r.AppContext),[v,y,,,g]=(0,P.A)(),f="portrait"===(null===g||void 0===g?void 0:g[Pe.dl]),w=null!==(t=null===(o=e.products)||void 0===o?void 0:o.find(e=>"active"===e.product_status))&&void 0!==t?t:null===(l=e.products)||void 0===l?void 0:l[0],[j,,,,b,C]=(0,Ie.A)(0,w,e);if(!w)return null;const S=Math.round(+(null===w||void 0===w?void 0:w.price)),I=Math.round(+(null===w||void 0===w?void 0:w.compare_price)),k=I&&0!==I&&I>S?Math.round((I-S)/I*100):NaN,_=y*(f?.92:.88),A=y*(f?.25:.2),T=y*(f?.044:.038)+"px",M=y*(f?.046:.04)+"px",N=y*(f?.038:.032)+"px",R=y*(f?.042:.036)+"px",O=f?"6px 8px":"10px 14px",E=f?"4px 10px":"5px 12px",W="productVariantDetailsApiCallInProgress"===j.state||"atcApiCallInProgress"===j.state;return(0,F.jsxs)("div",{style:{width:_+"px",margin:"0 auto 6px auto",backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.12)",padding:O,boxSizing:"border-box",display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"space-between"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,F.jsx)("div",{style:{width:A+"px",height:A+"px",flexShrink:0,borderRadius:"6px",overflow:"hidden",backgroundColor:"#f4f4f4"},children:(0,F.jsx)("img",{src:(0,H.b)(null===w||void 0===w?void 0:w.thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",objectFit:"cover"},alt:"product"})}),(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",minWidth:0,gap:"2px",alignItems:"flex-start"},children:[(0,F.jsx)("div",{style:{color:"#1a1a1a",fontFamily:c,fontSize:T,fontWeight:600,lineHeight:"120%",margin:0,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:(0,X.v)((null===w||void 0===w?void 0:w.title)||"")}),(0,a.Nzx)(s)&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",flexWrap:"nowrap"},children:[(0,F.jsx)("span",{style:{color:"#1a1a1a",fontFamily:c,fontSize:M,fontWeight:700,whiteSpace:"nowrap"},children:(0,U.Sb)(S," ",s,null===w||void 0===w?void 0:w.currency)}),!isNaN(I)&&I>S&&(0,F.jsx)("span",{style:{color:(0,a.gld)(s)||"#808191",fontFamily:c,fontSize:N,textDecoration:"line-through",whiteSpace:"nowrap"},children:(0,U.Sb)(I," ",s,null===w||void 0===w?void 0:w.currency)}),!isNaN(k)&&0!==k&&(0,F.jsx)("span",{style:{backgroundColor:"green"===(0,a.ub$)(s)?"#343434"===p?"green":p:(0,a.ub$)(s),color:(0,a.BRY)(s),borderRadius:((0,a.v8m)(s)||4)+"px",padding:"2px 6px",fontFamily:c,fontSize:N,fontWeight:500,whiteSpace:"nowrap",lineHeight:"120%"},children:`${k}% off`})]}),(0,F.jsxs)("button",{onClick:t=>{t.stopPropagation();const o=h.landingLocationType,i=h.templateType,n=(0,u.Wd)(o)+(0,u.gf)(i)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,d.Ch)(e.event_id,e.products,"homepage","carousel",n,null===e||void 0===e?void 0:e.location,null===m||void 0===m?void 0:m.userType),"init"===j.state?(b(n,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:e,productList:[w],ctaList:e.cta})):"awaitingVariantSelection"===j.state&&C(null,n)},style:{backgroundColor:p,color:"#ffffff",border:"none",borderRadius:"6px",padding:E,fontSize:R,fontFamily:c,fontWeight:600,letterSpacing:"0.3px",cursor:"pointer",width:"fit-content",marginTop:"2px",whiteSpace:"nowrap",position:"relative"},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"},disabled:W,children:[(0,F.jsx)("span",{style:{visibility:W?"hidden":"visible"},children:(0,a.KPq)(s)||"ADD TO CART"}),W&&(0,F.jsx)(ke.y,{color:"white",thickness:"2px",speed:"0.6s",style:{width:R,height:R,position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto"}})]})]})]})}var Ae=function(e){var t,o,r,l,[s,d,p,c,h]=(0,P.A)();const u="portrait"===(null===h||void 0===h?void 0:h[Pe.dl]),m=(0,n.Xd)("whatmoreUITheme"),[x]=(0,n.QN)("whatmorePrimaryFont"),[v,y]=(0,i.useState)(0),g=(0,n.Xd)("whatmoreShopId"),f=e.event;if(0==f.products.length)return(0,F.jsx)(F.Fragment,{});if("56352899156"===g&&(0,a.mRH)(g))return(0,F.jsx)(_e,{event:f});const w="47113339031"===g,j=.3*d*(w?u?.85:.7:1),b=j+"px",C=j+"px",S=.07*d*(w?u?.9:.75:1),I=S+"px",k=u?"4px":"8px",_=w?.9:1,A=w?"10px":"5px",T=w?"600":"normal";return(0,F.jsx)("div",{style:{width:d+"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)",...w&&{transform:`scale(${_})`,transformOrigin:"bottom left",paddingLeft:k,paddingBottom:k,boxSizing:"border-box"}},children:(0,F.jsxs)("div",{ref:e=>{e&&e.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:A},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,F.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",C,"important")},style:{width:w||(0,a.H$k)(g)?b:"auto",...w&&{flexShrink:0},boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,a.YcK)(g),borderColor:(0,a.Fwt)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,F.jsx)("img",{ref:e=>{e&&(e.style.setProperty("object-fit",w?"cover":(0,a.KZe)(g),"important"),w&&e.style.setProperty("object-position","top","important"),e.style.setProperty("max-width",b,"important"))},src:(0,H.b)(f.products[v].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,F.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",I),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",x,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:T},children:(0,X.v)(f.products[v].title)})}),(0,a.gZ6)(g)&&(null===(t=f.products[v])||void 0===t||null===(o=t.product_metadata)||void 0===o?void 0:o.product_type)&&(0,F.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",d-5-j+"px","important"),e.style.setProperty("font-size",.7*S+"px","important"),e.style.setProperty("font-family",x,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-overflow","ellipsis","important"),e.style.setProperty("overflow","hidden","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"))},children:null===(r=f.products[v])||void 0===r||null===(l=r.product_metadata)||void 0===l?void 0:l.product_type})})]})]},v)})},Fe=o(1131);function Te(e){var t,[o,r]=(0,P.A)();const[l]=(0,n.QN)("whatmoreShopId"),[s,d,c]=(0,L.A)({triggerOnce:!0});var h=(0,i.useContext)(A.h);const u=e.event,m=null!==(t=e.unfocusedDisplay)&&void 0!==t&&t,x=.5*r,v=(0,p.At)()?e.isOnFocus:d;return(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)("p",{children:" "})}),h.showPlayButton&&!m?(0,F.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==u.event_type&&(0,F.jsx)(Se.A,{sx:{color:(0,a.KFN)(l)+" !important",opacity:.8,fontSize:x,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,F.jsx)(F.Fragment,{}),(0,F.jsx)("div",{ref:s,children:v&&(0,a.imx)(l)?(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)(Ae,{event:u})}):(0,F.jsx)("div",{height:"20px"})})]})})}function Me(e){var[t,o]=(0,P.A)();const[i]=(0,n.QN)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,F.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,F.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,F.jsx)("p",{style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,F.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,F.jsx)(F.Fragment,{})}function Ne(e){const[t,o,i,r,l]=(0,P.A)(),[s]=(0,n.QN)("whatmoreShowViews"),d=(0,n.Xd)("whatmoreShopId"),p=e.event,c=e.isOnFocus;return(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,F.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===s&&"show"===(0,a.klK)(d)?(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:p,fontSize:.07*o+"px"})})}):(0,F.jsx)(F.Fragment,{}),!1]})}),Pe.nN===l[Pe.dl]?(0,F.jsx)(F.Fragment,{}):c?(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,F.jsx)(Me,{event:p})}):(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)(Me,{event:p})})]})})}var Re=function(e){var t,o,r;const[l,s,d,p,c]=(0,P.A)();var h=(0,i.useContext)(A.h);const u=(0,n.Xd)("whatmoreUITheme"),m=(0,n.Xd)("whatmoreShopId"),[x]=(0,n.Xd)("whatmorePrimaryFont"),v=e.event,y=e.onClick,g=null===(t=e.isOnFocus)||void 0===t||t,f=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,w=null!==(r=e.animateOnFocus&&(0,a.n5O)(m))&&void 0!==r&&r,j=(0,a.VYo)(m);return(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",h.tileTopMargin+"px"),e.style.setProperty("margin-bottom",h.tileBottomMMargin+"px"))},style:{margin:"0 auto",width:"8968077397"==m||"19501891"==m?void 0:s,aspectRatio:"8968077397"==m||"19501891"==m?9/16:void 0,height:"8968077397"==m||"19501891"==m?"100%":l,borderRadius:"round"==u?"5px":"0px",boxShadow:"round"==u||"61187850326"==m||"19501891"==m?j:null,borderWidth:(0,a.YcK)(m),borderColor:(0,a.Fwt)(m),overflow:"hidden",cursor:"pointer",position:"relative"},className:w?g?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",...(0,z.i)(`Play video: ${v.title||v.event_id||""}`),onClick:()=>{y(v)},children:[(0,F.jsx)(M.A,{height:(0,a.u06)(m)+" !important",width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),(0,F.jsx)(W,{shopId:m}),"51394281658"===m?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:x+" !important"},children:null===v||void 0===v?void 0:v.title}),(0,F.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,F.jsx)(Fe.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(m)&&(0,F.jsxs)("div",{style:{width:s,height:l},children:[(0,F.jsx)(Ne,{event:v,isOnFocus:g}),"87043703105"===m||"76467011883"===m||!g&&Pe.nN!==c[Pe.dl]?null:(0,F.jsx)(Te,{event:v,unfocusedDisplay:!g,isOnFocus:g})]})]})};var Oe=function(e){var t,o;const[r,l]=(0,i.useState)(!1),[s,a]=(0,i.useState)(!1),[d]=(0,n.QN)("whatmoreSecondaryColor"),[p]=(0,n.QN)("whatmoreSecondaryColorShade600"),[c]=(0,n.QN)("whatmoreSecondaryColorShade300"),[h]=(0,n.QN)("whatmorePrimaryFont"),u=e.onClick,m=e.icon,x=null!==(t=e.borderRadius)&&void 0!==t?t:"sm",v=null!==(o=e.baseFontSize)&&void 0!==o?o:12;return(0,F.jsxs)(de.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:x,backgroundColor:r?c:d,animation:s?Ce.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:e=>{e.stopPropagation(),a(!0),u()},onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:[(0,F.jsx)(ce.E,{fontSize:v+"px !important",fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:"VIEW MORE"}),m]})};const Ee=(0,b.A)({key:"whatmore-css-hv"});function We(e,t){var o=[];const i=t;for(let n=0;n<e.length;n+=i){const t=e.slice(n,n+i);o.push(t)}return o}function ze(e){var t;const[o,n,r]=(0,P.A)(),l=e.events,s=e.onClick,a=Math.floor(Math.min(r,l.length)),d=We(l,a),p=e.initialEventCount,c=p&&a>0?Math.min(Math.ceil(p/a)-1,d.length-1):0,u=p&&a>0?Math.max(1,Math.ceil(p/a)):null!==(t=e.seeMoreIncrement)&&void 0!==t?t:1;var[m,x]=(0,i.useState)(c);return(0,F.jsx)(be.o,{children:(0,F.jsxs)(pe.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,F.jsx)(F.Fragment,{children:d.map((e,t)=>t>m?(0,F.jsx)(F.Fragment,{}):(0,F.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,F.jsx)(de.az,{style:{margin:"10px"},children:(0,h.i)(e)||(0,h.I)(e)?(0,F.jsx)(Re,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,F.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}})},"event-"+t))},"event-stack-"+t))}),(0,F.jsx)(F.Fragment,{children:m<d.length-1?(0,F.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,F.jsx)(Oe,{baseFontSize:.1*n,icon:(0,F.jsx)(je.A,{style:{color:"white"}}),onClick:()=>{m>=d.length-1||x(e=>e+u)}})}):(0,F.jsx)(F.Fragment,{})})]})})}function Le(e){var t;const[o,n,r,l]=(0,P.A)(),s=e.events,a=e.onClick,d=Math.floor(Math.min(r,s.length)),p=We(s,d),c=e.initialEventCount,u=c&&d>0?Math.min(Math.ceil(c/d)-1,p.length-1):0,m=c&&d>0?Math.max(1,Math.ceil(c/d)):null!==(t=e.seeMoreIncrement)&&void 0!==t?t:1;var[x,v]=(0,i.useState)(u);return(0,F.jsx)(be.o,{paddingLeft:l+"px",paddingRight:l+"px",children:(0,F.jsxs)(pe.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,F.jsx)(F.Fragment,{children:p.map((e,t)=>t>x?(0,F.jsx)(F.Fragment,{}):(0,F.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,F.jsx)(de.az,{style:{margin:"10px"},children:(0,h.i)(e)||(0,h.I)(e)?(0,F.jsx)(Re,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,F.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}})},"event-"+t))},"event-stack-"+t))}),(0,F.jsx)(F.Fragment,{children:x<p.length-1?(0,F.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,F.jsx)(Oe,{baseFontSize:.1*n,onClick:()=>{x>=p.length-1||v(e=>e+m)},icon:(0,F.jsx)(je.A,{style:{color:"white"}})})}):(0,F.jsx)(F.Fragment,{})})]})})}var De=function(e){var t;const[o,l,s]=(0,I.A)(),[d]=(0,n.QN)("whatmoreShopId"),[p]=(0,n.QN)("whatmorePrimaryColor"),[c]=(0,n.QN)("whatmoreSecondaryColor"),[h]=(0,n.QN)("whatmoreTitleFont"),u="portrait"==o?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,y=null!==(t=(0,a.sa6)(d))&&void 0!==t?t:h,w="69895487535"===d?10:null;function b(e){v(e)}return delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Ee,children:(0,F.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,F.jsx)(be.o,{children:(0,F.jsx)(ce.E,{bgColor:p,bgClip:"text",fontSize:u,sx:{fontFamily:y+" !important"},align:"center",children:e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===o?(0,F.jsx)(Le,{events:x,onClick:b,seeMoreIncrement:1,initialEventCount:w}):(0,F.jsx)(ze,{events:x,onClick:b,seeMoreIncrement:2,initialEventCount:w})]})})})})},Xe=(o(6125),o(6614),o(7035));var Be=function(e){var t,o,l,s,p,c,h,m,v,y,g,f,w,j,b,C,S,I,k,_,A,T,N;const R=e.event,[O,E,L,D,B]=(0,P.A)(),[V]=(0,n.QN)("whatmoreSecondaryColor"),[Q]=(0,n.QN)("whatmoreShopId"),G=(0,n.Xd)("whatmoreVideoTileSize"),Y=(0,n.Xd)("whatmoreVideoTileSizePortrait"),K="portrait"===e.mode?Y:G,J=(0,n.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:Z,whatmoreUserInfo:ee}=(0,i.useContext)(r.AppContext),[te,ie]=(0,i.useState)(!1),ne=(0,a.ivI)(Q),re=Z.landingLocationType,[le,se]=(0,i.useState)(null!==(t=null===(o=R.products)||void 0===o?void 0:o.find(e=>"active"==e.product_status))&&void 0!==t?t:null===(l=R.products)||void 0===l?void 0:l[0]),ae=le&&Object.keys(le).length>0,[de,pe]=(0,i.useState)(),ce=((0,a.KPq)(Q),"16957273"===Q),he="portrait"===B[Pe.dl],[ue,me]=((0,n.Xd)("websiteLanguage"),(0,i.useState)(!1)),xe=null!==(s=(0,a.mRH)(Q))&&void 0!==s&&s,[ve,ye,ge,fe,we,je]=(0,Ie.A)(0,le,R),be="22907887"===Q||"79550939348"===Q?"portrait"===e.mode?.9:.83:1,Ce=e.onClick,Se=e.removeBorders,_e=(0,n.Xd)("whatmoreUITheme"),Ae=be*O*K*.01,Fe=E*K*.01*("22907887"===Q?1:1.08),Te=.25*E,Me=null!==(p=e.borderRadius)&&void 0!==p?p:"0%",Ne=he?1.076*E*(0,a.HWj)(Q):E*(0,a.N_4)(Q),Re=he?1.076*E*(0,a.HWj)(Q):E*(0,a.N_4)(Q),Oe=Re+"px",Ee=he?.965*E*(0,a.HWj)(Q):.859*E*(0,a.N_4)(Q),We=ce&&he?.72*Re+"px":Oe,ze=ce&&he?.72*Ee+"px":Ee+"px",Le=(()=>{if(ce&&he){const e=.8;return{width:.25*E*e,height:.33*E*e}}if(ce){const e=.8;return{width:1.1*Te*e,height:1.45*Te*e}}return null})();(0,i.useEffect)(()=>{if(ae)if((0,a.w4b)(Q))(0,U.fu)(R,(0,a.NCy)(Q),Q);else{(async()=>{var e,t;let o=le;for(let r=0;r<(null===R||void 0===R||null===(i=R.products)||void 0===i?void 0:i.length);r++){var i;const e=await(0,$.M)(null===R||void 0===R?void 0:R.products[r],(0,a.NCy)(Q),Q);if(null!==e&&void 0!==e&&e.available){se(null===R||void 0===R?void 0:R.products[r]),o=null===R||void 0===R?void 0:R.products[r];break}}const n=await(0,$.M)(o,(0,a.NCy)(Q),Q);pe(n),Xe=null!==(e=null===n||void 0===n||null===(t=n.compare_at_price)||void 0===t?void 0:t.amount)&&void 0!==e?e:0})()}},[ae]);const De=null===le||void 0===le?void 0:le.price;let Xe=null===le||void 0===le?void 0:le.compare_price;const Be=Xe&&0!=Xe&&Xe>De?Math.round((Xe-De)/Xe*100):NaN;let Ve=NaN!==Be?Be:0;return(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,a._hU)(Q)?"auto":Fe+"px",marginLeft:Se?"2px":"5px",marginRight:Se?"2px":(0,a.FZM)(Q)+"px",marginTop:Se?"2px":"5px",marginBottom:Se?"2px":"5px",cursor:"pointer"},...(0,z.i)(`Play video: ${R.title||R.event_id||""}`),onClick:()=>{ie(!0),Ce(R)},className:[te?"whatmore-scale-on-tap":""].join(" "),children:[(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:Me,overflow:"hidden",boxShadow:Se?"":"0px 1px 1px 0px "+V+"50, 0px -1px 1px 0px "+ne+"50, 1px 0px 1px 0px "+V+"50, -1px 0px 1px 0px "+ne+"80, 1px -1px 1px 0px "+V+"80, -1px 1px 1px 0px "+ne+"DA, 1px 1px 1px 0px "+V+"DA, -1px -1px 1px 0px "+ne+"DA"},children:(0,F.jsxs)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:Ae+"px",width:"40273707171"==Q?"auto":Fe+"px",borderRadius:Me,backgroundColor:"gray",overflow:"hidden",transition:"transform 0.2s ease",transformOrigin:"bottom center"},onMouseEnter:e=>e.currentTarget.style.transform="scale(1.05)",onMouseLeave:e=>e.currentTarget.style.transform="scale(1)",children:[e.renderStaticImage?(0,F.jsx)("img",{src:e.staticImageUrl,alt:null!==(c=null===R||void 0===R||null===(h=R.products)||void 0===h||null===(m=h[0])||void 0===m?void 0:m.title)&&void 0!==c?c:"whatmore-event",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):(0,F.jsx)(M.A,{height:"100%",width:"100%",url:R.thumbnail_image,isPlaying:null===(v=e.isPlaying)||void 0===v||v,event:R}),(0,F.jsx)(W,{shopId:Q}),function(){const t=Array.isArray(null===R||void 0===R?void 0:R.products)?R.products.filter(e=>"active"===e.product_status):[];return("22907887"===Q||"79550939348"===Q||"87857266990"===Q)&&t.length>0&&(0,F.jsxs)("div",{className:"whatmore-products-overlay",style:{position:"absolute",bottom:"portrait"===e.mode?"12px":"20px",left:"50%",transform:"translateX(-50%)",background:"rgba(0,0,0,0.3)",backdropFilter:"blur(4px)",borderRadius:"25px",padding:"portrait"===e.mode?"4px 8px":"5px 10px",display:"flex",alignItems:"center",gap:"portrait"===e.mode?"6px":"8px",transition:"transform 0.2s ease"},children:[t.slice(0,2).map((t,o)=>(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),null!==t&&void 0!==t&&t.product_link&&(window.location.href=t.product_link)},style:{width:"portrait"===e.mode?"32px":"48px",height:"portrait"===e.mode?"32px":"48px",borderRadius:"50%",border:"2px solid white",overflow:"hidden",flexShrink:0,backgroundColor:"#f0f0f0",cursor:"pointer"},children:(0,F.jsx)("img",{src:t.thumbnail_image,alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover"}})},o)),t.length>2&&(0,F.jsx)("div",{style:{width:"portrait"===e.mode?"32px":"48px",height:"portrait"===e.mode?"32px":"48px",borderRadius:"50%",border:"2px solid white",backgroundColor:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,F.jsxs)("span",{style:{color:"white",fontSize:"portrait"===e.mode?"11px":"12px",fontWeight:"600"},children:["+",t.length-2]})})]})}()]})}),re.startsWith("product")&&(null===R||void 0===R?void 0:R.title)&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,F.jsx)("p",{ref:t=>{var o;t&&(t.style.setProperty("font-family",J,"important"),t.style.setProperty("font-size",(null!==(o=e.fontSize)&&void 0!==o?o:10)+"px","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:null===R||void 0===R?void 0:R.title})}),ae&&!re.startsWith("product")&&("73817522453"===Q||"68304765103"===Q||"16957273"===Q)&&(0,F.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"row",padding:he?"6px 4px":"6px 8px",gap:he?"8px":"6px",alignItems:"stretch",minHeight:"auto"},children:[ce&&(0,F.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(Q),"important")},src:(0,H.b)((null===le||void 0===le?void 0:le.thumbnail_image)||(null===le||void 0===le?void 0:le.image)||(null===le||void 0===le?void 0:le.featured_image),"&width=400&height=400"),alt:null===le||void 0===le?void 0:le.title,style:{width:Le.width,height:Le.height,borderRadius:"round"==_e?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:he?"0px":"-3px"}})}),(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:ce&&!he?"3px":"4px",flex:1,minWidth:0},children:[ae&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(Q),"important"),e.style.setProperty("font-size",.9*Ne+"px"),e.style.setProperty("line-height","115%"),e.style.setProperty("font-family",J,"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,X.v)(null===le||void 0===le?void 0:le.title)}),ae&&(0,F.jsxs)("div",{style:{display:"flex",gap:ce&&he?"2px":"8px",flexDirection:(0,a.vw2)(Q)?"row":"row-reverse",justifyContent:(0,a.vw2)(Q)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap",overflow:ce&&he?"visible":"initial",lineHeight:"1.2"},children:[(0,F.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)(Q),"important");const t=.9*parseFloat(We)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",J,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-align","left","important"),e.style.setProperty("width","auto","important"),ce&&he&&e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"normal"==(0,a.i6j)(Q)?"normal":"bold"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(y=null===de||void 0===de||null===(g=de.variants)||void 0===g||null===(f=g[0])||void 0===f?void 0:f.price)&&void 0!==y?y:null===de||void 0===de?void 0:de.price)?(null!==(w=null===de||void 0===de||null===(j=de.variants)||void 0===j||null===(b=j[0])||void 0===b?void 0:b.price)&&void 0!==w?w:null===de||void 0===de?void 0:de.price)/100:De:De>0?De:null===le||void 0===le?void 0:le.price_max)," ",Q,(null===(C=R.products[0])||void 0===C?void 0:C.currency)||("68304765103"===Q?"INR":void 0))}),!isNaN(Xe)&&Xe>De&&(0,F.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.gld)(Q),"important");const t=.9*parseFloat(We)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",J,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("width","auto","important"),ce&&he&&e.style.setProperty("white-space","nowrap","important")}},style:{textDecoration:"line-through"},children:(0,U.Sb)(parseFloat((0,q.U)()&&(null!==(S=null===de||void 0===de||null===(I=de.variants)||void 0===I||null===(k=I[0])||void 0===k?void 0:k.compare_at_price)&&void 0!==S?S:null===de||void 0===de?void 0:de.compare_at_price)?(null!==(_=null===de||void 0===de||null===(A=de.variants)||void 0===A||null===(T=A[0])||void 0===T?void 0:T.compare_at_price)&&void 0!==_?_:null===de||void 0===de?void 0:de.compare_at_price)/100:Xe)," ",Q,(null===(N=R.products[0])||void 0===N?void 0:N.currency)||("68304765103"===Q?"INR":void 0))}),"16957273"===Q&&!isNaN(Ve)&&0!=Ve&&(0,F.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(Q)?"#343434"==V?(0,a.ub$)(Q):V:(0,a.ub$)(Q),alignItems:"center",borderRadius:(0,a.v8m)(Q)+"px",width:"fit-content",padding:"3px 6px"},children:(0,F.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.BRY)(Q),"important");const t=.9*parseFloat(ze)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",J,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"600"},children:Ve+"% off"})})]}),xe&&(0,F.jsx)("button",{ref:e=>{e&&(e.style.setProperty("height","auto","important"),e.style.setProperty("min-height","auto","important"),e.style.setProperty("max-height","none","important"),e.style.setProperty("padding",he?"5px 6px":"6px 12px","important"))},style:{backgroundColor:V,display:"flex",justifyContent:"center",alignItems:"center",color:"white",borderRadius:"4px",padding:he?"5px 6px":"6px 12px",fontSize:Math.max(9,.75*Ne)+"px",fontFamily:J,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.3px",transition:"opacity 0.2s ease",width:"100%",marginTop:"2px",alignSelf:"stretch",marginLeft:"0px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},onClick:async e=>{if(e.stopPropagation(),!ae)return;me(!0);const t=Z.landingLocationType,o=Z.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==R&&void 0!==R&&R.isRelatedEvent?"R":"E")+"_"+(null===R||void 0===R?void 0:R.event_id);(0,d.Ch)(R.event_id,R.products,"homepage","carousel",i,null===R||void 0===R?void 0:R.location,null===ee||void 0===ee?void 0:ee.userType),"init"==ve.state?(we(i,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Z,event:R,productList:[le],ctaList:R.cta})):"awaitingVariantSelection"==ve.state&&je(null,i),setTimeout(()=>{me(!1)},3e3)},onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:ue?(0,F.jsx)(ke.y,{size:"sm",display:"flex !important",color:"white"}):"Add To Cart"})]})]})]})};var Ve=function(e){var t;const[o,r]=(0,P.A)(),[l]=(0,n.QN)("whatmoreSecondaryColor"),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmoreVideoTileSize"),[p]=(0,n.QN)("whatmoreVideoTileSizePortrait"),c="portrait"===e.mode?p:d,[h,u]=(0,i.useState)(!1),m=(0,a.ivI)(s),x=e.event1,v=e.event2,y=e.onClick,g=.01*c,f=o*g,w=o*g*.5,j=r*g,b=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",C="15%",S=e.removeBorders;return(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:f+"px",width:j+"px",marginLeft:S?"2px":"5px",marginRight:S?"2px":"5px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:S?"0px":b,boxShadow:S?"":"0px 1px 1px 0px "+l+"50, 0px -1px 1px 0px "+m+"50, 1px 0px 1px 0px "+l+"50, -1px 0px 1px 0px "+m+"80, 1px -1px 1px 0px "+l+"80, -1px 1px 1px 0px "+m+"DA, 1px 1px 1px 0px "+l+"DA, -1px -1px 1px 0px "+m+"DA"},onClick:()=>{u(!0),y(x)},className:[h?"whatmore-scale-on-tap":""].join(" "),children:[(0,F.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:j+"px",borderTopLeftRadius:S?"0px":C,borderTopRightRadius:S?"0px":C,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,F.jsx)(M.A,{height:"100%",width:"100%",url:x.thumbnail_image,isPlaying:!0,event:x})}),(0,F.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:j+"px",borderBottomLeftRadius:S?"0px":C,borderBottomRightRadius:S?"0px":C,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,F.jsx)(M.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!0,event:v})})]})})},Ue=o(8385),He=o(4492);const $e=(0,b.A)({key:"whatmore-css-cv"});var qe=function(e){const t=e.events,[o]=(0,I.A)(),[l,s]=(0,P.A)(),[d,p]=(0,i.useState)(Array(t.length).fill(0).map(()=>Math.random())),c=(0,n.Xd)("whatmoreVideoTileSize"),h=(0,n.Xd)("whatmoreVideoTileSizePortrait"),u="portrait"===o?h:c,m="portrait"==o?0:(0,n.Xd)("whatmoreLandscapePadding"),x=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(r.AppContext),y=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:b}=(0,i.useContext)(r.AppContext),C=e.onClick;function S(e){C(e)}(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),delete f.Ay.styles.global;var k=[];for(let i=0,n=!1;i<t.length;)n&&i!=t.length-1&&d[i]>.2?(k.push((0,F.jsx)(Ve,{mode:o,event1:t[i],event2:t[i+1],onClick:()=>{S(t[i-1])}},"collections-tile-"+i)),i+=2,n=!n):(k.push((0,F.jsx)(Be,{mode:o,event:t[i],onClick:()=>{S(t[i-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+i)),i+=1,n=!n);(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t,o,i;(null!==(t=null!==(o=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-collections-a"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data-wh="template-c"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-c"]'))&&e&&(e.style.minHeight="0px")})},[]);const[_,T,M]=(0,L.A)({triggerOnce:!1});return(0,F.jsx)(j.C,{value:$e,children:(0,F.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:b,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,F.jsx)("div",{ref:_,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,F.jsx)(Ue.c,{renderElement:e=>(0,F.jsx)(F.Fragment,{children:e.eventData}),dataList:k,spacing:x,defaultHeight:l*u*.01+"px",defaultWidth:s*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!T&&-1==e.index&&(0,F.jsx)(He.A,{event:t[0],inVideoClick:S,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const Qe=(0,b.A)({key:"whatmore-css-cv"});var Ge=function(e){const t=e.events,[o]=(0,I.A)(),[l,s]=(0,i.useState)(Array(t.length).fill(0).map(()=>Math.random())),[d,p]=(0,P.A)(),c=(0,n.Xd)("whatmoreVideoTileSize"),h=(0,n.Xd)("whatmoreVideoTileSizePortrait"),u="portrait"===o?h:c,m="portrait"==o?0:(0,n.Xd)("whatmoreLandscapePadding"),x=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:v}=(0,i.useContext)(r.AppContext),y=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:b}=(0,i.useContext)(r.AppContext),C=e.onClick,[S,k,_]=(0,L.A)({triggerOnce:!1});function T(e){C(e)}delete f.Ay.styles.global;var M=[];for(let i=0,n=!1;i<t.length;)n&&i!=t.length-1&&l[i]>.2?(M.push((0,F.jsx)(Ve,{event1:t[i],event2:t[i+1],onClick:()=>{T(t[i-1])},removeBorders:!0},"collections-tile-"+i)),i+=2,n=!n):(M.push((0,F.jsx)(Be,{mode:o,event:t[i],onClick:()=>{T(t[i-1])},removeBorders:!0,borderRadius:"0%"},"collections-tile-"+i)),i+=1,n=!n);return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(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"]'))&&e&&(e.style.minHeight="0px")})},[]),(0,F.jsx)(j.C,{value:Qe,children:(0,F.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:b,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,F.jsx)("div",{ref:S,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,F.jsx)(Ue.c,{showBgPlaceholder:!0,renderElement:e=>(0,F.jsx)(F.Fragment,{children:e.eventData}),dataList:M,spacing:x,defaultHeight:d*u*.01+"px",defaultWidth:p*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!k&&-1==e.index&&(0,F.jsx)(He.A,{event:t[0],inVideoClick:T,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const Ye=(0,b.A)({key:"whatmore-css-cv"});var Ke=function(e){var t;const[o]=(0,I.A)(),[l,s,d]=(0,P.A)(),p=(0,n.Xd)("whatmoreShopId"),c=(0,n.Xd)("whatmoreVideoTileSize"),h=(0,n.Xd)("whatmoreVideoTileSizePortrait"),u="portrait"===o?h:c,m="portrait"==o?0:(0,n.Xd)("whatmoreLandscapePadding"),x=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),[v]=(0,n.Xd)("whatmorePrimaryColor"),{whatmoreRootId:y}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:b}=(0,i.useContext)(r.AppContext),{whatmoreCollectionId:C}=(0,i.useContext)(r.AppContext),S="79550939348"===p&&"448768966868"===C,k=S||(0,a.aO7)(p),T=u?Math.round(100*d/u):d,M=Math.max(0,Math.floor((T||1)/2)),[N,R]=(0,i.useState)(-1),O=e.events,E=e.onClick,W=(0,n.Xd)("whatmoreTitleFont"),z="portrait"==o?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),D=null!==(t=(0,a.sa6)(p))&&void 0!==t?t:W,X=(0,n.Xd)("whatmorePrimaryFont");function B(e){E(e)}delete f.Ay.styles.global;const V=.055*s,U="22907887"===p||"79550939348"===p?"portrait"===o?.9:.83:1,H="68304765103"===p?"0px":"22907887"===p?"5%":"1%",$=Number(x),q="68304765103"===p?"portrait"===o?6:20:"22907887"===p?x:Number.isFinite($)?Math.max(2,.5*$):x;var Q=[];for(let i=0;i<O.length;){var G,Y,K;const e=O[i],t="STR1EXZ7ZRD"===p,n=i,r=_()(()=>R(n),200),l=N===n,s=S&&!l,a=null!==(G=null===e||void 0===e||null===(Y=e.products)||void 0===Y||null===(K=Y[0])||void 0===K?void 0:K.thumbnail_image)&&void 0!==G?G:null===e||void 0===e?void 0:e.poster_image;Q.push((0,F.jsxs)("div",{style:{position:"relative",transition:"transform 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.transform="scale(1.01)",r()},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)",r.cancel(),R(-1)},children:[(0,F.jsx)(Be,{mode:o,event:e,onClick:()=>{B(O[i-1])},removeBorders:!0,borderRadius:H,fontSize:V,isPlaying:!k||("portrait"===o||(l||n===M&&-1===N)),renderStaticImage:s,staticImageUrl:a},"collections-tile-"+i),t&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("position","absolute","important"),e.style.setProperty("bottom","4%","important"),e.style.setProperty("left","50%","important"),e.style.setProperty("transform","translateX(-50%)","important"),e.style.setProperty("color","white","important"),e.style.setProperty("padding","0.5rem 0rem 0rem 0.5rem","important"),e.style.setProperty("font-size",.9*V+"px","important"),e.style.setProperty("font-weight","600","important"),e.style.setProperty("width","90%","important"),e.style.setProperty("max-width","100%","important"),e.style.setProperty("word-wrap","break-word","important"),e.style.setProperty("text-shadow","2px 2px 4px rgba(0, 0, 0, 0.5)","important"),e.style.setProperty("font-family",X,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"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:null===e||void 0===e?void 0:e.title}),(0,F.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,F.jsx)(Fe.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]})]})),i++}(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-e"]'))&&e&&(e.style.minHeight="0px")})},[]);const[J,Z,ee]=(0,L.A)({triggerOnce:!1});return(0,F.jsx)(j.C,{value:Ye,children:(0,F.jsx)("div",{className:b?"whatmore-collection-events":"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0&&!b&&(0,a.DLl)(p)?(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",D,"important"),e.style.setProperty("font-size",z+"px","important"))},style:{color:v,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(p),lineHeight:(0,a.L0y)(p),letterSpacing:(0,a.l3V)(p)},children:e.heading})}):(0,F.jsx)(F.Fragment,{}),(0,F.jsx)("div",{ref:J,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,F.jsx)(Ue.c,{showBgPlaceholder:!0,renderElement:e=>(0,F.jsx)(F.Fragment,{children:e.eventData}),dataList:Q,spacing:q,defaultHeight:U*l*u*.01+"px",defaultWidth:s*u*.01*("22907887"===p?1:1.08)+"px",retainAlreadyRenderedElements:!0,shopId:p,forceShowArrows:"landscape"===o&&"22907887"!==p})}),(0,a.wQ2)(p)&&b&&!Z&&-1==e.index&&(0,F.jsx)(He.A,{event:O[0],inVideoClick:B,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};o(1012);var Je=function(e){var t,o,l,s,d,p,c,h,m,v,y,g,f,w,j,b,C,S,I,k,_;const[T,N,R,O,E]=(0,P.A)(),L=.5*N;(0,i.useContext)(A.h);const B=(0,n.Xd)("whatmoreUITheme"),V=(0,n.Xd)("whatmoreShopId"),H=(0,n.Xd)("whatmorePrimaryFont"),Q=(0,n.Xd)("whatmoreSecondaryColor"),G=(0,n.Xd)("websiteLanguage"),[Y]=(0,n.QN)("whatmoreShowViews"),K=e.onClick,J=null===(t=e.isOnFocus)||void 0===t||t,Z=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,ee=null!==(l=e.animateOnFocus&&(0,a.n5O)(V))&&void 0!==l&&l,te="portrait"===E[Pe.dl],ie=(te?1.076*N*(0,a.HWj)(V):N*(0,a.N_4)(V))+"px",ne=(te?1.076*N*(0,a.HWj)(V):N*(0,a.N_4)(V))+"px",re=(te?.965*N*(0,a.HWj)(V):.859*N*(0,a.N_4)(V))+"px",le=(0,a.VYo)(V),{whatmoreIsPreviewMode:se,whatmoreWidgetSourceDetails:ae}=(0,i.useContext)(r.AppContext),de=.25*N,pe=de+"px",ce=1.25*de+"px",[he,ue]=(0,i.useState)(e.event),[me,xe]=(0,i.useState)(),[ve,ye]=(0,i.useState)(!1),ge=null!==(s=null===(d=he.products)||void 0===d?void 0:d.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(p=he.products)||void 0===p?void 0:p[0],fe=Math.round(+(null===ge||void 0===ge?void 0:ge.price)),we=Math.round(+(null===ge||void 0===ge?void 0:ge.compare_price)),je=we&&0!=we&&we>fe?Math.round((we-fe)/we*100):NaN,[be,Ce]=(0,i.useState)(je),[ke,_e]=(0,i.useState)(!1),[Ae,Fe,Te,Me,Ne,Re]=(0,Ie.A)(0,ge,he),Oe="81308287252"===V&&document.body.classList.contains("dark-mode-active")?"white":(0,a.m5c)(V);return(0,i.useEffect)(()=>{if("81308287252"===V)return void _e(!0);(0,a.w4b)(V)?(0,U.fu)(he,(0,a.NCy)(V),V).then(e=>{var t,o,i;ue(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;Ce(l),_e(!0)}):(async()=>{const e=await(0,$.M)(ge,(0,a.NCy)(V),V);xe(e),_e(!0)})()},[]),(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","12px"),e.style.setProperty("margin-bottom","12px"))},className:ee&&!te?J?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:N,margin:"0 auto",cursor:"pointer"},...(0,z.i)(`Play video: ${he.title||he.event_id||""}`),onClick:()=>{K(he)},onMouseEnter:()=>ye(!0),onMouseLeave:()=>ye(!1),children:["video"===he.event_type&&"55076552858"===V&&!te&&(0,F.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*L,marginLeft:L/2},children:(0,F.jsx)(Se.A,{sx:{color:(0,a.KFN)(he.whatmoreShopId)+" !important",opacity:.8,fontSize:L,filter:"drop-shadow(0 0 15px black);"}})}),(0,F.jsxs)("div",{style:{width:N,height:te&&J?"STR2FOC6KG9"==V||"STRDOIDF6O7"==V?T:1.1*T:T,borderRadius:"round"==B?"5px":"0px",boxShadow:"round"==B?le:null,borderWidth:(0,a.YcK)(V),borderColor:(0,a.Fwt)(V),overflow:"hidden",position:"relative"},children:[(0,F.jsx)(M.A,{height:(0,a.u06)(V)+" !important",width:"100%",url:he.thumbnail_image,isPlaying:J||Z,event:he}),(0,F.jsx)(W,{shopId:V}),"show"===Y&&"show"===(0,a.klK)(V)&&(0,F.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))",pointerEvents:"none",zIndex:3,WebkitTransform:"translateZ(0)",transform:"translateZ(0)"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:he,fontSize:.07*N+"px"})})})})}),"9238315068"===V&&(ve||te)&&(0,F.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:ve||te?"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:ve||te?"translateY(0)":"translateY(100%)",opacity:ve||te?1:0},onClick:e=>{e.stopPropagation();const t=ae.landingLocationType,o=ae.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==he&&void 0!==he&&he.isRelatedEvent?"R":"E")+"_"+(null===he||void 0===he?void 0:he.event_id);"init"==Ae.state?(Ne(i),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:ae,event:he,productList:[ge],ctaList:he.cta})):"awaitingVariantSelection"==Ae.state&&Re(null,i)},onMouseEnter:e=>{e.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:e=>{e.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,F.jsx)("span",{style:{color:"white",fontSize:ie,fontFamily:H,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:"ADD TO CART"})})]}),(0,F.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(se?(0,a.Tr1)(V):(0,a.UmS)(V))&&(null===he||void 0===he||null===(c=he.products)||void 0===c?void 0:c.length)>0&&(0,F.jsx)("div",{style:{maxHeight:ce,maxWidth:pe,minWidth:null!==ge&&void 0!==ge&&ge.thumbnail_image?pe:"0",overflow:"hidden"},children:(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(V),"important")},style:{height:"100%"},src:(null===ge||void 0===ge||null===(h=ge.thumbnail_image)||void 0===h||null===(m=h.split("?"))||void 0===m?void 0:m[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,F.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Oe,"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,X.v)(null===ge||void 0===ge?void 0:ge.title)}),ke&&(0,a.Nzx)(V)&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(V)?"row":"row-reverse",justifyContent:(0,a.vw2)(V)?"flex-start":"flex-end"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Oe,"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(V)?"normal":"bold"},children:(0,U.Sb)(parseFloat("81308287252"===V?null===ge||void 0===ge?void 0:ge.price:(0,q.U)()?(null!==(v=null===me||void 0===me||null===(y=me.variants)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.price)&&void 0!==v?v:null===me||void 0===me?void 0:me.price)/100:null===ge||void 0===ge?void 0:ge.price)," ",V,null===(f=he.products[0])||void 0===f?void 0:f.currency)}),!isNaN(we)&&we>fe&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(V),"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,U.Sb)(parseFloat("81308287252"===V?null===ge||void 0===ge?void 0:ge.compare_price:(0,q.U)()?(null!==(w=null===me||void 0===me||null===(j=me.variants)||void 0===j||null===(b=j[0])||void 0===b?void 0:b.compare_at_price)&&void 0!==w?w:null===me||void 0===me?void 0:me.compare_at_price)/100:null===ge||void 0===ge?void 0:ge.compare_price)," ",V,null===(C=he.products[0])||void 0===C?void 0:C.currency)}),"56352899156"==V&&(0,a.Nzx)(V)&&ke&&!isNaN(be)&&0!=be&&(0,F.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(V)?"#343434"==Q?(0,a.ub$)(V):Q:(0,a.ub$)(V),alignItems:"center",borderRadius:(0,a.v8m)(V)+"px",width:"fit-content",padding:"3px 4px"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(V),"important"),e.style.setProperty("font-size",re,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${be}% ${null!==(S=null===Xe.m||void 0===Xe.m||null===(I=Xe.m[G])||void 0===I?void 0:I.off)&&void 0!==S?S:"off"}`})})]}),(0,a.Nzx)(V)&&ke&&!isNaN(be)&&0!=be&&(0,F.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(V)?"#343434"==Q?(0,a.ub$)(V):Q:(0,a.ub$)(V),alignItems:"center",borderRadius:(0,a.v8m)(V)+"px",width:"fit-content",padding:(0,a.Cf)(V)?"3px 6px":"0px"},children:(0,a.Cf)(V)?(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(V),"important"),e.style.setProperty("font-size",re,"important"),e.style.setProperty("font-family",H,"important"))},children:`${be}% ${null!==(k=null===Xe.m||void 0===Xe.m||null===(_=Xe.m[G])||void 0===_?void 0:_.off)&&void 0!==k?k:"off"}`}):(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(V),"important"),e.style.setProperty("font-size",re,"important"),e.style.setProperty("font-family",(0,a.ogW)(V),"important"))},children:(0,a.rsz)(V)})})]}),""!=(null===he||void 0===he?void 0:he.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,F.jsx)("div",{className:"wht-video-title",style:{display:"none",justifyContent:"center",borderRadius:"5px",alignItems:"center",padding:"6px 8px"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#343434"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-align","center","important"))},children:null===he||void 0===he?void 0:he.title})})]})]})};const Ze=(0,b.A)({key:"whatmore-css-hv"});function et(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),[y,g]=(0,i.useState)(v?h.length:m),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,F.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsxs)("div",{style:{width:"8968077397"===c&&h.length<4?"200px":p,height:"fit-content",position:"90518552861"!==c&&"63512346790"!==c||!(0,a.JSQ)(c)?void 0:"relative"},children:[("90518552861"===c||"63512346790"===c)&&(0,a.JSQ)(c)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"whatmore-swiper-button-prev"}),(0,F.jsx)("div",{className:"whatmore-swiper-button-next"})]}),(0,F.jsx)(C.RC,{slidesPerView:h.length>1?"51394281658"==c||"55820812447"==c?2:m:1,initialSlide:h.length>1&&"51394281658"!=c&&"55820812447"!=c?1:0,centeredSlides:"51394281658"!=c&&"55820812447"!=c,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==c?1:.5,onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:v&&h.length>2,modules:[S.s3,S.Jq,...(0,a.JSQ)(c)?[S.Vx]:[],..."79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c?[S.Ij]:[]],keyboard:{enabled:!0},navigation:"90518552861"!==c&&"63512346790"!==c||!(0,a.JSQ)(c)?(0,a.JSQ)(c):{nextEl:".whatmore-swiper-button-next",prevEl:".whatmore-swiper-button-prev"},autoplay:("79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},children:h.map((e,t)=>t<=y&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,a.DmD)(c)?(0,F.jsx)(Je,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(Re,{isOnFocus:("51394281658"==c||"55820812447"==c||t)&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-portrait-"+e.index))})]})})}function tt(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),h=e.onClick,u=e.events,m=(0,a.cbh)(c),[v,y]=(0,i.useState)(m?u.length:l),g="8968077397"==c||"19501891"==c?Math.floor(Math.min(l,u.length)):Math.min(l,u.length),f="79550939348"==c||"37274026115"==c?1:g,w=Math.floor(Math.min(4,u.length)),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(r.AppContext),b=(0,i.useRef)(!1),I=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(I.current){const e="8968077397"===c&&u.length>=4?.7:(0,a.fHt)(c),t=o*g*e+"px";u.length<4||"8968077397"===c?I.current.style.setProperty("width",t,"important"):I.current.style.width=t}},[o,g,c,v,u.length]),(0,i.useEffect)(()=>{v<=l&&y(e=>e+l)},[l]),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px"},className:"whatmore-events-carousel-landscape",children:(0,F.jsx)("div",{ref:I,style:{height:"100%"},children:(0,F.jsx)(C.RC,{slidesPerView:"8968077397"==c?w:g,watchSlidesProgress:!0,modules:[S.s3,S.Jq,S.Vx,S.Ij],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:"8968077397"==c||"19501891"==c?Math.min(2,u.length):parseInt(f),onTouchStart:()=>{b.current=!0},onSlideChange:e=>{b.current&&(b.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j})),e.realIndex>e.previousIndex&&y(e=>e+l)},spaceBetween:0,loop:(m||"8968077397"==c||"19501891"==c)&&u.length>4,autoplay:("79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},style:{height:"100%"},children:u.map((e,t)=>{const o=_()(()=>p(t),300);return t<=v&&(0,F.jsx)(C.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||"8968077397"==c||"19501891"==c&&(i||n)?(0,a.DmD)(c)?(0,F.jsx)(Je,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,F.jsx)(Re,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var ot=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:u}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,y=p;function b(e){v(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Ze,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{if(e){e.style.setProperty("font-family",y,"important");const t="10952326"===s?18:c;e.style.setProperty("font-size",t+"px","important")}},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:m?"W"!==u?u:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===t?"90518552861"===s||"63512346790"===s?(0,F.jsx)(et,{events:x,onClick:b}):(0,F.jsx)(tt,{events:x,onClick:b}):(0,F.jsx)(et,{events:x,onClick:b})]})})})})},it=o(6663);var nt=function({productList:e,firstAvailableProduct:t,setFirstAvailableProduct:o,tileWidth:i}){const r=.06*i,l=r+"px",[s]=(0,n.QN)("whatmorePrimaryFont");return(0,F.jsxs)("div",{onClick:e=>{e.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,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",l,"important"),e.style.setProperty("font-weight","600","important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:"Select Product"}),(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*i,overflowY:"auto",paddingBottom:"12px"},children:e.map((e,i)=>(0,F.jsxs)("div",{onClick:t=>{t.stopPropagation(),(e=>{o(e)})(e)},style:{WebkitTapHighlightColor:"transparent",cursor:"pointer",padding:"8px",display:"flex",alignItems:"center",gap:"8px",borderRadius:"6px",backgroundColor:(null===t||void 0===t?void 0:t.client_product_id)==(null===e||void 0===e?void 0:e.client_product_id)?"#f0f0f0":"white",border:(null===t||void 0===t?void 0:t.client_product_id)==(null===e||void 0===e?void 0:e.client_product_id)?"1px solid #343434":"none"},children:[(0,F.jsx)("img",{src:(0,H.b)(null===e||void 0===e?void 0:e.thumbnail_image),alt:null===e||void 0===e?void 0:e.title,style:{width:2*r,height:2*r}}),(0,F.jsx)("p",{style:{fontSize:.8*r+"px",fontFamily:s,textTransform:"uppercase",backgroundColor:"inherit"},children:null===e||void 0===e?void 0:e.title})]},i))})]})};var rt=function(e){var t,o,l,s,c,h,m,v,y,g,f,w,j,b,C,S,I,k,_,T,N,R,O,E,L,B,V;const[Q,G,Y,K,J]=(0,P.A)(),Z=(0,n.Xd)("whatmoreShopId"),ee=(0,n.Xd)("whatmoreLandingLocationType"),[te]=(0,n.QN)("whatmoreShowViews"),ie="portrait"===J[Pe.dl],ne=ie?1.076*G*(0,a.HWj)(Z):G*(0,a.N_4)(Z),re=ne+"px",le=ie?1.076*G*(0,a.HWj)(Z):G*(0,a.N_4)(Z),se=le+"px",ae=ie?.965*G*(0,a.HWj)(Z):.859*G*(0,a.N_4)(Z),de=ae+"px",[pe,ce]=(0,i.useState)(e.event),[he,ue]=(0,i.useState)(!1),me=(0,n.Xd)("whatmoreSecondaryColor");(0,n.Xd)("whatmoreProductId");var xe=(0,i.useContext)(A.h);const ve=null===(t=e.isOnFocus)||void 0===t||t,ye=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,ge=e.onClick,fe=(0,n.Xd)("whatmoreUITheme"),we=(0,n.Xd)("websiteLanguage"),je=null!==(l=e.animateOnFocus&&(0,a.n5O)(Z))&&void 0!==l&&l,[be,Ce]=(0,i.useState)(!1),Se=(0,n.Xd)("whatmorePrimaryFont"),[_e,Ae]=(0,i.useState)(null!==(s=null===(c=pe.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(h=pe.products)||void 0===h?void 0:h[0]),Fe=_e&&Object.keys(_e).length>0;let Te,Me,Ne;Te=parseFloat(null===_e||void 0===_e?void 0:_e.price),Me=parseFloat(null===_e||void 0===_e?void 0:_e.compare_price),Ne=Me&&0!=Me&&Me>Te?Math.round((Me-Te)/Me*100):NaN;const[Re,Oe]=(0,i.useState)(Ne),[Ee,We]=(0,i.useState)(),{whatmoreIsPreviewMode:ze,whatmoreWidgetSourceDetails:Le,whatmoreUserInfo:De}=(0,i.useContext)(r.AppContext),[Be,Ve]=(0,i.useState)(!1),[Ue,He,$e,qe,Qe,Ge]=(0,Ie.A)(0,_e,pe),Ye=Fe&&(0,a.mRH)(Z),Ke=Fe&&(0,a.VhI)(Z),Je=(0,a.WRx)(Z)||me,Ze=(0,a.jsS)(Z)||"white",et=(0,a.KPq)(Z)||"ADD TO CART",[tt,ot]=(0,i.useState)(!1),rt="74714218724"===Z||"76767920441"===Z||"55840899223"===Z||"16957273"===Z,lt=.25*G,st=rt&&ie?.72*le+"px":se,at=rt&&ie?.72*ae+"px":de,[dt,pt]=(0,i.useState)(null),[ct,ht]=(0,i.useState)(!1),ut=("64287408360"===Z||"66947219508"===Z)&&Ee&&Ee.options&&1===Ee.options.length&&Ee.variants&&Ee.variants.length>0,mt=ut?Ee.variants.filter(e=>e.available):[];(0,i.useEffect)(()=>{if("6573064236"!==Z){if(Fe&&(0,a.w4b)(Z)&&(0,U.fu)(pe,(0,a.NCy)(Z),Z).then(e=>{var t,o,i;ce(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.discount)&&Oe(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.discount),Ce(!0)}),Fe){(async()=>{let e=_e;for(let i=0;i<(null===pe||void 0===pe||null===(t=pe.products)||void 0===t?void 0:t.length);i++){var t;const o=await(0,$.M)(null===pe||void 0===pe?void 0:pe.products[i],(0,a.NCy)(Z),Z);if(null!==o&&void 0!==o&&o.available){Ae(null===pe||void 0===pe?void 0:pe.products[i]),e=null===pe||void 0===pe?void 0:pe.products[i];break}}const o=await(0,$.M)(e,(0,a.NCy)(Z),Z);We(o),Ce(!0)})()}}else Ce(!0)},[Fe]),(0,i.useEffect)(()=>{if(Fe){if("6573064236"===Z)return void Ce(!0);(async()=>{const e=await(0,$.M)(_e,(0,a.NCy)(Z),Z);We(e),Ce(!0)})()}},[_e]),(0,i.useEffect)(()=>{ut&&mt.length>0&&!dt&&pt(mt[0])},[ut,mt,dt]),(0,i.useEffect)(()=>{if("awaitingVariantSelection"===Ue.state&&dt&&ut&&!ct){const e=Le.landingLocationType,t=Le.templateType,o=(0,u.Wd)(e)+(0,u.gf)(t)+(null!==pe&&void 0!==pe&&pe.isRelatedEvent?"R":"E")+"_"+(null===pe||void 0===pe?void 0:pe.event_id);console.log("selectedVariant : ",dt.option1),Ge([dt.option1,null,null],o)}},[Ue]);const xt=async e=>{if("6573064236"===Z&&null!==_e&&void 0!==_e&&_e.product_link)return e.stopPropagation(),void(window.location.href=_e.product_link);if(e.stopPropagation(),!Fe)return;if(ut)return void ht(!0);ue(!0);const t=Le.landingLocationType,o=Le.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==pe&&void 0!==pe&&pe.isRelatedEvent?"R":"E")+"_"+(null===pe||void 0===pe?void 0:pe.event_id);(0,d.Ch)(pe.event_id,pe.products,"homepage","carousel",i,null===pe||void 0===pe?void 0:pe.location,null===De||void 0===De?void 0:De.userType),"init"==Ue.state?(Qe(i,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Le,event:pe,productList:[_e],ctaList:pe.cta})):"awaitingVariantSelection"==Ue.state&&Ge(null,i),setTimeout(()=>{ue(!1),ot(!1)},3e3)},vt=ie?"36px":"44px",yt=rt&&ie?{width:.25*G,height:.33*G}:rt?{width:1.1*lt,height:1.45*lt}:null;return(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",xe.tileTopMargin+"px"),e.style.setProperty("margin-bottom",xe.tileBottomMMargin+"px"))},className:je&&!ie?ve?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:rt&&!ie?1.1*G:G,position:"relative"},...(0,z.i)(`Play video: ${pe.title||pe.event_id||""}`),onClick:()=>{ge(pe)},onMouseEnter:()=>Ve(!0),onMouseLeave:()=>Ve(!1),children:[(0,F.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==fe?"5%":"0px",boxShadow:"round"==fe?"0px 0px 5px 0px #B0B0B0":null,height:Q,borderWidth:(0,a.YcK)(Z),borderColor:(0,a.Fwt)(Z),overflow:"hidden",position:"relative"},children:[(0,F.jsx)(M.A,{height:(0,a.u06)(Z)+" !important",width:"100%",url:pe.thumbnail_image,isPlaying:ve||ye||(0,p.At)(),event:pe}),(0,F.jsx)(W,{shopId:Z}),"show"===te&&"show"===(0,a.klK)(Z)&&(0,F.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))",pointerEvents:"none",zIndex:3},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:pe,fontSize:.07*G+"px"})})})})}),Ke&&Fe&&(Be||ie)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{position:"absolute",bottom:vt,left:0,right:0,display:tt?"block":"none"},children:(0,F.jsx)(nt,{productList:pe.products,firstAvailableProduct:_e,setFirstAvailableProduct:Ae,tileWidth:G})}),(0,F.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Je||"rgba(0, 0, 0, 0.75)",height:vt,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Be||ie?"translateY(0)":"translateY(100%)",opacity:Be||ie?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:xt,children:[(0,F.jsx)("div",{style:{flex:1,textAlign:"center",color:Ze,fontSize:"12px",fontFamily:Se,fontWeight:"500",letterSpacing:"0.5px"},children:he?(0,F.jsx)(ke.y,{size:"sm",color:"white"}):et}),(0,F.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Ze}`,opacity:.5}}),(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),ot(!tt)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Ze,transform:tt?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,F.jsx)(it.A,{sx:{fontSize:2*ne}})})]})]})]}),(0,F.jsxs)("div",{className:"wht-prod-info",style:{display:(0,a.AmR)(Z)?"flex":"none",flexDirection:"row",padding:rt&&!ie?"8px 4px":"12px 4px",gap:rt&&!ie?"8px":"12px",alignItems:"stretch",minHeight:"auto"},children:[rt&&Fe&&yt&&(0,F.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(Z),"important")},src:(0,H.b)((null===_e||void 0===_e?void 0:_e.thumbnail_image)||(null===_e||void 0===_e?void 0:_e.image)||(null===_e||void 0===_e?void 0:_e.featured_image),"&width=400&height=400"),alt:null===_e||void 0===_e?void 0:_e.title,style:{width:yt.width,height:yt.height,borderRadius:"round"==fe?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:ie?"0px":"-3px"}})}),(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:rt&&!ie?"3px":"5px",flex:1,minWidth:0},children:[Fe&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(Z),"important"),e.style.setProperty("font-size","45034766485"==Z&&"product"==ee?"9px":re),e.style.setProperty("line-height","120%"),e.style.setProperty("font-family",Se,"important"),e.style.setProperty("-webkit-line-clamp","55840899223"===Z?"2":"1","important"),e.style.setProperty("line-clamp","55840899223"===Z?"2":"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"),"55840899223"===Z&&e.style.setProperty("height",1.2*ne*2+"px","important"))},children:(0,X.v)(null===_e||void 0===_e?void 0:_e.title)}),Fe&&be&&(0,a.Nzx)(Z)&&(0,F.jsxs)("div",{style:{display:"flex",gap:rt&&ie?"2px":"12px",flexDirection:(0,a.vw2)(Z)?"row":"row-reverse",justifyContent:(0,a.vw2)(Z)?"flex-start":"flex-end",alignItems:"center",flexWrap:rt&&ie?"nowrap":"wrap",overflow:rt&&ie?"visible":"initial"},children:[(0,F.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)(Z),"important");const t="45034766485"==Z&&"product"==ee?"8px":st;e.style.setProperty("font-size",t),e.style.setProperty("font-family",Se,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-align","left","important"),e.style.setProperty("width","auto","important"),rt&&ie&&e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"normal"==(0,a.i6j)(Z)?"normal":"bold"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(m=null===Ee||void 0===Ee||null===(v=Ee.variants)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.price)&&void 0!==m?m:null===Ee||void 0===Ee?void 0:Ee.price)?(null!==(g=null===Ee||void 0===Ee||null===(f=Ee.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.price)&&void 0!==g?g:null===Ee||void 0===Ee?void 0:Ee.price)/100:Te:Te>0?Te:null===_e||void 0===_e?void 0:_e.price_max)," ",Z,null===(j=pe.products[0])||void 0===j?void 0:j.currency)}),!isNaN(Me)&&Me>Te&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(Z),"important"),e.style.setProperty("font-size",st),e.style.setProperty("font-family",Se,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("width","auto","important"),rt&&ie&&e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,U.Sb)(parseFloat((0,q.U)()&&(null!==(b=null===Ee||void 0===Ee||null===(C=Ee.variants)||void 0===C||null===(S=C[0])||void 0===S?void 0:S.compare_at_price)&&void 0!==b?b:null===Ee||void 0===Ee?void 0:Ee.compare_at_price)?(null!==(I=null===Ee||void 0===Ee||null===(k=Ee.variants)||void 0===k||null===(_=k[0])||void 0===_?void 0:_.compare_at_price)&&void 0!==I?I:null===Ee||void 0===Ee?void 0:Ee.compare_at_price)/100:Me)," ",Z,null===(T=pe.products[0])||void 0===T?void 0:T.currency)}),(0,a.Nzx)(Z)&&!isNaN(Re)&&0!=Re&&be&&Ye&&(0,F.jsx)("div",{style:{display:(0,a.QNr)(Z)?"flex":"none",backgroundColor:"green"===(0,a.ub$)(Z)?"#343434"===me?(0,a.ub$)(Z):me:(0,a.ub$)(Z),alignItems:"center",borderRadius:(0,a.v8m)(Z)+"px",width:"fit-content",padding:(0,a.Cf)(Z)?rt&&ie?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:rt&&ie?"nowrap":"normal"},children:(0,a.Cf)(Z)?(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(Z),"important"),e.style.setProperty("font-size",at,"important"),e.style.setProperty("font-family",Se,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Re}% ${null!==(N=null===Xe.m||void 0===Xe.m||null===(R=Xe.m[we])||void 0===R?void 0:R.off)&&void 0!==N?N:"off"}`}):(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(Z),"important"),e.style.setProperty("font-size",at,"important"),e.style.setProperty("font-family",(0,a.ogW)(Z),"important"))},children:(0,a.rsz)(Z)})})]}),Fe&&(0,a.Nzx)(Z)&&!isNaN(Re)&&0!=Re&&be&&!Ye&&(0,F.jsx)("div",{style:{display:(0,a.QNr)(Z)?"flex":"none",backgroundColor:"green"===(0,a.ub$)(Z)?"#343434"===me?(0,a.ub$)(Z):me:(0,a.ub$)(Z),alignItems:"center",borderRadius:(0,a.v8m)(Z)+"px",width:"fit-content",padding:(0,a.Cf)(Z)?rt&&ie?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:rt&&ie?"nowrap":"normal"},children:(0,a.Cf)(Z)?(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(Z),"important"),e.style.setProperty("font-size",at,"important"),e.style.setProperty("font-family",Se,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Re}% ${null!==(O=null===Xe.m||void 0===Xe.m||null===(E=Xe.m[we])||void 0===E?void 0:E.off)&&void 0!==O?O:"off"}`}):(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(Z),"important"),e.style.setProperty("font-size",at,"important"),e.style.setProperty("font-family",(0,a.ogW)(Z),"important"))},children:(0,a.rsz)(Z)})}),Ye&&(0,F.jsx)("button",{style:{backgroundColor:me,display:"flex",justifyContent:"center",alignItems:"center",color:"white",borderRadius:"4px",padding:rt&&ie?"6px 8px":"8px 16px",fontSize:rt&&ie?.8*ne+"px":re,fontFamily:Se,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:rt&&ie?"0.3px":"0.5px",transition:"opacity 0.2s ease",width:rt&&ie?"100%":"95%",marginTop:rt&&ie?"auto":rt?"6px":"0px",alignSelf:"stretch",marginLeft:"0px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},onClick:xt,onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:he?(0,F.jsx)(ke.y,{size:"sm",display:"flex !important",color:"white"}):et})]})]}),ut&&ct&&(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),ht(!1)},style:{position:"absolute",bottom:ie?"25px":"10px",left:0,right:0,zIndex:1e4},children:(0,F.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{backgroundColor:"#f5f5f5",borderRadius:ie?"10px 10px 0 0":"12px 12px 0 0",padding:ie?"8px":"14px",width:"100%",boxShadow:"0 -4px 20px rgba(0,0,0,0.15)"},children:[(0,F.jsx)("div",{style:{width:ie?"30px":"45px",height:"3px",backgroundColor:"#ccc",borderRadius:"2px",margin:ie?"0 auto 2px":"0 auto 4px"}}),(0,F.jsx)("h3",{style:{fontSize:ie?"10px":"12px",fontFamily:Se,fontWeight:"500",textAlign:"center",margin:ie?"0 0 5px 0":"0 0 8px 0",color:"#000"},children:(null===Ee||void 0===Ee||null===(L=Ee.options)||void 0===L||null===(B=L[0])||void 0===B?void 0:B.name)||"Variant"}),(0,F.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:ie?"5px":"8px",marginBottom:ie?"5px":"8px",justifyContent:"center"},children:null===Ee||void 0===Ee||null===(V=Ee.variants)||void 0===V?void 0:V.map(e=>(0,F.jsx)("div",{onClick:()=>{e.available&&pt(e)},style:{padding:ie?"4px 4px":"6px 8px",borderRadius:ie?"4px":"5px",border:`1px solid ${(null===dt||void 0===dt?void 0:dt.id)===e.id?"white":me}`,textAlign:"center",cursor:e.available?"pointer":"not-allowed",fontSize:ie?"7px":"10px",fontFamily:Se,fontWeight:"200",backgroundColor:(null===dt||void 0===dt?void 0:dt.id)===e.id?me:"white",color:(null===dt||void 0===dt?void 0:dt.id)===e.id?"white":me,textDecoration:e.available?"none":"line-through",whiteSpace:"nowrap",opacity:e.available?1:.5,boxShadow:(null===dt||void 0===dt?void 0:dt.id)===e.id?"0px 1px 8px 0px rgba(0,0,0,0.18)":"none"},children:e.option1},e.id))}),(0,F.jsxs)("div",{style:{display:"flex",gap:ie?"5px":"6px"},children:[(0,F.jsx)("button",{onClick:()=>ht(!1),style:{flex:1,padding:ie?"6px":"9px",backgroundColor:"white",color:"#000",borderRadius:ie?"5px":"6px",fontSize:ie?"10px":"12px",fontFamily:Se,fontWeight:"600",cursor:"pointer",border:"1px solid #ddd"},children:"Cancel"}),(0,F.jsx)("button",{onClick:async()=>{ht(!1),ue(!0);const e=Le.landingLocationType,t=Le.templateType,o=(0,u.Wd)(e)+(0,u.gf)(t)+(null!==pe&&void 0!==pe&&pe.isRelatedEvent?"R":"E")+"_"+(null===pe||void 0===pe?void 0:pe.event_id);(0,d.Ch)(pe.event_id,pe.products,"homepage","carousel",o,null===pe||void 0===pe?void 0:pe.location,null===De||void 0===De?void 0:De.userType),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Le,event:pe,productList:[_e],ctaList:pe.cta}),"init"==Ue.state?Qe(o,!1):"awaitingVariantSelection"==Ue.state&&Ge([null===dt||void 0===dt?void 0:dt.option1,null,null],o),setTimeout(()=>{ue(!1),ot(!1),ht(!1)},3e3)},style:{flex:1,padding:ie?"6px":"9px",backgroundColor:me,color:"white",border:"1px solid #ddd",borderRadius:ie?"5px":"6px",fontSize:ie?"10px":"12px",fontFamily:Se,fontWeight:"600",cursor:"pointer"},children:"Done"})]})]})})]})};const lt=(0,b.A)({key:"whatmore-css-hv"});function st(e){const[t,o,l]=(0,P.A)(),s=(0,n.Xd)("whatmoreShopId"),d=(0,n.Xd)("whatmoreLandingLocationType"),p=e.events,c=e.onClick,{whatmoreWidgetSourceDetails:h}=(0,i.useContext)(r.AppContext),u=Math.ceil(l),m=2*u,[v,y]=(0,i.useState)(m),[g,f]=(0,i.useState)(2*u),w=0===(0,a.If9)(s)?24:(0,a.If9)(s),[j,b]=(0,i.useState)({touchX:0,touchY:0}),C=()=>(0,F.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,F.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),S=()=>(0,F.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,F.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),I=e=>{if("next"===e){const e=2;f(e=>Math.min(e+Math.floor(l),p.length+u+1)),y(t=>Math.min(t+e,p.length+u+1))}else f(e=>Math.max(e-Math.floor(l),m));(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:h})};return(0,F.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==s&&"product"==d?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:e=>{b({touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchEnd:e=>{var t,o,i,n;const r=(null===(t=e.changedTouches)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.clientX)-j.touchX,l=(null===(i=e.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-j.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&I(r>0?"prev":"next")},children:[(0,a.JSQ)(s)&&(0,F.jsxs)(F.Fragment,{children:[g<=p.length+u&&(0,F.jsx)("div",{onClick:()=>I("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,F.jsx)(C,{})}),g>2*u&&(0,F.jsx)("div",{onClick:()=>I("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,F.jsx)(S,{})})]}),(0,F.jsx)("div",{style:{display:"flex",gap:w,transform:`translateX(-${(g-m)*(o+w)}px)`,transition:"transform 0.4s ease-in-out"},children:p.map((e,t)=>{if(t<v){const o=Math.max(0,g-m),i=Math.min(o+u+1,v-1),n=t>=o&&t<=i;return(0,F.jsx)("div",{children:(0,F.jsx)(rt,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>c(e)})},`whatmore-carousel-tile-${t}`)}return(0,F.jsx)(T,{})})})]})}function at(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[h,u]=(0,i.useState)("next"),m=e.onClick,v=e.events,{whatmoreWidgetSourceDetails:y}=(0,i.useContext)(r.AppContext),g=Math.min(Math.ceil(l),v.length),[f,w]=(0,i.useState)(0),j=0===(0,a.If9)(c)?24:(0,a.If9)(c),b=()=>(0,F.jsx)("div",{children:(0,F.jsx)("button",{onClick:k,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,F.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),C=()=>(0,F.jsx)("div",{children:(0,F.jsx)("button",{onClick:I,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,F.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,i.useEffect)(()=>{f<=g&&w(e=>e+g)},[g]);const S=()=>{p(-1)},I=()=>{f!==g&&(u("prev"),w(e=>Math.max(Math.ceil(e-l),g)),(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},k=()=>{f>v.length+l||(u("next"),w(e=>Math.floor(e+l)),(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},A=f>v.length?v.length-g+1:f-g,T=f>=v.length?v.length:A+g,M=v.slice(A,T);return(0,F.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${s}px`,paddingRight:`${s}px`},children:[f!==g&&(0,F.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:s+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,F.jsx)(C,{})}),(0,F.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:j+"px",width:o*l*(0,a.fHt)(c)+"px",justifyContent:v.length>g?"flex-start":"center",overflow:"auto"},children:M.map((e,t)=>{const o=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,i=t===d;return(0,F.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===h?"next":"prev"),onMouseEnter:()=>(e=>{const t=_()(()=>p(e),300);return t(),t.cancel})(t),onMouseLeave:S,children:(0,F.jsx)(rt,{isOnFocus:i,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>(e=>{m(e)})(e)})},o)})}),f<v.length&&(0,F.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:s+"px",transform:"translateY(-65%)"},children:(0,F.jsx)(b,{})})]})}function dt(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[h,u]=(0,i.useState)("next"),m=e.onClick,v=e.events,{whatmoreWidgetSourceDetails:y}=(0,i.useContext)(r.AppContext),g=Math.min(Math.ceil(l),v.length),[f,w]=(0,i.useState)(0),j=0===(0,a.If9)(c)?24:(0,a.If9)(c),[b,C]=(0,i.useState)(!1),[S,I]=(0,i.useState)(0),[k,A]=(0,i.useState)(0),T=({disabled:e})=>(0,F.jsx)("button",{onClick:e?void 0:O,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,F.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),M=({disabled:e})=>(0,F.jsx)("button",{onClick:e?void 0:R,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,F.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})});(0,i.useEffect)(()=>{f<=g&&w(e=>e+g)},[g]);const N=()=>{p(-1)},R=()=>{f!==g&&(u("prev"),w(e=>Math.max(Math.ceil(e-l),g)),(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},O=()=>{f>v.length+l||(u("next"),w(e=>Math.floor(e+l)),(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},E=f>v.length?v.length-g+1:f-g,W=f>=v.length?v.length:E+g,z=v.slice(E,W);return(0,F.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:`${t+60}px`,paddingBottom:"50px"},children:[(0,F.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${s}px`,paddingRight:`${s}px`,cursor:b?"grabbing":"grab",userSelect:"none"},onMouseDown:e=>{C(!0),I(e.clientX),A(e.clientY)},onMouseMove:e=>{b&&e.preventDefault()},onMouseUp:e=>{if(!b)return;C(!1);const t=e.clientX-S,o=e.clientY-k;Math.sqrt(t**2+o**2)>50&&Math.abs(t)>Math.abs(o)&&(t>0?R():O())},onMouseLeave:()=>{b&&C(!1)},onTouchStart:e=>{C(!0),I(e.touches[0].clientX),A(e.touches[0].clientY)},onTouchMove:e=>{},onTouchEnd:e=>{if(!b)return;C(!1);const t=e.changedTouches[0].clientX-S,o=e.changedTouches[0].clientY-k;Math.sqrt(t**2+o**2)>50&&Math.abs(t)>Math.abs(o)&&(t>0?R():O())},children:(0,F.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:j+"px",width:o*l*(0,a.fHt)(c)+"px",justifyContent:v.length>g?"flex-start":"center",overflow:"auto"},children:z.map((e,t)=>{const o=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,i=t===d;return(0,F.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===h?"next":"prev"),onMouseEnter:()=>(e=>{const t=_()(()=>p(e),300);return t(),t.cancel})(t),onMouseLeave:N,children:(0,F.jsx)(rt,{isOnFocus:i,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>(e=>{m(e)})(e)})},o)})})}),(0,F.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,F.jsx)(M,{disabled:f===g}),(0,F.jsx)(T,{disabled:f>=v.length})]})]})}function pt(e){const[t,o,l]=(0,P.A)(),s=(0,n.Xd)("whatmoreShopId"),d=(0,n.Xd)("whatmoreLandingLocationType"),p=e.events,c=e.onClick,{whatmoreWidgetSourceDetails:h}=(0,i.useContext)(r.AppContext),u=.6*l,m=Math.ceil(u),v=2*m,[y,g]=(0,i.useState)(v),[f,w]=(0,i.useState)(2*m),j=0===(0,a.If9)(s)?24:(0,a.If9)(s),b=(0,i.useRef)({touchX:0,touchY:0}),C=(0,i.useRef)(!1),S=({disabled:e})=>(0,F.jsx)("button",{onClick:e?void 0:()=>k("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,F.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),I=({disabled:e})=>(0,F.jsx)("button",{onClick:e?void 0:()=>k("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,F.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),k=e=>{if("next"===e){const e=2,t=p.length+1;w(e=>Math.min(e+Math.floor(l),t)),g(t=>Math.min(t+e,p.length))}else w(e=>Math.max(e-Math.floor(l),v));(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:h})};return(0,F.jsx)("div",{style:{width:"100%",overflow:"hidden",paddingBottom:"50px"},children:(0,F.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==s&&"product"==d?"center":"flex-start",paddingLeft:"12px",overflow:"visible",position:"relative",zoom:1.3,paddingBottom:"60px"},onTouchStart:e=>{e.target.closest("button")||(C.current=!1,b.current={touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchMove:e=>{if(0===b.current.touchX&&0===b.current.touchY)return;const t=e.touches[0].clientX-b.current.touchX,o=e.touches[0].clientY-b.current.touchY;Math.sqrt(t**2+o**2)>10&&!C.current&&(C.current=!0)},onTouchEnd:e=>{var t,o,i,n;if(e.target.closest("button"))return;if(!C.current)return void(b.current={touchX:0,touchY:0});const r=(null===(t=e.changedTouches)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.clientX)-b.current.touchX,l=(null===(i=e.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-b.current.touchY;Math.sqrt(r**2+l**2)>50&&Math.abs(r)>Math.abs(l)&&k(r>0?"prev":"next"),b.current={touchX:0,touchY:0},C.current=!1},children:[(0,F.jsx)("div",{style:{display:"flex",gap:j,transform:`translateX(-${(f-v)*(o+j)}px)`,transition:"transform 0.4s ease-in-out"},children:p.map((e,t)=>t<y?(0,F.jsx)("div",{children:(0,F.jsx)(rt,{isOnFocus:t<=f-m-1&&t>=Math.max(0,f-v),playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>c(e)})},`whatmore-carousel-tile-${t}`):(0,F.jsx)(T,{}))}),(0,F.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,F.jsx)(I,{disabled:f<=2*m}),(0,F.jsx)(S,{disabled:f>=p.length+1})]})]})})}var ct=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreSecondaryColor"),[c]=(0,n.QN)("whatmoreTitleFont"),h="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:u}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:m}=((0,n.Xd)("isInDesignMode"),(0,i.useContext)(r.AppContext)),{whatmoreIsCollectionsTemplate:x}=(0,i.useContext)(r.AppContext),v=e.events,y=e.onClick,b=c;function C(e){y(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-f"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:lt,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:u,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||x?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==s?"flex-start":"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",b,"important"),e.style.setProperty("font-size",h+"px"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:x?"W"!==m?m:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===t?"6573064236"===s?(0,F.jsx)(dt,{events:v,onClick:C}):(0,F.jsx)(at,{events:v,onClick:C}):(0,F.jsxs)(F.Fragment,{children:["6573064236"===s?(0,F.jsx)(pt,{events:v,onClick:C}):(0,F.jsx)(st,{events:"45034766485"==s?v.slice(0,5):v,onClick:C}),"45034766485"==s&&(0,F.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,F.jsx)(Oe,{baseFontSize:.5*h,onClick:()=>C(null===v||void 0===v?void 0:v[5])})})]})]})})})})};function ht(e){var t;const[o]=(0,n.QN)("whatmoreShopId"),[i]=(0,n.QN)("whatmoreShowViews"),[r,l,s,d,c]=(0,P.A)(),[h,u,m]=(0,L.A)({triggerOnce:!0}),x=e.event,v=(0,p.At)()?e.isOnFocus:u,y="56411783377"==o,g="56411783377"===o&&Array.isArray(null===x||void 0===x?void 0:x.products)&&!!x.products[0];return(0,F.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,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:["show"===i&&"show"===(0,a.klK)(o)||"56411783377"===o?(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",gap:"8px"},children:["show"===i&&"show"===(0,a.klK)(o)&&(0,F.jsx)(D.A,{event:x,fontSize:.07*l+"px"}),"56411783377"===o&&(0,F.jsx)(J,{width:.15*l,height:.15*l})]})}):null,(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)("p",{children:" "})}),(0,F.jsx)("div",{ref:h,children:v&&(0,a.imx)(o)?(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)(Ae,{event:x})}):(0,F.jsx)("div",{height:"20px"})}),y&&(0,F.jsx)("div",{style:{position:"absolute",top:.045*l,right:.05*l,width:.35*l,height:.15*l,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,F.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"}})}),g&&(0,F.jsxs)("div",{style:{overflow:"visible",background:"white",position:"absolute",left:.05*l+"px",width:.9*l+"px",bottom:.06*l+"px",borderRadius:.07*l,display:"flex",alignItems:"center",justifyContent:"center",padding:`${.015*l}px ${.04*l}px`,boxShadow:"0 2px 12px rgba(23, 18, 18, 0.08)"},children:[(null===(t=x.products[0])||void 0===t?void 0:t.thumbnail_image)&&(0,F.jsx)("img",{src:x.products[0].thumbnail_image,style:{width:.12*l,height:.12*l,borderRadius:"50%",objectFit:"cover",marginRight:.03*l,border:"1.5px solid #E3E3E3",background:"#fff"}}),(0,F.jsx)("span",{style:{fontWeight:500,fontSize:.048*l,color:"#2D2D2D",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x.products[0].title?x.products[0].title:"SHOP AMAZING WITH TRUNATIV"})]})]})})}var ut=function(e){var t,o,r,l,s,d,p,c;const[h,u,m,x,v]=(0,P.A)();var y=(0,i.useContext)(A.h);const g=(0,n.Xd)("whatmoreUITheme"),f=(0,n.Xd)("whatmoreShopId"),w=(0,n.Xd)("whatmorePrimaryFont"),j=(0,n.Xd)("whatmoreSecondaryColor"),b=e.event,C=e.onClick,S=null===(t=e.isOnFocus)||void 0===t||t,I=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,k=null!==(r=e.animateOnFocus&&(0,a.n5O)(f))&&void 0!==r&&r,_=(0,a.VYo)(f);return(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",y.tileTopMargin+"px"),e.style.setProperty("margin-bottom",y.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==f||"19501891"==f?void 0:u,aspectRatio:"8968077397"==f||"19501891"==f?9/16:void 0,height:"8968077397"==f||"19501891"==f?"100%":h,borderRadius:"round"==g?"5px":"0px",boxShadow:"round"==g||"61187850326"==f||"19501891"==f?_:null,borderWidth:(0,a.YcK)(f),borderColor:(0,a.Fwt)(f),overflow:"hidden",cursor:"pointer",position:"relative"},className:k?S?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",...(0,z.i)(`Play video: ${b.title||b.event_id||""}`),onClick:()=>{var e,t,o;if("12326200"==f&&"image"==b.event_type&&(null===(e=b.products)||void 0===e?void 0:e.length)>0&&"oos"!=(null===(t=b.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.product_status)){var i,n;window.location.href=null===(i=b.products)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.product_link}else{if("12326200"==f&&"image"==b.event_type)return;var r,l,s,a,d,p,c,h,u,m,x,v,y,g,w,j;if("10588815418"==f){if(null!==(r=b.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=b.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(p=b.cta)||void 0===p||null===(c=p[1])||void 0===c?void 0:c.cta_title))window.location.href=null===(w=b.cta)||void 0===w||null===(j=w[1])||void 0===j?void 0:j.cta_link;else if(null!==(h=b.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(m=u.cta_link)&&void 0!==m&&m.includes("whatmore")&&""!=(null===(x=b.cta)||void 0===x||null===(v=x[0])||void 0===v?void 0:v.cta_link)&&""==(null===(y=b.cta)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.cta_title)){var S,P;window.location.href=null===(S=b.cta)||void 0===S||null===(P=S[0])||void 0===P?void 0:P.cta_link}}else C(b)}},children:[(0,F.jsx)(M.A,{height:(0,a.u06)(f)+" !important",width:"100%",url:b.thumbnail_image,isPlaying:S||I,event:b}),(0,F.jsx)(W,{shopId:f}),""!==(null===b||void 0===b?void 0:b.title)?(0,F.jsxs)(F.Fragment,{children:[(0,F.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,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,F.jsx)("p",{style:{fontFamily:w,fontSize:.1*u+"px",fontWeight:"600"},children:"12326200"==f?null===b||void 0===b||null===(l=b.title)||void 0===l?void 0:l.slice(7):null===b||void 0===b?void 0:b.title}),"12326200"==f&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*u+"px",fontWeight:"normal"},children:null===b||void 0===b||null===(s=b.title)||void 0===s?void 0:s.slice(0,7)}),(null===(d=b.products)||void 0===d?void 0:d.length)>0&&"oos"!=(null===(p=b.products)||void 0===p||null===(c=p[0])||void 0===c?void 0:c.product_status)&&(0,F.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:j,padding:"8px 28px"},children:(0,F.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*u+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,F.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,F.jsx)(Fe.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(f)&&(0,F.jsxs)("div",{style:{width:u,height:h},children:[(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,F.jsx)(ht,{event:b,unfocusedDisplay:!S,isOnFocus:S})]})]})};const mt=(0,b.A)({key:"whatmore-css-hv"});function xt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),[y,g]=(0,i.useState)(v?h.length:m),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);(0,i.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]);const j="6573064236"===c?.9*p:p,b="6573064236"===c?1.5:2;return(0,F.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:j,height:"fit-content"},children:(0,F.jsx)(C.RC,{slidesPerView:b,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:v,modules:[S.s3,S.Jq,...(0,a.JSQ)(c)?[S.Vx]:[]],keyboard:{enabled:!0},navigation:(0,a.JSQ)(c),children:h.map((e,t)=>t<=y&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,F.jsx)(ut,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function vt(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[h]=(0,n.QN)("whatmoreLandingLocationType"),u=e.onClick,m=e.events,v=(0,a.cbh)(c),[y,g]=(0,i.useState)(v?m.length:l),f=Math.min(l,m.length),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(r.AppContext),j=(0,i.useRef)(!1),b=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(b.current){const e=o*f*(0,a.fHt)(c)+"px";m.length<4?b.current.style.setProperty("width",e,"important"):b.current.style.width=e}},[o,f,c,y,m.length]),(0,i.useEffect)(()=>{y<=l&&g(e=>e+l)},[l]),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px"},className:"whatmore-events-carousel-landscape",children:(0,F.jsx)("div",{ref:b,style:{height:"100%"},children:(0,F.jsx)(C.RC,{slidesPerView:"product"===h&&"87174349065"===c?2:f,watchSlidesProgress:!0,modules:[S.s3,S.Jq,S.Vx],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:parseInt(f),onTouchStart:()=>{j.current=!0},onSlideChange:e=>{j.current&&(j.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w})),e.realIndex>e.previousIndex&&g(e=>e+l)},spaceBetween:0,loop:v&&m.length>4,style:{height:"100%"},children:m.map((e,t)=>{const o=_()(()=>p(t),300);return t<=y&&(0,F.jsx)(C.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,F.jsx)(ut,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(f/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var yt=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:u}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,y=p;function b(e){v(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-g"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:mt,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y),e.style.setProperty("font-size",c+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:m?"W"!==u?u:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===t?(0,F.jsx)(vt,{events:x,onClick:b}):(0,F.jsx)(xt,{events:x,onClick:b})]})})})})},gt=o(3080),ft=o(8295),wt=o(4895),jt=o(5375);var bt=function(e){const[t]=(0,n.QN)("whatmoreShopId"),o=e.isMuted,i=e.setIsMuted,[r,l,s,d]=(0,gt.A)(),p=.1*d;function c(){i(!o)}return!0===(0,a.GZ2)(t)?(0,F.jsx)(F.Fragment,{}):(0,F.jsx)(be.o,{children:(0,F.jsx)(de.jl,{cursor:"pointer",children:o?(0,F.jsx)(jt.A,{sx:{color:"white",fontSize:p,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{c()}}):(0,F.jsx)(wt.A,{sx:{color:"white",fontSize:p,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{c()}})})})};o(6493);var Ct=function(e){var t,o,l,s,d,p,c,h,u,m,x,v,y,g,f,w,j,b,C,S,I,k,_,A,[T,M,N,R,O]=(0,P.A)();M*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,T*=null!==(o=e.scaleFactor)&&void 0!==o?o:1;const E=(0,n.Xd)("whatmoreUITheme"),L=(0,n.Xd)("whatmoreShopId"),B=(0,n.Xd)("whatmorePrimaryFont"),V=(0,n.Xd)("whatmoreSecondaryColor"),H=(0,n.Xd)("websiteLanguage"),[Q]=(0,n.QN)("whatmoreShowViews"),G=e.onClick,Y=null===(l=e.isOnFocus)||void 0===l||l,K=null!==(s=e.playOnUnfocus)&&void 0!==s&&s,J=null===(d=e.is3DTemplateMuted)||void 0===d||d,Z=e.setIs3DTemplateMuted,ee="portrait"===O[Pe.dl],te=(ee?1.076*M*(0,a.HWj)(L):M*(0,a.N_4)(L))+"px",oe=(ee?1.076*M*(0,a.HWj)(L):M*(0,a.N_4)(L))+"px",ie=(ee?.965*M*(0,a.HWj)(L):.859*M*(0,a.N_4)(L))+"px",ne=(0,a.VYo)(L),{whatmoreIsPreviewMode:re}=(0,i.useContext)(r.AppContext),le=.25*M,se=le+"px",ae=1.25*le+"px",[de,pe]=(0,i.useState)(e.event),[ce,he]=(0,i.useState)(),ue=null!==(p=null===(c=de.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==p?p:null===(h=de.products)||void 0===h?void 0:h[0],me=Math.round(+(null===ue||void 0===ue?void 0:ue.price)),xe=Math.round(+(null===ue||void 0===ue?void 0:ue.compare_price)),ve=xe&&0!=xe&&xe>me?Math.round((xe-me)/xe*100):NaN,[ye,ge]=(0,i.useState)(ve),[fe,we]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(0,a.w4b)(L)?(0,U.fu)(de,(0,a.NCy)(L),L).then(e=>{var t,o,i;pe(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;ge(l),we(!0)}):(async()=>{const e=await(0,$.M)(ue,(0,a.NCy)(L),L);he(e),we(!0)})()},[]),(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","24px"),e.style.setProperty("margin-bottom","12px"))},style:{width:M,margin:"0 auto",cursor:"pointer",filter:Y||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},...(0,z.i)(`Play video: ${de.title||de.event_id||""}`),onClick:()=>{G(de)},children:[(0,F.jsxs)("div",{style:{position:"relative",width:M,height:T,borderRadius:"round"==E?"5px":"0px",boxShadow:"round"==E?ne:null,borderWidth:(0,a.YcK)(L),borderColor:(0,a.Fwt)(L),overflow:"hidden"},children:[(0,F.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:Y||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,F.jsx)(bt,{isMuted:J,setIsMuted:Z})}),"show"===Q&&"show"===(0,a.klK)(L)&&(0,F.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))",pointerEvents:"none",zIndex:3},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:de,fontSize:.07*M+"px"})})})})}),(0,F.jsx)(ft.A,{height:"100%",width:"100%",url:null!==(u=null===de||void 0===de?void 0:de.event_hls_url)&&void 0!==u?u:null===de||void 0===de?void 0:de.thumbnail_image,isPlaying:Y||K,event:de,isVideoMuted:J}),(0,F.jsx)(W,{shopId:L})]}),(0,F.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(re?(0,a.Tr1)(L):(0,a.UmS)(L))&&(null===de||void 0===de||null===(m=de.products)||void 0===m?void 0:m.length)>0&&(0,F.jsx)("div",{style:{maxHeight:ae,maxWidth:se,minWidth:null!==ue&&void 0!==ue&&ue.thumbnail_image?se:"0",overflow:"hidden"},children:(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(L),"important")},style:{height:"100%"},src:(null===ue||void 0===ue||null===(x=ue.thumbnail_image)||void 0===x||null===(v=x.split("?"))||void 0===v?void 0:v[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,F.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(L),"important"),e.style.setProperty("font-size",te,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",B,"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,X.v)(null===ue||void 0===ue?void 0:ue.title)}),fe&&(0,a.Nzx)(L)&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(L)?"row":"row-reverse",justifyContent:(0,a.vw2)(L)?"flex-start":"flex-end"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(L),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",B,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(L)?"normal":"bold"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(y=null===ce||void 0===ce||null===(g=ce.variants)||void 0===g||null===(f=g[0])||void 0===f?void 0:f.price)&&void 0!==y?y:null===ce||void 0===ce?void 0:ce.price)/100:null===ue||void 0===ue?void 0:ue.price)," ",L,null===(w=de.products[0])||void 0===w?void 0:w.currency)}),!isNaN(xe)&&xe>me&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(L),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",B,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==me?"line-through":"none"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(j=null===ce||void 0===ce||null===(b=ce.variants)||void 0===b||null===(C=b[0])||void 0===C?void 0:C.compare_at_price)&&void 0!==j?j:null===ce||void 0===ce?void 0:ce.compare_at_price)/100:null===ue||void 0===ue?void 0:ue.compare_price)," ",L,null===(S=de.products[0])||void 0===S?void 0:S.currency)}),"56352899156"==L&&(0,a.Nzx)(L)&&fe&&!isNaN(ye)&&0!=ye&&(0,F.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(L)?"#343434"==V?(0,a.ub$)(L):V:(0,a.ub$)(L),alignItems:"center",borderRadius:(0,a.v8m)(L)+"px",width:"fit-content",padding:"3px 4px"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(L),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",B,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${ye}% ${null!==(I=null===Xe.m||void 0===Xe.m||null===(k=Xe.m[H])||void 0===k?void 0:k.off)&&void 0!==I?I:"off"}`})})]}),(Y||e.isActive)&&(0,a.Nzx)(L)&&fe&&!isNaN(ye)&&0!=ye&&(0,F.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(L)?"#343434"==V?(0,a.ub$)(L):V:(0,a.ub$)(L),alignItems:"center",borderRadius:(0,a.v8m)(L)+"px",width:"fit-content",padding:(0,a.Cf)(L)?"3px 6px":"0px"},children:(0,a.Cf)(L)?(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(L),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",B,"important"))},children:`${ye}% ${null!==(_=null===Xe.m||void 0===Xe.m||null===(A=Xe.m[H])||void 0===A?void 0:A.off)&&void 0!==_?_:"off"}`}):(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(L),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",(0,a.ogW)(L),"important"))},children:(0,a.rsz)(L)})})]})]})]})};const St=(0,b.A)({key:"whatmore-css-hv"});function Pt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),[y,g]=(0,i.useState)(v?h.length:m),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,F.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,F.jsx)(C.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:v,children:h.map((e,t)=>t<=y&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,F.jsx)(Je,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function It(e){var[t,o,n,r]=(0,gt.A)();const l=e.onClick,s=e.index,a=e.events,[d,p]=(0,i.useState)(6),c=e.is3DTemplateMuted,h=e.setIs3DTemplateMuted,[u,m,x]=(0,I.A)();return(0,F.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,F.jsx)(C.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=>{const t=e.realIndex>e.previousIndex,o=e.realIndex<e.previousIndex&&e.previousIndex>=d;(t||o)&&p(e=>e+1)},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[S.s3,S.Jq,S.t9,S.Vx,S.FJ],keyboard:{enabled:!0},watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*r),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map((e,t)=>t<=d&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>n?(0,F.jsx)(Ct,{isOnFocus:t&&s<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{l(e)},is3DTemplateMuted:c,setIs3DTemplateMuted:h}):(0,F.jsx)(T,{})},"whatmore-event-tile-portr-"+e.index))})})})}var kt=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:u}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,y=p,[b,C]=(0,n.QN)("is3DTemplateMuted");function S(e){v(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:St,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y,"important"),e.style.setProperty("font-size",c+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:m?"W"!==u?u:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===t?(0,F.jsx)(It,{index:e.index,events:x,onClick:S,is3DTemplateMuted:b,setIs3DTemplateMuted:C}):(0,F.jsx)(Pt,{index:e.index,events:x,onClick:S})]})})})})},_t=o(8436);var At=function(e){var t,o,l,s,d,p,c,h,u,m,v,y,g,f,w,j;const[b,C,S,I,k]=(0,P.A)(),_=1*C,A=1*b,T=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),N=(0,n.Xd)("whatmorePrimaryFont"),R=(0,n.Xd)("whatmoreSecondaryColor"),[O]=((0,n.Xd)("websiteLanguage"),(0,n.QN)("whatmoreShowViews")),E=e.onClick,L=null===(t=e.isOnFocus)||void 0===t||t,X=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,B=null!==(l=e.animateOnFocus&&(0,a.n5O)(T))&&void 0!==l&&l,V="portrait"===k[Pe.dl],H=B&&!V,Q=(V?1.15*C*(0,a.HWj)(T):1.05*C*(0,a.N_4)(T))+"px",G=V?1.2*C*(0,a.HWj)(T):1.1*C*(0,a.N_4)(T),Y=G+"px",K=V?.8*C*(0,a.HWj)(T):.7*C*(0,a.N_4)(T),{whatmoreIsPreviewMode:J,whatmoreWidgetSourceDetails:Z}=(0,i.useContext)(r.AppContext),[ee,te]=(0,i.useState)(e.event),[ie,ne]=(0,i.useState)(),[re,le]=(0,i.useState)(!1),[se,ae]=(0,i.useState)(!1),[de,pe]=(0,i.useState)(!1),ce=null!==(s=null===(d=ee.products)||void 0===d?void 0:d.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(p=ee.products)||void 0===p?void 0:p[0],he=Math.round(+(null===ce||void 0===ce?void 0:ce.price)),ue=Math.round(+(null===ce||void 0===ce?void 0:ce.compare_price)),me=ue&&0!=ue&&ue>he?Math.round((ue-he)/ue*100):NaN,[xe,ve]=(0,i.useState)(me),[ye,ge]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(0,a.w4b)(T)?(0,U.fu)(ee,(0,a.NCy)(T),T).then(e=>{var t,o,i;te(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;ve(l),ge(!0)}):(async()=>{const e=await(0,$.M)(ce,(0,a.NCy)(T),T);ne(e),ge(!0)})()},[]),(0,F.jsxs)("div",{className:B&&!V?L?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:_,margin:"0",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",background:"transparent",position:"relative",transition:H?"none":"transform 0.2s ease-out",transform:H?void 0:re?"translateY(-2px)":"translateY(0)"},...(0,z.i)(`Play video: ${ee.title||ee.event_id||""}`),onClick:()=>{E(ee)},onMouseEnter:()=>le(!0),onMouseLeave:()=>le(!1),children:[(0,F.jsxs)("div",{style:{width:"100%",height:A,borderRadius:"0px",overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",background:"#fafafa",transition:"box-shadow 0.2s ease-out",boxShadow:re?"0 2px 8px rgba(0, 0, 0, 0.08)":"none"},children:[(0,F.jsx)(M.A,{height:(0,a.u06)(T)+" !important",width:"100%",url:ee.thumbnail_image,isPlaying:L||X,eagerLoad:!0,event:ee,style:{objectFit:"cover",filter:"none",transition:"none"}}),(0,F.jsx)(W,{shopId:T}),"video"===ee.event_type&&"26077888559"===T&&!V&&(0,F.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:5,display:"flex",alignItems:"center",justifyContent:"center",opacity:L?0:1,transition:"opacity 0.3s ease-out"},children:(0,F.jsx)(_t.A,{size:.55*C,showBackground:!1})}),"show"===O&&"show"===(0,a.klK)(T)&&(0,F.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))",pointerEvents:"none",zIndex:3},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:ee,fontSize:.07*C+"px"})})})})}),function(){const e=Array.isArray(null===ee||void 0===ee?void 0:ee.products)?ee.products.filter(e=>"active"===e.product_status):[];if("87857266990"!==T&&"75310563627"!==T||!(e.length>0))return null;const t=V?32:48,o=e.slice(0,3);if(de){const t=V?40:46;return(0,F.jsxs)("div",{className:"whatmore-products-overlay-expanded",onClick:e=>e.stopPropagation(),style:{position:"absolute",bottom:V?"12px":"20px",left:"50%",transform:"translateX(-50%)",width:"88%",maxWidth:"280px",maxHeight:"74%",background:"rgba(255,255,255,0.72)",backdropFilter:"blur(12px)",borderRadius:"18px",boxShadow:"0 6px 24px rgba(0,0,0,0.18)",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:12},children:[(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",overflowY:"auto",WebkitOverflowScrolling:"touch",padding:V?"4px 0":"6px 0"},children:e.map((e,o)=>(0,F.jsxs)("div",{onClick:t=>{t.stopPropagation(),(e=>{(0,oe.kz)({userInteractionType:x.O.VIDEO_TILE_PRODUCT_THUMBNAIL_CLICKED,widgetSourceDetails:Z,event:ee,productList:[e],ctaList:null===ee||void 0===ee?void 0:ee.cta}),null!==e&&void 0!==e&&e.product_link&&(window.location.href=e.product_link)})(e)},style:{display:"flex",alignItems:"center",gap:V?"10px":"12px",padding:V?"5px 14px":"6px 16px",cursor:"pointer",borderTop:0===o?"none":"1px solid rgba(0,0,0,0.1)"},children:[(0,F.jsx)("div",{style:{width:t,height:t,borderRadius:"50%",border:"2px solid #ffffff",boxShadow:"0 1px 4px rgba(0,0,0,0.12)",overflow:"hidden",flexShrink:0,backgroundColor:"#f0f0f0"},children:(0,F.jsx)("img",{src:e.thumbnail_image,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,F.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"3px"},children:[(0,F.jsx)("span",{style:{color:"#333333",fontFamily:N,fontSize:V?"12px":"13px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),(0,F.jsx)("span",{style:{color:"#000000",fontFamily:N,fontSize:V?"12px":"13px",fontWeight:700},children:(0,U.Sb)(parseFloat(null===e||void 0===e?void 0:e.price)," ",T,null===e||void 0===e?void 0:e.currency)})]})]},o))}),(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),pe(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center",padding:V?"6px":"7px",cursor:"pointer"},children:(0,F.jsx)("svg",{width:V?"16":"18",height:V?"16":"18",viewBox:"0 0 24 24",fill:"none",stroke:"#555555",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,F.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})}return(0,F.jsxs)("div",{className:"whatmore-products-overlay",style:{position:"absolute",bottom:V?"12px":"20px",left:"50%",transform:"translateX(-50%)",background:"rgba(255,255,255,0.55)",backdropFilter:"blur(4px)",borderRadius:"9999px",padding:V?"4px 8px":"5px 10px",display:"flex",alignItems:"center",gap:V?"2px":"4px",transition:"transform 0.2s ease",zIndex:11},children:[(0,F.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o.map((e,i)=>(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),pe(!0)},style:{width:t,height:t,borderRadius:"50%",border:"2px solid white",overflow:"hidden",flexShrink:0,backgroundColor:"#f0f0f0",cursor:"pointer",marginLeft:0===i?0:`-${Math.round(.45*t)}px`,position:"relative",zIndex:o.length-i},children:(0,F.jsx)("img",{src:e.thumbnail_image,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}})},i))}),(0,F.jsx)("div",{onClick:e=>{e.stopPropagation(),pe(!0)},style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer",paddingRight:V?"2px":"4px"},children:(0,F.jsx)("svg",{width:V?"12":"15",height:V?"12":"15",viewBox:"0 0 24 24",fill:"none",stroke:"#333333",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,F.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]})}(),ce&&(0,a.WDJ)(T)&&(re||V)&&(0,F.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:re||V?"translateY(0)":"translateY(100%)",opacity:re||V?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,F.jsx)("span",{style:{color:"white",fontSize:Q,fontFamily:N,fontWeight:"400",textAlign:"center",letterSpacing:"0.5px",textTransform:"uppercase"},children:"ADD TO CART"})})]}),ce&&(0,a.LPW)(T)&&(0,F.jsxs)("div",{style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",padding:"12px 0 8px 0",width:"100%",background:"transparent"},children:[(null===ce||void 0===ce?void 0:ce.product_type)&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size","9px"),e.style.setProperty("font-family",N),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===ce||void 0===ce?void 0:ce.product_type}),(0,F.jsxs)("div",{style:{display:"flex",gap:"8px",alignItems:"flex-start",width:"100%"},children:[(null===ce||void 0===ce?void 0:ce.thumbnail_image)&&(0,a.UmS)(T)&&(0,F.jsx)("div",{style:{width:"48px",height:"48px",flexShrink:0,borderRadius:"0px",overflow:"hidden",background:"#f8f8f8"},children:(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit","cover")},src:(null===ce||void 0===ce||null===(c=ce.thumbnail_image)||void 0===c||null===(h=c.split("?"))||void 0===h?void 0:h[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>ae(!0),style:{width:"100%",height:"100%",opacity:se?1:0}})}),(0,F.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[(null===ce||void 0===ce?void 0:ce.title)&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",Q),e.style.setProperty("line-height","1.2"),e.style.setProperty("font-family",N),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===ce||void 0===ce?void 0:ce.title}),ye&&(0,a.Nzx)(T)&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"6px"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",Y),e.style.setProperty("font-family",N),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,U.Sb)(parseFloat((0,q.U)()?(null!==(u=null===ie||void 0===ie||null===(m=ie.variants)||void 0===m||null===(v=m[0])||void 0===v?void 0:v.price)&&void 0!==u?u:null===ie||void 0===ie?void 0:ie.price)/100:null===ce||void 0===ce?void 0:ce.price)," ",T,null===(y=ee.products[0])||void 0===y?void 0:y.currency)}),!isNaN(ue)&&ue>he&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size",.9*G+"px"),e.style.setProperty("font-family",N),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,U.Sb)(parseFloat((0,q.U)()?(null!==(g=null===ie||void 0===ie||null===(f=ie.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.compare_at_price)&&void 0!==g?g:null===ie||void 0===ie?void 0:ie.compare_at_price)/100:null===ce||void 0===ce?void 0:ce.compare_price)," ",T,null===(j=ee.products[0])||void 0===j?void 0:j.currency)}),(0,a.Nzx)(T)&&ye&&!isNaN(xe)&&0!=xe&&(0,a.Cf)(T)&&(0,F.jsx)("div",{style:{display:"inline-flex",background:R,alignItems:"center",justifyContent:"center",borderRadius:"0px",padding:"4px 8px"},children:(0,F.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","#ffffff"),e.style.setProperty("font-size",1.2*K+"px"),e.style.setProperty("font-family",N),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:[xe,"%"]})})]})]})]}),""!=(null===ee||void 0===ee?void 0:ee.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,F.jsx)("div",{className:"wht-video-title",style:{display:"none",marginTop:"8px"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#666666"),e.style.setProperty("font-family",N),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===ee||void 0===ee?void 0:ee.title})})]})]})};const Ft=(0,b.A)({key:"whatmore-css-hv"});function Tt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),{whatmoreWidgetSourceDetails:y}=(0,i.useContext)(r.AppContext),g=(0,i.useRef)(!1);return(0,F.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,F.jsx)("div",{style:{width:p-48,height:"fit-content",position:"relative",zIndex:1},children:(0,F.jsx)(C.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[S.s3,S.Jq,..."87857266990"===c||"75310563627"===c?[S.U1,S.Vx]:[S.U1]],keyboard:{enabled:!0},navigation:"87857266990"===c||"75310563627"===c,spaceBetween:12,touchRatio:1,threshold:5,slidesPerGroup:1,longSwipesRatio:.2,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:400,onTouchStart:()=>{g.current=!0},onSlideChange:e=>{g.current&&(g.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},loop:v,style:{paddingTop:"8px",paddingBottom:"8px"},children:h.map(e=>(0,F.jsx)(C.qr,{children:({isActive:t,isVisible:o})=>(0,F.jsx)("div",{style:{transform:t?"scale(1.02)":"scale(0.98)",transition:"transform 0.3s ease-out, opacity 0.3s ease-out",opacity:t?1:.85,willChange:t?"transform, opacity":"auto"},children:(0,F.jsx)(At,{isOnFocus:t&&o,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})})},"whatmore-event-tile-portrait-"+e.index))})})})}function Mt(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),h=e.onClick,u=e.events,m=(0,a.cbh)(c),[v,y]=(0,i.useState)(m?u.length:l),g=Math.min(l,u.length),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1),j=(0,i.useMemo)(()=>_()(e=>p(e),50),[]);(0,i.useEffect)(()=>()=>j.cancel(),[j]);const b=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(b.current){const e=o*g*(0,a.fHt)(c)+"px";u.length<4?b.current.style.setProperty("width",e,"important"):b.current.style.width=e}},[o,g,c,v,u.length]),(0,i.useEffect)(()=>{v<=l&&y(e=>e+l)},[l]),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px",background:"transparent"},className:"whatmore-events-carousel-landscape premium-carousel-landscape",children:(0,F.jsx)("div",{ref:b,style:{zIndex:1},children:(0,F.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[S.s3,S.Jq,..."87857266990"===c||"75310563627"===c||"75026858234"===c?[S.FJ,S.U1,S.Vx]:[S.FJ,S.U1]],keyboard:{enabled:!0},navigation:"87857266990"===c||"75310563627"===c||"75026858234"===c,freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onTouchStart:()=>{w.current=!0},onSlideChange:e=>{if(w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex){const t=e.realIndex+2*l;y(e=>Math.min(u.length,Math.max(e,t)))}},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:u.map((e,t)=>t<=v&&(0,F.jsx)(C.qr,{onMouseEnter:()=>{j(t)},onMouseLeave:()=>{j.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>{if(r||i||n){const o=t===d;return(0,F.jsx)("div",{style:{height:"100%",transform:o?"translate3d(0, -1px, 0)":"translate3d(0, 0, 0)",transition:"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out",opacity:o?1:.98,willChange:o?"transform, opacity":"auto"},children:(0,F.jsx)(At,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)&&r,animateOnFocus:!0,event:e,onClick:()=>{h(e)}})})}return(0,F.jsx)(T,{})}},"wht-event-tile-landscape-"+e.index))})})})}var Nt=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[a]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),p="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:h}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:u}=(0,i.useContext)(r.AppContext),m=e.events,x=e.onClick,v=d;function y(e){x(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-j"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-j"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Ft,children:(0,F.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,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[e.heading.trim().length>0&&(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginBottom:"portrait"===t?"12px":"16px",position:"relative",zIndex:1},children:(0,F.jsx)("div",{style:{background:"transparent",padding:"8px 24px",position:"relative"},children:(0,F.jsx)("h2",{className:"75310563627"===s?"wht-premium-heading wht-premium-heading-75310563627":"wht-premium-heading",ref:e=>{e&&"75310563627"!==s&&(e.style.setProperty("font-family",v,"important"),e.style.setProperty("font-size",p+"px","important"))},style:{color:"#1a1a1a",textAlign:"center",fontWeight:"300",lineHeight:"1.2",letterSpacing:"0.5px",margin:0,position:"relative",zIndex:1,textTransform:"uppercase",..."75310563627"===s?{fontFamily:"Jost",fontSize:("portrait"===t?30:42)+"px"}:{fontSize:p+"px"}},children:(()=>{const t=u?"W"!==h?h:"":e.heading;if("75310563627"!==s||!t)return t;const o=t.split(" "),i=o.slice(0,2).join(" "),n=o.slice(2).join(" ");return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"wht-premium-heading-strong",style:{fontWeight:700,color:"#221F20"},children:i}),n&&" ",n&&(0,F.jsx)("span",{className:"wht-premium-heading-regular",style:{fontWeight:500,color:"rgba(34, 31, 32, 0.78)"},children:n})]})})()})})}),"landscape"===t?(0,F.jsx)(Mt,{events:m,onClick:y}):(0,F.jsx)(Tt,{events:m,onClick:y})]})})})})};var Rt=function(e){var t,o,r,l,s,d,p,c,h,u,m,x,v,y,g;const f=(0,i.useRef)(null),[w,j,b,C,S]=(0,P.A)(),I=1*j,k=1*w,_=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),A="portrait"===S[Pe.dl],T=A?(0,a.HWj)(_):(0,a.N_4)(_),N=(0,n.Xd)("whatmorePrimaryFont"),R=(0,n.Xd)("whatmoreSecondaryColor"),O=e.onClick,E=null===(t=e.isOnFocus)||void 0===t||t,L=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,[D,X]=(0,i.useState)(e.event),[B,V]=(0,i.useState)(),[H,Q]=(0,i.useState)(!1),G=null!==(r=null===(l=D.products)||void 0===l?void 0:l.find(e=>"active"==e.product_status))&&void 0!==r?r:null===(s=D.products)||void 0===s?void 0:s[0],Y=Math.round(+(null===G||void 0===G?void 0:G.price)),K=Math.round(+(null===G||void 0===G?void 0:G.compare_price)),J=K&&0!=K&&K>Y?Math.round((K-Y)/K*100):NaN,[Z,ee]=(0,i.useState)(J),[te,oe]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(0,a.w4b)(_)?(0,U.fu)(D,(0,a.NCy)(_),_).then(e=>{var t,o,i;X(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;ee(l),oe(!0)}).catch(e=>{console.warn("Whatmore AI Template: Failed to enrich event with price data, using fallback",e),oe(!0)}):(async()=>{try{const e=await(0,$.M)(G,(0,a.NCy)(_),_);V(e),oe(!0)}catch(e){console.warn("Whatmore AI Template: Failed to fetch product details, using fallback data",e),oe(!0)}})()},[]),(0,i.useEffect)(()=>{if(f.current){const e=f.current,t=A?"portrait":"landscape",o=getComputedStyle(e),i=parseFloat(o.getPropertyValue(`--wtmr-name-font-scale-${t}`))||(A?1.25:1.38),n=parseFloat(o.getPropertyValue(`--wtmr-price-font-scale-${t}`))||(A?1.4:1.56),r=parseFloat(o.getPropertyValue(`--wtmr-category-font-scale-${t}`))||(A?1:1.08),l=parseFloat(o.getPropertyValue(`--wtmr-discount-font-scale-${t}`))||(A?1.1:1.2);e.style.setProperty("--wtmr-font-family",N),e.style.setProperty("--wtmr-discount-badge-bg",R),e.style.setProperty("--wtmr-tile-width",j+"px"),e.style.setProperty("--wtmr-font-multiplier",T),e.style.setProperty("--wtmr-name-font-scale",i),e.style.setProperty("--wtmr-price-font-scale",n),e.style.setProperty("--wtmr-category-font-scale",r),e.style.setProperty("--wtmr-discount-font-scale",l)}},[N,R,j,T,A]),(0,F.jsxs)("div",{ref:f,className:"wtmr-carousel-tile",style:{maxWidth:I},...(0,z.i)(`Play video: ${D.title||D.event_id||""}`),onClick:()=>O(D),children:[(0,F.jsxs)("div",{className:"wtmr-carousel-tile__video-container",style:{maxHeight:k},children:[(0,F.jsx)(M.A,{className:"wtmr-carousel-tile__video",height:(0,a.u06)(_)+" !important",width:"100%",url:D.thumbnail_image,isPlaying:E||L,event:D}),(0,F.jsx)(W,{shopId:_}),G&&(0,F.jsx)("div",{className:"wtmr-carousel-tile__add-to-cart-overlay",onClick:e=>e.stopPropagation(),children:(0,F.jsx)("span",{className:"wtmr-carousel-tile__add-to-cart-label",children:"ADD TO CART"})})]}),G&&(0,F.jsxs)("div",{className:"wtmr-carousel-tile__product-details-container",children:[(0,F.jsxs)("div",{className:"wtmr-carousel-tile__product-information-section",children:[(null===G||void 0===G?void 0:G.thumbnail_image)&&(0,F.jsx)("div",{className:"wtmr-carousel-tile__product-image-container",children:(0,F.jsx)("img",{className:"wtmr-carousel-tile__product-image "+(H?"wtmr-carousel-tile__product-image--loaded":""),src:(null===G||void 0===G||null===(d=G.thumbnail_image)||void 0===d||null===(p=d.split("?"))||void 0===p?void 0:p[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>Q(!0)})}),(0,F.jsxs)("div",{className:"wtmr-carousel-tile__product-text-container",children:[(null===G||void 0===G?void 0:G.product_type)&&(0,F.jsx)("p",{className:"wtmr-carousel-tile__product-category-label",children:null===G||void 0===G?void 0:G.product_type}),(null===G||void 0===G?void 0:G.title)&&(0,F.jsx)("p",{className:"wtmr-carousel-tile__product-name",children:null===G||void 0===G?void 0:G.title})]})]}),te&&(0,F.jsxs)("div",{className:"wtmr-carousel-tile__product-pricing-section",children:[(0,F.jsx)("p",{className:"wtmr-carousel-tile__price-selling",children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(c=null===B||void 0===B||null===(h=B.variants)||void 0===h||null===(u=h[0])||void 0===u?void 0:u.price)&&void 0!==c?c:null===B||void 0===B?void 0:B.price)/100:null===G||void 0===G?void 0:G.price)," ",_,null===(m=D.products[0])||void 0===m?void 0:m.currency)}),!isNaN(K)&&K>Y&&(0,F.jsx)("p",{className:"wtmr-carousel-tile__price-original",children:(0,U.Sb)(parseFloat((0,q.U)()?(null!==(x=null===B||void 0===B||null===(v=B.variants)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.compare_at_price)&&void 0!==x?x:null===B||void 0===B?void 0:B.compare_at_price)/100:null===G||void 0===G?void 0:G.compare_price)," ",_,null===(g=D.products[0])||void 0===g?void 0:g.currency)}),!isNaN(Z)&&0!=Z&&(0,F.jsx)("div",{className:"wtmr-carousel-tile__discount-percentage-badge",children:(0,F.jsxs)("p",{className:"wtmr-carousel-tile__discount-percentage-value",children:[Z,"%"]})})]})]})]})};const Ot=(0,b.A)({key:"whatmore-css-ai"});function Et(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),[y,g]=(0,i.useState)(v?h.length:m),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,F.jsx)("div",{className:"wtmr-carousel-container-portrait whatmore-events-carousel-portrait ai-carousel-portrait",style:{width:p-48,zIndex:1},children:(0,F.jsx)(C.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[S.s3,S.Jq,S.U1],keyboard:{enabled:!0},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,onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:v,style:{paddingTop:"8px",paddingBottom:"8px"},children:h.map((e,t)=>t<=y&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,F.jsx)("div",{className:"wm-carousel__slide-wrapper "+(t?"wtmr-carousel__slide-wrapper--active":"wtmr-carousel__slide-wrapper--inactive"),children:(0,F.jsx)(Rt,{isOnFocus:t&&n,playOnUnfocus:!1,event:e,onClick:()=>{u(e)}})}):(0,F.jsx)(T,{})},"whatmore-event-tile-ai-portrait-"+e.index))})})}function Wt(e){const[t,o,l,s]=(0,P.A)(),[d,p,c]=(0,I.A)(),[h,u]=(0,i.useState)(-1),m=(0,n.Xd)("whatmoreShopId"),v=e.onClick,y=e.events,g=(0,a.cbh)(m),[f,w]=(0,i.useState)(g?y.length:l),j=Math.min(l,y.length),{whatmoreWidgetSourceDetails:b}=(0,i.useContext)(r.AppContext),k=(0,i.useRef)(!1),A=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(A.current){const e=o*j*(0,a.fHt)(m)+"px";y.length<4?A.current.style.setProperty("width",e,"important"):A.current.style.width=e}},[o,j,m,f,y.length]),(0,i.useEffect)(()=>{f<=l&&w(e=>e+l)},[l]),(0,F.jsx)("div",{className:"wtmr-carousel-container-landscape whatmore-events-carousel-landscape ai-carousel-landscape",style:{width:c,paddingLeft:s+"px",paddingRight:s+"px"},children:(0,F.jsx)("div",{ref:A,style:{zIndex:1},children:(0,F.jsx)(C.RC,{slidesPerView:j,watchSlidesProgress:!0,modules:[S.s3,S.Jq,S.FJ,S.U1],keyboard:{enabled:!0},freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onTouchStart:()=>{k.current=!0},onSlideChange:e=>{k.current&&(k.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b})),e.realIndex>e.previousIndex&&w(e=>e+l)},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:y.map((e,t)=>{const o=_()(()=>u(t),50);return t<=f&&(0,F.jsx)(C.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),u(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,F.jsx)("div",{style:{height:"100%",transform:t===h?"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===h?"brightness(1.02)":"none",opacity:t===h?1:.98,willChange:"transform, filter, opacity"},children:(0,F.jsx)(Rt,{isOnFocus:t==h,playOnUnfocus:!(0,a.aO7)(m)||t==parseInt(j/2)&&-1==h,event:e,onClick:()=>{v(e)}})}):(0,F.jsx)(T,{})},"wht-event-tile-ai-landscape-"+e.index)})})})})}var zt=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[a]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),p="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:h}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:u}=(0,i.useContext)(r.AppContext),m=e.events,x=e.onClick,v=d,y=(0,i.useRef)(null);function b(e){x(e)}return(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-ai"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-ai"]'))&&e&&(e.style.minHeight="0px")})},[]),(0,i.useEffect)(()=>{if(y.current){const e=y.current;e.style.setProperty("--wtmr-font-family",v),e.setAttribute("data-mode",t)}},[v,t]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Ot,children:(0,F.jsx)("div",{ref:y,className:"wtmr-carousel whatmore-carousel-events ai-carousel-container",style:{height:"100%",background:"transparent",position:"relative"},children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[console.log("test",e.heading.trim())&&(e.heading.trim().length>0||u)&&(0,F.jsx)("div",{className:"wtmr-carousel-header",children:(0,F.jsx)("h2",{className:"wtmr-carousel-title",style:{fontSize:p+"px"},children:u?"W"!==h?h:"":e.heading})}),"landscape"===t?(0,F.jsx)(Wt,{events:m,onClick:b}):(0,F.jsx)(Et,{events:m,onClick:b})]})})})})};const Lt=(0,b.A)({key:"whatmore-css-hv"});function Dt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,I.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),y=(0,a.JSQ)(c),g=(0,a.cQ7)(c),[f,w]=(0,i.useState)(v?h.length:m),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(r.AppContext),b=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{f<=m&&w(e=>e+m)},[m]),(0,F.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,F.jsx)(C.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onTouchStart:()=>{b.current=!0},onSlideChange:e=>{b.current&&(b.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j})),e.realIndex>e.previousIndex&&w(e=>e+m)},loop:v,modules:[S.s3,S.Jq,...y?[S.Vx]:[]],keyboard:{enabled:!0},navigation:y,children:h.map((e,t)=>t<=f&&(0,F.jsx)(C.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,F.jsx)(Je,{isOnFocus:t&&n,playOnUnfocus:g&&(o||i),animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Xt(e){const[t,o,l,s]=(0,P.A)(),[d,p]=(0,i.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),h=e.onClick,u=e.events,m=(0,a.cbh)(c),[v,y]=(0,i.useState)(m?u.length:l),g=Math.min(l,u.length),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext),w=(0,i.useRef)(!1),j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(j.current){const e=o*g*(0,a.fHt)(c)+"px";u.length<4?j.current.style.setProperty("width",e,"important"):j.current.style.width=e}},[o,g,c,v,u.length]),(0,i.useEffect)(()=>{v<=l&&y(e=>e+l)},[l]),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"72471412977"==c?"flex-start":"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px"},className:"whatmore-events-carousel-landscape",children:(0,F.jsx)("div",{ref:j,style:{height:"100%"},children:(0,F.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[S.s3,S.Jq,S.Vx],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:"91705082162"==c?1:parseInt(g),onTouchStart:()=>{w.current=!0},onSlideChange:e=>{w.current&&(w.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f})),e.realIndex>e.previousIndex&&y(e=>e+l)},spaceBetween:0,loop:m&&u.length>4,style:{height:"100%"},children:u.map((e,t)=>{const o=_()(()=>p(t),300);return t<=v&&(0,F.jsx)(C.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,F.jsx)(Je,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,F.jsx)(T,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var Bt=function(e){const[t,o,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,i.useContext)(r.AppContext),{whatmoreCollectionHeading:u}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,y=p;function b(e){v(e)}return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Lt,children:(0,F.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y,"important"),e.style.setProperty("font-size",c+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:m?"W"!==u?u:"":e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===t?(0,F.jsx)(Xt,{events:x,onClick:b}):(0,F.jsx)(Dt,{events:x,onClick:b})]})})})})};function Vt(e){var t;const[o,i,n]=(0,L.A)({triggerOnce:!1}),r=null!==(t=e.defaultHeight)&&void 0!==t?t:"fit-content";return(0,F.jsx)(pe.B,{ref:o,direction:"row",minHeight:r,height:"fit-content",width:"100%",justifyContent:"center",alignItems:"flex-start",children:i?e.data.map((t,o)=>(0,F.jsx)("div",{children:e.renderElement({eventData:t})},"key"+o)):(0,F.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function Ut(e){var t;const[o,i,n]=(0,P.A)(),r=null!==(t=e.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(n,e.dataList.length)),l=function(e,t){var o=[];const i=t;for(let n=0;n<e.length;n+=i){const t=e.slice(n,n+i);o.push(t)}return o}(e.dataList,r);return(0,F.jsx)(pe.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*o,children:l.map((t,n)=>(0,F.jsx)(Vt,{renderElement:e.renderElement,data:t,defaultHeight:o,defaultWidth:i},"key-"+n))})}var Ht=function(e){var t,o,r,l,[s,d,p,c,h]=(0,P.A)();const u="portrait"===h[Pe.dl],[m,x]=(0,i.useState)(0),[v,y]=(0,i.useState)(e.event),[g]=(0,n.QN)("whatmoreShopId"),f=(0,n.QN)("whatmoreUITheme"),[w]=(0,n.QN)("whatmorePrimaryFont"),[j]=(0,n.QN)("whatmoreSecondaryColorShade900"),b=v.products.length,[C,S]=(0,i.useState)(),[I,k]=(0,i.useState)(!1);if(0==b)return(0,F.jsx)(F.Fragment,{});(0,i.useEffect)(()=>{const e=setInterval(()=>{x(e=>(e+1)%b)},3e3);return()=>{clearInterval(e)}},[]),(0,i.useEffect)(()=>{(0,a.w4b)(g)?(0,U.fu)(v,(0,a.NCy)(g),g).then(e=>{y(e),k(!0)}):(async()=>{var e;const t=await(0,$.M)(null===v||void 0===v||null===(e=v.products)||void 0===e?void 0:e[0],(0,a.NCy)(g),g);S(t),k(!0)})()},[]);const _=(u?1.23*d*(0,a.HWj)(g):1.4*d*(0,a.N_4)(g))+"px",A=(u?1.15*d*(0,a.HWj)(g):1.31*d*(0,a.N_4)(g))+"px",T=(+v.products[m].price).toFixed(),M=(+v.products[m].compare_price).toFixed(),N=.25*d,R=(0,a.zAb)(g),O="61406249191"===g&&(0,a.m5c)(g)||"black";return(0,F.jsxs)("div",{style:{background:"9238315068"===g?"transparent":(0,a.ivR)(g),display:"flex",flexDirection:R?"row":"column",padding:"10px 12px",gap:R?"8px":"6px",borderRadius:"round"==f?"0 0 12px 12px":"0",alignItems:R?"center":"stretch"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:R?"1":"none"},children:[(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",O,"important"),e.style.setProperty("font-size",_),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",w,"important"),e.style.setProperty("-webkit-line-clamp",1),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,X.v)(v.products[m].title)}),(0,F.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[I&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",O,"important"),e.style.setProperty("font-size",A),e.style.setProperty("font-family",w,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null===C||void 0===C?void 0:C.price)/100:null===v||void 0===v||null===(t=v.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price)," ",g,v.products[m].currency)}),!isNaN(M)&&M>T&&I&&(0,F.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#808191","important"),e.style.setProperty("font-size",A),e.style.setProperty("font-family",w,"important"),e.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,U.Sb)(parseFloat((0,q.U)()?(null===C||void 0===C?void 0:C.compare_at_price)/100:null===v||void 0===v||null===(r=v.products)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.compare_price)," ",g,v.products[m].currency)})]})]}),R&&(0,F.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(g),"important")},src:(0,H.b)(v.products[m].thumbnail_image,"&width=400&height=400"),style:{width:N,height:N,borderRadius:"round"==f?"5px":"0px",backgroundColor:j,flexShrink:0},alt:"product img"})]})};function $t(e){const[t,o]=(0,P.A)(),[i]=(0,n.QN)("whatmoreShowViews"),r=e.event;return(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,F.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,F.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,F.jsx)(D.A,{event:r,fontSize:.07*o+"px"})})}):(0,F.jsx)(F.Fragment,{})})})})})}var qt=function(e){var t,o,l,s,c,h,m=(0,i.useContext)(A.h);const v=(0,n.Xd)("whatmoreUITheme"),y=(0,n.Xd)("whatmoreSecondaryColor"),g=(0,n.Xd)("whatmoreShopId"),[f]=(0,n.QN)("whatmorePrimaryFont");var[w,j,b,C,S]=(0,P.A)();const I="portrait"===S[Pe.dl],k=e.event,_=e.onClick,T=null===(t=e.isOnFocus)||void 0===t||t,N=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,R=null!==(l=e.animateOnFocus&&(0,a.n5O)(g))&&void 0!==l&&l,[O,E,D]=(0,L.A)({triggerOnce:!0}),[X,B]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:V,whatmoreUserInfo:U}=(0,i.useContext)(r.AppContext),H=null!==(s=null===(c=k.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(h=k.products)||void 0===h?void 0:h[0],$=H&&Object.keys(H).length>0,[q,Q,G,K,J,Z]=(0,Ie.A)(0,H,k),ee=.07*j+"px",te=$&&(0,a.Kr7)(g),ie=(0,a.ZzM)(g),ne=ie?"BUY NOW":"ADD TO CART",re=e=>{if(e.stopPropagation(),!$)return;const t=V.landingLocationType,o=V.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==k&&void 0!==k&&k.isRelatedEvent?"R":"E")+"_"+(null===k||void 0===k?void 0:k.event_id);if((0,d.Ch)(k.event_id,k.products,"homepage","carousel",i,null===k||void 0===k?void 0:k.location,null===U||void 0===U?void 0:U.userType),ie&&H){const e=H.product_link;if(e)return void window.open(e,"_blank")}"init"==q.state?(J(i,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:V,event:k,productList:[H],ctaList:k.cta})):"awaitingVariantSelection"==q.state&&Z(null,i)};return(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,F.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",m.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom","9238315068"===g?"0px":m.tileBottomMMargin+"px","important"))},style:{width:j,height:w,borderRadius:"round"==v?"12px":"0px",borderWidth:"9238315068"===g?0:(0,a.MRv)(g),borderColor:"9238315068"===g?"transparent":"white"==(0,a.Fwt)(g)?y:(0,a.Fwt)(g),overflow:"hidden",cursor:"pointer",position:"relative"},className:R?T?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",...(0,z.i)(`Play video: ${k.title||k.event_id||""}`),onClick:()=>{_(k)},onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),children:[(0,F.jsx)(M.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:T||N||(0,p.At)(),event:k}),(0,F.jsx)(W,{shopId:g}),"9238315068"===g&&$&&(X||I)&&(0,F.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:X||I?"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:X||I?"translateY(0)":"translateY(100%)",opacity:X||I?1:0,zIndex:10},onClick:re,onMouseEnter:e=>{e.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:e=>{e.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,F.jsx)("span",{style:{color:"white",fontSize:ee,fontFamily:f,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:ne})}),(0,F.jsxs)("div",{style:{width:j,height:w},ref:O,children:[(0,F.jsx)($t,{event:k,isOnFocus:T}),"9238315068"!==g&&(0,F.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)("p",{children:" "})}),(0,F.jsx)("div",{style:{width:"100%"},children:E&&(0,a.imx)(g)?(0,F.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===g?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===g?(0,F.jsx)(Y,{event:k}):(0,F.jsx)(Ht,{event:k})}):(0,F.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===g&&E&&(0,a.imx)(g)&&(0,F.jsx)("div",{style:{width:j,marginBottom:m.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,F.jsx)(Ht,{event:k})}),te&&(0,F.jsx)("div",{style:{width:j,padding:"15px 0"},children:(0,F.jsx)("button",{style:{backgroundColor:y,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:ee,fontFamily:f,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:re,onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:ne})})]})};const Qt=(0,b.A)({key:"whatmore-css-hv"});var Gt=function(e){var t;const[o,l,s]=(0,I.A)(),[d,p,c]=(0,P.A)(),[u]=(0,n.QN)("whatmoreShopId"),[m]=(0,n.QN)("whatmorePrimaryColor"),[x]=(0,n.QN)("whatmoreTitleFont"),v="portrait"==o?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,i.useContext)(r.AppContext),w=e.events,b=e.onClick,C=null!==(t=(0,a.sa6)(u))&&void 0!==t?t:x;function S(e){b(e)}const k=parseInt(Math.floor(c));return delete f.Ay.styles.global,(0,F.jsx)(j.C,{value:Qt,children:(0,F.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,F.jsx)(be.o,{paddingBottom:"28px",children:(0,F.jsx)(ce.E,{bgColor:m,bgClip:"text",fontSize:v,sx:{fontFamily:C+" !important"},align:"center",children:e.heading})}):(0,F.jsx)(F.Fragment,{}),"landscape"===o?(0,F.jsx)(Ut,{renderElement:e=>{const t=e.eventData;return(0,F.jsx)("div",{style:{margin:"10px"},children:(0,h.i)(t)||(0,h.I)(t)?(0,F.jsx)(qt,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{S(t)}}):(0,F.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{S(t)}})})},dataList:w,elementsPerRow:k}):(0,F.jsx)(Ut,{renderElement:e=>{const t=e.eventData;return(0,F.jsx)("div",{style:{margin:"10px"},children:(0,F.jsx)(qt,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{S(t)}})})},dataList:w,elementsPerRow:k})]})})})})},Yt=o(3278);var Kt=function(e){var t,o,r;const[l,s,d,p,c]=(0,P.A)(),h=(0,n.Xd)("whatmoreSecondaryColor"),u=(0,n.Xd)("whatmorePrimaryFont"),m=(0,n.Xd)("whatmoreShopId"),x=(0,n.Xd)("whatmoreVideoTileSize"),v=(0,n.Xd)("whatmoreVideoTileSizePortrait"),y="portrait"===e.mode?v:x,[g,f]=(0,i.useState)(!1),w=(0,a.ivI)(m),j=e.event,b=e.onClick,C=e.removeBorders,S=s*y*.01,I=(0,a.esc)(m),k=null!==(t=(0,a.zC7)(m))&&void 0!==t?t:"circle",_="circle"===k?"50%":"6%",A=S*I,T="rectangle"===k?1.5*A:A;let N=null!==(o=(0,a.qAx)(m))&&void 0!==o?o:[h,w,h,w,h];return Array.isArray(N)||(N=Array(5).fill(N)),(0,F.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:C?"2px":(0,a.FZM)(m)+"px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},onClick:()=>{f(!0),b(j)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,F.jsx)("div",{className:"whatmore-story-tile-border-wrapper",style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:_,overflow:"hidden",boxShadow:C?"":"0px 1px 1px 0px "+N[0]+"50, 0px -1px 1px 0px "+N[1]+"50, 1px 0px 1px 0px "+N[2]+"50, -1px 0px 1px 0px "+N[3]+"80, 1px -1px 1px 0px "+N[4]+"80, -1px 1px 1px 0px "+N[0]+"DA, 1px 1px 1px 0px "+N[1]+"DA, -1px -1px 1px 0px "+N[2]+"DA"},children:(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"whatmore-story-tile-inner",style:{flexShrink:0,objectFit:"cover",height:T+"px",width:A+"px",borderRadius:_,backgroundColor:h,overflow:"hidden",border:"3px solid white"},children:(0,F.jsx)(M.A,{height:"100%",width:"100%",url:j.thumbnail_image,isPlaying:!0,event:j})})})}),(0,F.jsx)("div",{className:"wht-car-vid-title",style:{display:"flex",justifyContent:"center",width:S*I+"px",fontFamily:u,paddingTop:"10px",fontSize:null!==(r=e.fontSize)&&void 0!==r?r:10},children:(0,F.jsx)("p",{className:"wht-stories-tile-title",ref:t=>{t&&(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"),"12175954"===m&&"portrait"===e.mode&&t.style.setProperty("white-space","pre-line","important"))},children:(t=>{if("12175954"!==m)return(0,X.v)(t);if("portrait"===e.mode){const e=t.split(" ").filter(e=>""!==e.trim()),o=[];for(let t=0;t<e.length;t+=2)o.push(e.slice(t,t+2).join(" "));return o.join("\n")}return t})(j.title)})})]})};const Jt=(0,b.A)({key:"whatmore-css-cv"});var Zt=function(e){const[t]=(0,I.A)(),[o,l]=(0,P.A)(),s=(0,n.Xd)("whatmoreVideoTileSize"),d=(0,n.Xd)("whatmoreVideoTileSizePortrait"),p="portrait"===t?d:s,c="portrait"==t?0:(0,n.Xd)("whatmoreLandscapePadding"),h=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),u=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:m}=(0,i.useContext)(r.AppContext),x=e.events,v=e.onClick,{whatmoreIsCollectionsTemplate:y,whatmoreIsPreviewMode:b}=(0,i.useContext)(r.AppContext);function C(e){v(e)}const[S,k,_]=(0,L.A)({triggerOnce:!1});delete f.Ay.styles.global;const T=.055*l;var M=[];for(let i=0;i<x.length;)M.push((0,F.jsx)(Kt,{mode:t,event:x[i],onClick:()=>{C(x[i-1])},removeBorders:(0,a.U74)(u),fontSize:.8*T},"collections-tile-"+i)),i+=1;return(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||w.Sn.forEach(e=>{var t;(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]'))&&e&&(e.style.minHeight="0px")})},[]),"8111554613"!=u||"landscape"!=t||b?(0,F.jsx)(j.C,{value:Jt,children:(0,F.jsx)("div",{className:y?"whatmore-collection-events":"whatmore-carousel-events",children:(0,F.jsx)(g.s,{theme:f.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,F.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,F.jsx)("div",{ref:S,style:{marginLeft:c+"px",marginRight:c+"px"},children:(0,F.jsx)(Ue.c,{renderElement:e=>(0,F.jsx)(F.Fragment,{children:e.eventData}),dataList:M,spacing:h,defaultHeight:l*p*.01+"px",defaultWidth:l*p*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(u)&&!k&&-1==e.index&&(0,F.jsx)(He.A,{event:x[0],inVideoClick:C,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})}):(0,F.jsx)(F.Fragment,{})},eo=o(5100),to=o(4925),oo=o(605);var io=function(e){var t,g,f,w;const[j]=(0,n.QN)("isInDesignMode"),[b]=(0,n.QN)("isDemoBrand"),[C]=(0,n.QN)("whatmoreTopBottomPadding"),[S]=(0,n.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:P}=(0,i.useContext)(r.AppContext),[I]=(0,n.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:k,whatmoreRootId:_}=(0,i.useContext)(r.AppContext);(0,i.useEffect)(()=>{("template-a"===k||"template-b"===k||"template-c"===k||"template-d"===k||"template-e"===k||"template-f"===k||"template-feed-a"===k||"template-g"===k||"template-h"===k||"template-i"===k||"template-j"===k||"template-stories"===k||"template-collections-a"===k||"template-collections-b"===k||"template-collections-c"===k||"template-collections-d"===k||"template-collections-e"===k||"template-collections-f"===k||"template-collections-feed-a"===k||"template-collections-g"===k||"template-collections-h"===k||"template-collections-i"===k||"template-collections-j"===k||"template-collections-stories"===k)&&e.events&&e.events.length>0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const e=document.querySelector(`.whatmore-render-root[data-widget-id="${_}"][data-shimmer-active="true"]`),t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${_}"][data-template="${k}"]`);e&&t?(t.style.opacity="0",e.style.opacity="1",e.style.pointerEvents="auto",setTimeout(()=>{console.log(`[iOS Fix] ${k}: Removing shimmer from DOM`),t.remove(),e.removeAttribute("data-shimmer-active");const o=e.closest(".whatmore-base");o&&(o.style.minHeight="0px",console.log(`[iOS Fix] ${k}: Reset minHeight to 0px`))},100)):console.warn(`[iOS Fix] ${k}: Crossfade elements not found`,{renderRoot:!!e,shimmerContainer:!!t})})})},[k,e.events]);const A=(0,n.Xd)("isLandingSharedLink"),T=(0,n.Xd)("whatmoreShareTemplateId"),M=(0,n.Xd)("whatmoreShareStoryId"),N=(0,n.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:R,whatmoreUserInfo:O}=(0,i.useContext)(r.AppContext),E=A&&k===(0,u.Mm)(T),[W,z]=(0,i.useState)(E),[L,D]=(0,i.useState)(-1),[X,B]=(0,i.useState)(null);let V=e.events;const U=e.allEvents;var H=null;P&&!H&&(H=function(e){var t=e.reduce((e,t,o)=>{var i,n=t.storyset_id;return n in e?(e[n].total_events=e[n].total_events+1,e[n].events.push(t)):e[n]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:o,storyset_dynamic_thumbnail:null!==(i=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==i&&i,events:[t]},e},{}),o=Object.values(t);return o.sort((e,t)=>e.start_event_index-t.start_event_index),o}(V));const $=R.landingLocationType,q=R.templateType;async function Q(e,t=!1){if((0,p.MN)()&&(0,y._)()&&!t){(0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,c.bo)()}(0,n.Xd)("is3DTemplateMuted")||(0,n.t2)("is3DTemplateMuted",!0),D(e.index),((0,h.i)(e)||(0,h.I)(e))&&(j||b||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.resolve().then(o.bind(o,3330));t();const n=(0,u.Wd)($)+(0,u.gf)(q)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.lB)(e),i(I,l.TB,l.Dk),(0,d.Ch)(e.event_id,e.products,"homepage","carousel",n)})())}function G(e){return(0,F.jsx)(F.Fragment,{})}return(0,i.useEffect)(()=>{if(E)if((0,v.H)("whatmore-video-player",()=>{z(!1)}),null!=M&&P){const e=H.find(e=>M==e.id);if(e)return void async function(e,t=!1,i=null){(0,p.MN)()&&(0,y._)()&&!t&&((0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,c.bo)());j||b||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.resolve().then(o.bind(o,3330));t();const n=H[e].events[0],r=(0,u.Wd)($)+(0,u.gf)(q)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,s.lB)(n),i(I,l.TB,l.OL),(0,d.Ch)(n.event_id,n.products,"homepage","stories",r,null===n||void 0===n?void 0:n.location,null===O||void 0===O?void 0:O.userType)})();var r=0;null!=i&&H[e].events.map((e,t)=>{e.event_id==i&&(r=t)}),D(r),B(e)}(H.indexOf(e),!0,N)}else if(null!=N){const e=V.find(e=>N==e.event_id);if(e)return void Q(e,!0)}},[]),(0,F.jsxs)(F.Fragment,{children:[W&&(0,F.jsx)(eo.A,{}),-1==L||-2==L?(0,F.jsx)(G,{}):(0,F.jsx)(i.Suspense,{fallback:(0,F.jsx)(oo.A,{posterUrl:(null===U||void 0===U||null===(t=U[L])||void 0===t?void 0:t.poster_image)||(null===U||void 0===U||null===(g=U[L])||void 0===g?void 0:g.thumbnail_image)}),children:(0,F.jsx)(m.S,{userInteractionType:x.O.EVENT_VIEW,event:V[L],productList:null===(f=V[L])||void 0===f?void 0:f.products,cta:null===(w=V[L])||void 0===w?void 0:w.cta,triggerFlag:!j&&!b,children:(0,F.jsx)(to.A,{events:U,index:L,onBack:async function(){D(-1),z(!1)},slideDirection:P||"horizontal"===(0,a.br0)(I)?"horizontal":"vertical",eventsStories:H,initialStoryIndex:X,template:k})})}),(0,F.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,to.h)(),style:{height:"100%",marginTop:(P?S:C)+"px",marginBottom:(P?S:C)+"px"},children:"template-b"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(ae,{events:V,onClick:Q,heading:e.heading})})}):"template-a-1"===k||"template-collections-a-1"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(De,{events:V,onClick:Q,heading:e.heading})}):"template-feed-a"===k||"template-collections-feed-a"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(Gt,{events:V,onClick:Q,heading:e.heading})}):"template-collections-a"===k||"template-c"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(qe,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-collections-b"===k||"template-d"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(Ge,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-collections-c"===k||"template-e"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(Ke,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-collections-d"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(ae,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-collections-e"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(ot,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-collections-stories"===k||"template-stories"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(Zt,{events:V,index:L,setScreen:D,onClick:Q,heading:e.heading})})}):"template-f"===k||"template-collections-f"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(ct,{events:V,onClick:Q,heading:e.heading})})}):"template-g"===k||"template-collections-g"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(yt,{events:V,onClick:Q,heading:e.heading})})}):"template-h"===k||"template-collections-h"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(Bt,{events:V,onClick:Q,heading:e.heading})})}):"template-i"===k||"template-collections-i"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(kt,{index:L,events:V,onClick:Q,heading:e.heading})})}):"template-j"===k||"template-collections-j"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(Nt,{events:V,onClick:Q,heading:e.heading})})}):"template-ai"===k||"template-collections-ai"===k?(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(zt,{events:V,onClick:Q,heading:e.heading})}):"template-banner-a"===k?(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.BANNER_WIDGET_VIEW,event:V[0],triggerFlag:!j&&!b,children:(0,F.jsx)(Yt.A,{events:V})})}):(0,F.jsx)(i.Suspense,{children:(0,F.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!j&&!b,children:(0,F.jsx)(ot,{events:V,onClick:Q,heading:e.heading})})})})]})},no=o(1019),ro=o(3782);const lo=Array.from(document.getElementsByClassName("whatmore-base"));function so(e){return e.split(/[?#]/)[0]}function ao(e){return e.split(/[?#]/)[0]}function po(e){return"STRQMPNF7QK"==e?encodeURIComponent(window.location.href):"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e||"STROXKHHO98"==e?ao(window.location.href).replace(/\/+$/,"").split("/").pop():ao(window.location.href)}var co=function(e){const[t,o]=(0,i.useState)(),[s,h]=(0,i.useState)(),[m,x]=(0,i.useState)(),{whatmoreIsStoriesTemplate:v}=(0,i.useContext)(r.AppContext),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(r.AppContext),{whatmoreIsBannerTemplate:f}=(0,i.useContext)(r.AppContext),{whatmoreRootId:w}=(0,i.useContext)(r.AppContext),{whatmoreWidgetIdentity:j}=(0,i.useContext)(r.AppContext),[b]=(0,n.QN)("whatmoreShopId"),{whatmoreCollectionId:C}=(0,i.useContext)(r.AppContext),S=(0,n.Xd)("whatmoreLandingLocationType"),P=(0,n.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(r.AppContext),{whatmoreUserInfo:k,whatmoreIsPreviewMode:_}=(0,i.useContext)(r.AppContext),A=(0,n.Xd)("whatmoreCollectionUrl"),[T]=(0,n.QN)("isInDesignMode"),[M]=(0,n.QN)("isDemoBrand");let N;N="19506115"==b?"343270603":(0,a.mJ$)(b)?(0,a.jLA)(b)?A:so(window.location.href):C||so(window.location.href);const[R,O]=(0,n.QN)("productRatings"),[E,W]=(0,i.useState)(!1);var z=(0,a.SOt)(b)?l.aD+"/v2/events/":l.$$+"/v2/events/",L=(0,a.SOt)(b)?l.aD+"/v3/events/":l.$$+"/v3/events/",D=(0,a.SOt)(b)?l.aD+"/v4/events/":l.$$+"/v4/events/",X=(0,a.SOt)(b)?l.aD+"/v5/events/":l.$$+"/v5/events/",B=((0,a.SOt)(b)?l.aD:l.$$,(0,a.SOt)(b)?l.aD+"/get_eventset/":l.$$+"/get_eventset/"),V=(0,a.SOt)(b)?l.aD+"/v2/collection":l.$$+"/v2/collection",U=(0,a.SOt)(b)?l.aD+"/v3/collection":l.$$+"/v3/collection",H=(0,a.SOt)(b)?l.aD+"/v4/collection":l.$$+"/v4/collection",$=((0,a.jpW)(b)?l.$$:l.MT)+"/v2/brand/"+b+"/product-events",q=e.shopId,Q="live,upcoming",G="true";return(0,i.useEffect)(()=>{null!=t&&0!=t.length&&!m&&(0,p.MN)()&&!(0,n.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,y._)()&&(0,c.Pc)(c.F5)},[t]),(0,i.useEffect)(()=>{var e,t,i;(0,d.wm)();const r=localStorage.getItem("w_user_type");if(!v&&!f&&j&&"wgt_default"!==j){const e=g?"collection":"carousel";let t,i;if("carousel"===e)t=S.startsWith("product")?"product":"homepage";else if(S.startsWith("collection"))t="collection";else{if(!S.startsWith("page"))return void(P&&console.log("[Widget System] Collection widget on invalid page type, skipping"));t="page"}if("homepage"===t)i=b;else if("product"===t){let e=(0,n.Xd)("whatmoreProductId");i=(0,a.BcY)(b)?po(b):e}else"collection"!==t&&"page"!==t||(i=N);const r=`${l.$$}/brand/${q}/eventset?widget_id=${j}&source_type=${t}&source_id=${i}&eventset_type=${e}&status=active,active`;return P&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udce1 [Widget System] Starting API fetch to:`,r),void fetch(r).then(e=>e.json()).then(t=>{const o=function(e,t){if(!e||!e.eventsets)return{events:[]};const o=e.eventsets[t];if(!o||0===o.length)return{events:[]};if("carousel"===t)return{events:o.flatMap(e=>e.events||[])};if("collection"===t)return{events:o.map(e=>({storyset_id:e.eventset_id,name:e.eventset_name,events:e.events||[]}))};return{events:[]}}(t,e);return(0,K.Np)(o,g||"invalid-url"!==A)}).then(e=>{var t,o;P&&console.debug("initial received events size : "+e.length);let i=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];i=(0,a.xku)(b)?(0,K.d8)(i):(0,K.Zf)(i);const n=i.map(e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.poster_image)&&void 0!==t&&t.startsWith("https://cdn.shopify.com")?{...e,poster_image:e.poster_image.split("?")[0]+"?width=400&height=400"}:e});h(n);const r=null!==(t=null===e||void 0===e||null===(o=e.events)||void 0===o?void 0:o.length)&&void 0!==t?t:0;return i.slice(0,r)}).then(e=>{if((M||T)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const e=async()=>{const{eventsData:e,storiesData:t,bannerData:i}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();o(v?t:f?i:e)};e()}else{const t=(0,ro.H)(e).map(e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.poster_image)&&void 0!==t&&t.startsWith("https://cdn.shopify.com")?{...e,poster_image:e.poster_image.split("?")[0]+"?width=400&height=400"}:e});o(t)}W(!0),(0,n.t2)("isCarouselDataLoading",!1)}).catch(e=>{x(e.message),W(!0),(0,n.t2)("isCarouselDataLoading",!1)})}var s;if(S.startsWith("product")){var p=(0,n.Xd)("whatmoreProductId");if(p=(0,a.BcY)(b)?po(b):p,g){let e=(0,n.Xd)("whatmoreCollectionId");null!=e&&"0"!==e&&e||(e=so(window.location.href)),s=`${V.toString()}?store_id=${q.toString()}&client_collection_id=${e}`}else if((0,a.vvU)(b))s=z.toString()+q.toString()+"?status="+Q.toString()+"&is_active="+G.toString()+(v?"&template_type=stories":"");else if((0,a.WH1)(b)){s=`${s=(0,no.B)(b)}?client_product_id=${p}&limit=10&recommended=${!(0,a.buK)(b)}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`}else s=$.toString()+"?client_product_id="+p.toString()+"&status="+Q.toString()+"&event_type=video"}else if(g||"invalid-url"!==A)(0,a.JwJ)(b)?(s=`${U.toString()}?store_id=${q.toString()}&client_collection_id=${"index"==S&&(0,a.FKG)(b).length>0?(0,a.FKG)(b)[0]:N}`,s+="&user_type="+r):s="78232846646"==b?`${H.toString()}?store_id=${q.toString()}&client_collection_id=${"index"==S&&(0,a.FKG)(b).length>0?(0,a.FKG)(b)[0]:N}`:`${V.toString()}?store_id=${q.toString()}&client_collection_id=${"index"==S&&1==(0,a.FKG)(b).length?(0,a.FKG)(b)[0]:N}`;else if(f){const e=u.Jh,t=(0,u.t6)(S);s=B.toString()+q.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+b}else{var c,m,y,w;if(("72201044272"==b||"2665447536"==b&&_)&&!v)s=L.toString()+q.toString()+"?status="+Q.toString()+"&is_active="+G.toString()+"&latitude="+(null!==(c=null===(m=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===m?void 0:m.latitude)&&void 0!==c?c:"")+"&longitude="+(null!==(y=null===(w=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===w?void 0:w.longitude)&&void 0!==y?y:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else s=(0,a.JwJ)(b)&&!v?D.toString()+q.toString()+"?status="+Q.toString()+"&user_type="+r+"&is_active="+G.toString():"78232846646"!=b||v?z.toString()+q.toString()+"?status="+Q.toString()+"&is_active="+G.toString()+(v?"&template_type=stories":""):X.toString()+q.toString()+"?status="+Q.toString()+"&is_active="+G.toString()}const C=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(i=t.storyEvents)||void 0===i?void 0:i.events;v&&S.startsWith("index")&&"object"==typeof C&&(null===C||void 0===C?void 0:C.length)>0?(o(C),h(C),W(!0),(0,n.t2)("isCarouselDataLoading",!1)):(P&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udce1 Starting API fetch to:`,s),fetch(s).then(e=>e.json()).then(e=>{var t;if(f){const t=u.Jh;return(0,K.Po)(e,t)}return(0,a.JwJ)(b)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,d.d3)(null===e||void 0===e?void 0:e.questions)),(0,K.Np)(e,g||"invalid-url"!==A)}).then(e=>{var t,o;P&&console.debug("initial received events size : "+e.length);let i=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];i=(0,a.xku)(b)?(0,K.d8)(i):(0,K.Zf)(i);const n=i.map(e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.poster_image)&&void 0!==t&&t.startsWith("https://cdn.shopify.com")?{...e,poster_image:e.poster_image.split("?")[0]+"?width=400&height=400"}:e});h(n);const r=null!==(t=null===e||void 0===e||null===(o=e.events)||void 0===o?void 0:o.length)&&void 0!==t?t:0;return i.slice(0,r)}).then(e=>{if((M||T)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const e=async()=>{const{eventsData:e,storiesData:t,bannerData:i}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();o(v?t:f?i:e)};e()}else{const t=(0,ro.H)(e).map(e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.poster_image)&&void 0!==t&&t.startsWith("https://cdn.shopify.com")?{...e,poster_image:e.poster_image.split("?")[0]+"?width=400&height=400"}:e});o(t)}W(!0),(0,n.t2)("isCarouselDataLoading",!1)}).catch(e=>{x(e.message),W(!0),(0,n.t2)("isCarouselDataLoading",!1)}))},[]),E&&(null==t||0==t.length||m)&&lo.forEach(e=>{var t,o,i,n;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),l=null!==(o=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-feed-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]')||e.querySelector('.whatmore-template-type[data-wh="template-j"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]')||e.querySelector('.whatmore-template-type[data="template-j"]'),s=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]')||e.querySelector('.whatmore-template-type[data="template-collections-j"]'),a=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),d=e;if(v){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!g){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}const p=e.querySelector(`.whatmore-shimmer-container[data-widget-id="${w}"]`);p&&(p.remove(),P&&console.log(`[API Error] Removed smart shimmer for widget ${w} on API failure/empty data`));const c=e.querySelector(`.whatmore-render-root[data-widget-id="${w}"]`);c&&(c.style.opacity="1",c.style.pointerEvents="auto",c.removeAttribute("data-shimmer-active"),P&&console.log(`[API Error] Reset carousel visibility for widget ${w}`),M||T)||(a||s||l||r)&&(l&&d||r&&d||a&&d||s&&d)&&(d.style.minHeight="0px")}),document.querySelector(`.whatmore-render-root[data-widget-id="${w}"][data-shimmer-active="true"]`)&&P&&console.log(`[iOS Fix] Shimmer sibling active for ${w}, skipping injection in WhatmoreRootComponent`),null==t||0==t.length||m?(0,F.jsx)("div",{}):(P&&(0,ie.xv)(t),P&&console.debug("final transformed events data : "+JSON.stringify(t)),P&&console.debug("valid events size : "+t.length),(0,F.jsx)(io,{heading:e.heading,events:t,allEvents:s}))};var ho=function(){const[e]=(0,n.QN)("whatmoreShopId"),[t]=(0,n.QN)("whatmoreHeading"),{whatmoreHeadingCarousel:o}=(0,i.useContext)(r.AppContext),l=o&&o.length>0?o:t;return(0,F.jsx)("div",{style:{display:"block",height:"100%"},children:(0,F.jsx)(co,{heading:l,shopId:e})})}},1131:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(9526)),r=o(4414);t.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},6663:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(9526)),r=o(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},8726:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(9526)),r=o(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);