whatmore-react-assets 1.0.1821 → 1.0.1823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/411.742a9cfc.chunk.css +1 -0
- package/static/css/event-click-component.5626d6a2.chunk.css +1 -0
- package/static/css/homepage-carousel-view.5cbaba8c.chunk.css +1 -0
- package/static/js/245.495d00ff.chunk.js +2 -0
- package/static/js/411.14a5f69c.chunk.js +52 -0
- package/static/js/598.9757157f.chunk.js +281 -0
- package/static/js/865.da3e721a.chunk.js +2 -0
- package/static/js/atc-with-form.14662671.chunk.js +1 -0
- package/static/js/event-click-component.86dd3ac5.chunk.js +76 -0
- package/static/js/homepage-carousel-view.b720e002.chunk.js +15 -0
- package/static/js/react-main-app.b83e466d.chunk.js +1 -0
- package/whatmore.js +1 -2
- package/static/css/banner-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-ai.5886a824.chunk.css +0 -1
- package/static/css/carousel-template-f.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-feed.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-g.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-h.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-i.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-j.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-view-more.475a42b7.chunk.css +0 -1
- package/static/css/collections-template-a.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-b.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-c.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-stories.83e3340f.chunk.css +0 -1
- package/static/css/event-click-product.68e25b66.chunk.css +0 -1
- package/static/css/spotlight-view.a1594fd1.chunk.css +0 -2
- package/static/css/stories-template-a.8292e9da.chunk.css +0 -1
- package/static/css/whatmore-root.09bcc075.chunk.css +0 -2
- package/static/js/257.731cff2e.chunk.js +0 -1
- package/static/js/286.70655d59.chunk.js +0 -1
- package/static/js/33.46a8c962.chunk.js +0 -1
- package/static/js/512.c411674d.chunk.js +0 -1
- package/static/js/526.706d86bb.chunk.js +0 -2
- package/static/js/620.8b81307a.chunk.js +0 -1
- package/static/js/820.3abb966c.chunk.js +0 -1
- package/static/js/832.8a126a68.chunk.js +0 -1
- package/static/js/981.93048a23.chunk.js +0 -281
- package/static/js/banner-template-a.32ec8591.chunk.js +0 -1
- package/static/js/carousel-template-a.f15148d1.chunk.js +0 -1
- package/static/js/carousel-template-ai.2232a497.chunk.js +0 -1
- package/static/js/carousel-template-b.52683dec.chunk.js +0 -1
- package/static/js/carousel-template-f.4ca967f4.chunk.js +0 -1
- package/static/js/carousel-template-feed.6e0611d8.chunk.js +0 -15
- package/static/js/carousel-template-g.2f11a57c.chunk.js +0 -1
- package/static/js/carousel-template-h.95284d4b.chunk.js +0 -1
- package/static/js/carousel-template-i.ef4eaa14.chunk.js +0 -1
- package/static/js/carousel-template-j.6e45a3e9.chunk.js +0 -1
- package/static/js/carousel-template-view-more.faaa02f7.chunk.js +0 -15
- package/static/js/collections-template-a.1f191615.chunk.js +0 -1
- package/static/js/collections-template-b.27d9d0b6.chunk.js +0 -1
- package/static/js/collections-template-c.5bcd3559.chunk.js +0 -1
- package/static/js/collections-template-stories.3684ecbf.chunk.js +0 -1
- package/static/js/embed-tracking-component.64b05bcf.chunk.js +0 -1
- package/static/js/event-click-product.ffdab8eb.chunk.js +0 -127
- package/static/js/event-click-spotlight.50e0f126.chunk.js +0 -1
- package/static/js/homepage-carousel-view.9dd55d57.chunk.js +0 -1
- package/static/js/product-page-view.9c0ab6ef.chunk.js +0 -1
- package/static/js/share-shimmer-loader.fe4b39e4.chunk.js +0 -1
- package/static/js/spotlight-view.a4edee17.chunk.js +0 -1
- package/static/js/stories-template-a.7a417d48.chunk.js +0 -1
- package/static/js/whatmore-root.cc24f244.chunk.js +0 -1
- /package/static/css/{product-page-view.a1594fd1.chunk.css → react-main-app.a1594fd1.chunk.css} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1131:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},2257:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext")},4380:function(e,t,i){i.r(t),i.d(t,{default:function(){return Ii}});var o=i(9950),n=i(7483),r=i(964),l=i(140),s=i(3887),a=i(1348),d=i(4533),c=i(6613),p=i(1085),h=i(6824),u=i(2039),m=i(4833),x=i(2979),v=i(6157),y=i(8945),g=i(9821),f=i(340),w=i(5089);const j=Array.from(document.getElementsByClassName("whatmore-base"));i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);var b=i(572),S=i(8603),C=i(9946),P=i(9094),I=i(932),k=i(1941),_=i(5491),R=i.n(_);const A=(0,o.createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0});var M=i(4414);var N=function(e){var[t,i]=(0,I.A)();(0,o.useContext)(A);const r=(0,n.Xd)("whatmoreShopId");return e.event,(0,M.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==r?void 0:i,aspectRatio:"8968077397"==r?9/16:void 0,height:"8968077397"==r?"100%":t,overflow:"hidden"}})},F=i(9879),E=i(6649),T=i(9258),O=i(8538),z=i(7458),L=i(2835),D=i(6594),W=i(7973),B=i(8149),X=i(7740),V=i(3161);const U=o.lazy(()=>i.e(939).then(i.bind(i,9408)));var H=function(e){var t,i,r,l;const s=(0,n.QN)("whatmoreUITheme");var[d,c]=(0,I.A)();const[p]=(0,n.QN)("whatmorePrimaryFont"),[u]=(0,n.QN)("whatmoreSecondaryColorShade900"),[m]=(0,n.QN)("whatmoreShopId"),[x,v]=(0,o.useState)(0),[y,g]=(0,o.useState)(e.event),[f,w]=(0,o.useState)(),[j,b]=(0,o.useState)(!1),S=e.onClick,C=y.products.length,{whatmoreIsPreviewMode:P}=(0,o.useContext)(h.BR);if(0==C)return(0,M.jsx)(M.Fragment,{});(0,o.useEffect)(()=>{(0,a.w4b)(m)&&(0,D.fu)(y,(0,a.NCy)(m),m).then(e=>{g(e),b(!0)});(async()=>{var e;const t=await(0,B.M)(null===y||void 0===y||null===(e=y.products)||void 0===e?void 0:e[0],(0,a.NCy)(m),m);w(t),b(!0)})()},[]);const k=P,_=.3*c,R=_+"px",A=_+"px",N=.05*c*(0,a.PpQ)(m)+"px",F=.07*c*(0,a.y3u)(m),E=F+"px",T=.05*c;return(0,M.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,M.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,M.jsx)("div",{style:{width:R,height:A,overflow:"hidden",backgroundColor:"28062416930"===m?void 0:u,borderRadius:"round"==s?"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,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(m),"important")},src:(0,W.b)(y.products[x].thumbnail_image,"&width=400&height=400"),style:{width:R,height:R,borderRadius:"round"==s?"5px":"0px",backgroundColor:u},alt:"product img"})}),(0,M.jsx)("div",{style:{width:.7*c+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"28062416930"===m?"18px":"2px",borderRadius:"round"==s?"5px":"0px"},children:(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,M.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,M.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",p,"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,O.v)("56411783377"===m?y.products[x].title.split("|")[0].trim():"58396311733"===m?(0,V.$)(y.products[x].title):y.products[x].title)})}),(0,M.jsxs)("div",{className:"wht-price-tb",style:{display:"flex",flexFlow:(0,a.vw2)(m)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===m?"center":(0,a.vw2)(m)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,M.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.uoB)(m),"important"),e.style.setProperty("font-size",E),e.style.setProperty("line-height","28062416930"===m?"160%":"140%","important"),e.style.setProperty("font-family",p,"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,D.Sb)(parseFloat((0,X.U)()?(null===f||void 0===f?void 0:f.price)/100:null===y||void 0===y||null===(t=y.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),"",m,y.products[x].currency)]}),(0,z.P)(y.products[x].price,y.products[x].compare_price)&&j?(0,M.jsxs)("strike",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(m),"important"),e.style.setProperty("font-size",.9*F+"px","important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",p,"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,D.Sb)(parseFloat((0,X.U)()?(null===f||void 0===f?void 0:f.compare_at_price)/100:null===y||void 0===y||null===(r=y.products)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.compare_price),"",m,y.products[x].currency)]}):(0,M.jsx)(M.Fragment,{})]}),(0,M.jsx)(L.A,{storeId:m,productId:y.products[x].client_product_id,productLink:y.products[x].product_link,fontSize:T}),"28062416930"===m&&(0,M.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)||k&&"5141594210"==m?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(U,{baseFontSize:.05*c,event:y,product:y.products[0],width:.9*c,height:"fit-content"})}):(0,M.jsx)(M.Fragment,{})]})},q=i(7802);var Q=({width:e=30,height:t=30})=>(0,M.jsxs)("svg",{width:e,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,M.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,M.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,M.jsx)("defs",{children:(0,M.jsx)("clipPath",{id:"clip0_1_19",children:(0,M.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]});function $(e){const[t,i,o,r,l]=(0,I.A)(),s=(0,n.Xd)("whatmoreUITheme"),d=(0,n.Xd)("whatmoreShowViews"),c=(0,n.Xd)("whatmoreShopId"),p=e.PRODUCT_BOX_HEIGHT,h=e.PRODUCT_BOX_HEIGHT_IN_PX,u=e.PRODUCT_BOX_MARGIN,[m,x,v]=(0,E.A)({triggerOnce:!0}),y=e.event;e.isOnFocus;return(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{e.onClick(y)},children:["56411783377"===c&&(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,M.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,M.jsx)(Q,{width:.15*i,height:.15*i})})}),"show"===d?(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,M.jsx)(T.A,{event:y,fontSize:.07*i+"px"})})}):(0,M.jsx)(M.Fragment,{})]}),(0,M.jsx)("div",{style:{display:"flex",width:"100%",height:t-p+"px"},onClick:()=>{e.onClick(y)}}),(0,q.Hl)(y,c)?(0,M.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"28062416930"===c?void 0:u+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:"28062416930"===c?"110%":.95*i,height:"28062416930"===c?"20%":h,marginLeft:u+"px",marginRight:u+"px",backgroundColor:"white",borderRadius:"round"==s?"5px":"0px",borderWidth:(0,a.YcK)(c),borderColor:(0,a.Fwt)(c),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,M.jsx)("div",{ref:m,children:x&&(0,a.imx)(c)?(0,M.jsx)(H,{event:y,onClick:()=>{var t,i;(0,a.gq8)(c)?window.location.href=(i=null===(t=y.products)||void 0===t?void 0:t[0],(0,a.BLb)(c)?i.product_link+"?"+(0,a.VCz)(c)+"&"+(0,a.Spk)(c)+"&"+(0,a.$lz)(c):i.product_link):e.onClick(y)}}):(0,M.jsx)("div",{height:"20px"})})}):(0,M.jsx)(M.Fragment,{})]})})}var G,Y=function(e){var t,i,r;const[l,s,d,c,p]=(0,I.A)();var h=(0,o.useContext)(A);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!==(i=e.playOnUnfocus)&&void 0!==i&&i,w=null!==(r=e.animateOnFocus&&(0,a.n5O)(m))&&void 0!==r&&r,j=(0,a.nP1)(m)?.7:.8,b=l*j+"px",S=1-j,C=l*S,P=l*S+"px",k=l*S*.1,_=(0,a.VYo)(m),R="56411783377"==m?1:1.2;return(0,M.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*R+"px",borderRadius:"round"==u?"5px":"0px",boxShadow:"28062416930"===m?void 0:"round"===u?_:null,borderWidth:(0,a.YcK)(m),borderColor:(0,a.Fwt)(m),overflow:"hidden",cursor:"pointer",position:"relative"},className:w?g?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{y(v)},children:[(0,M.jsx)(F.A,{height:b,width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),(0,a.Q$)(m)&&(0,q.Hl)(v,m)&&"56411783377"!==m?(0,M.jsx)("div",{style:{width:"100%",height:P,backgroundColor:x}}):(0,M.jsx)(M.Fragment,{})]}),(0,a.Q$)(m)&&(0,M.jsx)($,{event:v,isOnFocus:g,PRODUCT_BOX_HEIGHT:C,PRODUCT_BOX_HEIGHT_IN_PX:P,PRODUCT_BOX_MARGIN:k,onClick:y})]})},K=i(1351),J=i(6641);const Z=(0,S.A)({key:"whatmore-css-hv"}),ee=null!==(G="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==G&&G;function te(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(Math.min(p.length,x?p.length:m+5)),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<m+5&&g(e=>Math.min(e+5,p.length))},[m,5]),ee&&console.debug("am i reaching here in portrait component?"),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:d,height:"fit-content"},children:(0,M.jsx)(C.RC,{slidesPerView:p.length>1?"56411783377"==c?2:m:1,initialSlide:"25075712047"===c||"56411783377"==c?0:p.length>1?1:0,centeredSlides:"25075712047"!==c&&"56411783377"!=c,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>Math.min(e+5,p.length))},loop:(0,a.cbh)(c),children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>(0,M.jsx)(Y,{isOnFocus:("56411783377"==c||t)&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})},"whatmore-event-tile-portrait-"+e.index))})})})}function ie(e){ee&&console.debug("START : am i reaching here in landscape component?");const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),p=e.onClick,u=e.events,m=(0,a.cbh)(c),[x,y]=(0,o.useState)(m?u.length:r),g=Math.min(r,u.length),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{x<=r&&y(e=>e+r)},[r]),ee&&console.debug("am i reaching here in landscape component?"),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:l+"px",paddingRight:l+"px"},children:(0,M.jsx)("div",{style:{width:i*g*1.1+"px"},children:(0,M.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[P.Vx],navigation:!0,slidesPerGroup:parseInt(g),onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&y(e=>e+r)},spaceBetween:(0,a.If9)(c),loop:(0,a.cbh)(c),children:u.map((e,t)=>(ee&&console.debug("START : inside the swiper loop : ",t<=x),ee&&console.debug("END : inside the swiper loop : ",t<=x),t<=x&&(0,M.jsx)(C.qr,{children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r?(ee&&console.debug("RENDERING : inside the swiper loop : ",t<=x),(0,M.jsx)(Y,{isOnFocus:!1,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{p(e)}})):(0,M.jsx)(N,{})},"whatmore-event-tile-landscape-"+e.index)))})})})}var oe=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmorePrimaryColor"),[s]=(0,n.QN)("whatmoreShopId"),[a]=(0,n.QN)("whatmoreTitleFont"),d="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,o.useContext)(h.BR),p=e.events,u=e.onClick,m=a,{whatmoreCollectionHeading:x}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:v}=(0,o.useContext)(h.BR);function y(e){u(e)}function g(e){const t=e.indexOf(" ",e.indexOf(" ")+1);return-1===t?[e,""]:[e.substring(0,t),e.substring(t)]}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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")})},[]),ee&&console.debug("am i here before delete styles?"),delete w.Ay.styles.global,ee&&console.debug("am i reaching here after delete styles?"),(0,M.jsx)(b.C,{value:Z,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==s&&"2310668401"!==s&&"10648977444"!==s&&(e.heading.trim().length>0||v)?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",m,"important"),e.style.setProperty("font-size",d+"px","important"))},style:{color:l,backgroundClip:"text",textAlign:"center"},children:v?"W"!==x?x:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"10588815418"==s||"2310668401"==s||"10648977444"==s?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,M.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",m,"important"),e.style.setProperty("font-size",d+"px","important"))},style:{color:l,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:v?"W"!==x?x:"":g(e.heading)[0]}),(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family","Austin Text SemiBold Trial","important"),e.style.setProperty("font-size",d+"px","important"))},style:{color:l,backgroundClip:"text",textAlign:"center"},children:v?"W"!==x?x:"":g(e.heading)[1]})]})}):(0,M.jsx)(M.Fragment,{children:ee&&console.debug("returning the empty div")}),"landscape"===t?(0,M.jsx)(ie,{events:p,onClick:y}):(0,M.jsx)(te,{events:p,onClick:y})]})})})})},ne=i(3247),re=i(1422),le=i(3731),se=i(211),ae=i(5242),de=i(8781),ce=i(8283);const pe=ce.i7`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(1);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: scale(1.05);
|
|
7
|
+
}
|
|
8
|
+
`,he=ce.i7`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(1.05);
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
}
|
|
15
|
+
`,ue=`\n ${pe}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,me=`\n ${he}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var xe=function(e){var t,i,[r,l]=(0,I.A)();const[s]=(0,n.QN)("whatmorePrimaryFont");var a=(0,o.useContext)(A);const d=e.event,c=e.onClick,p=null===(t=e.isOnFocus)||void 0===t||t,h=(e.playOnUnfocus,null!==(i=e.animateOnFocus)&&void 0!==i&&i);return(0,M.jsxs)(ne.az,{animation:h?p?ue:me:"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:()=>{c(d)},cursor:"pointer",children:[(0,M.jsx)(se._,{width:"full",height:"full",src:d.thumbnail_image,objectFit:"cover",fallback:(0,M.jsx)(de.A,{width:l,height:r}),borderRadius:"lg"}),(0,M.jsx)(ne.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,M.jsxs)(re.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,M.jsx)(ne.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,M.jsx)(re.B,{direction:"column",justifyContent:"flex-start",children:(0,M.jsx)(ne.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,M.jsx)(re.B,{direction:"row",justifyContent:"space-between",children:(0,M.jsx)(ae.A,{event:d,fontSize:.05*r+"px",maxWidth:.8*l})})})})}),(0,M.jsx)(ne.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,M.jsx)(re.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,M.jsx)(ne.az,{width:"full",borderRadius:"lg",children:(0,M.jsxs)(re.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,M.jsx)(le.E,{color:"white",fontSize:.08*l+"px",fontWeight:"normal",align:"left",children:" "}),(0,M.jsx)(le.E,{fontSize:.08*l+"px",fontWeight:"normal",align:"left",sx:{fontFamily:s+" !important",color:"white !important"},children:d.title.substring(0,40)}),(0,M.jsx)(le.E,{fontSize:.08*l+"px",fontWeight:"bold",align:"left",sx:{fontFamily:s+" !important",color:"white !important"},children:d.presenter_name.substring(0,15)})]})})})})]})})]})},ve=i(8726),ye=i(6086),ge=i(5144),fe=i(5727),we=i(22);var je=function(e){var t,i,r,l,[s,d]=(0,I.A)();const c=(0,n.Xd)("whatmoreUITheme"),[p]=(0,n.QN)("whatmorePrimaryFont"),[h,u]=(0,o.useState)(0),m=(0,n.Xd)("whatmoreShopId"),x=e.event;if(0==x.products.length)return(0,M.jsx)(M.Fragment,{});const v=.3*d,y=v+"px",g=v+"px",f=.07*d,w=f+"px";return(0,M.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)"},children:(0,M.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:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,M.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",g,"important")},style:{width:(0,a.H$k)(m)?y:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,a.YcK)(m),borderColor:(0,a.Fwt)(m),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,M.jsx)("img",{ref:e=>{e&&(e.style.setProperty("object-fit",(0,a.KZe)(m),"important"),e.style.setProperty("max-width",y,"important"))},src:(0,W.b)(x.products[h].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,M.jsxs)("div",{style:{width:d-5-v+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",w),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",p,"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:"normal"},children:(0,O.v)(x.products[h].title)})}),(0,a.gZ6)(m)&&(null===(t=x.products[h])||void 0===t||null===(i=t.product_metadata)||void 0===i?void 0:i.product_type)&&(0,M.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-v+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",d-5-v+"px","important"),e.style.setProperty("font-size",.7*f+"px","important"),e.style.setProperty("font-family",p,"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=x.products[h])||void 0===r||null===(l=r.product_metadata)||void 0===l?void 0:l.product_type})})]})]},h)})},be=i(1131);function Se(e){var t,[i,r]=(0,I.A)();const[l]=(0,n.QN)("whatmoreShopId"),[s,d,p]=(0,E.A)({triggerOnce:!0});var h=(0,o.useContext)(A);const u=e.event,m=null!==(t=e.unfocusedDisplay)&&void 0!==t&&t,x=.5*r,v=(0,c.At)()?e.isOnFocus:d;return(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)("p",{children:" "})}),h.showPlayButton&&!m||"60934750449"==l||"70946685152"==l?(0,M.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,M.jsxs)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:["70946685152"==l&&(0,M.jsx)("div",{style:{transform:"scale(1.5)"},children:(0,M.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/heeras/heeras.png"})}),"video"==u.event_type&&"60934750449"!=l&&"70946685152"!=l&&(0,M.jsx)(fe.A,{sx:{color:(0,a.KFN)(l)+" !important",opacity:.8,fontSize:x,filter:"drop-shadow(0 0 15px black);"}})]})})}):(0,M.jsx)(M.Fragment,{}),(0,M.jsx)("div",{ref:s,children:v&&(0,a.imx)(l)?(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)(je,{event:u})}):(0,M.jsx)("div",{height:"20px"})})]})})}function Ce(e){var[t,i]=(0,I.A)();const[o]=(0,n.QN)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,M.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,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,M.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,M.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,M.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-family",o,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,M.jsx)(M.Fragment,{})}function Pe(e){const[t,i,o,r,l]=(0,I.A)(),[s]=(0,n.QN)("whatmoreShowViews"),d=(0,n.Xd)("whatmoreShopId"),c=e.event,p=e.isOnFocus;return(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===s&&"show"===(0,a.klK)(d)?(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,M.jsx)(T.A,{event:c,fontSize:.07*i+"px"})})}):(0,M.jsx)(M.Fragment,{}),!1]})}),we.nN===l[we.dl]?(0,M.jsx)(M.Fragment,{}):p?(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,M.jsx)(Ce,{event:c})}):(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)(Ce,{event:c})})]})})}var Ie=function(e){var t,i,r;const[l,s,d,c,p]=(0,I.A)();var h=(0,o.useContext)(A);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!==(i=e.playOnUnfocus)&&void 0!==i&&i,w=null!==(r=e.animateOnFocus&&(0,a.n5O)(m))&&void 0!==r&&r,j=(0,a.VYo)(m);return(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",h.tileTopMargin+"px"),e.style.setProperty("margin-bottom",h.tileBottomMMargin+"px"))},style:{margin:"0 auto",width:"8968077397"==m||"19501891"==m?void 0:s,aspectRatio:"8968077397"==m||"19501891"==m?9/16:void 0,height:"8968077397"==m||"19501891"==m?"100%":l,borderRadius:"round"==u?"5px":"0px",boxShadow:"round"==u||"61187850326"==m||"19501891"==m?j:null,borderWidth:(0,a.YcK)(m),borderColor:(0,a.Fwt)(m),overflow:"hidden",cursor:"pointer",position:"relative"},className:w?g?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{y(v)},children:[(0,M.jsx)(F.A,{height:(0,a.u06)(m)+" !important",width:"100%",url:v.thumbnail_image,isPlaying:g||f,event:v}),"51394281658"===m?(0,M.jsxs)(M.Fragment,{children:[(0,M.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,M.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,M.jsx)(be.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(m)&&(0,M.jsxs)("div",{style:{width:s,height:l},children:[(0,M.jsx)(Pe,{event:v,isOnFocus:g}),"87043703105"===m||"76467011883"===m||!g&&we.nN!==p[we.dl]?null:(0,M.jsx)(Se,{event:v,unfocusedDisplay:!g,isOnFocus:g})]})]})};var ke=function(e){var t,i;const[r,l]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),[d]=(0,n.QN)("whatmoreSecondaryColor"),[c]=(0,n.QN)("whatmoreSecondaryColorShade600"),[p]=(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!==(i=e.baseFontSize)&&void 0!==i?i:12;return(0,M.jsxs)(ne.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:x,backgroundColor:r?p:d,animation:s?ge.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:e=>{e.stopPropagation(),a(!0),u()},onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:[(0,M.jsx)(le.E,{fontSize:v+"px !important",fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:"VIEW MORE"}),m]})};const _e=(0,S.A)({key:"whatmore-css-hv"});function Re(e,t){var i=[];const o=t;for(let n=0;n<e.length;n+=o){const t=e.slice(n,n+o);i.push(t)}return i}function Ae(e){var t;const[i,n,r]=(0,I.A)();var[l,s]=(0,o.useState)(0);const a=e.events,d=e.onClick,c=null!==(t=e.seeMoreIncrement)&&void 0!==t?t:1,p=Re(a,Math.floor(Math.min(r,a.length)));return(0,M.jsx)(ye.o,{children:(0,M.jsxs)(re.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,M.jsx)(M.Fragment,{children:p.map((e,t)=>t>l?(0,M.jsx)(M.Fragment,{}):(0,M.jsx)(re.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,M.jsx)(ne.az,{style:{margin:"10px"},children:(0,u.i)(e)||(0,u.I)(e)?(0,M.jsx)(Ie,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{d(e)}}):(0,M.jsx)(xe,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{d(e)}})},"event-"+t))},"event-stack-"+t))}),(0,M.jsx)(M.Fragment,{children:l<p.length-1?(0,M.jsx)(re.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,M.jsx)(ke,{baseFontSize:.1*n,icon:(0,M.jsx)(ve.A,{style:{color:"white"}}),onClick:()=>{l>=p.length-1||s(e=>e+c)}})}):(0,M.jsx)(M.Fragment,{})})]})})}function Me(e){var t;const[i,n,r,l]=(0,I.A)();var[s,a]=(0,o.useState)(0);const d=e.events,c=e.onClick,p=null!==(t=e.seeMoreIncrement)&&void 0!==t?t:1,h=Re(d,Math.floor(Math.min(r,d.length)));return(0,M.jsx)(ye.o,{paddingLeft:l+"px",paddingRight:l+"px",children:(0,M.jsxs)(re.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,M.jsx)(M.Fragment,{children:h.map((e,t)=>t>s?(0,M.jsx)(M.Fragment,{}):(0,M.jsx)(re.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:e.map((e,t)=>(0,M.jsx)(ne.az,{style:{margin:"10px"},children:(0,u.i)(e)||(0,u.I)(e)?(0,M.jsx)(Ie,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{c(e)}}):(0,M.jsx)(xe,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{c(e)}})},"event-"+t))},"event-stack-"+t))}),(0,M.jsx)(M.Fragment,{children:s<h.length-1?(0,M.jsx)(re.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,M.jsx)(ke,{baseFontSize:.1*n,onClick:()=>{s>=h.length-1||a(e=>e+p)},icon:(0,M.jsx)(ve.A,{style:{color:"white"}})})}):(0,M.jsx)(M.Fragment,{})})]})})}var Ne=function(e){var t;const[i,r,l]=(0,k.A)(),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmorePrimaryColor"),[c]=(0,n.QN)("whatmoreSecondaryColor"),[p]=(0,n.QN)("whatmoreTitleFont"),u="portrait"==i?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,y=null!==(t=(0,a.sa6)(s))&&void 0!==t?t:p;function g(e){v(e)}return delete w.Ay.styles.global,(0,M.jsx)(b.C,{value:_e,children:(0,M.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,M.jsx)(ye.o,{children:(0,M.jsx)(le.E,{bgColor:d,bgClip:"text",fontSize:u,sx:{fontFamily:y+" !important"},align:"center",children:e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===i?(0,M.jsx)(Me,{events:x,onClick:g,seeMoreIncrement:1}):(0,M.jsx)(Ae,{events:x,onClick:g,seeMoreIncrement:2})]})})})})},Fe=(i(6125),i(7035)),Ee=i(6305),Te=i(63);var Oe=function(e){var t,i,r,l,s,c,p,u,x,y,g,f,w,j,b,S,C,P,k;const _=e.event,[R,A,N,E,T]=(0,I.A)(),[z]=(0,n.QN)("whatmoreSecondaryColor"),[L]=(0,n.QN)("whatmoreShopId"),V=(0,n.Xd)("whatmoreVideoTileSize"),U=(0,n.Xd)("whatmoreVideoTileSizePortrait"),H="portrait"===e.mode?U:V,q=(0,n.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:Q,whatmoreUserInfo:$}=(0,o.useContext)(h.BR),[G,Y]=(0,o.useState)(!1),J=(0,a.ivI)(L),Z=Q.landingLocationType,[ee,te]=(0,o.useState)(null!==(t=null===(i=_.products)||void 0===i?void 0:i.find(e=>"active"==e.product_status))&&void 0!==t?t:null===(r=_.products)||void 0===r?void 0:r[0]),ie=ee&&Object.keys(ee).length>0,[oe,ne]=(0,o.useState)(),re=((0,a.KPq)(L),"16957273"===L),le="portrait"===T[we.dl],[se,ae]=((0,n.Xd)("websiteLanguage"),(0,o.useState)(!1)),de=null!==(l=(0,a.mRH)(L))&&void 0!==l&&l,[ce,pe,he,ue,me,xe]=(0,Ee.A)(0,ee,_),ve="22907887"===L||"79550939348"===L?"portrait"===e.mode?.9:.83:1,ye=e.onClick,ge=e.removeBorders,fe=(0,n.Xd)("whatmoreUITheme"),je=ve*R*H*.01,be=A*H*.01,Se=.25*A,Ce=null!==(s=e.borderRadius)&&void 0!==s?s:"0%",Pe=le?1.076*A*(0,a.HWj)(L):A*(0,a.N_4)(L),Ie=le?1.076*A*(0,a.HWj)(L):A*(0,a.N_4)(L),ke=Ie+"px",_e=le?.965*A*(0,a.HWj)(L):.859*A*(0,a.N_4)(L),Re=re&&le?.72*Ie+"px":ke,Ae=re&&le?.72*_e+"px":_e+"px",Me=(()=>{if(re&&le){const e=.8;return{width:.25*A*e,height:.33*A*e}}if(re){const e=.8;return{width:1.1*Se*e,height:1.45*Se*e}}return null})();(0,o.useEffect)(()=>{if(ie)if((0,a.w4b)(L))(0,D.fu)(_,(0,a.NCy)(L),L);else{(async()=>{var e,t;let i=ee;for(let r=0;r<(null===_||void 0===_||null===(o=_.products)||void 0===o?void 0:o.length);r++){var o;const e=await(0,B.M)(null===_||void 0===_?void 0:_.products[r],(0,a.NCy)(L),L);if(null!==e&&void 0!==e&&e.available){te(null===_||void 0===_?void 0:_.products[r]),i=null===_||void 0===_?void 0:_.products[r];break}}const n=await(0,B.M)(i,(0,a.NCy)(L),L);ne(n),Fe=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})()}},[ie]);const Ne=null===ee||void 0===ee?void 0:ee.price;let Fe=null===ee||void 0===ee?void 0:ee.compare_price;const Oe=Fe&&0!=Fe&&Fe>Ne?Math.round((Fe-Ne)/Fe*100):NaN;let ze=NaN!==Oe?Oe:0;return(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,a._hU)(L)?"auto":be+"px",marginLeft:ge?"2px":"5px",marginRight:ge?"2px":(0,a.FZM)(L)+"px",marginTop:ge?"2px":"5px",marginBottom:ge?"2px":"5px",cursor:"pointer"},onClick:()=>{Y(!0),ye(_)},className:[G?"whatmore-scale-on-tap":""].join(" "),children:[(0,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:Ce,overflow:"hidden",boxShadow:ge?"":"0px 1px 1px 0px "+z+"50, 0px -1px 1px 0px "+J+"50, 1px 0px 1px 0px "+z+"50, -1px 0px 1px 0px "+J+"80, 1px -1px 1px 0px "+z+"80, -1px 1px 1px 0px "+J+"DA, 1px 1px 1px 0px "+z+"DA, -1px -1px 1px 0px "+J+"DA"},children:(0,M.jsxs)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:je+"px",width:"40273707171"==L?"auto":be+"px",borderRadius:Ce,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:[(0,M.jsx)(F.A,{height:"100%",width:"100%",url:_.thumbnail_image,isPlaying:!0,event:_}),function(){const t=Array.isArray(null===_||void 0===_?void 0:_.products)?_.products.filter(e=>"active"===e.product_status):[];return("22907887"===L||"79550939348"===L)&&t.length>0&&(0,M.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,i)=>(0,M.jsx)("div",{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"},children:(0,M.jsx)("img",{src:t.thumbnail_image,alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover"}})},i)),t.length>2&&(0,M.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,M.jsxs)("span",{style:{color:"white",fontSize:"portrait"===e.mode?"11px":"12px",fontWeight:"600"},children:["+",t.length-2]})})]})}()]})}),Z.startsWith("product")&&(null===_||void 0===_?void 0:_.title)&&(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,M.jsx)("p",{ref:t=>{var i;t&&(t.style.setProperty("font-family",q,"important"),t.style.setProperty("font-size",(null!==(i=e.fontSize)&&void 0!==i?i: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===_||void 0===_?void 0:_.title})}),ie&&!Z.startsWith("product")&&("73817522453"===L||"68304765103"===L||"16957273"===L)&&(0,M.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"row",padding:le?"6px 4px":"6px 8px",gap:le?"8px":"6px",alignItems:"stretch",minHeight:"auto"},children:[re&&(0,M.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(L),"important")},src:(0,W.b)((null===ee||void 0===ee?void 0:ee.thumbnail_image)||(null===ee||void 0===ee?void 0:ee.image)||(null===ee||void 0===ee?void 0:ee.featured_image),"&width=400&height=400"),alt:null===ee||void 0===ee?void 0:ee.title,style:{width:Me.width,height:Me.height,borderRadius:"round"==fe?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:le?"0px":"-3px"}})}),(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:re&&!le?"3px":"4px",flex:1,minWidth:0},children:[ie&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(L),"important"),e.style.setProperty("font-size",.9*Pe+"px"),e.style.setProperty("line-height","115%"),e.style.setProperty("font-family",q,"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,O.v)(null===ee||void 0===ee?void 0:ee.title)}),ie&&(0,M.jsxs)("div",{style:{display:"flex",gap:re&&le?"2px":"8px",flexDirection:(0,a.vw2)(L)?"row":"row-reverse",justifyContent:(0,a.vw2)(L)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap",overflow:re&&le?"visible":"initial",lineHeight:"1.2"},children:[(0,M.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)(L),"important");const t=.9*parseFloat(Re)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",q,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-align","left","important"),e.style.setProperty("width","auto","important"),re&&le&&e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"normal"==(0,a.i6j)(L)?"normal":"bold"},children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(c=null===oe||void 0===oe||null===(p=oe.variants)||void 0===p||null===(u=p[0])||void 0===u?void 0:u.price)&&void 0!==c?c:null===oe||void 0===oe?void 0:oe.price)?(null!==(x=null===oe||void 0===oe||null===(y=oe.variants)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.price)&&void 0!==x?x:null===oe||void 0===oe?void 0:oe.price)/100:Ne:Ne>0?Ne:null===ee||void 0===ee?void 0:ee.price_max)," ",L,(null===(f=_.products[0])||void 0===f?void 0:f.currency)||("68304765103"===L?"INR":void 0))}),!isNaN(Fe)&&Fe>Ne&&(0,M.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.gld)(L),"important");const t=.9*parseFloat(Re)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",q,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("width","auto","important"),re&&le&&e.style.setProperty("white-space","nowrap","important")}},style:{textDecoration:"line-through"},children:(0,D.Sb)(parseFloat((0,X.U)()&&(null!==(w=null===oe||void 0===oe||null===(j=oe.variants)||void 0===j||null===(b=j[0])||void 0===b?void 0:b.compare_at_price)&&void 0!==w?w:null===oe||void 0===oe?void 0:oe.compare_at_price)?(null!==(S=null===oe||void 0===oe||null===(C=oe.variants)||void 0===C||null===(P=C[0])||void 0===P?void 0:P.compare_at_price)&&void 0!==S?S:null===oe||void 0===oe?void 0:oe.compare_at_price)/100:Fe)," ",L,(null===(k=_.products[0])||void 0===k?void 0:k.currency)||("68304765103"===L?"INR":void 0))}),"16957273"===L&&!isNaN(ze)&&0!=ze&&(0,M.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(L)?"#343434"==z?(0,a.ub$)(L):z:(0,a.ub$)(L),alignItems:"center",borderRadius:(0,a.v8m)(L)+"px",width:"fit-content",padding:"3px 6px"},children:(0,M.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.BRY)(L),"important");const t=.9*parseFloat(Ae)+"px";e.style.setProperty("font-size",t),e.style.setProperty("font-family",q,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"600"},children:ze+"% off"})})]}),de&&(0,M.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",le?"5px 6px":"6px 12px","important"))},style:{backgroundColor:z,display:"flex",justifyContent:"center",alignItems:"center",color:"white",borderRadius:"4px",padding:le?"5px 6px":"6px 12px",fontSize:Math.max(9,.75*Pe)+"px",fontFamily:q,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(),!ie)return;ae(!0);const t=Q.landingLocationType,i=Q.templateType,o=(0,m.Wd)(t)+(0,m.gf)(i)+(null!==_&&void 0!==_&&_.isRelatedEvent?"R":"E")+"_"+(null===_||void 0===_?void 0:_.event_id);(0,d.Ch)(_.event_id,_.products,"homepage","carousel",o,null===_||void 0===_?void 0:_.location,null===$||void 0===$?void 0:$.userType),"init"==ce.state?(me(o,!0),(0,K.kz)({userInteractionType:v.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Q,event:_,productList:[ee],ctaList:_.cta})):"awaitingVariantSelection"==ce.state&&xe(null,o),setTimeout(()=>{ae(!1)},3e3)},onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:se?(0,M.jsx)(Te.y,{size:"sm",display:"flex !important",color:"white"}):"Add To Cart"})]})]})]})};var ze=function(e){var t;const[i,r]=(0,I.A)(),[l]=(0,n.QN)("whatmoreSecondaryColor"),[s]=(0,n.QN)("whatmoreShopId"),[d]=(0,n.QN)("whatmoreVideoTileSize"),[c]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p="portrait"===e.mode?c:d,[h,u]=(0,o.useState)(!1),m=(0,a.ivI)(s),x=e.event1,v=e.event2,y=e.onClick,g=.01*p,f=i*g,w=i*g*.5,j=r*g,b=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",S="15%",C=e.removeBorders;return(0,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:f+"px",width:j+"px",marginLeft:C?"2px":"5px",marginRight:C?"2px":"5px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},children:(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:C?"0px":b,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,M.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:j+"px",borderTopLeftRadius:C?"0px":S,borderTopRightRadius:C?"0px":S,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,M.jsx)(F.A,{height:"100%",width:"100%",url:x.thumbnail_image,isPlaying:!0,event:x})}),(0,M.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:w+"px",width:j+"px",borderBottomLeftRadius:C?"0px":S,borderBottomRightRadius:C?"0px":S,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,M.jsx)(F.A,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:!0,event:v})})]})})},Le=i(8385),De=i(851);const We=(0,S.A)({key:"whatmore-css-cv"});var Be=function(e){const t=e.events,[i]=(0,k.A)(),[r,l]=(0,I.A)(),[s,d]=(0,o.useState)(Array(t.length).fill(0).map(()=>Math.random())),c=(0,n.Xd)("whatmoreVideoTileSize"),p=(0,n.Xd)("whatmoreVideoTileSizePortrait"),u="portrait"===i?p:c,m="portrait"==i?0:(0,n.Xd)("whatmoreLandscapePadding"),x=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:v}=(0,o.useContext)(h.BR),y=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:g}=(0,o.useContext)(h.BR),S=e.onClick;function C(e){S(e)}(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),delete w.Ay.styles.global;var P=[];for(let o=0,n=!1;o<t.length;)n&&o!=t.length-1&&s[o]>.2?(P.push((0,M.jsx)(ze,{mode:i,event1:t[o],event2:t[o+1],onClick:()=>{C(t[o-1])}},"collections-tile-"+o)),o+=2,n=!n):(P.push((0,M.jsx)(Oe,{mode:i,event:t[o],onClick:()=>{C(t[o-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+o)),o+=1,n=!n);(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.forEach(e=>{var t,i,o;(null!==(t=null!==(i=null!==(o=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data="template-collections-a"]'))&&void 0!==i?i: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[_,R,N]=(0,E.A)({triggerOnce:!1});return(0,M.jsx)(b.C,{value:We,children:(0,M.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,M.jsx)("div",{ref:_,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,M.jsx)(Le.c,{renderElement:e=>(0,M.jsx)(M.Fragment,{children:e.eventData}),dataList:P,spacing:x,defaultHeight:r*u*.01+"px",defaultWidth:l*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!R&&-1==e.index&&(0,M.jsx)(De.A,{event:t[0],inVideoClick:C,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const Xe=(0,S.A)({key:"whatmore-css-cv"});var Ve=function(e){const t=e.events,[i]=(0,k.A)(),[r,l]=(0,o.useState)(Array(t.length).fill(0).map(()=>Math.random())),[s,d]=(0,I.A)(),c=(0,n.Xd)("whatmoreVideoTileSize"),p=(0,n.Xd)("whatmoreVideoTileSizePortrait"),u="portrait"===i?p:c,m="portrait"==i?0:(0,n.Xd)("whatmoreLandscapePadding"),x=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:v}=(0,o.useContext)(h.BR),y=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:g}=(0,o.useContext)(h.BR),S=e.onClick,[C,P,_]=(0,E.A)({triggerOnce:!1});function R(e){S(e)}delete w.Ay.styles.global;var N=[];for(let o=0,n=!1;o<t.length;)n&&o!=t.length-1&&r[o]>.2?(N.push((0,M.jsx)(ze,{event1:t[o],event2:t[o+1],onClick:()=>{R(t[o-1])},removeBorders:!0},"collections-tile-"+o)),o+=2,n=!n):(N.push((0,M.jsx)(Oe,{mode:i,event:t[o],onClick:()=>{R(t[o-1])},removeBorders:!0,borderRadius:"0%"},"collections-tile-"+o)),o+=1,n=!n);return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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,M.jsx)(b.C,{value:Xe,children:(0,M.jsx)("div",{className:v?"whatmore-collection-events":"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,M.jsx)("div",{ref:C,style:{marginLeft:m+"px",marginRight:m+"px"},children:(0,M.jsx)(Le.c,{showBgPlaceholder:!0,renderElement:e=>(0,M.jsx)(M.Fragment,{children:e.eventData}),dataList:N,spacing:x,defaultHeight:s*u*.01+"px",defaultWidth:d*u*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(y)&&v&&!P&&-1==e.index&&(0,M.jsx)(De.A,{event:t[0],inVideoClick:R,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})};const Ue=(0,S.A)({key:"whatmore-css-cv"});var He=function(e){var t;const[i]=(0,k.A)(),[r,l]=(0,I.A)(),s=(0,n.Xd)("whatmoreShopId"),d=(0,n.Xd)("whatmoreVideoTileSize"),c=(0,n.Xd)("whatmoreVideoTileSizePortrait"),p="portrait"===i?c:d,u="portrait"==i?0:(0,n.Xd)("whatmoreLandscapePadding"),m=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),[x]=(0,n.Xd)("whatmorePrimaryColor"),{whatmoreRootId:v}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:y}=(0,o.useContext)(h.BR),g=e.events,S=e.onClick,C=(0,n.Xd)("whatmoreTitleFont"),P="portrait"==i?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),_=null!==(t=(0,a.sa6)(s))&&void 0!==t?t:C,R=(0,n.Xd)("whatmorePrimaryFont");function N(e){S(e)}delete w.Ay.styles.global;const F=.055*l,T="22907887"===s||"79550939348"===s?"portrait"===i?.9:.83:1,O="68304765103"===s?"0px":"5%",z="68304765103"===s?"portrait"===i?6:20:m;var L=[];for(let o=0;o<g.length;){const e=g[o],t="STR1EXZ7ZRD"===s;L.push((0,M.jsxs)("div",{style:{position:"relative",transition:"transform 0.2s ease"},onMouseEnter:e=>e.currentTarget.style.transform="scale(1.01)",onMouseLeave:e=>e.currentTarget.style.transform="scale(1)",children:[(0,M.jsx)(Oe,{mode:i,event:e,onClick:()=>{N(g[o-1])},removeBorders:!0,borderRadius:O,fontSize:F},"collections-tile-"+o),t&&(0,M.jsxs)(M.Fragment,{children:[(0,M.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*F+"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",R,"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,M.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,M.jsx)(be.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]})]})),o++}(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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[D,W,B]=(0,E.A)({triggerOnce:!1});return(0,M.jsx)(b.C,{value:Ue,children:(0,M.jsx)("div",{className:y?"whatmore-collection-events":"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:v,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:0,tileBottomMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0&&!y&&(0,a.DLl)(s)?(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",_,"important"),e.style.setProperty("font-size",P+"px","important"))},style:{color:x,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(s),lineHeight:(0,a.L0y)(s),letterSpacing:(0,a.l3V)(s)},children:e.heading})}):(0,M.jsx)(M.Fragment,{}),(0,M.jsx)("div",{ref:D,style:{marginLeft:u+"px",marginRight:u+"px"},children:(0,M.jsx)(Le.c,{showBgPlaceholder:!0,renderElement:e=>(0,M.jsx)(M.Fragment,{children:e.eventData}),dataList:L,spacing:z,defaultHeight:T*r*p*.01+"px",defaultWidth:l*p*.01+"px",retainAlreadyRenderedElements:!0,shopId:s})}),(0,a.wQ2)(s)&&y&&!W&&-1==e.index&&(0,M.jsx)(De.A,{event:g[0],inVideoClick:N,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})},qe=i(3788);var Qe=function(e){var t,i;const r=(0,n.Xd)("whatmorePrimaryFont"),l=(0,n.Xd)("whatmoreSecondaryColor"),s=(0,n.Xd)("whatmoreShopId"),[d,c]=(0,o.useState)(!1),p=e.mode,h=e.storyId,u=(0,qe.s)(e.imageUrl),m=e.title,x=e.onClick,v=e.template,y=(0,a.ivI)(s),g="template-stories-a"===v?"50%":"30%",f=e.tileSize,w=.12*f*(0,a.cYm)(s),j=null!==(t=(0,a.Pjz)(s))&&void 0!==t?t:r;let b=null!==(i=(0,a.qAx)(s))&&void 0!==i?i:[l,y,l,y,l];Array.isArray(b)||(b=Array(5).fill(b));const S=(0,o.useRef)(0),C=(0,o.useRef)(null),P=(0,o.useRef)(null);return(0,o.useEffect)(()=>{P.current&&P.current.play();const e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="stories"])');e&&function t(i=0){const o=e.querySelector("#storiesLoader");o?o.style.display="none":i<10&&setTimeout(()=>t(i+1),100)}()},[]),(0,o.useEffect)(()=>{const e=C.current,t=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){const i=e.target;i.src=i.dataset.src,t.unobserve(i)}})},{rootMargin:"0px 100px 0px 0px",threshold:0});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[u]),(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:f*(0,a.rMH)(s)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{c(!0),x(h)},className:[d?"whatmore-scale-on-tap":""].join(" "),children:[(0,M.jsx)("div",{style:{display:"flex",boxSizing:"border-box",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:g,boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:(0,M.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:f+"px",width:f+"px",borderRadius:g,border:"3px solid white",backgroundColor:"#343434"===l?"#d3d3d3":l,overflow:"hidden"},children:"video"==(0,W.B)(u)?(0,M.jsx)(F.A,{height:"100%",width:"100%",url:u,isPlaying:!0,event:{event_type:"video"},borderRadius:g}):(0,M.jsx)("img",{ref:C,className:"whatmore-story-thumbnail","data-src":u.startsWith("https://cdn.shopify.com")?u.split("?")[0]+"?width=400&height=400":u,loading:"lazy",style:{objectFit:"cover",width:"100%",height:"100%",backgroundColor:"white"},alt:"story",onError:function(){if(S.current<3){let t=(0,qe.s)(e.imageUrl);C.current.src="",C.current.src=t,S.current=S.current+1}else console.log("Failed to load image after several attempts"),C.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,M.jsx)("p",{className:"wht-story-title "+("landscape"===p?"wst-landscape":"wst-portrait"),style:{textAlign:"center",color:(0,a.o9q)(s),fontFamily:j,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto",fontSize:w+"px"},children:null===m||void 0===m?void 0:m.substring(0,24)})})]})},$e=i(3059),Ge=(0,$e.A)((0,M.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Ye=(0,$e.A)((0,M.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const Ke=(0,S.A)({key:"whatmore-stories-css"});var Je=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreStoryTileSize"),[s]=(0,n.QN)("whatmoreStoryTileSizeDesktop"),[d]=(0,n.QN)("whatmoreShopId"),[c,p]=(0,o.useState)("portrait"===t?"flex-start":"center"),[h,u]=(0,o.useState)(!1),[m,x]=(0,o.useState)(!1),v=(0,o.useRef)(null),y=(0,o.useRef)(null);var g=e.eventsStories;const f=e.onClick,w=e.template,S="landscape"===t&&(0,a.lDJ)(d);function C(){if(!S||!v.current)return;const{scrollLeft:e,scrollWidth:t,clientWidth:i}=v.current;u(e>0),x(e<t-i-1)}(0,o.useEffect)(()=>{j.forEach(e=>{var t;if(!(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"]')))return;e&&(e.style.minHeight="0px")})},[]);const P=e=>{if(v.current){const t="left"===e?4*-R:4*R;v.current.scrollBy({left:t,behavior:"smooth"})}};(0,o.useEffect)(()=>{!function(){if(v.current){const e=v.current.scrollWidth,t=v.current.offsetWidth;p(e>t?"flex-start":"center")}}()},[c,r]),(0,o.useEffect)(()=>{if(!S)return;const e=()=>{C()},t=()=>{C()},i=v.current;return i?(i.addEventListener("scroll",e),window.addEventListener("resize",t),C(),()=>{i.removeEventListener("scroll",e),window.removeEventListener("resize",t)}):void 0},[S]);const[I,_]=(0,o.useState)([]);(0,o.useEffect)(()=>{_(g.map(e=>e.storyset_dynamic_thumbnail?Math.floor(Math.random()*(e.events.length-1)):0))},[]);const R="landscape"===t?i*(s/340):r*(l/200);return(0,M.jsx)(b.C,{value:Ke,children:"landscape"==t&&!(0,a.AFg)(d)||"portrait"==t&&!(0,a.rC6)(d)?(0,M.jsx)(M.Fragment,{}):(0,M.jsxs)("div",{ref:y,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-story-container",children:[(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:c,height:"fit-content",width:"100%",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-story-horizontal-flex",ref:v,children:g.map((e,i)=>{var o,n,r,l,s;const a=e.storyset_dynamic_thumbnail?null!==(o=null===(n=e.events[I[i]])||void 0===n?void 0:n.poster_image)&&void 0!==o?o:e.thumbnail_image:null!==(r=e.thumbnail_image)&&void 0!==r?r:null===e||void 0===e||null===(l=e.events)||void 0===l||null===(s=l[0])||void 0===s?void 0:s.thumbnail_image;return(0,M.jsx)(Qe,{storyId:e.id,tileSize:R,onClick:e=>{f(i)},template:w,imageUrl:a,fallbackUrl:e.thumbnail_image,title:e.title,mode:t},"whatmore-story-"+e.id)})}),S&&(0,M.jsxs)(M.Fragment,{children:[h&&(0,M.jsx)("button",{onClick:()=>P("left"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",left:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,M.jsx)(Ge,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})}),m&&(0,M.jsx)("button",{onClick:()=>P("right"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",right:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,M.jsx)(Ye,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})};i(1012);var Ze=function(e){var t,i,r,l,s,d,c,p,u,x,y,g,f,w,j,b,S,C,P,k,_;const[R,N,E,z,L]=(0,I.A)(),W=.5*N;(0,o.useContext)(A);const V=(0,n.Xd)("whatmoreUITheme"),U=(0,n.Xd)("whatmoreShopId"),H=(0,n.Xd)("whatmorePrimaryFont"),q=(0,n.Xd)("whatmoreSecondaryColor"),Q=(0,n.Xd)("websiteLanguage"),[$]=(0,n.QN)("whatmoreShowViews"),G=e.onClick,Y=null===(t=e.isOnFocus)||void 0===t||t,J=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,Z=null!==(r=e.animateOnFocus&&(0,a.n5O)(U))&&void 0!==r&&r,ee="portrait"===L[we.dl],te=(ee?1.076*N*(0,a.HWj)(U):N*(0,a.N_4)(U))+"px",ie=(ee?1.076*N*(0,a.HWj)(U):N*(0,a.N_4)(U))+"px",oe=(ee?.965*N*(0,a.HWj)(U):.859*N*(0,a.N_4)(U))+"px",ne=(0,a.VYo)(U),{whatmoreIsPreviewMode:re,whatmoreWidgetSourceDetails:le}=(0,o.useContext)(h.BR),se=.25*N,ae=se+"px",de=1.25*se+"px",[ce,pe]=(0,o.useState)(e.event),[he,ue]=(0,o.useState)(),[me,xe]=(0,o.useState)(!1),ve=null!==(l=null===(s=ce.products)||void 0===s?void 0:s.find(e=>"active"==e.product_status))&&void 0!==l?l:null===(d=ce.products)||void 0===d?void 0:d[0],ye=Math.round(+(null===ve||void 0===ve?void 0:ve.price)),ge=Math.round(+(null===ve||void 0===ve?void 0:ve.compare_price)),je=ge&&0!=ge&&ge>ye?Math.round((ge-ye)/ge*100):NaN,[be,Se]=(0,o.useState)(je),[Ce,Pe]=(0,o.useState)(!1),[Ie,ke,_e,Re,Ae,Me]=(0,Ee.A)(0,ve,ce),Ne="81308287252"===U&&document.body.classList.contains("dark-mode-active")?"white":(0,a.m5c)(U);return(0,o.useEffect)(()=>{if("81308287252"===U)return void Pe(!0);(0,a.w4b)(U)?(0,D.fu)(ce,(0,a.NCy)(U),U).then(e=>{var t,i,o;pe(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),r=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;Se(l),Pe(!0)}):(async()=>{const e=await(0,B.M)(ve,(0,a.NCy)(U),U);ue(e),Pe(!0)})()},[]),(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","12px"),e.style.setProperty("margin-bottom","12px"))},className:Z&&!ee?Y?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:N,margin:"0 auto",cursor:"pointer"},onClick:()=>{G(ce)},onMouseEnter:()=>xe(!0),onMouseLeave:()=>xe(!1),children:["video"===ce.event_type&&"55076552858"===U&&!ee&&(0,M.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*W,marginLeft:W/2},children:(0,M.jsx)(fe.A,{sx:{color:(0,a.KFN)(ce.whatmoreShopId)+" !important",opacity:.8,fontSize:W,filter:"drop-shadow(0 0 15px black);"}})}),(0,M.jsxs)("div",{style:{width:N,height:ee&&Y?"STR2FOC6KG9"==U||"STRDOIDF6O7"==U?R:1.1*R:R,borderRadius:"round"==V?"5px":"0px",boxShadow:"round"==V?ne:null,borderWidth:(0,a.YcK)(U),borderColor:(0,a.Fwt)(U),overflow:"hidden",position:"relative"},children:[(0,M.jsx)(F.A,{height:(0,a.u06)(U)+" !important",width:"100%",url:ce.thumbnail_image,isPlaying:Y||J,event:ce}),"70946685152"===U&&(0,M.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,pointerEvents:"none"},children:(0,M.jsx)("div",{style:{transform:"scale(2.25)"},children:(0,M.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/heeras/heeras.png",alt:"overlay"})})}),"show"===$&&"show"===(0,a.klK)(U)&&(0,M.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,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,M.jsx)(T.A,{event:ce,fontSize:.07*N+"px"})})})})}),"9238315068"===U&&(me||ee)&&(0,M.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:me||ee?"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:me||ee?"translateY(0)":"translateY(100%)",opacity:me||ee?1:0},onClick:e=>{e.stopPropagation();const t=le.landingLocationType,i=le.templateType,o=(0,m.Wd)(t)+(0,m.gf)(i)+(null!==ce&&void 0!==ce&&ce.isRelatedEvent?"R":"E")+"_"+(null===ce||void 0===ce?void 0:ce.event_id);"init"==Ie.state?(Ae(o),(0,K.kz)({userInteractionType:v.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:le,event:ce,productList:[ve],ctaList:ce.cta})):"awaitingVariantSelection"==Ie.state&&Me(null,o)},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,M.jsx)("span",{style:{color:"white",fontSize:te,fontFamily:H,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:"ADD TO CART"})})]}),(0,M.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(re?(0,a.Tr1)(U):(0,a.UmS)(U))&&(null===ce||void 0===ce||null===(c=ce.products)||void 0===c?void 0:c.length)>0&&(0,M.jsx)("div",{style:{maxHeight:de,maxWidth:ae,minWidth:null!==ve&&void 0!==ve&&ve.thumbnail_image?ae:"0",overflow:"hidden"},children:(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(U),"important")},style:{height:"100%"},src:(null===ve||void 0===ve||null===(p=ve.thumbnail_image)||void 0===p||null===(u=p.split("?"))||void 0===u?void 0:u[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,M.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Ne,"important"),e.style.setProperty("font-size",te,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,O.v)(null===ve||void 0===ve?void 0:ve.title)}),Ce&&(0,a.Nzx)(U)&&(0,M.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,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",Ne,"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(U)?"normal":"bold"},children:(0,D.Sb)(parseFloat("81308287252"===U?null===ve||void 0===ve?void 0:ve.price:(0,X.U)()?(null!==(x=null===he||void 0===he||null===(y=he.variants)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.price)&&void 0!==x?x:null===he||void 0===he?void 0:he.price)/100:null===ve||void 0===ve?void 0:ve.price)," ",U,null===(f=ce.products[0])||void 0===f?void 0:f.currency)}),!isNaN(ge)&&ge>ye&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(U),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,D.Sb)(parseFloat("81308287252"===U?null===ve||void 0===ve?void 0:ve.compare_price:(0,X.U)()?(null!==(w=null===he||void 0===he||null===(j=he.variants)||void 0===j||null===(b=j[0])||void 0===b?void 0:b.compare_at_price)&&void 0!==w?w:null===he||void 0===he?void 0:he.compare_at_price)/100:null===ve||void 0===ve?void 0:ve.compare_price)," ",U,null===(S=ce.products[0])||void 0===S?void 0:S.currency)}),"56352899156"==U&&(0,a.Nzx)(U)&&Ce&&!isNaN(be)&&0!=be&&(0,M.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(U)?"#343434"==q?(0,a.ub$)(U):q:(0,a.ub$)(U),alignItems:"center",borderRadius:(0,a.v8m)(U)+"px",width:"fit-content",padding:"3px 4px"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(U),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${be}% ${null!==(C=null===Fe.m||void 0===Fe.m||null===(P=Fe.m[Q])||void 0===P?void 0:P.off)&&void 0!==C?C:"off"}`})})]}),(0,a.Nzx)(U)&&Ce&&!isNaN(be)&&0!=be&&(0,M.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(U)?"#343434"==q?(0,a.ub$)(U):q:(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,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(U),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",H,"important"))},children:`${be}% ${null!==(k=null===Fe.m||void 0===Fe.m||null===(_=Fe.m[Q])||void 0===_?void 0:_.off)&&void 0!==k?k:"off"}`}):(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(U),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",(0,a.ogW)(U),"important"))},children:(0,a.rsz)(U)})})]}),""!=(null===ce||void 0===ce?void 0:ce.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,M.jsx)("div",{className:"wht-video-title",style:{display:"none",justifyContent:"center",borderRadius:"5px",alignItems:"center",padding:"6px 8px"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#343434"),e.style.setProperty("font-size",te,"important"),e.style.setProperty("font-family",H,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-align","center","important"))},children:null===ce||void 0===ce?void 0:ce.title})})]})]})};const et=(0,S.A)({key:"whatmore-css-hv"});function tt(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,M.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsxs)("div",{style:{width:"8968077397"===c&&p.length<4?"200px":d,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,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{className:"whatmore-swiper-button-prev"}),(0,M.jsx)("div",{className:"whatmore-swiper-button-next"})]}),(0,M.jsx)(C.RC,{slidesPerView:p.length>1?"51394281658"==c||"55820812447"==c?2:m:1,initialSlide:p.length>1&&"51394281658"!=c&&"55820812447"!=c?1:0,centeredSlides:"51394281658"!=c&&"55820812447"!=c,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==c?1:.5,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x&&p.length>2,modules:[...(0,a.JSQ)(c)?[P.Vx]:[],..."79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c?[P.Ij]:[]],navigation:"90518552861"!==c&&"63512346790"!==c||!(0,a.JSQ)(c)?(0,a.JSQ)(c):{nextEl:".whatmore-swiper-button-next",prevEl:".whatmore-swiper-button-prev"},autoplay:("79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,a.DmD)(c)?(0,M.jsx)(Ze,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(Ie,{isOnFocus:("51394281658"==c||"55820812447"==c||t)&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-portrait-"+e.index))})]})})}function it(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),p=e.onClick,u=e.events,m=(0,a.cbh)(c),[x,y]=(0,o.useState)(m?u.length:r),g="8968077397"==c||"19501891"==c?Math.floor(Math.min(r,u.length)):Math.min(r,u.length),f="79550939348"==c||"37274026115"==c?1:g,w=Math.floor(Math.min(4,u.length)),{whatmoreWidgetSourceDetails:j}=(0,o.useContext)(h.BR),b=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(b.current){const e="8968077397"===c&&u.length>=4?.7:(0,a.fHt)(c),t=i*g*e+"px";u.length<4||"8968077397"===c?b.current.style.setProperty("width",t,"important"):b.current.style.width=t}},[i,g,c,x,u.length]),(0,o.useEffect)(()=>{x<=r&&y(e=>e+r)},[r]),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:l+"px",paddingRight:l+"px"},className:"whatmore-events-carousel-landscape",children:(0,M.jsx)("div",{ref:b,style:{height:"100%"},children:(0,M.jsx)(C.RC,{slidesPerView:"8968077397"==c?w:g,watchSlidesProgress:!0,modules:[P.Vx,P.Ij],navigation:!0,slidesPerGroup:"8968077397"==c||"19501891"==c?Math.min(2,u.length):parseInt(f),onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j}),e.realIndex>e.previousIndex&&y(e=>e+r)},spaceBetween:0,loop:(m||"8968077397"==c||"19501891"==c)&&u.length>4,autoplay:("79550939348"==c||"37274026115"==c||"90518552861"===c||"63512346790"===c)&&{delay:4e3,disableOnInteraction:!1,waitForTransition:!1},style:{height:"100%"},children:u.map((e,t)=>{const i=R()(()=>d(t),300);return t<=x&&(0,M.jsx)(C.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),d(-1)},style:{height:"100%"},children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r||"8968077397"==c||"19501891"==c&&(o||n)?(0,a.DmD)(c)?(0,M.jsx)(Ze,{isOnFocus:t==s,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,M.jsx)(Ie,{isOnFocus:t==s,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var ot=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:p}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:u}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,y=d;function g(e){v(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:et,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{if(e){e.style.setProperty("font-family",y,"important");const t="10952326"===l?18:c;e.style.setProperty("font-size",t+"px","important")}},style:{color:s,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(l),lineHeight:(0,a.L0y)(l),letterSpacing:(0,a.l3V)(l)},children:m?"W"!==u?u:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===t?"90518552861"===l||"63512346790"===l?(0,M.jsx)(tt,{events:x,onClick:g}):(0,M.jsx)(it,{events:x,onClick:g}):(0,M.jsx)(tt,{events:x,onClick:g})]})})})})},nt=i(6663);var rt=function({productList:e,firstAvailableProduct:t,setFirstAvailableProduct:i,tileWidth:o}){const r=.06*o,l=r+"px",[s]=(0,n.QN)("whatmorePrimaryFont");return(0,M.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,M.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,M.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*o,overflowY:"auto",paddingBottom:"12px"},children:e.map((e,o)=>(0,M.jsxs)("div",{onClick:t=>{t.stopPropagation(),(e=>{i(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,M.jsx)("img",{src:(0,W.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,M.jsx)("p",{style:{fontSize:.8*r+"px",fontFamily:s,textTransform:"uppercase",backgroundColor:"inherit"},children:null===e||void 0===e?void 0:e.title})]},o))})]})};var lt=function(e){var t,i,r,l,s,p,u,x,y,g,f,w,j,b,S,C,P,k,_,R,N,E,T,z,L;const[V,U,H,q,Q]=(0,I.A)(),$=(0,n.Xd)("whatmoreShopId"),G=(0,n.Xd)("whatmoreLandingLocationType"),Y="portrait"===Q[we.dl],J=Y?1.076*U*(0,a.HWj)($):U*(0,a.N_4)($),Z=J+"px",ee=Y?1.076*U*(0,a.HWj)($):U*(0,a.N_4)($),te=ee+"px",ie=Y?.965*U*(0,a.HWj)($):.859*U*(0,a.N_4)($),oe=ie+"px",[ne,re]=(0,o.useState)(e.event),[le,se]=(0,o.useState)(!1),ae=(0,n.Xd)("whatmoreSecondaryColor");(0,n.Xd)("whatmoreProductId");var de=(0,o.useContext)(A);const ce=null===(t=e.isOnFocus)||void 0===t||t,pe=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,he=e.onClick,ue=(0,n.Xd)("whatmoreUITheme"),me=(0,n.Xd)("websiteLanguage"),xe=null!==(r=e.animateOnFocus&&(0,a.n5O)($))&&void 0!==r&&r,[ve,ye]=(0,o.useState)(!1),ge=(0,n.Xd)("whatmorePrimaryFont"),[fe,je]=(0,o.useState)(null!==(l=null===(s=ne.products)||void 0===s?void 0:s.find(e=>"active"==e.product_status))&&void 0!==l?l:null===(p=ne.products)||void 0===p?void 0:p[0]),be=fe&&Object.keys(fe).length>0;let Se,Ce,Pe;Se=parseFloat(null===fe||void 0===fe?void 0:fe.price),Ce=parseFloat(null===fe||void 0===fe?void 0:fe.compare_price),Pe=Ce&&0!=Ce&&Ce>Se?Math.round((Ce-Se)/Ce*100):NaN;const[Ie,ke]=(0,o.useState)(Pe),[_e,Re]=(0,o.useState)(),{whatmoreIsPreviewMode:Ae,whatmoreWidgetSourceDetails:Me,whatmoreUserInfo:Ne}=(0,o.useContext)(h.BR),[Oe,ze]=(0,o.useState)(!1),[Le,De,We,Be,Xe,Ve]=(0,Ee.A)(0,fe,ne),Ue=be&&(0,a.mRH)($),He=be&&(0,a.VhI)($),qe=(0,a.WRx)($)||ae,Qe=(0,a.jsS)($)||"white",$e=(0,a.KPq)($)||"ADD TO CART",[Ge,Ye]=(0,o.useState)(!1),Ke="74714218724"===$||"76767920441"===$||"55840899223"===$||"16957273"===$,Je=.25*U,Ze=Ke&&Y?.72*ee+"px":te,et=Ke&&Y?.72*ie+"px":oe,[tt,it]=(0,o.useState)(null),[ot,lt]=(0,o.useState)(!1),st="64287408360"===$&&_e&&_e.options&&1===_e.options.length&&"size"===_e.options[0].name.toLowerCase()&&_e.variants&&_e.variants.length>0,at=st?_e.variants.filter(e=>e.available):[];(0,o.useEffect)(()=>{if("6573064236"!==$){if(be&&(0,a.w4b)($)&&(0,D.fu)(ne,(0,a.NCy)($),$).then(e=>{var t,i,o;re(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.discount)&&ke(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.discount),ye(!0)}),be){(async()=>{let e=fe;for(let o=0;o<(null===ne||void 0===ne||null===(t=ne.products)||void 0===t?void 0:t.length);o++){var t;const i=await(0,B.M)(null===ne||void 0===ne?void 0:ne.products[o],(0,a.NCy)($),$);if(null!==i&&void 0!==i&&i.available){je(null===ne||void 0===ne?void 0:ne.products[o]),e=null===ne||void 0===ne?void 0:ne.products[o];break}}const i=await(0,B.M)(e,(0,a.NCy)($),$);Re(i),ye(!0)})()}}else ye(!0)},[be]),(0,o.useEffect)(()=>{if(be){if("6573064236"===$)return void ye(!0);(async()=>{const e=await(0,B.M)(fe,(0,a.NCy)($),$);Re(e),ye(!0)})()}},[fe]),(0,o.useEffect)(()=>{st&&at.length>0&&!tt&&it(at[0])},[st,at,tt]),(0,o.useEffect)(()=>{if("awaitingVariantSelection"===Le.state&&tt&&st&&!ot){const e=Me.landingLocationType,t=Me.templateType,i=(0,m.Wd)(e)+(0,m.gf)(t)+(null!==ne&&void 0!==ne&&ne.isRelatedEvent?"R":"E")+"_"+(null===ne||void 0===ne?void 0:ne.event_id);console.log("selectedVariant : ",tt.option1),Ve([tt.option1,null,null],i)}},[Le]);const dt=async e=>{if("6573064236"===$&&null!==fe&&void 0!==fe&&fe.product_link)return e.stopPropagation(),void(window.location.href=fe.product_link);if(e.stopPropagation(),!be)return;if(st)return void lt(!0);se(!0);const t=Me.landingLocationType,i=Me.templateType,o=(0,m.Wd)(t)+(0,m.gf)(i)+(null!==ne&&void 0!==ne&&ne.isRelatedEvent?"R":"E")+"_"+(null===ne||void 0===ne?void 0:ne.event_id);(0,d.Ch)(ne.event_id,ne.products,"homepage","carousel",o,null===ne||void 0===ne?void 0:ne.location,null===Ne||void 0===Ne?void 0:Ne.userType),"init"==Le.state?(Xe(o,!0),(0,K.kz)({userInteractionType:v.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Me,event:ne,productList:[fe],ctaList:ne.cta})):"awaitingVariantSelection"==Le.state&&Ve(null,o),setTimeout(()=>{se(!1),Ye(!1)},3e3)},ct=Y?"36px":"44px",pt=Ke&&Y?{width:.25*U,height:.33*U}:Ke?{width:1.1*Je,height:1.45*Je}:null;return(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",de.tileTopMargin+"px"),e.style.setProperty("margin-bottom",de.tileBottomMMargin+"px"))},className:xe&&!Y?ce?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:Ke&&!Y?1.1*U:U,position:"relative"},onClick:()=>{he(ne)},onMouseEnter:()=>ze(!0),onMouseLeave:()=>ze(!1),children:[(0,M.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==ue?"5%":"0px",boxShadow:"round"==ue?"0px 0px 5px 0px #B0B0B0":null,height:V,borderWidth:(0,a.YcK)($),borderColor:(0,a.Fwt)($),overflow:"hidden",position:"relative"},children:[(0,M.jsx)(F.A,{height:(0,a.u06)($)+" !important",width:"100%",url:ne.thumbnail_image,isPlaying:ce||pe||(0,c.At)(),event:ne}),He&&be&&(Oe||Y)&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{position:"absolute",bottom:ct,left:0,right:0,display:Ge?"block":"none"},children:(0,M.jsx)(rt,{productList:ne.products,firstAvailableProduct:fe,setFirstAvailableProduct:je,tileWidth:U})}),(0,M.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:qe||"rgba(0, 0, 0, 0.75)",height:ct,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Oe||Y?"translateY(0)":"translateY(100%)",opacity:Oe||Y?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:dt,children:[(0,M.jsx)("div",{style:{flex:1,textAlign:"center",color:Qe,fontSize:"12px",fontFamily:ge,fontWeight:"500",letterSpacing:"0.5px"},children:le?(0,M.jsx)(Te.y,{size:"sm",color:"white"}):$e}),(0,M.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Qe}`,opacity:.5}}),(0,M.jsx)("div",{onClick:e=>{e.stopPropagation(),Ye(!Ge)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Qe,transform:Ge?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,M.jsx)(nt.A,{sx:{fontSize:2*J}})})]})]})]}),(0,M.jsxs)("div",{className:"wht-prod-info",style:{display:(0,a.AmR)($)?"flex":"none",flexDirection:"row",padding:Ke&&!Y?"8px 4px":"12px 4px",gap:Ke&&!Y?"8px":"12px",alignItems:"stretch",minHeight:"auto"},children:[Ke&&be&&pt&&(0,M.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)($),"important")},src:(0,W.b)((null===fe||void 0===fe?void 0:fe.thumbnail_image)||(null===fe||void 0===fe?void 0:fe.image)||(null===fe||void 0===fe?void 0:fe.featured_image),"&width=400&height=400"),alt:null===fe||void 0===fe?void 0:fe.title,style:{width:pt.width,height:pt.height,borderRadius:"round"==ue?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:Y?"0px":"-3px"}})}),(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:Ke&&!Y?"3px":"5px",flex:1,minWidth:0},children:[be&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)($),"important"),e.style.setProperty("font-size","45034766485"==$&&"product"==G?"9px":Z),e.style.setProperty("line-height","120%"),e.style.setProperty("font-family",ge,"important"),e.style.setProperty("-webkit-line-clamp","55840899223"===$?"2":"1","important"),e.style.setProperty("line-clamp","55840899223"===$?"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"===$&&e.style.setProperty("height",1.2*J*2+"px","important"))},children:(0,O.v)(null===fe||void 0===fe?void 0:fe.title)}),be&&ve&&(0,a.Nzx)($)&&(0,M.jsxs)("div",{style:{display:"flex",gap:Ke&&Y?"2px":"12px",flexDirection:(0,a.vw2)($)?"row":"row-reverse",justifyContent:(0,a.vw2)($)?"flex-start":"flex-end",alignItems:"center",flexWrap:Ke&&Y?"nowrap":"wrap",overflow:Ke&&Y?"visible":"initial"},children:[(0,M.jsx)("p",{ref:e=>{if(e){e.style.setProperty("color",(0,a.m5c)($),"important");const t="45034766485"==$&&"product"==G?"8px":Ze;e.style.setProperty("font-size",t),e.style.setProperty("font-family",ge,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-align","left","important"),e.style.setProperty("width","auto","important"),Ke&&Y&&e.style.setProperty("white-space","nowrap","important")}},style:{fontWeight:"normal"==(0,a.i6j)($)?"normal":"bold"},children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(u=null===_e||void 0===_e||null===(x=_e.variants)||void 0===x||null===(y=x[0])||void 0===y?void 0:y.price)&&void 0!==u?u:null===_e||void 0===_e?void 0:_e.price)?(null!==(g=null===_e||void 0===_e||null===(f=_e.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.price)&&void 0!==g?g:null===_e||void 0===_e?void 0:_e.price)/100:Se:Se>0?Se:null===fe||void 0===fe?void 0:fe.price_max)," ",$,null===(j=ne.products[0])||void 0===j?void 0:j.currency)}),!isNaN(Ce)&&Ce>Se&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)($),"important"),e.style.setProperty("font-size",Ze),e.style.setProperty("font-family",ge,"important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("width","auto","important"),Ke&&Y&&e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,D.Sb)(parseFloat((0,X.U)()&&(null!==(b=null===_e||void 0===_e||null===(S=_e.variants)||void 0===S||null===(C=S[0])||void 0===C?void 0:C.compare_at_price)&&void 0!==b?b:null===_e||void 0===_e?void 0:_e.compare_at_price)?(null!==(P=null===_e||void 0===_e||null===(k=_e.variants)||void 0===k||null===(_=k[0])||void 0===_?void 0:_.compare_at_price)&&void 0!==P?P:null===_e||void 0===_e?void 0:_e.compare_at_price)/100:Ce)," ",$,null===(R=ne.products[0])||void 0===R?void 0:R.currency)}),(0,a.Nzx)($)&&!isNaN(Ie)&&0!=Ie&&ve&&Ue&&(0,M.jsx)("div",{style:{display:(0,a.QNr)($)?"flex":"none",backgroundColor:"green"===(0,a.ub$)($)?"#343434"===ae?(0,a.ub$)($):ae:(0,a.ub$)($),alignItems:"center",borderRadius:(0,a.v8m)($)+"px",width:"fit-content",padding:(0,a.Cf)($)?Ke&&Y?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:Ke&&Y?"nowrap":"normal"},children:(0,a.Cf)($)?(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)($),"important"),e.style.setProperty("font-size",et,"important"),e.style.setProperty("font-family",ge,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Ie}% ${null!==(N=null===Fe.m||void 0===Fe.m||null===(E=Fe.m[me])||void 0===E?void 0:E.off)&&void 0!==N?N:"off"}`}):(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)($),"important"),e.style.setProperty("font-size",et,"important"),e.style.setProperty("font-family",(0,a.ogW)($),"important"))},children:(0,a.rsz)($)})})]}),be&&(0,a.Nzx)($)&&!isNaN(Ie)&&0!=Ie&&ve&&!Ue&&(0,M.jsx)("div",{style:{display:(0,a.QNr)($)?"flex":"none",backgroundColor:"green"===(0,a.ub$)($)?"#343434"===ae?(0,a.ub$)($):ae:(0,a.ub$)($),alignItems:"center",borderRadius:(0,a.v8m)($)+"px",width:"fit-content",padding:(0,a.Cf)($)?Ke&&Y?"1px 3px":"3px 6px":"0px",flexShrink:0,whiteSpace:Ke&&Y?"nowrap":"normal"},children:(0,a.Cf)($)?(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)($),"important"),e.style.setProperty("font-size",et,"important"),e.style.setProperty("font-family",ge,"important"),e.style.setProperty("font-weight","normal","important"))},children:`${Ie}% ${null!==(T=null===Fe.m||void 0===Fe.m||null===(z=Fe.m[me])||void 0===z?void 0:z.off)&&void 0!==T?T:"off"}`}):(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)($),"important"),e.style.setProperty("font-size",et,"important"),e.style.setProperty("font-family",(0,a.ogW)($),"important"))},children:(0,a.rsz)($)})}),Ue&&(0,M.jsx)("button",{style:{backgroundColor:ae,display:"flex",justifyContent:"center",alignItems:"center",color:"white",borderRadius:"4px",padding:Ke&&Y?"6px 8px":"8px 16px",fontSize:Ke&&Y?.8*J+"px":Z,fontFamily:ge,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:Ke&&Y?"0.3px":"0.5px",transition:"opacity 0.2s ease",width:Ke&&Y?"100%":"95%",marginTop:Ke&&Y?"auto":Ke?"6px":"0px",alignSelf:"stretch",marginLeft:"0px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},onClick:dt,onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:le?(0,M.jsx)(Te.y,{size:"sm",display:"flex !important",color:"white"}):$e})]})]}),st&&ot&&(0,M.jsx)("div",{onClick:e=>{e.stopPropagation(),lt(!1)},style:{position:"absolute",bottom:Y?"25px":"10px",left:0,right:0,zIndex:1e4},children:(0,M.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{backgroundColor:"#f5f5f5",borderRadius:Y?"10px 10px 0 0":"12px 12px 0 0",padding:Y?"8px":"14px",width:"100%",boxShadow:"0 -4px 20px rgba(0,0,0,0.15)"},children:[(0,M.jsx)("div",{style:{width:Y?"30px":"45px",height:"3px",backgroundColor:"#ccc",borderRadius:"2px",margin:Y?"0 auto 2px":"0 auto 4px"}}),(0,M.jsx)("h3",{style:{fontSize:Y?"10px":"12px",fontFamily:ge,fontWeight:"500",textAlign:"center",margin:Y?"0 0 5px 0":"0 0 8px 0",color:"#000"},children:"Size"}),(0,M.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:Y?"5px":"8px",marginBottom:Y?"5px":"8px",justifyContent:"center"},children:null===_e||void 0===_e||null===(L=_e.variants)||void 0===L?void 0:L.map(e=>(0,M.jsx)("div",{onClick:()=>{e.available&&it(e)},style:{padding:Y?"4px 4px":"6px 8px",borderRadius:Y?"4px":"5px",border:`1px solid ${(null===tt||void 0===tt?void 0:tt.id)===e.id?"white":ae}`,textAlign:"center",cursor:e.available?"pointer":"not-allowed",fontSize:Y?"7px":"10px",fontFamily:ge,fontWeight:"200",backgroundColor:(null===tt||void 0===tt?void 0:tt.id)===e.id?ae:"white",color:(null===tt||void 0===tt?void 0:tt.id)===e.id?"white":ae,textDecoration:e.available?"none":"line-through",whiteSpace:"nowrap",opacity:e.available?1:.5,boxShadow:(null===tt||void 0===tt?void 0:tt.id)===e.id?"0px 1px 8px 0px rgba(0,0,0,0.18)":"none"},children:e.option1},e.id))}),(0,M.jsxs)("div",{style:{display:"flex",gap:Y?"5px":"6px"},children:[(0,M.jsx)("button",{onClick:()=>lt(!1),style:{flex:1,padding:Y?"6px":"9px",backgroundColor:"white",color:"#000",borderRadius:Y?"5px":"6px",fontSize:Y?"10px":"12px",fontFamily:ge,fontWeight:"600",cursor:"pointer",border:"1px solid #ddd"},children:"Cancel"}),(0,M.jsx)("button",{onClick:async()=>{lt(!1),se(!0);const e=Me.landingLocationType,t=Me.templateType,i=(0,m.Wd)(e)+(0,m.gf)(t)+(null!==ne&&void 0!==ne&&ne.isRelatedEvent?"R":"E")+"_"+(null===ne||void 0===ne?void 0:ne.event_id);(0,d.Ch)(ne.event_id,ne.products,"homepage","carousel",i,null===ne||void 0===ne?void 0:ne.location,null===Ne||void 0===Ne?void 0:Ne.userType),(0,K.kz)({userInteractionType:v.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:Me,event:ne,productList:[fe],ctaList:ne.cta}),"init"==Le.state?Xe(i,!1):"awaitingVariantSelection"==Le.state&&Ve([null===tt||void 0===tt?void 0:tt.option1,null,null],i),setTimeout(()=>{se(!1),Ye(!1),lt(!1)},3e3)},style:{flex:1,padding:Y?"6px":"9px",backgroundColor:ae,color:"white",border:"1px solid #ddd",borderRadius:Y?"5px":"6px",fontSize:Y?"10px":"12px",fontFamily:ge,fontWeight:"600",cursor:"pointer"},children:"Done"})]})]})})]})};const st=(0,S.A)({key:"whatmore-css-hv"});function at(e){const[t,i,r]=(0,I.A)(),l=(0,n.Xd)("whatmoreShopId"),s=(0,n.Xd)("whatmoreLandingLocationType"),d=e.events,c=e.onClick,{whatmoreWidgetSourceDetails:p}=(0,o.useContext)(h.BR),u=Math.ceil(r),m=2*u,[x,y]=(0,o.useState)(m),[g,f]=(0,o.useState)(2*u),w=0===(0,a.If9)(l)?24:(0,a.If9)(l),[j,b]=(0,o.useState)({touchX:0,touchY:0}),S=()=>(0,M.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,M.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),C=()=>(0,M.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,M.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),P=e=>{if("next"===e){const e=2;f(e=>Math.min(e+Math.floor(r),d.length+u+1)),y(t=>Math.min(t+e,d.length+u+1))}else f(e=>Math.max(e-Math.floor(r),m));(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:p})};return(0,M.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==l&&"product"==s?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:e=>{b({touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchEnd:e=>{var t,i,o,n;const r=(null===(t=e.changedTouches)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.clientX)-j.touchX,l=(null===(o=e.changedTouches)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.clientY)-j.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&P(r>0?"prev":"next")},children:[(0,a.JSQ)(l)&&(0,M.jsxs)(M.Fragment,{children:[g<=d.length+u&&(0,M.jsx)("div",{onClick:()=>P("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,M.jsx)(S,{})}),g>2*u&&(0,M.jsx)("div",{onClick:()=>P("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,M.jsx)(C,{})})]}),(0,M.jsx)("div",{style:{display:"flex",gap:w,transform:`translateX(-${(g-m)*(i+w)}px)`,transition:"transform 0.4s ease-in-out"},children:d.map((e,t)=>t<x?(0,M.jsx)("div",{children:(0,M.jsx)(lt,{isOnFocus:t<=g-u-1&&t>=Math.max(0,g-m),playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>c(e)})},`whatmore-carousel-tile-${t}`):(0,M.jsx)(N,{}))})]})}function dt(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[p,u]=(0,o.useState)("next"),m=e.onClick,x=e.events,{whatmoreWidgetSourceDetails:y}=(0,o.useContext)(h.BR),g=Math.min(Math.ceil(r),x.length),[f,w]=(0,o.useState)(0),j=0===(0,a.If9)(c)?24:(0,a.If9)(c),b=()=>(0,M.jsx)("div",{children:(0,M.jsx)("button",{onClick:k,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,M.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),S=()=>(0,M.jsx)("div",{children:(0,M.jsx)("button",{onClick:P,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,M.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,o.useEffect)(()=>{f<=g&&w(e=>e+g)},[g]);const C=()=>{d(-1)},P=()=>{f!==g&&(u("prev"),w(e=>Math.max(Math.ceil(e-r),g)),(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},k=()=>{f>x.length+r||(u("next"),w(e=>Math.floor(e+r)),(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},_=f>x.length?x.length-g+1:f-g,A=f>=x.length?x.length:_+g,N=x.slice(_,A);return(0,M.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${l}px`,paddingRight:`${l}px`},children:[f!==g&&(0,M.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:l+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,M.jsx)(S,{})}),(0,M.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:j+"px",width:i*r*(0,a.fHt)(c)+"px",justifyContent:x.length>g?"flex-start":"center",overflow:"auto"},children:N.map((e,t)=>{const i=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,o=t===s;return(0,M.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===p?"next":"prev"),onMouseEnter:()=>(e=>{const t=R()(()=>d(e),300);return t(),t.cancel})(t),onMouseLeave:C,children:(0,M.jsx)(lt,{isOnFocus:o,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>(e=>{m(e)})(e)})},i)})}),f<x.length&&(0,M.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:l+"px",transform:"translateY(-65%)"},children:(0,M.jsx)(b,{})})]})}function ct(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[p,u]=(0,o.useState)("next"),m=e.onClick,x=e.events,{whatmoreWidgetSourceDetails:y}=(0,o.useContext)(h.BR),g=Math.min(Math.ceil(r),x.length),[f,w]=(0,o.useState)(0),j=0===(0,a.If9)(c)?24:(0,a.If9)(c),[b,S]=(0,o.useState)(!1),[C,P]=(0,o.useState)(0),[k,_]=(0,o.useState)(0),A=({disabled:e})=>(0,M.jsx)("button",{onClick:e?void 0:T,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,M.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),N=({disabled:e})=>(0,M.jsx)("button",{onClick:e?void 0:E,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,M.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})});(0,o.useEffect)(()=>{f<=g&&w(e=>e+g)},[g]);const F=()=>{d(-1)},E=()=>{f!==g&&(u("prev"),w(e=>Math.max(Math.ceil(e-r),g)),(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},T=()=>{f>x.length+r||(u("next"),w(e=>Math.floor(e+r)),(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:y}))},O=f>x.length?x.length-g+1:f-g,z=f>=x.length?x.length:O+g,L=x.slice(O,z);return(0,M.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:`${t+60}px`,paddingBottom:"50px"},children:[(0,M.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${l}px`,paddingRight:`${l}px`,cursor:b?"grabbing":"grab",userSelect:"none"},onMouseDown:e=>{S(!0),P(e.clientX),_(e.clientY)},onMouseMove:e=>{b&&e.preventDefault()},onMouseUp:e=>{if(!b)return;S(!1);const t=e.clientX-C,i=e.clientY-k;Math.sqrt(t**2+i**2)>50&&Math.abs(t)>Math.abs(i)&&(t>0?E():T())},onMouseLeave:()=>{b&&S(!1)},onTouchStart:e=>{S(!0),P(e.touches[0].clientX),_(e.touches[0].clientY)},onTouchMove:e=>{},onTouchEnd:e=>{if(!b)return;S(!1);const t=e.changedTouches[0].clientX-C,i=e.changedTouches[0].clientY-k;Math.sqrt(t**2+i**2)>50&&Math.abs(t)>Math.abs(i)&&(t>0?E():T())},children:(0,M.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:j+"px",width:i*r*(0,a.fHt)(c)+"px",justifyContent:x.length>g?"flex-start":"center",overflow:"auto"},children:L.map((e,t)=>{const i=`whatmore-event-tile-landscape-${e.index}${t===g-1?"-last":""}`,o=t===s;return(0,M.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===p?"next":"prev"),onMouseEnter:()=>(e=>{const t=R()(()=>d(e),300);return t(),t.cancel})(t),onMouseLeave:F,children:(0,M.jsx)(lt,{isOnFocus:o,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>(e=>{m(e)})(e)})},i)})})}),(0,M.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,M.jsx)(N,{disabled:f===g}),(0,M.jsx)(A,{disabled:f>=x.length})]})]})}function pt(e){const[t,i,r]=(0,I.A)(),l=(0,n.Xd)("whatmoreShopId"),s=(0,n.Xd)("whatmoreLandingLocationType"),d=e.events,c=e.onClick,{whatmoreWidgetSourceDetails:p}=(0,o.useContext)(h.BR),u=.6*r,m=Math.ceil(u),x=2*m,[y,g]=(0,o.useState)(x),[f,w]=(0,o.useState)(2*m),j=0===(0,a.If9)(l)?24:(0,a.If9)(l),b=(0,o.useRef)({touchX:0,touchY:0}),S=(0,o.useRef)(!1),C=({disabled:e})=>(0,M.jsx)("button",{onClick:e?void 0:()=>k("next"),className:"wht-custom-nav-dot-next-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,M.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),P=({disabled:e})=>(0,M.jsx)("button",{onClick:e?void 0:()=>k("prev"),className:"wht-custom-nav-dot-prev-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,M.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),k=e=>{if("next"===e){const e=2,t=d.length+1;w(e=>Math.min(e+Math.floor(r),t)),g(t=>Math.min(t+e,d.length))}else w(e=>Math.max(e-Math.floor(r),x));(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:p})};return(0,M.jsx)("div",{style:{width:"100%",overflow:"hidden",paddingBottom:"50px"},children:(0,M.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==l&&"product"==s?"center":"flex-start",paddingLeft:"12px",overflow:"visible",position:"relative",zoom:1.3,paddingBottom:"60px"},onTouchStart:e=>{e.target.closest("button")||(S.current=!1,b.current={touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchMove:e=>{if(0===b.current.touchX&&0===b.current.touchY)return;const t=e.touches[0].clientX-b.current.touchX,i=e.touches[0].clientY-b.current.touchY;Math.sqrt(t**2+i**2)>10&&!S.current&&(S.current=!0)},onTouchEnd:e=>{var t,i,o,n;if(e.target.closest("button"))return;if(!S.current)return void(b.current={touchX:0,touchY:0});const r=(null===(t=e.changedTouches)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.clientX)-b.current.touchX,l=(null===(o=e.changedTouches)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.clientY)-b.current.touchY;Math.sqrt(r**2+l**2)>50&&Math.abs(r)>Math.abs(l)&&k(r>0?"prev":"next"),b.current={touchX:0,touchY:0},S.current=!1},children:[(0,M.jsx)("div",{style:{display:"flex",gap:j,transform:`translateX(-${(f-x)*(i+j)}px)`,transition:"transform 0.4s ease-in-out"},children:d.map((e,t)=>t<y?(0,M.jsx)("div",{children:(0,M.jsx)(lt,{isOnFocus:t<=f-m-1&&t>=Math.max(0,f-x),playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>c(e)})},`whatmore-carousel-tile-${t}`):(0,M.jsx)(N,{}))}),(0,M.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,M.jsx)(P,{disabled:f<=2*m}),(0,M.jsx)(C,{disabled:f>=d.length+1})]})]})})}var ht=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreSecondaryColor"),[c]=(0,n.QN)("whatmoreTitleFont"),p="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:u}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:m}=((0,n.Xd)("isInDesignMode"),(0,o.useContext)(h.BR)),{whatmoreIsCollectionsTemplate:x}=(0,o.useContext)(h.BR),v=e.events,y=e.onClick,g=c;function S(e){y(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:st,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:u,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||x?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==l?"flex-start":"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",g,"important"),e.style.setProperty("font-size",p+"px"))},style:{color:s,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(l),lineHeight:(0,a.L0y)(l),letterSpacing:(0,a.l3V)(l)},children:x?"W"!==m?m:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===t?"6573064236"===l?(0,M.jsx)(ct,{events:v,onClick:S}):(0,M.jsx)(dt,{events:v,onClick:S}):(0,M.jsxs)(M.Fragment,{children:["6573064236"===l?(0,M.jsx)(pt,{events:v,onClick:S}):(0,M.jsx)(at,{events:"45034766485"==l?v.slice(0,5):v,onClick:S}),"45034766485"==l&&(0,M.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,M.jsx)(ke,{baseFontSize:.5*p,onClick:()=>S(null===v||void 0===v?void 0:v[5])})})]})]})})})})};function ut(e){var t;const[i]=(0,n.QN)("whatmoreShopId"),[o,r,l,s,d]=(0,I.A)(),[p,h,u]=(0,E.A)({triggerOnce:!0}),m=e.event,x=(0,c.At)()?e.isOnFocus:h,v="56411783377"==i,y="56411783377"===i&&Array.isArray(null===m||void 0===m?void 0:m.products)&&!!m.products[0];return(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:["56411783377"===i&&(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,M.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,M.jsx)(Q,{width:.15*r,height:.15*r})})}),(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)("p",{children:" "})}),(0,M.jsx)("div",{ref:p,children:x&&(0,a.imx)(i)?(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)(je,{event:m})}):(0,M.jsx)("div",{height:"20px"})}),v&&(0,M.jsx)("div",{style:{position:"absolute",top:.045*r,right:.05*r,width:.35*r,height:.15*r,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,M.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"}})}),y&&(0,M.jsxs)("div",{style:{overflow:"visible",background:"white",position:"absolute",left:.05*r+"px",width:.9*r+"px",bottom:.06*r+"px",borderRadius:.07*r,display:"flex",alignItems:"center",justifyContent:"center",padding:`${.015*r}px ${.04*r}px`,boxShadow:"0 2px 12px rgba(23, 18, 18, 0.08)"},children:[(null===(t=m.products[0])||void 0===t?void 0:t.thumbnail_image)&&(0,M.jsx)("img",{src:m.products[0].thumbnail_image,style:{width:.12*r,height:.12*r,borderRadius:"50%",objectFit:"cover",marginRight:.03*r,border:"1.5px solid #E3E3E3",background:"#fff"}}),(0,M.jsx)("span",{style:{fontWeight:500,fontSize:.048*r,color:"#2D2D2D",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.products[0].title?m.products[0].title:"SHOP AMAZING WITH TRUNATIV"})]})]})})}var mt=function(e){var t,i,r,l,s,d,c,p;const[h,u,m,x,v]=(0,I.A)();var y=(0,o.useContext)(A);const g=(0,n.Xd)("whatmoreUITheme"),f=(0,n.Xd)("whatmoreShopId"),w=(0,n.Xd)("whatmorePrimaryFont"),j=(0,n.Xd)("whatmoreSecondaryColor"),b=e.event,S=e.onClick,C=null===(t=e.isOnFocus)||void 0===t||t,P=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,k=null!==(r=e.animateOnFocus&&(0,a.n5O)(f))&&void 0!==r&&r,_=(0,a.VYo)(f);return(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",y.tileTopMargin+"px"),e.style.setProperty("margin-bottom",y.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==f||"19501891"==f?void 0:u,aspectRatio:"8968077397"==f||"19501891"==f?9/16:void 0,height:"8968077397"==f||"19501891"==f?"100%":h,borderRadius:"round"==g?"5px":"0px",boxShadow:"round"==g||"61187850326"==f||"19501891"==f?_:null,borderWidth:(0,a.YcK)(f),borderColor:(0,a.Fwt)(f),overflow:"hidden",cursor:"pointer",position:"relative"},className:k?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var e,t,i;if("12326200"==f&&"image"==b.event_type&&(null===(e=b.products)||void 0===e?void 0:e.length)>0&&"oos"!=(null===(t=b.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.product_status)){var o,n;window.location.href=null===(o=b.products)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.product_link}else{if("12326200"==f&&"image"==b.event_type)return;var r,l,s,a,d,c,p,h,u,m,x,v,y,g,w,j;if("10588815418"==f){if(null!==(r=b.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=b.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=b.cta)||void 0===c||null===(p=c[1])||void 0===p?void 0:p.cta_title))window.location.href=null===(w=b.cta)||void 0===w||null===(j=w[1])||void 0===j?void 0:j.cta_link;else if(null!==(h=b.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(m=u.cta_link)&&void 0!==m&&m.includes("whatmore")&&""!=(null===(x=b.cta)||void 0===x||null===(v=x[0])||void 0===v?void 0:v.cta_link)&&""==(null===(y=b.cta)||void 0===y||null===(g=y[0])||void 0===g?void 0:g.cta_title)){var C,P;window.location.href=null===(C=b.cta)||void 0===C||null===(P=C[0])||void 0===P?void 0:P.cta_link}}else S(b)}},children:[(0,M.jsx)(F.A,{height:(0,a.u06)(f)+" !important",width:"100%",url:b.thumbnail_image,isPlaying:C||P,event:b}),""!==(null===b||void 0===b?void 0:b.title)?(0,M.jsxs)(M.Fragment,{children:[(0,M.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,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,M.jsx)("p",{style:{fontFamily:w,fontSize:.1*u+"px",fontWeight:"600"},children:"12326200"==f?null===b||void 0===b||null===(l=b.title)||void 0===l?void 0:l.slice(7):null===b||void 0===b?void 0:b.title}),"12326200"==f&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*u+"px",fontWeight:"normal"},children:null===b||void 0===b||null===(s=b.title)||void 0===s?void 0:s.slice(0,7)}),(null===(d=b.products)||void 0===d?void 0:d.length)>0&&"oos"!=(null===(c=b.products)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.product_status)&&(0,M.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:j,padding:"8px 28px"},children:(0,M.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*u+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,M.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,M.jsx)(be.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,a.Q$)(f)&&(0,M.jsxs)("div",{style:{width:u,height:h},children:[(0,M.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,M.jsx)(ut,{event:b,unfocusedDisplay:!C,isOnFocus:C})]})]})};const xt=(0,S.A)({key:"whatmore-css-hv"});function vt(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]);const w="6573064236"===c?.9*d:d,j="6573064236"===c?1.5:2;return(0,M.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:w,height:"fit-content"},children:(0,M.jsx)(C.RC,{slidesPerView:j,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x,modules:(0,a.JSQ)(c)?[P.Vx]:[],navigation:(0,a.JSQ)(c),children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,M.jsx)(mt,{isOnFocus:n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function yt(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),[p]=(0,n.QN)("whatmoreLandingLocationType"),u=e.onClick,m=e.events,x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?m.length:r),f=Math.min(r,m.length),{whatmoreWidgetSourceDetails:w}=(0,o.useContext)(h.BR),j=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(j.current){const e=i*f*(0,a.fHt)(c)+"px";m.length<4?j.current.style.setProperty("width",e,"important"):j.current.style.width=e}},[i,f,c,y,m.length]),(0,o.useEffect)(()=>{y<=r&&g(e=>e+r)},[r]),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:l+"px",paddingRight:l+"px"},className:"whatmore-events-carousel-landscape",children:(0,M.jsx)("div",{ref:j,style:{height:"100%"},children:(0,M.jsx)(C.RC,{slidesPerView:"product"===p&&"87174349065"===c?2:f,watchSlidesProgress:!0,modules:[P.Vx],navigation:!0,slidesPerGroup:parseInt(f),onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}),e.realIndex>e.previousIndex&&g(e=>e+r)},spaceBetween:0,loop:x&&m.length>4,style:{height:"100%"},children:m.map((e,t)=>{const i=R()(()=>d(t),300);return t<=y&&(0,M.jsx)(C.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),d(-1)},style:{height:"100%"},children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r||o||n?(0,M.jsx)(mt,{isOnFocus:t==s,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(f/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var gt=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:p}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:u}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,y=d;function g(e){v(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:xt,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y),e.style.setProperty("font-size",c+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(l),lineHeight:(0,a.L0y)(l),letterSpacing:(0,a.l3V)(l)},children:m?"W"!==u?u:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===t?(0,M.jsx)(yt,{events:x,onClick:g}):(0,M.jsx)(vt,{events:x,onClick:g})]})})})})},ft=i(3080),wt=i(6670),jt=i(314),bt=i(9098),St=i(3294),Ct=i(4033),Pt=(i(5410),i(6493));function It(e){var t,i,r;const[l,d]=(0,wt.A)(),[c,u]=(0,o.useState)(o.useRef()),m=e.posterImage,[x,v]=(0,n.QN)("whatmoreVideoPlayerPoolBlessed"),[y,g]=(0,o.useState)(!0),[f,w]=(0,o.useState)(!1),j=e.timeUpdateCallback,{whatmoreIsPreviewMode:b}=(0,o.useContext)(h.BR),S=null!==(t=e.isVideoMuted)&&void 0!==t?t:l,C=null!==(i=e.height)&&void 0!==i?i:"100%",P=null!==(r=e.width)&&void 0!==r?r:"100%",I=(0,n.Xd)("whatmoreShopId");(0,o.useLayoutEffect)(()=>{if(c.current&&x)if(0==c.current.children.length){const i=(0,Pt.Cr)(e.url);(t=(0,p.Z4)(c.current,e.url,S||!e.isPlaying,e.isPlaying,i)).setAttribute("playsinline","true"),t.setAttribute("preload","auto"),t.addEventListener("loadeddata",()=>{g(!1)}),j&&t.addEventListener("timeupdate",e=>{var i,o;t&&j(null!==(i=t.currentTime)&&void 0!==i?i:0,null!==(o=t.duration)&&void 0!==o?o:0)})}else{var t;(t=c.current.children[0]).muted=S||!e.isPlaying,e.isPlaying?t.play():(t.pause(),(0,a.fwF)(I)&&e.source==St.N.CAROUSEL_EVENT_OPENED&&(!e.isPlaying&&t.play(),setTimeout(()=>{!e.isPlaying&&t.pause()},(0,Ct.n)()?1900:800)))}},[S,e.isPlaying,x,y]),(0,o.useLayoutEffect)(()=>()=>{c.current&&0!=c.current.children.length&&(0,p.rq)(c.current)},[]);const k=(0,n.Xd)("whatmoreLandingLocationType");return(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:P,height:C,overflow:"hidden",backgroundColor:b?(0,a.KVz)(I):(0,a.QSX)(I),filter:e.showQuestion?"blur(24px)":""},children:[(0,M.jsx)("div",{ref:c,style:{width:y?"0px":"100%",height:y?"0px":b?(0,a.tbf)(I):(0,a.CBm)(I)&&"product"==k?"auto":(0,a.R7q)(I)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==I&&y&&f?(0,M.jsx)(M.Fragment,{children:(0,M.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,M.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,M.jsx)("img",{src:m,style:{height:"100%",width:P,animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):y&&!f&&(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,M.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,M.jsx)("img",{src:m,height:"100%",width:P,onLoad:()=>{w(!0)},style:{animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,M.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,M.jsx)(s.A,{width:P,height:C,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var kt=function(e){var t;return(0,M.jsx)(It,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(t=e.isVideoMuted)&&void 0!==t?t:null,source:e.source,posterImage:e.posterImage,showQuestion:e.showQuestion})};function _t(e){var t,i,r;const[l,d]=(0,wt.A)(),[c,p]=(0,o.useState)(!1),[u,m]=(0,o.useState)(!1),x=e.setDuration,v=(0,o.useRef)(null),y=(0,n.Xd)("whatmoreShopId"),g=e.timeUpdateCallback,{whatmoreIsPreviewMode:f}=(0,o.useContext)(h.BR),w=(0,n.Xd)("whatmoreLandingLocationType"),j=null!==(t=e.height)&&void 0!==t?t:"100%",b=null!==(i=e.width)&&void 0!==i?i:"100%",S=null!==(r=e.isVideoMuted)&&void 0!==r?r:l,C=null===e||void 0===e?void 0:e.posterImage;return(0,o.useEffect)(()=>{v.current&&(e.isPlaying?v.current.paused&&v.current.play():v.current.pause(),g&&v.current.addEventListener("timeupdate",e=>{var t,i;v.current&&g(null!==(t=v.current.currentTime)&&void 0!==t?t:0,null!==(i=v.current.duration)&&void 0!==i?i:0)}))},[e.isPlaying,e.url]),(0,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:b,height:j,overflow:"hidden",backgroundColor:f?(0,a.KVz)(y):(0,a.QSX)(y),filter:null!==e&&void 0!==e&&e.showQuestion?"blur(24px)":""},children:[(0,M.jsx)("div",{style:{width:c?"100%":"0px",height:c?f?(0,a.tbf)(y):(0,a.CBm)(y)&&"product"==w?"auto":(0,a.R7q)(y):"0px"},children:(0,M.jsxs)("video",{ref:v,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==e.source?e.url:void 0,playsInline:!0,muted:!(!S&&e.isPlaying),onLoadedData:()=>{p(!0),e.isPlaying&&v.current&&v.current.play(),(0,a.fwF)(y)&&e.source==St.N.CAROUSEL_EVENT_OPENED&&(!e.isPlaying&&v.current&&v.current.play(),setTimeout(()=>{!e.isPlaying&&v.current&&v.current.pause()},(0,Ct.n)()?1900:800))},onLoadedMetadata:()=>{v.current&&x&&x(v.current.duration)},poster:"banner"==e.source?e.url:C,children:[(0,M.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,M.jsx)("source",{src:(0,qe.s)(e.url),type:"video/mp4"}),(0,M.jsx)("source",{src:(0,Pt.Cr)(e.url),type:"video/mp4"})]})}),"40273707171"!==y&&!c&&u?(0,M.jsx)(M.Fragment,{children:(0,M.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,M.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,M.jsx)("img",{src:C,style:{height:"100%",width:b,animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!u&&(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,M.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,M.jsx)("img",{src:C,height:"100%",width:b,onLoad:()=>{m(!0)},style:{animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,M.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,M.jsx)(s.A,{width:b,height:j,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var Rt=function(e){var t,i,r,l;return(0,u.I)(e.event)?(0,M.jsx)(bt.A,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback}):1==(0,o.useContext)(jt.p).isIOS&&1==(0,n.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=e.source?(0,M.jsx)(kt,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(r=e.isVideoMuted)&&void 0!==r?r:null,source:e.source,posterImage:null===(l=e.event)||void 0===l?void 0:l.poster_image,showQuestion:null===e||void 0===e?void 0:e.question}):(0,M.jsx)(_t,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(t=e.isVideoMuted)&&void 0!==t?t:null,setDuration:e.setDuration,source:e.source,posterImage:null===(i=e.event)||void 0===i?void 0:i.poster_image,showQuestion:null===e||void 0===e?void 0:e.question})},At=i(4895),Mt=i(5375);var Nt=function(e){const[t]=(0,n.QN)("whatmoreShopId"),i=e.isMuted,o=e.setIsMuted,[r,l,s,d]=(0,ft.A)(),c=.1*d;function p(){o(!i)}return!0===(0,a.GZ2)(t)?(0,M.jsx)(M.Fragment,{}):(0,M.jsx)(ye.o,{children:(0,M.jsx)(ne.jl,{cursor:"pointer",children:i?(0,M.jsx)(Mt.A,{sx:{color:"white",fontSize:c,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{p()}}):(0,M.jsx)(At.A,{sx:{color:"white",fontSize:c,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{p()}})})})};var Ft=function(e){var t,i,r,l,s,d,c,p,u,m,x,v,y,g,f,w,j,b,S,C,P,k,_,R,[A,N,F,E,T]=(0,I.A)();N*=null!==(t=e.scaleFactor)&&void 0!==t?t:1,A*=null!==(i=e.scaleFactor)&&void 0!==i?i:1;const z=(0,n.Xd)("whatmoreUITheme"),L=(0,n.Xd)("whatmoreShopId"),W=(0,n.Xd)("whatmorePrimaryFont"),V=(0,n.Xd)("whatmoreSecondaryColor"),U=(0,n.Xd)("websiteLanguage"),H=e.onClick,q=null===(r=e.isOnFocus)||void 0===r||r,Q=null!==(l=e.playOnUnfocus)&&void 0!==l&&l,$=null===(s=e.is3DTemplateMuted)||void 0===s||s,G=e.setIs3DTemplateMuted,Y="portrait"===T[we.dl],K=(Y?1.076*N*(0,a.HWj)(L):N*(0,a.N_4)(L))+"px",J=(Y?1.076*N*(0,a.HWj)(L):N*(0,a.N_4)(L))+"px",Z=(Y?.965*N*(0,a.HWj)(L):.859*N*(0,a.N_4)(L))+"px",ee=(0,a.VYo)(L),{whatmoreIsPreviewMode:te}=(0,o.useContext)(h.BR),ie=.25*N,oe=ie+"px",ne=1.25*ie+"px",[re,le]=(0,o.useState)(e.event),[se,ae]=(0,o.useState)(),de=null!==(d=null===(c=re.products)||void 0===c?void 0:c.find(e=>"active"==e.product_status))&&void 0!==d?d:null===(p=re.products)||void 0===p?void 0:p[0],ce=Math.round(+(null===de||void 0===de?void 0:de.price)),pe=Math.round(+(null===de||void 0===de?void 0:de.compare_price)),he=pe&&0!=pe&&pe>ce?Math.round((pe-ce)/pe*100):NaN,[ue,me]=(0,o.useState)(he),[xe,ve]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,a.w4b)(L)?(0,D.fu)(re,(0,a.NCy)(L),L).then(e=>{var t,i,o;le(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),r=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;me(l),ve(!0)}):(async()=>{const e=await(0,B.M)(de,(0,a.NCy)(L),L);ae(e),ve(!0)})()},[]),(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top","24px"),e.style.setProperty("margin-bottom","12px"))},style:{width:N,margin:"0 auto",cursor:"pointer",filter:q||e.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{H(re)},children:[(0,M.jsxs)("div",{style:{position:"relative",width:N,height:A,borderRadius:"round"==z?"5px":"0px",boxShadow:"round"==z?ee:null,borderWidth:(0,a.YcK)(L),borderColor:(0,a.Fwt)(L),overflow:"hidden"},children:[(0,M.jsx)("div",{onClick:e=>e.stopPropagation(),style:{display:q||e.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,M.jsx)(Nt,{isMuted:$,setIsMuted:G})}),(0,M.jsx)(Rt,{height:"100%",width:"100%",url:null!==(u=null===re||void 0===re?void 0:re.event_hls_url)&&void 0!==u?u:null===re||void 0===re?void 0:re.thumbnail_image,isPlaying:q||Q,event:re,isVideoMuted:$})]}),(0,M.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(te?(0,a.Tr1)(L):(0,a.UmS)(L))&&(null===re||void 0===re||null===(m=re.products)||void 0===m?void 0:m.length)>0&&(0,M.jsx)("div",{style:{maxHeight:ne,maxWidth:oe,minWidth:null!==de&&void 0!==de&&de.thumbnail_image?oe:"0",overflow:"hidden"},children:(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(L),"important")},style:{height:"100%"},src:(null===de||void 0===de||null===(x=de.thumbnail_image)||void 0===x||null===(v=x.split("?"))||void 0===v?void 0:v[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,M.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(L),"important"),e.style.setProperty("font-size",K,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",W,"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,O.v)(null===de||void 0===de?void 0:de.title)}),xe&&(0,a.Nzx)(L)&&(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(L)?"row":"row-reverse",justifyContent:(0,a.vw2)(L)?"flex-start":"flex-end"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.m5c)(L),"important"),e.style.setProperty("font-size",J,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("white-space","nowrap","important"),e.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(L)?"normal":"bold"},children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(y=null===se||void 0===se||null===(g=se.variants)||void 0===g||null===(f=g[0])||void 0===f?void 0:f.price)&&void 0!==y?y:null===se||void 0===se?void 0:se.price)/100:null===de||void 0===de?void 0:de.price)," ",L,null===(w=re.products[0])||void 0===w?void 0:w.currency)}),!isNaN(pe)&&pe>ce&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.gld)(L),"important"),e.style.setProperty("font-size",J,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==ce?"line-through":"none"},children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(j=null===se||void 0===se||null===(b=se.variants)||void 0===b||null===(S=b[0])||void 0===S?void 0:S.compare_at_price)&&void 0!==j?j:null===se||void 0===se?void 0:se.compare_at_price)/100:null===de||void 0===de?void 0:de.compare_price)," ",L,null===(C=re.products[0])||void 0===C?void 0:C.currency)}),"56352899156"==L&&(0,a.Nzx)(L)&&xe&&!isNaN(ue)&&0!=ue&&(0,M.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(L)?"#343434"==V?(0,a.ub$)(L):V:(0,a.ub$)(L),alignItems:"center",borderRadius:(0,a.v8m)(L)+"px",width:"fit-content",padding:"3px 4px"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(L),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("width","fit-content","important"),e.style.setProperty("white-space","nowrap","important"))},children:`${ue}% ${null!==(P=null===Fe.m||void 0===Fe.m||null===(k=Fe.m[U])||void 0===k?void 0:k.off)&&void 0!==P?P:"off"}`})})]}),(q||e.isActive)&&(0,a.Nzx)(L)&&xe&&!isNaN(ue)&&0!=ue&&(0,M.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(L)?"#343434"==V?(0,a.ub$)(L):V:(0,a.ub$)(L),alignItems:"center",borderRadius:(0,a.v8m)(L)+"px",width:"fit-content",padding:(0,a.Cf)(L)?"3px 6px":"0px"},children:(0,a.Cf)(L)?(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a.BRY)(L),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",W,"important"))},children:`${ue}% ${null!==(_=null===Fe.m||void 0===Fe.m||null===(R=Fe.m[U])||void 0===R?void 0:R.off)&&void 0!==_?_:"off"}`}):(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,a._zx)(L),"important"),e.style.setProperty("font-size",Z,"important"),e.style.setProperty("font-family",(0,a.ogW)(L),"important"))},children:(0,a.rsz)(L)})})]})]})]})};const Et=(0,S.A)({key:"whatmore-css-hv"});function Tt(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,M.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:d,height:"fit-content"},children:(0,M.jsx)(C.RC,{slidesPerView:p.length>1?m:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x,children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,M.jsx)(Ze,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Ot(e){var[t,i,n,r]=(0,ft.A)();const l=e.onClick,s=e.index,a=e.events,[d,c]=(0,o.useState)(6),p=e.is3DTemplateMuted,h=e.setIs3DTemplateMuted,[u,m,x]=(0,k.A)();return(0,M.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:x,height:"fit-content"},children:(0,M.jsx)(C.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:e=>{const t=e.realIndex>e.previousIndex,i=e.realIndex<e.previousIndex&&e.previousIndex>=d;(t||i)&&c(e=>e+1)},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[P.t9,P.Vx,P.FJ],watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*r),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map((e,t)=>t<=d&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>n?(0,M.jsx)(Ft,{isOnFocus:t&&s<0,isActive:t,playOnUnfocus:!1,animateOnFocus:!0,event:e,scaleFactor:1.3,onClick:()=>{l(e)},is3DTemplateMuted:p,setIs3DTemplateMuted:h}):(0,M.jsx)(N,{})},"whatmore-event-tile-portr-"+e.index))})})})}var zt=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:p}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:u}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,y=d,[g,S]=(0,n.QN)("is3DTemplateMuted");function C(e){v(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:Et,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y,"important"),e.style.setProperty("font-size",c+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(l),lineHeight:(0,a.L0y)(l),letterSpacing:(0,a.l3V)(l)},children:m?"W"!==u?u:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===t?(0,M.jsx)(Ot,{index:e.index,events:x,onClick:C,is3DTemplateMuted:g,setIs3DTemplateMuted:S}):(0,M.jsx)(Tt,{index:e.index,events:x,onClick:C})]})})})})};var Lt=function(e){var t,i,r,l,s,d,c,p,u,m,x,v,y,g,f,w;const[j,b,S,C,P]=(0,I.A)(),k=1*b,_=1*j,R=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),A=(0,n.Xd)("whatmorePrimaryFont"),N=(0,n.Xd)("whatmoreSecondaryColor"),E=((0,n.Xd)("websiteLanguage"),e.onClick),T=null===(t=e.isOnFocus)||void 0===t||t,O=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,z=null!==(r=e.animateOnFocus&&(0,a.n5O)(R))&&void 0!==r&&r,L="portrait"===P[we.dl],W=(L?1.15*b*(0,a.HWj)(R):1.05*b*(0,a.N_4)(R))+"px",V=L?1.2*b*(0,a.HWj)(R):1.1*b*(0,a.N_4)(R),U=V+"px",H=L?.8*b*(0,a.HWj)(R):.7*b*(0,a.N_4)(R),{whatmoreIsPreviewMode:q,whatmoreWidgetSourceDetails:Q}=(0,o.useContext)(h.BR),[$,G]=(0,o.useState)(e.event),[Y,K]=(0,o.useState)(),[J,Z]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(!1),ie=null!==(l=null===(s=$.products)||void 0===s?void 0:s.find(e=>"active"==e.product_status))&&void 0!==l?l:null===(d=$.products)||void 0===d?void 0:d[0],oe=Math.round(+(null===ie||void 0===ie?void 0:ie.price)),ne=Math.round(+(null===ie||void 0===ie?void 0:ie.compare_price)),re=ne&&0!=ne&&ne>oe?Math.round((ne-oe)/ne*100):NaN,[le,se]=(0,o.useState)(re),[ae,de]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,a.w4b)(R)?(0,D.fu)($,(0,a.NCy)(R),R).then(e=>{var t,i,o;G(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),r=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;se(l),de(!0)}):(async()=>{const e=await(0,B.M)(ie,(0,a.NCy)(R),R);K(e),de(!0)})()},[]),(0,M.jsxs)("div",{className:z&&!L?T?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:k,margin:"0",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",background:"transparent",position:"relative",transition:"transform 0.2s ease-out",transform:J?"translateY(-2px)":"translateY(0)"},onClick:()=>{E($)},onMouseEnter:()=>Z(!0),onMouseLeave:()=>Z(!1),children:[(0,M.jsxs)("div",{style:{width:"100%",height:_,borderRadius:"0px",overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",background:"#fafafa",transition:"box-shadow 0.2s ease-out",boxShadow:J?"0 2px 8px rgba(0, 0, 0, 0.08)":"none"},children:[(0,M.jsx)(F.A,{height:(0,a.u06)(R)+" !important",width:"100%",url:$.thumbnail_image,isPlaying:T||O,event:$,style:{objectFit:"cover",filter:"none",transition:"none"}}),ie&&(0,a.WDJ)(R)&&(J||L)&&(0,M.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:J||L?"translateY(0)":"translateY(100%)",opacity:J||L?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,M.jsx)("span",{style:{color:"white",fontSize:W,fontFamily:A,fontWeight:"400",textAlign:"center",letterSpacing:"0.5px",textTransform:"uppercase"},children:"ADD TO CART"})})]}),ie&&(0,a.LPW)(R)&&(0,M.jsxs)("div",{style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",padding:"12px 0 8px 0",width:"100%",background:"transparent"},children:[(null===ie||void 0===ie?void 0:ie.product_type)&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size","9px"),e.style.setProperty("font-family",A),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===ie||void 0===ie?void 0:ie.product_type}),(0,M.jsxs)("div",{style:{display:"flex",gap:"8px",alignItems:"flex-start",width:"100%"},children:[(null===ie||void 0===ie?void 0:ie.thumbnail_image)&&(0,a.UmS)(R)&&(0,M.jsx)("div",{style:{width:"48px",height:"48px",flexShrink:0,borderRadius:"0px",overflow:"hidden",background:"#f8f8f8"},children:(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit","cover")},src:(null===ie||void 0===ie||null===(c=ie.thumbnail_image)||void 0===c||null===(p=c.split("?"))||void 0===p?void 0:p[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>te(!0),style:{width:"100%",height:"100%",opacity:ee?1:0}})}),(0,M.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[(null===ie||void 0===ie?void 0:ie.title)&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",W),e.style.setProperty("line-height","1.2"),e.style.setProperty("font-family",A),e.style.setProperty("font-weight","400"),e.style.setProperty("letter-spacing","0px"),e.style.setProperty("margin","0"),e.style.setProperty("overflow","hidden"),e.style.setProperty("text-overflow","ellipsis"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("-webkit-line-clamp","1"),e.style.setProperty("-webkit-box-orient","vertical"),e.style.setProperty("text-transform","uppercase"),e.style.setProperty("letter-spacing","0.7px"))},children:null===ie||void 0===ie?void 0:ie.title}),ae&&(0,a.Nzx)(R)&&(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"6px"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000000"),e.style.setProperty("font-size",U),e.style.setProperty("font-family",A),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,D.Sb)(parseFloat((0,X.U)()?(null!==(u=null===Y||void 0===Y||null===(m=Y.variants)||void 0===m||null===(x=m[0])||void 0===x?void 0:x.price)&&void 0!==u?u:null===Y||void 0===Y?void 0:Y.price)/100:null===ie||void 0===ie?void 0:ie.price)," ",R,null===(v=$.products[0])||void 0===v?void 0:v.currency)}),!isNaN(ne)&&ne>oe&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#999999"),e.style.setProperty("font-size",.9*V+"px"),e.style.setProperty("font-family",A),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,D.Sb)(parseFloat((0,X.U)()?(null!==(y=null===Y||void 0===Y||null===(g=Y.variants)||void 0===g||null===(f=g[0])||void 0===f?void 0:f.compare_at_price)&&void 0!==y?y:null===Y||void 0===Y?void 0:Y.compare_at_price)/100:null===ie||void 0===ie?void 0:ie.compare_price)," ",R,null===(w=$.products[0])||void 0===w?void 0:w.currency)}),(0,a.Nzx)(R)&&ae&&!isNaN(le)&&0!=le&&(0,a.Cf)(R)&&(0,M.jsx)("div",{style:{display:"inline-flex",background:N,alignItems:"center",justifyContent:"center",borderRadius:"0px",padding:"4px 8px"},children:(0,M.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","#ffffff"),e.style.setProperty("font-size",1.2*H+"px"),e.style.setProperty("font-family",A),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:[le,"%"]})})]})]})]}),""!=(null===$||void 0===$?void 0:$.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,M.jsx)("div",{className:"wht-video-title",style:{display:"none",marginTop:"8px"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#666666"),e.style.setProperty("font-family",A),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===$||void 0===$?void 0:$.title})})]})]})};const Dt=(0,S.A)({key:"whatmore-css-hv"});function Wt(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,M.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,M.jsx)("div",{style:{width:d-48,height:"fit-content",position:"relative",zIndex:1},children:(0,M.jsx)(C.RC,{slidesPerView:p.length>1?m:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[P.U1],spaceBetween:12,freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.7,momentumBounce:!1,momentumVelocityRatio:.9},touchRatio:1.2,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:400,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x,style:{paddingTop:"8px",paddingBottom:"8px"},children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,M.jsx)("div",{style:{transform:t?"scale(1.02)":"scale(0.98)",transition:"transform 0.3s ease-out",filter:t?"none":"brightness(0.9)",opacity:t?1:.85},children:(0,M.jsx)(Lt,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}})}):(0,M.jsx)(N,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Bt(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),p=e.onClick,u=e.events,m=(0,a.cbh)(c),[x,y]=(0,o.useState)(m?u.length:r),g=Math.min(r,u.length),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR),w=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(w.current){const e=i*g*(0,a.fHt)(c)+"px";u.length<4?w.current.style.setProperty("width",e,"important"):w.current.style.width=e}},[i,g,c,x,u.length]),(0,o.useEffect)(()=>{x<=r&&y(e=>e+r)},[r]),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:l+"px",paddingRight:l+"px",background:"transparent"},className:"whatmore-events-carousel-landscape premium-carousel-landscape",children:(0,M.jsx)("div",{ref:w,style:{zIndex:1},children:(0,M.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[P.FJ,P.U1],freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&y(e=>e+r)},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)=>{const i=R()(()=>d(t),50);return t<=x&&(0,M.jsx)(C.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),d(-1)},style:{height:"100%"},children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r||o||n?(0,M.jsx)("div",{style:{height:"100%",transform:t===s?"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===s?"brightness(1.02)":"none",opacity:t===s?1:.98,willChange:"transform, filter, opacity"},children:(0,M.jsx)(Lt,{isOnFocus:t==s,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{p(e)}})}):(0,M.jsx)(N,{})},"wht-event-tile-landscape-"+e.index)})})})})}var Xt=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[a]=(0,n.QN)("whatmoreTitleFont"),d="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:p}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:u}=(0,o.useContext)(h.BR),m=e.events,x=e.onClick,v=a;function y(e){x(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:Dt,children:(0,M.jsx)("div",{className:"whatmore-carousel-events premium-carousel-container",style:{height:"100%",background:"transparent",position:"relative",padding:"portrait"===t?"8px 0":"16px 0"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[e.heading.trim().length>0&&(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",marginBottom:"portrait"===t?"12px":"16px",position:"relative",zIndex:1},children:(0,M.jsx)("div",{style:{background:"transparent",padding:"8px 24px",position:"relative"},children:(0,M.jsx)("h2",{ref:e=>{e&&(e.style.setProperty("font-family",v,"important"),e.style.setProperty("font-size",d+"px","important"))},style:{color:"#1a1a1a",textAlign:"center",fontWeight:"300",lineHeight:"1.2",letterSpacing:"0.5px",margin:0,position:"relative",zIndex:1,textTransform:"uppercase",fontSize:d+"px"},children:u?"W"!==p?p:"":e.heading})})}),"landscape"===t?(0,M.jsx)(Bt,{events:m,onClick:y}):(0,M.jsx)(Wt,{events:m,onClick:y})]})})})})};var Vt=function(e){var t,i,r,l,s,d,c,p,h,u,m,x,v,y,g;const f=(0,o.useRef)(null),[w,j,b,S,C]=(0,I.A)(),P=1*j,k=1*w,_=((0,n.Xd)("whatmoreUITheme"),(0,n.Xd)("whatmoreShopId")),R="portrait"===C[we.dl],A=R?(0,a.HWj)(_):(0,a.N_4)(_),N=(0,n.Xd)("whatmorePrimaryFont"),E=(0,n.Xd)("whatmoreSecondaryColor"),T=e.onClick,O=null===(t=e.isOnFocus)||void 0===t||t,z=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,[L,W]=(0,o.useState)(e.event),[V,U]=(0,o.useState)(),[H,q]=(0,o.useState)(!1),Q=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],$=Math.round(+(null===Q||void 0===Q?void 0:Q.price)),G=Math.round(+(null===Q||void 0===Q?void 0:Q.compare_price)),Y=G&&0!=G&&G>$?Math.round((G-$)/G*100):NaN,[K,J]=(0,o.useState)(Y),[Z,ee]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,a.w4b)(_)?(0,D.fu)(L,(0,a.NCy)(_),_).then(e=>{var t,i,o;W(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price),r=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;J(l),ee(!0)}).catch(e=>{console.warn("Whatmore AI Template: Failed to enrich event with price data, using fallback",e),ee(!0)}):(async()=>{try{const e=await(0,B.M)(Q,(0,a.NCy)(_),_);U(e),ee(!0)}catch(e){console.warn("Whatmore AI Template: Failed to fetch product details, using fallback data",e),ee(!0)}})()},[]),(0,o.useEffect)(()=>{if(f.current){const e=f.current,t=R?"portrait":"landscape",i=getComputedStyle(e),o=parseFloat(i.getPropertyValue(`--wtmr-name-font-scale-${t}`))||(R?1.25:1.38),n=parseFloat(i.getPropertyValue(`--wtmr-price-font-scale-${t}`))||(R?1.4:1.56),r=parseFloat(i.getPropertyValue(`--wtmr-category-font-scale-${t}`))||(R?1:1.08),l=parseFloat(i.getPropertyValue(`--wtmr-discount-font-scale-${t}`))||(R?1.1:1.2);e.style.setProperty("--wtmr-font-family",N),e.style.setProperty("--wtmr-discount-badge-bg",E),e.style.setProperty("--wtmr-tile-width",j+"px"),e.style.setProperty("--wtmr-font-multiplier",A),e.style.setProperty("--wtmr-name-font-scale",o),e.style.setProperty("--wtmr-price-font-scale",n),e.style.setProperty("--wtmr-category-font-scale",r),e.style.setProperty("--wtmr-discount-font-scale",l)}},[N,E,j,A,R]),(0,M.jsxs)("div",{ref:f,className:"wtmr-carousel-tile",style:{maxWidth:P},onClick:()=>T(L),children:[(0,M.jsxs)("div",{className:"wtmr-carousel-tile__video-container",style:{maxHeight:k},children:[(0,M.jsx)(F.A,{className:"wtmr-carousel-tile__video",height:(0,a.u06)(_)+" !important",width:"100%",url:L.thumbnail_image,isPlaying:O||z,event:L}),Q&&(0,M.jsx)("div",{className:"wtmr-carousel-tile__add-to-cart-overlay",onClick:e=>e.stopPropagation(),children:(0,M.jsx)("span",{className:"wtmr-carousel-tile__add-to-cart-label",children:"ADD TO CART"})})]}),Q&&(0,M.jsxs)("div",{className:"wtmr-carousel-tile__product-details-container",children:[(0,M.jsxs)("div",{className:"wtmr-carousel-tile__product-information-section",children:[(null===Q||void 0===Q?void 0:Q.thumbnail_image)&&(0,M.jsx)("div",{className:"wtmr-carousel-tile__product-image-container",children:(0,M.jsx)("img",{className:"wtmr-carousel-tile__product-image "+(H?"wtmr-carousel-tile__product-image--loaded":""),src:(null===Q||void 0===Q||null===(d=Q.thumbnail_image)||void 0===d||null===(c=d.split("?"))||void 0===c?void 0:c[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>q(!0)})}),(0,M.jsxs)("div",{className:"wtmr-carousel-tile__product-text-container",children:[(null===Q||void 0===Q?void 0:Q.product_type)&&(0,M.jsx)("p",{className:"wtmr-carousel-tile__product-category-label",children:null===Q||void 0===Q?void 0:Q.product_type}),(null===Q||void 0===Q?void 0:Q.title)&&(0,M.jsx)("p",{className:"wtmr-carousel-tile__product-name",children:null===Q||void 0===Q?void 0:Q.title})]})]}),Z&&(0,M.jsxs)("div",{className:"wtmr-carousel-tile__product-pricing-section",children:[(0,M.jsx)("p",{className:"wtmr-carousel-tile__price-selling",children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(p=null===V||void 0===V||null===(h=V.variants)||void 0===h||null===(u=h[0])||void 0===u?void 0:u.price)&&void 0!==p?p:null===V||void 0===V?void 0:V.price)/100:null===Q||void 0===Q?void 0:Q.price)," ",_,null===(m=L.products[0])||void 0===m?void 0:m.currency)}),!isNaN(G)&&G>$&&(0,M.jsx)("p",{className:"wtmr-carousel-tile__price-original",children:(0,D.Sb)(parseFloat((0,X.U)()?(null!==(x=null===V||void 0===V||null===(v=V.variants)||void 0===v||null===(y=v[0])||void 0===y?void 0:y.compare_at_price)&&void 0!==x?x:null===V||void 0===V?void 0:V.compare_at_price)/100:null===Q||void 0===Q?void 0:Q.compare_price)," ",_,null===(g=L.products[0])||void 0===g?void 0:g.currency)}),!isNaN(K)&&0!=K&&(0,M.jsx)("div",{className:"wtmr-carousel-tile__discount-percentage-badge",children:(0,M.jsxs)("p",{className:"wtmr-carousel-tile__discount-percentage-value",children:[K,"%"]})})]})]})]})};const Ut=(0,S.A)({key:"whatmore-css-ai"});function Ht(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,M.jsx)("div",{className:"wtmr-carousel-container-portrait whatmore-events-carousel-portrait ai-carousel-portrait",style:{width:d-48,zIndex:1},children:(0,M.jsx)(C.RC,{slidesPerView:p.length>1?m:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[P.U1],spaceBetween:12,freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.7,momentumBounce:!1,momentumVelocityRatio:.9},touchRatio:1.2,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:400,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x,style:{paddingTop:"8px",paddingBottom:"8px"},children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,M.jsx)("div",{className:"wm-carousel__slide-wrapper "+(t?"wtmr-carousel__slide-wrapper--active":"wtmr-carousel__slide-wrapper--inactive"),children:(0,M.jsx)(Vt,{isOnFocus:t&&n,playOnUnfocus:!1,event:e,onClick:()=>{u(e)}})}):(0,M.jsx)(N,{})},"whatmore-event-tile-ai-portrait-"+e.index))})})}function qt(e){const[t,i,r,l]=(0,I.A)(),[s,d,c]=(0,k.A)(),[p,u]=(0,o.useState)(-1),m=(0,n.Xd)("whatmoreShopId"),x=e.onClick,y=e.events,g=(0,a.cbh)(m),[f,w]=(0,o.useState)(g?y.length:r),j=Math.min(r,y.length),{whatmoreWidgetSourceDetails:b}=(0,o.useContext)(h.BR),S=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(S.current){const e=i*j*(0,a.fHt)(m)+"px";y.length<4?S.current.style.setProperty("width",e,"important"):S.current.style.width=e}},[i,j,m,f,y.length]),(0,o.useEffect)(()=>{f<=r&&w(e=>e+r)},[r]),(0,M.jsx)("div",{className:"wtmr-carousel-container-landscape whatmore-events-carousel-landscape ai-carousel-landscape",style:{width:c,paddingLeft:l+"px",paddingRight:l+"px"},children:(0,M.jsx)("div",{ref:S,style:{zIndex:1},children:(0,M.jsx)(C.RC,{slidesPerView:j,watchSlidesProgress:!0,modules:[P.FJ,P.U1],freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b}),e.realIndex>e.previousIndex&&w(e=>e+r)},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 i=R()(()=>u(t),50);return t<=f&&(0,M.jsx)(C.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),u(-1)},style:{height:"100%"},children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r||o||n?(0,M.jsx)("div",{style:{height:"100%",transform:t===p?"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===p?"brightness(1.02)":"none",opacity:t===p?1:.98,willChange:"transform, filter, opacity"},children:(0,M.jsx)(Vt,{isOnFocus:t==p,playOnUnfocus:!(0,a.aO7)(m)||t==parseInt(j/2)&&-1==p,event:e,onClick:()=>{x(e)}})}):(0,M.jsx)(N,{})},"wht-event-tile-ai-landscape-"+e.index)})})})})}var Qt=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[a]=(0,n.QN)("whatmoreTitleFont"),d="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:c}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:p}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:u}=(0,o.useContext)(h.BR),m=e.events,x=e.onClick,v=a,y=(0,o.useRef)(null);function g(e){x(e)}return(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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,o.useEffect)(()=>{if(y.current){const e=y.current;e.style.setProperty("--wtmr-font-family",v),e.setAttribute("data-mode",t)}},[v,t]),delete w.Ay.styles.global,(0,M.jsx)(b.C,{value:Ut,children:(0,M.jsx)("div",{ref:y,className:"wtmr-carousel whatmore-carousel-events ai-carousel-container",style:{height:"100%",background:"transparent",position:"relative"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:c,resetCSS:!1,children:(0,M.jsxs)(A.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,M.jsx)("div",{className:"wtmr-carousel-header",children:(0,M.jsx)("h2",{className:"wtmr-carousel-title",style:{fontSize:d+"px"},children:u?"W"!==p?p:"":e.heading})}),"landscape"===t?(0,M.jsx)(qt,{events:m,onClick:g}):(0,M.jsx)(Ht,{events:m,onClick:g})]})})})})};const $t=(0,S.A)({key:"whatmore-css-hv"});function Gt(e){const[t,i,r]=(0,I.A)(),[l,s,d]=(0,k.A)(),c=(0,n.Xd)("whatmoreShopId"),p=e.events,u=e.onClick,m=r*(0,a.kcl)(c),x=(0,a.cbh)(c),[y,g]=(0,o.useState)(x?p.length:m),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR);return(0,o.useEffect)(()=>{y<=m&&g(e=>e+m)},[m]),(0,M.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("div",{style:{width:d,height:"fit-content"},children:(0,M.jsx)(C.RC,{slidesPerView:p.length>1?m:1,initialSlide:p.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&g(e=>e+m)},loop:x,children:p.map((e,t)=>t<=y&&(0,M.jsx)(C.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:n})=>i||o||t?(0,M.jsx)(Ze,{isOnFocus:t&&n,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-portrait-"+e.index))})})})}function Yt(e){const[t,i,r,l]=(0,I.A)(),[s,d]=(0,o.useState)(-1),c=(0,n.Xd)("whatmoreShopId"),p=e.onClick,u=e.events,m=(0,a.cbh)(c),[x,y]=(0,o.useState)(m?u.length:r),g=Math.min(r,u.length),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR),w=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(w.current){const e=i*g*(0,a.fHt)(c)+"px";u.length<4?w.current.style.setProperty("width",e,"important"):w.current.style.width=e}},[i,g,c,x,u.length]),(0,o.useEffect)(()=>{x<=r&&y(e=>e+r)},[r]),(0,M.jsx)("div",{style:{display:"flex",justifyContent:"72471412977"==c?"flex-start":"center",alignItems:"center",height:"100%",paddingLeft:l+"px",paddingRight:l+"px"},className:"whatmore-events-carousel-landscape",children:(0,M.jsx)("div",{ref:w,style:{height:"100%"},children:(0,M.jsx)(C.RC,{slidesPerView:g,watchSlidesProgress:!0,modules:[P.Vx],navigation:!0,slidesPerGroup:"91705082162"==c?1:parseInt(g),onSlideChange:e=>{(0,K.UM)({userInteractionType:v.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:f}),e.realIndex>e.previousIndex&&y(e=>e+r)},spaceBetween:0,loop:m&&u.length>4,style:{height:"100%"},children:u.map((e,t)=>{const i=R()(()=>d(t),300);return t<=x&&(0,M.jsx)(C.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),d(-1)},style:{height:"100%"},children:({isActive:i,isPrev:o,isNext:n,isVisible:r})=>r||o||n?(0,M.jsx)(Ze,{isOnFocus:t==s,playOnUnfocus:!(0,a.aO7)(c)||t==parseInt(g/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,M.jsx)(N,{})},"whatmore-event-tile-landscape-"+e.index)})})})})}var Kt=function(e){const[t,i,r]=(0,k.A)(),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmorePrimaryColor"),[d]=(0,n.QN)("whatmoreTitleFont"),c="portrait"==t?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:p}=(0,o.useContext)(h.BR),{whatmoreCollectionHeading:u}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,y=d;function g(e){v(e)}return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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 w.Ay.styles.global,(0,M.jsx)(b.C,{value:$t,children:(0,M.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:p,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||m?(0,M.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",y,"important"),e.style.setProperty("font-size",c+"px","important"))},style:{color:s,backgroundClip:"text",textAlign:"center",fontWeight:(0,a.Odx)(l),lineHeight:(0,a.L0y)(l),letterSpacing:(0,a.l3V)(l)},children:m?"W"!==u?u:"":e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===t?(0,M.jsx)(Yt,{events:x,onClick:g}):(0,M.jsx)(Gt,{events:x,onClick:g})]})})})})};function Jt(e){var t;const[i,o,n]=(0,E.A)({triggerOnce:!1}),r=null!==(t=e.defaultHeight)&&void 0!==t?t:"fit-content";return(0,M.jsx)(re.B,{ref:i,direction:"row",minHeight:r,height:"fit-content",width:"100%",justifyContent:"center",alignItems:"flex-start",children:o?e.data.map((t,i)=>(0,M.jsx)("div",{children:e.renderElement({eventData:t})},"key"+i)):(0,M.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function Zt(e){var t;const[i,o,n]=(0,I.A)(),r=null!==(t=e.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(n,e.dataList.length)),l=function(e,t){var i=[];const o=t;for(let n=0;n<e.length;n+=o){const t=e.slice(n,n+o);i.push(t)}return i}(e.dataList,r);return(0,M.jsx)(re.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*i,children:l.map((t,n)=>(0,M.jsx)(Jt,{renderElement:e.renderElement,data:t,defaultHeight:i,defaultWidth:o},"key-"+n))})}var ei=function(e){var t,i,r,l,[s,d,c,p,h]=(0,I.A)();const u="portrait"===h[we.dl],[m,x]=(0,o.useState)(0),[v,y]=(0,o.useState)(e.event),[g]=(0,n.QN)("whatmoreShopId"),f=(0,n.QN)("whatmoreUITheme"),[w]=(0,n.QN)("whatmorePrimaryFont"),[j]=(0,n.QN)("whatmoreSecondaryColorShade900"),b=v.products.length,[S,C]=(0,o.useState)(),[P,k]=(0,o.useState)(!1);if(0==b)return(0,M.jsx)(M.Fragment,{});(0,o.useEffect)(()=>{const e=setInterval(()=>{x(e=>(e+1)%b)},3e3);return()=>{clearInterval(e)}},[]),(0,o.useEffect)(()=>{(0,a.w4b)(g)?(0,D.fu)(v,(0,a.NCy)(g),g).then(e=>{y(e),k(!0)}):(async()=>{var e;const t=await(0,B.M)(null===v||void 0===v||null===(e=v.products)||void 0===e?void 0:e[0],(0,a.NCy)(g),g);C(t),k(!0)})()},[]);const _=(u?1.23*d*(0,a.HWj)(g):1.4*d*(0,a.N_4)(g))+"px",R=(u?1.15*d*(0,a.HWj)(g):1.31*d*(0,a.N_4)(g))+"px",A=(+v.products[m].price).toFixed(),N=(+v.products[m].compare_price).toFixed(),F=.25*d,E=(0,a.zAb)(g);return(0,M.jsxs)("div",{style:{background:"9238315068"===g?"transparent":(0,a.ivR)(g),display:"flex",flexDirection:E?"row":"column",padding:"10px 12px",gap:E?"8px":"6px",borderRadius:"round"==f?"0 0 12px 12px":"0",alignItems:E?"center":"stretch"},children:[(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:E?"1":"none"},children:[(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",_),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",w,"important"),e.style.setProperty("-webkit-line-clamp",1),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,O.v)(v.products[m].title)}),(0,M.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[P&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",R),e.style.setProperty("font-family",w,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,D.Sb)(parseFloat((0,X.U)()?(null===S||void 0===S?void 0:S.price)/100:null===v||void 0===v||null===(t=v.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.price)," ",g,v.products[m].currency)}),!isNaN(N)&&N>A&&P&&(0,M.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#808191","important"),e.style.setProperty("font-size",R),e.style.setProperty("font-family",w,"important"),e.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,D.Sb)(parseFloat((0,X.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)," ",g,v.products[m].currency)})]})]}),E&&(0,M.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,a.KZe)(g),"important")},src:(0,W.b)(v.products[m].thumbnail_image,"&width=400&height=400"),style:{width:F,height:F,borderRadius:"round"==f?"5px":"0px",backgroundColor:j,flexShrink:0},alt:"product img"})]})};function ti(e){const[t,i]=(0,I.A)(),[o]=(0,n.QN)("whatmoreShowViews"),r=e.event;return(0,M.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,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,M.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,M.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===o?(0,M.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,M.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,M.jsx)(T.A,{event:r,fontSize:.07*i+"px"})})}):(0,M.jsx)(M.Fragment,{})})})})})}var ii=function(e){var t,i,r,l,s,p,u=(0,o.useContext)(A);const x=(0,n.Xd)("whatmoreUITheme"),y=(0,n.Xd)("whatmoreSecondaryColor"),g=(0,n.Xd)("whatmoreShopId"),[f]=(0,n.QN)("whatmorePrimaryFont");var[w,j,b,S,C]=(0,I.A)();const P="portrait"===C[we.dl],k=e.event,_=e.onClick,R=null===(t=e.isOnFocus)||void 0===t||t,N=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,T=null!==(r=e.animateOnFocus&&(0,a.n5O)(g))&&void 0!==r&&r,[O,z,L]=(0,E.A)({triggerOnce:!0}),[D,W]=(0,o.useState)(!1),{whatmoreWidgetSourceDetails:B,whatmoreUserInfo:X}=(0,o.useContext)(h.BR),V=null!==(l=null===(s=k.products)||void 0===s?void 0:s.find(e=>"active"==e.product_status))&&void 0!==l?l:null===(p=k.products)||void 0===p?void 0:p[0],U=V&&Object.keys(V).length>0,[q,Q,$,G,Y,J]=(0,Ee.A)(0,V,k),Z=.07*j+"px",ee=U&&(0,a.Kr7)(g),te=(0,a.ZzM)(g),ie=te?"BUY NOW":"ADD TO CART",oe=e=>{if(e.stopPropagation(),!U)return;const t=B.landingLocationType,i=B.templateType,o=(0,m.Wd)(t)+(0,m.gf)(i)+(null!==k&&void 0!==k&&k.isRelatedEvent?"R":"E")+"_"+(null===k||void 0===k?void 0:k.event_id);if((0,d.Ch)(k.event_id,k.products,"homepage","carousel",o,null===k||void 0===k?void 0:k.location,null===X||void 0===X?void 0:X.userType),te&&V){const e=V.product_link;if(e)return void window.open(e,"_blank")}"init"==q.state?(Y(o,!0),(0,K.kz)({userInteractionType:v.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:B,event:k,productList:[V],ctaList:k.cta})):"awaitingVariantSelection"==q.state&&J(null,o)};return(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,M.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",u.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom","9238315068"===g?"0px":u.tileBottomMMargin+"px","important"))},style:{width:j,height:w,borderRadius:"round"==x?"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:T?R?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{_(k)},onMouseEnter:()=>W(!0),onMouseLeave:()=>W(!1),children:[(0,M.jsx)(F.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:R||N||(0,c.At)(),event:k}),"9238315068"===g&&U&&(D||P)&&(0,M.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:D||P?"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:D||P?"translateY(0)":"translateY(100%)",opacity:D||P?1:0,zIndex:10},onClick:oe,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,M.jsx)("span",{style:{color:"white",fontSize:Z,fontFamily:f,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:ie})}),(0,M.jsxs)("div",{style:{width:j,height:w},ref:O,children:[(0,M.jsx)(ti,{event:k,isOnFocus:R}),"9238315068"!==g&&(0,M.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,M.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)("p",{children:" "})}),(0,M.jsx)("div",{style:{width:"100%"},children:z&&(0,a.imx)(g)?(0,M.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===g?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===g?(0,M.jsx)(H,{event:k}):(0,M.jsx)(ei,{event:k})}):(0,M.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===g&&z&&(0,a.imx)(g)&&(0,M.jsx)("div",{style:{width:j,marginBottom:u.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,M.jsx)(ei,{event:k})}),ee&&(0,M.jsx)("div",{style:{width:j,padding:"15px 0"},children:(0,M.jsx)("button",{style:{backgroundColor:y,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:Z,fontFamily:f,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:oe,onMouseEnter:e=>{e.target.style.opacity="0.8"},onMouseLeave:e=>{e.target.style.opacity="1"},children:ie})})]})};const oi=(0,S.A)({key:"whatmore-css-hv"});var ni=function(e){var t;const[i,r,l]=(0,k.A)(),[s,d,c]=(0,I.A)(),[p]=(0,n.QN)("whatmoreShopId"),[m]=(0,n.QN)("whatmorePrimaryColor"),[x]=(0,n.QN)("whatmoreTitleFont"),v="portrait"==i?(0,n.Xd)("whatmoreTitleFontSizePortrait"):(0,n.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,o.useContext)(h.BR),g=e.events,j=e.onClick,S=null!==(t=(0,a.sa6)(p))&&void 0!==t?t:x;function C(e){j(e)}const P=parseInt(Math.floor(c));return delete w.Ay.styles.global,(0,M.jsx)(b.C,{value:oi,children:(0,M.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,M.jsx)(ye.o,{paddingBottom:"28px",children:(0,M.jsx)(le.E,{bgColor:m,bgClip:"text",fontSize:v,sx:{fontFamily:S+" !important"},align:"center",children:e.heading})}):(0,M.jsx)(M.Fragment,{}),"landscape"===i?(0,M.jsx)(Zt,{renderElement:e=>{const t=e.eventData;return(0,M.jsx)("div",{style:{margin:"10px"},children:(0,u.i)(t)||(0,u.I)(t)?(0,M.jsx)(ii,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}}):(0,M.jsx)(xe,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}})})},dataList:g,elementsPerRow:P}):(0,M.jsx)(Zt,{renderElement:e=>{const t=e.eventData;return(0,M.jsx)("div",{style:{margin:"10px"},children:(0,M.jsx)(ii,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{C(t)}})})},dataList:g,elementsPerRow:P})]})})})})},ri=i(7575),li=i(2257);var si=function(e){var t;const[i]=(0,n.QN)("whatmoreShopId"),r=e.isMuted,{whatmoreWidgetSourceDetails:l}=(0,o.useContext)(h.BR),s=l.templateType,d=(0,m.l2)(s),c=null!==(t=e.iconSize)&&void 0!==t?t:30;function p(t){e.onToggle(t)}return!0===(0,a.GZ2)(i)?(0,M.jsx)(M.Fragment,{}):(0,M.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:r?(0,M.jsx)(Mt.A,{sx:{color:"white",fontSize:d?1.3*c:c,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:e=>{p(e)}}):(0,M.jsx)(At.A,{sx:{color:"white",fontSize:d?1.3*c:c,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:e=>{p(e)}})})},ai=i(1079),di=i(69);function ci(e){const[t,i]=(0,o.useState)(e.initialMuteState),r=e.events,l=e.activeEventIndex,s=e.setActiveEventIndex,d=(0,n.Xd)("whatmoreShopId"),h="portrait"===e.mode;function u(o){o.stopPropagation(),i(!t),(0,c.MN)()&&((0,g._)()?(0,p.bo)():(0,di.bi)()),e.onMuteToggle()}const m=e.event;return(0,M.jsxs)("div",{style:{position:(0,a.D7t)(d)?"absolute":"relative",top:(0,a.D7t)(d)?0:"",zIndex:1,bottom:(0,a.D7t)(d)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:[(0,M.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",position:"relative",height:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:["video"==m.event_type&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{width:"100%"},onClick:e=>{(0,a.OC6)(d)||u(e)}}),(0,M.jsx)(si,{isMuted:t,onToggle:e=>{u(e)}})]}),r.length>1&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{classname:"banner-navigation-overlay-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),s(0===l?r.length-1:l-1)},children:(0,M.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,M.jsx)(ri.A,{})})})}),(0,M.jsx)("div",{classname:"banner-navigation-overlay-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),s(l===r.length-1?0:l+1)},children:(0,M.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,M.jsx)(li.A,{})})})}),(0,a.JiT)(d)&&(0,M.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map((e,t)=>{const i=t===l;return(0,M.jsx)("button",{onClick:e=>{e.stopPropagation(),s(t)},style:{width:i?"25px":h?"12px":"14px",height:h?"12px":"14px",borderRadius:i?"10px":"50%",backgroundColor:i?(0,a.z1s)(d):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},t)})})]})]}),!(0,a.OC6)(d)&&(0,M.jsx)("div",{style:{width:"100%",height:"100%"},onClick:u})]})}var pi=function(e){var t,i,r,l;const[s,d,c]=(0,k.A)(),[p,u]=(0,o.useState)(!0),m=(0,n.Xd)("whatmoreVideoTileSize"),[x,y,g]=(0,E.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:f}=(0,o.useContext)(h.BR),w=(0,n.Xd)("whatmoreShopId"),b=e.events,S=e.activeEventIndex,C=e.setActiveEventIndex,P=b[S],I=(0,Pt.lP)(P),_=(0,Pt.cb)(P);if((0,o.useEffect)(()=>{j.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;e&&(e.style.minHeight="0px")})},[]),"portrait"===s&&!I)return(0,M.jsx)(M.Fragment,{});if("landscape"===s&&!_)return(0,M.jsx)(M.Fragment,{});const R=(0,qe.s)("portrait"===s?I:_),A=m/100*(0,a.igk)(w),N=m/100*(0,a.Y_l)(w),T="portrait"===s?(0,a.G0Q)(w):(0,a.ga9)(w),O="portrait"===s?c*A:c*N,z=O*T,L=null!=(null===(t=P.cta)||void 0===t||null===(i=t[1])||void 0===i?void 0:i.cta_link);return(0,M.jsxs)("div",{ref:x,onClick:()=>{var e,t;(0,K.kz)({userInteractionType:v.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:f,event:b[S]}),(0,a.OC6)(w)&&window.open(null===(e=P.cta)||void 0===e||null===(t=e[1])||void 0===t?void 0:t.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:(0,a.D7t)(w)?"100%":O,minHeight:(0,a.D7t)(w)?c*T:"",height:(0,a.D7t)(w)?"auto":z,borderWidth:(0,a.YcK)(w),borderColor:(0,a.Fwt)(w),overflow:"hidden",cursor:"pointer"},children:["28273541192"===w?(0,M.jsx)(F.A,{height:"100%",width:"100%",url:R,isPlaying:y,event:P,isVideoMuted:!y||p,source:St.N.BANNER}):(0,M.jsx)(Rt,{height:"100%",width:"100%",url:R,isPlaying:y,event:P,isVideoMuted:!y||p,setDuration:e.setDuration,source:St.N.BANNER}),(0,M.jsx)(ci,{isCTAPresent:L,events:b,activeEventIndex:S,setActiveEventIndex:C,event:P,mode:s,onMuteToggle:()=>u(!p),initialMuteState:p}),(0,a.XYM)(w)&&(null===P||void 0===P||null===(r=P.cta)||void 0===r?void 0:r.length)>1&&(0,M.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,M.jsx)(ai.A,{isBanner:!0,event:P,cta:null===P||void 0===P||null===(l=P.cta)||void 0===l?void 0:l[1],fontFactor:.6})})]})};const hi=(0,S.A)({key:"whatmore-css-bv"});var ui=function(e){const{whatmoreRootId:t}=(0,o.useContext)(h.BR),[i,r]=(0,o.useState)(0),l=e.events,[s,a]=(0,o.useState)(-1),[d]=(0,n.QN)("whatmoreShopId"),[c]=(0,k.A)();let p;return(0,o.useEffect)(()=>{p&&clearInterval(p);const e="video"===l[i].event_type,t=e?1e3*s:6e3;return e?-1!=s&&(p=setInterval(()=>{r(e=>e===l.length-1?0:e+1)},t)):p=setInterval(()=>{r(e=>e===l.length-1?0:e+1)},t),()=>{clearInterval(p)}},[s,i]),delete w.Ay.styles.global,(0,M.jsx)(b.C,{value:hi,children:(0,M.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===d&&"portrait"==c?"200px":void 0},children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:t,resetCSS:!1,children:(0,M.jsx)(A.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,M.jsx)(pi,{activeEventIndex:i,events:l,setActiveEventIndex:r,setDuration:a})})})})})};var mi=function(e){var t,i,r;const[l,s,d,c,p]=(0,I.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,o.useState)(!1),w=(0,a.ivI)(m),j=e.event,b=e.onClick,S=e.removeBorders,C=s*y*.01,P=(0,a.esc)(m),k=null!==(t=(0,a.zC7)(m))&&void 0!==t?t:"circle",_="circle"===k?"50%":"6%",R=C*P,A="rectangle"===k?1.5*R:R;let N=null!==(i=(0,a.qAx)(m))&&void 0!==i?i:[h,w,h,w,h];return Array.isArray(N)||(N=Array(5).fill(N)),(0,M.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),b(j)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,M.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 "+N[0]+"50, 0px -1px 1px 0px "+N[1]+"50, 1px 0px 1px 0px "+N[2]+"50, -1px 0px 1px 0px "+N[3]+"80, 1px -1px 1px 0px "+N[4]+"80, -1px 1px 1px 0px "+N[0]+"DA, 1px 1px 1px 0px "+N[1]+"DA, -1px -1px 1px 0px "+N[2]+"DA"},children:(0,M.jsx)(M.Fragment,{children:(0,M.jsx)("div",{className:"whatmore-story-tile-inner",style:{flexShrink:0,objectFit:"cover",height:A+"px",width:R+"px",borderRadius:_,backgroundColor:h,overflow:"hidden",border:"3px solid white"},children:(0,M.jsx)(F.A,{height:"100%",width:"100%",url:j.thumbnail_image,isPlaying:!0,event:j})})})}),(0,M.jsx)("div",{className:"wht-car-vid-title",style:{display:"flex",justifyContent:"center",width:C*P+"px",fontFamily:u,paddingTop:"10px",fontSize:null!==(r=e.fontSize)&&void 0!==r?r:10},children:(0,M.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,O.v)(t);if("portrait"===e.mode){const e=t.split(" ").filter(e=>""!==e.trim()),i=[];for(let t=0;t<e.length;t+=2)i.push(e.slice(t,t+2).join(" "));return i.join("\n")}return t})(j.title)})})]})};const xi=(0,S.A)({key:"whatmore-css-cv"});var vi=function(e){const[t]=(0,k.A)(),[i,r]=(0,I.A)(),l=(0,n.Xd)("whatmoreVideoTileSize"),s=(0,n.Xd)("whatmoreVideoTileSizePortrait"),d="portrait"===t?s:l,c="portrait"==t?0:(0,n.Xd)("whatmoreLandscapePadding"),p=(0,n.Xd)("whatmoreCollectionsTilesSpacing"),u=(0,n.Xd)("whatmoreShopId"),{whatmoreRootId:m}=(0,o.useContext)(h.BR),x=e.events,v=e.onClick,{whatmoreIsCollectionsTemplate:y,whatmoreIsPreviewMode:g}=(0,o.useContext)(h.BR);function S(e){v(e)}const[C,P,_]=(0,E.A)({triggerOnce:!1});delete w.Ay.styles.global;const R=.055*r;var N=[];for(let o=0;o<x.length;)N.push((0,M.jsx)(mi,{mode:t,event:x[o],onClick:()=>{S(x[o-1])},removeBorders:(0,a.U74)(u),fontSize:.8*R},"collections-tile-"+o)),o+=1;return(0,o.useEffect)(()=>{(0,J.Fk)("Video shopping powered by Whatmore!")},[]),(0,o.useEffect)(()=>{document.querySelector('.whatmore-render-root[data-shimmer-active="true"]')||j.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||g?(0,M.jsx)(b.C,{value:xi,children:(0,M.jsx)("div",{className:y?"whatmore-collection-events":"whatmore-carousel-events",children:(0,M.jsx)(f.s,{theme:w.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,M.jsxs)(A.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,M.jsx)("div",{ref:C,style:{marginLeft:c+"px",marginRight:c+"px"},children:(0,M.jsx)(Le.c,{renderElement:e=>(0,M.jsx)(M.Fragment,{children:e.eventData}),dataList:N,spacing:p,defaultHeight:r*d*.01+"px",defaultWidth:r*d*.01+"px",retainAlreadyRenderedElements:!0})}),(0,a.wQ2)(u)&&!P&&-1==e.index&&(0,M.jsx)(De.A,{event:x[0],inVideoClick:S,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})}):(0,M.jsx)(M.Fragment,{})},yi=i(5100),gi=i(4925);var fi=function(e){var t,f,w,j;const[b]=(0,n.QN)("isInDesignMode"),[S]=(0,n.QN)("isDemoBrand"),[C]=(0,n.QN)("whatmoreTopBottomPadding"),[P]=(0,n.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:I}=(0,o.useContext)(h.BR),[k]=(0,n.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:_,whatmoreRootId:R}=(0,o.useContext)(h.BR);(0,o.useEffect)(()=>{("template-a"===_||"template-b"===_||"template-c"===_||"template-d"===_||"template-e"===_||"template-f"===_||"template-feed-a"===_||"template-g"===_||"template-h"===_||"template-i"===_||"template-j"===_||"template-stories"===_||"template-collections-a"===_||"template-collections-b"===_||"template-collections-c"===_||"template-collections-d"===_||"template-collections-e"===_||"template-collections-f"===_||"template-collections-feed-a"===_||"template-collections-g"===_||"template-collections-h"===_||"template-collections-i"===_||"template-collections-j"===_||"template-collections-stories"===_)&&e.events&&e.events.length>0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const e=document.querySelector(`.whatmore-render-root[data-widget-id="${R}"][data-shimmer-active="true"]`),t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${R}"][data-template="${_}"]`);e&&t?(t.style.opacity="0",e.style.opacity="1",e.style.pointerEvents="auto",setTimeout(()=>{console.log(`[iOS Fix] ${_}: Removing shimmer from DOM`),t.remove(),e.removeAttribute("data-shimmer-active");const i=e.closest(".whatmore-base");i&&(i.style.minHeight="0px",console.log(`[iOS Fix] ${_}: Reset minHeight to 0px`))},100)):console.warn(`[iOS Fix] ${_}: Crossfade elements not found`,{renderRoot:!!e,shimmerContainer:!!t})})})},[_,e.events]);const A=(0,n.Xd)("isLandingSharedLink"),N=(0,n.Xd)("whatmoreShareTemplateId"),F=(0,n.Xd)("whatmoreShareStoryId"),E=(0,n.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:O}=(0,o.useContext)(h.BR),z=A&&_===(0,m.Mm)(N),[L,D]=(0,o.useState)(z),[W,B]=(0,o.useState)(-1),[X,V]=(0,o.useState)(null);let U=e.events;const H=e.allEvents;var q=null;I&&!q&&(q=function(e){var t=e.reduce((e,t,i)=>{var o,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:i,storyset_dynamic_thumbnail:null!==(o=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==o&&o,events:[t]},e},{}),i=Object.values(t);return i.sort((e,t)=>e.start_event_index-t.start_event_index),i}(U));const Q=T.landingLocationType,$=T.templateType;async function G(e,t=!1,o=null){if((0,c.MN)()&&(0,g._)()&&!t){(0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,p.bo)()}b||S||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:o}=await Promise.resolve().then(i.bind(i,3330));t();const n=q[e].events[0],s=(0,m.Wd)(Q)+(0,m.gf)($)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.lB)(n),o(k,r.TB,r.OL),(0,d.Ch)(n.event_id,n.products,"homepage","stories",s,null===n||void 0===n?void 0:n.location,null===O||void 0===O?void 0:O.userType)})();var s=0;null!=o&&q[e].events.map((e,t)=>{e.event_id==o&&(s=t)}),B(s),V(e)}async function Y(e,t=!1){if((0,c.MN)()&&(0,g._)()&&!t){(0,n.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,p.bo)()}(0,n.Xd)("is3DTemplateMuted")||(0,n.t2)("is3DTemplateMuted",!0),B(e.index),((0,u.i)(e)||(0,u.I)(e))&&(b||S||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:o}=await Promise.resolve().then(i.bind(i,3330));t();const n=(0,m.Wd)(Q)+(0,m.gf)($)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),o(k,r.TB,r.Dk),(0,d.Ch)(e.event_id,e.products,"homepage","carousel",n)})())}function K(e){return(0,M.jsx)(M.Fragment,{})}return(0,o.useEffect)(()=>{if(z)if((0,y.H)("whatmore-video-player",()=>{D(!1)}),null!=F&&I){const e=q.find(e=>F==e.id);if(e)return void G(q.indexOf(e),!0,E)}else if(null!=E){const e=U.find(e=>E==e.event_id);if(e)return void Y(e,!0)}},[]),(0,M.jsxs)(M.Fragment,{children:[L&&(0,M.jsx)(yi.A,{}),-1==W||-2==W?(0,M.jsx)(K,{}):(0,M.jsx)(o.Suspense,{fallback:window.innerWidth<=window.innerHeight?(0,M.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000",zIndex:2147483648,pointerEvents:"none"},children:(0,M.jsx)("div",{style:{width:window.innerWidth,height:window.innerHeight,overflow:"hidden"},children:I?(0,M.jsx)(s.A,{width:"100%",height:"100%"}):(0,M.jsx)("img",{src:(null===(t=H[W])||void 0===t?void 0:t.poster_image)||(null===(f=H[W])||void 0===f?void 0:f.thumbnail_image),alt:"",style:{width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}})})}):null,children:(0,M.jsx)(x.S,{userInteractionType:v.O.EVENT_VIEW,event:U[W],productList:null===(w=U[W])||void 0===w?void 0:w.products,cta:null===(j=U[W])||void 0===j?void 0:j.cta,triggerFlag:!b&&!S,children:(0,M.jsx)(gi.A,{events:H,index:W,onBack:async function(){B(-1),D(!1)},slideDirection:I||"horizontal"===(0,a.br0)(k)?"horizontal":"vertical",eventsStories:q,initialStoryIndex:X,template:_})})}),(0,M.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,gi.h)(),style:{height:"100%",marginTop:(I?P:C)+"px",marginBottom:(I?P:C)+"px"},children:"template-b"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(oe,{events:U,onClick:Y,heading:e.heading})})}):"template-a-1"===_||"template-collections-a-1"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(Ne,{events:U,onClick:Y,heading:e.heading})}):"template-feed-a"===_||"template-collections-feed-a"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(ni,{events:U,onClick:Y,heading:e.heading})}):"template-collections-a"===_||"template-c"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Be,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-collections-b"===_||"template-d"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Ve,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-collections-c"===_||"template-e"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(He,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-collections-d"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(oe,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-collections-e"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(ot,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-collections-stories"===_||"template-stories"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(vi,{events:U,index:W,setScreen:B,onClick:Y,heading:e.heading})})}):"template-f"===_||"template-collections-f"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(ht,{events:U,onClick:Y,heading:e.heading})})}):"template-g"===_||"template-collections-g"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(gt,{events:U,onClick:Y,heading:e.heading})})}):"template-h"===_||"template-collections-h"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Kt,{events:U,onClick:Y,heading:e.heading})})}):"template-i"===_||"template-collections-i"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(zt,{index:W,events:U,onClick:Y,heading:e.heading})})}):"template-j"===_||"template-collections-j"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Xt,{events:U,onClick:Y,heading:e.heading})})}):"template-ai"===_||"template-collections-ai"===_?(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Qt,{events:U,onClick:Y,heading:e.heading})}):"template-banner-a"===_?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.BANNER_WIDGET_VIEW,event:U[0],triggerFlag:!b&&!S,children:(0,M.jsx)(ui,{events:U})})}):I?(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.STORIES_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(Je,{eventsStories:q,onClick:G,template:_})})}):(0,M.jsx)(o.Suspense,{children:(0,M.jsx)(x.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!b&&!S,children:(0,M.jsx)(ot,{events:U,onClick:Y,heading:e.heading})})})})]})},wi=i(1019),ji=i(3782);const bi=Array.from(document.getElementsByClassName("whatmore-base"));function Si(e){return e.split(/[?#]/)[0]}function Ci(e){return e.split(/[?#]/)[0]}var Pi=function(e){const[t,i]=(0,o.useState)(),[l,s]=(0,o.useState)(),[u,x]=(0,o.useState)(),{whatmoreIsStoriesTemplate:y}=(0,o.useContext)(h.BR),{whatmoreIsCollectionsTemplate:f}=(0,o.useContext)(h.BR),{whatmoreIsBannerTemplate:w}=(0,o.useContext)(h.BR),{whatmoreRootId:j}=(0,o.useContext)(h.BR),[b]=(0,n.QN)("whatmoreShopId"),{whatmoreCollectionId:S}=(0,o.useContext)(h.BR),C=(0,n.Xd)("whatmoreLandingLocationType"),P=(0,n.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,o.useContext)(h.BR),{whatmoreUserInfo:k,whatmoreIsPreviewMode:_}=(0,o.useContext)(h.BR),R=(0,n.Xd)("whatmoreCollectionUrl"),[A]=(0,n.QN)("isInDesignMode"),[N]=(0,n.QN)("isDemoBrand");let F;F="19506115"==b?"343270603":(0,a.mJ$)(b)?(0,a.jLA)(b)?R:Si(window.location.href):S||Si(window.location.href);const[E,T]=(0,n.QN)("productRatings"),[O,z]=(0,o.useState)(!1);var L=(0,a.SOt)(b)?r.aD+"/v2/events/":r.$$+"/v2/events/",D=(0,a.SOt)(b)?r.aD+"/v3/events/":r.$$+"/v3/events/",W=(0,a.SOt)(b)?r.aD+"/v4/events/":r.$$+"/v4/events/",B=(0,a.SOt)(b)?r.aD+"/v5/events/":r.$$+"/v5/events/",X=((0,a.SOt)(b)?r.aD:r.$$,(0,a.SOt)(b)?r.aD+"/get_eventset/":r.$$+"/get_eventset/"),V=(0,a.SOt)(b)?r.aD+"/v2/collection":r.$$+"/v2/collection",U=(0,a.SOt)(b)?r.aD+"/v3/collection":r.$$+"/v3/collection",H=(0,a.SOt)(b)?r.aD+"/v4/collection":r.$$+"/v4/collection",Q=((0,a.jpW)(b)?r.$$:r.MT)+"/v2/brand/"+b+"/product-events",$=e.shopId,G="live,upcoming",Y="true";return(0,o.useEffect)(()=>{null!=t&&0!=t.length&&!u&&(0,c.MN)()&&!(0,n.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,g._)()&&(0,p.Pc)(p.F5)},[t]),(0,o.useEffect)(()=>{var e,t,o;(0,d.wm)();const r=localStorage.getItem("w_user_type");var l;if(C.startsWith("product")){var c=(0,n.Xd)("whatmoreProductId");if(c=(0,a.BcY)(b)?function(e){return"STRQMPNF7QK"==e?encodeURIComponent(window.location.href):"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e?Ci(window.location.href).split("/").pop():Ci(window.location.href)}(b):c,"27378679908"!==b&&"28575536"!==b||!f)if((0,a.vvU)(b))l=L.toString()+$.toString()+"?status="+G.toString()+"&is_active="+Y.toString()+(y?"&template_type=stories":"");else if((0,a.WH1)(b)){l=`${l=(0,wi.B)(b)}?client_product_id=${c}&limit=10&recommended=${!(0,a.buK)(b)}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`}else l=Q.toString()+"?client_product_id="+c.toString()+"&status="+G.toString()+"&event_type=video";else{let e=(0,n.Xd)("whatmoreCollectionId");null!=e&&"0"!==e&&e||(e=Si(window.location.href)),l=`${V.toString()}?store_id=${$.toString()}&client_collection_id=${e}`}}else if(f||"invalid-url"!==R)(0,a.JwJ)(b)?(l=`${U.toString()}?store_id=${$.toString()}&client_collection_id=${"index"==C&&(0,a.FKG)(b).length>0?(0,a.FKG)(b)[0]:F}`,l+="&user_type="+r):l="78232846646"==b?`${H.toString()}?store_id=${$.toString()}&client_collection_id=${"index"==C&&(0,a.FKG)(b).length>0?(0,a.FKG)(b)[0]:F}`:`${V.toString()}?store_id=${$.toString()}&client_collection_id=${"index"==C&&1==(0,a.FKG)(b).length?(0,a.FKG)(b)[0]:F}`;else if(w){const e=m.Jh,t=(0,m.t6)(C);l=X.toString()+$.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+b}else{var p,h,u,v;if(("72201044272"==b||"2665447536"==b&&_)&&!y)l=D.toString()+$.toString()+"?status="+G.toString()+"&is_active="+Y.toString()+"&latitude="+(null!==(p=null===(h=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===h?void 0:h.latitude)&&void 0!==p?p:"")+"&longitude="+(null!==(u=null===(v=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===v?void 0:v.longitude)&&void 0!==u?u:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else l=(0,a.JwJ)(b)&&!y?W.toString()+$.toString()+"?status="+G.toString()+"&user_type="+r+"&is_active="+Y.toString():"78232846646"!=b||y?L.toString()+$.toString()+"?status="+G.toString()+"&is_active="+Y.toString()+(y?"&template_type=stories":""):B.toString()+$.toString()+"?status="+G.toString()+"&is_active="+Y.toString()}const g=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(o=t.storyEvents)||void 0===o?void 0:o.events;y&&C.startsWith("index")&&"object"==typeof g&&(null===g||void 0===g?void 0:g.length)>0?(i(g),s(g),z(!0),(0,n.t2)("isCarouselDataLoading",!1)):(P&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udce1 Starting API fetch to:`,l),fetch(l).then(e=>e.json()).then(e=>{var t;if(w){const t=m.Jh;return(0,q.Po)(e,t)}return(0,a.JwJ)(b)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,d.d3)(null===e||void 0===e?void 0:e.questions)),(0,q.Np)(e,f||"invalid-url"!==R)}).then(e=>{var t,i;P&&console.debug("initial received events size : "+e.length);let o=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];o=(0,a.xku)(b)?(0,q.d8)(o):(0,q.Zf)(o);const n=o.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});s(n);const r=null!==(t=null===e||void 0===e||null===(i=e.events)||void 0===i?void 0:i.length)&&void 0!==t?t:0;return o.slice(0,r)}).then(e=>{if((N||A)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const e=async()=>{const{eventsData:e,storiesData:t,bannerData:o}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();i(y?t:w?o:e)};e()}else{const t=(0,ji.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});i(t)}z(!0),(0,n.t2)("isCarouselDataLoading",!1)}).catch(e=>{x(e.message),z(!0),(0,n.t2)("isCarouselDataLoading",!1)}))},[]),(0,o.useEffect)(()=>{"index"===C?t&&t.length>0&&(0,K.yP)({userInteractionType:v.O.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===C?(t&&t.length>0||"Scale"==(0,a.yt9)(b)||"Enterprise"==(0,a.yt9)(b)||"Premium"==(0,a.yt9)(b))&&(0,K.yP)({userInteractionType:v.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:I}):"product"===C&&(t&&t.length>0||"Scale"==(0,a.yt9)(b)||"Enterprise"==(0,a.yt9)(b)||"Premium"==(0,a.yt9)(b))&&(0,K.yP)({userInteractionType:v.O.PDP_VISITED,widgetSourceDetails:I})},[t]),O&&(null==t||0==t.length||u)&&bi.forEach(e=>{var t,i,o,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!==(i=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!==i?i: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!==(o=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!==o?o: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(y){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!f){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}const c=e.querySelector(`.whatmore-shimmer-container[data-widget-id="${j}"]`);c&&(c.remove(),P&&console.log(`[API Error] Removed smart shimmer for widget ${j} on API failure/empty data`));const p=e.querySelector(`.whatmore-render-root[data-widget-id="${j}"]`);p&&(p.style.opacity="1",p.style.pointerEvents="auto",p.removeAttribute("data-shimmer-active"),P&&console.log(`[API Error] Reset carousel visibility for widget ${j}`),N||A)||(a||s||l||r)&&(l&&d||r&&d||a&&d||s&&d)&&(d.style.minHeight="0px")}),document.querySelector(`.whatmore-render-root[data-widget-id="${j}"][data-shimmer-active="true"]`)&&P&&console.log(`[iOS Fix] Shimmer sibling active for ${j}, skipping injection in WhatmoreRootComponent`),null==t||0==t.length||u?(0,M.jsx)("div",{}):(P&&(0,J.xv)(t),P&&console.debug("final transformed events data : "+JSON.stringify(t)),P&&console.debug("valid events size : "+t.length),(0,M.jsx)(fi,{heading:e.heading,events:t,allEvents:l}))};var Ii=function(){const[e]=(0,n.QN)("whatmoreShopId"),[t]=(0,n.QN)("whatmoreHeading");return(0,M.jsx)("div",{style:{display:"block",height:"100%"},children:(0,M.jsx)(Pi,{heading:t,shopId:e})})}},6663:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},7575:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore")},8726:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);
|