whatmore-react-assets 1.0.1838 → 1.0.1839
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{event-click-component.3a059dfd.chunk.js → event-click-component.1acb23ef.chunk.js} +1 -1
- package/static/js/homepage-carousel-view.37d5cb91.chunk.js +15 -0
- package/static/js/react-main-app.c4f63b42.chunk.js +1 -0
- package/static/js/wht-neo-atc.a8e9ee2c.chunk.js +1 -0
- package/static/js/{wht-neo-banner.3fb4afc0.chunk.js → wht-neo-banner.8c736a20.chunk.js} +1 -1
- package/static/js/{wht-neo-floating.23ff28fb.chunk.js → wht-neo-floating.03f78956.chunk.js} +1 -1
- package/static/js/wht-neo-stories.2d691503.chunk.js +1 -0
- package/static/js/wht-neo.24e3ebfe.chunk.js +1 -0
- package/static/js/wht-skin-shared-mosaic-plain.564fa4b4.chunk.js +1 -0
- package/static/js/wht-skin-shared-mosaic-ring.067519e4.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/homepage-carousel-view.30e1949b.chunk.js +0 -15
- package/static/js/react-main-app.032687dd.chunk.js +0 -1
- package/static/js/wht-neo-atc.e2a07a02.chunk.js +0 -1
- package/static/js/wht-neo-stories.caf29f46.chunk.js +0 -1
- package/static/js/wht-neo.ac193b37.chunk.js +0 -1
- package/static/js/wht-skin-shared-mosaic-plain.92137333.chunk.js +0 -1
- package/static/js/wht-skin-shared-mosaic-ring.a0a819c4.chunk.js +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{3269:function(e,t,o){o.r(t),o.d(t,{default:function(){return Co}});var i=o(1477),n=o(1214),r=o(4234),l=o(1637),s=o(9383),a=o(5547),d=o(5566),p=o(3168),c=o(7372),h=o(9128),u=o(7900),m=o(4694),x=o(7156),v=o(6984),y=o(6380),g=o(9943),f=o(7515),w=o(428),b=(o(564),o(5277),o(4548),o(6376),o(2446),o(878),o(621),o(426)),j=o(3161),S=o(3401),C=o(416),P=o(6775),k=o(5677),I=o(9612),_=o.n(I),A=o(6374),T=o(481);var F=function(e){var[t,o]=(0,P.A)();(0,i.useContext)(A.h);const r=(0,n.Xd)("whatmoreShopId");return e.event,(0,T.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"}})},N=o(5405);const M={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,M[o]||M.bottom_right)};var o}function E(e){null!==e&&void 0!==e&&e.target&&(e.target.style.display="none")}function D({shopId:e}){const t=(0,a._W0)(e);return t?(0,T.jsx)("img",{className:"wht-thumbnail-overlay",src:t,alt:"",onError:E,style:O((0,a.tik)(e),(0,a.H0Z)(e))}):null}var W=o(738),z=o(5660),L=o(5879),X=o(4833),B=o(4867),U=o(798),$=o(2146),V=o(4540),H=o(5830),q=o(6441),Q=o(3508);const G=i.lazy(()=>o.e(939).then(o.bind(o,243)));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)(),[b,j]=(0,i.useState)(!1),S=e.onClick,C=y.products.length,{whatmoreIsPreviewMode:k}=(0,i.useContext)(r.AppContext);if(0==C)return(0,T.jsx)(T.Fragment,{});(0,i.useEffect)(()=>{(0,a.w4b)(m)&&(0,$.fu)(y,(0,a.NCy)(m),m).then(e=>{g(e),j(!0)});(async()=>{var e;const t=await(0,H.M)(null===y||void 0===y||null===(e=y.products)||void 0===e?void 0:e[0],(0,a.NCy)(m),m);w(t),j(!0)})()},[]);const I=k,_=.3*c,A=_+"px",F=_+"px",N=.05*c*(0,a.PpQ)(m)+"px",M=.07*c*(0,a.y3u)(m),R=M+"px",O=.05*c;return(0,T.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,T.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:S,children:[(0,T.jsx)("div",{style:{width:A,height:F,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,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(m),"important")},src:(0,V.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,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,T.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,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size","28062416930"===m?"80%":N),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,T.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:[b&&(0,T.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,$.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)&&b?(0,T.jsxs)("strike",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(m),"important"),e.style.setProperty("font-size",.9*M+"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,$.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,T.jsx)(T.Fragment,{})]}),(0,T.jsx)(U.A,{storeId:m,productId:y.products[x].client_product_id,productLink:y.products[x].product_link,fontSize:O}),"28062416930"===m&&(0,T.jsx)("button",{onClick:S,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)||I&&"5141594210"==m?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(G,{baseFontSize:.05*c,event:y,product:y.products[0],width:.9*c,height:"fit-content"})}):(0,T.jsx)(T.Fragment,{})]})},K=o(3299);var J=({width:e=30,height:t=30})=>(0,T.jsxs)("svg",{width:e,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,T.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,T.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,T.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,T.jsx)("defs",{children:(0,T.jsx)("clipPath",{id:"clip0_1_19",children:(0,T.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,z.A)({triggerOnce:!0}),y=e.event;e.isOnFocus;return(0,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{e.onClick(y)},children:["56411783377"===p&&(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,T.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,T.jsx)(J,{width:.15*o,height:.15*o})})}),"show"===d?(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:y,fontSize:.07*o+"px"})})}):(0,T.jsx)(T.Fragment,{})]}),(0,T.jsx)("div",{style:{display:"flex",width:"100%",height:t-c+"px"},onClick:()=>{e.onClick(y)}}),(0,K.Hl)(y,p)?(0,T.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,T.jsx)("div",{ref:m,children:x&&(0,a.imx)(p)?(0,T.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,T.jsx)("div",{height:"20px"})})}):(0,T.jsx)(T.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,b=(0,K.Hl)(v,m),j=b?(0,a.nP1)(m)?.7:.8:1,S=l*j+"px",C=1-j,k=l*C,I=l*C+"px",_=l*C*.1,F=(0,a.VYo)(m),M="56411783377"==m?1:b?1.2:1;return(0,T.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*M+"px",borderRadius:"round"==u?"5px":"0px",boxShadow:"28062416930"===m?void 0:"round"===u?F: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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",...(0,W.i)(`Play video: ${v.title||v.event_id||""}`),onClick:()=>{y(v)},children:[(0,T.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,T.jsx)(N.A,{height:S,width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),(0,T.jsx)(D,{shopId:m})]}),(0,a.Q$)(m)&&(0,K.Hl)(v,m)&&"56411783377"!==m?(0,T.jsx)("div",{style:{width:"100%",height:I,backgroundColor:x}}):(0,T.jsx)(T.Fragment,{})]}),(0,a.Q$)(m)&&(0,T.jsx)(Z,{event:v,isOnFocus:g,PRODUCT_BOX_HEIGHT:k,PRODUCT_BOX_HEIGHT_IN_PX:I,PRODUCT_BOX_MARGIN:_,onClick:y})]})},oe=o(5968),ie=o(256);const ne=(0,j.A)({key:"whatmore-css-hv"}),re=null!==(ee="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==ee&ⅇfunction le(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.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,T.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,T.jsx)(S.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:[C.s3,C.Jq,..."63897305308"==c?[C.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,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>(0,T.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,T.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:s+"px",paddingRight:s+"px"},children:(0,T.jsx)("div",{style:{width:o*g*1.1+"px"},children:(0,T.jsx)(S.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[C.s3,C.Jq,..."63897305308"==c?[C.Vx,C.FJ]:[C.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,T.jsx)(S.qr,{children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r?(re&&console.debug("RENDERING : inside the swiper loop : ",t<=v),(0,T.jsx)(te,{isOnFocus:!1,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{h(e)}})):(0,T.jsx)(F,{})},"whatmore-event-tile-landscape-"+e.index)))})})})}var ae=function(e){const[t,o,l]=(0,k.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 j(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,T.jsx)(b.C,{value:ne,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,T.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,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsx)(T.Fragment,{}),"10588815418"==a||"2310668401"==a||"10648977444"==a?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,T.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,T.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:"":j(e.heading)[0]}),(0,T.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:"":j(e.heading)[1]})]})}):(0,T.jsx)(T.Fragment,{children:re&&console.debug("returning the empty div")}),"landscape"===t?(0,T.jsx)(se,{events:h,onClick:y}):(0,T.jsx)(le,{events:h,onClick:y})]})})})})},de=o(8670),pe=o(5398),ce=o(9197),he=o(7583),ue=o(1475),me=o(7462),xe=o(5032);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,T.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,T.jsx)(he._,{width:"full",height:"full",src:d.thumbnail_image,objectFit:"cover",fallback:(0,T.jsx)(me.A,{width:l,height:r}),borderRadius:"lg"}),(0,T.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,T.jsxs)(pe.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,T.jsx)(de.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,T.jsx)(pe.B,{direction:"column",justifyContent:"flex-start",children:(0,T.jsx)(de.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,T.jsx)(pe.B,{direction:"row",justifyContent:"space-between",children:(0,T.jsx)(ue.A,{event:d,fontSize:.05*r+"px",maxWidth:.8*l})})})})}),(0,T.jsx)(de.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,T.jsx)(pe.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,T.jsx)(de.az,{width:"full",borderRadius:"lg",children:(0,T.jsxs)(pe.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,T.jsx)(ce.E,{color:"white",fontSize:.08*l+"px",fontWeight:"normal",align:"left",children:" "}),(0,T.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,T.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)})]})})})})]})})]})},be=o(9071),je=o(6123),Se=o(4015),Ce=(o(897),o(2654)),Pe=o(3391),ke=o(2090);function Ie({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],[b,,,,j,S]=(0,ke.A)(0,w,e);if(!w)return null;const C=Math.round(+(null===w||void 0===w?void 0:w.price)),k=Math.round(+(null===w||void 0===w?void 0:w.compare_price)),I=k&&0!==k&&k>C?Math.round((k-C)/k*100):NaN,_=y*(f?.92:.88),A=y*(f?.25:.2),F=y*(f?.044:.038)+"px",N=y*(f?.046:.04)+"px",M=y*(f?.038:.032)+"px",R=y*(f?.042:.036)+"px",O=f?"6px 8px":"10px 14px",E=f?"4px 10px":"5px 12px",D="productVariantDetailsApiCallInProgress"===b.state||"atcApiCallInProgress"===b.state;return(0,T.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,T.jsx)("div",{style:{width:A+"px",height:A+"px",flexShrink:0,borderRadius:"6px",overflow:"hidden",backgroundColor:"#f4f4f4"},children:(0,T.jsx)("img",{src:(0,V.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",minWidth:0,gap:"2px",alignItems:"flex-start"},children:[(0,T.jsx)("div",{style:{color:"#1a1a1a",fontFamily:c,fontSize:F,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,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",flexWrap:"nowrap"},children:[(0,T.jsx)("span",{style:{color:"#1a1a1a",fontFamily:c,fontSize:N,fontWeight:700,whiteSpace:"nowrap"},children:(0,$.Sb)(C," ",s,null===w||void 0===w?void 0:w.currency)}),!isNaN(k)&&k>C&&(0,T.jsx)("span",{style:{color:(0,a.gld)(s)||"#808191",fontFamily:c,fontSize:M,textDecoration:"line-through",whiteSpace:"nowrap"},children:(0,$.Sb)(k," ",s,null===w||void 0===w?void 0:w.currency)}),!isNaN(I)&&0!==I&&(0,T.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:M,fontWeight:500,whiteSpace:"nowrap",lineHeight:"120%"},children:`${I}% off`})]}),(0,T.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"===b.state?(j(n,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:e,productList:[w],ctaList:e.cta}),(0,oe.N$)({widgetSourceDetails:h,event:e,product:w})):"awaitingVariantSelection"===b.state&&S(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:D,children:[(0,T.jsx)("span",{style:{visibility:D?"hidden":"visible"},children:(0,a.KPq)(s)||"ADD TO CART"}),D&&(0,T.jsx)("span",{className:"wht-atc-spinner",style:{width:R,height:R,position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto"}})]})]})]})}var _e=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,T.jsx)(T.Fragment,{});if("56352899156"===g&&(0,a.mRH)(g))return(0,T.jsx)(Ie,{event:f});const w="47113339031"===g,b=.3*d*(w?u?.85:.7:1),j=b+"px",S=b+"px",C=.07*d*(w?u?.9:.75:1),k=C+"px",I=u?"4px":"8px",_=w?.9:1,A=w?"10px":"5px",F=w?"600":"normal";return(0,T.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:I,paddingBottom:I,boxSizing:"border-box"}},children:(0,T.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,T.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",S,"important")},style:{width:w||(0,a.H$k)(g)?j:"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,T.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",j,"important"))},src:(0,V.b)(f.products[v].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,T.jsxs)("div",{style:{width:d-5-b+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",k),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:F},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,T.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-b+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",d-5-b+"px","important"),e.style.setProperty("font-size",.7*C+"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)})},Ae=o(4630);function Te(e){var t,[o,r]=(0,P.A)();const[l]=(0,n.QN)("whatmoreShopId"),[s,d,c]=(0,z.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,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)("p",{children:" "})}),h.showPlayButton&&!m?(0,T.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==u.event_type&&(0,T.jsx)(Ce.A,{sx:{color:(0,a.KFN)(l)+" !important",opacity:.8,fontSize:x,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,T.jsx)(T.Fragment,{}),(0,T.jsx)("div",{ref:s,children:v&&(0,a.imx)(l)?(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)(_e,{event:u})}):(0,T.jsx)("div",{height:"20px"})})]})})}function Fe(e){var[t,o]=(0,P.A)();const[i]=(0,n.QN)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,T.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,T.jsx)("p",{style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,T.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,T.jsx)(T.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,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===s&&"show"===(0,a.klK)(d)?(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:p,fontSize:.07*o+"px"})})}):(0,T.jsx)(T.Fragment,{}),!1]})}),Pe.nN===l[Pe.dl]?(0,T.jsx)(T.Fragment,{}):c?(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,T.jsx)(Fe,{event:p})}):(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)(Fe,{event:p})})]})})}var Me=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,b=(0,a.VYo)(m);return(0,T.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?b: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,W.i)(`Play video: ${v.title||v.event_id||""}`),onClick:()=>{y(v)},children:[(0,T.jsx)(N.A,{height:(0,a.u06)(m)+" !important",width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),(0,T.jsx)(D,{shopId:m}),"51394281658"===m?(0,T.jsxs)(T.Fragment,{children:[(0,T.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,T.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,T.jsx)(Ae.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(m)&&(0,T.jsxs)("div",{style:{width:s,height:l},children:[(0,T.jsx)(Ne,{event:v,isOnFocus:g}),"87043703105"===m||"76467011883"===m||!g&&Pe.nN!==c[Pe.dl]?null:(0,T.jsx)(Te,{event:v,unfocusedDisplay:!g,isOnFocus:g})]})]})};var Re=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,T.jsxs)(de.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:x,backgroundColor:r?c:d,animation:s?Se.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:e=>{e.stopPropagation(),a(!0),u()},onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:[(0,T.jsx)(ce.E,{fontSize:v+"px !important",fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:"VIEW MORE"}),m]})};const Oe=(0,j.A)({key:"whatmore-css-hv"});function Ee(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 De(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=Ee(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,T.jsx)(je.o,{children:(0,T.jsxs)(pe.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,T.jsx)(T.Fragment,{children:d.map((e,t)=>t>m?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,T.jsx)(de.az,{style:{margin:"10px"},children:(0,h.i)(e)||(0,h.I)(e)?(0,T.jsx)(Me,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,T.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}})},"event-"+t))},"event-stack-"+t))}),(0,T.jsx)(T.Fragment,{children:m<d.length-1?(0,T.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,T.jsx)(Re,{baseFontSize:.1*n,icon:(0,T.jsx)(be.A,{style:{color:"white"}}),onClick:()=>{m>=d.length-1||x(e=>e+u)}})}):(0,T.jsx)(T.Fragment,{})})]})})}function We(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=Ee(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,T.jsx)(je.o,{paddingLeft:l+"px",paddingRight:l+"px",children:(0,T.jsxs)(pe.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,T.jsx)(T.Fragment,{children:p.map((e,t)=>t>x?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,T.jsx)(de.az,{style:{margin:"10px"},children:(0,h.i)(e)||(0,h.I)(e)?(0,T.jsx)(Me,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,T.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}})},"event-"+t))},"event-stack-"+t))}),(0,T.jsx)(T.Fragment,{children:x<p.length-1?(0,T.jsx)(pe.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,T.jsx)(Re,{baseFontSize:.1*n,onClick:()=>{x>=p.length-1||v(e=>e+m)},icon:(0,T.jsx)(be.A,{style:{color:"white"}})})}):(0,T.jsx)(T.Fragment,{})})]})})}var ze=function(e){var t;const[o,l,s]=(0,k.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 j(e){v(e)}return delete f.Ay.styles.global,(0,T.jsx)(b.C,{value:Oe,children:(0,T.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,T.jsx)(je.o,{children:(0,T.jsx)(ce.E,{bgColor:p,bgClip:"text",fontSize:u,sx:{fontFamily:y+" !important"},align:"center",children:e.heading})}):(0,T.jsx)(T.Fragment,{}),"landscape"===o?(0,T.jsx)(We,{events:x,onClick:j,seeMoreIncrement:1,initialEventCount:w}):(0,T.jsx)(De,{events:x,onClick:j,seeMoreIncrement:2,initialEventCount:w})]})})})})},Le=(o(8584),o(6267),o(273)),Xe=o(5987),Be=o(3647);function Ue(e){const t=[[],[],[]];return((null===e||void 0===e?void 0:e.variants)||[]).forEach(o=>{[o.option1,o.option2,o.option3].forEach((i,n)=>{var r,l,s;null!=i&&""!==i&&t[n].push({option:i,available:null===(r=o.available)||void 0===r||r,type:null===e||void 0===e||null===(l=e.options)||void 0===l||null===(s=l[n])||void 0===s?void 0:s.name})})}),t.map(e=>{const t={},o=[];return e.forEach(e=>{null==t[e.option]?(t[e.option]=o.length,o.push({option:e.option,available:!!e.available,type:e.type})):o[t[e.option]].available=o[t[e.option]].available||!!e.available}),o})}function $e(e,t){const o=(e||[]).find(e=>{var o,i,n,r,l,s;return(null!==(o=e.option1)&&void 0!==o?o:null)==(null!==(i=t[0])&&void 0!==i?i:null)&&(null!==(n=e.option2)&&void 0!==n?n:null)==(null!==(r=t[1])&&void 0!==r?r:null)&&(null!==(l=e.option3)&&void 0!==l?l:null)==(null!==(s=t[2])&&void 0!==s?s:null)});return o?o.id:null}function Ve(e){return(e||[[],[],[]]).map(e=>{const t=(e||[]).find(e=>e.available);return t?t.option:null})}function He({label:e,value:t,options:o,onSelect:n,base:r,font:l}){const[s,a]=(0,i.useState)(!1);return(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",width:"100%"},children:[(0,T.jsx)("span",{style:{fontSize:r-1+"px",fontWeight:500,color:"#7a7a7a",fontFamily:l,minWidth:"42px"},children:e}),(0,T.jsxs)("div",{style:{position:"relative",flex:1,minWidth:0},children:[(0,T.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),a(e=>!e)},style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"6px 10px",background:"#fff",border:"1px solid #e6e6e6",borderRadius:"9px",cursor:"pointer",fontSize:r+"px",color:"#1a1a1a",fontFamily:l,fontWeight:500,boxShadow:s?"0 0 0 2px rgba(0,0,0,0.06)":"none"},children:[(0,T.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:null!==t&&void 0!==t?t:"Select"}),(0,T.jsx)("span",{style:{width:0,height:0,borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"5.5px solid #555",transform:s?"rotate(180deg)":"none",transition:"transform 0.18s ease",flexShrink:0}})]}),s&&(0,T.jsx)("div",{style:{position:"absolute",bottom:"calc(100% + 6px)",left:0,right:0,zIndex:9,background:"#fff",border:"1px solid #eaeaea",borderRadius:"12px",boxShadow:"0 10px 30px rgba(0,0,0,0.18)",maxHeight:"168px",overflowY:"auto",padding:"4px"},children:o.map(e=>(0,T.jsx)("div",{onClick:t=>{t.stopPropagation(),e.available&&(n(e.option),a(!1))},style:{padding:"9px 11px",fontSize:r+"px",fontFamily:l,borderRadius:"8px",cursor:e.available?"pointer":"not-allowed",color:e.available?"#1a1a1a":"#c2c2c2",textDecoration:e.available?"none":"line-through",fontWeight:e.option===t?600:500,background:e.option===t?"#f3f3f3":"transparent"},children:e.option},e.option))})]})]})}var qe=function(e){var t,o;const l=e.event,d="portrait"===e.mode,p=e.tileWidth,c=(null!==(t=null===l||void 0===l?void 0:l.products)&&void 0!==t?t:[]).filter(e=>e&&e.thumbnail_image),[h]=(0,n.QN)("whatmoreShopId"),[m]=(0,n.QN)("whatmorePrimaryFont"),[v]=(0,n.QN)("isInDesignMode"),[y]=(0,n.QN)("isDemoBrand"),{whatmoreWidgetSourceDetails:g,whatmoreUserInfo:f}=(0,i.useContext)(r.AppContext),[w,b]=(0,i.useState)(0),[j,S]=(0,i.useState)(!1),[C,P]=(0,i.useState)([null,null,null]),[k,I]=(0,i.useState)(null),[_,A]=(0,i.useState)(!1),[F,N]=(0,i.useState)({state:"idle",count:0}),M=(0,i.useRef)({}),R=(0,i.useRef)(0),O=null!==(o=c[w])&&void 0!==o?o:c[0],E=e=>{var t,o;return String(null!==(t=null!==(o=null===e||void 0===e?void 0:e.product_id)&&void 0!==o?o:null===e||void 0===e?void 0:e.client_product_id)&&void 0!==t?t:"")},D=(null===g||void 0===g?void 0:g.landingLocationType)||"index",W=(null===g||void 0===g?void 0:g.templateType)||"template-collections-c",z=(0,u.Wd)(D)+(0,u.gf)(W)+(null!==l&&void 0!==l&&l.isRelatedEvent?"R":"E")+"_"+(null===l||void 0===l?void 0:l.event_id),L=e=>{const t=E(e),o=M.current[t];if(o)return I(o.options),A(!1),Promise.resolve(o);const i=++R.current;return A(!0),(0,H.M)(e,(0,a.NCy)(h),h).then(e=>{const o={options:Ue(e),variants:(null===e||void 0===e?void 0:e.variants)||[]};return M.current[t]=o,i===R.current&&(I(o.options),A(!1)),o}).catch(()=>(i===R.current&&A(!1),null))};if((0,i.useEffect)(()=>{P([null,null,null]),L(O)},[w]),(0,i.useEffect)(()=>{k&&P(e=>k.map((t,o)=>{var i,n;return e[o]||(null!==(i=null===(n=(t||[]).find(e=>e.available))||void 0===n?void 0:n.option)&&void 0!==i?i:null)}))},[k]),(0,i.useEffect)(()=>{(0,n.t2)("whatmoreAllowAutoSlide",!(j||"adding"===F.state))},[j,F.state]),!O)return null;const U=m,q="number"===typeof p&&p>0?p:d?130:200,Q=(e,t,o)=>Math.max(e,Math.min(o,t)),G=Q(7.5,.06*q,13.5),Y=Q(22,.27*q,50),K=Q(5,.06*q,13),J=Q(4,.045*q,10),Z=Q(5,.05*q,11),ee=Q(24,.22*q,46),te=Q(6,.05*q,10),ie=Q(2,.018*q,4),ne=parseFloat(O.price),re=parseFloat(O.compare_price),le=(0,B.P)(ne,re),se=O.currency,ae="adding"===F.state,de=ae?"ADDING\u2026":F.count>0?"ADDED \u2713":"ADD TO CART",pe=(k||[]).map((e,t)=>({opts:e||[],i:t})).filter(e=>e.opts.length>0),ce=(e,t)=>{if(!e)return void N(e=>({...e,state:"idle"}));N(e=>({...e,state:"adding"}));const o=(0,Xe.cF)([e],1,(0,a.NCy)(h),h,l,t,z,null===l||void 0===l?void 0:l.location,null===f||void 0===f?void 0:f.userType);Promise.resolve(o).then(e=>{if(!e.ok)throw new Error(e.status);return e.json()}).then(()=>{N(e=>({state:"added",count:e.count+1})),S(!1),(0,n.t2)("whatmoreAddedToCart",!0),v||y||(0,s.tO)(l,t,1),(0,Be.initiateCartSliderEvent)(h,()=>{},100,window.location.hostname,e,t.client_product_id,z,null===l||void 0===l?void 0:l.location,null===f||void 0===f?void 0:f.userType,t.product_link),(0,a.MPe)(h)&&setTimeout(()=>{window.location.href=window.location.origin+"/cart"},500)}).catch(()=>N(e=>({...e,state:"idle"})))},he=pe.length>0||c.length>1,ue=()=>{const e=M.current[E(O)];if(e){const t=j?C:Ve(e.options);ce($e(e.variants,t),O)}else N(e=>({...e,state:"adding"})),L(O).then(e=>e?ce($e(e.variants,Ve(e.options)),O):N(e=>({...e,state:"idle"})))},me=(0,T.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"6px",flexWrap:"wrap"},children:[(0,T.jsx)("span",{style:{fontSize:G+1.5+"px",fontWeight:700,color:"#111",fontFamily:U,letterSpacing:"0.2px"},children:(0,$.Sb)(ne,"",h,se)}),le&&(0,T.jsx)("span",{style:{fontSize:G-1+"px",fontWeight:400,color:"#a0a0a0",textDecoration:"line-through",fontFamily:U},children:(0,$.Sb)(re,"",h,se)})]}),xe=(e,t)=>(0,T.jsx)("span",{style:{width:e+"px",height:e+"px",border:"2px solid "+(t||"rgba(0,0,0,0.15)"),borderTopColor:t?"#fff":"#666",borderRadius:"50%",display:"inline-block",animation:"whatmore-cv-spin 0.7s linear infinite"}});return(0,T.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:p?p+"px":"100%",background:"transparent",fontFamily:U,position:"relative",zIndex:3},children:[(0,T.jsx)("style",{children:"@keyframes whatmore-cv-spin{to{transform:rotate(360deg)}}@keyframes whatmore-cv-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}"}),(0,T.jsxs)("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,zIndex:7,background:"rgba(255,255,255,0.92)",backdropFilter:"blur(34px) saturate(180%)",WebkitBackdropFilter:"blur(34px) saturate(180%)",boxShadow:"0 -6px 22px rgba(0,0,0,0.16)",padding:J+"px "+K+"px",display:"flex",flexDirection:"column",gap:Z+"px",transformOrigin:"bottom center",transform:j?"translateY(0)":"translateY(10px)",opacity:j?1:0,visibility:j?"visible":"hidden",pointerEvents:j?"auto":"none",transition:"transform 0.22s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease, visibility 0.22s"},children:[c.length>1&&(0,T.jsx)("div",{style:{display:"flex",gap:Z+"px",overflowX:"auto",scrollbarWidth:"none",paddingBottom:"2px"},children:c.map((e,t)=>{var o;return(0,T.jsx)("div",{onClick:e=>{e.stopPropagation(),t!==w&&b(t)},style:{width:.9*Y+"px",height:.9*Y+"px",flexShrink:0,borderRadius:te+"px",overflow:"hidden",cursor:"pointer",background:"#fff",border:t===w?"2px solid #111":"1px solid #e6e6e6",padding:"2px",boxShadow:"0 1px 4px rgba(0,0,0,0.08)"},children:(0,T.jsx)("img",{src:(0,V.b)(e.thumbnail_image),alt:e.title,style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:Math.max(4,te-2)+"px"}})},(null!==(o=e.product_id)&&void 0!==o?o:t)+"_pick")})}),k?(0,T.jsxs)("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:Z+"px",opacity:_?.4:1,pointerEvents:_?"none":"auto",transition:"opacity 0.15s ease"},children:[pe.map(e=>{var t;return(0,T.jsx)(He,{label:(null===(t=e.opts[0])||void 0===t?void 0:t.type)||"Options",value:C[e.i],options:e.opts,onSelect:t=>P(o=>{const i=[...o];return i[e.i]=t,i}),base:G,font:U},"opt_"+e.i)}),_&&(0,T.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:xe(16)})]}):(0,T.jsx)("div",{style:{height:ee+"px",borderRadius:te+"px",background:"linear-gradient(90deg,#ececec,#f6f6f6,#ececec)",backgroundSize:"200% 100%",animation:"whatmore-cv-shimmer 1.2s infinite"}})]}),(0,T.jsxs)("div",{style:{padding:J+"px "+Math.max(2,.4*K)+"px",display:"flex",alignItems:"center",gap:Z+"px"},children:[(0,T.jsx)("div",{style:{width:Y+"px",height:Y+"px",flexShrink:0,borderRadius:te+"px",overflow:"hidden",background:"#fff",boxShadow:"0 1px 5px rgba(0,0,0,0.1)",padding:ie+"px",boxSizing:"border-box"},children:(0,T.jsx)("img",{src:(0,V.b)(O.thumbnail_image),alt:O.title,style:{width:"100%",height:"100%",objectFit:"contain"}})}),(0,T.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"3px"},children:[(0,T.jsx)("span",{style:{fontSize:G+1+"px",fontWeight:600,color:"#1c1c1c",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:U,letterSpacing:"0.1px"},children:(0,X.v)(O.title,"prod-tile")}),me]})]}),(0,T.jsxs)("div",{style:{position:"relative",background:"#0f0f0f",minHeight:ee+"px",overflow:"hidden"},children:[(0,T.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"stretch",transform:j?"translateX(-16px)":"translateX(0)",opacity:j?0:1,pointerEvents:j?"none":"auto",transition:"transform 0.19s cubic-bezier(0.22,1,0.36,1), opacity 0.19s ease"},children:(0,T.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),ae||(j||!he&&null!=k?ue():S(!0),v||y||((0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:g,event:l,productList:[O],ctaList:l.cta}),(0,oe.N$)({widgetSourceDetails:g,event:l,product:O})))},style:{flex:1,border:"none",background:"transparent",color:"#fff",fontFamily:U,fontWeight:600,fontSize:G+.5+"px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"7px",letterSpacing:"0.4px"},children:[ae&&xe(12,"rgba(255,255,255,0.35)"),de]})}),(0,T.jsxs)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"stretch",transform:j?"translateX(0)":"translateX(16px)",opacity:j?1:0,pointerEvents:j?"auto":"none",transition:"transform 0.19s cubic-bezier(0.22,1,0.36,1), opacity 0.19s ease"},children:[(0,T.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),ae||ue()},style:{flex:1,border:"none",background:"transparent",color:"#fff",fontFamily:U,fontWeight:700,fontSize:G+.5+"px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"7px",letterSpacing:"0.6px"},children:[ae&&xe(12,"rgba(255,255,255,0.35)"),ae?"ADDING\u2026":"DONE"]}),(0,T.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),ae||S(!1)},"aria-label":"Cancel",style:{flexShrink:0,padding:"0 "+1.6*K+"px",border:"none",borderLeft:"1px solid rgba(255,255,255,0.16)",background:"transparent",color:"rgba(255,255,255,0.6)",fontFamily:U,fontWeight:500,fontSize:G+"px",cursor:"pointer",letterSpacing:"0.5px"},children:"CANCEL"})]})]})]})},Qe=o(9740);var Ge=function(e){var t,o,l,s,p,c,h,m,v,y,g,f,w,b,j,S,C,k,I,_,A,F,M;const R=e.event,[O,E,z,L,B]=(0,P.A)(),[U]=(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,be]=(0,ke.A)(0,le,R),je="22907887"===Q||"79550939348"===Q?"portrait"===e.mode?.9:.83:1,Se=e.onClick,Ce=e.removeBorders,Ie=(0,n.Xd)("whatmoreUITheme"),_e=je*O*K*.01,Ae=E*K*.01*("22907887"===Q?1:1.08),Te=.25*E,Fe=null!==(p=e.borderRadius)&&void 0!==p?p:"0%",Ne=he?1.076*E*(0,a.HWj)(Q):E*(0,a.N_4)(Q),Me=he?1.076*E*(0,a.HWj)(Q):E*(0,a.N_4)(Q),Re=Me+"px",Oe=he?.965*E*(0,a.HWj)(Q):.859*E*(0,a.N_4)(Q),Ee=ce&&he?.72*Me+"px":Re,De=ce&&he?.72*Oe+"px":Oe+"px",We=(()=>{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,$.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,H.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,H.M)(o,(0,a.NCy)(Q),Q);pe(n),Le=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 ze=null===le||void 0===le?void 0:le.price;let Le=null===le||void 0===le?void 0:le.compare_price;const Xe=Le&&0!=Le&&Le>ze?Math.round((Le-ze)/Le*100):NaN;let Be=NaN!==Xe?Xe:0;return(0,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,a._hU)(Q)?"auto":Ae+"px",marginLeft:Ce?"2px":"5px",marginRight:Ce?"2px":(0,a.FZM)(Q)+"px",marginTop:Ce?"2px":"5px",marginBottom:Ce?"2px":"5px",cursor:"pointer"},...(0,W.i)(`Play video: ${R.title||R.event_id||""}`),onClick:()=>{ie(!0),Se(R)},className:[te?"whatmore-scale-on-tap":""].join(" "),children:[(0,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:Fe,overflow:"hidden",boxShadow:Ce?"":"0px 1px 1px 0px "+U+"50, 0px -1px 1px 0px "+ne+"50, 1px 0px 1px 0px "+U+"50, -1px 0px 1px 0px "+ne+"80, 1px -1px 1px 0px "+U+"80, -1px 1px 1px 0px "+ne+"DA, 1px 1px 1px 0px "+U+"DA, -1px -1px 1px 0px "+ne+"DA"},children:(0,T.jsxs)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:_e+"px",width:"40273707171"==Q?"auto":Ae+"px",borderRadius:Fe,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,T.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,T.jsx)(N.A,{height:"100%",width:"100%",url:R.thumbnail_image,isPlaying:null===(v=e.isPlaying)||void 0===v||v,event:R}),(0,T.jsx)(D,{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,T.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,T.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,T.jsx)("img",{src:t.thumbnail_image,alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover"}})},o)),t.length>2&&(0,T.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,T.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,T.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,T.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,T.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,T.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(Q),"important")},src:(0,V.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:We.width,height:We.height,borderRadius:"round"==Ie?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:he?"0px":"-3px"}})}),(0,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:ce&&!he?"3px":"4px",flex:1,minWidth:0},children:[ae&&(0,T.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,T.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,T.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)(Q),"important");const t=.9*parseFloat(Ee)+"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,$.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===(b=de.variants)||void 0===b||null===(j=b[0])||void 0===j?void 0:j.price)&&void 0!==w?w:null===de||void 0===de?void 0:de.price)/100:ze:ze>0?ze:null===le||void 0===le?void 0:le.price_max)," ",Q,(null===(S=R.products[0])||void 0===S?void 0:S.currency)||("68304765103"===Q?"INR":void 0))}),!isNaN(Le)&&Le>ze&&(0,T.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.gld)(Q),"important");const t=.9*parseFloat(Ee)+"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,$.Sb)(parseFloat((0,q.U)()&&(null!==(C=null===de||void 0===de||null===(k=de.variants)||void 0===k||null===(I=k[0])||void 0===I?void 0:I.compare_at_price)&&void 0!==C?C: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===(F=A[0])||void 0===F?void 0:F.compare_at_price)&&void 0!==_?_:null===de||void 0===de?void 0:de.compare_at_price)/100:Le)," ",Q,(null===(M=R.products[0])||void 0===M?void 0:M.currency)||("68304765103"===Q?"INR":void 0))}),"16957273"===Q&&!isNaN(Be)&&0!=Be&&(0,T.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(Q)?"#343434"==U?(0,a.ub$)(Q):U:(0,a.ub$)(Q),alignItems:"center",borderRadius:(0,a.v8m)(Q)+"px",width:"fit-content",padding:"3px 6px"},children:(0,T.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.BRY)(Q),"important");const t=.9*parseFloat(De)+"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:Be+"% off"})})]}),xe&&(0,T.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:U,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}),(0,oe.N$)({widgetSourceDetails:Z,event:R,product:le})):"awaitingVariantSelection"==ve.state&&be(null,i),setTimeout(()=>{me(!1)},3e3)},onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:ue?(0,T.jsx)(Qe.y,{size:"sm",display:"flex !important",color:"white"}):"Add To Cart"})]})]}),"75000480020"===Q&&Array.isArray(null===R||void 0===R?void 0:R.products)&&R.products.length>0&&(0,T.jsx)(qe,{event:R,mode:e.mode,tileWidth:Ae})]})};var Ye=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,b=r*g,j=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",S="15%",C=e.removeBorders;return(0,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:f+"px",width:b+"px",marginLeft:C?"2px":"5px",marginRight:C?"2px":"5px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},children:(0,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:C?"0px":j,boxShadow:C?"":"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,T.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:b+"px",borderTopLeftRadius:C?"0px":S,borderTopRightRadius:C?"0px":S,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,T.jsx)(N.A,{height:"100%",width:"100%",url:x.thumbnail_image,isPlaying:!0,event:x})}),(0,T.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:b+"px",borderBottomLeftRadius:C?"0px":S,borderBottomRightRadius:C?"0px":S,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,T.jsx)(N.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!0,event:v})})]})})},Ke=o(1626),Je=o(7777);const Ze=(0,j.A)({key:"whatmore-css-cv"});var et=function(e){const t=e.events,[o]=(0,k.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:j}=(0,i.useContext)(r.AppContext),S=e.onClick;function C(e){S(e)}(0,i.useEffect)(()=>{(0,ie.Fk)("Video shopping powered by Whatmore!")},[]),delete f.Ay.styles.global;var I=[];for(let i=0,n=!1;i<t.length;)n&&i!=t.length-1&&d[i]>.2?(I.push((0,T.jsx)(Ye,{mode:o,event1:t[i],event2:t[i+1],onClick:()=>{C(t[i-1])}},"collections-tile-"+i)),i+=2,n=!n):(I.push((0,T.jsx)(Ge,{mode:o,event:t[i],onClick:()=>{C(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[_,F,N]=(0,z.A)({triggerOnce:!1});return(0,T.jsx)(b.C,{value:Ze,children:(0,T.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:j,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,T.jsx)("div",{ref:_,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,T.jsx)(Ke.c,{renderElement:e=>(0,T.jsx)(T.Fragment,{children:e.eventData}),dataList:I,spacing:x,defaultHeight:l*u*.01+"px",defaultWidth:s*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!F&&-1==e.index&&(0,T.jsx)(Je.A,{event:t[0],inVideoClick:C,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const tt=(0,j.A)({key:"whatmore-css-cv"});var ot=function(e){const t=e.events,[o]=(0,k.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:j}=(0,i.useContext)(r.AppContext),S=e.onClick,[C,I,_]=(0,z.A)({triggerOnce:!1});function F(e){S(e)}delete f.Ay.styles.global;var N=[];for(let i=0,n=!1;i<t.length;)n&&i!=t.length-1&&l[i]>.2?(N.push((0,T.jsx)(Ye,{event1:t[i],event2:t[i+1],onClick:()=>{F(t[i-1])},removeBorders:!0},"collections-tile-"+i)),i+=2,n=!n):(N.push((0,T.jsx)(Ge,{mode:o,event:t[i],onClick:()=>{F(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,T.jsx)(b.C,{value:tt,children:(0,T.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:j,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,T.jsx)("div",{ref:C,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,T.jsx)(Ke.c,{showBgPlaceholder:!0,renderElement:e=>(0,T.jsx)(T.Fragment,{children:e.eventData}),dataList:N,spacing:x,defaultHeight:d*u*.01+"px",defaultWidth:p*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!I&&-1==e.index&&(0,T.jsx)(Je.A,{event:t[0],inVideoClick:F,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const it=(0,j.A)({key:"whatmore-css-cv"});var nt=function(e){var t;const[o]=(0,k.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:j}=(0,i.useContext)(r.AppContext),{whatmoreCollectionId:S}=(0,i.useContext)(r.AppContext),C="79550939348"===p&&"448768966868"===S,I=C||(0,a.aO7)(p),F=u?Math.round(100*d/u):d,N=Math.max(0,Math.floor((F||1)/2)),[M,R]=(0,i.useState)(-1),O=e.events,E=e.onClick,D=(0,n.Xd)("whatmoreTitleFont"),W="portrait"==o?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),L=null!==(t=(0,a.sa6)(p))&&void 0!==t?t:D,X=(0,n.Xd)("whatmorePrimaryFont");function B(e){E(e)}delete f.Ay.styles.global;const U=.055*s,$="22907887"===p||"79550939348"===p?"portrait"===o?.9:.83:1,V="68304765103"===p?"0px":"22907887"===p?"5%":"1%",H=Number(x),q="68304765103"===p?"portrait"===o?6:20:"22907887"===p?x:Number.isFinite(H)?Math.max(2,.5*H):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=M===n,s=C&&!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,T.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,T.jsx)(Ge,{mode:o,event:e,onClick:()=>{B(O[i-1])},removeBorders:!0,borderRadius:V,fontSize:U,isPlaying:!I||("portrait"===o&&window.innerWidth<768||(l||n===N&&-1===M)),renderStaticImage:s,staticImageUrl:a},"collections-tile-"+i),t&&(0,T.jsxs)(T.Fragment,{children:[(0,T.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*U+"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,T.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,T.jsx)(Ae.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,z.A)({triggerOnce:!1});return(0,T.jsx)(b.C,{value:it,children:(0,T.jsx)("div",{className:j?"whatmore-collection-events":"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0&&!j&&((0,a.DLl)(p)||"5032640601"===p||"53425012925"===p)?(0,T.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",L,"important"),e.style.setProperty("font-size",W+"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,T.jsx)(T.Fragment,{}),(0,T.jsx)("div",{ref:J,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,T.jsx)(Ke.c,{showBgPlaceholder:!0,renderElement:e=>(0,T.jsx)(T.Fragment,{children:e.eventData}),dataList:Q,spacing:q,defaultHeight:$*l*u*.01+"px",defaultWidth:s*u*.01*("22907887"===p?1:1.08)+"px",retainAlreadyRenderedElements:!0,shopId:p,forceShowArrows:"22907887"!==p})}),(0,a.wQ2)(p)&&j&&!Z&&-1==e.index&&(0,T.jsx)(Je.A,{event:O[0],inVideoClick:B,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};o(1325);var rt=function(e){var t,o,l,s,d,p,c,h,m,v,y,g,f,w,b,j,S,C,k,I,_;const[F,M,R,O,E]=(0,P.A)(),z=.5*M;(0,i.useContext)(A.h);const B=(0,n.Xd)("whatmoreUITheme"),U=(0,n.Xd)("whatmoreShopId"),V="5032640601"===U||"53425012925"===U,Q=(0,n.Xd)("whatmorePrimaryFont"),G=(0,n.Xd)("whatmoreSecondaryColor"),Y=(0,n.Xd)("websiteLanguage"),[K]=(0,n.QN)("whatmoreShowViews"),J=e.onClick,Z=null===(t=e.isOnFocus)||void 0===t||t,ee=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,te=null!==(l=e.animateOnFocus&&(0,a.n5O)(U))&&void 0!==l&&l,ie="portrait"===E[Pe.dl],ne=(0,a.mRH)(U),re=ie?1.076*M*(0,a.HWj)(U):M*(0,a.N_4)(U),le=re+"px",se=ie?1.076*M*(0,a.HWj)(U):M*(0,a.N_4)(U),ae=se+"px",de=(ie?.965*M*(0,a.HWj)(U):.859*M*(0,a.N_4)(U))+"px",pe=(0,a.VYo)(U),{whatmoreIsPreviewMode:ce,whatmoreWidgetSourceDetails:he}=(0,i.useContext)(r.AppContext),ue=.25*M,me=ue+"px",xe=V?1.5*ue+"px":1.25*ue+"px",[ve,ye]=(0,i.useState)(e.event),[ge,fe]=(0,i.useState)(),[we,be]=(0,i.useState)(!1),je=null!==(s=null===(d=ve.products)||void 0===d?void 0:d.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(p=ve.products)||void 0===p?void 0:p[0],Se=je&&Object.keys(je).length>0,Ie=Math.round(+(null===je||void 0===je?void 0:je.price)),_e=Math.round(+(null===je||void 0===je?void 0:je.compare_price)),Ae=_e&&0!=_e&&_e>Ie?Math.round((_e-Ie)/_e*100):NaN,[Te,Fe]=(0,i.useState)(Ae),[Ne,Me]=(0,i.useState)(!1),[Re,Oe,Ee,De,We,ze]=(0,ke.A)(0,je,ve),Xe="81308287252"===U&&document.body.classList.contains("dark-mode-active")?"white":(0,a.m5c)(U);(0,i.useEffect)(()=>{if("81308287252"===U)return void Me(!0);(0,a.w4b)(U)?(0,$.fu)(ve,(0,a.NCy)(U),U).then(e=>{var t,o,i;ye(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;Fe(l),Me(!0)}):(async()=>{const e=await(0,H.M)(je,(0,a.NCy)(U),U);fe(e),Me(!0)})()},[]);const Be=e=>{if(e.stopPropagation(),V&&null!==je&&void 0!==je&&je.product_link)return(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:he,event:ve,productList:[je],ctaList:ve.cta}),void(window.location.href=je.product_link);const t=he.landingLocationType,o=he.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==ve&&void 0!==ve&&ve.isRelatedEvent?"R":"E")+"_"+(null===ve||void 0===ve?void 0:ve.event_id);"init"==Re.state?(We(i),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:he,event:ve,productList:[je],ctaList:ve.cta}),(0,oe.N$)({widgetSourceDetails:he,event:ve,product:je})):"awaitingVariantSelection"==Re.state&&ze(null,i)},Ue="productVariantDetailsApiCallInProgress"===Re.state||"atcApiCallInProgress"===Re.state,[$e,Ve]=(0,i.useState)(!1),He=(0,i.useRef)(Re.cart_count);return(0,i.useEffect)(()=>{if(Re.cart_count>He.current){He.current=Re.cart_count,Ve(!0);const e=setTimeout(()=>Ve(!1),1600);return()=>clearTimeout(e)}He.current=Re.cart_count},[Re.cart_count]),(0,T.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","12px"),e.style.setProperty("margin-bottom","12px"))},className:te&&!ie?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:M,margin:"0 auto",cursor:"pointer",transform:ie&&V&&!Z?"scale(0.9)":void 0,transformOrigin:"center center",transition:"transform 0.25s ease"},...(0,W.i)(`Play video: ${ve.title||ve.event_id||""}`),onClick:()=>{J(ve)},onMouseEnter:()=>be(!0),onMouseLeave:()=>be(!1),children:["video"===ve.event_type&&"55076552858"===U&&!ie&&(0,T.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*z,marginLeft:z/2},children:(0,T.jsx)(Ce.A,{sx:{color:(0,a.KFN)(ve.whatmoreShopId)+" !important",opacity:.8,fontSize:z,filter:"drop-shadow(0 0 15px black);"}})}),(0,T.jsxs)("div",{style:{width:M,height:ie&&Z?"STR2FOC6KG9"==U||"STRDOIDF6O7"==U||V?F:1.1*F:F,borderRadius:"round"==B?"5px":"0px",boxShadow:"round"==B?pe:null,borderWidth:(0,a.YcK)(U),borderColor:(0,a.Fwt)(U),overflow:"hidden",position:"relative"},children:[(0,T.jsx)(N.A,{height:(0,a.u06)(U)+" !important",width:"100%",url:ve.thumbnail_image,isPlaying:Z||ee,event:ve}),(0,T.jsx)(D,{shopId:U}),"show"===K&&"show"===(0,a.klK)(U)&&(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:ve,fontSize:.07*M+"px"})})})})}),"9238315068"===U&&(we||ie)&&(0,T.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:we||ie?"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:we||ie?"translateY(0)":"translateY(100%)",opacity:we||ie?1:0},onClick:Be,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,T.jsx)("span",{style:{color:"white",fontSize:le,fontFamily:Q,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:"ADD TO CART"})})]}),(0,T.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ce?(0,a.Tr1)(U):(0,a.UmS)(U))&&(null===ve||void 0===ve||null===(c=ve.products)||void 0===c?void 0:c.length)>0&&(0,T.jsx)("div",{style:{height:V?xe:void 0,maxHeight:xe,width:V?me:void 0,maxWidth:me,minWidth:null!==je&&void 0!==je&&je.thumbnail_image?me:"0",flexShrink:0,overflow:"hidden"},children:(0,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",V?"cover":(0,a.KZe)(U),"important")},style:{width:V?"100%":void 0,height:"100%"},src:(null===je||void 0===je||null===(h=je.thumbnail_image)||void 0===h||null===(m=h.split("?"))||void 0===m?void 0:m[0])+(V?"?width=400&height=720":"?width=400&height=400"),alt:"thumbnail"})}),(0,T.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:ie?"2px":"5px"},children:[(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Xe,"important"),e.style.setProperty("font-size",le,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",Q,"important"),e.style.setProperty("-webkit-line-clamp",V?2:1,"important"),e.style.setProperty("line-clamp",V?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"))},children:(0,X.v)(null===je||void 0===je?void 0:je.title)}),Ne&&(0,a.Nzx)(U)&&(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(U)?"row":"row-reverse",justifyContent:(0,a.vw2)(U)?"flex-start":"flex-end"},children:[(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Xe,"important"),e.style.setProperty("font-size",ae,"important"),e.style.setProperty("font-family",Q,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(U)?"normal":"bold"},children:(0,$.Sb)(parseFloat("81308287252"===U?null===je||void 0===je?void 0:je.price:(0,q.U)()?(null!==(v=null===ge||void 0===ge||null===(y=ge.variants)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.price)&&void 0!==v?v:null===ge||void 0===ge?void 0:ge.price)/100:null===je||void 0===je?void 0:je.price),V?"":" ",U,null===(f=ve.products[0])||void 0===f?void 0:f.currency)+(V&&Se&&"5032640601"===U?" USD":"")}),!isNaN(_e)&&_e>Ie&&(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(U),"important"),e.style.setProperty("font-size",ae,"important"),e.style.setProperty("font-family",Q,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,$.Sb)(parseFloat("81308287252"===U?null===je||void 0===je?void 0:je.compare_price:(0,q.U)()?(null!==(w=null===ge||void 0===ge||null===(b=ge.variants)||void 0===b||null===(j=b[0])||void 0===j?void 0:j.compare_at_price)&&void 0!==w?w:null===ge||void 0===ge?void 0:ge.compare_at_price)/100:null===je||void 0===je?void 0:je.compare_price),V?"":" ",U,null===(S=ve.products[0])||void 0===S?void 0:S.currency)+(V&&Se&&"5032640601"===U?" USD":"")}),"56352899156"==U&&(0,a.Nzx)(U)&&Ne&&!isNaN(Te)&&0!=Te&&(0,T.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(U)?"#343434"==G?(0,a.ub$)(U):G:(0,a.ub$)(U),alignItems:"center",borderRadius:(0,a.v8m)(U)+"px",width:"fit-content",padding:"3px 4px"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(U),"important"),e.style.setProperty("font-size",de,"important"),e.style.setProperty("font-family",Q,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${Te}% ${null!==(C=null===Le.m4||void 0===Le.m4||null===(k=Le.m4[Y])||void 0===k?void 0:k.off)&&void 0!==C?C:"off"}`})})]}),(0,a.Nzx)(U)&&Ne&&!isNaN(Te)&&0!=Te&&(0,T.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(U)?"#343434"==G?(0,a.ub$)(U):G:(0,a.ub$)(U),alignItems:"center",borderRadius:(0,a.v8m)(U)+"px",width:"fit-content",padding:(0,a.Cf)(U)?"3px 6px":"0px"},children:(0,a.Cf)(U)?(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(U),"important"),e.style.setProperty("font-size",de,"important"),e.style.setProperty("font-family",Q,"important"))},children:`${Te}% ${null!==(I=null===Le.m4||void 0===Le.m4||null===(_=Le.m4[Y])||void 0===_?void 0:_.off)&&void 0!==I?I:"off"}`}):(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(U),"important"),e.style.setProperty("font-size",de,"important"),e.style.setProperty("font-family",(0,a.ogW)(U),"important"))},children:(0,a.rsz)(U)})}),V&&Se&&(0,T.jsx)("div",{onClick:Be,style:{marginTop:"1px",background:G,borderRadius:"999px",padding:"3px 5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",width:"fit-content"},children:(0,T.jsx)("span",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-family",(0,a.ogW)(U)||Q,"important"))},style:{fontSize:.82*re+"px",fontWeight:"bold",letterSpacing:"0.5px"},children:(0,a.KPq)(U)||"SHOP NOW"})})]}),ne&&Se&&(0,T.jsx)("div",{onClick:Be,role:"button","aria-label":"Add to cart",className:"wht-atc-round"+($e?" wht-atc-round--done":""),style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,alignSelf:"center",marginLeft:"auto",width:2.4*se+"px",height:2.4*se+"px",borderRadius:"50%",backgroundColor:"transparent",border:`2px solid ${G}`,boxSizing:"border-box",cursor:"pointer",lineHeight:1},children:Ue?(0,T.jsx)("span",{className:"wht-atc-spinner",style:{width:"52%",height:"52%",borderColor:"rgba(0,0,0,0.12)",borderTopColor:G}}):$e?(0,T.jsx)("svg",{className:"wht-atc-icon-enter",viewBox:"0 0 24 24",width:"62%",height:"62%",fill:"none",children:(0,T.jsx)("path",{className:"wht-atc-check",d:"M5 12.5l4.5 4.5L19 7",stroke:G,strokeWidth:"2.8",strokeLinecap:"round",strokeLinejoin:"round"})},"check"):(0,T.jsx)("svg",{className:"wht-atc-icon-enter",viewBox:"0 0 24 24",width:"58%",height:"58%",fill:"none",children:(0,T.jsx)("path",{d:"M12 5v14M5 12h14",stroke:G,strokeWidth:"2.8",strokeLinecap:"round"})},"plus")}),""!=(null===ve||void 0===ve?void 0:ve.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,T.jsx)("div",{className:"wht-video-title",style:{display:"none",justifyContent:"center",borderRadius:"5px",alignItems:"center",padding:"6px 8px"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#343434"),e.style.setProperty("font-size",le,"important"),e.style.setProperty("font-family",Q,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-align","center","important"))},children:null===ve||void 0===ve?void 0:ve.title})})]})]})};const lt=(0,j.A)({key:"whatmore-css-hv"});function st(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.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,T.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"whatmore-swiper-button-prev"}),(0,T.jsx)("div",{className:"whatmore-swiper-button-next"})]}),(0,T.jsx)(S.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:[C.s3,C.Jq,...(0,a.JSQ)(c)?[C.Vx]:[],..."79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c||"5032640601"===c||"53425012925"===c?[C.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||"5032640601"===c||"53425012925"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},children:h.map((e,t)=>t<=y&&(0,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,a.DmD)(c)?(0,T.jsx)(rt,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(Me,{isOnFocus:("51394281658"==c||"55820812447"==c||t)&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-portrait-"+e.index))})]})})}function at(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||"5032640601"==c||"53425012925"==c?1:g,w=Math.floor(Math.min(4,u.length)),{whatmoreWidgetSourceDetails:b,whatmoreCollectionId:j}=(0,i.useContext)(r.AppContext),k=!("79550939348"===c&&"448768901332"===j)&&(0,a.aO7)(c),I=(0,i.useRef)(!1),A=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(A.current){const e="8968077397"===c&&u.length>=4?.7:(0,a.fHt)(c),t=o*g*e+"px";u.length<4||"8968077397"===c?A.current.style.setProperty("width",t,"important"):A.current.style.width=t}},[o,g,c,v,u.length]),(0,i.useEffect)(()=>{v<=l&&y(e=>e+l)},[l]),(0,T.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px"},className:"whatmore-events-carousel-landscape",children:(0,T.jsx)("div",{ref:A,style:{height:"100%"},children:(0,T.jsx)(S.RC,{slidesPerView:"8968077397"==c?w:g,watchSlidesProgress:!0,modules:[C.s3,C.Jq,C.Vx,C.Ij],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:"8968077397"==c||"19501891"==c?Math.min(2,u.length):parseInt(f),onTouchStart:()=>{I.current=!0},onSlideChange:e=>{I.current&&(I.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b})),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||"5032640601"===c||"53425012925"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},style:{height:"100%"},children:u.map((e,t)=>{const o=_()(()=>p(t),300);return t<=v&&(0,T.jsx)(S.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,T.jsx)(rt,{isOnFocus:t==d,playOnUnfocus:!k||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,T.jsx)(Me,{isOnFocus:t==d,playOnUnfocus:!k||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var dt=function(e){const[t,o,l]=(0,k.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 j(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,T.jsx)(b.C,{value:lt,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsx)(T.Fragment,{}),"landscape"===t?"90518552861"===s||"63512346790"===s?(0,T.jsx)(st,{events:x,onClick:j}):(0,T.jsx)(at,{events:x,onClick:j}):(0,T.jsx)(st,{events:x,onClick:j})]})})})})},pt=o(6232);var ct=function({productList:e,firstAvailableProduct:t,setFirstAvailableProduct:o,tileWidth:i}){const r=.06*i,l=r+"px",[s]=(0,n.QN)("whatmorePrimaryFont");return(0,T.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,T.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,T.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*i,overflowY:"auto",paddingBottom:"12px"},children:e.map((e,i)=>(0,T.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,T.jsx)("img",{src:(0,V.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,T.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 ht=function(e){var t,o,l,s,c,h,m,v,y,g,f,w,b,j,S,C,k,I,_,F,M,R,O,E,z,B,U;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"),be=null!==(l=e.animateOnFocus&&(0,a.n5O)(Z))&&void 0!==l&&l,[je,Se]=(0,i.useState)(!1),Ce=(0,n.Xd)("whatmorePrimaryFont"),[Ie,_e]=(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]),Ae=Ie&&Object.keys(Ie).length>0;let Te,Fe,Ne;Te=parseFloat(null===Ie||void 0===Ie?void 0:Ie.price),Fe=parseFloat(null===Ie||void 0===Ie?void 0:Ie.compare_price),Ne=Fe&&0!=Fe&&Fe>Te?Math.round((Fe-Te)/Fe*100):NaN;const[Me,Re]=(0,i.useState)(Ne),[Oe,Ee]=(0,i.useState)(),{whatmoreIsPreviewMode:De,whatmoreWidgetSourceDetails:We,whatmoreUserInfo:ze}=(0,i.useContext)(r.AppContext),[Xe,Be]=(0,i.useState)(!1),[Ue,$e,Ve,He,qe,Ge]=(0,ke.A)(0,Ie,pe),Ye=Ae&&(0,a.mRH)(Z),Ke=Ae&&(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),it="74714218724"===Z||"76767920441"===Z||"55840899223"===Z||"16957273"===Z||"5032640601"===Z||"53425012925"===Z,nt=.25*G,rt=it&&ie?.72*le+"px":se,lt=it&&ie?.72*ae+"px":de,[st,at]=(0,i.useState)(null),[dt,ht]=(0,i.useState)(!1),ut=("64287408360"===Z||"66947219508"===Z)&&Oe&&Oe.options&&1===Oe.options.length&&Oe.variants&&Oe.variants.length>0,mt=ut?Oe.variants.filter(e=>e.available):[];(0,i.useEffect)(()=>{if("6573064236"!==Z){if(Ae&&(0,a.w4b)(Z)&&(0,$.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)&&Re(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.discount),Se(!0)}),Ae){(async()=>{let e=Ie;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,H.M)(null===pe||void 0===pe?void 0:pe.products[i],(0,a.NCy)(Z),Z);if(null!==o&&void 0!==o&&o.available){_e(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,H.M)(e,(0,a.NCy)(Z),Z);Ee(o),Se(!0)})()}}else Se(!0)},[Ae]),(0,i.useEffect)(()=>{if(Ae){if("6573064236"===Z)return void Se(!0);(async()=>{const e=await(0,H.M)(Ie,(0,a.NCy)(Z),Z);Ee(e),Se(!0)})()}},[Ie]),(0,i.useEffect)(()=>{ut&&mt.length>0&&!st&&at(mt[0])},[ut,mt,st]),(0,i.useEffect)(()=>{if("awaitingVariantSelection"===Ue.state&&st&&ut&&!dt){const e=We.landingLocationType,t=We.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 : ",st.option1),Ge([st.option1,null,null],o)}},[Ue]);const xt=async e=>{if(("6573064236"===Z||"5032640601"===Z||"53425012925"===Z)&&null!==Ie&&void 0!==Ie&&Ie.product_link)return e.stopPropagation(),void(window.location.href=Ie.product_link);if(e.stopPropagation(),!Ae)return;if(ut)return void ht(!0);ue(!0);const t=We.landingLocationType,o=We.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===ze||void 0===ze?void 0:ze.userType),"init"==Ue.state?(qe(i,!0),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:We,event:pe,productList:[Ie],ctaList:pe.cta}),(0,oe.N$)({widgetSourceDetails:We,event:pe,product:Ie})):"awaitingVariantSelection"==Ue.state&&Ge(null,i),setTimeout(()=>{ue(!1),ot(!1)},3e3)},vt=ie?"36px":"44px",yt=it&&ie?{width:.25*G,height:.33*G}:it?{width:1.1*nt,height:1.45*nt}:null;return(0,T.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",xe.tileTopMargin+"px"),e.style.setProperty("margin-bottom",xe.tileBottomMMargin+"px"))},className:be&&!ie?ve?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:it&&!ie?1.1*G:G,position:"relative"},...(0,W.i)(`Play video: ${pe.title||pe.event_id||""}`),onClick:()=>{ge(pe)},onMouseEnter:()=>Be(!0),onMouseLeave:()=>Be(!1),children:[(0,T.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,T.jsx)(N.A,{height:(0,a.u06)(Z)+" !important",width:"100%",url:pe.thumbnail_image,isPlaying:ve||ye||(0,p.At)(),event:pe}),(0,T.jsx)(D,{shopId:Z}),"show"===te&&"show"===(0,a.klK)(Z)&&(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:pe,fontSize:.07*G+"px"})})})})}),Ke&&Ae&&(Xe||ie)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{style:{position:"absolute",bottom:vt,left:0,right:0,display:tt?"block":"none"},children:(0,T.jsx)(ct,{productList:pe.products,firstAvailableProduct:Ie,setFirstAvailableProduct:_e,tileWidth:G})}),(0,T.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:Xe||ie?"translateY(0)":"translateY(100%)",opacity:Xe||ie?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:xt,children:[(0,T.jsx)("div",{style:{flex:1,textAlign:"center",color:Ze,fontSize:"12px",fontFamily:Ce,fontWeight:"500",letterSpacing:"0.5px"},children:he?(0,T.jsx)(Qe.y,{size:"sm",color:"white"}):et}),(0,T.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Ze}`,opacity:.5}}),(0,T.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,T.jsx)(pt.A,{sx:{fontSize:2*ne}})})]})]})]}),(0,T.jsxs)("div",{className:"wht-prod-info",style:{display:(0,a.AmR)(Z)?"flex":"none",flexDirection:"row",padding:it&&!ie?"8px 4px":"12px 4px",gap:it&&!ie?"8px":"12px",alignItems:"stretch",minHeight:"auto"},children:[it&&Ae&&yt&&(0,T.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(Z),"important")},src:(0,V.b)((null===Ie||void 0===Ie?void 0:Ie.thumbnail_image)||(null===Ie||void 0===Ie?void 0:Ie.image)||(null===Ie||void 0===Ie?void 0:Ie.featured_image),"&width=400&height=400"),alt:null===Ie||void 0===Ie?void 0:Ie.title,style:{width:yt.width,height:yt.height,borderRadius:"round"==fe?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:ie?"0px":"-3px"}})}),(0,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:it&&!ie?"3px":"5px",flex:1,minWidth:0},children:[Ae&&(0,T.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",Ce,"important"),e.style.setProperty("-webkit-line-clamp","55840899223"===Z||"5032640601"===Z||"53425012925"===Z?"2":"1","important"),e.style.setProperty("line-clamp","55840899223"===Z||"5032640601"===Z||"53425012925"===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===Ie||void 0===Ie?void 0:Ie.title)}),Ae&&je&&(0,a.Nzx)(Z)&&(0,T.jsxs)("div",{style:{display:"flex",gap:it&&ie?"2px":"12px",flexDirection:(0,a.vw2)(Z)?"row":"row-reverse",justifyContent:(0,a.vw2)(Z)?"flex-start":"flex-end",alignItems:"center",flexWrap:it&&ie?"nowrap":"wrap",overflow:it&&ie?"visible":"initial"},children:[(0,T.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)(Z),"important");const t="45034766485"==Z&&"product"==ee?"8px":rt;e.style.setProperty("font-size",t),e.style.setProperty("font-family",Ce,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-align","left","important"),e.style.setProperty("width","auto","important"),it&&ie&&e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"normal"==(0,a.i6j)(Z)?"normal":"bold"},children:(0,$.Sb)(parseFloat((0,q.U)()?(null!==(m=null===Oe||void 0===Oe||null===(v=Oe.variants)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.price)&&void 0!==m?m:null===Oe||void 0===Oe?void 0:Oe.price)?(null!==(g=null===Oe||void 0===Oe||null===(f=Oe.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.price)&&void 0!==g?g:null===Oe||void 0===Oe?void 0:Oe.price)/100:Te:Te>0?Te:null===Ie||void 0===Ie?void 0:Ie.price_max),"5032640601"===Z||"53425012925"===Z?"":" ",Z,null===(b=pe.products[0])||void 0===b?void 0:b.currency)+("5032640601"===Z?" USD":"")}),!isNaN(Fe)&&Fe>Te&&(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(Z),"important"),e.style.setProperty("font-size",rt),e.style.setProperty("font-family",Ce,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("width","auto","important"),it&&ie&&e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,$.Sb)(parseFloat((0,q.U)()&&(null!==(j=null===Oe||void 0===Oe||null===(S=Oe.variants)||void 0===S||null===(C=S[0])||void 0===C?void 0:C.compare_at_price)&&void 0!==j?j:null===Oe||void 0===Oe?void 0:Oe.compare_at_price)?(null!==(k=null===Oe||void 0===Oe||null===(I=Oe.variants)||void 0===I||null===(_=I[0])||void 0===_?void 0:_.compare_at_price)&&void 0!==k?k:null===Oe||void 0===Oe?void 0:Oe.compare_at_price)/100:Fe),"5032640601"===Z||"53425012925"===Z?"":" ",Z,null===(F=pe.products[0])||void 0===F?void 0:F.currency)+("5032640601"===Z?" USD":"")}),(0,a.Nzx)(Z)&&!isNaN(Me)&&0!=Me&&je&&Ye&&(0,T.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)?it&&ie?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:it&&ie?"nowrap":"normal"},children:(0,a.Cf)(Z)?(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(Z),"important"),e.style.setProperty("font-size",lt,"important"),e.style.setProperty("font-family",Ce,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Me}% ${null!==(M=null===Le.m4||void 0===Le.m4||null===(R=Le.m4[we])||void 0===R?void 0:R.off)&&void 0!==M?M:"off"}`}):(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(Z),"important"),e.style.setProperty("font-size",lt,"important"),e.style.setProperty("font-family",(0,a.ogW)(Z),"important"))},children:(0,a.rsz)(Z)})})]}),Ae&&(0,a.Nzx)(Z)&&!isNaN(Me)&&0!=Me&&je&&!Ye&&(0,T.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)?it&&ie?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:it&&ie?"nowrap":"normal"},children:(0,a.Cf)(Z)?(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(Z),"important"),e.style.setProperty("font-size",lt,"important"),e.style.setProperty("font-family",Ce,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Me}% ${null!==(O=null===Le.m4||void 0===Le.m4||null===(E=Le.m4[we])||void 0===E?void 0:E.off)&&void 0!==O?O:"off"}`}):(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(Z),"important"),e.style.setProperty("font-size",lt,"important"),e.style.setProperty("font-family",(0,a.ogW)(Z),"important"))},children:(0,a.rsz)(Z)})}),Ye&&(0,T.jsx)("button",{style:{backgroundColor:me,display:"flex",justifyContent:"center",alignItems:"center",color:"white",borderRadius:"4px",padding:it&&ie?"6px 8px":"8px 16px",fontSize:it&&ie?.8*ne+"px":re,fontFamily:Ce,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:it&&ie?"0.3px":"0.5px",transition:"opacity 0.2s ease",width:it&&ie?"100%":"95%",marginTop:it&&ie?"auto":it?"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,T.jsx)(Qe.y,{size:"sm",display:"flex !important",color:"white"}):et})]})]}),ut&&dt&&(0,T.jsx)("div",{onClick:e=>{e.stopPropagation(),ht(!1)},style:{position:"absolute",bottom:ie?"25px":"10px",left:0,right:0,zIndex:1e4},children:(0,T.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,T.jsx)("div",{style:{width:ie?"30px":"45px",height:"3px",backgroundColor:"#ccc",borderRadius:"2px",margin:ie?"0 auto 2px":"0 auto 4px"}}),(0,T.jsx)("h3",{style:{fontSize:ie?"10px":"12px",fontFamily:Ce,fontWeight:"500",textAlign:"center",margin:ie?"0 0 5px 0":"0 0 8px 0",color:"#000"},children:(null===Oe||void 0===Oe||null===(z=Oe.options)||void 0===z||null===(B=z[0])||void 0===B?void 0:B.name)||"Variant"}),(0,T.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:ie?"5px":"8px",marginBottom:ie?"5px":"8px",justifyContent:"center"},children:null===Oe||void 0===Oe||null===(U=Oe.variants)||void 0===U?void 0:U.map(e=>(0,T.jsx)("div",{onClick:()=>{e.available&&at(e)},style:{padding:ie?"4px 4px":"6px 8px",borderRadius:ie?"4px":"5px",border:`1px solid ${(null===st||void 0===st?void 0:st.id)===e.id?"white":me}`,textAlign:"center",cursor:e.available?"pointer":"not-allowed",fontSize:ie?"7px":"10px",fontFamily:Ce,fontWeight:"200",backgroundColor:(null===st||void 0===st?void 0:st.id)===e.id?me:"white",color:(null===st||void 0===st?void 0:st.id)===e.id?"white":me,textDecoration:e.available?"none":"line-through",whiteSpace:"nowrap",opacity:e.available?1:.5,boxShadow:(null===st||void 0===st?void 0:st.id)===e.id?"0px 1px 8px 0px rgba(0,0,0,0.18)":"none"},children:e.option1},e.id))}),(0,T.jsxs)("div",{style:{display:"flex",gap:ie?"5px":"6px"},children:[(0,T.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:Ce,fontWeight:"600",cursor:"pointer",border:"1px solid #ddd"},children:"Cancel"}),(0,T.jsx)("button",{onClick:async()=>{ht(!1),ue(!0);const e=We.landingLocationType,t=We.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===ze||void 0===ze?void 0:ze.userType),(0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:We,event:pe,productList:[Ie],ctaList:pe.cta}),(0,oe.N$)({widgetSourceDetails:We,event:pe,product:Ie}),"init"==Ue.state?qe(o,!1):"awaitingVariantSelection"==Ue.state&&Ge([null===st||void 0===st?void 0:st.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:Ce,fontWeight:"600",cursor:"pointer"},children:"Done"})]})]})})]})};const ut=(0,j.A)({key:"whatmore-css-hv"});function mt(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),[b,j]=(0,i.useState)({touchX:0,touchY:0}),S=()=>(0,T.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,T.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),C=()=>(0,T.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,T.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),k=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,T.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=>{j({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)-b.touchX,l=(null===(i=e.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-b.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&k(r>0?"prev":"next")},children:[(0,a.JSQ)(s)&&(0,T.jsxs)(T.Fragment,{children:[g<=p.length+u&&(0,T.jsx)("div",{onClick:()=>k("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,T.jsx)(S,{})}),g>2*u&&(0,T.jsx)("div",{onClick:()=>k("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,T.jsx)(C,{})})]}),(0,T.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,T.jsx)("div",{children:(0,T.jsx)(ht,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>c(e)})},`whatmore-carousel-tile-${t}`)}return(0,T.jsx)(F,{})})})]})}function xt(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),b=0===(0,a.If9)(c)?24:(0,a.If9)(c),j=()=>(0,T.jsx)("div",{children:(0,T.jsx)("button",{onClick:I,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,T.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),S=()=>(0,T.jsx)("div",{children:(0,T.jsx)("button",{onClick:k,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,T.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,i.useEffect)(()=>{f<=g&&w(e=>e+g)},[g]);const C=()=>{p(-1)},k=()=>{f!==g&&(u("prev"),w(e=>Math.max(Math.ceil(e-l),g)),(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},I=()=>{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,F=f>=v.length?v.length:A+g,N=v.slice(A,F);return(0,T.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,T.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:s+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,T.jsx)(S,{})}),(0,T.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:b+"px",width:o*l*(0,a.fHt)(c)+"px",justifyContent:v.length>g?"flex-start":"center",overflow:"auto"},children:N.map((e,t)=>{const o=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,i=t===d;return(0,T.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:C,children:(0,T.jsx)(ht,{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,T.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:s+"px",transform:"translateY(-65%)"},children:(0,T.jsx)(j,{})})]})}function vt(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),b=0===(0,a.If9)(c)?24:(0,a.If9)(c),[j,S]=(0,i.useState)(!1),[C,k]=(0,i.useState)(0),[I,A]=(0,i.useState)(0),F=({disabled:e})=>(0,T.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,T.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),N=({disabled:e})=>(0,T.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,T.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 M=()=>{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,D=f>=v.length?v.length:E+g,W=v.slice(E,D);return(0,T.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:`${t+60}px`,paddingBottom:"50px"},children:[(0,T.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${s}px`,paddingRight:`${s}px`,cursor:j?"grabbing":"grab",userSelect:"none"},onMouseDown:e=>{S(!0),k(e.clientX),A(e.clientY)},onMouseMove:e=>{j&&e.preventDefault()},onMouseUp:e=>{if(!j)return;S(!1);const t=e.clientX-C,o=e.clientY-I;Math.sqrt(t**2+o**2)>50&&Math.abs(t)>Math.abs(o)&&(t>0?R():O())},onMouseLeave:()=>{j&&S(!1)},onTouchStart:e=>{S(!0),k(e.touches[0].clientX),A(e.touches[0].clientY)},onTouchMove:e=>{},onTouchEnd:e=>{if(!j)return;S(!1);const t=e.changedTouches[0].clientX-C,o=e.changedTouches[0].clientY-I;Math.sqrt(t**2+o**2)>50&&Math.abs(t)>Math.abs(o)&&(t>0?R():O())},children:(0,T.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:b+"px",width:o*l*(0,a.fHt)(c)+"px",justifyContent:v.length>g?"flex-start":"center",overflow:"auto"},children:W.map((e,t)=>{const o=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,i=t===d;return(0,T.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:M,children:(0,T.jsx)(ht,{isOnFocus:i,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>(e=>{m(e)})(e)})},o)})})}),(0,T.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,T.jsx)(N,{disabled:f===g}),(0,T.jsx)(F,{disabled:f>=v.length})]})]})}function yt(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),b=0===(0,a.If9)(s)?24:(0,a.If9)(s),j=(0,i.useRef)({touchX:0,touchY:0}),S=(0,i.useRef)(!1),C=({disabled:e})=>(0,T.jsx)("button",{onClick:e?void 0:()=>I("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,T.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),k=({disabled:e})=>(0,T.jsx)("button",{onClick:e?void 0:()=>I("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,T.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),I=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,T.jsx)("div",{style:{width:"100%",overflow:"hidden",paddingBottom:"50px"},children:(0,T.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")||(S.current=!1,j.current={touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchMove:e=>{if(0===j.current.touchX&&0===j.current.touchY)return;const t=e.touches[0].clientX-j.current.touchX,o=e.touches[0].clientY-j.current.touchY;Math.sqrt(t**2+o**2)>10&&!S.current&&(S.current=!0)},onTouchEnd:e=>{var t,o,i,n;if(e.target.closest("button"))return;if(!S.current)return void(j.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)-j.current.touchX,l=(null===(i=e.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-j.current.touchY;Math.sqrt(r**2+l**2)>50&&Math.abs(r)>Math.abs(l)&&I(r>0?"prev":"next"),j.current={touchX:0,touchY:0},S.current=!1},children:[(0,T.jsx)("div",{style:{display:"flex",gap:b,transform:`translateX(-${(f-v)*(o+b)}px)`,transition:"transform 0.4s ease-in-out"},children:p.map((e,t)=>t<y?(0,T.jsx)("div",{children:(0,T.jsx)(ht,{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,T.jsx)(F,{}))}),(0,T.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,T.jsx)(k,{disabled:f<=2*m}),(0,T.jsx)(C,{disabled:f>=p.length+1})]})]})})}var gt=function(e){const[t,o,l]=(0,k.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,j=c;function S(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,T.jsx)(b.C,{value:ut,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:u,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||x?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==s?"flex-start":"center"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",j,"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,T.jsx)(T.Fragment,{}),"landscape"===t?"6573064236"===s?(0,T.jsx)(vt,{events:v,onClick:S}):(0,T.jsx)(xt,{events:v,onClick:S}):(0,T.jsxs)(T.Fragment,{children:["6573064236"===s?(0,T.jsx)(yt,{events:v,onClick:S}):(0,T.jsx)(mt,{events:"45034766485"==s?v.slice(0,5):v,onClick:S}),"45034766485"==s&&(0,T.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,T.jsx)(Re,{baseFontSize:.5*h,onClick:()=>S(null===v||void 0===v?void 0:v[5])})})]})]})})})})};function ft(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,z.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,T.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,T.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,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,T.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,T.jsx)(L.A,{event:x,fontSize:.07*l+"px"}),"56411783377"===o&&(0,T.jsx)(J,{width:.15*l,height:.15*l})]})}):null,(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)("p",{children:" "})}),(0,T.jsx)("div",{ref:h,children:v&&(0,a.imx)(o)?(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)(_e,{event:x})}):(0,T.jsx)("div",{height:"20px"})}),y&&(0,T.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,T.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,T.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,T.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,T.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 wt=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"),b=(0,n.Xd)("whatmoreSecondaryColor"),j=e.event,S=e.onClick,C=null===(t=e.isOnFocus)||void 0===t||t,k=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,I=null!==(r=e.animateOnFocus&&(0,a.n5O)(f))&&void 0!==r&&r,_=(0,a.VYo)(f);return(0,T.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:I?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",...(0,W.i)(`Play video: ${j.title||j.event_id||""}`),onClick:()=>{var e,t,o;if("12326200"==f&&"image"==j.event_type&&(null===(e=j.products)||void 0===e?void 0:e.length)>0&&"oos"!=(null===(t=j.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.product_status)){var i,n;window.location.href=null===(i=j.products)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.product_link}else{if("12326200"==f&&"image"==j.event_type)return;var r,l,s,a,d,p,c,h,u,m,x,v,y,g,w,b;if("10588815418"==f){if(null!==(r=j.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=j.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(p=j.cta)||void 0===p||null===(c=p[1])||void 0===c?void 0:c.cta_title))window.location.href=null===(w=j.cta)||void 0===w||null===(b=w[1])||void 0===b?void 0:b.cta_link;else if(null!==(h=j.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(m=u.cta_link)&&void 0!==m&&m.includes("whatmore")&&""!=(null===(x=j.cta)||void 0===x||null===(v=x[0])||void 0===v?void 0:v.cta_link)&&""==(null===(y=j.cta)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.cta_title)){var C,P;window.location.href=null===(C=j.cta)||void 0===C||null===(P=C[0])||void 0===P?void 0:P.cta_link}}else S(j)}},children:[(0,T.jsx)(N.A,{height:(0,a.u06)(f)+" !important",width:"100%",url:j.thumbnail_image,isPlaying:C||k,event:j}),(0,T.jsx)(D,{shopId:f}),""!==(null===j||void 0===j?void 0:j.title)?(0,T.jsxs)(T.Fragment,{children:[(0,T.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,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,T.jsx)("p",{style:{fontFamily:w,fontSize:.1*u+"px",fontWeight:"600"},children:"12326200"==f?null===j||void 0===j||null===(l=j.title)||void 0===l?void 0:l.slice(7):null===j||void 0===j?void 0:j.title}),"12326200"==f&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*u+"px",fontWeight:"normal"},children:null===j||void 0===j||null===(s=j.title)||void 0===s?void 0:s.slice(0,7)}),(null===(d=j.products)||void 0===d?void 0:d.length)>0&&"oos"!=(null===(p=j.products)||void 0===p||null===(c=p[0])||void 0===c?void 0:c.product_status)&&(0,T.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:b,padding:"8px 28px"},children:(0,T.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*u+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,T.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,T.jsx)(Ae.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(f)&&(0,T.jsxs)("div",{style:{width:u,height:h},children:[(0,T.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,T.jsx)(ft,{event:j,unfocusedDisplay:!C,isOnFocus:C})]})]})};const bt=(0,j.A)({key:"whatmore-css-hv"});function jt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m=l*(0,a.kcl)(c),v=(0,a.cbh)(c),y="6573064236"===c?1.5:"61089480876"===c?2.5:2,[g,f]=(0,i.useState)(v?h.length:Math.max(m,y)),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(r.AppContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{g<=m&&f(e=>e+m)},[m]);const j="6573064236"===c?.9*p:p;return(0,T.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:j,height:"fit-content"},children:(0,T.jsx)(S.RC,{slidesPerView:y,spaceBetween:20,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onTouchStart:()=>{b.current=!0},onSlideChange:e=>{b.current&&(b.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w})),e.realIndex>e.previousIndex&&f(e=>e+m)},loop:v,modules:[C.s3,C.Jq,...(0,a.JSQ)(c)?[C.Vx]:[]],keyboard:{enabled:!0},navigation:(0,a.JSQ)(c),children:h.map((e,t)=>t<=g&&(0,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>n||o||i||t?(0,T.jsx)(wt,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function St(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),b=(0,i.useRef)(!1),j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(j.current){const e=o*f*(0,a.fHt)(c)+"px";m.length<4?j.current.style.setProperty("width",e,"important"):j.current.style.width=e}},[o,f,c,y,m.length]),(0,i.useEffect)(()=>{y<=l&&g(e=>e+l)},[l]),(0,T.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:s+"px",paddingRight:s+"px"},className:"whatmore-events-carousel-landscape",children:(0,T.jsx)("div",{ref:j,style:{height:"100%"},children:(0,T.jsx)(S.RC,{slidesPerView:"product"===h&&"87174349065"===c?2:f,watchSlidesProgress:!0,modules:[C.s3,C.Jq,C.Vx],keyboard:{enabled:!0},navigation:!0,slidesPerGroup:parseInt(f),onTouchStart:()=>{b.current=!0},onSlideChange:e=>{b.current&&(b.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,T.jsx)(S.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,T.jsx)(wt,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(f/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var Ct=function(e){const[t,o,l]=(0,k.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 j(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,T.jsx)(b.C,{value:bt,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsx)(T.Fragment,{}),"landscape"===t?(0,T.jsx)(St,{events:x,onClick:j}):(0,T.jsx)(jt,{events:x,onClick:j})]})})})})},Pt=o(9263),kt=o(6720),It=o(6532),_t=o(4338);var At=function(e){const[t]=(0,n.QN)("whatmoreShopId"),o=e.isMuted,i=e.setIsMuted,[r,l,s,d]=(0,Pt.A)(),p=.1*d;function c(){i(!o)}return!0===(0,a.GZ2)(t)?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(je.o,{children:(0,T.jsx)(de.jl,{cursor:"pointer",children:o?(0,T.jsx)(_t.A,{sx:{color:"white",fontSize:p,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{c()}}):(0,T.jsx)(It.A,{sx:{color:"white",fontSize:p,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{c()}})})})},Tt=o(4018);var Ft=function(e){var t,o,l,s,d,p,c,h,u,m,v,y,g,f,w,b,j,S,C,k,I,_,A,F,[N,M,R,O,E]=(0,P.A)();M*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,N*=null!==(o=e.scaleFactor)&&void 0!==o?o:1;const z=(0,n.Xd)("whatmoreUITheme"),B=(0,n.Xd)("whatmoreShopId"),U="5032640601"===B||"53425012925"===B,V=(0,n.Xd)("whatmorePrimaryFont"),Q=(0,n.Xd)("whatmoreSecondaryColor"),G=(0,n.Xd)("websiteLanguage"),[Y]=(0,n.QN)("whatmoreShowViews"),K=e.onClick,J=null===(l=e.isOnFocus)||void 0===l||l,Z=null!==(s=e.playOnUnfocus)&&void 0!==s&&s,ee=null===(d=e.is3DTemplateMuted)||void 0===d||d,te=e.setIs3DTemplateMuted,ie="portrait"===E[Pe.dl],ne=ie?1.076*M*(0,a.HWj)(B):M*(0,a.N_4)(B),re=ne+"px",le=(ie?1.076*M*(0,a.HWj)(B):M*(0,a.N_4)(B))+"px",se=(ie?.965*M*(0,a.HWj)(B):.859*M*(0,a.N_4)(B))+"px",ae=(0,a.VYo)(B),{whatmoreIsPreviewMode:de,whatmoreWidgetSourceDetails:pe}=(0,i.useContext)(r.AppContext),ce=.25*M,he=ce+"px",ue=1.25*ce+"px",[me,xe]=(0,i.useState)(e.event),[ve,ye]=(0,i.useState)(),ge=null!==(p=null===(c=me.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==p?p:null===(h=me.products)||void 0===h?void 0:h[0],fe=ge&&Object.keys(ge).length>0,we=Math.round(+(null===ge||void 0===ge?void 0:ge.price)),be=Math.round(+(null===ge||void 0===ge?void 0:ge.compare_price)),je=be&&0!=be&&be>we?Math.round((be-we)/be*100):NaN,[Se,Ce]=(0,i.useState)(je),[ke,Ie]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(0,a.w4b)(B)?(0,$.fu)(me,(0,a.NCy)(B),B).then(e=>{var t,o,i;xe(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),Ie(!0)}):(async()=>{const e=await(0,H.M)(ge,(0,a.NCy)(B),B);ye(e),Ie(!0)})()},[]),(0,T.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:J||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},...(0,W.i)(`Play video: ${me.title||me.event_id||""}`),onClick:()=>{K(me)},children:[(0,T.jsxs)("div",{style:{position:"relative",width:M,height:N,borderRadius:"round"==z?"5px":"0px",boxShadow:"round"==z?ae:null,borderWidth:(0,a.YcK)(B),borderColor:(0,a.Fwt)(B),overflow:"hidden"},children:[(0,T.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:J||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,T.jsx)(At,{isMuted:ee,setIsMuted:te})}),"show"===Y&&"show"===(0,a.klK)(B)&&(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:me,fontSize:.07*M+"px"})})})})}),(0,T.jsx)(kt.A,{height:"100%",width:"100%",url:null!==(u=null===me||void 0===me?void 0:me.event_hls_url)&&void 0!==u?u:null===me||void 0===me?void 0:me.thumbnail_image,isPlaying:J||Z,event:me,isVideoMuted:ee}),(0,T.jsx)(D,{shopId:B})]}),(0,T.jsxs)("div",{className:U?"wht-prod-row":void 0,style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(de?(0,a.Tr1)(B):(0,a.UmS)(B))&&(null===me||void 0===me||null===(m=me.products)||void 0===m?void 0:m.length)>0&&(0,T.jsx)("div",{style:{maxHeight:ue,maxWidth:he,minWidth:null!==ge&&void 0!==ge&&ge.thumbnail_image?he:"0",overflow:"hidden"},children:(0,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(B),"important")},style:{height:"100%"},src:(null===ge||void 0===ge||null===(v=ge.thumbnail_image)||void 0===v||null===(y=v.split("?"))||void 0===y?void 0:y[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,T.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:U?"2px":"5px"},children:[(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(B),"important"),e.style.setProperty("font-size",re,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",V,"important"),e.style.setProperty("-webkit-line-clamp",U?2:1,"important"),e.style.setProperty("line-clamp",U?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"))},children:(0,X.v)(null===ge||void 0===ge?void 0:ge.title)}),ke&&(0,a.Nzx)(B)&&(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(B)?"row":"row-reverse",justifyContent:(0,a.vw2)(B)?"flex-start":"flex-end"},children:[(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(B),"important"),e.style.setProperty("font-size",le,"important"),e.style.setProperty("font-family",V,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(B)?"normal":"bold"},children:(0,$.Sb)(parseFloat((0,q.U)()?(null!==(g=null===ve||void 0===ve||null===(f=ve.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.price)&&void 0!==g?g:null===ve||void 0===ve?void 0:ve.price)/100:null===ge||void 0===ge?void 0:ge.price),U?"":" ",B,null===(b=me.products[0])||void 0===b?void 0:b.currency)+(U&&fe&&"5032640601"===B?" USD":"")}),!isNaN(be)&&be>we&&(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(B),"important"),e.style.setProperty("font-size",le,"important"),e.style.setProperty("font-family",V,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==we?"line-through":"none"},children:(0,$.Sb)(parseFloat((0,q.U)()?(null!==(j=null===ve||void 0===ve||null===(S=ve.variants)||void 0===S||null===(C=S[0])||void 0===C?void 0:C.compare_at_price)&&void 0!==j?j:null===ve||void 0===ve?void 0:ve.compare_at_price)/100:null===ge||void 0===ge?void 0:ge.compare_price),U?"":" ",B,null===(k=me.products[0])||void 0===k?void 0:k.currency)+(U&&fe&&"5032640601"===B?" USD":"")}),"56352899156"==B&&(0,a.Nzx)(B)&&ke&&!isNaN(Se)&&0!=Se&&(0,T.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(B)?"#343434"==Q?(0,a.ub$)(B):Q:(0,a.ub$)(B),alignItems:"center",borderRadius:(0,a.v8m)(B)+"px",width:"fit-content",padding:"3px 4px"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(B),"important"),e.style.setProperty("font-size",se,"important"),e.style.setProperty("font-family",V,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${Se}% ${null!==(I=null===Le.m4||void 0===Le.m4||null===(_=Le.m4[G])||void 0===_?void 0:_.off)&&void 0!==I?I:"off"}`})})]}),(J||e.isActive)&&(0,a.Nzx)(B)&&ke&&!isNaN(Se)&&0!=Se&&(0,T.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(B)?"#343434"==Q?(0,a.ub$)(B):Q:(0,a.ub$)(B),alignItems:"center",borderRadius:(0,a.v8m)(B)+"px",width:"fit-content",padding:(0,a.Cf)(B)?"3px 6px":"0px"},children:(0,a.Cf)(B)?(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(B),"important"),e.style.setProperty("font-size",se,"important"),e.style.setProperty("font-family",V,"important"))},children:`${Se}% ${null!==(A=null===Le.m4||void 0===Le.m4||null===(F=Le.m4[G])||void 0===F?void 0:F.off)&&void 0!==A?A:"off"}`}):(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(B),"important"),e.style.setProperty("font-size",se,"important"),e.style.setProperty("font-family",(0,a.ogW)(B),"important"))},children:(0,a.rsz)(B)})}),U&&fe&&(0,T.jsx)("div",{onClick:e=>{e.stopPropagation(),null!==ge&&void 0!==ge&&ge.product_link&&((0,oe.kz)({userInteractionType:x.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:pe,event:me,productList:[ge],ctaList:me.cta}),window.location.href=ge.product_link)},style:{marginTop:"1px",background:Q,borderRadius:"999px",padding:"3px 5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",width:"fit-content"},children:(0,T.jsx)("span",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-family",(0,a.ogW)(B)||V,"important"))},style:{fontSize:.82*ne+"px",fontWeight:"bold",letterSpacing:"0.5px"},children:(0,a.KPq)(B)||"SHOP NOW"})})]})]})]})};const Nt=(0,j.A)({key:"whatmore-css-hv"});function Mt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),h=e.events,u=e.onClick,m="5032640601"===c||"53425012925"===c,v=l*(0,a.kcl)(c)*(m?1.08:1),y=(0,a.cbh)(c)||m,[g,f]=(0,i.useState)(y?h.length:v),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(r.AppContext),b=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{g<=v&&f(e=>e+v)},[v]),(0,T.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,T.jsx)(S.RC,{slidesPerView:h.length>1?v: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:w})),e.realIndex>e.previousIndex&&f(e=>e+v)},loop:y,modules:[C.Ij],autoplay:!!m&&{delay:7e3,disableOnInteraction:!1,waitForTransition:!1},children:h.map((e,t)=>t<=g&&(0,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,T.jsx)(rt,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Rt(e){var[t,o,n,r]=(0,Pt.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,k.A)();return(0,T.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,T.jsx)(S.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:[C.s3,C.Jq,C.t9,C.Vx,C.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,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>n?(0,T.jsx)(Ft,{isOnFocus:t&&s<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{l(e)},is3DTemplateMuted:c,setIs3DTemplateMuted:h}):(0,T.jsx)(F,{})},"whatmore-event-tile-portr-"+e.index))})})})}function Ot(e){var[t,o,n,r]=(0,Pt.A)();const[l,s]=(0,P.A)(),[a,d,p]=(0,k.A)(),c=e.onClick,h=e.index,u=e.events,m=e.is3DTemplateMuted,x=e.setIs3DTemplateMuted,v=1.3*s,y=".wht-3d-flat-tile > div > div:first-child",g=(0,i.useRef)(0),f=e=>{for(const t of e.slides){const o=t.querySelector(y);if(o&&o.offsetHeight>0)return g.current=o.offsetHeight*(1-.82)/2,void e.el.style.setProperty("--wht-max-inset",g.current+"px")}},w=e=>{const t=g.current;e.slides.forEach(e=>{const o=e.querySelector(y);if(!o)return;const i=e.querySelector(".wht-prod-row"),n=Math.min(Math.abs(e.progress),1)*t;o.style.clipPath=`inset(${n}px 0 ${n}px 0)`,i&&(i.style.transform=`translateY(-${n}px)`)})},b=(e,t)=>{e.slides.forEach(e=>{const o=e.querySelector(y),i=e.querySelector(".wht-prod-row");o&&(o.style.transitionDuration=`${t}ms`),i&&(i.style.transitionDuration=`${t}ms`)})};return(0,T.jsxs)("div",{className:"wht-3d-temp wht-3d-flat",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:".wht-3d-flat .wht-3d-flat-tile > div{filter:none !important;}.wht-3d-flat .wht-3d-flat-tile > div > div:first-child{transition-property:clip-path;transition-duration:0ms;will-change:clip-path;clip-path:inset(var(--wht-max-inset,0px) 0 var(--wht-max-inset,0px) 0);}.wht-3d-flat .wht-prod-row{transition-property:transform;transition-duration:0ms;will-change:transform;transform:translateY(calc(-1 * var(--wht-max-inset,0px)));}.wht-3d-temp.wht-3d-flat .swiper-button-next,.wht-3d-temp.wht-3d-flat .swiper-button-prev{margin:0 20px !important;}"}}),(0,T.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,T.jsx)(S.RC,{slidesPerView:"auto",spaceBetween:12,centeredSlides:!0,slidesPerGroup:1,initialSlide:u.length>=5?2:Math.floor(u.length/2),mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[C.s3,C.Jq,C.Vx,C.FJ,C.Ij],keyboard:{enabled:!0},watchSlidesProgress:!0,navigation:!0,loop:!0,autoplay:{delay:7e3,disableOnInteraction:!1,waitForTransition:!1},onTouchStart:e=>b(e,0),onProgress:w,onSetTranslate:w,onSetTransition:(e,t)=>b(e,t),onAfterInit:e=>{f(e),w(e)},onResize:e=>{f(e),w(e)},onLoopFix:e=>requestAnimationFrame(()=>w(e)),onTransitionEnd:e=>requestAnimationFrame(()=>w(e)),onSlideChangeTransitionEnd:e=>requestAnimationFrame(()=>w(e)),style:{paddingTop:"24px",paddingBottom:"24px"},children:u.map((e,t)=>(0,T.jsx)(S.qr,{style:{width:v+"px",display:"flex",alignItems:"center",justifyContent:"center"},children:({isActive:t,isVisible:o})=>o?(0,T.jsx)("div",{className:"wht-3d-flat-tile",style:{position:"relative",zIndex:t?2:1},children:(0,T.jsx)(Ft,{isOnFocus:t&&h<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{c(e)},is3DTemplateMuted:m,setIs3DTemplateMuted:x})}):(0,T.jsx)(F,{})},"wht-3d-flat-tile-"+e.index))})})]})}var Et=function(e){const[t,o,l]=(0,k.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,[j,S]=(0,n.QN)("is3DTemplateMuted");function C(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,T.jsx)(b.C,{value:Nt,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsx)(T.Fragment,{}),"landscape"===t?"5032640601"===s||"53425012925"===s?(0,T.jsx)(Ot,{index:e.index,events:x,onClick:C,is3DTemplateMuted:j,setIs3DTemplateMuted:S}):(0,T.jsx)(Rt,{index:e.index,events:x,onClick:C,is3DTemplateMuted:j,setIs3DTemplateMuted:S}):(0,T.jsx)(Mt,{index:e.index,events:x,onClick:C})]})})})})},Dt=o(2169);var Wt=function(e){var t,o,l,s,d,p,c,h,u,m,v,y,g,f,w,b;const[j,S,C,k,I]=(0,P.A)(),_=1*S,A=1*j,F=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),M=(0,n.Xd)("whatmorePrimaryFont"),R=(0,n.Xd)("whatmoreSecondaryColor"),[O]=((0,n.Xd)("websiteLanguage"),(0,n.QN)("whatmoreShowViews")),E=e.onClick,z=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)(F))&&void 0!==l&&l,U="portrait"===I[Pe.dl],V=B&&!U,Q=(U?1.15*S*(0,a.HWj)(F):1.05*S*(0,a.N_4)(F))+"px",G=U?1.2*S*(0,a.HWj)(F):1.1*S*(0,a.N_4)(F),Y=G+"px",K=U?.8*S*(0,a.HWj)(F):.7*S*(0,a.N_4)(F),{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)(F)?(0,$.fu)(ee,(0,a.NCy)(F),F).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,H.M)(ce,(0,a.NCy)(F),F);ne(e),ge(!0)})()},[]),(0,T.jsxs)("div",{className:B&&!U?z?"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:V?"none":"transform 0.2s ease-out",transform:V?void 0:re?"translateY(-2px)":"translateY(0)"},...(0,W.i)(`Play video: ${ee.title||ee.event_id||""}`),onClick:()=>{E(ee)},onMouseEnter:()=>le(!0),onMouseLeave:()=>le(!1),children:[(0,T.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,T.jsx)(N.A,{height:(0,a.u06)(F)+" !important",width:"100%",url:ee.thumbnail_image,isPlaying:z||X,eagerLoad:!0,event:ee,style:{objectFit:"cover",filter:"none",transition:"none"}}),(0,T.jsx)(D,{shopId:F}),"video"===ee.event_type&&"26077888559"===F&&!U&&(0,T.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:5,display:"flex",alignItems:"center",justifyContent:"center",opacity:z?0:1,transition:"opacity 0.3s ease-out"},children:(0,T.jsx)(Dt.A,{size:.55*S,showBackground:!1})}),"show"===O&&"show"===(0,a.klK)(F)&&(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:ee,fontSize:.07*S+"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"!==F&&"75310563627"!==F||!(e.length>0))return null;const t=U?32:48,o=e.slice(0,3);if(de){const t=U?40:46;return(0,T.jsxs)("div",{className:"whatmore-products-overlay-expanded",onClick:e=>e.stopPropagation(),style:{position:"absolute",bottom:U?"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,T.jsx)("div",{style:{display:"flex",flexDirection:"column",overflowY:"auto",WebkitOverflowScrolling:"touch",padding:U?"4px 0":"6px 0"},children:e.map((e,o)=>(0,T.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:U?"10px":"12px",padding:U?"5px 14px":"6px 16px",cursor:"pointer",borderTop:0===o?"none":"1px solid rgba(0,0,0,0.1)"},children:[(0,T.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,T.jsx)("img",{src:e.thumbnail_image,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,T.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"3px"},children:[(0,T.jsx)("span",{style:{color:"#333333",fontFamily:M,fontSize:U?"12px":"13px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),(0,T.jsx)("span",{style:{color:"#000000",fontFamily:M,fontSize:U?"12px":"13px",fontWeight:700},children:(0,$.Sb)(parseFloat(null===e||void 0===e?void 0:e.price),"5032640601"===F||"53425012925"===F?"":" ",F,null===e||void 0===e?void 0:e.currency)+("5032640601"===F?" USD":"")})]})]},o))}),(0,T.jsx)("div",{onClick:e=>{e.stopPropagation(),pe(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center",padding:U?"6px":"7px",cursor:"pointer"},children:(0,T.jsx)("svg",{width:U?"16":"18",height:U?"16":"18",viewBox:"0 0 24 24",fill:"none",stroke:"#555555",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,T.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})}return(0,T.jsxs)("div",{className:"whatmore-products-overlay",onClick:e=>{e.stopPropagation(),pe(!0)},style:{position:"absolute",bottom:U?"12px":"20px",left:"50%",transform:"translateX(-50%)",background:"rgba(255,255,255,0.55)",backdropFilter:"blur(4px)",borderRadius:"9999px",padding:U?"4px 8px":"5px 10px",display:"flex",alignItems:"center",gap:U?"2px":"4px",transition:"transform 0.2s ease",cursor:"pointer",zIndex:11},children:[(0,T.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o.map((e,i)=>(0,T.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,T.jsx)("img",{src:e.thumbnail_image,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}})},i))}),(0,T.jsx)("div",{onClick:e=>{e.stopPropagation(),pe(!0)},style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer",paddingRight:U?"2px":"4px"},children:(0,T.jsx)("svg",{width:U?"12":"15",height:U?"12":"15",viewBox:"0 0 24 24",fill:"none",stroke:"#333333",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,T.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]})}(),ce&&(0,a.WDJ)(F)&&(re||U)&&(0,T.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||U?"translateY(0)":"translateY(100%)",opacity:re||U?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,T.jsx)("span",{style:{color:"white",fontSize:Q,fontFamily:M,fontWeight:"400",textAlign:"center",letterSpacing:"0.5px",textTransform:"uppercase"},children:"ADD TO CART"})})]}),ce&&(0,a.LPW)(F)&&(0,T.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,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size","9px"),e.style.setProperty("font-family",M),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,T.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)(F)&&(0,T.jsx)("div",{style:{width:"48px",height:"48px",flexShrink:0,borderRadius:"0px",overflow:"hidden",background:"#f8f8f8"},children:(0,T.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,T.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[(null===ce||void 0===ce?void 0:ce.title)&&(0,T.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",M),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","5032640601"===F||"53425012925"===F?"2":"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)(F)&&(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"6px"},children:[(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",Y),e.style.setProperty("font-family",M),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,$.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),"5032640601"===F||"53425012925"===F?"":" ",F,null===(y=ee.products[0])||void 0===y?void 0:y.currency)+("5032640601"===F?" USD":"")}),!isNaN(ue)&&ue>he&&(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size",.9*G+"px"),e.style.setProperty("font-family",M),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,$.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),"5032640601"===F||"53425012925"===F?"":" ",F,null===(b=ee.products[0])||void 0===b?void 0:b.currency)+("5032640601"===F?" USD":"")}),(0,a.Nzx)(F)&&ye&&!isNaN(xe)&&0!=xe&&(0,a.Cf)(F)&&(0,T.jsx)("div",{style:{display:"inline-flex",background:R,alignItems:"center",justifyContent:"center",borderRadius:"0px",padding:"4px 8px"},children:(0,T.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","#ffffff"),e.style.setProperty("font-size",1.2*K+"px"),e.style.setProperty("font-family",M),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,T.jsx)("div",{className:"wht-video-title",style:{display:"none",marginTop:"8px"},children:(0,T.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#666666"),e.style.setProperty("font-family",M),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 zt=(0,j.A)({key:"whatmore-css-hv"});function Lt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.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,T.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,T.jsx)("div",{style:{width:p-48,height:"fit-content",position:"relative",zIndex:1},children:(0,T.jsx)(S.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[C.s3,C.Jq,..."87857266990"===c||"75310563627"===c||"94314201387"===c?[C.U1,C.Vx]:[C.U1]],keyboard:{enabled:!0},navigation:"87857266990"===c||"75310563627"===c||"94314201387"===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,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>n||o||i||t?(0,T.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,T.jsx)(Wt,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})}):(0,T.jsx)(F,{})},"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),b=(0,i.useMemo)(()=>_()(e=>p(e),50),[]);(0,i.useEffect)(()=>()=>b.cancel(),[b]);const 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,T.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,T.jsx)("div",{ref:j,style:{zIndex:1},children:(0,T.jsx)(S.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[C.s3,C.Jq,..."87857266990"===c||"75310563627"===c||"94314201387"===c||"75026858234"===c?[C.FJ,C.U1,C.Vx]:[C.FJ,C.U1]],keyboard:{enabled:!0},navigation:"87857266990"===c||"75310563627"===c||"94314201387"===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,T.jsx)(S.qr,{onMouseEnter:()=>{b(t)},onMouseLeave:()=>{b.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,T.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,T.jsx)(Wt,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)&&r,animateOnFocus:!0,event:e,onClick:()=>{h(e)}})})}return(0,T.jsx)(F,{})}},"wht-event-tile-landscape-"+e.index))})})})}var Bt=function(e){var t;const[o,l,s]=(0,k.A)(),[a]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==o?(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),{whatmoreCollectionId:x}=(0,i.useContext)(r.AppContext),v=e.events,y=e.onClick,j=p,S="75310563627"===a||"87857266990"===a;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-j"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-j"]'))&&e&&(e.style.minHeight="0px")})},[]),delete f.Ay.styles.global,(0,T.jsx)(b.C,{value:zt,children:(0,T.jsx)("div",{className:"whatmore-carousel-events premium-carousel-container",style:{height:"100%",background:"transparent",position:"relative",padding:"portrait"===o?"8px 0":"16px 0"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[((null===(t=e.heading)||void 0===t?void 0:t.trim().length)>0||m&&u&&"W"!==u)&&(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginBottom:"portrait"===o?"12px":"16px",position:"relative",zIndex:1},children:(0,T.jsx)("div",{style:{background:"transparent",padding:"8px 24px",position:"relative"},children:(0,T.jsx)("h2",{className:S?`wht-premium-heading wht-premium-heading-${a}`:"wht-premium-heading",ref:e=>{e&&!S&&(e.style.setProperty("font-family",j,"important"),e.style.setProperty("font-size",c+"px","important"))},style:{color:"#1a1a1a",textAlign:"center",fontWeight:"300",lineHeight:"1.2",letterSpacing:"0.5px",margin:0,position:"relative",zIndex:1,textTransform:"uppercase",...S?{fontFamily:"Jost",fontSize:("portrait"===o?30:42)+"px"}:{fontSize:c+"px"}},children:(()=>{const t=m?"W"!==u?u:"":e.heading;if(!S||!t)return t;const o=t.split(" "),i=new Set(["167457653035","147508527406"]);if(m&&i.has(String(x))){const e=o.slice(0,2).join(" "),t=o.slice(2,4).join(" "),i=o.slice(4).join(" ");return(0,T.jsxs)("span",{className:"wht-premium-heading-multiline",children:[(0,T.jsx)("span",{className:"wht-premium-heading-line-1",style:{display:"block",fontWeight:600,fontSize:"0.75em",color:"#221F20",lineHeight:1.1},children:e}),t&&(0,T.jsx)("span",{className:"wht-premium-heading-line-2",style:{display:"block",fontWeight:900,fontSize:"1.35em",color:"#221F20",lineHeight:1.1,letterSpacing:"-0.5px",marginTop:"2px"},children:t}),i&&(0,T.jsx)("span",{className:"wht-premium-heading-line-rest",style:{display:"block",fontWeight:500,color:"rgba(34, 31, 32, 0.78)",lineHeight:1.1,marginTop:"2px"},children:i})]})}const n=o.slice(0,2).join(" "),r=o.slice(2).join(" ");return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("span",{className:"wht-premium-heading-strong",style:{fontWeight:700,color:"#221F20"},children:n}),r&&" ",r&&(0,T.jsx)("span",{className:"wht-premium-heading-regular",style:{fontWeight:500,color:"rgba(34, 31, 32, 0.78)"},children:r})]})})()})})}),"landscape"===o?(0,T.jsx)(Xt,{events:v,onClick:C}):(0,T.jsx)(Lt,{events:v,onClick:C})]})})})})};var Ut=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,b,j,S,C]=(0,P.A)(),k=1*b,I=1*w,_=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),A="portrait"===C[Pe.dl],F=A?(0,a.HWj)(_):(0,a.N_4)(_),M=(0,n.Xd)("whatmorePrimaryFont"),R=(0,n.Xd)("whatmoreSecondaryColor"),O=e.onClick,E=null===(t=e.isOnFocus)||void 0===t||t,z=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,[L,X]=(0,i.useState)(e.event),[B,U]=(0,i.useState)(),[V,Q]=(0,i.useState)(!1),G=null!==(r=null===(l=L.products)||void 0===l?void 0:l.find(e=>"active"==e.product_status))&&void 0!==r?r:null===(s=L.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,$.fu)(L,(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,H.M)(G,(0,a.NCy)(_),_);U(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",M),e.style.setProperty("--wtmr-discount-badge-bg",R),e.style.setProperty("--wtmr-tile-width",b+"px"),e.style.setProperty("--wtmr-font-multiplier",F),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)}},[M,R,b,F,A]),(0,T.jsxs)("div",{ref:f,className:"wtmr-carousel-tile",style:{maxWidth:k},...(0,W.i)(`Play video: ${L.title||L.event_id||""}`),onClick:()=>O(L),children:[(0,T.jsxs)("div",{className:"wtmr-carousel-tile__video-container",style:{maxHeight:I},children:[(0,T.jsx)(N.A,{className:"wtmr-carousel-tile__video",height:(0,a.u06)(_)+" !important",width:"100%",url:L.thumbnail_image,isPlaying:E||z,event:L}),(0,T.jsx)(D,{shopId:_}),G&&(0,T.jsx)("div",{className:"wtmr-carousel-tile__add-to-cart-overlay",onClick:e=>e.stopPropagation(),children:(0,T.jsx)("span",{className:"wtmr-carousel-tile__add-to-cart-label",children:"ADD TO CART"})})]}),G&&(0,T.jsxs)("div",{className:"wtmr-carousel-tile__product-details-container",children:[(0,T.jsxs)("div",{className:"wtmr-carousel-tile__product-information-section",children:[(null===G||void 0===G?void 0:G.thumbnail_image)&&(0,T.jsx)("div",{className:"wtmr-carousel-tile__product-image-container",children:(0,T.jsx)("img",{className:"wtmr-carousel-tile__product-image "+(V?"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,T.jsxs)("div",{className:"wtmr-carousel-tile__product-text-container",children:[(null===G||void 0===G?void 0:G.product_type)&&(0,T.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,T.jsx)("p",{className:"wtmr-carousel-tile__product-name",children:null===G||void 0===G?void 0:G.title})]})]}),te&&(0,T.jsxs)("div",{className:"wtmr-carousel-tile__product-pricing-section",children:[(0,T.jsx)("p",{className:"wtmr-carousel-tile__price-selling",children:(0,$.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=L.products[0])||void 0===m?void 0:m.currency)}),!isNaN(K)&&K>Y&&(0,T.jsx)("p",{className:"wtmr-carousel-tile__price-original",children:(0,$.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=L.products[0])||void 0===g?void 0:g.currency)}),!isNaN(Z)&&0!=Z&&(0,T.jsx)("div",{className:"wtmr-carousel-tile__discount-percentage-badge",children:(0,T.jsxs)("p",{className:"wtmr-carousel-tile__discount-percentage-value",children:[Z,"%"]})})]})]})]})};const $t=(0,j.A)({key:"whatmore-css-ai"});function Vt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.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,T.jsx)("div",{className:"wtmr-carousel-container-portrait whatmore-events-carousel-portrait ai-carousel-portrait",style:{width:p-48,zIndex:1},children:(0,T.jsx)(S.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[C.s3,C.Jq,C.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,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,T.jsx)("div",{className:"wm-carousel__slide-wrapper "+(t?"wtmr-carousel__slide-wrapper--active":"wtmr-carousel__slide-wrapper--inactive"),children:(0,T.jsx)(Ut,{isOnFocus:t&&n,playOnUnfocus:!1,event:e,onClick:()=>{u(e)}})}):(0,T.jsx)(F,{})},"whatmore-event-tile-ai-portrait-"+e.index))})})}function Ht(e){const[t,o,l,s]=(0,P.A)(),[d,p,c]=(0,k.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),b=Math.min(l,y.length),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(r.AppContext),I=(0,i.useRef)(!1),A=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(A.current){const e=o*b*(0,a.fHt)(m)+"px";y.length<4?A.current.style.setProperty("width",e,"important"):A.current.style.width=e}},[o,b,m,f,y.length]),(0,i.useEffect)(()=>{f<=l&&w(e=>e+l)},[l]),(0,T.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,T.jsx)("div",{ref:A,style:{zIndex:1},children:(0,T.jsx)(S.RC,{slidesPerView:b,watchSlidesProgress:!0,modules:[C.s3,C.Jq,C.FJ,C.U1],keyboard:{enabled:!0},freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onTouchStart:()=>{I.current=!0},onSlideChange:e=>{I.current&&(I.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j})),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,T.jsx)(S.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),u(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,T.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,T.jsx)(Ut,{isOnFocus:t==h,playOnUnfocus:!(0,a.aO7)(m)||t==parseInt(b/2)&&-1==h,event:e,onClick:()=>{v(e)}})}):(0,T.jsx)(F,{})},"wht-event-tile-ai-landscape-"+e.index)})})})})}var qt=function(e){const[t,o,l]=(0,k.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 j(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,T.jsx)(b.C,{value:$t,children:(0,T.jsx)("div",{ref:y,className:"wtmr-carousel whatmore-carousel-events ai-carousel-container",style:{height:"100%",background:"transparent",position:"relative"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,T.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,T.jsx)("div",{className:"wtmr-carousel-header",children:(0,T.jsx)("h2",{className:"wtmr-carousel-title",style:{fontSize:p+"px"},children:u?"W"!==h?h:"":e.heading})}),"landscape"===t?(0,T.jsx)(Ht,{events:m,onClick:j}):(0,T.jsx)(Vt,{events:m,onClick:j})]})})})})};const Qt=(0,j.A)({key:"whatmore-css-hv"});function Gt(e){const[t,o,l]=(0,P.A)(),[s,d,p]=(0,k.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:b}=(0,i.useContext)(r.AppContext),j=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{f<=m&&w(e=>e+m)},[m]),(0,T.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)("div",{style:{width:p,height:"fit-content"},children:(0,T.jsx)(S.RC,{slidesPerView:h.length>1?m:1,initialSlide:h.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onTouchStart:()=>{j.current=!0},onSlideChange:e=>{j.current&&(j.current=!1,(0,oe.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b})),e.realIndex>e.previousIndex&&w(e=>e+m)},loop:v,modules:[C.s3,C.Jq,...y?[C.Vx]:[]],keyboard:{enabled:!0},navigation:y,children:h.map((e,t)=>t<=f&&(0,T.jsx)(S.qr,{children:({isActive:t,isPrev:o,isNext:i,isVisible:n})=>o||i||t?(0,T.jsx)(rt,{isOnFocus:t&&n,playOnUnfocus:g&&(o||i),animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Yt(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),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,T.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,T.jsx)("div",{ref:b,style:{height:"100%"},children:(0,T.jsx)(S.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[C.s3,C.Jq,C.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,T.jsx)(S.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),p(-1)},style:{height:"100%"},children:({isActive:o,isPrev:i,isNext:n,isVisible:r})=>r||i||n?(0,T.jsx)(rt,{isOnFocus:t==d,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==d,animateOnFocus:!0,event:e,onClick:()=>{h(e)}}):(0,T.jsx)(F,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var Kt=function(e){const[t,o,l]=(0,k.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 j(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,T.jsx)(b.C,{value:Qt,children:(0,T.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,T.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.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,T.jsx)(T.Fragment,{}),"landscape"===t?(0,T.jsx)(Yt,{events:x,onClick:j}):(0,T.jsx)(Gt,{events:x,onClick:j})]})})})})};function Jt(e){var t;const[o,i,n]=(0,z.A)({triggerOnce:!1}),r=null!==(t=e.defaultHeight)&&void 0!==t?t:"fit-content";return(0,T.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,T.jsx)("div",{children:e.renderElement({eventData:t})},"key"+o)):(0,T.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function Zt(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,T.jsx)(pe.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*o,children:l.map((t,n)=>(0,T.jsx)(Jt,{renderElement:e.renderElement,data:t,defaultHeight:o,defaultWidth:i},"key-"+n))})}var eo=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"),[b]=(0,n.QN)("whatmoreSecondaryColorShade900"),j=v.products.length,[S,C]=(0,i.useState)(),[k,I]=(0,i.useState)(!1);if(0==j)return(0,T.jsx)(T.Fragment,{});(0,i.useEffect)(()=>{const e=setInterval(()=>{x(e=>(e+1)%j)},3e3);return()=>{clearInterval(e)}},[]),(0,i.useEffect)(()=>{(0,a.w4b)(g)?(0,$.fu)(v,(0,a.NCy)(g),g).then(e=>{y(e),I(!0)}):(async()=>{var e;const t=await(0,H.M)(null===v||void 0===v||null===(e=v.products)||void 0===e?void 0:e[0],(0,a.NCy)(g),g);C(t),I(!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",F=(+v.products[m].price).toFixed(),N=(+v.products[m].compare_price).toFixed(),M=.25*d,R=(0,a.zAb)(g),O="61406249191"===g&&(0,a.m5c)(g)||"black";return(0,T.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,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:R?"1":"none"},children:[(0,T.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","5032640601"===g||"53425012925"===g?2:1),e.style.setProperty("line-clamp","5032640601"===g||"53425012925"===g?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"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,X.v)(v.products[m].title)}),(0,T.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[k&&(0,T.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,$.Sb)(parseFloat((0,q.U)()?(null===S||void 0===S?void 0:S.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),"5032640601"===g||"53425012925"===g?"":" ",g,v.products[m].currency)+("5032640601"===g?" USD":"")}),!isNaN(N)&&N>F&&k&&(0,T.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,$.Sb)(parseFloat((0,q.U)()?(null===S||void 0===S?void 0:S.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),"5032640601"===g||"53425012925"===g?"":" ",g,v.products[m].currency)+("5032640601"===g?" USD":"")})]})]}),R&&(0,T.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(g),"important")},src:(0,V.b)(v.products[m].thumbnail_image,"&width=400&height=400"),style:{width:M,height:M,borderRadius:"round"==f?"5px":"0px",backgroundColor:b,flexShrink:0},alt:"product img"})]})};function to(e){const[t,o]=(0,P.A)(),[i]=(0,n.QN)("whatmoreShowViews"),r=e.event;return(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,T.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,T.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,T.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,T.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,T.jsx)(L.A,{event:r,fontSize:.07*o+"px"})})}):(0,T.jsx)(T.Fragment,{})})})})})}var oo=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,b,j,S,C]=(0,P.A)();const k="portrait"===C[Pe.dl],I=e.event,_=e.onClick,F=null===(t=e.isOnFocus)||void 0===t||t,M=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,R=null!==(l=e.animateOnFocus&&(0,a.n5O)(g))&&void 0!==l&&l,[O,E,L]=(0,z.A)({triggerOnce:!0}),[X,B]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:U,whatmoreUserInfo:$}=(0,i.useContext)(r.AppContext),V=null!==(s=null===(c=I.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==s?s:null===(h=I.products)||void 0===h?void 0:h[0],H=V&&Object.keys(V).length>0,[q,Q,G,K,J,Z]=(0,ke.A)(0,V,I),ee=.07*b+"px",te=H&&(0,a.Kr7)(g),ie=(0,a.ZzM)(g),ne=ie?"BUY NOW":"ADD TO CART",re=e=>{if(e.stopPropagation(),!H)return;const t=U.landingLocationType,o=U.templateType,i=(0,u.Wd)(t)+(0,u.gf)(o)+(null!==I&&void 0!==I&&I.isRelatedEvent?"R":"E")+"_"+(null===I||void 0===I?void 0:I.event_id);if((0,d.Ch)(I.event_id,I.products,"homepage","carousel",i,null===I||void 0===I?void 0:I.location,null===$||void 0===$?void 0:$.userType),ie&&V){const e=V.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:U,event:I,productList:[V],ctaList:I.cta}),(0,oe.N$)({widgetSourceDetails:U,event:I,product:V})):"awaitingVariantSelection"==q.state&&Z(null,i)};return(0,T.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,T.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:b,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?F?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",...(0,W.i)(`Play video: ${I.title||I.event_id||""}`),onClick:()=>{_(I)},onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),children:[(0,T.jsx)(N.A,{height:"100%",width:"100%",url:I.thumbnail_image,isPlaying:F||M||(0,p.At)(),event:I}),(0,T.jsx)(D,{shopId:g}),"9238315068"===g&&H&&(X||k)&&(0,T.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:X||k?"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||k?"translateY(0)":"translateY(100%)",opacity:X||k?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,T.jsx)("span",{style:{color:"white",fontSize:ee,fontFamily:f,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:ne})}),(0,T.jsxs)("div",{style:{width:b,height:w},ref:O,children:[(0,T.jsx)(to,{event:I,isOnFocus:F}),"9238315068"!==g&&(0,T.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,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)("p",{children:" "})}),(0,T.jsx)("div",{style:{width:"100%"},children:E&&(0,a.imx)(g)?(0,T.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===g?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===g?(0,T.jsx)(Y,{event:I}):(0,T.jsx)(eo,{event:I})}):(0,T.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===g&&E&&(0,a.imx)(g)&&(0,T.jsx)("div",{style:{width:b,marginBottom:m.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,T.jsx)(eo,{event:I})}),te&&(0,T.jsx)("div",{style:{width:b,padding:"15px 0"},children:(0,T.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 io=(0,j.A)({key:"whatmore-css-hv"});var no=function(e){var t;const[o,l,s]=(0,k.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,j=e.onClick,S=null!==(t=(0,a.sa6)(u))&&void 0!==t?t:x;function C(e){j(e)}const I=parseInt(Math.floor(c));return delete f.Ay.styles.global,(0,T.jsx)(b.C,{value:io,children:(0,T.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,T.jsx)(je.o,{paddingBottom:"28px",children:(0,T.jsx)(ce.E,{bgColor:m,bgClip:"text",fontSize:v,sx:{fontFamily:S+" !important"},align:"center",children:e.heading})}):(0,T.jsx)(T.Fragment,{}),"landscape"===o?(0,T.jsx)(Zt,{renderElement:e=>{const t=e.eventData;return(0,T.jsx)("div",{style:{margin:"10px"},children:(0,h.i)(t)||(0,h.I)(t)?(0,T.jsx)(oo,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}}):(0,T.jsx)(we,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}})})},dataList:w,elementsPerRow:I}):(0,T.jsx)(Zt,{renderElement:e=>{const t=e.eventData;return(0,T.jsx)("div",{style:{margin:"10px"},children:(0,T.jsx)(oo,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}})})},dataList:w,elementsPerRow:I})]})})})})},ro=o(6126);var lo=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),b=e.event,j=e.onClick,S=e.removeBorders,C=s*y*.01,k=(0,a.esc)(m),I=null!==(t=(0,a.zC7)(m))&&void 0!==t?t:"circle",_="circle"===I?"50%":"6%",A=C*k,F="rectangle"===I?1.5*A:A;let M=null!==(o=(0,a.qAx)(m))&&void 0!==o?o:[h,w,h,w,h];return Array.isArray(M)||(M=Array(5).fill(M)),(0,T.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:S?"2px":(0,a.FZM)(m)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{f(!0),j(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,T.jsx)("div",{className:"whatmore-story-tile-border-wrapper",style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:_,overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+M[0]+"50, 0px -1px 1px 0px "+M[1]+"50, 1px 0px 1px 0px "+M[2]+"50, -1px 0px 1px 0px "+M[3]+"80, 1px -1px 1px 0px "+M[4]+"80, -1px 1px 1px 0px "+M[0]+"DA, 1px 1px 1px 0px "+M[1]+"DA, -1px -1px 1px 0px "+M[2]+"DA"},children:(0,T.jsx)(T.Fragment,{children:(0,T.jsx)("div",{className:"whatmore-story-tile-inner",style:{flexShrink:0,objectFit:"cover",height:F+"px",width:A+"px",borderRadius:_,backgroundColor:h,overflow:"hidden",border:"3px solid white"},children:(0,T.jsx)(N.A,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})})}),(0,T.jsx)("div",{className:"wht-car-vid-title",style:{display:"flex",justifyContent:"center",width:C*k+"px",fontFamily:u,paddingTop:"10px",fontSize:null!==(r=e.fontSize)&&void 0!==r?r:10},children:(0,T.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})(b.title)})})]})};const so=(0,j.A)({key:"whatmore-css-cv"});var ao,po=function(e){const[t]=(0,k.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:j}=(0,i.useContext)(r.AppContext);function S(e){v(e)}const[C,I,_]=(0,z.A)({triggerOnce:!1});delete f.Ay.styles.global;const F=.055*l;var N=[];for(let i=0;i<x.length;)N.push((0,T.jsx)(lo,{mode:t,event:x[i],onClick:()=>{S(x[i-1])},removeBorders:(0,a.U74)(u),fontSize:.8*F},"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||j?(0,T.jsx)(b.C,{value:so,children:(0,T.jsx)("div",{className:y?"whatmore-collection-events":"whatmore-carousel-events",children:(0,T.jsx)(g.s,{theme:f.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,T.jsxs)(A.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,T.jsx)("div",{ref:C,style:{marginLeft:c+"px",marginRight:c+"px"},children:(0,T.jsx)(Ke.c,{renderElement:e=>(0,T.jsx)(T.Fragment,{children:e.eventData}),dataList:N,spacing:h,defaultHeight:l*p*.01+"px",defaultWidth:l*p*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(u)&&!I&&-1==e.index&&(0,T.jsx)(Je.A,{event:x[0],inVideoClick:S,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})}):(0,T.jsx)(T.Fragment,{})},co=o(9759),ho=o(5534),uo=o(8060);const mo=null!==(ao="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==ao&&ao;var xo=function(e){const[t]=(0,n.QN)("isInDesignMode"),[g]=(0,n.QN)("isDemoBrand"),[f]=(0,n.QN)("whatmoreTopBottomPadding"),[w]=(0,n.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:b}=(0,i.useContext)(r.AppContext),[j]=(0,n.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:S,whatmoreRootId:C}=(0,i.useContext)(r.AppContext);(0,i.useEffect)(()=>{("template-a"===S||"template-b"===S||"template-c"===S||"template-d"===S||"template-e"===S||"template-f"===S||"template-feed-a"===S||"template-g"===S||"template-h"===S||"template-i"===S||"template-j"===S||"template-a-1"===S||"template-stories"===S||"template-neo"===S||"template-collections-neo"===S||"template-collections-a"===S||"template-collections-b"===S||"template-collections-c"===S||"template-collections-d"===S||"template-collections-e"===S||"template-collections-f"===S||"template-collections-feed-a"===S||"template-collections-g"===S||"template-collections-h"===S||"template-collections-i"===S||"template-collections-j"===S||"template-collections-a-1"===S||"template-collections-stories"===S)&&e.events&&e.events.length>0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const e=document.querySelector(`.whatmore-render-root[data-widget-id="${C}"][data-shimmer-active="true"]`),t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${C}"][data-template="${S}"]`);e&&t?(t.style.opacity="0",e.style.opacity="1",e.style.pointerEvents="auto",setTimeout(()=>{mo&&console.log(`[iOS Fix] ${S}: Removing shimmer from DOM`),t.remove(),e.removeAttribute("data-shimmer-active");const o=e.closest(".whatmore-base");o&&(o.style.minHeight="0px",mo&&console.log(`[iOS Fix] ${S}: Reset minHeight to 0px`))},100)):console.warn(`[iOS Fix] ${S}: Crossfade elements not found`,{renderRoot:!!e,shimmerContainer:!!t})})})},[S,e.events]);const P=(0,n.Xd)("isLandingSharedLink"),k=(0,n.Xd)("whatmoreShareTemplateId"),I=(0,n.Xd)("whatmoreShareStoryId"),_=(0,n.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:A,whatmoreUserInfo:F}=(0,i.useContext)(r.AppContext),N=P&&S===(0,u.Mm)(k),[M,R]=(0,i.useState)(N),[O,E]=(0,i.useState)(-1),[D,W]=(0,i.useState)(null);let z=e.events;const L=e.allEvents;var X=null;b&&!X&&(X=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}(z));const B=A.landingLocationType,U=A.templateType;async function $(e,i=!1){if((0,p.MN)()&&(0,y._)()&&!i){(0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,c.bo)()}(0,n.Xd)("is3DTemplateMuted")||(0,n.t2)("is3DTemplateMuted",!0),E(e.index),((0,h.i)(e)||(0,h.I)(e))&&(t||g||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.resolve().then(o.bind(o,7939));t();const n=(0,u.Wd)(B)+(0,u.gf)(U)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.lB)(e),i(j,l.TB,l.Dk),(0,d.Ch)(e.event_id,e.products,"homepage","carousel",n)})())}function V(e){return(0,T.jsx)(T.Fragment,{})}return(0,i.useEffect)(()=>{if(N)if((0,v.H)("whatmore-video-player",()=>{R(!1)}),null!=I&&b){const e=X.find(e=>I==e.id);if(e)return void async function(e,i=!1,r=null){(0,p.MN)()&&(0,y._)()&&!i&&((0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,c.bo)());t||g||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.resolve().then(o.bind(o,7939));t();const n=X[e].events[0],r=(0,u.Wd)(B)+(0,u.gf)(U)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,s.lB)(n),i(j,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===F||void 0===F?void 0:F.userType)})();var a=0;null!=r&&X[e].events.map((e,t)=>{e.event_id==r&&(a=t)}),E(a),W(e)}(X.indexOf(e),!0,_)}else if(null!=_){const e=z.find(e=>_==e.event_id);if(e)return void $(e,!0)}},[]),(0,T.jsxs)(T.Fragment,{children:[M&&(0,T.jsx)(co.A,{}),-1==O||-2==O?(0,T.jsx)(V,{}):(0,T.jsx)(i.Suspense,{fallback:(0,T.jsx)(uo.A,{posterUrl:null!==L&&void 0!==L&&L[O]?(0,Tt.tQ)(L[O]):void 0}),children:(0,T.jsx)(ho.A,{events:L,index:O,onBack:async function(){E(-1),R(!1)},slideDirection:b||"horizontal"===(0,a.br0)(j)?"horizontal":"vertical",eventsStories:X,initialStoryIndex:D,template:S})}),(0,T.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,ho.h)(),style:{height:"100%",marginTop:(b?w:f)+"px",marginBottom:(b?w:f)+"px"},children:"template-b"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(ae,{events:z,onClick:$,heading:e.heading})})}):"template-a-1"===S||"template-collections-a-1"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(ze,{events:z,onClick:$,heading:e.heading})}):"template-feed-a"===S||"template-collections-feed-a"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(no,{events:z,onClick:$,heading:e.heading})}):"template-collections-a"===S||"template-c"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(et,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-collections-b"===S||"template-d"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(ot,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-collections-c"===S||"template-e"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(nt,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-collections-d"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(ae,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-collections-e"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(dt,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-collections-stories"===S||"template-stories"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(po,{events:z,index:O,setScreen:E,onClick:$,heading:e.heading})})}):"template-f"===S||"template-collections-f"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(gt,{events:z,onClick:$,heading:e.heading})})}):"template-g"===S||"template-collections-g"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(Ct,{events:z,onClick:$,heading:e.heading})})}):"template-h"===S||"template-collections-h"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(Kt,{events:z,onClick:$,heading:e.heading})})}):"template-i"===S||"template-collections-i"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(Et,{index:O,events:z,onClick:$,heading:e.heading})})}):"template-j"===S||"template-collections-j"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(Bt,{events:z,onClick:$,heading:e.heading})})}):"template-ai"===S||"template-collections-ai"===S?(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(qt,{events:z,onClick:$,heading:e.heading})}):"template-banner-a"===S?(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.BANNER_WIDGET_VIEW,event:z[0],triggerFlag:!t&&!g,children:(0,T.jsx)(ro.A,{events:z})})}):(0,T.jsx)(i.Suspense,{children:(0,T.jsx)(m.S,{userInteractionType:x.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!g,children:(0,T.jsx)(dt,{events:z,onClick:$,heading:e.heading})})})})]})},vo=o(8888),yo=o(121),go=o(4300);const fo=Array.from(document.getElementsByClassName("whatmore-base"));function wo(e){return e.split(/[?#]/)[0]}function bo(e){return e.split(/[?#]/)[0]}function jo(e){return"STRQMPNF7QK"==e?encodeURIComponent(window.location.href):"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e||"STROXKHHO98"==e?bo(window.location.href).replace(/\/+$/,"").split("/").pop():bo(window.location.href)}var So=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:b}=(0,i.useContext)(r.AppContext),[j]=(0,n.QN)("whatmoreShopId"),{whatmoreCollectionId:S}=(0,i.useContext)(r.AppContext),C=(0,n.Xd)("whatmoreLandingLocationType"),P=(0,a.aEh)(j)&&!f&&!v,k=(0,n.Xd)("whatmoreLoggingActive"),{whatmoreUserInfo:I,whatmoreIsPreviewMode:_}=(0,i.useContext)(r.AppContext),A=(0,n.Xd)("whatmoreCollectionUrl"),[F]=(0,n.QN)("isInDesignMode"),[N]=(0,n.QN)("isDemoBrand");let M;M="19506115"==j?"343270603":(0,a.mJ$)(j)?(0,a.jLA)(j)?A:wo(window.location.href):S||wo(window.location.href);const[R,O]=(0,n.QN)("productRatings"),[E,D]=(0,i.useState)(!1);var W=(0,a.SOt)(j)?l.aD+"/v2/events/":l.$$+"/v2/events/",z=(0,a.SOt)(j)?l.aD+"/v3/events/":l.$$+"/v3/events/",L=(0,a.SOt)(j)?l.aD+"/v4/events/":l.$$+"/v4/events/",X=(0,a.SOt)(j)?l.aD+"/v5/events/":l.$$+"/v5/events/",B=((0,a.SOt)(j)?l.aD:l.$$,(0,a.SOt)(j)?l.aD+"/get_eventset/":l.$$+"/get_eventset/"),U=(0,a.SOt)(j)?l.aD+"/v2/collection":l.$$+"/v2/collection",$=(0,a.SOt)(j)?l.aD+"/v3/collection":l.$$+"/v3/collection",V=(0,a.SOt)(j)?l.aD+"/v4/collection":l.$$+"/v4/collection",H=(0,a.SOt)(j)?l.aD+"/v5/collection":l.$$+"/v5/collection",q=((0,a.jpW)(j)?l.$$:l.MT)+"/v2/brand/"+j+"/product-events",Q=e.shopId,G="live,upcoming",Y="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&&!(0,go.M)(b,j)){const e=g?"collection":"carousel";let t,i;if("carousel"===e)t=C.startsWith("product")?"product":"homepage";else if(C.startsWith("collection"))t="collection";else{if(!C.startsWith("page"))return void(k&&console.log("[Widget System] Collection widget on invalid page type, skipping"));t="page"}if("homepage"===t)i=j;else if("product"===t){let e=(0,n.Xd)("whatmoreProductId");i=(0,a.BcY)(j)?jo(j):e}else"collection"!==t&&"page"!==t||(i=M);const r=`${l.$$}/brand/${Q}/eventset?widget_id=${b}&source_type=${t}&source_id=${i}&eventset_type=${e}&status=active,active`;return k&&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;k&&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];P&&(i=i.filter(e=>(0,K.Hl)(e,j))),i=(0,a.xku)(j)?(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((N||F)&&(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,yo.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)}D(!0),(0,n.t2)("isCarouselDataLoading",!1)}).catch(e=>{x(e.message),D(!0),(0,n.t2)("isCarouselDataLoading",!1)})}var s;if(C.startsWith("product")){var p=(0,n.Xd)("whatmoreProductId");if(p=(0,a.BcY)(j)?jo(j):p,g){let e=(0,n.Xd)("whatmoreCollectionId");null!=e&&"0"!==e&&e||(e=wo(window.location.href)),s=!0===(0,a.dLE)(j)?`${H.toString()}?store_id=${Q.toString()}&client_collection_id=${e}&sync_products=true`:`${U.toString()}?store_id=${Q.toString()}&client_collection_id=${e}`}else if((0,a.vvU)(j))s=W.toString()+Q.toString()+"?status="+G.toString()+"&is_active="+Y.toString()+(v?"&template_type=stories":"");else if((0,a.TOK)(j))s=`${(0,vo.f)(j)}?client_product_id=${p}&limit=50&status=live,upcoming&event_type=video`;else if((0,a.WH1)(j)){s=`${s=(0,vo.B)(j)}?client_product_id=${p}&limit=10&recommended=${!(0,a.buK)(j)}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`}else s=q.toString()+"?client_product_id="+p.toString()+"&status="+G.toString()+"&event_type=video"}else if(g||"invalid-url"!==A)!0===(0,a.dLE)(j)?s=`${H.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==C&&1==(0,a.FKG)(j).length?(0,a.FKG)(j)[0]:M}&sync_products=true`:(0,a.JwJ)(j)?(s=`${$.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==C&&(0,a.FKG)(j).length>0?(0,a.FKG)(j)[0]:M}`,s+="&user_type="+r):s="78232846646"==j?`${V.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==C&&(0,a.FKG)(j).length>0?(0,a.FKG)(j)[0]:M}`:`${U.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==C&&1==(0,a.FKG)(j).length?(0,a.FKG)(j)[0]:M}`;else if(f){const e=u.Jh,t=(0,u.t6)(C);s=B.toString()+Q.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+j}else{var c,m,y,w;if("2665447536"==j&&_&&!v)s=z.toString()+Q.toString()+"?status="+G.toString()+"&is_active="+Y.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!==I&&void 0!==I&&I.userType?"olduser":"newuser");else s=(0,a.JwJ)(j)&&!v?L.toString()+Q.toString()+"?status="+G.toString()+"&user_type="+r+"&is_active="+Y.toString():"78232846646"!=j||v?W.toString()+Q.toString()+"?status="+G.toString()+"&is_active="+Y.toString()+(v?"&template_type=stories":""):X.toString()+Q.toString()+"?status="+G.toString()+"&is_active="+Y.toString()}const S=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&&C.startsWith("index")&&"object"==typeof S&&(null===S||void 0===S?void 0:S.length)>0?(o(S),h(S),D(!0),(0,n.t2)("isCarouselDataLoading",!1)):(k&&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)(j)&&(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;k&&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];P&&(i=i.filter(e=>(0,K.Hl)(e,j))),i=(0,a.xku)(j)?(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((N||F)&&(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,yo.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)}D(!0),(0,n.t2)("isCarouselDataLoading",!1)}).catch(e=>{x(e.message),D(!0),(0,n.t2)("isCarouselDataLoading",!1)}))},[]),E&&(null==t||0==t.length||m)&&fo.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(),k&&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"),k&&console.log(`[API Error] Reset carousel visibility for widget ${w}`),N||F)||(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"]`)&&k&&console.log(`[iOS Fix] Shimmer sibling active for ${w}, skipping injection in WhatmoreRootComponent`),null==t||0==t.length||m?(0,T.jsx)("div",{}):(k&&(0,ie.xv)(t),k&&console.debug("final transformed events data : "+JSON.stringify(t)),k&&console.debug("valid events size : "+t.length),(0,T.jsx)(xo,{heading:e.heading,events:t,allEvents:s}))};var Co=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,T.jsx)("div",{style:{display:"block",height:"100%"},children:(0,T.jsx)(So,{heading:l,shopId:e})})}},4630:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(4141)),r=o(481);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")},6232:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(4141)),r=o(481);t.A=(0,n.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},9071:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(4141)),r=o(481);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")}}]);
|