whatmore-react-assets 1.0.1869 → 1.0.1871

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.
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[260],{243:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var o=i(8670),n=i(5398),r=i(9197),l=i(6123),a=i(9887),d=i(1477),s=i(1214),c=i(9383);var u=i(4015),p=i(9193),h=i(3477),v=i(5547),x=i(5830),g=i(4234),m=i(9888),f=i(7156),w=i(481);function C(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,p=t.height;return(0,w.jsx)(o.az,{width:u,height:p,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[j]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[E]=[(0,v.Wc_)(_)],z=(0,v.Wc_)(_),[F,T]=(0,d.useState)(!1),[P,N]=(0,d.useState)({state:"initial"}),[L,B]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:A}=(0,d.useContext)(h.p),{whatmoreWidgetSourceDetails:R}=(0,d.useContext)(g.BR),D=t.event,O=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function M(t,e,i){j||S||(async()=>{(0,c.increaseEventProductAddToCartCount)(t,e,i)})()}(0,d.useEffect)(()=>{!async function(){var t,e,i,o;const n=await(0,x.M)(O,(0,v.NCy)(_),_);B({loaded:!0,client_product_id:O.client_product_id,variant_id:null===n||void 0===n||null===(t=n.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===n||void 0===n||null===(i=n.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price})}()},[]);const H=null!==(i=t.width)&&void 0!==i?i:"fit-content",Q=null!==(a=t.height)&&void 0!==a?a:"fit-content",V=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:H,height:Q},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(p.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:H,height:Q,minHeight:Q},onClick:t=>{T(!0),M(D,O,1),(0,m.registerClickEvent)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:R,event:D,productList:[O],ctaList:D.cta}),null!==A&&setTimeout(()=>{A()},2e3)},children:"initial"===P.state?(0,w.jsx)(o.az,{width:"100%",height:"100%",padding:V,boxShadow:"lg",borderRadius:"md",backgroundColor:z,borderColor:z,borderWidth:"1px",animation:F?u.jd:null,onAnimationEnd:()=>{T(!1)},children:(0,w.jsx)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:O,baseFontSize:W,cartState:P,width:H,height:Q})})})}):(0,w.jsx)(w.Fragment,{})}},8258:function(t,e,i){i.r(e),i.d(e,{default:function(){return ao}});var o=i(9252),n=i(4475),r=i(4018),l=i(1477),a=i(3401),d=i(416),s=i(9383),c=(i(5195),i(5760),i(5547)),u=i(1214),p=i(9263),h=i(5830),v=i(9128),x=i(9795),g=i(3477),m=i(9258),f=i(5129),w=i(7372),C=i(221),y=i(4040),b=(i(5497),i(4234));let j=null;const S=()=>(j||(j=i.e(561).then(i.bind(i,4390)).then(t=>t.default)),j);var k=i(481);function I(t){var e,i,o;const[a,d]=(0,x.A)(),[s,p]=(0,l.useState)(l.useRef()),h=t.posterImage,[v,g]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),f=(0,l.useRef)(null),[j,I]=(0,l.useState)(!1),[_,E]=(0,l.useState)(!0),[z,F]=(0,l.useState)(!1),T=t.timeUpdateCallback,{whatmoreIsPreviewMode:P}=(0,l.useContext)(b.BR),N=null!==(e=t.isVideoMuted)&&void 0!==e?e:a,L=null!==(i=t.height)&&void 0!==i?i:"100%",B=null!==(o=t.width)&&void 0!==o?o:"100%",A=(0,u.Xd)("whatmoreShopId");(0,l.useEffect)(()=>{if(!s.current||!t.url||!v)return;const e=s.current.children[0];if(!e)return;let i=!0;const o="banner"===t.source?t.url:(0,n.s)(t.url),l=o&&(o.includes(".m3u8")||o.includes("m3u8")),a=o&&o.toLowerCase().includes(".mp4");f.current&&(f.current.destroy(),f.current=null,I(!1));const d="undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported;return l&&!a&&d?S().then(n=>{if(!i||!s.current)return;if(!n.isSupported())return void I(!0);const l=new n({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60,capLevelToPlayerSize:!0,startLevel:-1,autoStartLoad:!0});f.current=l,l.loadSource(o),l.attachMedia(e),l.on(n.Events.MANIFEST_PARSED,()=>{i&&I(!0)}),l.on(n.Events.ERROR,(o,a)=>{if(a.fatal&&i)switch(console.error("HLS.js error:",a),a.type){case n.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),l.startLoad();break;case n.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),l.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback");const i=(0,r.Cr)(t.url);e.src=i,I(!0)}})}).catch(t=>{i&&(console.error("Failed to load HLS.js, falling back to native playback",t),I(!0))}):l&&!d?(console.log("Using native HLS support"),I(!0)):I(!0),()=>{i=!1,f.current&&(f.current.destroy(),f.current=null)}},[t.url,t.source,v,s.current]),(0,l.useLayoutEffect)(()=>{if(s.current&&v)if(0==s.current.children.length){const i=(0,r.Cr)(t.url),o="banner"===t.source?t.url:(0,n.s)(t.url);(e=(0,w.Z4)(s.current,o,N||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",()=>{E(!1)}),T&&e.addEventListener("timeupdate",t=>{if(!e)return;const i=e.currentTime,o=e.duration;T(Number.isFinite(i)?i:0,Number.isFinite(o)?o:0)})}else{var e;(e=s.current.children[0]).muted=N||!t.isPlaying;const i="banner"===t.source?t.url:(0,n.s)(t.url),o=i&&(i.includes(".m3u8")||i.includes("m3u8"));if(t.isPlaying&&(!o||j)){const t=()=>{e.paused&&e.play().catch(t=>{"NotAllowedError"!==t.name?console.error("Play error:",t):console.warn("Play blocked by iOS autoplay policy:",t.message)})};!1===_||o?setTimeout(t,100):t()}else e.pause(),(0,c.fwF)(A)&&t.source==C.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.paused&&e.play().catch(()=>{}),setTimeout(()=>{!t.isPlaying&&e.pause()},(0,y.n)()?1900:800))}},[N,t.isPlaying,v,_,j]),(0,l.useLayoutEffect)(()=>()=>{f.current&&(f.current.destroy(),f.current=null),s.current&&0!=s.current.children.length&&(0,w.rq)(s.current)},[]);const R=(0,u.Xd)("whatmoreLandingLocationType");return(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:B,height:L,overflow:"hidden",backgroundColor:P?(0,c.KVz)(A):(0,c.QSX)(A),filter:t.showQuestion?"blur(24px)":""},children:[(0,k.jsx)("div",{ref:s,style:{width:_?"0px":"100%",height:_?"0px":P?(0,c.tbf)(A):(0,c.CBm)(A)&&"product"==R?"auto":(0,c.R7q)(A)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==A&&_&&z?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):_&&!z&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,k.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{F(!0)}})}),(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)(m.A,{width:B,height:L,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var _=function(t){var e;return(0,k.jsx)(I,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function E(t){var e,i,o;const[a,d]=(0,x.A)(),[s,p]=(0,l.useState)(!1),[h,v]=(0,l.useState)(!1),[g,f]=(0,l.useState)(!1),w=t.setDuration,j=(0,l.useRef)(null),I=(0,l.useRef)(null),_=(0,u.Xd)("whatmoreShopId"),E=t.timeUpdateCallback,{whatmoreIsPreviewMode:z}=(0,l.useContext)(b.BR),F=(0,u.Xd)("whatmoreLandingLocationType"),T=null!==(e=t.height)&&void 0!==e?e:"100%",P=null!==(i=t.width)&&void 0!==i?i:"100%",N=null!==(o=t.isVideoMuted)&&void 0!==o?o:a,L=null===t||void 0===t?void 0:t.posterImage;return(0,l.useEffect)(()=>{if(!j.current||!t.url)return;let e=!0;const i=j.current,o="banner"==t.source?t.url:(0,n.s)(t.url),l=o&&(o.includes(".m3u8")||o.includes("m3u8")),a=o&&o.toLowerCase().includes(".mp4");I.current&&(I.current.destroy(),I.current=null,f(!1));const d="undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported;return l&&!a&&d?S().then(n=>{if(!e||!j.current)return;if(!n.isSupported())return i.src=(0,r.Cr)(t.url),void f(!0);const l=new n({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60});I.current=l,l.loadSource(o),l.attachMedia(i),l.on(n.Events.MANIFEST_PARSED,()=>{e&&(f(!0),t.isPlaying&&i.play().catch(t=>console.error("HLS playback error:",t)))}),l.on(n.Events.ERROR,(t,r)=>{if(r.fatal&&e)switch(r.type){case n.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),l.startLoad();break;case n.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),l.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback"),i.src=o,f(!0)}})}).catch(n=>{e&&(console.error("Failed to load HLS.js, falling back to native playback",n),i.src=a?o:(0,r.Cr)(t.url),f(!0))}):(!l||!a&&d||(i.src=a?o:(0,r.Cr)(t.url)),f(!0)),()=>{e=!1,I.current&&(I.current.destroy(),I.current=null)}},[t.url,t.source]),(0,l.useEffect)(()=>{const e=j.current;if(e&&g&&(t.isPlaying?e.paused&&e.play().catch(t=>console.error("Play error:",t)):e.pause(),E)){const t=()=>{if(!j.current)return;const t=j.current.currentTime,e=j.current.duration;E(Number.isFinite(t)?t:0,Number.isFinite(e)?e:0)};return e.addEventListener("timeupdate",t),()=>e.removeEventListener("timeupdate",t)}},[t.isPlaying,t.url,g]),(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:P,height:T,overflow:"hidden",backgroundColor:z?(0,c.KVz)(_):(0,c.QSX)(_),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,k.jsx)("div",{style:{width:s?"100%":"0px",height:s?z?(0,c.tbf)(_):(0,c.CBm)(_)&&"product"==F?"auto":(0,c.R7q)(_):"0px"},children:(0,k.jsxs)("video",{ref:j,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!N&&t.isPlaying),onLoadedData:()=>{p(!0),t.isPlaying&&j.current&&j.current.play(),(0,c.fwF)(_)&&t.source==C.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&j.current&&j.current.play(),setTimeout(()=>{!t.isPlaying&&j.current&&j.current.pause()},(0,y.n)()?1900:800))},onLoadedMetadata:()=>{j.current&&w&&w(j.current.duration)},poster:"banner"==t.source?t.url:L,children:[(0,k.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,k.jsx)("source",{src:(0,n.s)(t.url),type:"video/mp4"}),(0,k.jsx)("source",{src:(0,r.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==_&&!s&&h?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:L,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):!s&&!h&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,k.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:L,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{v(!0)}})}),(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)(m.A,{width:P,height:T,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var z=function(t){var e,i,o,n;return(0,v.I)(t.event)?(0,k.jsx)(f.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,l.useContext)(g.p).isIOS&&1==(0,u.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,k.jsx)(_,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(o=t.isVideoMuted)&&void 0!==o?o:null,source:t.source,posterImage:null===(n=t.event)||void 0===n?void 0:n.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,k.jsx)(E,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question,thumbnail_image:t.thumbnail_image})};var F=i(6123),T=i(8670),P=i(6532),N=i(4338);var L=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i,o]=(0,x.A)(),[n,r,l,a]=(0,p.A)(),d=.1*a;function s(){o(!i)}return!0===(0,c.GZ2)(e)?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",children:i?(0,k.jsx)(N.A,{sx:{color:"white",fontSize:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{s()}}):(0,k.jsx)(P.A,{sx:{color:"white",fontSize:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{s()}})})})},B=i(5398),A=i(9197),R=i(1876),D=i(7583),O=i(8522),W=i(5032);const M=`${W.i7`
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[260],{243:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var o=i(8670),n=i(5398),r=i(9197),l=i(6123),a=i(9887),d=i(1477),s=i(1214),c=i(9383);var u=i(4015),p=i(9193),h=i(3477),v=i(5547),x=i(5830),g=i(4234),m=i(9888),f=i(7156),w=i(481);function C(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,p=t.height;return(0,w.jsx)(o.az,{width:u,height:p,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[j]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[E]=[(0,v.Wc_)(_)],z=(0,v.Wc_)(_),[F,T]=(0,d.useState)(!1),[P,N]=(0,d.useState)({state:"initial"}),[L,B]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:A}=(0,d.useContext)(h.p),{whatmoreWidgetSourceDetails:R}=(0,d.useContext)(g.BR),D=t.event,O=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function M(t,e,i){j||S||(async()=>{(0,c.increaseEventProductAddToCartCount)(t,e,i)})()}(0,d.useEffect)(()=>{!async function(){var t,e,i,o;const n=await(0,x.M)(O,(0,v.NCy)(_),_);B({loaded:!0,client_product_id:O.client_product_id,variant_id:null===n||void 0===n||null===(t=n.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===n||void 0===n||null===(i=n.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price})}()},[]);const H=null!==(i=t.width)&&void 0!==i?i:"fit-content",Q=null!==(a=t.height)&&void 0!==a?a:"fit-content",V=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:H,height:Q},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(p.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:H,height:Q,minHeight:Q},onClick:t=>{T(!0),M(D,O,1),(0,m.registerClickEvent)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:R,event:D,productList:[O],ctaList:D.cta}),null!==A&&setTimeout(()=>{A()},2e3)},children:"initial"===P.state?(0,w.jsx)(o.az,{width:"100%",height:"100%",padding:V,boxShadow:"lg",borderRadius:"md",backgroundColor:z,borderColor:z,borderWidth:"1px",animation:F?u.jd:null,onAnimationEnd:()=>{T(!1)},children:(0,w.jsx)(n.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:O,baseFontSize:W,cartState:P,width:H,height:Q})})})}):(0,w.jsx)(w.Fragment,{})}},8258:function(t,e,i){i.r(e),i.d(e,{default:function(){return so}});var o=i(9252),n=i(4475),r=i(4018),l=i(1477),a=i(3401),d=i(416),s=i(9383),c=(i(5195),i(5760),i(5547)),u=i(1214),p=i(9263),h=i(5830),v=i(9128),x=i(9795),g=i(3477),m=i(9258),f=i(5129),w=i(7372),C=i(221),y=i(4040),b=(i(5497),i(4234));let j=null;const S=()=>(j||(j=i.e(561).then(i.bind(i,4390)).then(t=>t.default)),j);var k=i(481);function I(t){var e,i,o;const[a,d]=(0,x.A)(),[s,p]=(0,l.useState)(l.useRef()),h=t.posterImage,[v,g]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),f=(0,l.useRef)(null),[j,I]=(0,l.useState)(!1),[_,E]=(0,l.useState)(!0),[z,F]=(0,l.useState)(!1),T=t.timeUpdateCallback,{whatmoreIsPreviewMode:P}=(0,l.useContext)(b.BR),N=null!==(e=t.isVideoMuted)&&void 0!==e?e:a,L=null!==(i=t.height)&&void 0!==i?i:"100%",B=null!==(o=t.width)&&void 0!==o?o:"100%",A=(0,u.Xd)("whatmoreShopId");(0,l.useEffect)(()=>{if(!s.current||!t.url||!v)return;const e=s.current.children[0];if(!e)return;let i=!0;const o="banner"===t.source?t.url:(0,n.s)(t.url),l=o&&(o.includes(".m3u8")||o.includes("m3u8")),a=o&&o.toLowerCase().includes(".mp4");f.current&&(f.current.destroy(),f.current=null,I(!1));const d="undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported;return l&&!a&&d?S().then(n=>{if(!i||!s.current)return;if(!n.isSupported())return void I(!0);const l=new n({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60,capLevelToPlayerSize:!0,startLevel:-1,autoStartLoad:!0});f.current=l,l.loadSource(o),l.attachMedia(e),l.on(n.Events.MANIFEST_PARSED,()=>{i&&I(!0)}),l.on(n.Events.ERROR,(o,a)=>{if(a.fatal&&i)switch(console.error("HLS.js error:",a),a.type){case n.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),l.startLoad();break;case n.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),l.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback");const i=(0,r.Cr)(t.url);e.src=i,I(!0)}})}).catch(t=>{i&&(console.error("Failed to load HLS.js, falling back to native playback",t),I(!0))}):l&&!d?(console.log("Using native HLS support"),I(!0)):I(!0),()=>{i=!1,f.current&&(f.current.destroy(),f.current=null)}},[t.url,t.source,v,s.current]),(0,l.useLayoutEffect)(()=>{if(s.current&&v)if(0==s.current.children.length){const i=(0,r.Cr)(t.url),o="banner"===t.source?t.url:(0,n.s)(t.url);(e=(0,w.Z4)(s.current,o,N||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",()=>{E(!1)}),T&&e.addEventListener("timeupdate",t=>{if(!e)return;const i=e.currentTime,o=e.duration;T(Number.isFinite(i)?i:0,Number.isFinite(o)?o:0)})}else{var e;(e=s.current.children[0]).muted=N||!t.isPlaying;const i="banner"===t.source?t.url:(0,n.s)(t.url),o=i&&(i.includes(".m3u8")||i.includes("m3u8"));if(t.isPlaying&&(!o||j)){const t=()=>{e.paused&&e.play().catch(t=>{"NotAllowedError"!==t.name?console.error("Play error:",t):console.warn("Play blocked by iOS autoplay policy:",t.message)})};!1===_||o?setTimeout(t,100):t()}else e.pause(),(0,c.fwF)(A)&&t.source==C.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.paused&&e.play().catch(()=>{}),setTimeout(()=>{!t.isPlaying&&e.pause()},(0,y.n)()?1900:800))}},[N,t.isPlaying,v,_,j]),(0,l.useLayoutEffect)(()=>()=>{f.current&&(f.current.destroy(),f.current=null),s.current&&0!=s.current.children.length&&(0,w.rq)(s.current)},[]);const R=(0,u.Xd)("whatmoreLandingLocationType");return(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:B,height:L,overflow:"hidden",backgroundColor:P?(0,c.KVz)(A):(0,c.QSX)(A),filter:t.showQuestion?"blur(24px)":""},children:[(0,k.jsx)("div",{ref:s,style:{width:_?"0px":"100%",height:_?"0px":P?(0,c.tbf)(A):(0,c.CBm)(A)&&"product"==R?"auto":(0,c.R7q)(A)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==A&&_&&z?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):_&&!z&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,k.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:h,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{F(!0)}})}),(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)(m.A,{width:B,height:L,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var _=function(t){var e;return(0,k.jsx)(I,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function E(t){var e,i,o;const[a,d]=(0,x.A)(),[s,p]=(0,l.useState)(!1),[h,v]=(0,l.useState)(!1),[g,f]=(0,l.useState)(!1),w=t.setDuration,j=(0,l.useRef)(null),I=(0,l.useRef)(null),_=(0,u.Xd)("whatmoreShopId"),E=t.timeUpdateCallback,{whatmoreIsPreviewMode:z}=(0,l.useContext)(b.BR),F=(0,u.Xd)("whatmoreLandingLocationType"),T=null!==(e=t.height)&&void 0!==e?e:"100%",P=null!==(i=t.width)&&void 0!==i?i:"100%",N=null!==(o=t.isVideoMuted)&&void 0!==o?o:a,L=null===t||void 0===t?void 0:t.posterImage;return(0,l.useEffect)(()=>{if(!j.current||!t.url)return;let e=!0;const i=j.current,o="banner"==t.source?t.url:(0,n.s)(t.url),l=o&&(o.includes(".m3u8")||o.includes("m3u8")),a=o&&o.toLowerCase().includes(".mp4");I.current&&(I.current.destroy(),I.current=null,f(!1));const d="undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported;return l&&!a&&d?S().then(n=>{if(!e||!j.current)return;if(!n.isSupported())return i.src=(0,r.Cr)(t.url),void f(!0);const l=new n({enableWorker:!0,lowLatencyMode:!0,maxBufferLength:30,maxMaxBufferLength:60});I.current=l,l.loadSource(o),l.attachMedia(i),l.on(n.Events.MANIFEST_PARSED,()=>{e&&(f(!0),t.isPlaying&&i.play().catch(t=>console.error("HLS playback error:",t)))}),l.on(n.Events.ERROR,(t,r)=>{if(r.fatal&&e)switch(r.type){case n.ErrorTypes.NETWORK_ERROR:console.log("HLS Network error, trying to recover..."),l.startLoad();break;case n.ErrorTypes.MEDIA_ERROR:console.log("HLS Media error, trying to recover..."),l.recoverMediaError();break;default:console.log("HLS Fatal error, falling back to native playback"),i.src=o,f(!0)}})}).catch(n=>{e&&(console.error("Failed to load HLS.js, falling back to native playback",n),i.src=a?o:(0,r.Cr)(t.url),f(!0))}):(!l||!a&&d||(i.src=a?o:(0,r.Cr)(t.url)),f(!0)),()=>{e=!1,I.current&&(I.current.destroy(),I.current=null)}},[t.url,t.source]),(0,l.useEffect)(()=>{const e=j.current;if(e&&g&&(t.isPlaying?e.paused&&e.play().catch(t=>console.error("Play error:",t)):e.pause(),E)){const t=()=>{if(!j.current)return;const t=j.current.currentTime,e=j.current.duration;E(Number.isFinite(t)?t:0,Number.isFinite(e)?e:0)};return e.addEventListener("timeupdate",t),()=>e.removeEventListener("timeupdate",t)}},[t.isPlaying,t.url,g]),(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:P,height:T,overflow:"hidden",backgroundColor:z?(0,c.KVz)(_):(0,c.QSX)(_),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,k.jsx)("div",{style:{width:s?"100%":"0px",height:s?z?(0,c.tbf)(_):(0,c.CBm)(_)&&"product"==F?"auto":(0,c.R7q)(_):"0px"},children:(0,k.jsxs)("video",{ref:j,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!N&&t.isPlaying),onLoadedData:()=>{p(!0),t.isPlaying&&j.current&&j.current.play(),(0,c.fwF)(_)&&t.source==C.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&j.current&&j.current.play(),setTimeout(()=>{!t.isPlaying&&j.current&&j.current.pause()},(0,y.n)()?1900:800))},onLoadedMetadata:()=>{j.current&&w&&w(j.current.duration)},poster:"banner"==t.source?t.url:L,children:[(0,k.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,k.jsx)("source",{src:(0,n.s)(t.url),type:"video/mp4"}),(0,k.jsx)("source",{src:(0,r.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==_&&!s&&h?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:L,style:{height:"100%",width:"100%",objectFit:"cover"}})})})}):!s&&!h&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,k.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,k.jsx)("img",{src:L,style:{height:"100%",width:"100%",objectFit:"cover"},onLoad:()=>{v(!0)}})}),(0,k.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,k.jsx)(m.A,{width:P,height:T,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var z=function(t){var e,i,o,n;return(0,v.I)(t.event)?(0,k.jsx)(f.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,l.useContext)(g.p).isIOS&&1==(0,u.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,k.jsx)(_,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(o=t.isVideoMuted)&&void 0!==o?o:null,source:t.source,posterImage:null===(n=t.event)||void 0===n?void 0:n.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,k.jsx)(E,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question,thumbnail_image:t.thumbnail_image})};var F=i(6123),T=i(8670),P=i(6532),N=i(4338);var L=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i,o]=(0,x.A)(),[n,r,l,a]=(0,p.A)(),d=.1*a;function s(){o(!i)}return!0===(0,c.GZ2)(e)?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",children:i?(0,k.jsx)(N.A,{sx:{color:"white",fontSize:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{s()}}):(0,k.jsx)(P.A,{sx:{color:"white",fontSize:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{s()}})})})},B=i(5398),A=i(9197),R=i(1876),D=i(7583),O=i(8522),W=i(5032);const M=`${W.i7`
2
2
  0%,10%,15% {
3
3
  opacity: 0;
4
4
  }
@@ -65,12 +65,12 @@
65
65
  100% {
66
66
  transform: translateY(0%) rotate(0deg);
67
67
  }
68
- `} infinite 1.5s linear`;return(0,k.jsx)(T.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,k.jsxs)(B.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,k.jsx)(F.o,{animation:"vertical"===d?v:x,children:"vertical"===d?(0,k.jsx)(q.A,{sx:{color:"white !important",fontSize:c,filter:"drop-shadow(0 0 20px black);"}}):(0,k.jsx)(K.A,{sx:{color:"white !important",fontSize:c,filter:"drop-shadow(0 0 20px black);"}})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{textShadow:"dark-lg",fontSize:h+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[s])||void 0===i?void 0:i.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var J=function(t){const[e,i]=(0,u.QN)("isFirstIndicatorRenderDone"),[o]=(0,u.QN)("indicatorRenderSeconds"),n=o,r=t.swipeUp;return(0,l.useEffect)(()=>{const t=setTimeout(()=>{i(!0)},3e3+1e3*n);return()=>{clearTimeout(t)}},[]),e?null:(0,k.jsx)(Z,{showForSeconds:.8*n,delayInSeconds:3,swipeUp:r})},tt=i(3299),et=i(7462),it=i(4015),ot=i(7066);const nt="15px";var rt=i(9888),lt=i(7156);var at=function(t){var e,i,o,n;const[r]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[h]=(0,u.QN)("whatmorePrimaryFont"),[v]=(0,u.QN)("whatmoreShopId"),[x]=(0,u.QN)("websiteLanguage"),[g,m,f,w]=(0,p.A)(),[C,y]=(0,l.useState)(!1),j=t.product,S=t.event,{whatmoreWidgetSourceDetails:I}=(0,l.useContext)(b.BR),_=.1*f,E=(null!==(e=null===S||void 0===S||null===(i=S.products)||void 0===i?void 0:i.length)&&void 0!==e?e:0)<=1&&(!(null!==S&&void 0!==S&&S.cta)||0===S.cta.length),z=(E?w:w/1.4)*(E?.99:.92),P=.05*w;return(0,k.jsx)(B.B,{direction:"row",height:_,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,k.jsx)(B.B,{direction:"column",width:"fit-content",height:_,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,k.jsx)(T.az,{width:z+"px",height:"fit-content",boxSizing:"border-box",padding:"6px",marginTop:nt,backgroundColor:d,borderRadius:"5px",animation:C?it.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,c.qw1)(v),onClick:()=>{y(!0),function(t,e){r||a||(async()=>{(0,s.increaseEventProductClickCount)(t,e),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:I,event:t,productList:[e],ctaList:t.cta})})()}(S,j),window.location.href=function(t){return(0,c.BLb)(v)?t.product_link+"?"+(0,c.VCz)(v)+"&"+(0,c.Spk)(v)+"&"+(0,c.$lz)(v):t.product_link}(j)},_hover:{backgroundColor:(0,ot.YU)(d,8)},cursor:"pointer",children:(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*P+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:h+" !important",color:"white !important"},children:t.nonProductRedirect?(0,k.jsxs)(k.Fragment,{children:[null!==(o=(0,G._q)(x,"Visit Page"))&&void 0!==o?o:"Visit Page","\xa0",(0,k.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",transform:"translateY(-1px)"},children:"\u2197"})]}):null!==(n=(0,G._q)(x,(0,c.Qed)(v)))&&void 0!==n?n:(0,c.Qed)(v)})})})})})},dt=i(501),st=i(4833),ct=i(4867),ut=i(4050),pt=i(4363),ht=i(3604),vt=(i(8584),i(9193));function xt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return(0,k.jsxs)(T.az,{display:"flex",width:v,height:x,padding:"2x",boxShadow:"lg",animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",backgroundColor:m?(0,ot.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),s(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function gt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height;return(0,k.jsx)(T.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(a)?n:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,k.jsx)(F.o,{maxWidth:"90%",children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(a)?(0,c.KPq)(a):null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.KPq)(a),"\xa0"]})})})})}function mt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,k.jsx)(T.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ft(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,s=t.height,p=t.onCartIconClick;return(0,k.jsx)(T.az,{width:d,height:s,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{p()},children:(0,c.DiI)(n)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var wt=function(t){var e,i,o,n,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,k.jsx)(mt,{baseFontSize:s,width:m,height:f}):"init"==p?0==h?(0,k.jsx)(gt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d}):c?(0,k.jsx)(ft,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,k.jsx)(gt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d}):(0,k.jsx)(xt,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===G.m4||void 0===G.m4||null===(a=G.m4[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})},Ct=i(2090),yt=i(4540),bt=i(738);var jt=function(t){var e,i;const o=t.productVariantOptions,n=null!==(e=t.width)&&void 0!==e?e:"100%",r=t.maxHeight,a=null!==(i=t.baseFontSize)&&void 0!==i?i:10,d=t.onOptionSelected,s=t.data,[c]=(0,u.QN)("whatmorePrimaryFont"),[p]=(0,u.QN)("websiteLanguage"),h=(0,l.useRef)(null);function v(t){if(!t||0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[x,g]=(0,l.useState)([v(o[0]),v(o[1]),v(o[2])]);function m(t,e){if(2==e)g([x[0],x[1],t]);else if(1==e){var i,o;g([x[0],t,null===s||void 0===s||null===(i=s.variants)||void 0===i||null===(o=i.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===o?void 0:o.option3])}else{var n,r,l,a,d,c;const e=null===s||void 0===s||null===(n=s.variants)||void 0===n||null===(r=n.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;g([t,null===s||void 0===s||null===(l=s.variants)||void 0===l||null===(a=l.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===a?void 0:a.option2,null===s||void 0===s||null===(d=s.variants)||void 0===d||null===(c=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===c?void 0:c.option3])}}(0,l.useEffect)(()=>{d(x)},[x]);const f=Math.max(10,.8*a),w=Math.max(11,.92*a);return(0,k.jsx)("div",{ref:h,style:{width:n,maxHeight:r,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",display:"flex",flexDirection:"column",gap:"12px"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:o.map((e,i)=>{var o,n,r,l;if(!e||0==e.length||"mlveda_country"==(null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.type))return null;const a=e.every(e=>{var i,o,n,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(o=i.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===n?void 0:n.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,k.jsxs)("div",{style:{width:"100%"},children:[(0,k.jsx)("div",{style:{fontFamily:c,fontSize:f+"px",letterSpacing:"1.6px",textTransform:"uppercase",color:"#9a9a9a",fontWeight:400,marginBottom:"6px"},children:null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[p])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==n?n:e[0].type}),(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:e.map((e,o)=>{if(!(0==i||!(null!==s&&void 0!==s&&s.variants)||s.variants.find(t=>t[`option${i}`]==(null===x||void 0===x?void 0:x[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option))))return null;const n=e.option===x[i],r=e.available;var l,d,u,p,h,v,g;return a?(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{width:"52px",height:"52px",borderRadius:"50%",overflow:"hidden",cursor:r?"pointer":"not-allowed",border:n?"2px solid #1a1a1a":"1px solid #e0e0e0",padding:n?"2px":"0",boxSizing:"border-box",opacity:r?1:.4,filter:r?"none":"grayscale(100%)",transition:"border 0.15s ease"},...r?(0,bt.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:(0,k.jsx)("img",{alt:e.option,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%",display:"block"},src:(0,yt.b)(null!==(l=null===t||void 0===t||null===(d=t.finalArr)||void 0===d||null===(u=d.finalArr)||void 0===u||null===(p=u.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===p?void 0:p.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(v=h.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})},o):(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{fontFamily:c,fontSize:w+"px",lineHeight:"1",padding:"7px 12px",border:n?"1px solid #1a1a1a":"1px solid #dcdcdc",backgroundColor:n?"#1a1a1a":"transparent",color:n?"#ffffff":r?"#1a1a1a":"#c4c4c4",textDecoration:r?"none":"line-through",cursor:r?"pointer":"not-allowed",borderRadius:"2px",transition:"border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease",whiteSpace:"nowrap",userSelect:"none"},...r?(0,bt.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:e.option},o)})})]},i)})})},St=i(2146),kt=i(7900),It=i(3508);var _t=function(t){var e,i,o,n,r,a,d,v;const[x]=(0,u.QN)("isInDesignMode"),[g]=(0,u.QN)("isDemoBrand"),[m]=(0,u.QN)("whatmoreSecondaryColor"),f=(0,u.Xd)("whatmoreSecondaryColorShade900"),[w]=(0,u.QN)("whatmorePrimaryFont"),[C]=(0,u.QN)("whatmoreShopId"),[y,j,S,I]=(0,p.A)(),[_,E]=(0,l.useState)(!1),[z,F]=(0,l.useState)(t.product),P=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,l.useContext)(b.BR),[L,R]=(0,l.useState)(null),[O,W]=(0,l.useState)(parseFloat(z.price)),[M,H]=(0,l.useState)(parseFloat(z.compare_price)),[Q,V]=(0,l.useState)(null===z||void 0===z?void 0:z.title),[X,U]=(0,l.useState)(z.currency),[$,Y]=(0,l.useState)(null),q=t.event,K=t.productClickHandler,{whatmoreIsPreviewMode:G}=(0,l.useContext)(b.BR),[Z,J]=(0,l.useState)(null),[tt,et]=(0,l.useState)(!1),[ot,at]=(0,l.useState)(!1),[ut,pt,xt,gt,mt,ft,Ct,bt]=t.useAddToCartStatesInstance,_t=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:ut.cart_count;if((0,l.useEffect)(()=>{(0,c.w4b)(C)?(0,St.ck)(z,(0,c.NCy)(C),C).then(t=>{F(t),W(parseFloat(t.price)),H(parseFloat(t.compare_price)),U(t.currency),et(!0)}).catch(t=>{et(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(z,(0,c.NCy)(C),C);Y(l),W((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),H((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)}catch(l){et(!0)}})(),!(0,c.E8r)(C)||!("in_stock"in q)||null!==q&&void 0!==q&&q.in_stock||xt("errored")},[]),(0,l.useEffect)(()=>{var t,e;const i=null!=$?null===$||void 0===$||null===(t=$.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===$||void 0===$||null===(e=$.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===$||void 0===$||null===(r=$.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:i,finalArr:o,finalArrExternal:n})},[$]),!tt)return(0,k.jsx)(k.Fragment,{});var Et=.68*I,zt=.55*Et,Ft=.4*Et,Tt=Et*(.55-.4),Pt=Et+"px",Nt=Ft+"px",Lt=Tt+"px",Bt=.12*Ft,At="12px";const Rt=(0,c.XQu)(C);function Dt(){window.location.href=function(t){return(0,c.BLb)(C)?t.product_link+"?"+(0,c.VCz)(C)+"&"+(0,c.Spk)(C)+"&"+(0,c.$lz)(C):t.product_link}(z)}function Ot(t,e){x||g||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==C?Dt():K(e),E(!0)}const Wt=(null===N||void 0===N?void 0:N.landingLocationType)||"index",Mt=(null===N||void 0===N?void 0:N.templateType)||"template-a",Ht=(0,kt.Wd)(Wt)+(0,kt.gf)(Mt)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id),Qt=(0,c.HKH)(C)&&t.activeProductsCount>1&&"init"==ut.state&&0==ut.cart_count;return(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:(0,c.qw1)(C),width:Pt,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{Ot(q,z)},backgroundColor:"rgba(255, 255, 255, 0.78)",animation:_?it.jd:it.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,c.YcK)(C),borderColor:(0,c.Fwt)(C)},children:[(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",paddingX:At,paddingTop:At,children:[(0,k.jsx)(T.az,{flexShrink:0,height:Nt,width:Nt,children:(0,k.jsx)(D._,{className:"product-tile-image",width:Nt,height:Nt,src:(0,yt.b)(null!==(e=null!==(i=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===L||void 0===L?void 0:L[null===Z||void 0===Z?void 0:Z.position])))||void 0===n?void 0:n.src)&&void 0!==i?i:null===Z||void 0===Z||null===(r=Z.finalArrExternal)||void 0===r||null===(a=r.find(t=>(null===t||void 0===t?void 0:t.color)==(null===L||void 0===L?void 0:L[null===Z||void 0===Z?void 0:Z.position])))||void 0===a?void 0:a.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(C)+" !important"}})}),(0,k.jsxs)(T.az,{height:Nt,flex:"1",minWidth:"0",children:[(0,k.jsxs)(B.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,c.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Bt*(0,c.rh$)(C)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",w,"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"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,st.v)("58396311733"===C?(0,It.$)(Q):Q,"prod-tile")}),(0,c.Nzx)(C)?(0,k.jsxs)(B.B,{className:"whatmore-product-atc-price",direction:(0,c.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[tt&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*Bt*(0,c.rh$)(C)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,c.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,St.Sb)("70756368633"===C?parseFloat(null===q||void 0===q||null===(d=q.products)||void 0===d||null===(v=d[0])||void 0===v?void 0:v.price):null!==O&&void 0!==O?O:null===z||void 0===z?void 0:z.price,"",C,X)," \xa0"]}),(0,ct.P)(O,M)&&tt?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*Bt*(0,c.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,c.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===O?"":"line-through !important"},children:[" ",(0,St.Sb)(null!==M&&void 0!==M?M:null===z||void 0===z?void 0:z.compare_price,"",C,X)]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(A.E,{fontSize:.82*Bt*(0,c.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:w+" !important",color:(0,c.Br1)(C)+" !important"},children:G?(0,c.p6A)(C):(0,c.i2h)(C)})]}),(0,c.UlM)(C)?(0,k.jsx)(B.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,k.jsx)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:f,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.SK$)(C)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:m},sx:{bg:m},children:(0,k.jsx)(A.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,k.jsx)(dt.A,{sx:{color:m,fontSize:1.3*Bt+"px"}})}),(0,k.jsx)(T.az,{width:"2px"})]})}):(0,k.jsx)(k.Fragment,{})]})]}),"awaitingVariantSelection"==ut.state&&null!=gt?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",paddingX:At,marginTop:"8px",marginBottom:"8px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",event:q,product:z,finalArr:Z,data:$,productVariantOptions:gt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){R(t);const e=Ct(t);e&&(W(e.price/100),H(e.compare_price/100),e.title.includes(" ")&&V(e.title))}(t)}})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,k.jsx)(B.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,k.jsx)(wt,{baseFontSize:Qt?.2*Tt:.3*Tt,setProductVariantTitle:V,product:z,cartState:ut.state,cartCount:_t,updateCartState:xt,onClickAtc:t=>{"72603631788"!==C&&"5220302897"!==C||"init"!=ut.state?"init"==ut.state?(mt(Ht),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:[z],ctaList:q.cta})):"awaitingVariantSelection"==ut.state&&(ft(L,Ht),V(null===z||void 0===z?void 0:z.title)):Ot(q,z)},onCartIconClick:()=>{bt()}})}),Qt&&(0,k.jsx)(B.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,k.jsx)(vt.$,{disabled:ot,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${w} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{at(!0),pt(Ht),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:q.products,ctaList:q.cta}),at(!1)}catch(e){console.error("Failed to add items:",e),at(!1)}},children:ot?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,k.jsx)(A.E,{fontFamily:w,children:"ADD ALL ITEMS"})})})]})]})},Et=i(798),zt=i(3736);var Ft=function(t){var e,i,o,n,r;const[l]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("whatmorePrimaryFont"),[h]=(0,u.QN)("whatmoreShopId"),[v]=(0,u.QN)("websiteLanguage"),x=t.event,g=t.product,m=null!==(e=t.baseFontSize)&&void 0!==e?e:10,f=null!==(i=t.width)&&void 0!==i?i:"fit-content",w=null!==(o=t.height)&&void 0!==o?o:"fit-content";return(0,k.jsx)(zt.N,{href:g.product_link,color:d,onClick:()=>{!function(t,e){l||a||(async()=>{(0,s.increaseEventProductBuyNowCount)(t,e)})()}(x,g)},children:(0,k.jsx)(T.az,{width:f,height:w,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{lineHeight:"100%",fontSize:1.4*m,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:d+" !important"},children:"MORE INFO"!=(0,c.KnH)(h)?(0,c.KnH)(h):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[v])||void 0===r?void 0:r.more_info)&&void 0!==n?n:(0,c.KnH)(h)})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(dt.A,{sx:{color:d,fontSize:1.4*m}})})]})})})},Tt=i(243);function Pt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d]=(0,u.QN)("websiteLanguage"),[s,p]=(0,l.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,x=t.width,g=t.height,m=t.title,f="5032640601"===a||"53425012925"===a,w=f?null!==(i=t.borderRadius)&&void 0!==i?i:"md":void 0;return(0,k.jsx)(T.az,{width:x,height:g,padding:"0",boxShadow:"lg",borderRadius:w,backgroundColor:"#000000"==(0,c.Wc_)(a)?n:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),p(!0)},animation:s?it.jd:null,onAnimationEnd:()=>{p(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:f?"8px":"2px",paddingX:f?"16px":void 0,children:(0,k.jsxs)(A.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*h+"px",fontWeight:"semibold",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",null!==(o=(0,G._q)(d,m))&&void 0!==o?o:m,"\xa0"]})})})}var Nt=function(t){var e,i,o;const[n]=(0,u.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",p=null!==(o=t.height)&&void 0!==o?o:"100%";return(0,k.jsx)(Pt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:p,borderRadius:t.borderRadius,title:(0,c.Qed)(n)})};var Lt=function(t){var e,i,o,n,r;const[a]=(0,u.QN)("isInDesignMode"),[d]=(0,u.QN)("isDemoBrand"),[v]=(0,u.QN)("whatmorePrimaryFont"),[x]=(0,u.QN)("whatmoreShopId"),[g,m,f,w]=(0,p.A)(),[C,y]=(0,l.useState)(!1),[j,S]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,l.useContext)(b.BR),[_,E]=(0,l.useState)(null),[z,P,N,L,R,O,W,M]=t.useAddToCartStatesInstance,[H,Q]=(0,l.useState)(parseFloat(j.price)),[V,X]=(0,l.useState)(parseFloat(j.compare_price)),[U,$]=(0,l.useState)(j.currency),[Y,q]=(0,l.useState)(!1),K=t.productCartCounts&&t.productCartCounts[j.product_id]?t.productCartCounts[j.product_id]:z.cart_count,G=t.event,Z=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,tt=(null===I||void 0===I?void 0:I.landingLocationType)||"index",et=(null===I||void 0===I?void 0:I.templateType)||"template-a",ot=(0,kt.Wd)(tt)+(0,kt.gf)(et)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);(0,l.useEffect)(()=>{(0,c.w4b)(x)?(0,St.ck)(j,(0,c.NCy)(x),x).then(t=>{S(t),Q(parseFloat(t.price)),X(parseFloat(t.compare_price)),$(t.currency)}):(async()=>{var t,e,i,o,n,r;const l=await(0,h.M)(j,(0,c.NCy)(x),x);Q((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),X((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),q(!0)})()},[]);var at=w*J,dt=.3*at,ut=at+"px",pt=.7*dt,ht=.9*pt,vt=.12*dt;const xt=(0,c.XQu)(x);function gt(t,e){a||d||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),Z(e),y(!0)}return(0,k.jsx)(B.B,{direction:"row",width:ut,height:"fit-content",justifyContent:"center",children:(0,k.jsx)(T.az,{marginTop:nt,marginBottom:(0,c.qw1)(x),width:ut,onClick:t=>{},animation:C?it.jd:null,borderRadius:"lg",onAnimationEnd:()=>{y(!1)},children:(0,k.jsxs)(B.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{gt(G,j)},children:[(0,k.jsx)(T.az,{height:pt+"px",width:pt+"px",children:(0,k.jsx)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,k.jsx)(T.az,{height:ht+"px",width:ht+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,k.jsx)(D._,{width:ht+"px",height:ht+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,k.jsx)(T.az,{height:pt+"px",width:at-pt+"px",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:"5032640601"===x||"53425012925"===x?2:1,fontSize:1.2*vt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:v+" !important",color:"white !important"},children:(0,st.v)(j.title.toString())}),(0,k.jsxs)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.Nzx)(x)?(0,k.jsxs)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[Y&&(0,k.jsx)(A.E,{noOfLines:1,fontSize:1*vt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"white !important"},children:" "+(0,St.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(i=G.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price):null!==H&&void 0!==H?H:null===j||void 0===j?void 0:j.price,"",x,U)+("5032640601"===x?" USD":"")}),(0,k.jsx)(F.o,{children:(0,ct.P)(j.price,j.compare_price)&&Y?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.8*vt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,St.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(n=G.products)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_price):null!==V&&void 0!==V?V:null===j||void 0===j?void 0:j.compare_price,"",x,U)+("5032640601"===x?" USD":"")]}):(0,k.jsx)(k.Fragment,{})})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(F.o,{children:(0,k.jsx)(Et.A,{storeId:x,productId:j.client_product_id,productLink:j.product_link,fontSize:1*vt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==z.state&&null!=L?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",marginTop:.1*dt+"px",marginBottom:.1*dt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:dt*xt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:ut,height:"fit-content",event:G,product:j,productVariantOptions:L,baseFontSize:1*vt,onOptionSelected:t=>{!function(t){E(t);const e=W(t);e&&(Q(e.price/100),X(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,k.jsx)(T.az,{width:"100%",height:"100%",children:(0,k.jsx)(Ft,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%"})}),(0,k.jsx)(T.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.ZzM)(x)?(0,k.jsx)(Nt,{baseFontSize:.8*vt,event:G,product:j,borderRadius:"md",onShopNowClick:t=>{gt(G,j)}}):(0,k.jsx)(k.Fragment,{children:"form"===(0,c.nWM)(x)?(0,k.jsx)(Tt.default,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,k.jsx)(wt,{baseFontSize:.8*vt,event:G,product:j,cartState:z.state,cartCount:K,borderRadius:"md",onClickAtc:t=>{"72603631788"!==x&&"5220302897"!==x||"init"!=z.state?"init"==z.state?(R(ot),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:G,productList:[j],ctaList:G.cta})):"awaitingVariantSelection"==z.state&&O(_,ot):gt(G,j)},onCartIconClick:()=>{M()}})})})]})]})})})};var Bt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreSecondaryColor"),n=(0,u.Xd)("whatmoreSecondaryColorShade900"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,v,x,g]=(0,p.A)(),[m,f]=(0,l.useState)(!1),[w,C]=(0,l.useState)(t.product),y=(0,u.Xd)("whatmoreUITheme"),[j,S]=(0,l.useState)(!1),[I,_]=(0,l.useState)(parseFloat(w.price)),[E,z]=(0,l.useState)(parseFloat(w.compare_price)),[F,P]=(0,l.useState)(w.currency),[N,L]=(0,l.useState)(!0),R=t.event,[O,W]=(0,l.useState)();if((0,l.useEffect)(()=>{if("6573064236"===a&&null!==w&&void 0!==w&&w.product_link){const t=Math.ceil(parseFloat(w.price)),e=Math.ceil(parseFloat(w.compare_price));return _(t),z(e),void S(!0)}(0,c.w4b)(a)?(0,St.ck)(w,(0,c.NCy)(a),a).then(t=>{C(t),_(parseFloat(t.price)),z(parseFloat(t.compare_price)),P(t.currency),S(!0)}).catch(t=>S(!0)):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(w,(0,c.NCy)(a),a);W(l),_((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),z((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),S(!0)}catch(l){S(!0)}})()},[]),!j)return(0,k.jsx)(k.Fragment,{});var M=.68*g,H=.4*M,Q=M+"px",V=H+"px",X=M*(.55-.4)+"px",U=.12*H;(0,c.XQu)(a);const{whatmoreWidgetSourceDetails:Y}=(0,l.useContext)(b.BR),q=null!==I&&void 0!==I?I:null===w||void 0===w?void 0:w.price,K="STR0IIHZXKW"!==a&&"STRU4RO77D5"!==a||q?" "+(0,St.Sb)(q,"",a,F)+("5032640601"===a?" USD":"")+" ":"Price on request";function G(t){return(0,c.BLb)(a)?t.product_link+"?"+(0,c.VCz)(a)+"&"+(0,c.Spk)(a)+"&"+(0,c.$lz)(a):t.product_link}function Z(t,o){e||i||(async()=>{(0,s.increaseEventProductClickCount)(t,o),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:Y,event:t,productList:[o],ctaList:t.cta})})(),f(!0)}return N?(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:(0,c.qw1)(a),width:Q,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{Z(R,w),window.location.href=G(w)},backgroundColor:(0,ot.YU)("#ffffff",(0,c.p2R)(a)),animation:m?it.jd:it.so,borderRadius:"round"==y?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,c.YcK)(a),borderColor:(0,c.Fwt)(a)},children:[(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,k.jsx)(T.az,{height:V,width:V,children:(0,k.jsx)(D._,{width:V,height:V,src:(0,yt.b)(w.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(a)+" !important"}})}),(0,k.jsxs)(T.az,{height:V,width:M-H+"px",children:[(0,k.jsxs)(B.B,{direction:"column",justifyContent:(0,c.UlM)(a)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,k.jsx)(A.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:r+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*U+"px !important"},children:(0,st.v)(null==w.title?"":w.title.toString(),"prod-tile")}),(0,c.Nzx)(a)?(0,k.jsxs)(B.B,{className:"whatmore-product-shopnow-price",direction:(0,c.vw2)(a)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[j&&(0,k.jsx)(A.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:(0,c.uoB)(a)+" !important",margin:"0px !important"},children:K}),(0,ct.P)(I,E)&&j?(0,k.jsxs)(A.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:(0,c.gld)(a)+" !important",margin:"0px !important"},children:[" ",(0,St.Sb)(null!==E&&void 0!==E?E:null===w||void 0===w?void 0:w.compare_price,"",a,F)+("5032640601"===a?" USD":"")]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),""!=(0,c.rsz)(a)&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*U+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.ogW)(a)+" !important",color:(0,c._zx)(a)+" !important",margin:"0px !important"},children:["\xa0",(0,c.rsz)(a)," \xa0"]})]}),(0,c.UlM)(a)?(0,k.jsx)(B.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,k.jsx)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:n,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==a||"STRNUBH0VYQ"==a||"STRAPB3KXSR"==a?(0,k.jsx)($.A,{sx:{boxShadow:3,fontSize:1.3*U,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),L(!1)}}):(0,k.jsx)(dt.A,{sx:{color:o,fontSize:1.3*U+"px"}})}),(0,k.jsx)(T.az,{width:"2px"})]})}):(0,k.jsx)(k.Fragment,{})]})]}),(0,c.Woi)(a)&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:X,justifyContent:"center",alignItems:"center",children:(0,k.jsx)(Nt,{baseFontSize:.8*U,event:R,product:w,borderRadius:"md",onShopNowClick:t=>{Z(R,w),window.location.href=G(w)}})})]}):(0,k.jsx)(k.Fragment,{})};function At(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),[r,a]=(0,l.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,p=t.width,h=t.height,v=t.title,x=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,k.jsx)(Rt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:h}):(0,k.jsxs)(T.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:r?it.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==n?"Annuler":"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",backgroundColor:x?(0,ot.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(n)+" !important"},children:["\xa0",v,"\xa0"]}),x?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function Rt(t){const[e]=(0,u.QN)("whatmoreSecondaryColor"),[i]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),[n,r]=(0,l.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,k.jsx)(B.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,k.jsx)(T.az,{className:"whatmore-add-to-cart-initial-button",width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),r(!0)},animation:n?it.jd:null,onAnimationEnd:()=>{r(!1)},cursor:"pointer",zIndex:"1000",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.Hfu)(o)} !important`},children:(0,c.KPq)(o)})})})})})}function Dt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,k.jsx)(T.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.2*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ot(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,k.jsx)(T.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=n&&"55194878152"!=n&&"12181504100"!=n?(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}}):(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Wt=function(t){var e,i,o,n;const[r]=(0,u.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,p=t.cartCount,h=t.onClickAtc,v=t.onCartIconClick;function x(){h()}const g=null!==(o=t.width)&&void 0!==o?o:"100%",m=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==c?(0,k.jsx)(Dt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==p?(0,k.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,k.jsx)(Ot,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:p,width:g,height:m,onCartIconClick:v}):(0,k.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,k.jsx)(At,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Mt=function(t){var e,i,o,n,r,a;const[d]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x]=(0,u.QN)("whatmorePrimaryFont"),[g]=(0,u.QN)("whatmoreShopId"),[m,f,w,C]=(0,p.A)(),[y,j]=(0,l.useState)(!1),[S,I]=(0,l.useState)(t.product),_=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E}=(0,l.useContext)(b.BR),[z,F]=(0,l.useState)(null),[P,N]=(0,l.useState)(parseFloat(S.price)),[L,R]=(0,l.useState)(parseFloat(S.compare_price)),[O,W]=(0,l.useState)(S.currency),[M,H]=(0,l.useState)(null),Q=t.event,V=t.productClickHandler,[X,U]=(0,l.useState)(null),[$,Y]=(0,l.useState)(!1),[q,K,G,Z,J,tt,et,at]=t.useAddToCartStatesInstance,dt=t.productCartCounts&&t.productCartCounts[S.product_id]?t.productCartCounts[S.product_id]:q.cart_count,ut=(null===E||void 0===E?void 0:E.landingLocationType)||"index",pt=(null===E||void 0===E?void 0:E.templateType)||"template-a",ht=(0,kt.Wd)(ut)+(0,kt.gf)(pt)+"_"+(null===Q||void 0===Q?void 0:Q.event_id);(0,l.useEffect)(()=>{(0,c.w4b)(g)?(0,St.ck)(S,(0,c.NCy)(g),g).then(t=>{I(t),N(parseFloat(t.price)),R(parseFloat(t.compare_price)),W(t.currency),Y(!0)}):(async()=>{var t,e,i,o,n,r;const l=await(0,h.M)(S,(0,c.NCy)(g),g);H(l),N((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),R((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),Y(!0)})(),!(0,c.E8r)(g)||null!==Q&&void 0!==Q&&Q.in_stock||G("errored")},[]),(0,l.useEffect)(()=>{var t,e;const i=null!=M?null===M||void 0===M||null===(t=M.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===M||void 0===M||null===(e=M.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===M||void 0===M||null===(r=M.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));U({position:i,finalArr:o,finalArrExternal:n})},[M]);var vt=.72*C,xt=.37*vt,gt=vt*(.48-.37),mt=.95*vt+"px",ft=xt+"px",wt=.12*xt;function Ct(){window.location.href=function(t){return(0,c.BLb)(g)?t.product_link+"?"+(0,c.VCz)(g)+"&"+(0,c.Spk)(g)+"&"+(0,c.$lz)(g):t.product_link}(S)}return(0,k.jsx)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:"24px",width:mt,boxShadow:"round"==_?"dark-lg":null,onClick:()=>{!function(t,e){d||v||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==g?Ct():V(e),j(!0)}(Q,S)},backgroundColor:(0,ot.YU)("#ffffff",(0,c.p2R)(g)),animation:y?it.jd:null,borderRadius:"round"==_?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(g),borderColor:(0,c.Fwt)(g)},children:(0,k.jsxs)(B.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,k.jsx)(T.az,{height:ft,width:ft,children:(0,k.jsx)(D._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===X||void 0===X||null===(o=X.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===z||void 0===z?void 0:z[null===X||void 0===X?void 0:X.position])))||void 0===n?void 0:n.src)&&void 0!==i?i:null===X||void 0===X||null===(r=X.finalArrExternal)||void 0===r||null===(a=r.find(t=>(null===t||void 0===t?void 0:t.color)==(null===z||void 0===z?void 0:z[null===X||void 0===X?void 0:X.position])))||void 0===a?void 0:a.src)&&void 0!==e?e:S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(g)+" !important"}})}),(0,k.jsx)(T.az,{height:ft,width:vt-xt+"px",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,st.v)(null==S.title?"":S.title.toString())}),(0,c.Nzx)(g)?(0,k.jsxs)(B.B,{direction:(0,c.vw2)(g)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[$&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(g)+"px !important",lineHeight:"100%",sx:{fontFamily:x+" !important",color:(0,c.uoB)(g)+" !important",fontWeight:"bold"},children:[" "+(0,St.Sb)(null!==P&&void 0!==P?P:null===S||void 0===S?void 0:S.price,"",g,O)," \xa0"]}),(0,ct.P)(P,L)&&$?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(g)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.gld)(g)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,St.Sb)(null!==L&&void 0!==L?L:null===S||void 0===S?void 0:S.compare_price,"",g,O)]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(Wt,{baseFontSize:.3*gt,event:Q,product:S,cartState:q.state,cartCount:dt,updateCartState:G,onClickAtc:t=>{"init"===q.state?(J(ht,!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:E,event:Q,productList:[S],ctaList:Q.cta})):"awaitingVariantSelection"===q.state&&V(S)},onCartIconClick:t=>{at()}})]})})]})})};function Ht(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,h=t.width,v=t.height,x=t.title,g=t.showInProgressIcon;return(0,k.jsxs)(T.az,{display:"flex",width:h,height:v,gap:"8px",animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",flex:"1",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",backgroundColor:"transparent",border:"1px solid #b5b5b5",borderRadius:"8px",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*c+"px !important",fontWeight:"500 !important",sx:{fontFamily:r+" !important",color:"#1a1a1a !important"},children:["\xa0",null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",flex:"1",backgroundColor:g?"#3a3a3a":"#1a1a1a",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",borderRadius:"8px",onClick:t=>{t.stopPropagation(),p(),s(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*c+"px !important",fontWeight:"500 !important",sx:{fontFamily:r+" !important",color:"#ffffff !important"},children:["\xa0",x,"\xa0"]}),g?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function Qt(t){var e,i,o,n,r;const[a]=(0,u.QN)("whatmoreSecondaryColor"),[d]=(0,u.QN)("whatmorePrimaryFont"),[s]=(0,u.QN)("whatmoreShopId"),[p,h]=(0,l.useState)(!1),v=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,f=null!==(i=t.borderRadius)&&void 0!==i?i:"7px",w=null!==(o=t.paddingY)&&void 0!==o?o:"10px";return(0,k.jsx)(T.az,{width:g,height:m,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(s)?a:(0,c.Wc_)(s),borderRadius:f,onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:p?it.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:w,children:(0,k.jsx)(F.o,{maxWidth:"90%",children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*v+"px !important",fontWeight:"semibold !important",sx:{fontFamily:d+" !important",color:(0,c.Hfu)(s)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(s)?(0,c.KPq)(s):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===r?void 0:r.add_to_cart)&&void 0!==n?n:(0,c.KPq)(s),"\xa0"]})})})})}function Vt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,k.jsx)(T.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Xt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,s=t.height,p=t.onCartIconClick;return(0,k.jsx)(T.az,{width:d,height:s,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:(0,c.DiI)(n)?()=>{p()}:void 0,children:(0,c.DiI)(n)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ut=function(t){var e,i,o,n,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,k.jsx)(Vt,{baseFontSize:s,width:m,height:f}):"init"==p?0==h?(0,k.jsx)(Qt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):c?(0,k.jsx)(Xt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,k.jsx)(Qt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):(0,k.jsx)(Ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===G.m4||void 0===G.m4||null===(a=G.m4[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})};var $t=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[n]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[a,d,v,x]=(0,p.A)(),[m,f]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,l.useContext)(b.BR),{closeClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(null),[S,I]=(0,l.useState)(parseFloat(m.price)),[_,E]=(0,l.useState)(parseFloat(m.compare_price)),[z,F]=(0,l.useState)(null===m||void 0===m?void 0:m.title),[T,P]=(0,l.useState)(m.currency),[N,L]=(0,l.useState)(!1),[B,A]=(0,l.useState)(!1),[R]=(0,u.QN)("whatmoreSecondaryColor"),[D,O,W,M,H,Q,V,X]=t.useAddToCartStatesInstance,U=t.productCartCounts&&t.productCartCounts[m.product_id]?t.productCartCounts[m.product_id]:D.cart_count,$=t.event,Y=t.productClickHandler;if((0,l.useEffect)(()=>{(0,c.w4b)(r)?(0,St.ck)(m,(0,c.NCy)(r),r).then(t=>{f(t),I(parseFloat(t.price)),E(parseFloat(t.compare_price)),P(t.currency),L(!0)}).catch(t=>{L(!0)}):(async()=>{try{var t,e,i,o,n,l,a,d;const s=await(0,h.M)(m,(0,c.NCy)(r),r);I((null!==(t=null===s||void 0===s||null===(e=s.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===s||void 0===s?void 0:s.price)/100),E(("63836192926"===r?null!==(o=null!==s&&void 0!==s&&null!==(n=s.variants)&&void 0!==n&&n[0]?s.variants[0].compare_at_price:null===s||void 0===s?void 0:s.compare_at_price)&&void 0!==o?o:0:null!==(l=null===s||void 0===s||null===(a=s.variants)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.compare_at_price)&&void 0!==l?l:null===s||void 0===s?void 0:s.compare_at_price)/100),L(!0)}catch(s){L(!0)}})()},[]),!N)return(0,k.jsx)(k.Fragment,{});const q=.765*x,K=(null===$||void 0===$||null===(e=$.products)||void 0===e?void 0:e.length)>1?.85*q:q,G=.198*K,Z=.0315*x,J=1.05*Z,tt=Number((0,c.rh$)(r)),et=.85*Z*(isNaN(tt)||0===tt?1:tt),it=.75*Z,ot=(0,c.XQu)(r),nt=(()=>{if((0,ct.P)(S,_)){const t=(_-S)/_*100;return Math.round(t)}return null})(),at=(0,c.fpt)(r),dt=at||R,ut=(pt=dt,ht=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${ht})`);var pt,ht;function vt(t){return(0,c.BLb)(r)?t.product_link+"?"+(0,c.VCz)(r)+"&"+(0,c.Spk)(r)+"&"+(0,c.$lz)(r):t.product_link}function xt(){window.location.href=vt(m)}function gt(t,e){const n="75310563627"==r||"87857266990"==r||"65972830359"==r||"5032640601"==r||"53425012925"==r;i||o||(async()=>{(0,s.increaseEventProductClickCount)(t,e),n&&(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:t,productList:[e],ctaList:t.cta})})(),"72550089015"==r||n?xt():Y(e)}const mt=(null===w||void 0===w?void 0:w.landingLocationType)||"index",ft=(null===w||void 0===w?void 0:w.templateType)||"template-a",wt=(0,kt.Wd)(mt)+(0,kt.gf)(ft)+(null!==$&&void 0!==$&&$.isRelatedEvent?"R":"E")+"_"+(null===$||void 0===$?void 0:$.event_id);return(0,k.jsx)("div",{style:{width:K+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:B?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},onClick:()=>{if("22907887"===r)return console.log("product.product_link : ",m.product_link),void(window.location.href=m.product_link);gt($,m)},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:(0,k.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,k.jsx)("div",{style:{width:G+"px",height:G+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,k.jsx)("img",{src:(0,yt.b)(m.thumbnail_image),alt:m.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,k.jsxs)("div",{style:{flex:1},children:[(0,k.jsx)("h3",{className:"whatmore-premium-tile-title",ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{fontSize:1*J+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:(0,st.v)(z,"prod-tile")}),(0,c.Nzx)(r)&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[N&&(0,k.jsx)("span",{className:"whatmore-premium-tile-price",ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:1.2*et+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==S&&void 0!==S?S:null===m||void 0===m?void 0:m.price,"",r,T)+("5032640601"===r?" USD":"")}),(0,ct.P)(S,_)&&N&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:et+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==_&&void 0!==_?_:null===m||void 0===m?void 0:m.compare_price,"",r,T)+("5032640601"===r?" USD":"")}),nt&&(0,c.mOK)(r)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",n,"important"),t.style.setProperty("color",dt,"important"),t.style.setProperty("background-color",ut,"important"))},style:{fontSize:.9*et+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[nt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==D.state&&null!=M&&(0,k.jsx)("div",{style:{width:"100%",maxHeight:.3*K*ot+"px",overflowY:"auto",overflowX:"hidden",marginTop:"10px",marginBottom:"10px",padding:"8px",backgroundColor:"rgba(248, 248, 248, 0.8)",borderRadius:"8px",border:"1px solid #e0e0e0"},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",event:$,product:m,productVariantOptions:M,baseFontSize:.9*Z,onOptionSelected:t=>{!function(t){j(t);const e=V(t);e&&(I(e.price/100),E(e.compare_price/100),e.title.includes(" ")&&F(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,k.jsx)("div",{className:"whatmore-premium-tile-atc",style:{width:"100%"},children:"5032640601"===r||"53425012925"===r?(0,k.jsx)(Nt,{baseFontSize:1.1*it,event:$,product:m,borderRadius:"md",onShopNowClick:t=>{t&&t.stopPropagation&&t.stopPropagation(),i||o||((0,s.increaseEventProductClickCount)($,m),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta})),window.location.href=vt(m)}}):(0,k.jsx)(Ut,{baseFontSize:1.1*it,setProductVariantTitle:F,product:m,cartState:D.state,cartCount:U,updateCartState:W,isPremium:!0,onClickAtc:t=>{var e;if(t&&t.stopPropagation&&t.stopPropagation(),"87433380130"===r||"64527597748"===r)return(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta}),null===(e=document.getElementById("_rsi-buy-now-button"))||void 0===e||e.click(),void("function"===typeof C&&C());"22907887"!==r&&"72603631788"!==r&&"5220302897"!==r&&"57217876118"!==r?"init"==D.state?(H(wt),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta})):"awaitingVariantSelection"==D.state&&(Q(y,wt),F(null===m||void 0===m?void 0:m.title)):gt($,m)},onCartIconClick:()=>{X()}})})]})})};var Yt=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[n]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[a,d,v,x]=(0,p.A)(),[g,m]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,l.useContext)(b.BR),[w,C]=(0,l.useState)(null),[y,j]=(0,l.useState)(parseFloat(g.price)),[S,I]=(0,l.useState)(parseFloat(g.compare_price)),[_,E]=(0,l.useState)(null===g||void 0===g?void 0:g.title),[z,F]=(0,l.useState)(g.currency),[T,P]=(0,l.useState)(!1),[N,L]=(0,l.useState)(!1),[B]=(0,u.QN)("whatmoreSecondaryColor"),[A,R,D,O,W,M,H,Q]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:A.cart_count,X=t.event,U=t.productClickHandler;if((0,l.useEffect)(()=>{(0,c.w4b)(r)?(0,St.ck)(g,(0,c.NCy)(r),r).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),F(t.currency),P(!0)}).catch(t=>{P(!0)}):(async()=>{try{var t,e,i,o,n,l;const a=await(0,h.M)(g,(0,c.NCy)(r),r);j((null!==(t=null===a||void 0===a||null===(e=a.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===a||void 0===a?void 0:a.price)/100),I((null!==(o=null===a||void 0===a||null===(n=a.variants)||void 0===n||null===(l=n[0])||void 0===l?void 0:l.compare_at_price)&&void 0!==o?o:null===a||void 0===a?void 0:a.compare_at_price)/100),P(!0)}catch(a){P(!0)}})()},[]),!T)return(0,k.jsx)(k.Fragment,{});const $=.765*x,Y=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*$:$,q=.0315*x,K=1.05*q,G=Number((0,c.rh$)(r)),Z=.85*q*(isNaN(G)||0===G?1:G),J=.75*q,tt=(0,c.XQu)(r),et=Number(tt),it=Math.max(240,Number.isFinite(et)?.3*Y*et:0),ot=(()=>{if((0,ct.P)(y,S)){const t=(S-y)/S*100;return Math.round(t)}return null})(),nt=(0,c.fpt)(r),at=nt||B,dt=(ut=at,pt=.15,`rgba(${parseInt(ut.slice(1,3),16)}, ${parseInt(ut.slice(3,5),16)}, ${parseInt(ut.slice(5,7),16)}, ${pt})`);var ut,pt;function ht(){window.location.href=function(t){return(0,c.BLb)(r)?t.product_link+"?"+(0,c.VCz)(r)+"&"+(0,c.Spk)(r)+"&"+(0,c.$lz)(r):t.product_link}(g)}function vt(t,e){i||o||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==r?ht():U(e)}const xt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",gt=(null===f||void 0===f?void 0:f.templateType)||"template-a",mt=(0,kt.Wd)(xt)+(0,kt.gf)(gt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id),ft=Math.min(Y,480),wt=.3*ft,Ct=.46*ft,bt=(0,k.jsx)(Ut,{baseFontSize:1.1*J,setProductVariantTitle:E,product:g,cartState:A.state,cartCount:V,updateCartState:D,isPremium:!0,borderRadius:"2px",paddingY:"6px",onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==r&&"72603631788"!==r&&"5220302897"!==r&&"57217876118"!==r?"init"==A.state?(W(mt),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==A.state&&(M(w,mt),E(null===g||void 0===g?void 0:g.title)):vt(X,g)},onCartIconClick:()=>{Q()}});return(0,k.jsxs)("div",{style:{width:Y+"px",maxWidth:"480px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.4)",backdropFilter:"blur(12px)",border:"none",borderRadius:"4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",position:"relative",zIndex:10},onClick:()=>{if("22907887"===r)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);vt(X,g)},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"stretch",width:"100%"},children:[(0,k.jsx)("div",{style:{width:wt+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8"},children:(0,k.jsx)("img",{src:(0,yt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:"12px",padding:"16px 18px"},children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{fontSize:1*K+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,st.v)(_,"prod-tile")}),(0,c.Nzx)(r)&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"nowrap",minWidth:0,overflow:"hidden",whiteSpace:"nowrap"},children:[T&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:1.2*Z+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==y&&void 0!==y?y:null===g||void 0===g?void 0:g.price,"",r,z)}),(0,ct.P)(y,S)&&T&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:Z+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==S&&void 0!==S?S:null===g||void 0===g?void 0:g.compare_price,"",r,z)}),ot&&(0,c.mOK)(r)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",n,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*Z+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[ot,"% OFF"]})]})]}),"awaitingVariantSelection"!=A.state&&(0,k.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,k.jsx)("div",{style:{width:Ct+"px",maxWidth:"100%"},children:bt})})]})]}),"awaitingVariantSelection"==A.state&&null!=O&&(0,k.jsxs)("div",{style:{width:"100%",backgroundColor:"rgba(248, 248, 248, 0.8)",borderTop:"1px solid #e0e0e0",boxSizing:"border-box"},children:[(0,k.jsx)("div",{style:{width:"100%",padding:"4px 16px 0",boxSizing:"border-box"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",maxHeight:it+"px",event:X,product:g,productVariantOptions:O,baseFontSize:.9*q,onOptionSelected:t=>{!function(t){C(t);const e=H(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&E(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px 16px 12px",boxSizing:"border-box"},children:(0,k.jsx)("div",{style:{width:Ct+"px",maxWidth:"100%"},children:bt})})]})]})};var qt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreShopId"),[n,r,a,d]=(0,p.A)(),h=t.product,v=t.event,{whatmoreWidgetSourceDetails:x}=(0,l.useContext)(b.BR),[g,m,f,w,C,y,j,S]=t.useAddToCartStatesInstance,I=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:g.cart_count,_=(null===x||void 0===x?void 0:x.landingLocationType)||"index",E=(null===x||void 0===x?void 0:x.templateType)||"template-a",z=(0,kt.Wd)(_)+(0,kt.gf)(E)+"_"+(null===v||void 0===v?void 0:v.event_id);(0,l.useEffect)(()=>{!(0,c.E8r)(o)||null!==v&&void 0!==v&&v.in_stock||f("errored")},[]);const F=.1*a,P=.95*d,N=.04*d;return(0,k.jsx)(B.B,{direction:"row",height:F,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",className:"chakra-stack whatmore-minimal-atc-outer",children:(0,k.jsx)(B.B,{direction:"column",width:"fit-content",height:F,justifyContent:"center",alignItems:"center",alignContent:"center",className:"chakra-stack whatmore-minimal-atc-inner",children:(0,k.jsx)(T.az,{width:P+"px",height:"fit-content",marginTop:"35px",marginBottom:"10px",display:"flex",justifyContent:"center",alignItems:"center",className:"whatmore-minimal-atc-button-container",children:(0,k.jsx)(Wt,{baseFontSize:N,event:v,product:h,cartState:g.state,cartCount:I,updateCartState:f,onClickAtc:t=>{"init"===g.state&&(e||i||(async()=>{(0,s.increaseEventProductClickCount)(v,h),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:x,event:v,productList:[h],ctaList:v.cta})})(),C(z,!0))},onCartIconClick:t=>{S()}})})})})};const Kt="#E0531D",Gt="#2B2622",Zt="#9A9089",Jt="'Plus Jakarta Sans', system-ui, sans-serif";var te=function(t){var e,i,o,n,r,a;const[d]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x]=(0,u.QN)("whatmoreShopId"),[,,,g]=(0,p.A)(),[m,f]=(0,l.useState)(t.product),[w,C]=(0,l.useState)(parseFloat(null===(e=t.product)||void 0===e?void 0:e.price)),[y,j]=(0,l.useState)(parseFloat(null===(i=t.product)||void 0===i?void 0:i.compare_price)),[S,I]=(0,l.useState)(null===(o=t.product)||void 0===o?void 0:o.currency),[_,E]=(0,l.useState)(!1),z=t.event,{whatmoreWidgetSourceDetails:F}=(0,l.useContext)(b.BR),[T,,P,,N,,,L]=t.useAddToCartStatesInstance,B=t.productCartCounts&&t.productCartCounts[m.product_id]?t.productCartCounts[m.product_id]:T.cart_count,A=(null===F||void 0===F?void 0:F.landingLocationType)||"index",R=(null===F||void 0===F?void 0:F.templateType)||"template-a",D=(0,kt.Wd)(A)+(0,kt.gf)(R)+"_"+(null===z||void 0===z?void 0:z.event_id);(0,l.useEffect)(()=>{!(0,c.E8r)(x)||null!==z&&void 0!==z&&z.in_stock||P("errored")},[]),(0,l.useEffect)(()=>{(0,c.w4b)(x)?(0,St.ck)(m,(0,c.NCy)(x),x).then(t=>{f(t),C(parseFloat(t.price)),j(parseFloat(t.compare_price)),I(t.currency),E(!0)}).catch(t=>{E(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(m,(0,c.NCy)(x),x);C((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),j((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),E(!0)}catch(l){E(!0)}})()},[]);const O=null!==(n=t.tileWidthFactor)&&void 0!==n?n:.64,W=Math.min(300,Math.max(200,g*O)),M=(0,ct.P)(w,y),H=(0,St.Sb)(null!==w&&void 0!==w?w:null===m||void 0===m?void 0:m.price,"",x,S),Q=M?(0,St.Sb)(null!==y&&void 0!==y?y:null===m||void 0===m?void 0:m.compare_price,"",x,S):null,V=M?Math.round(100*(1-Number(w)/Number(y))):0,X=T.state,U="errored"===X,$="productVariantDetailsApiCallInProgress"===X||"awaitingVariantSelection"===X||"atcApiCallInProgress"===X,Y=!$&&!U&&B>0;let q="\uff0b Add";$?q="Adding\u2026":Y?q="\u2713 Added":U&&(q="Sold out");const K={width:"100%",height:"38px",border:Y?`1.5px solid ${Kt}`:U?"1px solid #E0DAD1":"none",borderRadius:"10px",background:U?"#EDEAE5":Y?"#FFFFFF":Kt,color:U?Zt:Y?Kt:"#FFFFFF",fontFamily:Jt,fontSize:"13px",fontWeight:700,letterSpacing:"0.01em",cursor:U?"default":"pointer",opacity:$?.75:1,transition:"background 0.2s ease, color 0.2s ease, border 0.2s ease",WebkitTapHighlightColor:"transparent"},G=(null===m||void 0===m?void 0:m.thumbnail_image)||(null===z||void 0===z?void 0:z.poster_image);return _?(0,k.jsxs)("div",{className:"whatmore-multiproduct-tile",style:{width:W+"px",background:"#FFFFFF",borderRadius:"16px",overflow:"hidden",boxShadow:"0 6px 20px rgba(43,38,34,0.14)",fontFamily:Jt,boxSizing:"border-box",display:"flex",flexDirection:"column"},children:[(0,k.jsx)("div",{style:{width:"100%",aspectRatio:"16 / 9",background:"#F1ECE5",overflow:"hidden"},children:G&&(0,k.jsx)("img",{src:G,alt:null!==(r=null===m||void 0===m?void 0:m.title)&&void 0!==r?r:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{padding:"11px 12px 12px",display:"flex",flexDirection:"column",gap:"8px"},children:[(0,k.jsx)("div",{style:{fontSize:"13px",fontWeight:600,lineHeight:1.3,color:Gt,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",minHeight:"34px"},children:null!==(a=null===m||void 0===m?void 0:m.title)&&void 0!==a?a:""}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px"},children:[(0,k.jsx)("span",{style:{fontSize:"14.5px",fontWeight:700,color:Gt},children:H}),Q&&(0,k.jsx)("span",{style:{fontSize:"11.5px",color:Zt,textDecoration:"line-through"},children:Q}),V>0&&(0,k.jsxs)("span",{style:{fontSize:"10px",fontWeight:700,color:Kt,background:"#FCE9E1",padding:"2px 6px",borderRadius:"6px",lineHeight:1.2,whiteSpace:"nowrap"},children:[V,"% off"]})]}),(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),U||$||Y?Y&&L():"init"===X&&(d||v||(async()=>{(0,s.increaseEventProductClickCount)(z,m),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:z,productList:[m],ctaList:null===z||void 0===z?void 0:z.cta})})(),N(D,!0))},disabled:U,style:K,children:q})]})]}):(0,k.jsx)(k.Fragment,{})};var ee=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i]=(0,u.QN)("isWhatmoreWebsite"),o=(0,c.Vpi)(e);if("shopify"==(0,c.NCy)(e)&&(0,tt.NX)(t.product))return(0,k.jsx)(at,{product:t.product,event:t.event,nonProductRedirect:!0});const n=t.event,r=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...p]=(0,Ct.A)(0,r,t.event),h=[s,...p];return(0,l.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(r.product_id,t)},[s.cart_count]),i?(0,k.jsx)(Bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,k.jsx)($t,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"multi-product-tile"==o?(0,k.jsx)(te,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"navigation-tile"==o?(0,k.jsx)(Yt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"broad-tile"==o?(0,k.jsx)(_t,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"broad-tile-no-cta"==o?(0,k.jsx)(Bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,k.jsx)(Mt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"link_only"==o?(0,k.jsx)(at,{product:t.product,event:t.event}):"minimal_atc_button"==o?(0,k.jsx)(qt,{product:t.product,event:t.event,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"narrow-tile"==o?(0,k.jsx)(Lt,{event:n,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:n.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):(0,k.jsx)(k.Fragment,{})};var ie=function(t){var e,i;const[o]=(0,u.QN)("isInDesignMode"),[n]=(0,u.QN)("isDemoBrand"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[,,,s]=(0,p.A)(),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),{closeClickComponent:v}=(0,l.useContext)(g.p),x=t.event,m=null!==(e=null===x||void 0===x?void 0:x.products)&&void 0!==e?e:[],f=t.productClickHandler,[w,C]=(0,l.useState)(0),y=null!==(i=m[w])&&void 0!==i?i:m[0],[j,S,I,_,E,z,F,T]=(0,Ct.A)(0,y,x),[P,N]=(0,l.useState)(parseFloat(null===y||void 0===y?void 0:y.price)),[L,B]=(0,l.useState)(parseFloat(null===y||void 0===y?void 0:y.compare_price)),[A,R]=(0,l.useState)(null===y||void 0===y?void 0:y.title),[D,O]=(0,l.useState)(null===y||void 0===y?void 0:y.currency),[W,M]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{if(y&&(I("init"),R(y.title),O(y.currency),N(parseFloat(y.price)),B(parseFloat(y.compare_price)),M(!(0,c.w4b)(a)),(0,c.w4b)(a))){let t=!1;return(0,St.ck)(y,(0,c.NCy)(a),a).then(e=>{t||(N(parseFloat(e.price)),B(parseFloat(e.compare_price)),O(e.currency),M(!0))}).catch(()=>{t||M(!0)}),()=>{t=!0}}},[w]),(0,l.useEffect)(()=>{"awaitingVariantSelection"===j.state&&(f(y),I("init"))},[j.state]),!y)return(0,k.jsx)(k.Fragment,{});const H=.765*s,Q=.185*H,V=.0315*s,X=1.05*V,U=Number((0,c.rh$)(a)),$=.85*V*(isNaN(U)||0===U?1:U),Y=.75*V,q=.36*H,K=2.4*Y,G=(0,ct.P)(P,L)?Math.round((L-P)/L*100):null,Z=(0,c.fpt)(a),J=Z||d,tt=(et=J,it=.15,`rgba(${parseInt(et.slice(1,3),16)}, ${parseInt(et.slice(3,5),16)}, ${parseInt(et.slice(5,7),16)}, ${it})`);var et,it;const ot=(null===h||void 0===h?void 0:h.landingLocationType)||"index",nt=(null===h||void 0===h?void 0:h.templateType)||"template-a",at=(0,kt.Wd)(ot)+(0,kt.gf)(nt)+(null!==x&&void 0!==x&&x.isRelatedEvent?"R":"E")+"_"+(null===x||void 0===x?void 0:x.event_id);return(0,k.jsxs)("div",{style:{width:H+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},children:[(0,k.jsx)("div",{style:{display:"flex",gap:"10px",overflowX:"auto",paddingBottom:"2px",marginBottom:"14.4px",scrollbarWidth:"none"},children:m.map((t,e)=>{const i=e===w;return(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),C(e)},style:{width:Q+"px",height:Q+"px",flexShrink:0,cursor:"pointer",overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:i?`2px solid ${d}`:"1px solid #f0f0f0",padding:i?"2px":"0",transition:"border-color 0.15s ease"},children:(0,k.jsx)("img",{src:(0,yt.b)(t.thumbnail_image),alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"9px"}})},x.event_id+"_"+t.product_id)})}),(0,k.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:X+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,st.v)(A,"prod-tile")}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px",width:"100%"},children:[(0,c.Nzx)(a)&&W&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap",flex:1,minWidth:0},children:[(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*$+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==P&&void 0!==P?P:null===y||void 0===y?void 0:y.price,"",a,D)}),(0,ct.P)(P,L)&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:$+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==L&&void 0!==L?L:null===y||void 0===y?void 0:y.compare_price,"",a,D)}),G&&(0,c.mOK)(a)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",J,"important"),t.style.setProperty("background-color",tt,"important"))},style:{fontSize:.9*$+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[G,"% OFF"]}),"75000480020"===a&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:.72*$+"px",fontWeight:"400",letterSpacing:"0.2px",whiteSpace:"nowrap"},children:"(Incl. of all taxes)"})]}),(0,k.jsx)("div",{style:{flexShrink:0,width:q+"px",height:K+"px",borderRadius:K/2+"px",overflow:"hidden",boxShadow:"0 4px 12px rgba(0,0,0,0.18)"},children:(0,k.jsx)(wt,{baseFontSize:.82*Y,width:"100%",height:"100%",setProductVariantTitle:R,product:y,cartState:j.state,cartCount:j.cart_count,updateCartState:I,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"init"==j.state&&(E(at),o||n||(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:x,productList:[y],ctaList:x.cta}))},onCartIconClick:()=>{T()}})})]})]})},oe=i(2058),ne=i(4694);var re=function(t){var e,i,o;const[n,r,s,h]=(0,p.A)(),[v]=(0,u.QN)("whatmoreShopId"),x=(0,u.Xd)("isInDesignMode"),g=(0,u.Xd)("isDemoBrand"),m=t.event,f=t.productClickHandler,w=t.productCartCounts,C=t.onCartCountChange,y=t.onActiveProductChange,b=(0,c.Vpi)(v),j="navigation-tile"==b,S=(0,l.useRef)(null),I=(0,l.useRef)(null),[_,E]=(0,l.useState)(80);(0,l.useEffect)(()=>{if(!I.current)return;let t=!1;const e=new ResizeObserver(i=>{var o,n;if(t)return;const r=null===(o=i[0])||void 0===o||null===(n=o.contentRect)||void 0===n?void 0:n.height;r&&r>40&&(t=!0,E(r),e.disconnect())});return e.observe(I.current),()=>e.disconnect()},[]);const z=20+_+"px",P=h<600?"0":"30px",N=("STRDOIDF6O7"===v?[t.event.products[0]]:t.event.products).filter(t=>"oos"!=t.product_status||(0,c.$7F)(v)).length,L=(0,c.Woi)(v)&&void 0!=t.event.cta?t.event.cta.filter(t=>{var e;return""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()}).length:0,A=j&&N+L>1,R=null!==(e=null===(i=m.products)||void 0===i||null===(o=i.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===o?void 0:o.length)&&void 0!==e?e:0;if(!(0,tt.Z_)(m))return(0,k.jsx)(k.Fragment,{});var D;if("thumbnail-strip-tile"==b&&m.products.length>0)return(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:m.products,triggerFlag:!x&&!g&&(null===(D=t.isPlaying)||void 0===D||D),children:(0,k.jsx)(F.o,{children:(0,k.jsx)(ie,{event:m,productClickHandler:f,productCartCounts:w,onCartCountChange:C})})})});if(1==m.products.length&&(void 0==m.cta||0==m.cta.length)){const e=m.products[0];var O,W;return(0,c.uJl)(v)?(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(O=t.isPlaying)||void 0===O||O),children:(0,k.jsx)(F.o,{children:(0,k.jsx)(Lt,{event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})}):(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,k.jsx)(F.o,{children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(W=t.isPlaying)||void 0===W||W),children:(0,k.jsx)(ee,{activeProductsCount:1,event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})})}return(0,k.jsx)(F.o,{children:(0,k.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsxs)(T.az,{width:h+"px",position:"relative",display:"flex",alignItems:"flex-end",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:[A&&(0,k.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=S.current)||void 0===e||e.slidePrev()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:z,marginBottom:P,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Previous product",children:(0,k.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{d:"M9 3L3 12L9 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,k.jsx)("div",{style:{flex:"1 1 auto",minWidth:0,overflow:"hidden"},children:(0,k.jsxs)(a.RC,{className:"product-tile swiper-slide",slidesPerView:1==m.products.length?1:A?1.15:1.4,spaceBetween:A?12:0,initialSlide:0,centeredSlides:!A&&!(0,c.TYM)(v),modules:[d.s3,d.Jq,d.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,onSwiper:t=>{S.current=t},onSlideChange:t=>{y&&y(t.activeIndex)},children:[("STRDOIDF6O7"===v?[m.products[0]]:m.products).map((e,i)=>{var o;return("oos"!=e.product_status||(0,c.$7F)(v))&&(0,k.jsx)(a.qr,{children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(o=t.isPlaying)||void 0===o||o),children:(0,k.jsx)(B.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",paddingBottom:A?"20px":"0",children:(0,k.jsx)("div",{ref:0===i?I:null,children:(0,k.jsx)(ee,{activeProductsCount:R,event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})})},m.event_id+e.product_id)}),(0,c.Woi)(v)&&void 0!=m.cta&&m.cta.map(t=>{var e;return(0,k.jsx)(k.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,k.jsx)(a.qr,{children:(0,k.jsx)(B.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,k.jsx)(oe.A,{fontFactor:.75,cta:t},m.event_id+t.cta_id)})},m.event_id+t.cta_id)})})]})}),A&&(0,k.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=S.current)||void 0===e||e.slideNext()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:z,marginBottom:P,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Next product",children:(0,k.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{d:"M3 3L9 12L3 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})};var le=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),o=t.event,n=t.productClickHandler,r=t.productCartCounts,a=t.onCartCountChange,d=t.onActiveProductChange;return(0,l.useContext)(g.p).isIOS,(0,k.jsx)(re,{event:o,isPlaying:t.isPlaying,productClickHandler:n,productCartCounts:r,onCartCountChange:a,onActiveProductChange:d},o.event_id)};function ae(t){const[e,i,o,n]=(0,p.A)(),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(""),h=t.data,v=(t.event,t.product,t.setShowOptionsChart);var x=.4*n*.8*.13;(0,l.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,i,o,n,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.layout)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const g=`${W.i7`
68
+ `} infinite 1.5s linear`;return(0,k.jsx)(T.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,k.jsxs)(B.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,k.jsx)(F.o,{animation:"vertical"===d?v:x,children:"vertical"===d?(0,k.jsx)(q.A,{sx:{color:"white !important",fontSize:c,filter:"drop-shadow(0 0 20px black);"}}):(0,k.jsx)(K.A,{sx:{color:"white !important",fontSize:c,filter:"drop-shadow(0 0 20px black);"}})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{textShadow:"dark-lg",fontSize:h+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[s])||void 0===i?void 0:i.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var J=function(t){const[e,i]=(0,u.QN)("isFirstIndicatorRenderDone"),[o]=(0,u.QN)("indicatorRenderSeconds"),n=o,r=t.swipeUp;return(0,l.useEffect)(()=>{const t=setTimeout(()=>{i(!0)},3e3+1e3*n);return()=>{clearTimeout(t)}},[]),e?null:(0,k.jsx)(Z,{showForSeconds:.8*n,delayInSeconds:3,swipeUp:r})},tt=i(3299),et=i(7462),it=i(4015),ot=i(7066);const nt="15px";var rt=i(9888),lt=i(7156);var at=function(t){var e,i,o,n;const[r]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[h]=(0,u.QN)("whatmorePrimaryFont"),[v]=(0,u.QN)("whatmoreShopId"),[x]=(0,u.QN)("websiteLanguage"),[g,m,f,w]=(0,p.A)(),[C,y]=(0,l.useState)(!1),j=t.product,S=t.event,{whatmoreWidgetSourceDetails:I}=(0,l.useContext)(b.BR),_=.1*f,E=(null!==(e=null===S||void 0===S||null===(i=S.products)||void 0===i?void 0:i.length)&&void 0!==e?e:0)<=1&&(!(null!==S&&void 0!==S&&S.cta)||0===S.cta.length),z=(E?w:w/1.4)*(E?.99:.92),P=.05*w;return(0,k.jsx)(B.B,{direction:"row",height:_,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,k.jsx)(B.B,{direction:"column",width:"fit-content",height:_,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,k.jsx)(T.az,{width:z+"px",height:"fit-content",boxSizing:"border-box",padding:"6px",marginTop:nt,backgroundColor:d,borderRadius:"5px",animation:C?it.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,c.qw1)(v),onClick:()=>{y(!0),function(t,e){r||a||(async()=>{(0,s.increaseEventProductClickCount)(t,e),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:I,event:t,productList:[e],ctaList:t.cta})})()}(S,j),window.location.href=function(t){return(0,c.BLb)(v)?t.product_link+"?"+(0,c.VCz)(v)+"&"+(0,c.Spk)(v)+"&"+(0,c.$lz)(v):t.product_link}(j)},_hover:{backgroundColor:(0,ot.YU)(d,8)},cursor:"pointer",children:(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*P+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:h+" !important",color:"white !important"},children:t.nonProductRedirect?(0,k.jsxs)(k.Fragment,{children:[null!==(o=(0,G._q)(x,"Visit Page"))&&void 0!==o?o:"Visit Page","\xa0",(0,k.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",transform:"translateY(-1px)"},children:"\u2197"})]}):null!==(n=(0,G._q)(x,(0,c.Qed)(v)))&&void 0!==n?n:(0,c.Qed)(v)})})})})})},dt=i(501),st=i(4833),ct=i(4867),ut=i(4050),pt=i(4363),ht=i(3604),vt=(i(8584),i(9193));function xt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return(0,k.jsxs)(T.az,{display:"flex",width:v,height:x,padding:"2x",boxShadow:"lg",animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",backgroundColor:m?(0,ot.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),s(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function gt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height;return(0,k.jsx)(T.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(a)?n:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,k.jsx)(F.o,{maxWidth:"90%",children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(a)?(0,c.KPq)(a):null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.KPq)(a),"\xa0"]})})})})}function mt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,k.jsx)(T.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ft(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,s=t.height,p=t.onCartIconClick;return(0,k.jsx)(T.az,{width:d,height:s,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{p()},children:(0,c.DiI)(n)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var wt=function(t){var e,i,o,n,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,k.jsx)(mt,{baseFontSize:s,width:m,height:f}):"init"==p?0==h?(0,k.jsx)(gt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d}):c?(0,k.jsx)(ft,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,k.jsx)(gt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d}):(0,k.jsx)(xt,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===G.m4||void 0===G.m4||null===(a=G.m4[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})},Ct=i(2090),yt=i(4540),bt=i(738);var jt=function(t){var e,i;const o=t.productVariantOptions,n=null!==(e=t.width)&&void 0!==e?e:"100%",r=t.maxHeight,a=null!==(i=t.baseFontSize)&&void 0!==i?i:10,d=t.onOptionSelected,s=t.data,[c]=(0,u.QN)("whatmorePrimaryFont"),[p]=(0,u.QN)("websiteLanguage"),h=(0,l.useRef)(null);function v(t){if(!t||0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[x,g]=(0,l.useState)([v(o[0]),v(o[1]),v(o[2])]);function m(t,e){if(2==e)g([x[0],x[1],t]);else if(1==e){var i,o;g([x[0],t,null===s||void 0===s||null===(i=s.variants)||void 0===i||null===(o=i.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===o?void 0:o.option3])}else{var n,r,l,a,d,c;const e=null===s||void 0===s||null===(n=s.variants)||void 0===n||null===(r=n.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;g([t,null===s||void 0===s||null===(l=s.variants)||void 0===l||null===(a=l.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===a?void 0:a.option2,null===s||void 0===s||null===(d=s.variants)||void 0===d||null===(c=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===c?void 0:c.option3])}}(0,l.useEffect)(()=>{d(x)},[x]);const f=Math.max(10,.8*a),w=Math.max(11,.92*a);return(0,k.jsx)("div",{ref:h,style:{width:n,maxHeight:r,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",display:"flex",flexDirection:"column",gap:"12px"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:o.map((e,i)=>{var o,n,r,l;if(!e||0==e.length||"mlveda_country"==(null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.type))return null;const a=e.every(e=>{var i,o,n,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(o=i.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===n?void 0:n.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,k.jsxs)("div",{style:{width:"100%"},children:[(0,k.jsx)("div",{style:{fontFamily:c,fontSize:f+"px",letterSpacing:"1.6px",textTransform:"uppercase",color:"#9a9a9a",fontWeight:400,marginBottom:"6px"},children:null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[p])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==n?n:e[0].type}),(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:e.map((e,o)=>{if(!(0==i||!(null!==s&&void 0!==s&&s.variants)||s.variants.find(t=>t[`option${i}`]==(null===x||void 0===x?void 0:x[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option))))return null;const n=e.option===x[i],r=e.available;var l,d,u,p,h,v,g;return a?(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{width:"52px",height:"52px",borderRadius:"50%",overflow:"hidden",cursor:r?"pointer":"not-allowed",border:n?"2px solid #1a1a1a":"1px solid #e0e0e0",padding:n?"2px":"0",boxSizing:"border-box",opacity:r?1:.4,filter:r?"none":"grayscale(100%)",transition:"border 0.15s ease"},...r?(0,bt.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:(0,k.jsx)("img",{alt:e.option,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%",display:"block"},src:(0,yt.b)(null!==(l=null===t||void 0===t||null===(d=t.finalArr)||void 0===d||null===(u=d.finalArr)||void 0===u||null===(p=u.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===p?void 0:p.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(v=h.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})},o):(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{fontFamily:c,fontSize:w+"px",lineHeight:"1",padding:"7px 12px",border:n?"1px solid #1a1a1a":"1px solid #dcdcdc",backgroundColor:n?"#1a1a1a":"transparent",color:n?"#ffffff":r?"#1a1a1a":"#c4c4c4",textDecoration:r?"none":"line-through",cursor:r?"pointer":"not-allowed",borderRadius:"2px",transition:"border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease",whiteSpace:"nowrap",userSelect:"none"},...r?(0,bt.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:e.option},o)})})]},i)})})},St=i(2146),kt=i(7900),It=i(3508);var _t=function(t){var e,i,o,n,r,a,d,v;const[x]=(0,u.QN)("isInDesignMode"),[g]=(0,u.QN)("isDemoBrand"),[m]=(0,u.QN)("whatmoreSecondaryColor"),f=(0,u.Xd)("whatmoreSecondaryColorShade900"),[w]=(0,u.QN)("whatmorePrimaryFont"),[C]=(0,u.QN)("whatmoreShopId"),[y,j,S,I]=(0,p.A)(),[_,E]=(0,l.useState)(!1),[z,F]=(0,l.useState)(t.product),P=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,l.useContext)(b.BR),[L,R]=(0,l.useState)(null),[O,W]=(0,l.useState)(parseFloat(z.price)),[M,H]=(0,l.useState)(parseFloat(z.compare_price)),[Q,V]=(0,l.useState)(null===z||void 0===z?void 0:z.title),[X,U]=(0,l.useState)(z.currency),[$,Y]=(0,l.useState)(null),q=t.event,K=t.productClickHandler,{whatmoreIsPreviewMode:G}=(0,l.useContext)(b.BR),[Z,J]=(0,l.useState)(null),[tt,et]=(0,l.useState)(!1),[ot,at]=(0,l.useState)(!1),[ut,pt,xt,gt,mt,ft,Ct,bt]=t.useAddToCartStatesInstance,_t=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:ut.cart_count;if((0,l.useEffect)(()=>{(0,c.w4b)(C)?(0,St.ck)(z,(0,c.NCy)(C),C).then(t=>{F(t),W(parseFloat(t.price)),H(parseFloat(t.compare_price)),U(t.currency),et(!0)}).catch(t=>{et(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(z,(0,c.NCy)(C),C);Y(l),W((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),H((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)}catch(l){et(!0)}})(),!(0,c.E8r)(C)||!("in_stock"in q)||null!==q&&void 0!==q&&q.in_stock||xt("errored")},[]),(0,l.useEffect)(()=>{var t,e;const i=null!=$?null===$||void 0===$||null===(t=$.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===$||void 0===$||null===(e=$.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===$||void 0===$||null===(r=$.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:i,finalArr:o,finalArrExternal:n})},[$]),!tt)return(0,k.jsx)(k.Fragment,{});var Et=.68*I,zt=.55*Et,Ft=.4*Et,Tt=Et*(.55-.4),Pt=Et+"px",Nt=Ft+"px",Lt=Tt+"px",Bt=.12*Ft,At="12px";const Rt=(0,c.XQu)(C);function Dt(){window.location.href=function(t){return(0,c.BLb)(C)?t.product_link+"?"+(0,c.VCz)(C)+"&"+(0,c.Spk)(C)+"&"+(0,c.$lz)(C):t.product_link}(z)}function Ot(t,e){x||g||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==C?Dt():K(e),E(!0)}const Wt=(null===N||void 0===N?void 0:N.landingLocationType)||"index",Mt=(null===N||void 0===N?void 0:N.templateType)||"template-a",Ht=(0,kt.Wd)(Wt)+(0,kt.gf)(Mt)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id),Qt=(0,c.HKH)(C)&&t.activeProductsCount>1&&"init"==ut.state&&0==ut.cart_count;return(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:(0,c.qw1)(C),width:Pt,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{Ot(q,z)},backgroundColor:"rgba(255, 255, 255, 0.78)",animation:_?it.jd:it.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,c.YcK)(C),borderColor:(0,c.Fwt)(C)},children:[(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",paddingX:At,paddingTop:At,children:[(0,k.jsx)(T.az,{flexShrink:0,height:Nt,width:Nt,children:(0,k.jsx)(D._,{className:"product-tile-image",width:Nt,height:Nt,src:(0,yt.b)(null!==(e=null!==(i=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===L||void 0===L?void 0:L[null===Z||void 0===Z?void 0:Z.position])))||void 0===n?void 0:n.src)&&void 0!==i?i:null===Z||void 0===Z||null===(r=Z.finalArrExternal)||void 0===r||null===(a=r.find(t=>(null===t||void 0===t?void 0:t.color)==(null===L||void 0===L?void 0:L[null===Z||void 0===Z?void 0:Z.position])))||void 0===a?void 0:a.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(C)+" !important"}})}),(0,k.jsxs)(T.az,{height:Nt,flex:"1",minWidth:"0",children:[(0,k.jsxs)(B.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,c.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Bt*(0,c.rh$)(C)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",w,"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"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,st.v)("58396311733"===C?(0,It.$)(Q):Q,"prod-tile")}),(0,c.Nzx)(C)?(0,k.jsxs)(B.B,{className:"whatmore-product-atc-price",direction:(0,c.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[tt&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*Bt*(0,c.rh$)(C)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,c.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,St.Sb)("70756368633"===C?parseFloat(null===q||void 0===q||null===(d=q.products)||void 0===d||null===(v=d[0])||void 0===v?void 0:v.price):null!==O&&void 0!==O?O:null===z||void 0===z?void 0:z.price,"",C,X)," \xa0"]}),(0,ct.P)(O,M)&&tt?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*Bt*(0,c.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,c.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===O?"":"line-through !important"},children:[" ",(0,St.Sb)(null!==M&&void 0!==M?M:null===z||void 0===z?void 0:z.compare_price,"",C,X)]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(A.E,{fontSize:.82*Bt*(0,c.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:w+" !important",color:(0,c.Br1)(C)+" !important"},children:G?(0,c.p6A)(C):(0,c.i2h)(C)})]}),(0,c.UlM)(C)?(0,k.jsx)(B.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,k.jsx)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:f,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.SK$)(C)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:m},sx:{bg:m},children:(0,k.jsx)(A.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,k.jsx)(dt.A,{sx:{color:m,fontSize:1.3*Bt+"px"}})}),(0,k.jsx)(T.az,{width:"2px"})]})}):(0,k.jsx)(k.Fragment,{})]})]}),"awaitingVariantSelection"==ut.state&&null!=gt?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",paddingX:At,marginTop:"8px",marginBottom:"8px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",event:q,product:z,finalArr:Z,data:$,productVariantOptions:gt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){R(t);const e=Ct(t);e&&(W(e.price/100),H(e.compare_price/100),e.title.includes(" ")&&V(e.title))}(t)}})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,k.jsx)(B.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,k.jsx)(wt,{baseFontSize:Qt?.2*Tt:.3*Tt,setProductVariantTitle:V,product:z,cartState:ut.state,cartCount:_t,updateCartState:xt,onClickAtc:t=>{"72603631788"!==C&&"5220302897"!==C||"init"!=ut.state?"init"==ut.state?(mt(Ht),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:[z],ctaList:q.cta})):"awaitingVariantSelection"==ut.state&&(ft(L,Ht),V(null===z||void 0===z?void 0:z.title)):Ot(q,z)},onCartIconClick:()=>{bt()}})}),Qt&&(0,k.jsx)(B.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,k.jsx)(vt.$,{disabled:ot,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${w} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{at(!0),pt(Ht),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:q.products,ctaList:q.cta}),at(!1)}catch(e){console.error("Failed to add items:",e),at(!1)}},children:ot?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,k.jsx)(A.E,{fontFamily:w,children:"ADD ALL ITEMS"})})})]})]})},Et=i(798),zt=i(3736);var Ft=function(t){var e,i,o,n,r;const[l]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("whatmorePrimaryFont"),[h]=(0,u.QN)("whatmoreShopId"),[v]=(0,u.QN)("websiteLanguage"),x=t.event,g=t.product,m=null!==(e=t.baseFontSize)&&void 0!==e?e:10,f=null!==(i=t.width)&&void 0!==i?i:"fit-content",w=null!==(o=t.height)&&void 0!==o?o:"fit-content";return(0,k.jsx)(zt.N,{href:g.product_link,color:d,onClick:()=>{!function(t,e){l||a||(async()=>{(0,s.increaseEventProductBuyNowCount)(t,e)})()}(x,g)},children:(0,k.jsx)(T.az,{width:f,height:w,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{lineHeight:"100%",fontSize:1.4*m,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:d+" !important"},children:"MORE INFO"!=(0,c.KnH)(h)?(0,c.KnH)(h):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[v])||void 0===r?void 0:r.more_info)&&void 0!==n?n:(0,c.KnH)(h)})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(dt.A,{sx:{color:d,fontSize:1.4*m}})})]})})})},Tt=i(243);function Pt(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d]=(0,u.QN)("websiteLanguage"),[s,p]=(0,l.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,x=t.width,g=t.height,m=t.title,f="5032640601"===a||"53425012925"===a,w=f?null!==(i=t.borderRadius)&&void 0!==i?i:"md":void 0;return(0,k.jsx)(T.az,{width:x,height:g,padding:"0",boxShadow:"lg",borderRadius:w,backgroundColor:"#000000"==(0,c.Wc_)(a)?n:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),p(!0)},animation:s?it.jd:null,onAnimationEnd:()=>{p(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:f?"8px":"2px",paddingX:f?"16px":void 0,children:(0,k.jsxs)(A.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*h+"px",fontWeight:"semibold",sx:{fontFamily:r+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",null!==(o=(0,G._q)(d,m))&&void 0!==o?o:m,"\xa0"]})})})}var Nt=function(t){var e,i,o;const[n]=(0,u.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",p=null!==(o=t.height)&&void 0!==o?o:"100%";return(0,k.jsx)(Pt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:p,borderRadius:t.borderRadius,title:(0,c.Qed)(n)})};var Lt=function(t){var e,i,o,n,r;const[a]=(0,u.QN)("isInDesignMode"),[d]=(0,u.QN)("isDemoBrand"),[v]=(0,u.QN)("whatmorePrimaryFont"),[x]=(0,u.QN)("whatmoreShopId"),[g,m,f,w]=(0,p.A)(),[C,y]=(0,l.useState)(!1),[j,S]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,l.useContext)(b.BR),[_,E]=(0,l.useState)(null),[z,P,N,L,R,O,W,M]=t.useAddToCartStatesInstance,[H,Q]=(0,l.useState)(parseFloat(j.price)),[V,X]=(0,l.useState)(parseFloat(j.compare_price)),[U,$]=(0,l.useState)(j.currency),[Y,q]=(0,l.useState)(!1),K=t.productCartCounts&&t.productCartCounts[j.product_id]?t.productCartCounts[j.product_id]:z.cart_count,G=t.event,Z=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,tt=(null===I||void 0===I?void 0:I.landingLocationType)||"index",et=(null===I||void 0===I?void 0:I.templateType)||"template-a",ot=(0,kt.Wd)(tt)+(0,kt.gf)(et)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);(0,l.useEffect)(()=>{(0,c.w4b)(x)?(0,St.ck)(j,(0,c.NCy)(x),x).then(t=>{S(t),Q(parseFloat(t.price)),X(parseFloat(t.compare_price)),$(t.currency)}):(async()=>{var t,e,i,o,n,r;const l=await(0,h.M)(j,(0,c.NCy)(x),x);Q((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),X((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),q(!0)})()},[]);var at=w*J,dt=.3*at,ut=at+"px",pt=.7*dt,ht=.9*pt,vt=.12*dt;const xt=(0,c.XQu)(x);function gt(t,e){a||d||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),Z(e),y(!0)}return(0,k.jsx)(B.B,{direction:"row",width:ut,height:"fit-content",justifyContent:"center",children:(0,k.jsx)(T.az,{marginTop:nt,marginBottom:(0,c.qw1)(x),width:ut,onClick:t=>{},animation:C?it.jd:null,borderRadius:"lg",onAnimationEnd:()=>{y(!1)},children:(0,k.jsxs)(B.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{gt(G,j)},children:[(0,k.jsx)(T.az,{height:pt+"px",width:pt+"px",children:(0,k.jsx)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,k.jsx)(T.az,{height:ht+"px",width:ht+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,k.jsx)(D._,{width:ht+"px",height:ht+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,k.jsx)(T.az,{height:pt+"px",width:at-pt+"px",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:"5032640601"===x||"53425012925"===x?2:1,fontSize:1.2*vt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:v+" !important",color:"white !important"},children:(0,st.v)(j.title.toString())}),(0,k.jsxs)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.Nzx)(x)?(0,k.jsxs)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[Y&&(0,k.jsx)(A.E,{noOfLines:1,fontSize:1*vt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"white !important"},children:" "+(0,St.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(i=G.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price):null!==H&&void 0!==H?H:null===j||void 0===j?void 0:j.price,"",x,U)+("5032640601"===x?" USD":"")}),(0,k.jsx)(F.o,{children:(0,ct.P)(j.price,j.compare_price)&&Y?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.8*vt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,St.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(n=G.products)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_price):null!==V&&void 0!==V?V:null===j||void 0===j?void 0:j.compare_price,"",x,U)+("5032640601"===x?" USD":"")]}):(0,k.jsx)(k.Fragment,{})})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(F.o,{children:(0,k.jsx)(Et.A,{storeId:x,productId:j.client_product_id,productLink:j.product_link,fontSize:1*vt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==z.state&&null!=L?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",marginTop:.1*dt+"px",marginBottom:.1*dt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:dt*xt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:ut,height:"fit-content",event:G,product:j,productVariantOptions:L,baseFontSize:1*vt,onOptionSelected:t=>{!function(t){E(t);const e=W(t);e&&(Q(e.price/100),X(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,k.jsx)(T.az,{width:"100%",height:"100%",children:(0,k.jsx)(Ft,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%"})}),(0,k.jsx)(T.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.ZzM)(x)?(0,k.jsx)(Nt,{baseFontSize:.8*vt,event:G,product:j,borderRadius:"md",onShopNowClick:t=>{gt(G,j)}}):(0,k.jsx)(k.Fragment,{children:"form"===(0,c.nWM)(x)?(0,k.jsx)(Tt.default,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,k.jsx)(wt,{baseFontSize:.8*vt,event:G,product:j,cartState:z.state,cartCount:K,borderRadius:"md",onClickAtc:t=>{"72603631788"!==x&&"5220302897"!==x||"init"!=z.state?"init"==z.state?(R(ot),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:G,productList:[j],ctaList:G.cta})):"awaitingVariantSelection"==z.state&&O(_,ot):gt(G,j)},onCartIconClick:()=>{M()}})})})]})]})})})};var Bt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreSecondaryColor"),n=(0,u.Xd)("whatmoreSecondaryColorShade900"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,v,x,g]=(0,p.A)(),[m,f]=(0,l.useState)(!1),[w,C]=(0,l.useState)(t.product),y=(0,u.Xd)("whatmoreUITheme"),[j,S]=(0,l.useState)(!1),[I,_]=(0,l.useState)(parseFloat(w.price)),[E,z]=(0,l.useState)(parseFloat(w.compare_price)),[F,P]=(0,l.useState)(w.currency),[N,L]=(0,l.useState)(!0),R=t.event,[O,W]=(0,l.useState)();if((0,l.useEffect)(()=>{if("6573064236"===a&&null!==w&&void 0!==w&&w.product_link){const t=Math.ceil(parseFloat(w.price)),e=Math.ceil(parseFloat(w.compare_price));return _(t),z(e),void S(!0)}(0,c.w4b)(a)?(0,St.ck)(w,(0,c.NCy)(a),a).then(t=>{C(t),_(parseFloat(t.price)),z(parseFloat(t.compare_price)),P(t.currency),S(!0)}).catch(t=>S(!0)):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(w,(0,c.NCy)(a),a);W(l),_((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),z((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),S(!0)}catch(l){S(!0)}})()},[]),!j)return(0,k.jsx)(k.Fragment,{});var M=.68*g,H=.4*M,Q=M+"px",V=H+"px",X=M*(.55-.4)+"px",U=.12*H;(0,c.XQu)(a);const{whatmoreWidgetSourceDetails:Y}=(0,l.useContext)(b.BR),q=null!==I&&void 0!==I?I:null===w||void 0===w?void 0:w.price,K="STR0IIHZXKW"!==a&&"STRU4RO77D5"!==a||q?" "+(0,St.Sb)(q,"",a,F)+("5032640601"===a?" USD":"")+" ":"Price on request";function G(t){return(0,c.BLb)(a)?t.product_link+"?"+(0,c.VCz)(a)+"&"+(0,c.Spk)(a)+"&"+(0,c.$lz)(a):t.product_link}function Z(t,o){e||i||(async()=>{(0,s.increaseEventProductClickCount)(t,o),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:Y,event:t,productList:[o],ctaList:t.cta})})(),f(!0)}return N?(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:(0,c.qw1)(a),width:Q,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{Z(R,w),window.location.href=G(w)},backgroundColor:(0,ot.YU)("#ffffff",(0,c.p2R)(a)),animation:m?it.jd:it.so,borderRadius:"round"==y?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,c.YcK)(a),borderColor:(0,c.Fwt)(a)},children:[(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,k.jsx)(T.az,{height:V,width:V,children:(0,k.jsx)(D._,{width:V,height:V,src:(0,yt.b)(w.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(a)+" !important"}})}),(0,k.jsxs)(T.az,{height:V,width:M-H+"px",children:[(0,k.jsxs)(B.B,{direction:"column",justifyContent:(0,c.UlM)(a)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,k.jsx)(A.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:r+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*U+"px !important"},children:(0,st.v)(null==w.title?"":w.title.toString(),"prod-tile")}),(0,c.Nzx)(a)?(0,k.jsxs)(B.B,{className:"whatmore-product-shopnow-price",direction:(0,c.vw2)(a)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[j&&(0,k.jsx)(A.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:(0,c.uoB)(a)+" !important",margin:"0px !important"},children:K}),(0,ct.P)(I,E)&&j?(0,k.jsxs)(A.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:(0,c.gld)(a)+" !important",margin:"0px !important"},children:[" ",(0,St.Sb)(null!==E&&void 0!==E?E:null===w||void 0===w?void 0:w.compare_price,"",a,F)+("5032640601"===a?" USD":"")]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),""!=(0,c.rsz)(a)&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*U+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.ogW)(a)+" !important",color:(0,c._zx)(a)+" !important",margin:"0px !important"},children:["\xa0",(0,c.rsz)(a)," \xa0"]})]}),(0,c.UlM)(a)?(0,k.jsx)(B.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,k.jsx)(B.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:n,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==a||"STRNUBH0VYQ"==a||"STRAPB3KXSR"==a?(0,k.jsx)($.A,{sx:{boxShadow:3,fontSize:1.3*U,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),L(!1)}}):(0,k.jsx)(dt.A,{sx:{color:o,fontSize:1.3*U+"px"}})}),(0,k.jsx)(T.az,{width:"2px"})]})}):(0,k.jsx)(k.Fragment,{})]})]}),(0,c.Woi)(a)&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:X,justifyContent:"center",alignItems:"center",children:(0,k.jsx)(Nt,{baseFontSize:.8*U,event:R,product:w,borderRadius:"md",onShopNowClick:t=>{Z(R,w),window.location.href=G(w)}})})]}):(0,k.jsx)(k.Fragment,{})};function At(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),[r,a]=(0,l.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,p=t.width,h=t.height,v=t.title,x=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,k.jsx)(Rt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:h}):(0,k.jsxs)(T.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:r?it.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==n?"Annuler":"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",backgroundColor:x?(0,ot.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(n)+" !important"},children:["\xa0",v,"\xa0"]}),x?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function Rt(t){const[e]=(0,u.QN)("whatmoreSecondaryColor"),[i]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),[n,r]=(0,l.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,k.jsx)(B.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,k.jsx)(T.az,{className:"whatmore-add-to-cart-initial-button",width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),r(!0)},animation:n?it.jd:null,onAnimationEnd:()=>{r(!1)},cursor:"pointer",zIndex:"1000",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.Hfu)(o)} !important`},children:(0,c.KPq)(o)})})})})})}function Dt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,k.jsx)(T.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.2*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ot(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,k.jsx)(T.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=n&&"55194878152"!=n&&"12181504100"!=n?(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}}):(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Wt=function(t){var e,i,o,n;const[r]=(0,u.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,p=t.cartCount,h=t.onClickAtc,v=t.onCartIconClick;function x(){h()}const g=null!==(o=t.width)&&void 0!==o?o:"100%",m=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==c?(0,k.jsx)(Dt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==p?(0,k.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,k.jsx)(Ot,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:p,width:g,height:m,onCartIconClick:v}):(0,k.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,k.jsx)(At,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Mt=function(t){var e,i,o,n,r,a;const[d]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x]=(0,u.QN)("whatmorePrimaryFont"),[g]=(0,u.QN)("whatmoreShopId"),[m,f,w,C]=(0,p.A)(),[y,j]=(0,l.useState)(!1),[S,I]=(0,l.useState)(t.product),_=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E}=(0,l.useContext)(b.BR),[z,F]=(0,l.useState)(null),[P,N]=(0,l.useState)(parseFloat(S.price)),[L,R]=(0,l.useState)(parseFloat(S.compare_price)),[O,W]=(0,l.useState)(S.currency),[M,H]=(0,l.useState)(null),Q=t.event,V=t.productClickHandler,[X,U]=(0,l.useState)(null),[$,Y]=(0,l.useState)(!1),[q,K,G,Z,J,tt,et,at]=t.useAddToCartStatesInstance,dt=t.productCartCounts&&t.productCartCounts[S.product_id]?t.productCartCounts[S.product_id]:q.cart_count,ut=(null===E||void 0===E?void 0:E.landingLocationType)||"index",pt=(null===E||void 0===E?void 0:E.templateType)||"template-a",ht=(0,kt.Wd)(ut)+(0,kt.gf)(pt)+"_"+(null===Q||void 0===Q?void 0:Q.event_id);(0,l.useEffect)(()=>{(0,c.w4b)(g)?(0,St.ck)(S,(0,c.NCy)(g),g).then(t=>{I(t),N(parseFloat(t.price)),R(parseFloat(t.compare_price)),W(t.currency),Y(!0)}):(async()=>{var t,e,i,o,n,r;const l=await(0,h.M)(S,(0,c.NCy)(g),g);H(l),N((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),R((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),Y(!0)})(),!(0,c.E8r)(g)||null!==Q&&void 0!==Q&&Q.in_stock||G("errored")},[]),(0,l.useEffect)(()=>{var t,e;const i=null!=M?null===M||void 0===M||null===(t=M.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===M||void 0===M||null===(e=M.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===M||void 0===M||null===(r=M.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));U({position:i,finalArr:o,finalArrExternal:n})},[M]);var vt=.72*C,xt=.37*vt,gt=vt*(.48-.37),mt=.95*vt+"px",ft=xt+"px",wt=.12*xt;function Ct(){window.location.href=function(t){return(0,c.BLb)(g)?t.product_link+"?"+(0,c.VCz)(g)+"&"+(0,c.Spk)(g)+"&"+(0,c.$lz)(g):t.product_link}(S)}return(0,k.jsx)(B.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:nt,marginBottom:"24px",width:mt,boxShadow:"round"==_?"dark-lg":null,onClick:()=>{!function(t,e){d||v||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==g?Ct():V(e),j(!0)}(Q,S)},backgroundColor:(0,ot.YU)("#ffffff",(0,c.p2R)(g)),animation:y?it.jd:null,borderRadius:"round"==_?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(g),borderColor:(0,c.Fwt)(g)},children:(0,k.jsxs)(B.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,k.jsx)(T.az,{height:ft,width:ft,children:(0,k.jsx)(D._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===X||void 0===X||null===(o=X.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===z||void 0===z?void 0:z[null===X||void 0===X?void 0:X.position])))||void 0===n?void 0:n.src)&&void 0!==i?i:null===X||void 0===X||null===(r=X.finalArrExternal)||void 0===r||null===(a=r.find(t=>(null===t||void 0===t?void 0:t.color)==(null===z||void 0===z?void 0:z[null===X||void 0===X?void 0:X.position])))||void 0===a?void 0:a.src)&&void 0!==e?e:S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(g)+" !important"}})}),(0,k.jsx)(T.az,{height:ft,width:vt-xt+"px",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,k.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,st.v)(null==S.title?"":S.title.toString())}),(0,c.Nzx)(g)?(0,k.jsxs)(B.B,{direction:(0,c.vw2)(g)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[$&&(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(g)+"px !important",lineHeight:"100%",sx:{fontFamily:x+" !important",color:(0,c.uoB)(g)+" !important",fontWeight:"bold"},children:[" "+(0,St.Sb)(null!==P&&void 0!==P?P:null===S||void 0===S?void 0:S.price,"",g,O)," \xa0"]}),(0,ct.P)(P,L)&&$?(0,k.jsxs)(A.E,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(g)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.gld)(g)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,St.Sb)(null!==L&&void 0!==L?L:null===S||void 0===S?void 0:S.compare_price,"",g,O)]}):(0,k.jsx)(k.Fragment,{})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(Wt,{baseFontSize:.3*gt,event:Q,product:S,cartState:q.state,cartCount:dt,updateCartState:G,onClickAtc:t=>{"init"===q.state?(J(ht,!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:E,event:Q,productList:[S],ctaList:Q.cta})):"awaitingVariantSelection"===q.state&&V(S)},onCartIconClick:t=>{at()}})]})})]})})};function Ht(t){var e,i,o;const[n]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(!1),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,h=t.width,v=t.height,x=t.title,g=t.showInProgressIcon;return(0,k.jsxs)(T.az,{display:"flex",width:h,height:v,gap:"8px",animation:d?it.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,k.jsx)(B.B,{direction:"row",flex:"1",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",backgroundColor:"transparent",border:"1px solid #b5b5b5",borderRadius:"8px",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*c+"px !important",fontWeight:"500 !important",sx:{fontFamily:r+" !important",color:"#1a1a1a !important"},children:["\xa0",null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,k.jsxs)(B.B,{direction:"row",flex:"1",backgroundColor:g?"#3a3a3a":"#1a1a1a",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",borderRadius:"8px",onClick:t=>{t.stopPropagation(),p(),s(!0)},children:[(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*c+"px !important",fontWeight:"500 !important",sx:{fontFamily:r+" !important",color:"#ffffff !important"},children:["\xa0",x,"\xa0"]}),g?(0,k.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,k.jsx)(ht.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,k.jsx)(k.Fragment,{})]})]})}function Qt(t){var e,i,o,n,r;const[a]=(0,u.QN)("whatmoreSecondaryColor"),[d]=(0,u.QN)("whatmorePrimaryFont"),[s]=(0,u.QN)("whatmoreShopId"),[p,h]=(0,l.useState)(!1),v=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,f=null!==(i=t.borderRadius)&&void 0!==i?i:"7px",w=null!==(o=t.paddingY)&&void 0!==o?o:"10px";return(0,k.jsx)(T.az,{width:g,height:m,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(s)?a:(0,c.Wc_)(s),borderRadius:f,onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:p?it.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:w,children:(0,k.jsx)(F.o,{maxWidth:"90%",children:(0,k.jsxs)(A.E,{lineHeight:"100%",fontSize:1.2*v+"px !important",fontWeight:"semibold !important",sx:{fontFamily:d+" !important",color:(0,c.Hfu)(s)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(s)?(0,c.KPq)(s):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===r?void 0:r.add_to_cart)&&void 0!==n?n:(0,c.KPq)(s),"\xa0"]})})})})}function Vt(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,k.jsx)(T.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,k.jsxs)(A.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Xt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,s=t.height,p=t.onCartIconClick;return(0,k.jsx)(T.az,{width:d,height:s,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:(0,c.DiI)(n)?()=>{p()}:void 0,children:(0,c.DiI)(n)?(0,k.jsx)(vt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,k.jsx)(A.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,k.jsx)(pt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,k.jsx)(A.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,k.jsx)(ut.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ut=function(t){var e,i,o,n,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,k.jsx)(Vt,{baseFontSize:s,width:m,height:f}):"init"==p?0==h?(0,k.jsx)(Qt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):c?(0,k.jsx)(Xt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,k.jsx)(Qt,{onClick:g,baseFontSize:s,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):(0,k.jsx)(Ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===G.m4||void 0===G.m4||null===(a=G.m4[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})};var $t=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[n]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[a,d,v,x]=(0,p.A)(),[m,f]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,l.useContext)(b.BR),{closeClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(null),[S,I]=(0,l.useState)(parseFloat(m.price)),[_,E]=(0,l.useState)(parseFloat(m.compare_price)),[z,F]=(0,l.useState)(null===m||void 0===m?void 0:m.title),[T,P]=(0,l.useState)(m.currency),[N,L]=(0,l.useState)(!1),[B,A]=(0,l.useState)(!1),[R]=(0,u.QN)("whatmoreSecondaryColor"),[D,O,W,M,H,Q,V,X]=t.useAddToCartStatesInstance,U=t.productCartCounts&&t.productCartCounts[m.product_id]?t.productCartCounts[m.product_id]:D.cart_count,$=t.event,Y=t.productClickHandler;if((0,l.useEffect)(()=>{(0,c.w4b)(r)?(0,St.ck)(m,(0,c.NCy)(r),r).then(t=>{f(t),I(parseFloat(t.price)),E(parseFloat(t.compare_price)),P(t.currency),L(!0)}).catch(t=>{L(!0)}):(async()=>{try{var t,e,i,o,n,l,a,d;const s=await(0,h.M)(m,(0,c.NCy)(r),r);I((null!==(t=null===s||void 0===s||null===(e=s.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===s||void 0===s?void 0:s.price)/100),E(("63836192926"===r?null!==(o=null!==s&&void 0!==s&&null!==(n=s.variants)&&void 0!==n&&n[0]?s.variants[0].compare_at_price:null===s||void 0===s?void 0:s.compare_at_price)&&void 0!==o?o:0:null!==(l=null===s||void 0===s||null===(a=s.variants)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.compare_at_price)&&void 0!==l?l:null===s||void 0===s?void 0:s.compare_at_price)/100),L(!0)}catch(s){L(!0)}})()},[]),!N)return(0,k.jsx)(k.Fragment,{});const q=.765*x,K=(null===$||void 0===$||null===(e=$.products)||void 0===e?void 0:e.length)>1?.85*q:q,G=.198*K,Z=.0315*x,J=1.05*Z,tt=Number((0,c.rh$)(r)),et=.85*Z*(isNaN(tt)||0===tt?1:tt),it=.75*Z,ot=(0,c.XQu)(r),nt=(()=>{if((0,ct.P)(S,_)){const t=(_-S)/_*100;return Math.round(t)}return null})(),at=(0,c.fpt)(r),dt=at||R,ut=(pt=dt,ht=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${ht})`);var pt,ht;function vt(t){return(0,c.BLb)(r)?t.product_link+"?"+(0,c.VCz)(r)+"&"+(0,c.Spk)(r)+"&"+(0,c.$lz)(r):t.product_link}function xt(){window.location.href=vt(m)}function gt(t,e){const n="75310563627"==r||"87857266990"==r||"65972830359"==r||"5032640601"==r||"53425012925"==r;i||o||(async()=>{(0,s.increaseEventProductClickCount)(t,e),n&&(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:t,productList:[e],ctaList:t.cta})})(),"72550089015"==r||n?xt():Y(e)}const mt=(null===w||void 0===w?void 0:w.landingLocationType)||"index",ft=(null===w||void 0===w?void 0:w.templateType)||"template-a",wt=(0,kt.Wd)(mt)+(0,kt.gf)(ft)+(null!==$&&void 0!==$&&$.isRelatedEvent?"R":"E")+"_"+(null===$||void 0===$?void 0:$.event_id);return(0,k.jsx)("div",{style:{width:K+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:B?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},onClick:()=>{if("22907887"===r)return console.log("product.product_link : ",m.product_link),void(window.location.href=m.product_link);gt($,m)},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:(0,k.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,k.jsx)("div",{style:{width:G+"px",height:G+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,k.jsx)("img",{src:(0,yt.b)(m.thumbnail_image),alt:m.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,k.jsxs)("div",{style:{flex:1},children:[(0,k.jsx)("h3",{className:"whatmore-premium-tile-title",ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{fontSize:1*J+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:(0,st.v)(z,"prod-tile")}),(0,c.Nzx)(r)&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[N&&(0,k.jsx)("span",{className:"whatmore-premium-tile-price",ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:1.2*et+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==S&&void 0!==S?S:null===m||void 0===m?void 0:m.price,"",r,T)+("5032640601"===r?" USD":"")}),(0,ct.P)(S,_)&&N&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:et+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==_&&void 0!==_?_:null===m||void 0===m?void 0:m.compare_price,"",r,T)+("5032640601"===r?" USD":"")}),nt&&(0,c.mOK)(r)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",n,"important"),t.style.setProperty("color",dt,"important"),t.style.setProperty("background-color",ut,"important"))},style:{fontSize:.9*et+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[nt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==D.state&&null!=M&&(0,k.jsx)("div",{style:{width:"100%",maxHeight:.3*K*ot+"px",overflowY:"auto",overflowX:"hidden",marginTop:"10px",marginBottom:"10px",padding:"8px",backgroundColor:"rgba(248, 248, 248, 0.8)",borderRadius:"8px",border:"1px solid #e0e0e0"},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",event:$,product:m,productVariantOptions:M,baseFontSize:.9*Z,onOptionSelected:t=>{!function(t){j(t);const e=V(t);e&&(I(e.price/100),E(e.compare_price/100),e.title.includes(" ")&&F(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,k.jsx)("div",{className:"whatmore-premium-tile-atc",style:{width:"100%"},children:"5032640601"===r||"53425012925"===r?(0,k.jsx)(Nt,{baseFontSize:1.1*it,event:$,product:m,borderRadius:"md",onShopNowClick:t=>{t&&t.stopPropagation&&t.stopPropagation(),i||o||((0,s.increaseEventProductClickCount)($,m),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta})),window.location.href=vt(m)}}):(0,k.jsx)(Ut,{baseFontSize:1.1*it,setProductVariantTitle:F,product:m,cartState:D.state,cartCount:U,updateCartState:W,isPremium:!0,onClickAtc:t=>{var e;if(t&&t.stopPropagation&&t.stopPropagation(),"87433380130"===r||"64527597748"===r)return(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta}),null===(e=document.getElementById("_rsi-buy-now-button"))||void 0===e||e.click(),void("function"===typeof C&&C());"22907887"!==r&&"72603631788"!==r&&"5220302897"!==r&&"57217876118"!==r?"init"==D.state?(H(wt),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:$,productList:[m],ctaList:$.cta})):"awaitingVariantSelection"==D.state&&(Q(y,wt),F(null===m||void 0===m?void 0:m.title)):gt($,m)},onCartIconClick:()=>{X()}})})]})})};var Yt=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[n]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[a,d,v,x]=(0,p.A)(),[g,m]=(0,l.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,l.useContext)(b.BR),[w,C]=(0,l.useState)(null),[y,j]=(0,l.useState)(parseFloat(g.price)),[S,I]=(0,l.useState)(parseFloat(g.compare_price)),[_,E]=(0,l.useState)(null===g||void 0===g?void 0:g.title),[z,F]=(0,l.useState)(g.currency),[T,P]=(0,l.useState)(!1),[N,L]=(0,l.useState)(!1),[B]=(0,u.QN)("whatmoreSecondaryColor"),[A,R,D,O,W,M,H,Q]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:A.cart_count,X=t.event,U=t.productClickHandler;if((0,l.useEffect)(()=>{(0,c.w4b)(r)?(0,St.ck)(g,(0,c.NCy)(r),r).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),F(t.currency),P(!0)}).catch(t=>{P(!0)}):(async()=>{try{var t,e,i,o,n,l;const a=await(0,h.M)(g,(0,c.NCy)(r),r);j((null!==(t=null===a||void 0===a||null===(e=a.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===a||void 0===a?void 0:a.price)/100),I((null!==(o=null===a||void 0===a||null===(n=a.variants)||void 0===n||null===(l=n[0])||void 0===l?void 0:l.compare_at_price)&&void 0!==o?o:null===a||void 0===a?void 0:a.compare_at_price)/100),P(!0)}catch(a){P(!0)}})()},[]),!T)return(0,k.jsx)(k.Fragment,{});const $=.765*x,Y=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*$:$,q=.0315*x,K=1.05*q,G=Number((0,c.rh$)(r)),Z=.85*q*(isNaN(G)||0===G?1:G),J=.75*q,tt=(0,c.XQu)(r),et=Number(tt),it=Math.max(240,Number.isFinite(et)?.3*Y*et:0),ot=(()=>{if((0,ct.P)(y,S)){const t=(S-y)/S*100;return Math.round(t)}return null})(),nt=(0,c.fpt)(r),at=nt||B,dt=(ut=at,pt=.15,`rgba(${parseInt(ut.slice(1,3),16)}, ${parseInt(ut.slice(3,5),16)}, ${parseInt(ut.slice(5,7),16)}, ${pt})`);var ut,pt;function ht(){window.location.href=function(t){return(0,c.BLb)(r)?t.product_link+"?"+(0,c.VCz)(r)+"&"+(0,c.Spk)(r)+"&"+(0,c.$lz)(r):t.product_link}(g)}function vt(t,e){i||o||(async()=>{(0,s.increaseEventProductClickCount)(t,e)})(),"72550089015"==r?ht():U(e)}const xt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",gt=(null===f||void 0===f?void 0:f.templateType)||"template-a",mt=(0,kt.Wd)(xt)+(0,kt.gf)(gt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id),ft=Math.min(Y,480),wt=.3*ft,Ct=.46*ft,bt=(0,k.jsx)(Ut,{baseFontSize:1.1*J,setProductVariantTitle:E,product:g,cartState:A.state,cartCount:V,updateCartState:D,isPremium:!0,borderRadius:"2px",paddingY:"6px",onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==r&&"72603631788"!==r&&"5220302897"!==r&&"57217876118"!==r?"init"==A.state?(W(mt),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==A.state&&(M(w,mt),E(null===g||void 0===g?void 0:g.title)):vt(X,g)},onCartIconClick:()=>{Q()}});return(0,k.jsxs)("div",{style:{width:Y+"px",maxWidth:"480px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.4)",backdropFilter:"blur(12px)",border:"none",borderRadius:"4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",position:"relative",zIndex:10},onClick:()=>{if("22907887"===r)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);vt(X,g)},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"stretch",width:"100%"},children:[(0,k.jsx)("div",{style:{width:wt+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8"},children:(0,k.jsx)("img",{src:(0,yt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:"12px",padding:"16px 18px"},children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",n,"important")},style:{fontSize:1*K+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,st.v)(_,"prod-tile")}),(0,c.Nzx)(r)&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"nowrap",minWidth:0,overflow:"hidden",whiteSpace:"nowrap"},children:[T&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:1.2*Z+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==y&&void 0!==y?y:null===g||void 0===g?void 0:g.price,"",r,z)}),(0,ct.P)(y,S)&&T&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(r),"important"),t.style.setProperty("font-family",n,"important"))},style:{fontSize:Z+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==S&&void 0!==S?S:null===g||void 0===g?void 0:g.compare_price,"",r,z)}),ot&&(0,c.mOK)(r)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",n,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*Z+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[ot,"% OFF"]})]})]}),"awaitingVariantSelection"!=A.state&&(0,k.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,k.jsx)("div",{style:{width:Ct+"px",maxWidth:"100%"},children:bt})})]})]}),"awaitingVariantSelection"==A.state&&null!=O&&(0,k.jsxs)("div",{style:{width:"100%",backgroundColor:"rgba(248, 248, 248, 0.8)",borderTop:"1px solid #e0e0e0",boxSizing:"border-box"},children:[(0,k.jsx)("div",{style:{width:"100%",padding:"4px 16px 0",boxSizing:"border-box"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:(0,k.jsx)(jt,{width:"100%",height:"fit-content",maxHeight:it+"px",event:X,product:g,productVariantOptions:O,baseFontSize:.9*q,onOptionSelected:t=>{!function(t){C(t);const e=H(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&E(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px 16px 12px",boxSizing:"border-box"},children:(0,k.jsx)("div",{style:{width:Ct+"px",maxWidth:"100%"},children:bt})})]})]})};var qt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreShopId"),[n,r,a,d]=(0,p.A)(),h=t.product,v=t.event,{whatmoreWidgetSourceDetails:x}=(0,l.useContext)(b.BR),[g,m,f,w,C,y,j,S]=t.useAddToCartStatesInstance,I=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:g.cart_count,_=(null===x||void 0===x?void 0:x.landingLocationType)||"index",E=(null===x||void 0===x?void 0:x.templateType)||"template-a",z=(0,kt.Wd)(_)+(0,kt.gf)(E)+"_"+(null===v||void 0===v?void 0:v.event_id);(0,l.useEffect)(()=>{!(0,c.E8r)(o)||null!==v&&void 0!==v&&v.in_stock||f("errored")},[]);const F=.1*a,P=.95*d,N=.04*d;return(0,k.jsx)(B.B,{direction:"row",height:F,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",className:"chakra-stack whatmore-minimal-atc-outer",children:(0,k.jsx)(B.B,{direction:"column",width:"fit-content",height:F,justifyContent:"center",alignItems:"center",alignContent:"center",className:"chakra-stack whatmore-minimal-atc-inner",children:(0,k.jsx)(T.az,{width:P+"px",height:"fit-content",marginTop:"35px",marginBottom:"10px",display:"flex",justifyContent:"center",alignItems:"center",className:"whatmore-minimal-atc-button-container",children:(0,k.jsx)(Wt,{baseFontSize:N,event:v,product:h,cartState:g.state,cartCount:I,updateCartState:f,onClickAtc:t=>{"init"===g.state&&(e||i||(async()=>{(0,s.increaseEventProductClickCount)(v,h),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:x,event:v,productList:[h],ctaList:v.cta})})(),C(z,!0))},onCartIconClick:t=>{S()}})})})})};const Kt="#E0531D",Gt="#2B2622",Zt="#9A9089",Jt="'Plus Jakarta Sans', system-ui, sans-serif";var te=function(t){var e,i,o,n,r,a;const[d]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x]=(0,u.QN)("whatmoreShopId"),[,,,g]=(0,p.A)(),[m,f]=(0,l.useState)(t.product),[w,C]=(0,l.useState)(parseFloat(null===(e=t.product)||void 0===e?void 0:e.price)),[y,j]=(0,l.useState)(parseFloat(null===(i=t.product)||void 0===i?void 0:i.compare_price)),[S,I]=(0,l.useState)(null===(o=t.product)||void 0===o?void 0:o.currency),[_,E]=(0,l.useState)(!1),z=t.event,{whatmoreWidgetSourceDetails:F}=(0,l.useContext)(b.BR),[T,,P,,N,,,L]=t.useAddToCartStatesInstance,B=t.productCartCounts&&t.productCartCounts[m.product_id]?t.productCartCounts[m.product_id]:T.cart_count,A=(null===F||void 0===F?void 0:F.landingLocationType)||"index",R=(null===F||void 0===F?void 0:F.templateType)||"template-a",D=(0,kt.Wd)(A)+(0,kt.gf)(R)+"_"+(null===z||void 0===z?void 0:z.event_id);(0,l.useEffect)(()=>{!(0,c.E8r)(x)||null!==z&&void 0!==z&&z.in_stock||P("errored")},[]),(0,l.useEffect)(()=>{(0,c.w4b)(x)?(0,St.ck)(m,(0,c.NCy)(x),x).then(t=>{f(t),C(parseFloat(t.price)),j(parseFloat(t.compare_price)),I(t.currency),E(!0)}).catch(t=>{E(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,h.M)(m,(0,c.NCy)(x),x);C((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),j((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),E(!0)}catch(l){E(!0)}})()},[]);const O=null!==(n=t.tileWidthFactor)&&void 0!==n?n:.64,W=Math.min(300,Math.max(200,g*O)),M=(0,ct.P)(w,y),H=(0,St.Sb)(null!==w&&void 0!==w?w:null===m||void 0===m?void 0:m.price,"",x,S),Q=M?(0,St.Sb)(null!==y&&void 0!==y?y:null===m||void 0===m?void 0:m.compare_price,"",x,S):null,V=M?Math.round(100*(1-Number(w)/Number(y))):0,X=T.state,U="errored"===X,$="productVariantDetailsApiCallInProgress"===X||"awaitingVariantSelection"===X||"atcApiCallInProgress"===X,Y=!$&&!U&&B>0;let q="\uff0b Add";$?q="Adding\u2026":Y?q="\u2713 Added":U&&(q="Sold out");const K={width:"100%",height:"38px",border:Y?`1.5px solid ${Kt}`:U?"1px solid #E0DAD1":"none",borderRadius:"10px",background:U?"#EDEAE5":Y?"#FFFFFF":Kt,color:U?Zt:Y?Kt:"#FFFFFF",fontFamily:Jt,fontSize:"13px",fontWeight:700,letterSpacing:"0.01em",cursor:U?"default":"pointer",opacity:$?.75:1,transition:"background 0.2s ease, color 0.2s ease, border 0.2s ease",WebkitTapHighlightColor:"transparent"},G=(null===m||void 0===m?void 0:m.thumbnail_image)||(null===z||void 0===z?void 0:z.poster_image);return _?(0,k.jsxs)("div",{className:"whatmore-multiproduct-tile",style:{width:W+"px",background:"#FFFFFF",borderRadius:"16px",overflow:"hidden",boxShadow:"0 6px 20px rgba(43,38,34,0.14)",fontFamily:Jt,boxSizing:"border-box",display:"flex",flexDirection:"column"},children:[(0,k.jsx)("div",{style:{width:"100%",aspectRatio:"16 / 9",background:"#F1ECE5",overflow:"hidden"},children:G&&(0,k.jsx)("img",{src:G,alt:null!==(r=null===m||void 0===m?void 0:m.title)&&void 0!==r?r:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{padding:"11px 12px 12px",display:"flex",flexDirection:"column",gap:"8px"},children:[(0,k.jsx)("div",{style:{fontSize:"13px",fontWeight:600,lineHeight:1.3,color:Gt,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",minHeight:"34px"},children:null!==(a=null===m||void 0===m?void 0:m.title)&&void 0!==a?a:""}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px"},children:[(0,k.jsx)("span",{style:{fontSize:"14.5px",fontWeight:700,color:Gt},children:H}),Q&&(0,k.jsx)("span",{style:{fontSize:"11.5px",color:Zt,textDecoration:"line-through"},children:Q}),V>0&&(0,k.jsxs)("span",{style:{fontSize:"10px",fontWeight:700,color:Kt,background:"#FCE9E1",padding:"2px 6px",borderRadius:"6px",lineHeight:1.2,whiteSpace:"nowrap"},children:[V,"% off"]})]}),(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),U||$||Y?Y&&L():"init"===X&&(d||v||(async()=>{(0,s.increaseEventProductClickCount)(z,m),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:z,productList:[m],ctaList:null===z||void 0===z?void 0:z.cta})})(),N(D,!0))},disabled:U,style:K,children:q})]})]}):(0,k.jsx)(k.Fragment,{})};var ee=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i]=(0,u.QN)("isWhatmoreWebsite"),o=(0,c.Vpi)(e);if("shopify"==(0,c.NCy)(e)&&(0,tt.NX)(t.product))return(0,k.jsx)(at,{product:t.product,event:t.event,nonProductRedirect:!0});const n=t.event,r=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...p]=(0,Ct.A)(0,r,t.event),h=[s,...p];return(0,l.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(r.product_id,t)},[s.cart_count]),i?(0,k.jsx)(Bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,k.jsx)($t,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"multi-product-tile"==o?(0,k.jsx)(te,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"navigation-tile"==o?(0,k.jsx)(Yt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"broad-tile"==o?(0,k.jsx)(_t,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"broad-tile-no-cta"==o?(0,k.jsx)(Bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,k.jsx)(Mt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"link_only"==o?(0,k.jsx)(at,{product:t.product,event:t.event}):"minimal_atc_button"==o?(0,k.jsx)(qt,{product:t.product,event:t.event,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):"narrow-tile"==o?(0,k.jsx)(Lt,{event:n,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:n.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:h}):(0,k.jsx)(k.Fragment,{})};var ie=function(t){var e,i;const[o]=(0,u.QN)("isInDesignMode"),[n]=(0,u.QN)("isDemoBrand"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d]=(0,u.QN)("whatmoreSecondaryColor"),[,,,s]=(0,p.A)(),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),{closeClickComponent:v}=(0,l.useContext)(g.p),x=t.event,m=null!==(e=null===x||void 0===x?void 0:x.products)&&void 0!==e?e:[],f=t.productClickHandler,[w,C]=(0,l.useState)(0),y=null!==(i=m[w])&&void 0!==i?i:m[0],[j,S,I,_,E,z,F,T]=(0,Ct.A)(0,y,x),[P,N]=(0,l.useState)(parseFloat(null===y||void 0===y?void 0:y.price)),[L,B]=(0,l.useState)(parseFloat(null===y||void 0===y?void 0:y.compare_price)),[A,R]=(0,l.useState)(null===y||void 0===y?void 0:y.title),[D,O]=(0,l.useState)(null===y||void 0===y?void 0:y.currency),[W,M]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{if(y&&(I("init"),R(y.title),O(y.currency),N(parseFloat(y.price)),B(parseFloat(y.compare_price)),M(!(0,c.w4b)(a)),(0,c.w4b)(a))){let t=!1;return(0,St.ck)(y,(0,c.NCy)(a),a).then(e=>{t||(N(parseFloat(e.price)),B(parseFloat(e.compare_price)),O(e.currency),M(!0))}).catch(()=>{t||M(!0)}),()=>{t=!0}}},[w]),(0,l.useEffect)(()=>{"awaitingVariantSelection"===j.state&&(f(y),I("init"))},[j.state]),!y)return(0,k.jsx)(k.Fragment,{});const H=.765*s,Q=.185*H,V=.0315*s,X=1.05*V,U=Number((0,c.rh$)(a)),$=.85*V*(isNaN(U)||0===U?1:U),Y=.75*V,q=.36*H,K=2.4*Y,G=(0,ct.P)(P,L)?Math.round((L-P)/L*100):null,Z=(0,c.fpt)(a),J=Z||d,tt=(et=J,it=.15,`rgba(${parseInt(et.slice(1,3),16)}, ${parseInt(et.slice(3,5),16)}, ${parseInt(et.slice(5,7),16)}, ${it})`);var et,it;const ot=(null===h||void 0===h?void 0:h.landingLocationType)||"index",nt=(null===h||void 0===h?void 0:h.templateType)||"template-a",at=(0,kt.Wd)(ot)+(0,kt.gf)(nt)+(null!==x&&void 0!==x&&x.isRelatedEvent?"R":"E")+"_"+(null===x||void 0===x?void 0:x.event_id);return(0,k.jsxs)("div",{style:{width:H+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},children:[(0,k.jsx)("div",{style:{display:"flex",gap:"10px",overflowX:"auto",paddingBottom:"2px",marginBottom:"14.4px",scrollbarWidth:"none"},children:m.map((t,e)=>{const i=e===w;return(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),C(e)},style:{width:Q+"px",height:Q+"px",flexShrink:0,cursor:"pointer",overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:i?`2px solid ${d}`:"1px solid #f0f0f0",padding:i?"2px":"0",transition:"border-color 0.15s ease"},children:(0,k.jsx)("img",{src:(0,yt.b)(t.thumbnail_image),alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"9px"}})},x.event_id+"_"+t.product_id)})}),(0,k.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:X+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,st.v)(A,"prod-tile")}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px",width:"100%"},children:[(0,c.Nzx)(a)&&W&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap",flex:1,minWidth:0},children:[(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*$+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,St.Sb)(null!==P&&void 0!==P?P:null===y||void 0===y?void 0:y.price,"",a,D)}),(0,ct.P)(P,L)&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:$+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,St.Sb)(null!==L&&void 0!==L?L:null===y||void 0===y?void 0:y.compare_price,"",a,D)}),G&&(0,c.mOK)(a)&&(0,k.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",J,"important"),t.style.setProperty("background-color",tt,"important"))},style:{fontSize:.9*$+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[G,"% OFF"]}),"75000480020"===a&&(0,k.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,c.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:.72*$+"px",fontWeight:"400",letterSpacing:"0.2px",whiteSpace:"nowrap"},children:"(Incl. of all taxes)"})]}),(0,k.jsx)("div",{style:{flexShrink:0,width:q+"px",height:K+"px",borderRadius:K/2+"px",overflow:"hidden",boxShadow:"0 4px 12px rgba(0,0,0,0.18)"},children:(0,k.jsx)(wt,{baseFontSize:.82*Y,width:"100%",height:"100%",setProductVariantTitle:R,product:y,cartState:j.state,cartCount:j.cart_count,updateCartState:I,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"init"==j.state&&(E(at),o||n||(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:x,productList:[y],ctaList:x.cta}))},onCartIconClick:()=>{T()}})})]})]})},oe=i(2058),ne=i(4694);const re=t=>{var e;return!!t&&""!==(null!==(e=t.cta_link)&&void 0!==e?e:"").trim()&&!/whatmore\.ai/i.test(t.cta_link)};var le=function(t){var e,i,o;const[n,r,s,h]=(0,p.A)(),[v]=(0,u.QN)("whatmoreShopId"),x=(0,u.Xd)("isInDesignMode"),g=(0,u.Xd)("isDemoBrand"),m=t.event,f=t.productClickHandler,w=t.productCartCounts,C=t.onCartCountChange,y=t.onActiveProductChange,b=(0,c.Vpi)(v),j="navigation-tile"==b,S=(0,l.useRef)(null),I=(0,l.useRef)(null),[_,E]=(0,l.useState)(80);(0,l.useEffect)(()=>{if(!I.current)return;let t=!1;const e=new ResizeObserver(i=>{var o,n;if(t)return;const r=null===(o=i[0])||void 0===o||null===(n=o.contentRect)||void 0===n?void 0:n.height;r&&r>40&&(t=!0,E(r),e.disconnect())});return e.observe(I.current),()=>e.disconnect()},[]);const z=20+_+"px",P=h<600?"0":"30px",N=("STRDOIDF6O7"===v?[t.event.products[0]]:t.event.products).filter(t=>"oos"!=t.product_status||(0,c.$7F)(v)).length,L=(0,c.Woi)(v)&&void 0!=t.event.cta?t.event.cta.filter(re).length:0,A=j&&N+L>1,R=null!==(e=null===(i=m.products)||void 0===i||null===(o=i.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===o?void 0:o.length)&&void 0!==e?e:0;if(!(0,tt.Z_)(m))return(0,k.jsx)(k.Fragment,{});var D;if("thumbnail-strip-tile"==b&&m.products.length>0)return(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:m.products,triggerFlag:!x&&!g&&(null===(D=t.isPlaying)||void 0===D||D),children:(0,k.jsx)(F.o,{children:(0,k.jsx)(ie,{event:m,productClickHandler:f,productCartCounts:w,onCartCountChange:C})})})});if(1==m.products.length&&(void 0==m.cta||0==m.cta.length)){const e=m.products[0];var O,W;return(0,c.uJl)(v)?(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(O=t.isPlaying)||void 0===O||O),children:(0,k.jsx)(F.o,{children:(0,k.jsx)(Lt,{event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})}):(0,k.jsx)(B.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,k.jsx)(F.o,{children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(W=t.isPlaying)||void 0===W||W),children:(0,k.jsx)(ee,{activeProductsCount:1,event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})})}return(0,k.jsx)(F.o,{children:(0,k.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,k.jsxs)(T.az,{width:h+"px",position:"relative",display:"flex",alignItems:"flex-end",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:[A&&(0,k.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=S.current)||void 0===e||e.slidePrev()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:z,marginBottom:P,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Previous product",children:(0,k.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{d:"M9 3L3 12L9 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,k.jsx)("div",{style:{flex:"1 1 auto",minWidth:0,overflow:"hidden"},children:(0,k.jsxs)(a.RC,{className:"product-tile swiper-slide",slidesPerView:1==m.products.length?1:A?1.15:1.4,spaceBetween:A?12:0,initialSlide:0,centeredSlides:!A&&!(0,c.TYM)(v),modules:[d.s3,d.Jq,d.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,onSwiper:t=>{S.current=t},onSlideChange:t=>{y&&y(t.activeIndex)},children:[("STRDOIDF6O7"===v?[m.products[0]]:m.products).map((e,i)=>{var o;return("oos"!=e.product_status||(0,c.$7F)(v))&&(0,k.jsx)(a.qr,{children:(0,k.jsx)(ne.S,{userInteractionType:lt.O.PRODUCT_CTA_VIEW,event:m,productList:[e],triggerFlag:!x&&!g&&(null===(o=t.isPlaying)||void 0===o||o),children:(0,k.jsx)(B.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",paddingBottom:A?"20px":"0",children:(0,k.jsx)("div",{ref:0===i?I:null,children:(0,k.jsx)(ee,{activeProductsCount:R,event:m,product:e,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+e.product_id)})})})},m.event_id+e.product_id)}),(0,c.Woi)(v)&&void 0!=m.cta&&m.cta.map(t=>(0,k.jsx)(k.Fragment,{children:re(t)&&(0,k.jsx)(a.qr,{children:(0,k.jsx)(B.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,k.jsx)(oe.A,{fontFactor:.75,cta:t},m.event_id+t.cta_id)})},m.event_id+t.cta_id)}))]})}),A&&(0,k.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=S.current)||void 0===e||e.slideNext()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:z,marginBottom:P,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Next product",children:(0,k.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{d:"M3 3L9 12L3 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})};var ae=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),o=t.event,n=t.productClickHandler,r=t.productCartCounts,a=t.onCartCountChange,d=t.onActiveProductChange;return(0,l.useContext)(g.p).isIOS,(0,k.jsx)(le,{event:o,isPlaying:t.isPlaying,productClickHandler:n,productCartCounts:r,onCartCountChange:a,onActiveProductChange:d},o.event_id)};function de(t){const[e,i,o,n]=(0,p.A)(),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,s]=(0,l.useState)(""),h=t.data,v=(t.event,t.product,t.setShowOptionsChart);var x=.4*n*.8*.13;(0,l.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,i,o,n,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.layout)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const g=`${W.i7`
69
69
  0% {
70
70
  transform: translateY(100%);
71
71
  }
72
- `} 0.5s`;return(0,k.jsx)(B.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,k.jsxs)(T.az,{width:"100%",height:"100%",children:[(0,k.jsx)(D._,{width:"100%",height:"auto",src:(0,c.JAc)(a)?d:(0,c.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,k.jsx)(B.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),v(!1)},cursor:"pointer",padding:"4px",children:(0,k.jsx)($.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*x,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var de=i(8538),se=i(9740),ce=i(1112),ue=i(7028),pe=i(8513);function he(t){var e;const[i,o]=(0,l.useState)(null),n=t.product;return(0,l.useEffect)(()=>{(0,pe.tN)(n).then(t=>{o(t.variants)})},[]),null==i?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,k.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,k.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,k.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,k.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,k.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,k.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,k.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function ve(t){const e=t.product;return(0,k.jsx)(he,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var xe=i(5987),ge=i(3647);function me(t){var e,i,o,n,r,a,d;const[p]=(0,u.QN)("isInDesignMode"),[h]=(0,u.QN)("isDemoBrand"),[v]=(0,u.QN)("whatmoreShopId"),[x]=(0,u.QN)("whatmorePrimaryFont"),[m]=(0,u.QN)("whatmoreSecondaryColor"),[f]=(0,u.QN)("websiteLanguage"),{whatmoreWidgetSourceDetails:w,whatmoreUserInfo:C}=((0,u.Xd)("whatmoreUITheme"),(0,l.useContext)(b.BR)),[y,j]=(0,l.useState)(!1),{closeClickComponent:S}=(0,l.useContext)(g.p),[I,_]=(0,l.useState)(!1),E=t.FONT_SIZE,z=t.data,P=t.event,N=t.selectedVariantId,L=t.product,R=t.itemQuantity,D=(t.PRODUCT_TILE_WIDTH,t.cartItemCount),O=t.addToCartFlag,W=t.setAddToCartFlag,M=t.soldOutFlag,Q=t.setSoldOutFlag,V=t.selectedSize,X=t.productCartCounts&&t.productCartCounts[L.product_id]?t.productCartCounts[L.product_id]:0,U=w.landingLocationType,$=w.templateType,Y=(0,kt.Wd)(U)+(0,kt.gf)($)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const q="55586586685"===v&&"function"===typeof S,K=async e=>{var i,o;e.stopPropagation(),j(!0),function(t,e,i){p||h||(async()=>{(0,s.increaseEventProductAddToCartCount)(t,e,i)})()}(P,L,R),(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta});const n=null!==N&&void 0!==N?N:null===z||void 0===z||null===(i=z.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id;if(!n)return console.log("ERROR! No variants available."),void j(!1);(0,xe.cF)([n],R,(0,c.NCy)(v),v,P,L,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(e=>{if(j(!1),W(!0),(0,u.t2)("whatmoreAddedToCart",!0),t.onCartCountChange){const e=(t.productCartCounts&&t.productCartCounts[L.product_id]?t.productCartCounts[L.product_id]:0)+R;t.onCartCountChange(L.product_id,e)}return(0,u.Xd)("whatmoreAddedToCart")&&(0,ge.initiateCartSliderEvent)(v,q?S:()=>{},q?400:100,window.location.hostname,n,L.client_product_id,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType,L.product_link,V),(0,c.rEM)(v)&&(p||(async()=>{await(0,pe.js)().then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)})})()),e}).catch(t=>{j(!1),Q(!0),console.error("Error:",t)})},Z=e=>{if(function(t,e){p||h||(async()=>{(0,s.increaseEventProductBuyNowCount)(t,e)})()}(P,L),"buy-now"==e){var i,o,n,r;if((0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta}),"78881718575"==v)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();if((0,c.R8W)(v))return(0,pe.R3)(null!==N&&void 0!==N?N:null===z||void 0===z||null===(n=z.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.id,Y),void t.onCloseCallback();if("55207264298"===v)return void(window.location.href=L.product_link+((0,c.N0t)(v)?"?currency="+L.currency:""));if("75026858234"===v)return void(0,xe.Le)((0,c.NCy)(v),v);(0,xe.Dr)(void 0!==N?N:null===z||void 0===z||null===(i=z.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id,R,(0,c.NCy)(v),v,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType)}"view-more"==e&&((0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_VIEWMORE_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta}),(0,c.BLb)(v)?window.location.href=L.product_link+"?"+(0,c.VCz)(v)+"&"+(0,c.Spk)(v)+"&"+(0,c.$lz)(v)+((0,c.N0t)(v)?"&currency="+L.currency:""):window.location.href=L.product_link+((0,c.N0t)(v)?"?currency="+L.currency:""))},J=()=>{(0,xe.Le)((0,c.NCy)(v),v)};function tt(t){"open_cart_slider"!==(0,c.m4S)(t)||null!==S&&S()}const et=2.4*E;return(0,k.jsxs)(B.B,{position:t.position,className:"wht-shn-cta",backdropFilter:"blur(10px)",borderRadius:"12px",bottom:"12px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"94%",paddingX:"10px",paddingY:"8px",spacing:"8px",fontSize:.9*E,alignItems:"center",children:[M?(0,k.jsx)(vt.$,{width:"90%",bg:"rgba(71, 85, 105, 0.9)",variant:"solid",opacity:.8,_hover:{bg:"rgba(71, 85, 105, 0.9)"},height:et,disabled:!0,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",children:(0,k.jsx)(A.E,{fontWeight:"600",fontSize:E+"px",sx:{color:"white !important",fontFamily:x+" !important"},children:"Sold Out"})}):(0,k.jsxs)(B.B,{direction:"vertical"==(0,c.z00)(v)?"column":"row",width:"75000480020"===v?"100%":"90%",spacing:"6px",fontSize:.9*E,justifyContent:"center",children:[(0,c.gvj)(v)?X>0?(0,k.jsx)(T.az,{height:et,backgroundColor:"white",borderColor:m,borderWidth:"1px",cursor:"pointer",borderRadius:"8px",sx:{flex:1,minWidth:"100px"},children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"10px",paddingY:"5px",justifyContent:"center",spacing:"8px",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{"go_to_cart_page"===(0,c.m4S)(v)?J():tt(v)},children:(0,k.jsx)(pt.A,{sx:{color:m,fontSize:1.2*E}})}),(0,k.jsx)(A.E,{color:m,fontSize:1.1*E+"px !important",fontWeight:"semibold !important",sx:{fontFamily:x+" !important"},children:X}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:K,children:y?(0,k.jsx)(se.y,{size:"sm",color:m}):(0,k.jsx)(ut.A,{sx:{color:m,fontSize:1.2*E}})})]})}):(0,k.jsx)(vt.$,{className:"add-to-cart-button",height:et,onClick:K,display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"#000000"===(0,c.Wc_)(v)?m:(0,c.Wc_)(v),borderRadius:"8px",border:"none",_hover:{filter:"brightness(0.95)",transform:"translateY(-2px)",backgroundColor:"#000000"===(0,c.Wc_)(v)?m:(0,c.Wc_)(v)},transition:"all 0.2s ease-in-out"},children:y?(0,k.jsx)(se.y,{size:"sm",color:"white"}):(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{color:(0,c.Hfu)(v),fontFamily:x+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:.7*E+"px",children:`${"ADD TO CART"!=(0,c.KPq)(v)?(0,c.KPq)(v):null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[f])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,c.KPq)(v)}`})}):(0,k.jsx)(k.Fragment,{}),(0,c.oB_)(v)?(0,k.jsx)(k.Fragment,{children:(0,c.pbJ)(v)?(0,k.jsx)(ve,{variantId:void 0!==N?N:null===z||void 0===z||null===(o=z.variants)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.id,product:L,height:2.8*E,width:"100%",fontSize:E,fontFamily:x}):(0,k.jsx)(k.Fragment,{children:!(0,c.naM)(v)||"78881718575"===v&&null!==U&&void 0!==U&&U.includes("product")?(0,k.jsx)(vt.$,{className:"buy-now-button-custom",variant:"outline",height:et,onClick:t=>{Z("buy-now")},display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${m}`,color:m,_hover:{backgroundColor:`${m}10`,borderColor:m,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:x+" !important"},fontSize:.9*E+"px",children:null!==(d=(0,G.ek)(f,"buy_now"))&&void 0!==d?d:(0,c.GX0)(v)})}):(0,k.jsx)(vt.$,{variant:"outline",rightIcon:(0,k.jsx)(ue.A,{sx:{fontSize:14}}),height:et,onClick:()=>Z("view-more"),display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${m}`,color:m,_hover:{backgroundColor:`${m}10`,borderColor:m,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:x+" !important"},fontSize:.9*E,children:"MORE INFO"!=(0,c.KnH)(v)?(0,c.KnH)(v):null!==(r=null===G.m4||void 0===G.m4||null===(a=G.m4[f])||void 0===a?void 0:a.more_info)&&void 0!==r?r:(0,c.KnH)(v)})})})}):(0,k.jsx)(k.Fragment,{})]}),(0,c.gvj)(v)&&"75000480020"!==v&&(0,k.jsx)(k.Fragment,{children:I?(0,k.jsx)(de.s,{width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",children:(0,k.jsx)(se.y,{size:"sm",color:m||"#4a5568"})}):(0,k.jsx)(de.s,{animation:O?H:"none",onAnimationEnd:()=>W(!1),width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",border:"1px solid rgba(226, 232, 240, 0.8)",cursor:"pointer",_hover:{bg:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(226, 232, 240, 1)",transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out",onClick:()=>{"do_nothing"!==(0,c.m4S)(v)&&("go_to_cart_page"!==(0,c.m4S)(v)?(_(!0),tt(v)):J())},children:(0,k.jsxs)("div",{style:{position:"relative"},children:[(0,k.jsx)(ce.A,{sx:{fontSize:18,color:m||"#4a5568"}}),D>0&&(0,k.jsx)(T.jl,{bg:m||"#4a5568",size:"16px",position:"absolute",top:"-6px",right:"-6px",zIndex:"1",children:(0,k.jsx)(A.E,{sx:{color:"white !important",fontFamily:x+" !important"},fontWeight:"600",fontSize:"9px",children:D>99?"99+":D})})]})})})]})}function fe(t){var e,i;const[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=((0,u.Xd)("whatmoreShopId"),(0,u.QN)("websiteLanguage")),r=t.setOpenShopNow,l=t.FONT_SIZE,a=t.setLockSwiper,d=null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[n])||void 0===i?void 0:i.shop_now)&&void 0!==e?e:"Shop Now";return(0,k.jsxs)(de.s,{justifyContent:"center",paddingTop:"15px",width:"100%",className:"wht-shn-head",children:[(0,k.jsx)(de.s,{width:"10%",display:"flex !important"}),(0,k.jsx)(de.s,{width:"90%",justifyContent:"center",children:(0,k.jsx)(A.E,{align:"center",fontSize:1.25*l,fontWeight:"semibold",sx:{color:"black",fontFamily:o+" !important"},as:"b",children:d})}),(0,k.jsx)(de.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),r(!1),a(!1)},cursor:"pointer",children:(0,k.jsx)($.A,{sx:{color:"black",fontSize:1.2*l}})})]})}const we=({iconSize:t})=>(0,k.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});var Ce=i(6441);function ye(t){var e,i,o;const[n,r]=(0,l.useState)(t.product),[a]=(0,u.QN)("whatmorePrimaryFont"),[d]=(0,u.QN)("whatmoreShopId"),[s]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("websiteLanguage"),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),v=t.event;(0,l.useEffect)(()=>{(0,c.w4b)(d)&&(0,St.ck)(n,(0,c.NCy)(d),d).then(t=>{r(t)})},[]);const x=t.FONT_SIZE,g=t.data,m=t.itemPrice;let f,w,C;var y,j,S;"STRDOIDF6O7"==d&&(f=null===g||void 0===g||null===(y=g.variants)||void 0===y?void 0:y.find(e=>e.id==t.selectedVariantId),w=null===(j=f)||void 0===j?void 0:j.title,C=null===(S=f)||void 0===S?void 0:S.productLink);const I=(e=>{const i=null===g||void 0===g||null===(e=g.variants)||void 0===e?void 0:e.find(e=>e.id==t.selectedVariantId);return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),_=I&&0!=I&&I>m?Math.round((I-m)/I*100):NaN;return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(de.s,{className:"wht-shn-title",direction:"column",paddingLeft:"18px",paddingRight:"18px",children:[(0,k.jsxs)(de.s,{cursor:"pointer",onClick:function(){(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_PRODUCT_TITLE_CLICKED,widgetSourceDetails:h,event:v,productList:[n],ctaList:null===v||void 0===v?void 0:v.cta}),window.location.href=function(t){return(0,c.BLb)(d)?("STRDOIDF6O7"==d?C:t.product_link)+"?"+(0,c.VCz)(d)+"&"+(0,c.Spk)(d)+"&"+(0,c.$lz)(d)+((0,c.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?C:t.product_link)+((0,c.N0t)(d)?"?currency="+t.currency:"")}(n)},marginBottom:"2px",sx:{display:"flex",alignItems:"flex-start",gap:"8px",transition:"all 0.2s ease"},children:[(0,k.jsx)(A.E,{isTruncated:!0,noOfLines:2,fontSize:x,sx:{color:"#2d2d2d",lineHeight:"1.4",fontFamily:a,fontWeight:"500",letterSpacing:"-0.005em",flex:1,transition:"all 0.2s ease",textDecoration:"none","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}},children:"STRDOIDF6O7"===d?null!==(e=w)&&void 0!==e?e:null===g||void 0===g?void 0:g.title:"58396311733"===d?(0,It.$)(null===g||void 0===g?void 0:g.title):null===g||void 0===g?void 0:g.title}),(0,k.jsx)(T.az,{mt:"1px",opacity:"0.6",children:(0,k.jsx)(we,{iconSize:.9*x})})]}),(0,k.jsxs)(de.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[I&&I>m&&(0,k.jsx)(A.E,{as:"s",padding:"2px",fontSize:1.2*x,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,St.Sb)(parseFloat((0,Ce.U)()?I/100:I)," ",d,n.currency,!0)}),(0,k.jsx)(A.E,{as:"b",padding:"2px",fontSize:1.2*x,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,St.Sb)(parseFloat((0,Ce.U)()?m/100:m),"",d,n.currency,!0)}),"75000480020"===d&&(0,k.jsx)(A.E,{alignSelf:"center",fontSize:.85*x,fontWeight:"normal",sx:{color:"black",fontFamily:a+" !important",whiteSpace:"nowrap"},children:"(Incl. of all taxes)"}),!isNaN(_)&&0!=_&&(0,k.jsx)(T.az,{display:"flex",backgroundColor:"green"==(0,c.ub$)(d)?"#343434"==s?(0,c.ub$)(d):s:(0,c.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,k.jsx)(A.E,{fontSize:(0,c.mOK)(d)?"14px !important":1.1*x,fontWeight:"normal !important",sx:{color:(0,c.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,c.mOK)(d)?`${_}% ${null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[p])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,St.Sb)(parseFloat(I/100-m/100)," ",d,n.currency)}`})})]}),"61412737206"==d&&(0,k.jsx)(A.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var be=i(7083),je=i(8725);function Se(t){var e,i,o,n,r,a,d,s;const[p]=(0,u.QN)("whatmorePrimaryFont"),[h]=(0,u.QN)("whatmoreShopId"),{setShowOptionsChart:v}=(0,l.useContext)(Te),[x]=(0,u.QN)("whatmoreUITheme"),[g]=(0,u.QN)("websiteLanguage"),m=((0,u.Xd)("whatmoreSecondaryColorShade300"),(0,u.Xd)("whatmoreSecondaryColor")),f=t.setSelectedColor,w=t.selectOptionFirstHandler,C=t.selectOptionSecondHandler,y=t.selectOptionThirdHandler,b=t.isVariantAvailable,j=t.selectedSize,S=t.setSelectedSize,I=t.FONT_SIZE,_=t.data,E={[null===_||void 0===_||null===(e=_.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:t.selectedOptionFirst,[null===_||void 0===_||null===(o=_.options)||void 0===o||null===(n=o[1])||void 0===n?void 0:n.name]:t.selectedOptionSecond,[null===_||void 0===_||null===(r=_.options)||void 0===r||null===(a=r[2])||void 0===a?void 0:a.name]:t.selectedOptionThird},z=("72603631788"===h||"5220302897"===h)&&Object.values(E).some(t=>"Stitched"===t);return(0,k.jsx)(de.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingBottom:6,paddingTop:4,children:(null===_||void 0===_||null===(d=_.options)||void 0===d?void 0:d.length)>0&&(0,k.jsxs)(de.s,{direction:"column",width:"100%",gap:"4px",children:[null===_||void 0===_||null===(s=_.options)||void 0===s?void 0:s.map((e,i)=>{var o,n,r,l,a,d,s,u;return(0,k.jsx)(k.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(o=e.values)||void 0===o?void 0:o.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(n=e.name)||void 0===n?void 0:n.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(r=e.values)||void 0===r?void 0:r.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===_||void 0===_||null===(l=_.options)||void 0===l?void 0:l.length))&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(de.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,k.jsx)(A.E,{fontSize:1*I+"px !important",sx:{color:"black",fontFamily:p+" !important",fontWeight:"bold !important"},children:null!==(a=null===G.m4||void 0===G.m4||null===(d=G.m4[g])||void 0===d?void 0:d[null===e||void 0===e||null===(s=e.name)||void 0===s?void 0:s.toLowerCase()])&&void 0!==a?a:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,c.u1b)(h)?(0,k.jsx)(de.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,k.jsx)(A.E,{fontSize:.7*I,as:"u",sx:{color:"black !important",fontFamily:p+" !important"},onClick:()=>{null!==v&&v(!0)},children:(0,c.A5I)(h)})}):(0,k.jsx)(k.Fragment,{})]}),(0,k.jsx)(be.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(u=e.values)||void 0===u?void 0:u.map(o=>{var n,r,l,a,d,s,u,v,g;const j=b(o,i),S=0==i||1==i&&_.variants.find(t=>{var e,i;return t.option1==(null===(e=Object.entries(E))||void 0===e||null===(i=e[0])||void 0===i?void 0:i[1])&&t.option2==o})||2==i&&_.variants.find(t=>{var e,i,n,r;return t.option1==(null===(e=Object.entries(E))||void 0===e||null===(i=e[0])||void 0===i?void 0:i[1])&&t.option2==(null===(n=Object.entries(E))||void 0===n||null===(r=n[1])||void 0===r?void 0:r[1])&&t.option3==o}),z=E[null===e||void 0===e?void 0:e.name]===o;return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(n=e.name)&&void 0!==n&&n.toLowerCase().includes("color"))&&S&&((null===t||void 0===t||null===(r=t.finalArr)||void 0===r?void 0:r.length)>0&&(null===t||void 0===t||null===(l=t.finalArr)||void 0===l||!l.includes(null))||(null===t||void 0===t||null===(a=t.finalArrExternal)||void 0===a?void 0:a.length)>0)?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(de.s,{paddingBottom:"4px",px:"2px",paddingRight:"8px",children:(0,k.jsx)(T.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,c.tM2)(h),size:"sm",border:E[null===e||void 0===e?void 0:e.name]===o?`2px solid ${(0,c.Usu)(h)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{f(o),0===i&&w(o),1===i&&C(o),2===i&&y(o)},children:(0,k.jsx)(D._,{padding:"2px",borderRadius:(0,c.tM2)(h),width:"58px",height:"58px",src:(0,yt.b)(null!==(d=null===t||void 0===t||null===(s=t.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===u?void 0:u.src)&&void 0!==d?d:null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})})},o)}):S&&(0,k.jsx)(de.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,k.jsx)(vt.$,{isDisabled:!j,size:"sm",borderRadius:"round"==x?"5px":0,bg:z&&j?m+" !important":"transparent !important",border:z&&j?`2px solid ${m} !important`:`1px solid ${m||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:z&&j?m+" !important":(m||"#f7fafc")+"20 !important"},onClick:()=>{"76408193304"!=h||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=o?(0===i&&w(o),1===i&&C(o),2===i&&y(o)):window.location.href=t.product.product_link},children:(0,k.jsx)(A.E,{as:j?"p":"s",textDecoration:j?"none":"line-through",fontSize:.9*I+"px !important",sx:{fontFamily:p+" !important",fontWeight:"normal !important",color:z&&j?"white !important":(m||"#4a5568")+" !important"},children:o})})},o)})})]})})}),z&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(je.c,{my:"8px",borderColor:"gray.200"}),(0,k.jsx)(de.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:(0,k.jsx)(A.E,{fontSize:1*I+"px !important",sx:{color:"black",fontFamily:p+" !important",fontWeight:"bold !important"},children:"Size"})}),(0,k.jsx)(be.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:["XS","S","M","L","XL"].map(t=>{const e=j===t;return(0,k.jsx)(de.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,k.jsx)(vt.$,{size:"sm",borderRadius:"round"==x?"5px":0,bg:e?m+" !important":"transparent !important",border:e?`2px solid ${m} !important`:`1px solid ${m||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:e?m+" !important":(m||"#f7fafc")+"20 !important"},onClick:e=>{e.stopPropagation(),S(t)},children:(0,k.jsx)(A.E,{fontSize:.9*I+"px !important",sx:{fontFamily:p+" !important",fontWeight:"normal !important",color:e?"white !important":(m||"#4a5568")+" !important"},children:t})})},t)})})]})]})})}function ke(t){const{liveScreenWidth:e}=t;var i=.12*(.4*e*.8);const[o]=(0,u.QN)("whatmorePrimaryFont");return(0,k.jsxs)(de.s,{id:"wht-custom-discount-content",direction:"column",mt:1,mb:0,px:"1.1em",py:"0.15em",align:"flex-start",width:"100%",gap:"0.2em",children:[(0,k.jsx)(T.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,k.jsxs)(A.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b9400 OFF\xa0\xa0\xa0",(0,k.jsx)(T.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b94000+"]})}),(0,k.jsx)(T.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,k.jsxs)(A.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b91500 OFF\xa0",(0,k.jsx)(T.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b99000+"]})})]})}var Ie=i(1626);function _e(t){var e,i,o,n,r,a,d,s,h,v,x,g,m,f,w,C,y,b,j,S,I,_;const[E,z,P,N]=(0,p.A)();var L=.4*N*.8,B=L*(16/9)*.6*.8;const A=1.1*L,R=A*(16/9)*.8;var O=.12*L;const[M,H]=(0,l.useState)(!1),Q=t.data,V=t.event,X=t.product,U=t.setOpenShopNow,$=t.setLockSwiper,[Y,q]=(0,l.useState)({});(0,l.useEffect)(()=>{q(t=>{var e,i,o,n,r,l,a,d,s,c,u,p;return{...t,[null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)}))||void 0===n?void 0:n.option1,[null===Q||void 0===Q||null===(r=Q.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===Q||void 0===Q||null===(a=Q.variants)||void 0===a||null===(d=a.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[1])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)}))||void 0===d?void 0:d.option2,[null===Q||void 0===Q||null===(s=Q.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===Q||void 0===Q||null===(u=Q.variants)||void 0===u||null===(p=u.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[2])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)}))||void 0===p?void 0:p.option3}})},[]);const K=(t,e)=>{var i,o,n,r,l,a,d,s,c,u;if(null===Q||void 0===Q||null===(i=Q.options)||void 0===i||!i.length)return!1;const p=null===Q||void 0===Q||null===(o=Q.options)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.name,h=null===Q||void 0===Q||null===(r=Q.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===Q||void 0===Q||null===(a=Q.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===Q||void 0===Q||null===(s=Q.options)||void 0===s?void 0:s.length){case 1:return null===Q||void 0===Q||null===(c=Q.variants)||void 0===c?void 0:c.some(e=>e.option1===t&&e.available);case 2:var v;return 0===e?null===Q||void 0===Q||null===(v=Q.variants)||void 0===v?void 0:v.some(e=>e.option1===t&&e.available):null===Q||void 0===Q||null===(u=Q.variants)||void 0===u?void 0:u.some(e=>e.option2===t&&e.option1===Y[p]&&e.available);case 3:var x,g,m;if(0===e)return null===Q||void 0===Q||null===(x=Q.variants)||void 0===x?void 0:x.some(e=>e.option1===t&&e.available);if(1===e)return null===Q||void 0===Q||null===(g=Q.variants)||void 0===g?void 0:g.some(e=>e.option2===t&&e.option1===Y[p]&&e.available);if(2===e)return null===Q||void 0===Q||null===(m=Q.variants)||void 0===m?void 0:m.some(e=>e.option3===t&&e.option1===Y[p]&&e.option2===Y[h]&&e.available);default:return!1}},[G,Z]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option1;if(t&&K(t,0))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""}),[J,tt]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option2;if(t&&K(t,1))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""}),[it,ot]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option3;if(t&&K(t,2))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""}),[nt,rt]=(0,l.useState)(()=>{var t;const e=null===Q||void 0===Q||null===(t=Q.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.id}),[lt,at]=(0,l.useState)(1),[dt,st]=(0,l.useState)(()=>{var t;const e=null===Q||void 0===Q||null===(t=Q.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.price}),[ct,ut]=(0,l.useState)(0),[pt,ht]=(0,l.useState)(!1),[vt,xt]=(0,l.useState)(!1),[gt,mt]=(0,l.useState)(X.thumbnail_image),[ft,wt]=(0,l.useState)("XS"),Ct=((0,u.Xd)("whatmoreUITheme"),(0,u.Xd)("whatmoreShopId")),bt=(t,e,i)=>{var o;return null===Q||void 0===Q||null===(o=Q.variants)||void 0===o?void 0:o.some(o=>o.option1===t&&o.option2===e&&o.option3===i&&o.available)},jt=(t,e)=>{var i;return null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.find(i=>i.option1===t&&(void 0===e||i.option2===e)&&i.available)},St=(0,l.useCallback)(t=>{if(Z(t),bt(t,J,it))return;const e=jt(t,J);if(e)return void ot(e.option3);const i=jt(t);i&&(tt(i.option2),ot(i.option3))},[Q,J,it]),kt=(0,l.useCallback)(t=>{if(tt(t),bt(G,t,it))return;const e=jt(G,t);e&&ot(e.option3)},[Q,G,it]),It=(0,l.useCallback)(t=>{ot(t)},[]);(0,l.useEffect)(()=>{var t,e,i,o,n,r,l,a;const d=Ee(Q,G,J,it),s=null!==d&&void 0!==d?d:null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id;rt(s),st(ze(Q,s)),at(1),xt(!1),q({[null===Q||void 0===Q||null===(i=Q.options)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.name]:G,[null===Q||void 0===Q||null===(n=Q.options)||void 0===n||null===(r=n[1])||void 0===r?void 0:r.name]:J,[null===Q||void 0===Q||null===(l=Q.options)||void 0===l||null===(a=l[2])||void 0===a?void 0:a.name]:it});const c=Fe(Q,d);if(null!==c&&mt(c),"72603631788"===Ct||"5220302897"===Ct){wt("Stitched"===G||"Stitched"===J||"Stitched"===it?"XS":null)}},[G,J,it]),(0,l.useEffect)(()=>{var t,e;const i=void 0===nt?null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ze(Q,nt);st(i*lt)},[lt]),(0,l.useEffect)(()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(U(!1),$(!1))}function e(t){t.stopPropagation();const e=document.getElementById("whatmore-shopnow-scrollable-content");e&&(e.scrollTop+=t.deltaY)}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),null===i||void 0===i||i.removeEventListener("wheel",e)}},[]),(0,l.useEffect)(()=>{(0,xe.Eo)((0,c.NCy)(Ct),Ct).then(t=>t.json()).then(t=>{ut(t.item_count)}).catch(t=>{console.error("Cart Add Error:",t)})},[pt]);const _t=`${W.i7`
72
+ `} 0.5s`;return(0,k.jsx)(B.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,k.jsxs)(T.az,{width:"100%",height:"100%",children:[(0,k.jsx)(D._,{width:"100%",height:"auto",src:(0,c.JAc)(a)?d:(0,c.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,k.jsx)(B.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),v(!1)},cursor:"pointer",padding:"4px",children:(0,k.jsx)($.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*x,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var se=i(8538),ce=i(9740),ue=i(1112),pe=i(7028),he=i(8513);function ve(t){var e;const[i,o]=(0,l.useState)(null),n=t.product;return(0,l.useEffect)(()=>{(0,he.tN)(n).then(t=>{o(t.variants)})},[]),null==i?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,k.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,k.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,k.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,k.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,k.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,k.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,k.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function xe(t){const e=t.product;return(0,k.jsx)(ve,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var ge=i(5987),me=i(3647);function fe(t){var e,i,o,n,r,a,d;const[p]=(0,u.QN)("isInDesignMode"),[h]=(0,u.QN)("isDemoBrand"),[v]=(0,u.QN)("whatmoreShopId"),[x]=(0,u.QN)("whatmorePrimaryFont"),[m]=(0,u.QN)("whatmoreSecondaryColor"),[f]=(0,u.QN)("websiteLanguage"),{whatmoreWidgetSourceDetails:w,whatmoreUserInfo:C}=((0,u.Xd)("whatmoreUITheme"),(0,l.useContext)(b.BR)),[y,j]=(0,l.useState)(!1),{closeClickComponent:S}=(0,l.useContext)(g.p),[I,_]=(0,l.useState)(!1),E=t.FONT_SIZE,z=t.data,P=t.event,N=t.selectedVariantId,L=t.product,R=t.itemQuantity,D=(t.PRODUCT_TILE_WIDTH,t.cartItemCount),O=t.addToCartFlag,W=t.setAddToCartFlag,M=t.soldOutFlag,Q=t.setSoldOutFlag,V=t.selectedSize,X=t.productCartCounts&&t.productCartCounts[L.product_id]?t.productCartCounts[L.product_id]:0,U=w.landingLocationType,$=w.templateType,Y=(0,kt.Wd)(U)+(0,kt.gf)($)+(null!==P&&void 0!==P&&P.isRelatedEvent?"R":"E")+"_"+(null===P||void 0===P?void 0:P.event_id);const q="55586586685"===v&&"function"===typeof S,K=async e=>{var i,o;e.stopPropagation(),j(!0),function(t,e,i){p||h||(async()=>{(0,s.increaseEventProductAddToCartCount)(t,e,i)})()}(P,L,R),(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta});const n=null!==N&&void 0!==N?N:null===z||void 0===z||null===(i=z.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id;if(!n)return console.log("ERROR! No variants available."),void j(!1);(0,ge.cF)([n],R,(0,c.NCy)(v),v,P,L,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(e=>{if(j(!1),W(!0),(0,u.t2)("whatmoreAddedToCart",!0),t.onCartCountChange){const e=(t.productCartCounts&&t.productCartCounts[L.product_id]?t.productCartCounts[L.product_id]:0)+R;t.onCartCountChange(L.product_id,e)}return(0,u.Xd)("whatmoreAddedToCart")&&(0,me.initiateCartSliderEvent)(v,q?S:()=>{},q?400:100,window.location.hostname,n,L.client_product_id,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType,L.product_link,V),(0,c.rEM)(v)&&(p||(async()=>{await(0,he.js)().then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)})})()),e}).catch(t=>{j(!1),Q(!0),console.error("Error:",t)})},Z=e=>{if(function(t,e){p||h||(async()=>{(0,s.increaseEventProductBuyNowCount)(t,e)})()}(P,L),"buy-now"==e){var i,o,n,r;if((0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta}),"78881718575"==v)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();if((0,c.R8W)(v))return(0,he.R3)(null!==N&&void 0!==N?N:null===z||void 0===z||null===(n=z.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.id,Y),void t.onCloseCallback();if("55207264298"===v)return void(window.location.href=L.product_link+((0,c.N0t)(v)?"?currency="+L.currency:""));if("75026858234"===v)return void(0,ge.Le)((0,c.NCy)(v),v);(0,ge.Dr)(void 0!==N?N:null===z||void 0===z||null===(i=z.variants)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id,R,(0,c.NCy)(v),v,Y,null===P||void 0===P?void 0:P.location,null===C||void 0===C?void 0:C.userType)}"view-more"==e&&((0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_VIEWMORE_CLICKED,widgetSourceDetails:w,event:P,productList:[L],ctaList:P.cta}),(0,c.BLb)(v)?window.location.href=L.product_link+"?"+(0,c.VCz)(v)+"&"+(0,c.Spk)(v)+"&"+(0,c.$lz)(v)+((0,c.N0t)(v)?"&currency="+L.currency:""):window.location.href=L.product_link+((0,c.N0t)(v)?"?currency="+L.currency:""))},J=()=>{(0,ge.Le)((0,c.NCy)(v),v)};function tt(t){"open_cart_slider"!==(0,c.m4S)(t)||null!==S&&S()}const et=2.4*E;return(0,k.jsxs)(B.B,{position:t.position,className:"wht-shn-cta",backdropFilter:"blur(10px)",borderRadius:"12px",bottom:"12px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"94%",paddingX:"10px",paddingY:"8px",spacing:"8px",fontSize:.9*E,alignItems:"center",children:[M?(0,k.jsx)(vt.$,{width:"90%",bg:"rgba(71, 85, 105, 0.9)",variant:"solid",opacity:.8,_hover:{bg:"rgba(71, 85, 105, 0.9)"},height:et,disabled:!0,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",children:(0,k.jsx)(A.E,{fontWeight:"600",fontSize:E+"px",sx:{color:"white !important",fontFamily:x+" !important"},children:"Sold Out"})}):(0,k.jsxs)(B.B,{direction:"vertical"==(0,c.z00)(v)?"column":"row",width:"75000480020"===v?"100%":"90%",spacing:"6px",fontSize:.9*E,justifyContent:"center",children:[(0,c.gvj)(v)?X>0?(0,k.jsx)(T.az,{height:et,backgroundColor:"white",borderColor:m,borderWidth:"1px",cursor:"pointer",borderRadius:"8px",sx:{flex:1,minWidth:"100px"},children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"10px",paddingY:"5px",justifyContent:"center",spacing:"8px",children:[(0,k.jsx)(F.o,{paddingX:"5px",onClick:()=>{"go_to_cart_page"===(0,c.m4S)(v)?J():tt(v)},children:(0,k.jsx)(pt.A,{sx:{color:m,fontSize:1.2*E}})}),(0,k.jsx)(A.E,{color:m,fontSize:1.1*E+"px !important",fontWeight:"semibold !important",sx:{fontFamily:x+" !important"},children:X}),(0,k.jsx)(F.o,{paddingX:"5px",onClick:K,children:y?(0,k.jsx)(ce.y,{size:"sm",color:m}):(0,k.jsx)(ut.A,{sx:{color:m,fontSize:1.2*E}})})]})}):(0,k.jsx)(vt.$,{className:"add-to-cart-button",height:et,onClick:K,display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"#000000"===(0,c.Wc_)(v)?m:(0,c.Wc_)(v),borderRadius:"8px",border:"none",_hover:{filter:"brightness(0.95)",transform:"translateY(-2px)",backgroundColor:"#000000"===(0,c.Wc_)(v)?m:(0,c.Wc_)(v)},transition:"all 0.2s ease-in-out"},children:y?(0,k.jsx)(ce.y,{size:"sm",color:"white"}):(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{color:(0,c.Hfu)(v),fontFamily:x+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:.7*E+"px",children:`${"ADD TO CART"!=(0,c.KPq)(v)?(0,c.KPq)(v):null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[f])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,c.KPq)(v)}`})}):(0,k.jsx)(k.Fragment,{}),(0,c.oB_)(v)?(0,k.jsx)(k.Fragment,{children:(0,c.pbJ)(v)?(0,k.jsx)(xe,{variantId:void 0!==N?N:null===z||void 0===z||null===(o=z.variants)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.id,product:L,height:2.8*E,width:"100%",fontSize:E,fontFamily:x}):(0,k.jsx)(k.Fragment,{children:!(0,c.naM)(v)||"78881718575"===v&&null!==U&&void 0!==U&&U.includes("product")?(0,k.jsx)(vt.$,{className:"buy-now-button-custom",variant:"outline",height:et,onClick:t=>{Z("buy-now")},display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${m}`,color:m,_hover:{backgroundColor:`${m}10`,borderColor:m,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:x+" !important"},fontSize:.9*E+"px",children:null!==(d=(0,G.ek)(f,"buy_now"))&&void 0!==d?d:(0,c.GX0)(v)})}):(0,k.jsx)(vt.$,{variant:"outline",rightIcon:(0,k.jsx)(pe.A,{sx:{fontSize:14}}),height:et,onClick:()=>Z("view-more"),display:"flex",alignItems:"center",justifyContent:"center",sx:{flex:1,minWidth:"100px",paddingX:"12px",backgroundColor:"transparent",borderRadius:"8px",border:`1px solid ${m}`,color:m,_hover:{backgroundColor:`${m}10`,borderColor:m,transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out"},children:(0,k.jsx)(A.E,{fontWeight:"600",textAlign:"center",sx:{fontFamily:x+" !important"},fontSize:.9*E,children:"MORE INFO"!=(0,c.KnH)(v)?(0,c.KnH)(v):null!==(r=null===G.m4||void 0===G.m4||null===(a=G.m4[f])||void 0===a?void 0:a.more_info)&&void 0!==r?r:(0,c.KnH)(v)})})})}):(0,k.jsx)(k.Fragment,{})]}),(0,c.gvj)(v)&&"75000480020"!==v&&(0,k.jsx)(k.Fragment,{children:I?(0,k.jsx)(se.s,{width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",children:(0,k.jsx)(ce.y,{size:"sm",color:m||"#4a5568"})}):(0,k.jsx)(se.s,{animation:O?H:"none",onAnimationEnd:()=>W(!1),width:"40px",height:et,alignItems:"center",justifyContent:"center",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"8px",border:"1px solid rgba(226, 232, 240, 0.8)",cursor:"pointer",_hover:{bg:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(226, 232, 240, 1)",transform:"translateY(-2px)"},transition:"all 0.2s ease-in-out",onClick:()=>{"do_nothing"!==(0,c.m4S)(v)&&("go_to_cart_page"!==(0,c.m4S)(v)?(_(!0),tt(v)):J())},children:(0,k.jsxs)("div",{style:{position:"relative"},children:[(0,k.jsx)(ue.A,{sx:{fontSize:18,color:m||"#4a5568"}}),D>0&&(0,k.jsx)(T.jl,{bg:m||"#4a5568",size:"16px",position:"absolute",top:"-6px",right:"-6px",zIndex:"1",children:(0,k.jsx)(A.E,{sx:{color:"white !important",fontFamily:x+" !important"},fontWeight:"600",fontSize:"9px",children:D>99?"99+":D})})]})})})]})}function we(t){var e,i;const[o]=(0,u.QN)("whatmorePrimaryFont"),[n]=((0,u.Xd)("whatmoreShopId"),(0,u.QN)("websiteLanguage")),r=t.setOpenShopNow,l=t.FONT_SIZE,a=t.setLockSwiper,d=null!==(e=null===G.m4||void 0===G.m4||null===(i=G.m4[n])||void 0===i?void 0:i.shop_now)&&void 0!==e?e:"Shop Now";return(0,k.jsxs)(se.s,{justifyContent:"center",paddingTop:"15px",width:"100%",className:"wht-shn-head",children:[(0,k.jsx)(se.s,{width:"10%",display:"flex !important"}),(0,k.jsx)(se.s,{width:"90%",justifyContent:"center",children:(0,k.jsx)(A.E,{align:"center",fontSize:1.25*l,fontWeight:"semibold",sx:{color:"black",fontFamily:o+" !important"},as:"b",children:d})}),(0,k.jsx)(se.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),r(!1),a(!1)},cursor:"pointer",children:(0,k.jsx)($.A,{sx:{color:"black",fontSize:1.2*l}})})]})}const Ce=({iconSize:t})=>(0,k.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});var ye=i(6441);function be(t){var e,i,o;const[n,r]=(0,l.useState)(t.product),[a]=(0,u.QN)("whatmorePrimaryFont"),[d]=(0,u.QN)("whatmoreShopId"),[s]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("websiteLanguage"),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),v=t.event;(0,l.useEffect)(()=>{(0,c.w4b)(d)&&(0,St.ck)(n,(0,c.NCy)(d),d).then(t=>{r(t)})},[]);const x=t.FONT_SIZE,g=t.data,m=t.itemPrice;let f,w,C;var y,j,S;"STRDOIDF6O7"==d&&(f=null===g||void 0===g||null===(y=g.variants)||void 0===y?void 0:y.find(e=>e.id==t.selectedVariantId),w=null===(j=f)||void 0===j?void 0:j.title,C=null===(S=f)||void 0===S?void 0:S.productLink);const I=(e=>{const i=null===g||void 0===g||null===(e=g.variants)||void 0===e?void 0:e.find(e=>e.id==t.selectedVariantId);return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),_=I&&0!=I&&I>m?Math.round((I-m)/I*100):NaN;return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(se.s,{className:"wht-shn-title",direction:"column",paddingLeft:"18px",paddingRight:"18px",children:[(0,k.jsxs)(se.s,{cursor:"pointer",onClick:function(){(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_PRODUCT_TITLE_CLICKED,widgetSourceDetails:h,event:v,productList:[n],ctaList:null===v||void 0===v?void 0:v.cta}),window.location.href=function(t){return(0,c.BLb)(d)?("STRDOIDF6O7"==d?C:t.product_link)+"?"+(0,c.VCz)(d)+"&"+(0,c.Spk)(d)+"&"+(0,c.$lz)(d)+((0,c.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?C:t.product_link)+((0,c.N0t)(d)?"?currency="+t.currency:"")}(n)},marginBottom:"2px",sx:{display:"flex",alignItems:"flex-start",gap:"8px",transition:"all 0.2s ease"},children:[(0,k.jsx)(A.E,{isTruncated:!0,noOfLines:2,fontSize:x,sx:{color:"#2d2d2d",lineHeight:"1.4",fontFamily:a,fontWeight:"500",letterSpacing:"-0.005em",flex:1,transition:"all 0.2s ease",textDecoration:"none","&:hover":{textDecoration:"underline",textUnderlineOffset:"3px"}},children:"STRDOIDF6O7"===d?null!==(e=w)&&void 0!==e?e:null===g||void 0===g?void 0:g.title:"58396311733"===d?(0,It.$)(null===g||void 0===g?void 0:g.title):null===g||void 0===g?void 0:g.title}),(0,k.jsx)(T.az,{mt:"1px",opacity:"0.6",children:(0,k.jsx)(Ce,{iconSize:.9*x})})]}),(0,k.jsxs)(se.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[I&&I>m&&(0,k.jsx)(A.E,{as:"s",padding:"2px",fontSize:1.2*x,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,St.Sb)(parseFloat((0,ye.U)()?I/100:I)," ",d,n.currency,!0)}),(0,k.jsx)(A.E,{as:"b",padding:"2px",fontSize:1.2*x,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,St.Sb)(parseFloat((0,ye.U)()?m/100:m),"",d,n.currency,!0)}),"75000480020"===d&&(0,k.jsx)(A.E,{alignSelf:"center",fontSize:.85*x,fontWeight:"normal",sx:{color:"black",fontFamily:a+" !important",whiteSpace:"nowrap"},children:"(Incl. of all taxes)"}),!isNaN(_)&&0!=_&&(0,k.jsx)(T.az,{display:"flex",backgroundColor:"green"==(0,c.ub$)(d)?"#343434"==s?(0,c.ub$)(d):s:(0,c.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,k.jsx)(A.E,{fontSize:(0,c.mOK)(d)?"14px !important":1.1*x,fontWeight:"normal !important",sx:{color:(0,c.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,c.mOK)(d)?`${_}% ${null!==(i=null===G.m4||void 0===G.m4||null===(o=G.m4[p])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,St.Sb)(parseFloat(I/100-m/100)," ",d,n.currency)}`})})]}),"61412737206"==d&&(0,k.jsx)(A.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var je=i(7083),Se=i(8725);function ke(t){var e,i,o,n,r,a,d,s;const[p]=(0,u.QN)("whatmorePrimaryFont"),[h]=(0,u.QN)("whatmoreShopId"),{setShowOptionsChart:v}=(0,l.useContext)(Pe),[x]=(0,u.QN)("whatmoreUITheme"),[g]=(0,u.QN)("websiteLanguage"),m=((0,u.Xd)("whatmoreSecondaryColorShade300"),(0,u.Xd)("whatmoreSecondaryColor")),f=t.setSelectedColor,w=t.selectOptionFirstHandler,C=t.selectOptionSecondHandler,y=t.selectOptionThirdHandler,b=t.isVariantAvailable,j=t.selectedSize,S=t.setSelectedSize,I=t.FONT_SIZE,_=t.data,E={[null===_||void 0===_||null===(e=_.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:t.selectedOptionFirst,[null===_||void 0===_||null===(o=_.options)||void 0===o||null===(n=o[1])||void 0===n?void 0:n.name]:t.selectedOptionSecond,[null===_||void 0===_||null===(r=_.options)||void 0===r||null===(a=r[2])||void 0===a?void 0:a.name]:t.selectedOptionThird},z=("72603631788"===h||"5220302897"===h)&&Object.values(E).some(t=>"Stitched"===t);return(0,k.jsx)(se.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingBottom:6,paddingTop:4,children:(null===_||void 0===_||null===(d=_.options)||void 0===d?void 0:d.length)>0&&(0,k.jsxs)(se.s,{direction:"column",width:"100%",gap:"4px",children:[null===_||void 0===_||null===(s=_.options)||void 0===s?void 0:s.map((e,i)=>{var o,n,r,l,a,d,s,u;return(0,k.jsx)(k.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(o=e.values)||void 0===o?void 0:o.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(n=e.name)||void 0===n?void 0:n.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(r=e.values)||void 0===r?void 0:r.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===_||void 0===_||null===(l=_.options)||void 0===l?void 0:l.length))&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(se.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,k.jsx)(A.E,{fontSize:1*I+"px !important",sx:{color:"black",fontFamily:p+" !important",fontWeight:"bold !important"},children:null!==(a=null===G.m4||void 0===G.m4||null===(d=G.m4[g])||void 0===d?void 0:d[null===e||void 0===e||null===(s=e.name)||void 0===s?void 0:s.toLowerCase()])&&void 0!==a?a:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,c.u1b)(h)?(0,k.jsx)(se.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,k.jsx)(A.E,{fontSize:.7*I,as:"u",sx:{color:"black !important",fontFamily:p+" !important"},onClick:()=>{null!==v&&v(!0)},children:(0,c.A5I)(h)})}):(0,k.jsx)(k.Fragment,{})]}),(0,k.jsx)(je.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(u=e.values)||void 0===u?void 0:u.map(o=>{var n,r,l,a,d,s,u,v,g;const j=b(o,i),S=0==i||1==i&&_.variants.find(t=>{var e,i;return t.option1==(null===(e=Object.entries(E))||void 0===e||null===(i=e[0])||void 0===i?void 0:i[1])&&t.option2==o})||2==i&&_.variants.find(t=>{var e,i,n,r;return t.option1==(null===(e=Object.entries(E))||void 0===e||null===(i=e[0])||void 0===i?void 0:i[1])&&t.option2==(null===(n=Object.entries(E))||void 0===n||null===(r=n[1])||void 0===r?void 0:r[1])&&t.option3==o}),z=E[null===e||void 0===e?void 0:e.name]===o;return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(n=e.name)&&void 0!==n&&n.toLowerCase().includes("color"))&&S&&((null===t||void 0===t||null===(r=t.finalArr)||void 0===r?void 0:r.length)>0&&(null===t||void 0===t||null===(l=t.finalArr)||void 0===l||!l.includes(null))||(null===t||void 0===t||null===(a=t.finalArrExternal)||void 0===a?void 0:a.length)>0)?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(se.s,{paddingBottom:"4px",px:"2px",paddingRight:"8px",children:(0,k.jsx)(T.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,c.tM2)(h),size:"sm",border:E[null===e||void 0===e?void 0:e.name]===o?`2px solid ${(0,c.Usu)(h)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{f(o),0===i&&w(o),1===i&&C(o),2===i&&y(o)},children:(0,k.jsx)(D._,{padding:"2px",borderRadius:(0,c.tM2)(h),width:"58px",height:"58px",src:(0,yt.b)(null!==(d=null===t||void 0===t||null===(s=t.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===u?void 0:u.src)&&void 0!==d?d:null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==o))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})})},o)}):S&&(0,k.jsx)(se.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,k.jsx)(vt.$,{isDisabled:!j,size:"sm",borderRadius:"round"==x?"5px":0,bg:z&&j?m+" !important":"transparent !important",border:z&&j?`2px solid ${m} !important`:`1px solid ${m||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:z&&j?m+" !important":(m||"#f7fafc")+"20 !important"},onClick:()=>{"76408193304"!=h||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=o?(0===i&&w(o),1===i&&C(o),2===i&&y(o)):window.location.href=t.product.product_link},children:(0,k.jsx)(A.E,{as:j?"p":"s",textDecoration:j?"none":"line-through",fontSize:.9*I+"px !important",sx:{fontFamily:p+" !important",fontWeight:"normal !important",color:z&&j?"white !important":(m||"#4a5568")+" !important"},children:o})})},o)})})]})})}),z&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Se.c,{my:"8px",borderColor:"gray.200"}),(0,k.jsx)(se.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:(0,k.jsx)(A.E,{fontSize:1*I+"px !important",sx:{color:"black",fontFamily:p+" !important",fontWeight:"bold !important"},children:"Size"})}),(0,k.jsx)(je.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:["XS","S","M","L","XL"].map(t=>{const e=j===t;return(0,k.jsx)(se.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,k.jsx)(vt.$,{size:"sm",borderRadius:"round"==x?"5px":0,bg:e?m+" !important":"transparent !important",border:e?`2px solid ${m} !important`:`1px solid ${m||"#e2e8f0"} !important`,width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},_hover:{bg:e?m+" !important":(m||"#f7fafc")+"20 !important"},onClick:e=>{e.stopPropagation(),S(t)},children:(0,k.jsx)(A.E,{fontSize:.9*I+"px !important",sx:{fontFamily:p+" !important",fontWeight:"normal !important",color:e?"white !important":(m||"#4a5568")+" !important"},children:t})})},t)})})]})]})})}function Ie(t){const{liveScreenWidth:e}=t;var i=.12*(.4*e*.8);const[o]=(0,u.QN)("whatmorePrimaryFont");return(0,k.jsxs)(se.s,{id:"wht-custom-discount-content",direction:"column",mt:1,mb:0,px:"1.1em",py:"0.15em",align:"flex-start",width:"100%",gap:"0.2em",children:[(0,k.jsx)(T.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,k.jsxs)(A.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b9400 OFF\xa0\xa0\xa0",(0,k.jsx)(T.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b94000+"]})}),(0,k.jsx)(T.az,{width:"98%",alignSelf:"flex-start",borderRadius:"0.3em",background:"linear-gradient(rgba(196,210,193,1), rgba(193,210,198,1))",boxShadow:"0 1px 4px rgba(0,0,0,0.03)",py:"0.3em",px:"0",display:"flex",justifyContent:"center",children:(0,k.jsxs)(A.E,{fontWeight:400,fontSize:.8*i,lineHeight:"1.35",textAlign:"center",color:"#2d2d2d",fontFamily:o,width:"100%",children:["FLAT \u20b91500 OFF\xa0",(0,k.jsx)(T.az,{as:"span",color:"black",fontWeight:500,display:"inline",px:"0.1em",fontSize:1.1*i,children:"|"}),"\xa0\xa0ON ORDERS \u20b99000+"]})})]})}var _e=i(1626);function Ee(t){var e,i,o,n,r,a,d,s,h,v,x,g,m,f,w,C,y,b,j,S,I,_;const[E,z,P,N]=(0,p.A)();var L=.4*N*.8,B=L*(16/9)*.6*.8;const A=1.1*L,R=A*(16/9)*.8;var O=.12*L;const[M,H]=(0,l.useState)(!1),Q=t.data,V=t.event,X=t.product,U=t.setOpenShopNow,$=t.setLockSwiper,[Y,q]=(0,l.useState)({});(0,l.useEffect)(()=>{q(t=>{var e,i,o,n,r,l,a,d,s,c,u,p;return{...t,[null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)}))||void 0===n?void 0:n.option1,[null===Q||void 0===Q||null===(r=Q.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===Q||void 0===Q||null===(a=Q.variants)||void 0===a||null===(d=a.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[1])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)}))||void 0===d?void 0:d.option2,[null===Q||void 0===Q||null===(s=Q.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===Q||void 0===Q||null===(u=Q.variants)||void 0===u||null===(p=u.find(t=>{var e,i,o;return(null===Q||void 0===Q||null===(e=Q.options)||void 0===e||null===(i=e[2])||void 0===i||null===(o=i.values)||void 0===o?void 0:o.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)}))||void 0===p?void 0:p.option3}})},[]);const K=(t,e)=>{var i,o,n,r,l,a,d,s,c,u;if(null===Q||void 0===Q||null===(i=Q.options)||void 0===i||!i.length)return!1;const p=null===Q||void 0===Q||null===(o=Q.options)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.name,h=null===Q||void 0===Q||null===(r=Q.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===Q||void 0===Q||null===(a=Q.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===Q||void 0===Q||null===(s=Q.options)||void 0===s?void 0:s.length){case 1:return null===Q||void 0===Q||null===(c=Q.variants)||void 0===c?void 0:c.some(e=>e.option1===t&&e.available);case 2:var v;return 0===e?null===Q||void 0===Q||null===(v=Q.variants)||void 0===v?void 0:v.some(e=>e.option1===t&&e.available):null===Q||void 0===Q||null===(u=Q.variants)||void 0===u?void 0:u.some(e=>e.option2===t&&e.option1===Y[p]&&e.available);case 3:var x,g,m;if(0===e)return null===Q||void 0===Q||null===(x=Q.variants)||void 0===x?void 0:x.some(e=>e.option1===t&&e.available);if(1===e)return null===Q||void 0===Q||null===(g=Q.variants)||void 0===g?void 0:g.some(e=>e.option2===t&&e.option1===Y[p]&&e.available);if(2===e)return null===Q||void 0===Q||null===(m=Q.variants)||void 0===m?void 0:m.some(e=>e.option3===t&&e.option1===Y[p]&&e.option2===Y[h]&&e.available);default:return!1}},[G,Z]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option1;if(t&&K(t,0))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""}),[J,tt]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option2;if(t&&K(t,1))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""}),[it,ot]=(0,l.useState)(()=>{var t,e;for(let r=0;r<(null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.length);r++){var i,o,n;const t=null===Q||void 0===Q||null===(o=Q.variants)||void 0===o||null===(n=o[r])||void 0===n?void 0:n.option3;if(t&&K(t,2))return t}return(null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""}),[nt,rt]=(0,l.useState)(()=>{var t;const e=null===Q||void 0===Q||null===(t=Q.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.id}),[lt,at]=(0,l.useState)(1),[dt,st]=(0,l.useState)(()=>{var t;const e=null===Q||void 0===Q||null===(t=Q.variants)||void 0===t?void 0:t.find(t=>t.available);return null===e||void 0===e?void 0:e.price}),[ct,ut]=(0,l.useState)(0),[pt,ht]=(0,l.useState)(!1),[vt,xt]=(0,l.useState)(!1),[gt,mt]=(0,l.useState)(X.thumbnail_image),[ft,wt]=(0,l.useState)("XS"),Ct=((0,u.Xd)("whatmoreUITheme"),(0,u.Xd)("whatmoreShopId")),bt=(t,e,i)=>{var o;return null===Q||void 0===Q||null===(o=Q.variants)||void 0===o?void 0:o.some(o=>o.option1===t&&o.option2===e&&o.option3===i&&o.available)},jt=(t,e)=>{var i;return null===Q||void 0===Q||null===(i=Q.variants)||void 0===i?void 0:i.find(i=>i.option1===t&&(void 0===e||i.option2===e)&&i.available)},St=(0,l.useCallback)(t=>{if(Z(t),bt(t,J,it))return;const e=jt(t,J);if(e)return void ot(e.option3);const i=jt(t);i&&(tt(i.option2),ot(i.option3))},[Q,J,it]),kt=(0,l.useCallback)(t=>{if(tt(t),bt(G,t,it))return;const e=jt(G,t);e&&ot(e.option3)},[Q,G,it]),It=(0,l.useCallback)(t=>{ot(t)},[]);(0,l.useEffect)(()=>{var t,e,i,o,n,r,l,a;const d=ze(Q,G,J,it),s=null!==d&&void 0!==d?d:null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id;rt(s),st(Fe(Q,s)),at(1),xt(!1),q({[null===Q||void 0===Q||null===(i=Q.options)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.name]:G,[null===Q||void 0===Q||null===(n=Q.options)||void 0===n||null===(r=n[1])||void 0===r?void 0:r.name]:J,[null===Q||void 0===Q||null===(l=Q.options)||void 0===l||null===(a=l[2])||void 0===a?void 0:a.name]:it});const c=Te(Q,d);if(null!==c&&mt(c),"72603631788"===Ct||"5220302897"===Ct){wt("Stitched"===G||"Stitched"===J||"Stitched"===it?"XS":null)}},[G,J,it]),(0,l.useEffect)(()=>{var t,e;const i=void 0===nt?null===Q||void 0===Q||null===(t=Q.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:Fe(Q,nt);st(i*lt)},[lt]),(0,l.useEffect)(()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(U(!1),$(!1))}function e(t){t.stopPropagation();const e=document.getElementById("whatmore-shopnow-scrollable-content");e&&(e.scrollTop+=t.deltaY)}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),null===i||void 0===i||i.removeEventListener("wheel",e)}},[]),(0,l.useEffect)(()=>{(0,ge.Eo)((0,c.NCy)(Ct),Ct).then(t=>t.json()).then(t=>{ut(t.item_count)}).catch(t=>{console.error("Cart Add Error:",t)})},[pt]);const _t=`${W.i7`
73
73
  0% {
74
74
  transform: translateY(100%);
75
75
  }
76
- `} 0.5s`,Et=null===Q||void 0===Q||null===(e=Q.options)||void 0===e?void 0:e.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}),[zt,Ft]=(0,l.useState)(-1!==Et?null===(i=Q.options)||void 0===i||null===(o=i[Et])||void 0===o||null===(n=o.values)||void 0===n?void 0:n[0]:""),[Tt,Pt]=(0,l.useState)({});(0,l.useEffect)(()=>{-1!==Et&&"whatmore"!==(0,c.NCy)(Ct)&&async function(){const t=await(0,pe._N)(X);Pt(t)}()},[]);let Nt=-1,Lt=-1!==Et&&null!==Tt&&void 0!==Tt&&Tt.product&&(null===Tt||void 0===Tt||null===(r=Tt.product)||void 0===r||null===(a=r.images)||void 0===a?void 0:a.length)>=(null===Tt||void 0===Tt||null===(d=Tt.product)||void 0===d||null===(s=d.options)||void 0===s||null===(h=s[Et])||void 0===h||null===(v=h.values)||void 0===v?void 0:v.length)?null===Tt||void 0===Tt||null===(x=Tt.product)||void 0===x||null===(g=x.images)||void 0===g?void 0:g.map(t=>{var e,i,o,n,r,l,a,d,s,c,u,p,h,v;const x=null===Tt||void 0===Tt||null===(e=Tt.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex(t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Tt||void 0===Tt||null===(o=Tt.product)||void 0===o||null===(n=o.options)||void 0===n||null===(r=n[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Nt,(null===Tt||void 0===Tt||null===(a=Tt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[Et])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Tt||void 0===Tt||null===(u=Tt.product)||void 0===u||null===(p=u.options)||void 0===p||null===(h=p[x])||void 0===h||null===(v=h.values)||void 0===v?void 0:v[Math.max(0,Nt)],src:null===t||void 0===t?void 0:t.src}}):[],Bt=[];if("whatmore"==(0,c.NCy)(Ct)&&(null===Q||void 0===Q||null===(m=Q.images)||void 0===m?void 0:m.length)>0){var At;var Rt;if(-1!==(null===Q||void 0===Q||null===(At=Q.options)||void 0===At?void 0:At.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})))Bt=null===Q||void 0===Q||null===(Rt=Q.images)||void 0===Rt?void 0:Rt.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Nt+1<(null===Tt||void 0===Tt||null===(f=Tt.product)||void 0===f||null===(w=f.options)||void 0===w||null===(C=w[Et])||void 0===C||null===(y=C.values)||void 0===y?void 0:y.length)&&(Lt=[]),(0,k.jsxs)(de.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"100%",opacity:"100%",borderTopRadius:"24px",animation:_t,boxShadow:"0 -8px 32px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04)",border:"1px solid rgba(255, 255, 255, 0.6)",backdropFilter:"blur(8px)",overflow:"hidden",children:[(0,k.jsx)(T.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",flexShrink:0,children:(0,k.jsx)(fe,{setOpenShopNow:U,setLockSwiper:$,FONT_SIZE:O})}),(0,k.jsx)(T.az,{height:"fit-content",minHeight:R+20+"px",flexShrink:0,position:"relative",children:(0,k.jsx)(F.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,k.jsx)(de.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,k.jsx)(de.s,{width:"100%",children:(0,k.jsx)(Ie.c,{renderElement:t=>(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(T.az,{width:A+"px",height:R+"px",position:"relative",children:(0,k.jsx)(D._,{width:A+"px",height:R+"px",borderRadius:"16px",src:(0,yt.b)(t.eventData.src,"&width=400&height=400"),alt:X.handle,sx:{objectFit:"cover !important",filter:"saturate(1.1) contrast(1.05)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},_hover:{transform:"scale(1.02)",filter:"saturate(1.15) contrast(1.1)"},fallback:(0,k.jsx)(et.A,{width:A+"px",height:R+"px",borderRadius:"16px"})})})}),dataList:Lt.length>0&&!Lt.includes(null)?null===(b=Lt)||void 0===b?void 0:b.filter(t=>(null===t||void 0===t?void 0:t.color)==zt):Bt.length>0?[null===(j=Bt)||void 0===j?void 0:j.find(t=>(null===t||void 0===t?void 0:t.color)==zt)]:null===Q||void 0===Q||null===(S=Q.images)||void 0===S?void 0:S.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:A+"px",defaultWidth:R+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,k.jsxs)(de.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",minHeight:"0",overflowY:"auto",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,k.jsx)(ye,{data:Q,product:X,event:V,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:O,getVariantPrice:ze,selectedVariantId:nt,itemPrice:dt,itemQuantity:lt,setItemQuantity:at,thumbnailImage:gt}),"11829268"===Ct&&(0,k.jsx)(ke,{liveScreenWidth:N}),(null===Q||void 0===Q||null===(I=Q.variants)||void 0===I?void 0:I.length)>0&&(0,k.jsx)(Se,{data:"22907887"===Ct?{...Q,options:null===Q||void 0===Q||null===(_=Q.options)||void 0===_?void 0:_.filter(t=>!("Season"===(null===t||void 0===t?void 0:t.name)&&1===new Set(null===t||void 0===t?void 0:t.values).size))}:Q,dividerColor:(0,c.R6d)(Ct),setSelectedColor:Ft,finalArr:Lt,finalArrExternal:Bt,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:O,selectOptionFirstHandler:St,selectOptionSecondHandler:kt,selectOptionThirdHandler:It,getVariantPrice:ze,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:it,selectedVariantId:nt,isVariantAvailable:K,selectedSize:ft,setSelectedSize:wt})]}),(0,k.jsx)(T.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",flexShrink:0,children:(0,k.jsx)(me,{position:"relative",selectedVariantId:nt,data:Q,FONT_SIZE:O,PRODUCT_TILE_WIDTH:L,product:X,itemQuantity:lt,cartItemCount:ct,addToCartFlag:pt,setAddToCartFlag:ht,soldOutFlag:vt,setSoldOutFlag:xt,onCloseCallback:t.onCloseCallback,event:V,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,selectedSize:ft})})]})}const Ee=(t,e,i,o)=>{var n;if(!e&&!i&&!o)return;const r=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!o||t.option3===o));return r?r.id:void 0},ze=(t,e)=>{var i,o;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(o=i.find(t=>t.id===e))||void 0===o?void 0:o.price},Fe=(t,e)=>{var i;const o=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find(t=>t.id==e);return void 0===o?null:null===o||void 0===o||null===(n=o.featured_image)||void 0===n?void 0:n.src;var n},Te=(0,l.createContext)({setShowOptionsChart:null});var Pe=function(t){const e=t.event,i=t.data,o=t.currentProduct,n=t.setOpenShopNow,r=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,l.useState)(!1);return(0,k.jsx)(Te.Provider,{value:{setShowOptionsChart:s},children:(0,k.jsxs)(T.az,{width:"full",height:"full",borderRadius:"md",children:[(0,k.jsx)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,k.jsx)(T.az,{width:"full",maxHeight:"100%",overflow:"hidden",children:(0,k.jsx)(_e,{data:i,event:e,product:o,setOpenShopNow:n,setLockSwiper:r,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,k.jsx)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,k.jsx)(T.az,{width:"full",height:"fit-content",children:(0,k.jsx)(ae,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,k.jsx)(k.Fragment,{})]})})};var Ne=i(1410);function Le(t){const e=(0,c.Wc_)(t);return e&&"#000000"!==e?e:(0,u.Xd)("whatmoreSecondaryColor")||(0,u.Xd)("whatmorePrimaryColor")||"#E0531D"}function Be(t){return(0,c.Hfu)(t)||"#FFFFFF"}function Ae(){const t=(0,u.Xd)("whatmorePrimaryFont");return t?`'${t}', system-ui, sans-serif`:"system-ui, sans-serif"}var Re=function(t){var e,i;const{event:o,product:n,onClose:r,onAdded:a}=t,[d]=(0,u.QN)("isInDesignMode"),[c]=(0,u.QN)("isDemoBrand"),[p]=(0,u.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),v=Ae(),x=Le(p),g=Be(p),m=`color-mix(in srgb, ${x} 7%, #ffffff)`,f=`color-mix(in srgb, ${x} 22%, #ffffff)`,w=`color-mix(in srgb, ${x} 38%, #ffffff)`,[C,,,y,j,S,,,I]=(0,Ct.A)(0,n,o),[_,E]=(0,l.useState)([void 0,void 0,void 0]),z=(null===I||void 0===I?void 0:I.current)||[],F=(t,e,i)=>z.some(o=>{if(!o.available)return!1;const n=[o.option1,o.option2,o.option3];return n[t]===e&&i.every((e,i)=>i===t||null==e||n[i]===e)}),T=z.find(t=>{if(!t.available)return!1;const e=[t.option1,t.option2,t.option3];return _.every((t,i)=>null==t||e[i]===t)}),P=(null===h||void 0===h?void 0:h.landingLocationType)||"index",N=(null===h||void 0===h?void 0:h.templateType)||"template-a",L=(0,kt.Wd)(P)+(0,kt.gf)(N)+"_"+(null===o||void 0===o?void 0:o.event_id);(0,l.useEffect)(()=>{j(L,!1)},[]),(0,l.useEffect)(()=>{if(C.cart_count>0){d||c||((0,s.increaseEventProductClickCount)(o,n),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:o,productList:[n],ctaList:null===o||void 0===o?void 0:o.cta})),a&&a(_.filter(Boolean).join(" \xb7 "));const t=setTimeout(()=>r&&r(),600);return()=>clearTimeout(t)}},[C.cart_count]),(0,l.useEffect)(()=>{"errored"===C.state&&r&&r()},[C.state]);const B=(y||[]).map(t=>t||[]),A=B.map((t,e)=>t.length>0?e:-1).filter(t=>t>=0).every(t=>null!=_[t]),R=B.some(t=>t.length>1),D=C.state,O="productVariantDetailsApiCallInProgress"===D,W="atcApiCallInProgress"===D,M=C.cart_count>0,H=t=>"string"===typeof t?t.replace(/^undefined/,""):t,Q=(0,ct.P)(null===n||void 0===n?void 0:n.price,null===n||void 0===n?void 0:n.compare_price),V=H((0,St.Sb)(null===n||void 0===n?void 0:n.price,"",p,null===n||void 0===n?void 0:n.currency)),X=Q?H((0,St.Sb)(null===n||void 0===n?void 0:n.compare_price,"",p,null===n||void 0===n?void 0:n.currency)):null,U=Q?Math.round(100*(1-Number(n.price)/Number(n.compare_price))):0;let $="Select options to add";O?$="Loading options\u2026":M?$="\u2713 Added":W?$="Adding\u2026":A&&!T?$="Unavailable":A&&($="Add to cart");const Y=A&&!!T&&!W&&!M&&!O;return R?(0,k.jsxs)("div",{onTouchStart:t=>t.stopPropagation(),onTouchEnd:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{position:"absolute",inset:0,zIndex:60},children:[(0,k.jsx)("div",{onClick:r,style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.38)",animation:"whatmore-backdrop-fade-kf 0.22s ease-out"}}),(0,k.jsxs)("div",{style:{position:"absolute",left:0,right:0,bottom:0,margin:"0 auto",width:"100%",maxWidth:"380px",maxHeight:"80vh",background:"#fff",borderTopLeftRadius:"18px",borderTopRightRadius:"18px",display:"flex",flexDirection:"column",boxSizing:"border-box",fontFamily:v,color:"#2B2622",willChange:"transform",animation:"whatmore-sheet-slide-up-kf 0.34s cubic-bezier(0.32, 0.72, 0, 1)"},children:[(0,k.jsx)("div",{style:{width:"36px",height:"4px",borderRadius:"3px",background:"#D9D1C6",margin:"8px auto 4px",flex:"0 0 auto"}}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"11px",padding:"6px 16px 12px",borderBottom:"1px solid #EFEAE2",flex:"0 0 auto"},children:[(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"50px",height:"50px",borderRadius:"9px",overflow:"hidden",background:"#E9E2D6"},children:(null===n||void 0===n?void 0:n.thumbnail_image)&&(0,k.jsx)("img",{src:n.thumbnail_image,alt:null!==(e=null===n||void 0===n?void 0:n.title)&&void 0!==e?e:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,k.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#2B2622",lineHeight:1.3,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:null!==(i=null===n||void 0===n?void 0:n.title)&&void 0!==i?i:""}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"wrap",marginTop:"4px"},children:[(0,k.jsx)("span",{style:{fontSize:"16px",fontWeight:800,color:"#2B2622"},children:V}),X&&(0,k.jsx)("span",{style:{fontSize:"11px",color:"#9A9089",textDecoration:"line-through"},children:X}),U>0&&(0,k.jsxs)("span",{style:{fontSize:"10px",fontWeight:700,color:"#2E7D32",background:"#E6F4EA",padding:"1px 6px",borderRadius:"5px"},children:[U,"% off"]})]})]}),(0,k.jsx)("button",{type:"button","aria-label":"Close",onClick:r,style:{flex:"0 0 auto",width:"32px",height:"32px",borderRadius:"50%",border:"none",background:"#F0ECE5",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"#6E665D",strokeWidth:"2.2",strokeLinecap:"round"})})})]}),(0,k.jsxs)("div",{onTouchMove:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{overflowY:"auto",WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain",maxHeight:"60vh",padding:"14px 16px 4px",flex:1,minHeight:0},children:[O&&(0,k.jsx)("div",{style:{color:"#8A8178",fontSize:"13px",padding:"4px 2px"},children:"Loading options\u2026"}),B.map((t,e)=>{var i;if(0===t.length)return null;const o=(null===(i=t[0])||void 0===i?void 0:i.type)||"Options";return(0,k.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,k.jsx)("div",{style:{fontSize:"10px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:"#9A9089",marginBottom:"8px"},children:o}),(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:t.map((t,i)=>{const o=_[e]===t.option,n=F(e,t.option,_);return(0,k.jsx)("button",{type:"button",disabled:!n,onClick:()=>{return n&&(i=e,o=t.option,void E(t=>{const e=[...t];e[i]=e[i]===o?void 0:o;for(let o=0;o<e.length;o++)o===i||null==e[o]||F(o,e[o],e)||(e[o]=void 0);return e}));var i,o},style:{padding:"8px 15px",borderRadius:"9px",border:o?`1.5px solid ${x}`:`1px solid ${f}`,background:o?x:m,color:o?g:"#2B2622",fontFamily:v,fontSize:"13px",fontWeight:600,cursor:n?"pointer":"not-allowed",opacity:n?1:.4,textDecoration:n?"none":"line-through",transition:"all 0.15s ease",WebkitTapHighlightColor:"transparent"},children:t.option},i)})})]},e)})]}),(0,k.jsx)("div",{style:{padding:"8px 16px 16px",flex:"0 0 auto"},children:(0,k.jsx)("button",{type:"button",onClick:()=>{!A||W||M||S(_,L)},disabled:!Y,style:{width:"100%",height:"46px",border:"none",borderRadius:"12px",background:Y?x:w,color:g,fontFamily:v,fontSize:"14.5px",fontWeight:700,letterSpacing:"0.01em",cursor:Y?"pointer":"default",transition:"background 0.2s ease",WebkitTapHighlightColor:"transparent"},children:$})})]})]}):null};function De(t){return"string"===typeof t?t.replace(/^undefined/,""):t}function Oe(t,e){const i=(0,ct.P)(null===t||void 0===t?void 0:t.price,null===t||void 0===t?void 0:t.compare_price);return{price:De((0,St.Sb)(null===t||void 0===t?void 0:t.price,"",e,null===t||void 0===t?void 0:t.currency)),compare:i?De((0,St.Sb)(null===t||void 0===t?void 0:t.compare_price,"",e,null===t||void 0===t?void 0:t.currency)):null,savingsPct:i?Math.round(100*(1-Number(t.price)/Number(t.compare_price))):0}}function We({color:t,size:e=16}){return(0,k.jsx)("span",{style:{display:"inline-block",width:e+"px",height:e+"px",border:`2px solid ${t}`,borderTopColor:"transparent",borderRadius:"50%",animation:"whatmore-rotate-indefinitely-keyframe 0.7s linear infinite"}})}function Me({pct:t,dark:e}){return!t||t<=0?null:(0,k.jsxs)("span",{style:{fontSize:"11px",fontWeight:700,color:e?"#CDEBD3":"#2E7D32",background:e?"rgba(46,125,50,0.30)":"#E6F4EA",padding:"2px 7px",borderRadius:"6px",lineHeight:1.25,whiteSpace:"nowrap",fontFamily:Ae()},children:[t,"% off"]})}function He({added:t,loading:e,oos:i,onClick:o,accent:n,accentText:r}){return(0,k.jsx)("button",{type:"button",disabled:t||e||i,onClick:o,style:{flex:"0 0 auto",minWidth:"74px",height:"40px",border:t?`1.5px solid ${n}`:i?"1px solid #E7E0D5":"none",borderRadius:"10px",background:t?"#FFFFFF":i?"#EDEAE5":n,color:t?n:i?"#9A9089":r,fontFamily:Ae(),fontSize:"13px",fontWeight:700,cursor:t||e||i?"default":"pointer",transition:"all 0.18s ease",display:"flex",alignItems:"center",justifyContent:"center",WebkitTapHighlightColor:"transparent"},children:e?(0,k.jsx)(We,{color:r,size:15}):t?"\u2713 Added":i?"Sold out":"Add"})}var Qe=function(t){var e,i;const[o]=(0,u.QN)("whatmoreShopId"),n=t.event,r=Le(o),a=Be(o),d=((null===n||void 0===n?void 0:n.products)||[]).filter(Boolean),[s,p]=(0,l.useState)(0),[v,x]=(0,l.useState)(!1),[g,m]=(0,l.useState)(null),[f,w]=(0,l.useState)(!1),[C,y]=(0,l.useState)({}),[b,j]=(0,l.useState)({}),S=(0,l.useRef)(null);(0,l.useEffect)(()=>{const t=S.current;if(!t)return;const e=t=>{t.stopPropagation()};return t.addEventListener("wheel",e,{passive:!0}),t.addEventListener("touchmove",e,{passive:!0}),()=>{t.removeEventListener("wheel",e),t.removeEventListener("touchmove",e)}},[v]),(0,l.useEffect)(()=>{let t=!1;return(async()=>{try{(0,c.w4b)(o)?await(0,St.fu)(n,(0,c.NCy)(o),o):await Promise.all(((null===n||void 0===n?void 0:n.products)||[]).filter(Boolean).map(async t=>{var e,i,n,r,l,a;const d=await(0,h.M)(t,(0,c.NCy)(o),o),s=null!==(e=null===d||void 0===d||null===(i=d.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price)&&void 0!==e?e:null===d||void 0===d?void 0:d.price,u=null!==(r=null===d||void 0===d||null===(l=d.variants)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.compare_at_price)&&void 0!==r?r:null===d||void 0===d?void 0:d.compare_at_price;null!=s&&(t.price=s/100),null!=u&&(t.compare_price=u/100)}))}catch(e){}t||w(!0)})(),()=>{t=!0}},[null===n||void 0===n?void 0:n.event_id]),(0,l.useEffect)(()=>{let t=!1;return(async()=>{const e=await Promise.all(d.map(async t=>{try{const e=await(0,h.M)(t,(0,c.NCy)(o),o),i=(null===e||void 0===e?void 0:e.variants)||[];return[t.product_id,{hasVars:i.length>1,inStock:i.some(t=>t.available)}]}catch(e){return[t.product_id,{hasVars:!1,inStock:!0}]}}));t||y(Object.fromEntries(e))})(),()=>{t=!0}},[null===n||void 0===n?void 0:n.event_id]);const I=v||!!g;if((0,l.useEffect)(()=>{var e;return null===(e=t.setLockSwiper)||void 0===e||e.call(t,I),()=>{var e;return null===(e=t.setLockSwiper)||void 0===e?void 0:e.call(t,!1)}},[I]),0===d.length)return null;const _=d.length,E=d[Math.min(s,_-1)],z=Oe(E,o),F=t=>{var e;return"oos"===(null===t||void 0===t?void 0:t.product_status)||!1===(null===(e=C[null===t||void 0===t?void 0:t.product_id])||void 0===e?void 0:e.inStock)},T=C[null===E||void 0===E?void 0:E.product_id],P=void 0!==T,N=F(E),L=null!==T&&void 0!==T&&T.hasVars?"Choose options & add \u2192":"Add to cart",B=Object.prototype.hasOwnProperty.call(b,null===E||void 0===E?void 0:E.product_id),A=b[null===E||void 0===E?void 0:E.product_id],R=!B&&!N&&(!P||(null===g||void 0===g?void 0:g.product_id)===(null===E||void 0===E?void 0:E.product_id)),D={flex:"0 0 auto",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid rgba(255,255,255,0.22)",background:"rgba(255,255,255,0.08)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent"};return(0,k.jsxs)("div",{style:{width:"100%",maxWidth:"380px",margin:"0 auto",fontFamily:Ae(),boxSizing:"border-box",padding:"0 12px 12px"},children:[_>1&&(0,k.jsxs)("div",{role:"button",onClick:()=>x(!0),style:{display:"flex",alignItems:"center",gap:"8px",width:"fit-content",maxWidth:"100%",margin:"0 auto 10px",padding:"7px 14px 7px 8px",borderRadius:"999px",background:"rgba(20,16,14,0.55)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",cursor:"pointer"},children:[(0,k.jsx)("div",{style:{display:"flex",alignItems:"center"},children:d.slice(0,3).map((t,e)=>{var i;return(0,k.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",border:"2px solid rgba(20,16,14,0.9)",background:"#E9E2D6",marginLeft:0===e?0:"-8px",overflow:"hidden",backgroundImage:t.thumbnail_image?`url(${t.thumbnail_image})`:"none",backgroundSize:"cover",backgroundPosition:"center"}},null!==(i=t.product_id)&&void 0!==i?i:e)})}),(0,k.jsxs)("span",{style:{color:"#fff",fontSize:"13px",fontWeight:700,whiteSpace:"nowrap"},children:[_," products in this video"]}),(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 15l6-6 6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,k.jsxs)("div",{style:{borderRadius:"16px",background:"rgba(0,0,0,0.48)",border:"1px solid rgba(255,255,255,0.10)",padding:"13px",boxSizing:"border-box"},children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[_>1&&(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),p(t=>(t-1+_)%_)},"aria-label":"Previous product",style:D,children:(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M15 6l-6 6 6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"56px",height:"56px",borderRadius:"10px",overflow:"hidden",background:"#E9E2D6"},children:E.thumbnail_image&&(0,k.jsx)("img",{src:E.thumbnail_image,alt:null!==(e=E.title)&&void 0!==e?e:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[_>1&&(0,k.jsxs)("div",{style:{fontSize:"9.5px",fontWeight:700,letterSpacing:"0.11em",textTransform:"uppercase",color:"#C9A07A"},children:["Product ",Math.min(s,_-1)+1," of ",_]}),(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),E.product_link&&(window.location.href=E.product_link)},onMouseEnter:t=>{E.product_link&&(t.currentTarget.style.textDecoration="underline")},onMouseLeave:t=>{t.currentTarget.style.textDecoration="none"},style:{fontSize:"15px",fontWeight:700,color:"#fff",lineHeight:1.2,margin:"2px 0 4px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:E.product_link?"pointer":"default"},children:null!==(i=E.title)&&void 0!==i?i:""}),B&&A?(0,k.jsx)("div",{style:{fontSize:"12px",fontWeight:600,color:"#C9A07A",margin:"0 0 4px"},children:A}):null,f&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"nowrap",whiteSpace:"nowrap"},children:[(0,k.jsx)("span",{style:{fontSize:"16px",fontWeight:700,color:"#fff"},children:z.price}),z.compare&&(0,k.jsx)("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)",textDecoration:"line-through"},children:z.compare}),(0,k.jsx)(Me,{pct:z.savingsPct,dark:!0})]})]}),_>1&&(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),p(t=>(t+1)%_)},"aria-label":"Next product",style:D,children:(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M9 6l6 6-6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,k.jsx)("button",{type:"button",disabled:B||R||N,onClick:t=>{t.stopPropagation(),B||R||N||m(E)},style:{width:"100%",height:"46px",marginTop:"12px",border:B?"1px solid rgba(123,200,150,0.35)":"none",borderRadius:"12px",background:B?"rgba(46,109,69,0.40)":N?"rgba(255,255,255,0.14)":r,color:B?"#A7E0B7":N?"rgba(255,255,255,0.6)":a,fontFamily:Ae(),fontSize:"15px",fontWeight:700,cursor:B||R||N?"default":"pointer",display:"flex",alignItems:"center",justifyContent:"center",WebkitTapHighlightColor:"transparent"},children:B?"\u2713 Added"+(A?" \xb7 "+A:""):N?"Sold out":R?(0,k.jsx)(We,{color:a,size:18}):L})]}),v&&(0,k.jsxs)("div",{onTouchStart:t=>t.stopPropagation(),onTouchEnd:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{position:"absolute",inset:0,zIndex:50},children:[(0,k.jsx)("div",{onClick:()=>x(!1),style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.38)",animation:"whatmore-backdrop-fade-kf 0.22s ease-out"}}),(0,k.jsxs)("div",{style:{position:"absolute",left:0,right:0,bottom:0,margin:"0 auto",width:"100%",maxWidth:"380px",maxHeight:"70vh",background:"#fff",borderTopLeftRadius:"22px",borderTopRightRadius:"22px",display:"flex",flexDirection:"column",boxSizing:"border-box",willChange:"transform",animation:"whatmore-sheet-slide-up-kf 0.34s cubic-bezier(0.32, 0.72, 0, 1)"},children:[(0,k.jsx)("div",{style:{width:"44px",height:"5px",borderRadius:"3px",background:"#D9D1C6",margin:"10px auto 4px",flex:"0 0 auto"}}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",padding:"10px 20px 14px",borderBottom:"1px solid #EFEAE2",flex:"0 0 auto"},children:[(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{style:{fontFamily:Ae(),fontSize:"17px",fontWeight:700,color:"#2B2622"},children:[_," products in this video"]}),(0,k.jsx)("div",{style:{fontSize:"12px",color:"#8A8178",marginTop:"3px"},children:"Tap any item to add"})]}),(0,k.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>x(!1),style:{flex:"0 0 auto",width:"38px",height:"38px",borderRadius:"50%",border:"none",background:"#F0ECE5",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"#6E665D",strokeWidth:"2.2",strokeLinecap:"round"})})})]}),(0,k.jsx)("div",{ref:S,onTouchMove:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{flex:1,minHeight:0,maxHeight:"55vh",overflowY:"auto",WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain",padding:"4px 0 16px"},children:d.map((t,e)=>{var i,n,l;const d=Oe(t,o);return(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"11px 16px",borderBottom:e<_-1?"1px solid #F2EDE6":"none"},children:[(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"50px",height:"50px",borderRadius:"10px",overflow:"hidden",background:"#E9E2D6"},children:t.thumbnail_image&&(0,k.jsx)("img",{src:t.thumbnail_image,alt:null!==(n=t.title)&&void 0!==n?n:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,k.jsx)("div",{onClick:e=>{e.stopPropagation(),t.product_link&&(window.location.href=t.product_link)},onMouseEnter:e=>{t.product_link&&(e.currentTarget.style.textDecoration="underline")},onMouseLeave:t=>{t.currentTarget.style.textDecoration="none"},style:{fontSize:"14px",fontWeight:600,color:"#2B2622",lineHeight:1.25,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:t.product_link?"pointer":"default"},children:null!==(l=t.title)&&void 0!==l?l:""}),(0,k.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"nowrap",whiteSpace:"nowrap",marginTop:"4px",minHeight:"18px"},children:f&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{style:{fontSize:"14px",fontWeight:700,color:"#2B2622"},children:d.price}),d.compare&&(0,k.jsx)("span",{style:{fontSize:"11px",color:"#9A9089",textDecoration:"line-through"},children:d.compare}),(0,k.jsx)(Me,{pct:d.savingsPct})]})})]}),(0,k.jsx)(He,{accent:r,accentText:a,added:Object.prototype.hasOwnProperty.call(b,t.product_id),oos:F(t),loading:(null===g||void 0===g?void 0:g.product_id)===t.product_id&&!Object.prototype.hasOwnProperty.call(b,t.product_id),onClick:e=>{e.stopPropagation(),m(t)}})]},null!==(i=t.product_id)&&void 0!==i?i:e)})})]})]}),g&&(0,k.jsx)(Re,{event:n,product:g,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,onAdded:t=>j(e=>({...e,[g.product_id]:t||""})),onClose:()=>m(null)})]})};const Ve=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function Xe(t){var e,i,[o,n,r,a]=(0,p.A)();const[d]=(0,u.QN)("whatmoreSecondaryColor"),[s]=(0,u.QN)("whatmoreSecondaryColorShade900"),[c,h]=(0,l.useState)(0),v=null!==(e=t.totalSiblings)&&void 0!==e?e:1,x=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,l.useEffect)(()=>{const e=setInterval(()=>{h(Ve(t.videoPlayingData.current.current_time,t.videoPlayingData.current.video_duration))},100);return()=>clearInterval(e)},[]),(0,k.jsx)(B.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(v).keys()].map(t=>(0,k.jsx)(B.B,{width:"100%",height:.004*r+"px",backgroundColor:t<x?d:s+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==x?(0,k.jsx)(T.az,{height:"100%",width:c+"%",bgColor:d,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,k.jsx)(k.Fragment,{})},"event-progress-bar-slab-"+t))})}var Ue=i(5335);const $e=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Ye=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var qe=function(t){var e,i,o,n,r,a=t.whatmoreShareTemplateId;const d=t.whatmoreShareStoryId,h=t.whatmoreShareEventId,v=t.event,x=null===(e=t.showShareText)||void 0===e||e,g=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,m=(0,u.Xd)("whatmoreShopId"),f=(0,u.Xd)("isInDesignMode"),w=(0,u.Xd)("isDemoBrand"),C=(0,u.Xd)("whatmorePrimaryFont"),y=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,l.useContext)(b.BR),[S,I,_,E]=(0,p.A)(),z=null!==(o=t.iconSize)&&void 0!==o?o:.1*E*(0,c.xkB)(m);function P(){const e=(0,u.Xd)("whatmoreLandingLocationType");var i;!function(t){f||w||(async()=>{(0,s.increaseShareCount)(t)})()}(v),i="event_product_link"===(0,c.moP)(m)?v.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,c.moP)(m)?"":window.location.hostname)+i+"?wtt="+a+"&wsid="+d+"&weid="+h,(0,c.BLb)(m)&&(i=i+"&"+(0,c.VCz)(m)+"&utm_campaign=video-share&utm_medium="+e);const o={title:(0,c.kZI)(m),text:`${(0,c.dmA)(m)} \n ${i} ${"50529403072"!==m&&(0,c.ZX9)(m)?"\n \n -via Whatmore":""}`};navigator.share&&!Ye?navigator.share(o):(t.setIsModalOpen(!0),t.setShareText([o,i]))}return"63046287536"==m?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",style:{marginBottom:g+"px"},children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,k.jsx)(Ue.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P(),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:j,event:v,productList:v.products,ctaList:v.cta})}}),x&&(0,c.ViG)(m)?(0,k.jsxs)(A.E,{fontSize:.3*z*(0,c.ol5)(m)+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:C+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",v.total_share>(0,c.vDV)(m)?$e(v.total_share):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[y])||void 0===r?void 0:r.share)&&void 0!==n?n:"Share","\xa0"]}):(0,k.jsx)(k.Fragment,{})]})})})},Ke=i(6703),Ge=i(5753);var Ze=function(t){var e,i,o,n,r;const a=(0,u.Xd)("whatmoreShopId"),d=(0,u.Xd)("whatmorePrimaryFont"),h=(0,u.Xd)("whatmoreLikedEvents"),v=(0,u.Xd)("isInDesignMode"),x=(0,u.Xd)("isDemoBrand"),g=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:m}=(0,l.useContext)(b.BR),[f]=(0,l.useState)(()=>Math.floor(50*Math.random()+100)),w=t.event,[C,y]=(0,l.useState)(null!==(e=h[w.event_id])&&void 0!==e&&e),[j,S,I,_]=(0,p.A)(),E=.1*_*(0,c.xkB)(a);function z(t,e){v||x||(async()=>{(0,s.increaseLikeCount)(t,e)})()}function P(){(0,u.t2)("whatmoreLikedEvents",{...h,[w.event_id]:!C}),C?(z(w,-1),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_UNLIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})):(z(w,1),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_LIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})),y(!C)}const N=("78232846646"==a?null!==(i=w.total_like)&&void 0!==i?i:f:null!==(o=w.total_like)&&void 0!==o?o:0)+(C?1:0);return(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[C?(0,k.jsx)(Ge.A,{sx:{boxShadow:3,color:(0,c.MJ6)(a),fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P()}}):(0,k.jsx)(Ke.A,{sx:{boxShadow:3,color:"white",fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P()}}),(0,k.jsx)(k.Fragment,{children:(0,c.FlI)(a)?(0,k.jsxs)(A.E,{fontSize:.3*E*(0,c.ol5)(a)+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:d+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,c.LGx)(a)?$e(N):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[g])||void 0===r?void 0:r.like)&&void 0!==n?n:"Like","\xa0"]}):(0,k.jsx)(k.Fragment,{})})]})})})};const Je=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})}),ti=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"})})}),ei=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})}),ii=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,k.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,k.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,k.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var oi=t=>{const e=(0,u.Xd)("whatmoreShopId"),i=t.shareText,[o,n]=(0,l.useState)("Copy link"),[r,a]=(0,l.useState)(""),[d,s]=(0,l.useState)(window.innerWidth),[h,v,x,g]=(0,p.A)(),m=.1*g*(0,c.xkB)(e)*.5,f=!0===(0,c.SGs)(e);(0,l.useEffect)(()=>{const t=()=>s(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const w=d<380,C=w?Math.min(t.iconSize,22):Math.min(t.iconSize,28),y=w?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,k.jsx)(k.Fragment,{children:t.isModalOpen&&(0,k.jsxs)("div",{className:"modal-overlay",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"10px",padding:"12px 16px 20px 16px",width:"90%",maxWidth:"420px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:[(0,k.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,k.jsxs)("div",{onClick:()=>{f&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:[f?(0,k.jsx)("img",{className:"whatmore-label",src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px",width:Math.min(t.iconSize,28)+"px"}}):(0,k.jsx)(Ue.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,k.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:f?"Whatmore":"Share On"})]}),(0,k.jsx)($.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,k.jsx)(je.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,k.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,k.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(Je,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"Whatsapp"})]}),f&&(0,k.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ti,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"X"})]}),(0,k.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(i[1]),n("Copied"),a("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ei,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,color:r,margin:0,textAlign:"center"},children:o})]}),(0,k.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const o=(null===i||void 0===i||null===(e=i[0])||void 0===e?void 0:e.text)||"",n=null===i||void 0===i?void 0:i[1];try{navigator.share?await navigator.share({title:"Check this out",text:o,url:n}):(await navigator.clipboard.writeText(n),alert("Link copied. You can paste it anywhere!"))}catch(r){console.error("Share failed:",r)}},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ii,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"More"})]})]})]})})},ni=i(5677);var ri=function(t){var e,i;const o=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),n=(0,u.Xd)("whatmorePrimaryFont"),r=(0,u.Xd)("whatmoreShopId"),l=null!==(i=t.fontSize)&&void 0!==i?i:"8",[a]=(0,ni.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,p=(0,u.Xd)("whatmoreLandingLocationType"),h=t.isOutside||!p.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${o}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${o}&utm_medium=referral&utm_campaign=${d}`,v=s?"https://www.letsmapit.in/":h;return(0,k.jsx)(zt.N,{href:v,isExternal:!0,textDecoration:"none",children:(0,c.SGs)(r)&&(0,k.jsxs)(B.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,k.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:s?"marketed by":"Powered By"}),s?(0,k.jsx)(T.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,k.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,k.jsxs)(T.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,k.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,k.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},li=i(5405),ai=i(6677),di=i(5156);var si=()=>(0,k.jsxs)(T.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,k.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,k.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}),ci=i(5566);var ui=t=>{var e;const i={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,n]=(0,l.useState)(!1),[r,a]=(0,l.useState)(null),[d,s]=(0,l.useState)(null),c=(0,l.useRef)(null),u=(0,l.useContext)(b.BR);(0,l.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,ci.NF)(t.question.id)},[]);return(0,l.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,l.useEffect)(()=>{!o&&c.current&&s(c.current.offsetHeight)},[o]),(0,k.jsxs)(T.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:c,height:d?`${d}px`:"auto",children:[(0,k.jsx)(T.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:u})},children:(0,k.jsx)(di.A,{})}),(0,k.jsx)(T.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,k.jsx)(ai.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,k.jsx)(T.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,k.jsxs)(T.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,k.jsx)(si,{}),(0,k.jsx)(ai.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,k.jsx)(B.B,{spacing:5,width:"100%",align:"center",children:i.options.map((e,i)=>(0,k.jsx)(T.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:r===e?"gray.200":"white",borderColor:r===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var i;a(e),n(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:u})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,k.jsx)(A.E,{py:5,color:"gray.800",children:e})},i))})})]})},pi=i(9504);var hi=t=>{var e,i;const[o,n]=(0,l.useState)(""),[r,a]=(0,l.useState)(""),[d,s]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),v=(0,u.Xd)("whatmoreShopId"),x=(0,u.Xd)("whatmoreSecondaryColor"),g=(0,u.Xd)("whatmorePrimaryFont"),m=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,f=(0,l.useContext)(b.BR);(0,l.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,ci.NF)(t.question.id)},[]);const w=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:f})):a("Please enter valid contact info.")},C=()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:f})};return(0,k.jsx)(de.s,{bg:x,p:"6%",borderRadius:"md",boxShadow:"md",width:"90vw",mx:"auto",minH:"40vh",maxH:"80vh",position:"fixed",top:"30%",left:"50%",transform:"translateX(-50%)",direction:"column",align:"center",justify:"center",zIndex:100,overflow:"hidden",children:d?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(T.az,{textAlign:"center",color:"white",children:[(0,k.jsx)(T.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,k.jsx)(T.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,k.jsx)(T.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,k.jsx)(Y,{onCloseCallback:C})}),(0,k.jsxs)(T.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,c.TH)(v);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{C()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,k.jsxs)(T.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,k.jsx)(T.az,{as:"span",fontWeight:"bold",color:"black",children:(0,c.TH)(v)}),(0,k.jsx)(pi.A,{sx:{color:p?{whatmoreSecondaryColor:x}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),p&&(0,k.jsx)(T.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:x,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(T.az,{textAlign:"center",color:"white",children:[(0,k.jsx)(T.az,{children:(0,k.jsx)(A.E,{fontFamily:g,fontSize:"22px",fontWeight:"bold",children:m})}),(0,k.jsx)(T.az,{marginBottom:"10%",fontSize:"md",children:(0,c.aRV)(v)})]}),(0,k.jsx)(T.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,k.jsx)(Y,{onCloseCallback:C})}),(0,k.jsxs)(de.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,k.jsx)(T.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,k.jsx)("input",{fontFamily:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{n(t.target.value),r&&a("")},onKeyDown:t=>{"Enter"===t.key&&w()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),r&&(0,k.jsx)(A.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:r}),(0,k.jsx)(T.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:w,width:"50%",children:(0,k.jsx)(A.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:x,children:"SUBMIT"})})]})]})})};var vi=t=>{const[e,i]=(0,l.useState)(null);return(0,k.jsx)(T.az,{children:!e&&(0,k.jsx)(hi,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})},xi=i(9820);const gi=(t={},e,i,o=void 0)=>{var n,r,l,a,d,s,c,u,p,h,v,x,g,m,f,w,C,y,b,j,S,k,I,_,E,z,F,T,P,N,L,B,A,R,D,O,W,M,H,Q,V,X,U,$,Y,q,K,G,Z,J,tt,et,it,ot,nt,rt,lt,at,dt,st,ct,ut,pt,ht,vt,xt,gt,mt;const ft={heightMultiplier:10},wt={fontSizeMultiplier:8.3},Ct={fontSizeMultiplier:3},yt={fontSizeMultiplier:2.8,paddingMultiplier:3.5},bt={fontSizeMultiplier:3.5,paddingYMultiplier:3.5,paddingXMultiplier:4},jt={widthMultiplier:100,paddingMultiplier:5,borderRadiusMultiplier:1.2},St={logoTopMultiplier:0,logoBottomMultiplier:4,headingTopMultiplier:4,headingBottomMultiplier:2,subHeadingTopMultiplier:2,subHeadingBottomMultiplier:2,textFieldTopMultiplier:10,textFieldBottomMultiplier:6,ctaButtonBottomMultiplier:4};let kt="Email";return"number"===o?kt="Phone Number":"string"===o&&(kt="Email"),{logo:{url:(null===t||void 0===t||null===(n=t.logo)||void 0===n?void 0:n.url)||"",show:!(null===t||void 0===t||!t.logo||null===t||void 0===t||null===(r=t.logo)||void 0===r||!r.url),height:i(null!==(l=null===t||void 0===t||null===(a=t.logo)||void 0===a?void 0:a.heightMultiplier)&&void 0!==l?l:ft.heightMultiplier)},heading:{text:(null===t||void 0===t||null===(d=t.heading)||void 0===d?void 0:d.text)||"Bought You Christmas Present!",show:!(null===t||void 0===t||null===(s=t.heading)||void 0===s||!s.text),color:(null===t||void 0===t||null===(c=t.heading)||void 0===c?void 0:c.color)||"black",fontSize:i(null!==(u=null===t||void 0===t||null===(p=t.heading)||void 0===p?void 0:p.fontSizeMultiplier)&&void 0!==u?u:wt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(h=t.heading)||void 0===h?void 0:h.fontWeight)||"bold",textAlign:(null===t||void 0===t||null===(v=t.heading)||void 0===v?void 0:v.textAlign)||"center"},subHeading:{text:(null===t||void 0===t||null===(x=t.subHeading)||void 0===x?void 0:x.text)||"Drop you email for the amazing offers!",show:!(null===t||void 0===t||null===(g=t.subHeading)||void 0===g||!g.text),color:(null===t||void 0===t||null===(m=t.subHeading)||void 0===m?void 0:m.color)||"black",fontSize:i(null!==(f=null===t||void 0===t||null===(w=t.subHeading)||void 0===w?void 0:w.fontSizeMultiplier)&&void 0!==f?f:Ct.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(C=t.subHeading)||void 0===C?void 0:C.fontWeight)||"normal",textAlign:(null===t||void 0===t||null===(y=t.subHeading)||void 0===y?void 0:y.textAlign)||"center"},textField:{placeholder:(null===t||void 0===t||null===(b=t.textField)||void 0===b?void 0:b.placeholder)||kt,backgroundColor:(null===t||void 0===t||null===(j=t.textField)||void 0===j?void 0:j.backgroundColor)||"#FFFFFF",borderColor:(null===t||void 0===t||null===(S=t.textField)||void 0===S?void 0:S.borderColor)||"#CCCCCC",borderWidth:(null===t||void 0===t||null===(k=t.textField)||void 0===k?void 0:k.borderWidth)||"1px",borderRadius:(null===t||void 0===t||null===(I=t.textField)||void 0===I?void 0:I.borderRadius)||"10px",textColor:(null===t||void 0===t||null===(_=t.textField)||void 0===_?void 0:_.textColor)||"#000000",fontSize:i(null!==(E=null===t||void 0===t||null===(z=t.textField)||void 0===z?void 0:z.fontSizeMultiplier)&&void 0!==E?E:yt.fontSizeMultiplier),padding:i(null!==(F=null===t||void 0===t||null===(T=t.textField)||void 0===T?void 0:T.paddingMultiplier)&&void 0!==F?F:yt.paddingMultiplier)},ctaButton:{text:(null===t||void 0===t||null===(P=t.ctaButton)||void 0===P?void 0:P.text)||"Submit",backgroundColor:(null===t||void 0===t||null===(N=t.ctaButton)||void 0===N?void 0:N.backgroundColor)||"#4A4A4A",textColor:(null===t||void 0===t||null===(L=t.ctaButton)||void 0===L?void 0:L.textColor)||"#FFFFFF",fontSize:i(null!==(B=null===t||void 0===t||null===(A=t.ctaButton)||void 0===A?void 0:A.fontSizeMultiplier)&&void 0!==B?B:bt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(R=t.ctaButton)||void 0===R?void 0:R.fontWeight)||"bold",borderRadius:(null===t||void 0===t||null===(D=t.ctaButton)||void 0===D?void 0:D.borderRadius)||"10px",paddingY:i(null!==(O=null===t||void 0===t||null===(W=t.ctaButton)||void 0===W?void 0:W.paddingYMultiplier)&&void 0!==O?O:bt.paddingYMultiplier),paddingX:i(null!==(M=null===t||void 0===t||null===(H=t.ctaButton)||void 0===H?void 0:H.paddingXMultiplier)&&void 0!==M?M:bt.paddingXMultiplier)},closeButton:{backgroundColor:(null===t||void 0===t||null===(Q=t.closeButton)||void 0===Q?void 0:Q.backgroundColor)||"#4A4A4A"},container:{backgroundGradient:(null===t||void 0===t||null===(V=t.container)||void 0===V?void 0:V.backgroundGradient)||"linear-gradient(135deg, #e0ded9 0%, #bab8b0 60%, #f4f3f0 100%)",frameColor:(null===t||void 0===t||null===(X=t.container)||void 0===X?void 0:X.frameColor)||"#CCCCCC",frameWidth:(null===t||void 0===t||null===(U=t.container)||void 0===U?void 0:U.frameWidth)||"2px",borderRadius:i(null!==($=null===t||void 0===t||null===(Y=t.container)||void 0===Y?void 0:Y.borderRadiusMultiplier)&&void 0!==$?$:jt.borderRadiusMultiplier),boxShadow:(null===t||void 0===t||null===(q=t.container)||void 0===q?void 0:q.boxShadow)||"0px 4px 12px rgba(0, 0, 0, 0.15)",padding:i(null!==(K=null===t||void 0===t||null===(G=t.container)||void 0===G?void 0:G.paddingMultiplier)&&void 0!==K?K:jt.paddingMultiplier),width:i(null!==(Z=null===t||void 0===t||null===(J=t.container)||void 0===J?void 0:J.widthMultiplier)&&void 0!==Z?Z:jt.widthMultiplier)},spacing:{logoTop:i(null!==(tt=null===t||void 0===t||null===(et=t.spacing)||void 0===et?void 0:et.logoTopMultiplier)&&void 0!==tt?tt:St.logoTopMultiplier),logoBottom:i(null!==(it=null===t||void 0===t||null===(ot=t.spacing)||void 0===ot?void 0:ot.logoBottomMultiplier)&&void 0!==it?it:St.logoBottomMultiplier),headingTop:i(null!==(nt=null===t||void 0===t||null===(rt=t.spacing)||void 0===rt?void 0:rt.headingTopMultiplier)&&void 0!==nt?nt:St.headingTopMultiplier),headingBottom:i(null!==(lt=null===t||void 0===t||null===(at=t.spacing)||void 0===at?void 0:at.headingBottomMultiplier)&&void 0!==lt?lt:St.headingBottomMultiplier),subHeadingTop:i(null!==(dt=null===t||void 0===t||null===(st=t.spacing)||void 0===st?void 0:st.subHeadingTopMultiplier)&&void 0!==dt?dt:St.subHeadingTopMultiplier),subHeadingBottom:i(null!==(ct=null===t||void 0===t||null===(ut=t.spacing)||void 0===ut?void 0:ut.subHeadingBottomMultiplier)&&void 0!==ct?ct:St.subHeadingBottomMultiplier),textFieldTop:i(null!==(pt=null===t||void 0===t||null===(ht=t.spacing)||void 0===ht?void 0:ht.textFieldTopMultiplier)&&void 0!==pt?pt:St.textFieldTopMultiplier),textFieldBottom:i(null!==(vt=null===t||void 0===t||null===(xt=t.spacing)||void 0===xt?void 0:xt.textFieldBottomMultiplier)&&void 0!==vt?vt:St.textFieldBottomMultiplier),ctaButtonBottom:i(null!==(gt=null===t||void 0===t||null===(mt=t.spacing)||void 0===mt?void 0:mt.ctaButtonBottomMultiplier)&&void 0!==gt?gt:St.ctaButtonBottomMultiplier)}}};var mi=t=>{var e,i,o,n,r;const[a,d]=(0,l.useState)(""),[s,c]=(0,l.useState)(!1),[h,v]=(0,l.useState)(!1),x=(0,l.useContext)(b.BR),[g]=(0,u.QN)("whatmorePrimaryFont"),[m,f,w,C]=(0,p.A)(),y=.01*C,j=null===(e=t.question)||void 0===e?void 0:e.type,S=gi(null===(i=t.question)||void 0===i?void 0:i.template_config,y,t=>y*t+"px",j),I=null===(o=t.question)||void 0===o||null===(n=o.answers)||void 0===n?void 0:n.coupon_code;(0,l.useEffect)(()=>{var e;null!==(e=t.question)&&void 0!==e&&e.id&&(0,ci.NF)(t.question.id)},[]);const _=()=>{var e,i;c(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:a,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:x}),I||setTimeout(()=>{t.setIsQuestionVisible(!1)},1500)};return(0,k.jsxs)("div",{className:"whatmore-lead-capture-container",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:S.container.backgroundGradient,padding:S.container.padding,zIndex:100,fontFamily:g},children:[(0,k.jsx)("div",{style:{position:"absolute",top:"16px",right:"16px",zIndex:20,cursor:"pointer"},onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:x})},children:(0,k.jsx)("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:S.closeButton.backgroundColor,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)(xi.A,{style:{color:"white",fontSize:"18px"}})})})}),s?(0,k.jsxs)("div",{className:"whatmore-lead-capture-success",style:{textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",width:"85%"},children:[(0,k.jsx)(si,{}),(0,k.jsx)("p",{style:{fontSize:S.heading.fontSize,fontWeight:"bold",color:S.heading.color,margin:"16px 0"},children:"Thank you for your response!"}),I&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{onClick:()=>{navigator.clipboard.writeText(I).then(()=>{v(!0),setTimeout(()=>{t.setIsQuestionVisible(!1)},800)},()=>{console.error("Failed to copy coupon code")})},style:{position:"relative",width:"100%",cursor:"pointer",marginBottom:"12px"},children:[(0,k.jsxs)("div",{style:{backgroundColor:"white",border:"2px dashed black",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,k.jsx)("span",{style:{fontWeight:"bold",fontSize:S.ctaButton.fontSize,color:"black"},children:I}),(0,k.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:h?"#4CAF50":"#666",strokeWidth:"2",children:[(0,k.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,k.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})]}),h&&(0,k.jsx)("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"-30px",backgroundColor:"#4CAF50",color:"white",fontSize:"12px",borderRadius:"4px",padding:"4px 12px"},children:"Copied!"})]}),(0,k.jsx)("p",{style:{fontSize:S.subHeading.fontSize,color:S.subHeading.color,margin:0,fontStyle:"italic"},children:"Tap to copy"})]})]}):(0,k.jsxs)(k.Fragment,{children:[S.logo.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-logo",style:{marginBottom:S.spacing.logoBottom,marginTop:S.spacing.logoTop},children:(0,k.jsx)("img",{src:S.logo.url,alt:"Logo",style:{height:S.logo.height,objectFit:"contain"}})}),S.heading.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-heading",style:{marginTop:S.spacing.headingTop,marginBottom:S.spacing.headingBottom},children:(0,k.jsx)("p",{style:{fontSize:S.heading.fontSize,fontWeight:S.heading.fontWeight,color:S.heading.color,textAlign:S.heading.textAlign,margin:0},children:S.heading.text})}),S.subHeading.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-subheading",style:{marginTop:S.spacing.subHeadingTop,marginBottom:S.spacing.subHeadingBottom},children:(0,k.jsx)("p",{style:{fontSize:S.subHeading.fontSize,fontWeight:S.subHeading.fontWeight,color:S.subHeading.color,textAlign:S.subHeading.textAlign,margin:0},children:S.subHeading.text})}),(0,k.jsx)("div",{className:"whatmore-lead-capture-textfield",style:{marginTop:S.spacing.textFieldTop,marginBottom:S.spacing.textFieldBottom,width:"85%"},children:(0,k.jsx)("div",{style:{backgroundColor:S.textField.backgroundColor,border:`${S.textField.borderWidth} solid ${S.textField.borderColor}`,borderRadius:S.textField.borderRadius,padding:S.textField.padding,width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("input",{type:"number"===(null===(r=t.question)||void 0===r?void 0:r.type)?"tel":"email",placeholder:S.textField.placeholder,value:a,onChange:t=>d(t.target.value),onKeyDown:t=>{"Enter"===t.key&&_()},style:{fontSize:S.textField.fontSize,color:S.textField.textColor,border:"none",outline:"none",width:"100%",backgroundColor:"transparent",height:"100%"}})})}),(0,k.jsx)("button",{className:"whatmore-lead-capture-cta-button",onClick:_,style:{minWidth:"35%",maxWidth:"70%",width:"auto",backgroundColor:S.ctaButton.backgroundColor,color:S.ctaButton.textColor,fontSize:S.ctaButton.fontSize,fontWeight:S.ctaButton.fontWeight,borderRadius:S.ctaButton.borderRadius,padding:`${S.ctaButton.paddingY} ${S.ctaButton.paddingX}`,marginBottom:S.spacing.ctaButtonBottom,border:"none",outline:"none",cursor:"pointer",whiteSpace:"normal",textAlign:"center"},onMouseEnter:t=>t.target.style.opacity="0.9",onMouseLeave:t=>t.target.style.opacity="1",children:S.ctaButton.text})]})]})};var fi=t=>{var e;const[i,o]=(0,l.useState)(null),n=t.questionIndex,r=t.questionList;if((0,l.useEffect)(()=>{if(!(n>=r.length))return()=>(0,ci.Hm)()},[]),n>=r.length)return;const a=null===r||void 0===r?void 0:r[n];return"lead_capture"===(null===a||void 0===a?void 0:a.template_type)?(0,k.jsx)(T.az,{children:(0,k.jsx)(mi,{question:a,setIsQuestionVisible:t.setIsQuestionVisible})}):"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,k.jsx)(T.az,{children:(0,k.jsx)(vi,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,k.jsx)(T.az,{children:(0,k.jsx)(ui,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map(t=>null===t||void 0===t?void 0:t.value),onAnswerSelect:t=>{o(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},wi=i(2261);const Ci=({iconSize:t})=>(0,k.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,k.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,k.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})});var yi=function(t){const e=(0,u.Xd)("whatmoreShopId"),i=t.event,[o,r,l,a]=(0,p.A)(),d=.09*a*(0,c.xkB)(e);return(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{onClick:async function(){const t=(0,n.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),o=await e.blob(),n=window.URL.createObjectURL(o),r=document.createElement("a");r.href=n,r.download=`whatmore-video-${i.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,k.jsx)(Ci,{iconSize:d})})})})},bi=i(5568),ji=i(5879);function Si(t){var e;const i=t.event,[o,r,a,d]=(0,p.A)(),[s]=(0,u.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,l.useContext)(b.BR),[v]=(0,u.QN)("whatmoreSecondaryColor"),[x]=(0,u.QN)("whatmoreShopId"),g=(0,c.ivI)(x),m=null!==(e=(0,c.qAx)(x))&&void 0!==e?e:[v,g,v,g,v],f=(0,l.useRef)(null);(0,l.useEffect)(()=>{f.current&&f.current.play()},[]);const w=(0,n.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,k.jsx)(k.Fragment,{children:h?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+m[0]+"50, 0px -2px 1px 0px "+m[1]+"50, 2px 0px 1px 0px "+m[2]+"50, -2px 0px 1px 0px "+m[3]+"80, 2px -2px 1px 0px "+m[4]+"80, -2px 2px 1px 0px "+m[0]+"DA, 2px 2px 1px 0px "+m[1]+"DA, -2px -2px 1px 0px "+m[2]+"DA"},children:"video"==(0,yt.B)(w)?(0,k.jsx)(li.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:w,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,k.jsx)("img",{src:w,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:s+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,k.jsx)(k.Fragment,{})})}var ki=function(t){var e,i,o,n,r;const[a,d,h]=(0,bi.A)(),[v]=(0,u.QN)("isInDesignMode"),[x]=(0,u.QN)("isDemoBrand"),[m,f]=(0,u.QN)("isProductSwiperCatalogOpen"),[w,C]=(0,u.QN)("isFirstIndicatorRenderDone"),[y]=(0,u.QN)("whatmoreShopId"),[j]=(0,u.QN)("websiteLanguage"),[S]=(0,u.QN)("whatmoreShowViews"),I=(0,l.useContext)(g.p),{whatmoreEventsBrowsingTemplate:_,whatmoreIsStoriesTemplate:E}=(0,l.useContext)(b.BR),[z,F,P,N]=(0,p.A)(),R=(0,u.Xd)("whatmorePrimaryFont"),[D,O]=(0,l.useState)(0),W=t.event,M=t.storySetId,H=t.isLast,Q=t.onCloseCallback,V=t.focusRef,X=t.productClickHandler,$=t.videoPlayingData,q=t.totalSiblingEvents,K=t.indexAmongSiblings,Z=t.leftOpenSpaceClickHandler,et=t.midOpenSpaceClickHandler,it=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:ot}=(0,l.useContext)(b.BR),nt=.1*N,[at,dt]=(0,l.useState)(!1),[st,ct]=(0,l.useState)([]);function ut(){v||x||(async()=>{(0,s.increaseWhatsappClickCount)(W,1)})();const t=W.products[D]||W.products[0];(0,rt.registerClickEvent)({userInteractionType:lt.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:ot,event:W,productList:null===W||void 0===W?void 0:W.products,ctaList:null===W||void 0===W?void 0:W.cta});const e=t.product_link,i=(0,c.dzp)(y),o=(0,G.ek)(window.Shopify&&window.Shopify.locale||j,"whatsapp_share"),n="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:o?o.replace("{brand}",(null===t||void 0===t?void 0:t.brand)||"").replace("{url}",e):`Hey, I am interested in this product I saw on ${null===t||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}(0,l.useEffect)(()=>{O(0)},[null===W||void 0===W?void 0:W.event_id]);const pt=t=>{ht.current&&!ht.current.contains(t.target)&&dt(!1)},ht=(0,l.useRef)(null);(0,l.useEffect)(()=>(at?document.addEventListener("click",pt):document.removeEventListener("click",pt),()=>{document.removeEventListener("click",pt)}),[at]);const vt=(()=>{const t=(0,u.Xd)("whatmoreShopId");return"Free"==(0,c.yt9)(t)})()&&"portrait"==a;return(0,k.jsxs)(T.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,k.jsx)(ne.S,{userInteractionType:lt.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!v&&!x,children:(0,k.jsx)(fi,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),at&&(0,k.jsx)("div",{ref:ht,className:"whatmore-share-modal",style:{zIndex:100,position:"absolute",boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.6)",width:"75%",top:"45%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,k.jsx)(oi,{shareText:st,setShareText:ct,iconSize:nt,isModalOpen:at,setIsModalOpen:dt})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,k.jsxs)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,k.jsxs)(B.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[I.showVideoPlayingData?(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,k.jsx)(Xe,{videoPlayingData:$,totalSiblings:q,indexAmongSiblings:K})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(T.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",paddingRight:"10px",paddingLeft:"10px",children:[(0,k.jsxs)(B.B,{className:"wht-overlay-left-group",direction:"row",alignItems:"center",gap:"10px",style:{flexGrow:1,minWidth:0},children:[(0,k.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",width:0,height:0}}),(0,k.jsx)(Si,{event:W,width:N}),(0,kt.Yt)(_)||"show"!==S||"61415948468"!==y||"show"!==(0,c.klK)(y)?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(T.az,{children:(0,k.jsx)(ji.A,{event:W,fontSize:.035*N+"px"})})]}),(0,k.jsxs)(B.B,{className:"wht-overlay-right-group",direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,kt.Yt)(_)?(0,k.jsx)(qe,{whatmoreShareTemplateId:(0,kt.Gy)(_),whatmoreShareStoryId:M,whatmoreShareEventId:W.event_id,event:W,showShareText:!1,iconSize:.098*N,setIsModalOpen:dt,setShareText:ct}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(L,{focusRef:V}),("landscape"!==a||t.showCloseOverlay)&&(0,k.jsx)(Y,{event:W,onCloseCallback:Q})]})]})})]}),(0,k.jsxs)(B.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,k.jsx)(T.az,{width:"33%",height:"100%",onClick:()=>{Z&&Z()},sx:{display:"block !important"}}),(0,k.jsx)(T.az,{width:"34%",height:"100%",onClick:()=>{et&&et()},sx:{display:"block !important"}}),(0,k.jsx)(T.az,{width:"33%",height:"100%",onClick:()=>{it&&it()},sx:{display:"block !important"}})]}),(0,k.jsxs)(T.az,{width:"full",height:"fit-content",children:[I.totalEvents>1&&!w&&I.showSwipeIndicator?(0,k.jsx)(T.az,{width:"full",margin:"2px",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,k.jsx)(J,{swipeUp:!H})})}):null,(0,k.jsx)(T.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,k.jsxs)(T.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,k.jsxs)(k.Fragment,{children:[" ","portrait"==a&&I.totalEvents>1&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(T.az,{children:(0,k.jsx)(wi.A,{style:{fontSize:1.3*nt+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(W,"left")}})}),(0,k.jsx)(T.az,{children:(0,k.jsx)(wi.A,{style:{fontSize:1.3*nt+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(W,"right")}})})]}),(0,k.jsx)(T.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(yi,{event:W})})})]}),(0,c.oZc)(y)&&(0,c.dzp)(y)&&!(0,kt.Yt)(_)?(0,k.jsx)(T.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,k.jsxs)(B.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:ut,children:[(0,k.jsx)(Je,{iconSize:.7*nt,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,k.jsx)(A.E,{fontSize:nt*(0,c.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:R+" !important",color:"white !important"},children:null!==(n=(0,G.ek)(j,"talk_to_us"))&&void 0!==n?n:(0,c.wtw)(y)})]})}):(0,k.jsx)(k.Fragment,{}),(0,c.MdM)(y)&&(0,k.jsxs)(T.az,{height:"fit-content",position:"relative",children:[(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(Ze,{event:W})}),(0,kt.Yt)(_)&&"50529403072"===y&&(0,k.jsx)(T.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,k.jsxs)(B.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:ut,children:[(0,k.jsx)(Je,{iconSize:.6*nt,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,k.jsx)(A.E,{fontSize:nt*(0,c.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:R+" !important",color:"white !important"},children:null!==(r=(0,G.ek)(j,"talk_to_us"))&&void 0!==r?r:(0,c.wtw)(y)})]})})]}),(0,c.iQ5)(y)&&!(0,kt.Yt)(_)?(0,k.jsx)(T.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(qe,{whatmoreShareTemplateId:(0,kt.Gy)(_),whatmoreShareStoryId:M,whatmoreShareEventId:W.event_id,event:W,setIsModalOpen:dt,setShareText:ct})})}):(0,k.jsx)(k.Fragment,{})]})}),(0,tt.Z_)(W)?(0,k.jsx)(T.az,{width:"full",children:"multi-product-tile"===(0,c.Vpi)(y)?(0,k.jsx)(T.az,{display:"flex",width:"100%",height:"fit-content",children:(0,k.jsx)(Qe,{event:W,productClickHandler:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,setLockSwiper:t.setLockSwiper})}):(0,k.jsxs)(k.Fragment,{children:[(0,c.ek9)(y)?(0,k.jsx)(T.az,{w:"100%",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(U,{event:W,onToggle:t=>{f("minimize-button"!==t)}})})}):(0,k.jsx)(k.Fragment,{}),m&&(0,k.jsx)(T.az,{display:"flex",width:"100%",height:"fit-content",children:(0,k.jsx)(le,{event:W,isPlaying:t.isPlaying,productClickHandler:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,onActiveProductChange:O})})]})}):(0,k.jsx)(k.Fragment,{})]}),vt&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,k.jsx)(ri,{brandName:null===W||void 0===W?void 0:W.brand,fontSize:.033*N})})]})]})},Ii=i(9612),_i=i.n(Ii);var Ei=function(t){var e,i,o,a,d,s,[v,x,m,f]=(0,p.A)();const[w,C]=(0,l.useState)(!1),[y,j]=(0,l.useState)(),[S,I]=(0,l.useState)(),_=(0,l.useRef)({current_time:0,video_duration:0,is_video_ended:!1}),E=(0,u.Xd)("whatmoreShopId"),P=t.event,N=t.storyId,L=t.onBack,A=l.useRef(),R=t.changeSlide,D=t.isPlaying,O=t.isLast,W=t.setLockSwiper,M=t.onVideoEndedCallback,H=t.progressUpdateCallback,Q=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,V=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=null===(o=t.showOverlay)||void 0===o||o,U=null!==(a=t.leftOpenSpaceClickHandler)&&void 0!==a?a:()=>{},$=null!==(d=t.midOpenSpaceClickHandler)&&void 0!==d?d:()=>{},Y=null!==(s=t.rightOpenSpaceClickHandler)&&void 0!==s?s:()=>{},{whatmoreWidgetSourceDetails:q,whatmoreIsStoriesTemplate:K}=(0,l.useContext)(b.BR),{questionList:G}=(0,l.useContext)(g.p),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,l.useState)(),[et,it]=(0,l.useState)({}),ot=(t,e)=>{it(i=>({...i,[t]:e}))};(0,l.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const nt="center",at=async t=>{const e=await(0,h.M)(t,(0,c.NCy)(E),E);I(t),j(e),C(!0),W(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_CLICKED,widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta}),(0,u.t2)("whatmoreAllowAutoSlide",!1)};let dt;try{dt=_i()(()=>{M()},1e3,{leading:!0,trailing:!1})}catch(st){console.log(st)}return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:f,height:m,sx:{overflow:"hidden"},children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:nt,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"white",children:(0,k.jsx)(Ne.g,{width:"full",ratio:f/m,children:(0,k.jsx)(z,{height:"100%",width:"100%",url:(0,n.s)((0,r.lP)(P)),isPlaying:D&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=Ve(t,e),o=_.current.is_video_ended;i>=99&&D&&!o?((0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:e,video_duration:e},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta}),dt(),_.current={current_time:t,video_duration:e,is_video_ended:!0}):_.current={current_time:t,video_duration:e,is_video_ended:o&&i>=99},H({watch_time:t,video_duration:e,event_id:P.event_id,is_video_ended:_.current.is_video_ended})},event:P,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),X?(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:nt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:K?(0,k.jsx)(ki,{focusRef:A,event:t.event,isLast:O,onCloseCallback:t=>{var e;L(t),null!==(e=_.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:_.current.current_time,video_duration:_.current.video_duration},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta})},productClickHandler:at,videoPlayingData:_,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:U,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:Y,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:ot,setLockSwiper:W}):(0,k.jsx)(ki,{focusRef:A,event:t.event,isPlaying:D,isLast:O,onCloseCallback:t=>{var e;L(t),null!==(e=_.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:_.current.current_time,video_duration:_.current.video_duration},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta})},productClickHandler:at,videoPlayingData:_,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:ot,setLockSwiper:W})})}):(0,k.jsx)(k.Fragment,{}),!0===w?(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:nt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,k.jsx)(Pe,{focusRef:A,event:t.event,isLast:O,onCloseCallback:()=>L(),setLockSwiper:W,data:y,currentProduct:S,setOpenShopNow:t=>{C(t),(0,u.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:ot})})}):(0,k.jsx)("div",{})]})})},zi=i(3168),Fi=i(2654);var Ti=function(t){var[e,i,o,l]=(0,p.A)();const a=(0,u.Xd)("whatmoreShopId"),d=t.event,s=t.isPlaying,h="center";return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:l,height:o,sx:{overflow:"hidden"},children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:h,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"white",children:(0,k.jsx)(Ne.g,{width:"full",ratio:l/o,children:(0,k.jsx)(z,{height:"100%",width:"100%",url:(0,n.s)((0,r.lP)(d)),isPlaying:s,timeUpdateCallback:function(t,e){},event:d,source:t.source})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:h,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,w.bo)()},children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,k.jsx)(Fi.A,{sx:{boxShadow:3,color:(0,c.KFN)(a),fontSize:.4*l,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,w.bo)()}}),(0,k.jsx)(A.E,{color:"white",fontSize:.05*l+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Pi=i(6380);var Ni=function(t){var e,i;const o=t.changeSlide,n=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,a=t.isLast,d=t.setLockSwiper,s=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),p=t.progressUpdateCallback,[h,g]=(0,x.A)(),[m]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),f=null===(i=t.showOverlay)||void 0===i||i;function w(){!0!==(0,c.GZ2)((0,u.Xd)("whatmoreShopId"))&&g(!h)}return(0,zi.MN)()&&0==m?(0,Pi._)()?(0,k.jsx)(Ti,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+n.event_id):(0,k.jsx)(Ei,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(0,v.i)(n)||(0,v.I)(n)?(0,k.jsx)(Ei,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(console.error("Can't render event which is neither video or image"),(0,k.jsx)("div",{}))},Li=i(6569),Bi=i.n(Li),Ai=i(1947),Ri=i(7309);function Di(t){var e;const[i,o]=(0,l.useState)(!1),n=t.onClick,r=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,k.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,k.jsx)(Ri.A,{sx:{color:"white",fontSize:r+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),n(t,"up")}}):(0,k.jsx)(Ai.A,{sx:{color:"white",fontSize:r+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),n(t,"down")}})})}var Oi=function(t){var e,i,o;const n=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(o=t.fontSize)&&void 0!==o?o:50,a=t.handleClick;return(0,k.jsx)("div",{style:{position:"relative",zIndex:1,bottom:n,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,k.jsx)(Di,{type:"left",onClick:a,fontSize:l}),(0,k.jsx)(Di,{type:"right",onClick:a,fontSize:l})]})})},Wi=i(1637),Mi=i(7939);var Hi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,l.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var Qi=function(t,e){const i=(0,l.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(o){const n=i.current.clientX,r=i.current.clientY;var l=n-o.changedTouches[0].clientX,a=r-o.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var Vi=function(t,e){const i=(0,l.useRef)(_i()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(o,n){var r=0;if(r="vertical"==t?o.deltaY:o.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(n,l)}]},Xi=i(350);var Ui=function(t){const e=t.events,i=t.eventIndex,o=t.onBack;var[n,r,h,v]=(0,p.A)();const[x]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f,w]=(0,l.useState)(!0),[C,y]=(0,u.QN)("isFirstIndicatorRenderDone"),[j,S]=(0,l.useState)(!1),I=(0,l.useRef)({watch_time:0,video_duration:0}),{setCloseClickComponent:_}=(0,l.useContext)(g.p),{slideDirection:E}=(0,l.useContext)(g.p),[z]=(0,u.QN)("whatmoreShopId"),[F]=(0,u.QN)("whatmoreLandingLocationType"),[T,P]=Hi(i,e.length),[N,L]=Qi(E,10),[A]=Vi("vertical",10),[R,D]=(0,l.useState)(!0),[O,W]=(0,l.useState)(null),{whatmoreWidgetSourceDetails:M,whatmoreUserInfo:H}=(0,l.useContext)(b.BR),Q=M.landingLocationType,V=M.templateType,X=Math.round(.05*h);let U=i;const{questionList:$}=(0,l.useContext)(g.p);function Y(){D(!1)}function q(t){Y(),setTimeout(()=>{o(t)},500)}function K(){(0,u.Xd)("whatmoreAllowAutoSlide")&&(P("right"),O.slideNext())}function G(t,e){P(e),function(t,e){O&&("left"===e?O.slidePrev():O.slideNext())}(0,e)}return(0,l.useEffect)(()=>{_(q)},[]),(0,l.useEffect)(()=>{if("horizontal"===E)return;const t=t=>{if("ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;const e=document.activeElement;e&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||e.isContentEditable)||!j&&O&&G(t,"ArrowLeft"===t.key?"left":"right")};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[E,j,O]),(0,k.jsx)(Bi(),{isOpen:R,onRequestClose:Y,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,k.jsx)(Xi.A,{children:(0,k.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,ot.YU)("#000000",13),touchAction:"pan-y",transform:"translateZ(0)",willChange:"transform"},onTouchStart:t=>{N(t)},onTouchEnd:t=>{if(j)return;const e=L(t);e&&G(0,e)},onWheel:t=>{j||A(t,t=>{G(0,t)})},children:[(0,k.jsx)(a.RC,{speed:300,threshold:X,slidesPerView:1,direction:E,modules:[d.s3,d.Jq,d.dK,d.FJ,d.AV],keyboard:{enabled:!0},initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!j,allowSlidePrev:!j,allowTouchMove:!1,onSwiper:t=>{W(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products})},onSlideChange:t=>{var i;if(f)return void w(!1);C||y(!0);const o=e.find(t=>t.event_id===I.current.event_id);var n;!o||null!==(i=I.current)&&void 0!==i&&i.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:I.current,widgetSourceDetails:M,event:o,productList:o.products,ctaList:o.cta}),n=e[T().activeIndex],x||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,kt.Wd)(Q)+(0,kt.gf)(V)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,s.increaseViewCount)(n),"index"===F?((0,Mi.sendVideoViewEventToGA)(z,Wi.TB,Wi.Dk),(0,ci.Ch)(n.event_id,n.products,Wi.TB,Wi.Dk,t,null===n||void 0===n?void 0:n.location,null===H||void 0===H?void 0:H.userType)):F.startsWith("product")||"embed"===F?((0,Mi.sendVideoViewEventToGA)(z,Wi.DK,Wi.K1),(0,ci.Ch)(n.event_id,n.products,Wi.DK,Wi.K1,t)):F.startsWith("collection")?((0,Mi.sendVideoViewEventToGA)(z,Wi.Sx,Wi.rz),(0,ci.Ch)(n.event_id,n.products,Wi.Sx,Wi.rz,t)):((0,Mi.sendVideoViewEventToGA)(z,Wi.TB,Wi.Dk),(0,ci.Ch)(n.event_id,n.products,Wi.TB,Wi.Dk,t))})(),(0,rt.registerSwipeEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products})},children:[...Array(Math.min(e.length,3)).keys()].map(o=>(0,k.jsx)(a.qr,{virtualIndex:o,children:({isActive:o,isPrev:n,isNext:r,isVisible:l,isDuplicate:a})=>{const d=o?"activeIndex":n?"prevIndex":"nextIndex",s=T()[d];"activeIndex"==d&&(U=Math.max(U,s),0==s&&(U=0));const u=(null===$||void 0===$?void 0:$.length)>0&&o&&l&&(s>i||U<i&&s>0)&&s>=U&&s%(0,c.uSp)(z)==i%(0,c.uSp)(z);return(0,k.jsx)(B.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,k.jsx)(Ni,{event:e[s],showQuestion:u,onBack:q,isPlaying:1==e.length||o&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:K,progressUpdateCallback:t=>{I.current=t},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:G})})}},"event-vertical-scroll-slide-"+o))}),e.length>1&&!j&&(0,c.kb)(z)&&"horizontal"===(0,c.br0)(z)&&"horizontal"===E?(0,k.jsx)(Oi,{relativeBottomPercentage:"50%",width:v,handleClick:(t,e)=>{G(0,"down"==e?"right":"left")},fontSize:parseInt(.12*v)}):(0,k.jsx)(k.Fragment,{})]})})})};i(564),i(5277),i(4548),i(6376),i(2446),i(878),i(621);const $i=({children:t,customClass:e,show:i,closeCallback:n})=>o.createPortal((0,k.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:i?"block":"none"},children:[(0,k.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:n}),(0,k.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);$i.defaultProps={children:(0,k.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var Yi=$i;i(1325);var qi=function(t){var e,[i,o,n,r]=(0,p.A)();const[h]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x,m]=(0,u.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,l.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),[I]=(0,u.QN)("whatmoreLandingLocationType"),_=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:z}=(0,l.useContext)(b.BR),[P,N]=(0,l.useState)(!1),[L,A]=(0,l.useState)(null);function R(){N(!1)}const D=t.events,O=t.eventIndex,W=t.onBack,M=D.concat(D),H=D.length,Q=null===D||void 0===D||null===(e=D[0])||void 0===e?void 0:e.brand,V=(0,l.useRef)(0);function X(t){R(),setTimeout(()=>{W(t)},500)}function U(){L&&!L.isEnd&&(0,u.Xd)("whatmoreAllowAutoSlide")&&L.slideNext()}(0,l.useEffect)(()=>(N(!0),()=>{}),[]),C(X);const $=E.landingLocationType,q=E.templateType,K=(0,l.useRef)({watch_time:0,video_duration:0}),G=parseInt(Math.min(5,D.length)),Z=("90518552861"===S||"63512346790"===S)&&G>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:G>=2;return(0,k.jsx)(Yi,{show:P,closeCallback:R,customClass:"whatmore-landscape-modal-swipe-view"+(G<5?" whatmore-nav":""),children:(0,k.jsxs)(B.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,ot.YU)("#000000",13),children:[(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{height:"fit-content",width:r*G,position:("90518552861"===S||"63512346790"===S)&&G>=5?"relative":void 0,style:{"--whatmore-active-edge-offset":(G-1)*r/2+"px"},children:[("90518552861"===S||"63512346790"===S)&&G>=5&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,k.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,k.jsxs)(a.RC,{onInit:t=>{A(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:D[t.activeIndex],productList:D[t.activeIndex].products,ctaList:D[t.activeIndex].cta})},slidesPerView:G,centeredSlides:!0,allowTouchMove:!1,initialSlide:O,modules:[d.s3,d.Jq,d.t9,d.Vx,d.FJ,d.Ij,d.dK],keyboard:{enabled:!0,onlyInViewport:!1},navigation:Z,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*n),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:r*G,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;if(f)return void w(!1);x||m(!0),i=D[t.activeIndex],h||v||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,kt.Wd)($)+(0,kt.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,s.increaseViewCount)(i),"index"===I?((0,Mi.sendVideoViewEventToGA)(S,Wi.TB,Wi.Dk),(0,ci.Ch)(i.event_id,i.products,Wi.TB,Wi.Dk,t,null===i||void 0===i?void 0:i.location,null===z||void 0===z?void 0:z.userType)):I.startsWith("product")||"embed"===I?((0,Mi.sendVideoViewEventToGA)(S,Wi.DK,Wi.K1),(0,ci.Ch)(i.event_id,i.products,Wi.DK,Wi.K1,t)):I.startsWith("collection")?((0,Mi.sendVideoViewEventToGA)(S,Wi.Sx,Wi.rz),(0,ci.Ch)(i.event_id,i.products,Wi.Sx,Wi.rz,t)):((0,Mi.sendVideoViewEventToGA)(S,Wi.TB,Wi.Dk),(0,ci.Ch)(i.event_id,i.products,Wi.TB,Wi.Dk,t))})();const o=D.find(t=>t.event_id===K.current.event_id);!o||null!==(e=K.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:K.current,widgetSourceDetails:E,event:o,productList:o.products,ctaList:o.cta}),(0,rt.registerSwipeEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:D[t.activeIndex],productList:D[t.activeIndex].products,ctaList:D[t.activeIndex].cta})},mousewheel:{invert:!1,thresholdDelta:20},children:[D.length>2&&(0,k.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,k.jsx)(Y,{onCloseCallback:W})}),M.slice(O,D.length+O).map((t,e)=>(0,k.jsx)(a.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:l,isDuplicate:a})=>{if(t)return(0,k.jsx)(B.B,{direction:"column",height:n,width:1*r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Ni,{event:D[e%H],onBack:X,isPlaying:!0,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showCloseOverlay:(null===D||void 0===D?void 0:D.length)<=2,mode:"landscape"})})});if(o)return(0,k.jsx)(B.B,{direction:"column",height:n,width:r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{L.slideTo(e%H,300)},children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Ni,{event:D[e%H],onBack:X,isPlaying:!1,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});if(i&&1===V.current)return(0,k.jsx)(B.B,{direction:"column",height:n,width:r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{L.slideTo(e%H,300)},children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Ni,{event:D[e%H],onBack:X,isPlaying:!1,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});try{O+e>=H-1&&(V.current=1)}catch(d){console.log(d)}return(0,k.jsx)(k.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(ri,{brandName:Q,height:.04*n,width:.1*r,fontSize:.02*n})})]})})},Ki=i(9943),Gi=i(7515),Zi=i(2211),Ji=i(426),to=i(3161);var eo=function(t){const[e,i,o,n]=(0,p.A)(),[r]=(0,u.QN)("whatmorePrimaryColor"),[l]=(0,u.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:n,height:o,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,k.jsx)(Ne.g,{width:"full",ratio:n/o,children:(0,k.jsx)(T.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,k.jsx)(Ne.g,{width:"full",ratio:9/16,children:(0,k.jsx)(T.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var io=function(t){var e;const i=t.stories,o=t.onBack,n=t.onStoryCompleteCallback,r=t.isActive,d=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,h=i.events;var[g,m,f,w]=(0,p.A)();const[y,j]=(0,x.A)(),[S]=(0,u.QN)("isInDesignMode"),[I]=(0,u.QN)("isDemoBrand"),[_]=(0,u.QN)("whatmoreShopId"),[E,z]=(0,l.useState)(!0),[F,T]=(0,u.QN)("isFirstIndicatorRenderDone"),[P,N]=(0,l.useState)(null),[L,A]=(0,l.useState)(!1),{whatmoreWidgetSourceDetails:R,whatmoreUserInfo:D}=(0,l.useContext)(b.BR),[O,W]=Hi(d,h.length);function M(t){o(t)}const H=R.landingLocationType,Q=R.templateType;function V(){if(!(0,u.Xd)("whatmoreAllowAutoSlide"))return;O().activeIndex+1>=h.length?n("right"):(W("right"),P&&P.slideNext())}function X(t){const e=O().activeIndex;"right"==t&&e+1>=h.length||"left"==t&&e-1<0?n(t):(W(t),P&&("left"==t?P.slidePrev():P.slideNext()))}const U=(0,l.useRef)({watch_time:0,video_duration:0});return h[O().activeIndex],(0,k.jsx)("div",{children:(0,k.jsx)(a.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:f,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{N(t)},onSlideChange:t=>{var e;if(E)return void z(!1);F||T(!0);const i=h.find(t=>t.event_id===U.current.event_id);!i||null!==(e=U.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:U.current,widgetSourceDetails:R,event:i,productList:i.products,ctaList:i.cta}),function(t){const e=(0,kt.Wd)(H)+(0,kt.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);S||I||(async()=>{(0,s.increaseViewCount)(t),(0,Mi.sendVideoViewEventToGA)(_,Wi.TB,Wi.OL),(0,ci.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===D||void 0===D?void 0:D.userType)})()}(h[O().activeIndex]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:R,event:h[O().activeIndex],productList:h[O().activeIndex].products,ctaList:h[O().activeIndex].cta})},children:[...Array(Math.min(h.length,3)).keys()].map(e=>(0,k.jsx)(a.qr,{children:({isActive:e,isPrev:o,isNext:n,isVisible:l,isDuplicate:a})=>{if(r){const n=e?"activeIndex":o?"prevIndex":"nextIndex",a=h[O()[n]];return(0,k.jsx)(B.B,{direction:"column",height:f,justifyContent:"center",children:(0,v.i)(a)||(0,v.I)(a)?(0,k.jsx)(Ei,{event:a,totalSiblingEvents:h.length,indexAmongSiblings:O()[n],onBack:M,isPlaying:r&&e&&l,isLast:!1,setLockSwiper:A,onVideoEndedCallback:V,progressUpdateCallback:t=>{U.current=t},leftOpenSpaceClickHandler:()=>{X("left")},midOpenSpaceClickHandler:()=>{!0!==(0,c.GZ2)((0,u.Xd)("whatmoreShopId"))&&j(!y)},rightOpenSpaceClickHandler:()=>{X("right")},storyId:i.id,source:C.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+a.event_id):(0,k.jsx)(k.Fragment,{})})}return(0,k.jsx)(B.B,{direction:"column",height:g,justifyContent:"center",children:(0,k.jsx)(eo,{})})}},"event-story-view-slide-"+e))})})};var oo=function(t){const e=t.onBack,i=t.eventsStories,o=t.initialStoryIndex,[n]=(0,u.QN)("isInDesignMode"),[r]=(0,u.QN)("isDemoBrand"),[c,p]=(0,l.useState)(!0),{setCloseClickComponent:h}=(0,l.useContext)(g.p),[v]=(0,u.QN)("whatmoreShopId"),[x,m]=Hi(o,i.length),[f,w]=Qi("horizontal",50),[C]=Vi("vertical",30),y=t.eventIndex,[j,S]=(0,l.useState)(!0),[I,_]=(0,l.useState)(null),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:z}=(0,l.useContext)(b.BR);function F(){S(!1)}function T(t){F(),setTimeout(()=>{e(t)},500)}h(T);const P=E.landingLocationType,N=E.templateType;function L(t){I&&(0,u.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?I.slideNext():I.slidePrev())}function A(t,e){L(e)}return(0,k.jsx)(Bi(),{isOpen:j,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,k.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{f(t)},onTouchEnd:t=>{const e=w(t);e&&A(0,e)},onWheel:t=>{C(t,t=>{A(0,t)})},children:(0,k.jsx)(a.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[d.s3,d.Jq,d.hw,d.FJ],keyboard:{enabled:!0},initialSlide:o,loop:i.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,o;_(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:i[x().activeIndex].events[0],productList:null===(e=i[x().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[x().activeIndex].events[0])||void 0===o?void 0:o.cta})},onSlideChange:t=>{var e,o;c?p(!1):(!function(t){const e=(0,kt.Wd)(P)+(0,kt.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);n||r||(async()=>{(0,s.increaseViewCount)(t),(0,Mi.sendVideoViewEventToGA)(v,Wi.TB,Wi.OL),(0,ci.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(i[x().activeIndex].events[0]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:i[x().activeIndex].events[0],productList:null===(e=i[x().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[x().activeIndex].events[0])||void 0===o?void 0:o.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map(t=>(0,k.jsx)(a.qr,{children:({isActive:t,isPrev:e,isNext:n,isVisible:r,isDuplicate:l})=>{const a=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,k.jsx)(B.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,k.jsx)(io,{stories:i[x()[a]],onBack:T,isActive:t&&r,isNext:n,isPrev:e,onStoryCompleteCallback:L,nextStories:i[x().nextIndex],prevStories:i[x().prevIndex],initialEventIndex:o==x()[a]?y:0},"event-story-view-"+i[x()[a]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var no=function(t){var e,i,o,[n,r,a,d]=(0,p.A)();const[s]=(0,u.QN)("whatmorePrimaryColor"),[c]=(0,u.QN)("whatmoreSecondaryColor"),h=t.event,x=(t.onBack,l.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),g=null!==(i=t.heightFactor)&&void 0!==i?i:1,m="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=g,(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:d,height:a,children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:m,height:"full",width:"full",children:(0,k.jsx)(T.az,{children:(0,k.jsx)(Ne.g,{width:"full",ratio:9/16,children:x?(0,v.i)(h)||(0,v.I)(h)?(0,k.jsx)(li.A,{height:"100%",width:"100%",url:h.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:h}):(0,k.jsx)(D._,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,k.jsx)(T.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+s+", gray, "+c+")"})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:m,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{children:(0,k.jsx)(Ne.g,{width:"full",ratio:9/16,children:(0,k.jsx)(T.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var ro=function(t){var e,i,[o,n,r,c]=(0,p.A)();const[h]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x,m]=(0,u.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,l.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:I,whatmoreUserInfo:_}=(0,l.useContext)(b.BR),[E,z]=(0,l.useState)(!1),[P,N]=(0,l.useState)(null);function L(){z(!1)}t.events;const A=t.eventIndex,R=t.onBack,D=t.eventsStories,O=t.initialStoryIndex,W=null===(e=D[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function M(t){L(),setTimeout(()=>{R(t)},500)}(0,l.useEffect)(()=>(z(!0),()=>{}),[]),C(M);const H=I.landingLocationType,Q=I.templateType;function V(t){P&&!P.isEnd&&("right"==t?P.slideNext():P.slidePrev())}const X=parseInt(Math.min(5,D.length));return(0,k.jsx)(Yi,{show:E,closeCallback:L,customClass:"whatmore-landscape-modal-stories-view",children:(0,k.jsxs)(B.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(T.az,{height:"fit-content",width:c*X,children:(0,k.jsxs)(a.RC,{onInit:t=>{var e,i;N(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:I,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:X,centeredSlides:!0,allowTouchMove:!1,initialSlide:O,modules:[d.s3,d.Jq,d.t9,d.Vx,d.FJ],keyboard:{enabled:!0,onlyInViewport:!1},navigation:X>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*r),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:c*X,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;f?w(!1):(x||m(!0),function(t){const e=(0,kt.Wd)(H)+(0,kt.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||v||(async()=>{(0,s.increaseViewCount)(t),(0,Mi.sendVideoViewEventToGA)(S,Wi.TB,Wi.OL),(0,ci.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===_||void 0===_?void 0:_.userType)})()}(D[t.activeIndex].events[0]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:I,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[D.length>2&&(0,k.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,k.jsx)(Y,{onCloseCallback:R})}),D.map((t,e)=>(0,k.jsx)(a.qr,{children:({isActive:i,isPrev:o,isNext:n,isVisible:l,isDuplicate:a})=>{if(i){const o=1;return(0,k.jsx)(B.B,{direction:"column",height:r,width:c*o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,k.jsx)(T.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,k.jsx)(io,{stories:t,onBack:M,isActive:i&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:V,initialEventIndex:O==e?A:0,showCloseOverlay:(null===D||void 0===D?void 0:D.length)<=2},"event-story-view-"+t.id)})})}return o||n?(0,k.jsx)(B.B,{direction:"column",height:r,width:c,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e,300)},children:(0,k.jsx)(T.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,k.jsx)(no,{showPausedVideo:!0,event:D[e].events[0],onBack:M,isPlaying:!1,setLockSwiper:j})})}):(0,k.jsx)(k.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(ri,{brandName:W,height:.04*r,width:.1*c,fontSize:.02*r})})]})})};const lo=(0,to.A)({key:"whatmore-css-sv"});var ao=function(t){var e,i,a;const[d,s]=(0,l.useState)(!1),[p,h,v]=(0,bi.A)(),[x]=(0,u.QN)("whatmoreShopId"),{whatmoreRootId:m}=(0,l.useContext)(b.BR),{whatmoreIsStoriesTemplate:f}=(0,l.useContext)(b.BR),{whatmoreCollectionId:w}=(0,l.useContext)(b.BR),{whatmoreIsCollectionsTemplate:C}=(0,l.useContext)(b.BR),[y]=(0,u.QN)("isWhatmorePreviewMode");var j=t.events,S=t.index,I=t.onBack,_=t.eventsStories,E=t.initialStoryIndex,z=(0,c.M3_)(x);(0,l.useEffect)(()=>{if(!I)return;const t=t=>{"Escape"!==t.key&&"Esc"!==t.key||I()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[I]),(0,l.useEffect)(()=>{const t=setTimeout(()=>{s(!0)},100);return()=>clearTimeout(t)},[]);var F="portrait"===p?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:j.length>1?"horizontal":"vertical",T="portrait"===p?!(0,c.kb)(x)&&!f:(0,c.DNc)(x);if((0,l.useLayoutEffect)(()=>{if(!(0,c.hpk)(x))return;let t=!1;window.location.href.includes(z)?history.replaceState(null,"","#"+z):(history.pushState(null,"","#"+z),t=!0);const e=()=>{window.location.href.includes(z)||I()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),window.location.href.includes(z)&&(t?"75310563627"===x&&"529610080555"===w||"35680321669"===x&&C?history.replaceState(null,"",window.location.pathname+window.location.search):history.back():history.replaceState(null,"",window.location.pathname+window.location.search))}},[]),delete Gi.Ay.styles.global,!d&&"portrait"===p){var P,N;const t=f&&_&&null!==E?null===(P=_[E])||void 0===P||null===(N=P.events)||void 0===N?void 0:N[0]:j[S];return(0,o.createPortal)((0,k.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000",zIndex:2147483647},children:(0,k.jsxs)("div",{style:{width:v,height:h,overflow:"hidden",position:"relative"},children:[(0,k.jsx)("img",{src:(0,n.s)(t?(0,r.tQ)(t):void 0),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),(0,k.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,k.jsx)(Zi.A,{})})]})}),document.body)}return f?(0,k.jsx)(Ji.C,{value:lo,children:(0,k.jsx)(Ki.s,{theme:Gi.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,k.jsx)(g.p.Provider,{value:{isIOS:(0,zi.MN)(),totalEvents:j.length,closeClickComponent:I,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:T},children:("portrait"!==p||y)&&(0,c.Rdb)(x)?(0,k.jsx)(ro,{eventsStories:_,initialStoryIndex:E,onBack:I,eventIndex:S}):(0,k.jsx)(oo,{eventsStories:_,initialStoryIndex:E,onBack:I,eventIndex:S})})})}):(0,k.jsx)(Ji.C,{value:lo,children:(0,k.jsx)(Ki.s,{theme:Gi.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,k.jsx)(g.p.Provider,{value:{isIOS:(0,zi.MN)(),totalEvents:j.length,closeClickComponent:I,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:T,questionList:(0,c.JwJ)(x)?null===(a=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===a?void 0:a.questionList:[]},children:"portrait"===p?(0,k.jsx)(Ui,{events:j,eventIndex:S,onBack:I}):(0,k.jsx)(qi,{events:j,eventIndex:S,onBack:I})})})})}}}]);
76
+ `} 0.5s`,Et=null===Q||void 0===Q||null===(e=Q.options)||void 0===e?void 0:e.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}),[zt,Ft]=(0,l.useState)(-1!==Et?null===(i=Q.options)||void 0===i||null===(o=i[Et])||void 0===o||null===(n=o.values)||void 0===n?void 0:n[0]:""),[Tt,Pt]=(0,l.useState)({});(0,l.useEffect)(()=>{-1!==Et&&"whatmore"!==(0,c.NCy)(Ct)&&async function(){const t=await(0,he._N)(X);Pt(t)}()},[]);let Nt=-1,Lt=-1!==Et&&null!==Tt&&void 0!==Tt&&Tt.product&&(null===Tt||void 0===Tt||null===(r=Tt.product)||void 0===r||null===(a=r.images)||void 0===a?void 0:a.length)>=(null===Tt||void 0===Tt||null===(d=Tt.product)||void 0===d||null===(s=d.options)||void 0===s||null===(h=s[Et])||void 0===h||null===(v=h.values)||void 0===v?void 0:v.length)?null===Tt||void 0===Tt||null===(x=Tt.product)||void 0===x||null===(g=x.images)||void 0===g?void 0:g.map(t=>{var e,i,o,n,r,l,a,d,s,c,u,p,h,v;const x=null===Tt||void 0===Tt||null===(e=Tt.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.findIndex(t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===Tt||void 0===Tt||null===(o=Tt.product)||void 0===o||null===(n=o.options)||void 0===n||null===(r=n[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Nt,(null===Tt||void 0===Tt||null===(a=Tt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[Et])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Tt||void 0===Tt||null===(u=Tt.product)||void 0===u||null===(p=u.options)||void 0===p||null===(h=p[x])||void 0===h||null===(v=h.values)||void 0===v?void 0:v[Math.max(0,Nt)],src:null===t||void 0===t?void 0:t.src}}):[],Bt=[];if("whatmore"==(0,c.NCy)(Ct)&&(null===Q||void 0===Q||null===(m=Q.images)||void 0===m?void 0:m.length)>0){var At;var Rt;if(-1!==(null===Q||void 0===Q||null===(At=Q.options)||void 0===At?void 0:At.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})))Bt=null===Q||void 0===Q||null===(Rt=Q.images)||void 0===Rt?void 0:Rt.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Nt+1<(null===Tt||void 0===Tt||null===(f=Tt.product)||void 0===f||null===(w=f.options)||void 0===w||null===(C=w[Et])||void 0===C||null===(y=C.values)||void 0===y?void 0:y.length)&&(Lt=[]),(0,k.jsxs)(se.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"100%",opacity:"100%",borderTopRadius:"24px",animation:_t,boxShadow:"0 -8px 32px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04)",border:"1px solid rgba(255, 255, 255, 0.6)",backdropFilter:"blur(8px)",overflow:"hidden",children:[(0,k.jsx)(T.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",flexShrink:0,children:(0,k.jsx)(we,{setOpenShopNow:U,setLockSwiper:$,FONT_SIZE:O})}),(0,k.jsx)(T.az,{height:"fit-content",minHeight:R+20+"px",flexShrink:0,position:"relative",children:(0,k.jsx)(F.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,k.jsx)(se.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,k.jsx)(se.s,{width:"100%",children:(0,k.jsx)(_e.c,{renderElement:t=>(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(T.az,{width:A+"px",height:R+"px",position:"relative",children:(0,k.jsx)(D._,{width:A+"px",height:R+"px",borderRadius:"16px",src:(0,yt.b)(t.eventData.src,"&width=400&height=400"),alt:X.handle,sx:{objectFit:"cover !important",filter:"saturate(1.1) contrast(1.05)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},_hover:{transform:"scale(1.02)",filter:"saturate(1.15) contrast(1.1)"},fallback:(0,k.jsx)(et.A,{width:A+"px",height:R+"px",borderRadius:"16px"})})})}),dataList:Lt.length>0&&!Lt.includes(null)?null===(b=Lt)||void 0===b?void 0:b.filter(t=>(null===t||void 0===t?void 0:t.color)==zt):Bt.length>0?[null===(j=Bt)||void 0===j?void 0:j.find(t=>(null===t||void 0===t?void 0:t.color)==zt)]:null===Q||void 0===Q||null===(S=Q.images)||void 0===S?void 0:S.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:A+"px",defaultWidth:R+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,k.jsxs)(se.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",minHeight:"0",overflowY:"auto",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,k.jsx)(be,{data:Q,product:X,event:V,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:O,getVariantPrice:Fe,selectedVariantId:nt,itemPrice:dt,itemQuantity:lt,setItemQuantity:at,thumbnailImage:gt}),"11829268"===Ct&&(0,k.jsx)(Ie,{liveScreenWidth:N}),(null===Q||void 0===Q||null===(I=Q.variants)||void 0===I?void 0:I.length)>0&&(0,k.jsx)(ke,{data:"22907887"===Ct?{...Q,options:null===Q||void 0===Q||null===(_=Q.options)||void 0===_?void 0:_.filter(t=>!("Season"===(null===t||void 0===t?void 0:t.name)&&1===new Set(null===t||void 0===t?void 0:t.values).size))}:Q,dividerColor:(0,c.R6d)(Ct),setSelectedColor:Ft,finalArr:Lt,finalArrExternal:Bt,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:O,selectOptionFirstHandler:St,selectOptionSecondHandler:kt,selectOptionThirdHandler:It,getVariantPrice:Fe,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:it,selectedVariantId:nt,isVariantAvailable:K,selectedSize:ft,setSelectedSize:wt})]}),(0,k.jsx)(T.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",flexShrink:0,children:(0,k.jsx)(fe,{position:"relative",selectedVariantId:nt,data:Q,FONT_SIZE:O,PRODUCT_TILE_WIDTH:L,product:X,itemQuantity:lt,cartItemCount:ct,addToCartFlag:pt,setAddToCartFlag:ht,soldOutFlag:vt,setSoldOutFlag:xt,onCloseCallback:t.onCloseCallback,event:V,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,selectedSize:ft})})]})}const ze=(t,e,i,o)=>{var n;if(!e&&!i&&!o)return;const r=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!o||t.option3===o));return r?r.id:void 0},Fe=(t,e)=>{var i,o;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(o=i.find(t=>t.id===e))||void 0===o?void 0:o.price},Te=(t,e)=>{var i;const o=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find(t=>t.id==e);return void 0===o?null:null===o||void 0===o||null===(n=o.featured_image)||void 0===n?void 0:n.src;var n},Pe=(0,l.createContext)({setShowOptionsChart:null});var Ne=function(t){const e=t.event,i=t.data,o=t.currentProduct,n=t.setOpenShopNow,r=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,l.useState)(!1);return(0,k.jsx)(Pe.Provider,{value:{setShowOptionsChart:s},children:(0,k.jsxs)(T.az,{width:"full",height:"full",borderRadius:"md",children:[(0,k.jsx)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,k.jsx)(T.az,{width:"full",maxHeight:"100%",overflow:"hidden",children:(0,k.jsx)(Ee,{data:i,event:e,product:o,setOpenShopNow:n,setLockSwiper:r,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,k.jsx)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,k.jsx)(T.az,{width:"full",height:"fit-content",children:(0,k.jsx)(de,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,k.jsx)(k.Fragment,{})]})})};var Le=i(1410);function Be(t){const e=(0,c.Wc_)(t);return e&&"#000000"!==e?e:(0,u.Xd)("whatmoreSecondaryColor")||(0,u.Xd)("whatmorePrimaryColor")||"#E0531D"}function Ae(t){return(0,c.Hfu)(t)||"#FFFFFF"}function Re(){const t=(0,u.Xd)("whatmorePrimaryFont");return t?`'${t}', system-ui, sans-serif`:"system-ui, sans-serif"}var De=function(t){var e,i;const{event:o,product:n,onClose:r,onAdded:a}=t,[d]=(0,u.QN)("isInDesignMode"),[c]=(0,u.QN)("isDemoBrand"),[p]=(0,u.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:h}=(0,l.useContext)(b.BR),v=Re(),x=Be(p),g=Ae(p),m=`color-mix(in srgb, ${x} 7%, #ffffff)`,f=`color-mix(in srgb, ${x} 22%, #ffffff)`,w=`color-mix(in srgb, ${x} 38%, #ffffff)`,[C,,,y,j,S,,,I]=(0,Ct.A)(0,n,o),[_,E]=(0,l.useState)([void 0,void 0,void 0]),z=(null===I||void 0===I?void 0:I.current)||[],F=(t,e,i)=>z.some(o=>{if(!o.available)return!1;const n=[o.option1,o.option2,o.option3];return n[t]===e&&i.every((e,i)=>i===t||null==e||n[i]===e)}),T=z.find(t=>{if(!t.available)return!1;const e=[t.option1,t.option2,t.option3];return _.every((t,i)=>null==t||e[i]===t)}),P=(null===h||void 0===h?void 0:h.landingLocationType)||"index",N=(null===h||void 0===h?void 0:h.templateType)||"template-a",L=(0,kt.Wd)(P)+(0,kt.gf)(N)+"_"+(null===o||void 0===o?void 0:o.event_id);(0,l.useEffect)(()=>{j(L,!1)},[]),(0,l.useEffect)(()=>{if(C.cart_count>0){d||c||((0,s.increaseEventProductClickCount)(o,n),(0,rt.registerClickEvent)({userInteractionType:lt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:h,event:o,productList:[n],ctaList:null===o||void 0===o?void 0:o.cta})),a&&a(_.filter(Boolean).join(" \xb7 "));const t=setTimeout(()=>r&&r(),600);return()=>clearTimeout(t)}},[C.cart_count]),(0,l.useEffect)(()=>{"errored"===C.state&&r&&r()},[C.state]);const B=(y||[]).map(t=>t||[]),A=B.map((t,e)=>t.length>0?e:-1).filter(t=>t>=0).every(t=>null!=_[t]),R=B.some(t=>t.length>1),D=C.state,O="productVariantDetailsApiCallInProgress"===D,W="atcApiCallInProgress"===D,M=C.cart_count>0,H=t=>"string"===typeof t?t.replace(/^undefined/,""):t,Q=(0,ct.P)(null===n||void 0===n?void 0:n.price,null===n||void 0===n?void 0:n.compare_price),V=H((0,St.Sb)(null===n||void 0===n?void 0:n.price,"",p,null===n||void 0===n?void 0:n.currency)),X=Q?H((0,St.Sb)(null===n||void 0===n?void 0:n.compare_price,"",p,null===n||void 0===n?void 0:n.currency)):null,U=Q?Math.round(100*(1-Number(n.price)/Number(n.compare_price))):0;let $="Select options to add";O?$="Loading options\u2026":M?$="\u2713 Added":W?$="Adding\u2026":A&&!T?$="Unavailable":A&&($="Add to cart");const Y=A&&!!T&&!W&&!M&&!O;return R?(0,k.jsxs)("div",{onTouchStart:t=>t.stopPropagation(),onTouchEnd:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{position:"absolute",inset:0,zIndex:60},children:[(0,k.jsx)("div",{onClick:r,style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.38)",animation:"whatmore-backdrop-fade-kf 0.22s ease-out"}}),(0,k.jsxs)("div",{style:{position:"absolute",left:0,right:0,bottom:0,margin:"0 auto",width:"100%",maxWidth:"380px",maxHeight:"80vh",background:"#fff",borderTopLeftRadius:"18px",borderTopRightRadius:"18px",display:"flex",flexDirection:"column",boxSizing:"border-box",fontFamily:v,color:"#2B2622",willChange:"transform",animation:"whatmore-sheet-slide-up-kf 0.34s cubic-bezier(0.32, 0.72, 0, 1)"},children:[(0,k.jsx)("div",{style:{width:"36px",height:"4px",borderRadius:"3px",background:"#D9D1C6",margin:"8px auto 4px",flex:"0 0 auto"}}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"11px",padding:"6px 16px 12px",borderBottom:"1px solid #EFEAE2",flex:"0 0 auto"},children:[(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"50px",height:"50px",borderRadius:"9px",overflow:"hidden",background:"#E9E2D6"},children:(null===n||void 0===n?void 0:n.thumbnail_image)&&(0,k.jsx)("img",{src:n.thumbnail_image,alt:null!==(e=null===n||void 0===n?void 0:n.title)&&void 0!==e?e:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,k.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#2B2622",lineHeight:1.3,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:null!==(i=null===n||void 0===n?void 0:n.title)&&void 0!==i?i:""}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"wrap",marginTop:"4px"},children:[(0,k.jsx)("span",{style:{fontSize:"16px",fontWeight:800,color:"#2B2622"},children:V}),X&&(0,k.jsx)("span",{style:{fontSize:"11px",color:"#9A9089",textDecoration:"line-through"},children:X}),U>0&&(0,k.jsxs)("span",{style:{fontSize:"10px",fontWeight:700,color:"#2E7D32",background:"#E6F4EA",padding:"1px 6px",borderRadius:"5px"},children:[U,"% off"]})]})]}),(0,k.jsx)("button",{type:"button","aria-label":"Close",onClick:r,style:{flex:"0 0 auto",width:"32px",height:"32px",borderRadius:"50%",border:"none",background:"#F0ECE5",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"#6E665D",strokeWidth:"2.2",strokeLinecap:"round"})})})]}),(0,k.jsxs)("div",{onTouchMove:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{overflowY:"auto",WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain",maxHeight:"60vh",padding:"14px 16px 4px",flex:1,minHeight:0},children:[O&&(0,k.jsx)("div",{style:{color:"#8A8178",fontSize:"13px",padding:"4px 2px"},children:"Loading options\u2026"}),B.map((t,e)=>{var i;if(0===t.length)return null;const o=(null===(i=t[0])||void 0===i?void 0:i.type)||"Options";return(0,k.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,k.jsx)("div",{style:{fontSize:"10px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:"#9A9089",marginBottom:"8px"},children:o}),(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:t.map((t,i)=>{const o=_[e]===t.option,n=F(e,t.option,_);return(0,k.jsx)("button",{type:"button",disabled:!n,onClick:()=>{return n&&(i=e,o=t.option,void E(t=>{const e=[...t];e[i]=e[i]===o?void 0:o;for(let o=0;o<e.length;o++)o===i||null==e[o]||F(o,e[o],e)||(e[o]=void 0);return e}));var i,o},style:{padding:"8px 15px",borderRadius:"9px",border:o?`1.5px solid ${x}`:`1px solid ${f}`,background:o?x:m,color:o?g:"#2B2622",fontFamily:v,fontSize:"13px",fontWeight:600,cursor:n?"pointer":"not-allowed",opacity:n?1:.4,textDecoration:n?"none":"line-through",transition:"all 0.15s ease",WebkitTapHighlightColor:"transparent"},children:t.option},i)})})]},e)})]}),(0,k.jsx)("div",{style:{padding:"8px 16px 16px",flex:"0 0 auto"},children:(0,k.jsx)("button",{type:"button",onClick:()=>{!A||W||M||S(_,L)},disabled:!Y,style:{width:"100%",height:"46px",border:"none",borderRadius:"12px",background:Y?x:w,color:g,fontFamily:v,fontSize:"14.5px",fontWeight:700,letterSpacing:"0.01em",cursor:Y?"pointer":"default",transition:"background 0.2s ease",WebkitTapHighlightColor:"transparent"},children:$})})]})]}):null};function Oe(t){return"string"===typeof t?t.replace(/^undefined/,""):t}function We(t,e){const i=(0,ct.P)(null===t||void 0===t?void 0:t.price,null===t||void 0===t?void 0:t.compare_price);return{price:Oe((0,St.Sb)(null===t||void 0===t?void 0:t.price,"",e,null===t||void 0===t?void 0:t.currency)),compare:i?Oe((0,St.Sb)(null===t||void 0===t?void 0:t.compare_price,"",e,null===t||void 0===t?void 0:t.currency)):null,savingsPct:i?Math.round(100*(1-Number(t.price)/Number(t.compare_price))):0}}function Me({color:t,size:e=16}){return(0,k.jsx)("span",{style:{display:"inline-block",width:e+"px",height:e+"px",border:`2px solid ${t}`,borderTopColor:"transparent",borderRadius:"50%",animation:"whatmore-rotate-indefinitely-keyframe 0.7s linear infinite"}})}function He({pct:t,dark:e}){return!t||t<=0?null:(0,k.jsxs)("span",{style:{fontSize:"11px",fontWeight:700,color:e?"#CDEBD3":"#2E7D32",background:e?"rgba(46,125,50,0.30)":"#E6F4EA",padding:"2px 7px",borderRadius:"6px",lineHeight:1.25,whiteSpace:"nowrap",fontFamily:Re()},children:[t,"% off"]})}function Qe({added:t,loading:e,oos:i,onClick:o,accent:n,accentText:r}){return(0,k.jsx)("button",{type:"button",disabled:t||e||i,onClick:o,style:{flex:"0 0 auto",minWidth:"74px",height:"40px",border:t?`1.5px solid ${n}`:i?"1px solid #E7E0D5":"none",borderRadius:"10px",background:t?"#FFFFFF":i?"#EDEAE5":n,color:t?n:i?"#9A9089":r,fontFamily:Re(),fontSize:"13px",fontWeight:700,cursor:t||e||i?"default":"pointer",transition:"all 0.18s ease",display:"flex",alignItems:"center",justifyContent:"center",WebkitTapHighlightColor:"transparent"},children:e?(0,k.jsx)(Me,{color:r,size:15}):t?"\u2713 Added":i?"Sold out":"Add"})}var Ve=function(t){var e,i;const[o]=(0,u.QN)("whatmoreShopId"),n=t.event,r=Be(o),a=Ae(o),d=((null===n||void 0===n?void 0:n.products)||[]).filter(Boolean),[s,p]=(0,l.useState)(0),[v,x]=(0,l.useState)(!1),[g,m]=(0,l.useState)(null),[f,w]=(0,l.useState)(!1),[C,y]=(0,l.useState)({}),[b,j]=(0,l.useState)({}),S=(0,l.useRef)(null);(0,l.useEffect)(()=>{const t=S.current;if(!t)return;const e=t=>{t.stopPropagation()};return t.addEventListener("wheel",e,{passive:!0}),t.addEventListener("touchmove",e,{passive:!0}),()=>{t.removeEventListener("wheel",e),t.removeEventListener("touchmove",e)}},[v]),(0,l.useEffect)(()=>{let t=!1;return(async()=>{try{(0,c.w4b)(o)?await(0,St.fu)(n,(0,c.NCy)(o),o):await Promise.all(((null===n||void 0===n?void 0:n.products)||[]).filter(Boolean).map(async t=>{var e,i,n,r,l,a;const d=await(0,h.M)(t,(0,c.NCy)(o),o),s=null!==(e=null===d||void 0===d||null===(i=d.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price)&&void 0!==e?e:null===d||void 0===d?void 0:d.price,u=null!==(r=null===d||void 0===d||null===(l=d.variants)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.compare_at_price)&&void 0!==r?r:null===d||void 0===d?void 0:d.compare_at_price;null!=s&&(t.price=s/100),null!=u&&(t.compare_price=u/100)}))}catch(e){}t||w(!0)})(),()=>{t=!0}},[null===n||void 0===n?void 0:n.event_id]),(0,l.useEffect)(()=>{let t=!1;return(async()=>{const e=await Promise.all(d.map(async t=>{try{const e=await(0,h.M)(t,(0,c.NCy)(o),o),i=(null===e||void 0===e?void 0:e.variants)||[];return[t.product_id,{hasVars:i.length>1,inStock:i.some(t=>t.available)}]}catch(e){return[t.product_id,{hasVars:!1,inStock:!0}]}}));t||y(Object.fromEntries(e))})(),()=>{t=!0}},[null===n||void 0===n?void 0:n.event_id]);const I=v||!!g;if((0,l.useEffect)(()=>{var e;return null===(e=t.setLockSwiper)||void 0===e||e.call(t,I),()=>{var e;return null===(e=t.setLockSwiper)||void 0===e?void 0:e.call(t,!1)}},[I]),0===d.length)return null;const _=d.length,E=d[Math.min(s,_-1)],z=We(E,o),F=t=>{var e;return"oos"===(null===t||void 0===t?void 0:t.product_status)||!1===(null===(e=C[null===t||void 0===t?void 0:t.product_id])||void 0===e?void 0:e.inStock)},T=C[null===E||void 0===E?void 0:E.product_id],P=void 0!==T,N=F(E),L=null!==T&&void 0!==T&&T.hasVars?"Choose options & add \u2192":"Add to cart",B=Object.prototype.hasOwnProperty.call(b,null===E||void 0===E?void 0:E.product_id),A=b[null===E||void 0===E?void 0:E.product_id],R=!B&&!N&&(!P||(null===g||void 0===g?void 0:g.product_id)===(null===E||void 0===E?void 0:E.product_id)),D={flex:"0 0 auto",width:"28px",height:"28px",borderRadius:"50%",border:"1px solid rgba(255,255,255,0.22)",background:"rgba(255,255,255,0.08)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent"};return(0,k.jsxs)("div",{style:{width:"100%",maxWidth:"380px",margin:"0 auto",fontFamily:Re(),boxSizing:"border-box",padding:"0 12px 12px"},children:[_>1&&(0,k.jsxs)("div",{role:"button",onClick:()=>x(!0),style:{display:"flex",alignItems:"center",gap:"8px",width:"fit-content",maxWidth:"100%",margin:"0 auto 10px",padding:"7px 14px 7px 8px",borderRadius:"999px",background:"rgba(20,16,14,0.55)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",cursor:"pointer"},children:[(0,k.jsx)("div",{style:{display:"flex",alignItems:"center"},children:d.slice(0,3).map((t,e)=>{var i;return(0,k.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",border:"2px solid rgba(20,16,14,0.9)",background:"#E9E2D6",marginLeft:0===e?0:"-8px",overflow:"hidden",backgroundImage:t.thumbnail_image?`url(${t.thumbnail_image})`:"none",backgroundSize:"cover",backgroundPosition:"center"}},null!==(i=t.product_id)&&void 0!==i?i:e)})}),(0,k.jsxs)("span",{style:{color:"#fff",fontSize:"13px",fontWeight:700,whiteSpace:"nowrap"},children:[_," products in this video"]}),(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 15l6-6 6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,k.jsxs)("div",{style:{borderRadius:"16px",background:"rgba(0,0,0,0.48)",border:"1px solid rgba(255,255,255,0.10)",padding:"13px",boxSizing:"border-box"},children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[_>1&&(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),p(t=>(t-1+_)%_)},"aria-label":"Previous product",style:D,children:(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M15 6l-6 6 6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"56px",height:"56px",borderRadius:"10px",overflow:"hidden",background:"#E9E2D6"},children:E.thumbnail_image&&(0,k.jsx)("img",{src:E.thumbnail_image,alt:null!==(e=E.title)&&void 0!==e?e:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[_>1&&(0,k.jsxs)("div",{style:{fontSize:"9.5px",fontWeight:700,letterSpacing:"0.11em",textTransform:"uppercase",color:"#C9A07A"},children:["Product ",Math.min(s,_-1)+1," of ",_]}),(0,k.jsx)("div",{onClick:t=>{t.stopPropagation(),E.product_link&&(window.location.href=E.product_link)},onMouseEnter:t=>{E.product_link&&(t.currentTarget.style.textDecoration="underline")},onMouseLeave:t=>{t.currentTarget.style.textDecoration="none"},style:{fontSize:"15px",fontWeight:700,color:"#fff",lineHeight:1.2,margin:"2px 0 4px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:E.product_link?"pointer":"default"},children:null!==(i=E.title)&&void 0!==i?i:""}),B&&A?(0,k.jsx)("div",{style:{fontSize:"12px",fontWeight:600,color:"#C9A07A",margin:"0 0 4px"},children:A}):null,f&&(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"nowrap",whiteSpace:"nowrap"},children:[(0,k.jsx)("span",{style:{fontSize:"16px",fontWeight:700,color:"#fff"},children:z.price}),z.compare&&(0,k.jsx)("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)",textDecoration:"line-through"},children:z.compare}),(0,k.jsx)(He,{pct:z.savingsPct,dark:!0})]})]}),_>1&&(0,k.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),p(t=>(t+1)%_)},"aria-label":"Next product",style:D,children:(0,k.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M9 6l6 6-6 6",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,k.jsx)("button",{type:"button",disabled:B||R||N,onClick:t=>{t.stopPropagation(),B||R||N||m(E)},style:{width:"100%",height:"46px",marginTop:"12px",border:B?"1px solid rgba(123,200,150,0.35)":"none",borderRadius:"12px",background:B?"rgba(46,109,69,0.40)":N?"rgba(255,255,255,0.14)":r,color:B?"#A7E0B7":N?"rgba(255,255,255,0.6)":a,fontFamily:Re(),fontSize:"15px",fontWeight:700,cursor:B||R||N?"default":"pointer",display:"flex",alignItems:"center",justifyContent:"center",WebkitTapHighlightColor:"transparent"},children:B?"\u2713 Added"+(A?" \xb7 "+A:""):N?"Sold out":R?(0,k.jsx)(Me,{color:a,size:18}):L})]}),v&&(0,k.jsxs)("div",{onTouchStart:t=>t.stopPropagation(),onTouchEnd:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{position:"absolute",inset:0,zIndex:50},children:[(0,k.jsx)("div",{onClick:()=>x(!1),style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.38)",animation:"whatmore-backdrop-fade-kf 0.22s ease-out"}}),(0,k.jsxs)("div",{style:{position:"absolute",left:0,right:0,bottom:0,margin:"0 auto",width:"100%",maxWidth:"380px",maxHeight:"70vh",background:"#fff",borderTopLeftRadius:"22px",borderTopRightRadius:"22px",display:"flex",flexDirection:"column",boxSizing:"border-box",willChange:"transform",animation:"whatmore-sheet-slide-up-kf 0.34s cubic-bezier(0.32, 0.72, 0, 1)"},children:[(0,k.jsx)("div",{style:{width:"44px",height:"5px",borderRadius:"3px",background:"#D9D1C6",margin:"10px auto 4px",flex:"0 0 auto"}}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",padding:"10px 20px 14px",borderBottom:"1px solid #EFEAE2",flex:"0 0 auto"},children:[(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{style:{fontFamily:Re(),fontSize:"17px",fontWeight:700,color:"#2B2622"},children:[_," products in this video"]}),(0,k.jsx)("div",{style:{fontSize:"12px",color:"#8A8178",marginTop:"3px"},children:"Tap any item to add"})]}),(0,k.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>x(!1),style:{flex:"0 0 auto",width:"38px",height:"38px",borderRadius:"50%",border:"none",background:"#F0ECE5",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:(0,k.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"#6E665D",strokeWidth:"2.2",strokeLinecap:"round"})})})]}),(0,k.jsx)("div",{ref:S,onTouchMove:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),style:{flex:1,minHeight:0,maxHeight:"55vh",overflowY:"auto",WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain",padding:"4px 0 16px"},children:d.map((t,e)=>{var i,n,l;const d=We(t,o);return(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"11px 16px",borderBottom:e<_-1?"1px solid #F2EDE6":"none"},children:[(0,k.jsx)("div",{style:{flex:"0 0 auto",width:"50px",height:"50px",borderRadius:"10px",overflow:"hidden",background:"#E9E2D6"},children:t.thumbnail_image&&(0,k.jsx)("img",{src:t.thumbnail_image,alt:null!==(n=t.title)&&void 0!==n?n:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,k.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,k.jsx)("div",{onClick:e=>{e.stopPropagation(),t.product_link&&(window.location.href=t.product_link)},onMouseEnter:e=>{t.product_link&&(e.currentTarget.style.textDecoration="underline")},onMouseLeave:t=>{t.currentTarget.style.textDecoration="none"},style:{fontSize:"14px",fontWeight:600,color:"#2B2622",lineHeight:1.25,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:t.product_link?"pointer":"default"},children:null!==(l=t.title)&&void 0!==l?l:""}),(0,k.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"7px",flexWrap:"nowrap",whiteSpace:"nowrap",marginTop:"4px",minHeight:"18px"},children:f&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{style:{fontSize:"14px",fontWeight:700,color:"#2B2622"},children:d.price}),d.compare&&(0,k.jsx)("span",{style:{fontSize:"11px",color:"#9A9089",textDecoration:"line-through"},children:d.compare}),(0,k.jsx)(He,{pct:d.savingsPct})]})})]}),(0,k.jsx)(Qe,{accent:r,accentText:a,added:Object.prototype.hasOwnProperty.call(b,t.product_id),oos:F(t),loading:(null===g||void 0===g?void 0:g.product_id)===t.product_id&&!Object.prototype.hasOwnProperty.call(b,t.product_id),onClick:e=>{e.stopPropagation(),m(t)}})]},null!==(i=t.product_id)&&void 0!==i?i:e)})})]})]}),g&&(0,k.jsx)(De,{event:n,product:g,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,onAdded:t=>j(e=>({...e,[g.product_id]:t||""})),onClose:()=>m(null)})]})};const Xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function Ue(t){var e,i,[o,n,r,a]=(0,p.A)();const[d]=(0,u.QN)("whatmoreSecondaryColor"),[s]=(0,u.QN)("whatmoreSecondaryColorShade900"),[c,h]=(0,l.useState)(0),v=null!==(e=t.totalSiblings)&&void 0!==e?e:1,x=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0;return(0,l.useEffect)(()=>{const e=setInterval(()=>{h(Xe(t.videoPlayingData.current.current_time,t.videoPlayingData.current.video_duration))},100);return()=>clearInterval(e)},[]),(0,k.jsx)(B.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(v).keys()].map(t=>(0,k.jsx)(B.B,{width:"100%",height:.004*r+"px",backgroundColor:t<x?d:s+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==x?(0,k.jsx)(T.az,{height:"100%",width:c+"%",bgColor:d,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,k.jsx)(k.Fragment,{})},"event-progress-bar-slab-"+t))})}var $e=i(5335);const Ye=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,qe=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var Ke=function(t){var e,i,o,n,r,a=t.whatmoreShareTemplateId;const d=t.whatmoreShareStoryId,h=t.whatmoreShareEventId,v=t.event,x=null===(e=t.showShareText)||void 0===e||e,g=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,m=(0,u.Xd)("whatmoreShopId"),f=(0,u.Xd)("isInDesignMode"),w=(0,u.Xd)("isDemoBrand"),C=(0,u.Xd)("whatmorePrimaryFont"),y=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,l.useContext)(b.BR),[S,I,_,E]=(0,p.A)(),z=null!==(o=t.iconSize)&&void 0!==o?o:.1*E*(0,c.xkB)(m);function P(){const e=(0,u.Xd)("whatmoreLandingLocationType");var i;!function(t){f||w||(async()=>{(0,s.increaseShareCount)(t)})()}(v),i="event_product_link"===(0,c.moP)(m)?v.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,c.moP)(m)?"":window.location.hostname)+i+"?wtt="+a+"&wsid="+d+"&weid="+h,(0,c.BLb)(m)&&(i=i+"&"+(0,c.VCz)(m)+"&utm_campaign=video-share&utm_medium="+e);const o={title:(0,c.kZI)(m),text:`${(0,c.dmA)(m)} \n ${i} ${"50529403072"!==m&&(0,c.ZX9)(m)?"\n \n -via Whatmore":""}`};navigator.share&&!qe?navigator.share(o):(t.setIsModalOpen(!0),t.setShareText([o,i]))}return"63046287536"==m?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",style:{marginBottom:g+"px"},children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,k.jsx)($e.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P(),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:j,event:v,productList:v.products,ctaList:v.cta})}}),x&&(0,c.ViG)(m)?(0,k.jsxs)(A.E,{fontSize:.3*z*(0,c.ol5)(m)+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:C+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",v.total_share>(0,c.vDV)(m)?Ye(v.total_share):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[y])||void 0===r?void 0:r.share)&&void 0!==n?n:"Share","\xa0"]}):(0,k.jsx)(k.Fragment,{})]})})})},Ge=i(6703),Ze=i(5753);var Je=function(t){var e,i,o,n,r;const a=(0,u.Xd)("whatmoreShopId"),d=(0,u.Xd)("whatmorePrimaryFont"),h=(0,u.Xd)("whatmoreLikedEvents"),v=(0,u.Xd)("isInDesignMode"),x=(0,u.Xd)("isDemoBrand"),g=(0,u.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:m}=(0,l.useContext)(b.BR),[f]=(0,l.useState)(()=>Math.floor(50*Math.random()+100)),w=t.event,[C,y]=(0,l.useState)(null!==(e=h[w.event_id])&&void 0!==e&&e),[j,S,I,_]=(0,p.A)(),E=.1*_*(0,c.xkB)(a);function z(t,e){v||x||(async()=>{(0,s.increaseLikeCount)(t,e)})()}function P(){(0,u.t2)("whatmoreLikedEvents",{...h,[w.event_id]:!C}),C?(z(w,-1),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_UNLIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})):(z(w,1),(0,rt.registerClickEvent)({userInteractionType:lt.O.VIDEO_LIKED,widgetSourceDetails:m,event:w,productList:w.products,ctaList:w.cta})),y(!C)}const N=("78232846646"==a?null!==(i=w.total_like)&&void 0!==i?i:f:null!==(o=w.total_like)&&void 0!==o?o:0)+(C?1:0);return(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{cursor:"pointer",children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[C?(0,k.jsx)(Ze.A,{sx:{boxShadow:3,color:(0,c.MJ6)(a),fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P()}}):(0,k.jsx)(Ge.A,{sx:{boxShadow:3,color:"white",fontSize:E,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),P()}}),(0,k.jsx)(k.Fragment,{children:(0,c.FlI)(a)?(0,k.jsxs)(A.E,{fontSize:.3*E*(0,c.ol5)(a)+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:d+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,c.LGx)(a)?Ye(N):null!==(n=null===G.m4||void 0===G.m4||null===(r=G.m4[g])||void 0===r?void 0:r.like)&&void 0!==n?n:"Like","\xa0"]}):(0,k.jsx)(k.Fragment,{})})]})})})};const ti=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})}),ei=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"})})}),ii=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,k.jsx)("path",{"fill-rule":"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})}),oi=({iconSize:t})=>(0,k.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,k.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,k.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,k.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var ni=t=>{const e=(0,u.Xd)("whatmoreShopId"),i=t.shareText,[o,n]=(0,l.useState)("Copy link"),[r,a]=(0,l.useState)(""),[d,s]=(0,l.useState)(window.innerWidth),[h,v,x,g]=(0,p.A)(),m=.1*g*(0,c.xkB)(e)*.5,f=!0===(0,c.SGs)(e);(0,l.useEffect)(()=>{const t=()=>s(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const w=d<380,C=w?Math.min(t.iconSize,22):Math.min(t.iconSize,28),y=w?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,k.jsx)(k.Fragment,{children:t.isModalOpen&&(0,k.jsxs)("div",{className:"modal-overlay",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"10px",padding:"12px 16px 20px 16px",width:"90%",maxWidth:"420px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:[(0,k.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,k.jsxs)("div",{onClick:()=>{f&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:[f?(0,k.jsx)("img",{className:"whatmore-label",src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px",width:Math.min(t.iconSize,28)+"px"}}):(0,k.jsx)($e.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,k.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:f?"Whatmore":"Share On"})]}),(0,k.jsx)($.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,k.jsx)(Se.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,k.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,k.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ti,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"Whatsapp"})]}),f&&(0,k.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const o=encodeURIComponent(null===(e=i[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${o}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ei,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"X"})]}),(0,k.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(i[1]),n("Copied"),a("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(ii,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,color:r,margin:0,textAlign:"center"},children:o})]}),(0,k.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const o=(null===i||void 0===i||null===(e=i[0])||void 0===e?void 0:e.text)||"",n=null===i||void 0===i?void 0:i[1];try{navigator.share?await navigator.share({title:"Check this out",text:o,url:n}):(await navigator.clipboard.writeText(n),alert("Link copied. You can paste it anywhere!"))}catch(r){console.error("Share failed:",r)}},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,k.jsx)(oi,{iconSize:C}),(0,k.jsx)("p",{style:{fontSize:y,margin:0,textAlign:"center"},children:"More"})]})]})]})})},ri=i(5677);var li=function(t){var e,i;const o=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),n=(0,u.Xd)("whatmorePrimaryFont"),r=(0,u.Xd)("whatmoreShopId"),l=null!==(i=t.fontSize)&&void 0!==i?i:"8",[a]=(0,ri.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,p=(0,u.Xd)("whatmoreLandingLocationType"),h=t.isOutside||!p.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${o}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${o}&utm_medium=referral&utm_campaign=${d}`,v=s?"https://www.letsmapit.in/":h;return(0,k.jsx)(zt.N,{href:v,isExternal:!0,textDecoration:"none",children:(0,c.SGs)(r)&&(0,k.jsxs)(B.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,k.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:s?"marketed by":"Powered By"}),s?(0,k.jsx)(T.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,k.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,k.jsxs)(T.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,k.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,k.jsx)("p",{ref:e=>{var i;e&&(e.style.setProperty("font-family",n,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},ai=i(5405),di=i(6677),si=i(5156);var ci=()=>(0,k.jsxs)(T.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,k.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,k.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}),ui=i(5566);var pi=t=>{var e;const i={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,n]=(0,l.useState)(!1),[r,a]=(0,l.useState)(null),[d,s]=(0,l.useState)(null),c=(0,l.useRef)(null),u=(0,l.useContext)(b.BR);(0,l.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,ui.NF)(t.question.id)},[]);return(0,l.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,l.useEffect)(()=>{!o&&c.current&&s(c.current.offsetHeight)},[o]),(0,k.jsxs)(T.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:c,height:d?`${d}px`:"auto",children:[(0,k.jsx)(T.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:u})},children:(0,k.jsx)(si.A,{})}),(0,k.jsx)(T.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,k.jsx)(di.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.text})}),(0,k.jsx)(T.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,k.jsxs)(T.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,k.jsx)(ci,{}),(0,k.jsx)(di.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,k.jsx)(B.B,{spacing:5,width:"100%",align:"center",children:i.options.map((e,i)=>(0,k.jsx)(T.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:r===e?"gray.200":"white",borderColor:r===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var i;a(e),n(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.id,response:e},widgetSourceDetails:u})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,k.jsx)(A.E,{py:5,color:"gray.800",children:e})},i))})})]})},hi=i(9504);var vi=t=>{var e,i;const[o,n]=(0,l.useState)(""),[r,a]=(0,l.useState)(""),[d,s]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),v=(0,u.Xd)("whatmoreShopId"),x=(0,u.Xd)("whatmoreSecondaryColor"),g=(0,u.Xd)("whatmorePrimaryFont"),m=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,f=(0,l.useContext)(b.BR);(0,l.useEffect)(()=>{var e;null!==t&&void 0!==t&&null!==(e=t.question)&&void 0!==e&&e.id&&(0,ui.NF)(t.question.id)},[]);const w=()=>{var e,i;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:f})):a("Please enter valid contact info.")},C=()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:f})};return(0,k.jsx)(se.s,{bg:x,p:"6%",borderRadius:"md",boxShadow:"md",width:"90vw",mx:"auto",minH:"40vh",maxH:"80vh",position:"fixed",top:"30%",left:"50%",transform:"translateX(-50%)",direction:"column",align:"center",justify:"center",zIndex:100,overflow:"hidden",children:d?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(T.az,{textAlign:"center",color:"white",children:[(0,k.jsx)(T.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,k.jsx)(T.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,k.jsx)(T.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,k.jsx)(Y,{onCloseCallback:C})}),(0,k.jsxs)(T.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,c.TH)(v);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{C()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,k.jsxs)(T.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,k.jsx)(T.az,{as:"span",fontWeight:"bold",color:"black",children:(0,c.TH)(v)}),(0,k.jsx)(hi.A,{sx:{color:p?{whatmoreSecondaryColor:x}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),p&&(0,k.jsx)(T.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:x,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(T.az,{textAlign:"center",color:"white",children:[(0,k.jsx)(T.az,{children:(0,k.jsx)(A.E,{fontFamily:g,fontSize:"22px",fontWeight:"bold",children:m})}),(0,k.jsx)(T.az,{marginBottom:"10%",fontSize:"md",children:(0,c.aRV)(v)})]}),(0,k.jsx)(T.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,k.jsx)(Y,{onCloseCallback:C})}),(0,k.jsxs)(se.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,k.jsx)(T.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,k.jsx)("input",{fontFamily:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{n(t.target.value),r&&a("")},onKeyDown:t=>{"Enter"===t.key&&w()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),r&&(0,k.jsx)(A.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:r}),(0,k.jsx)(T.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:w,width:"50%",children:(0,k.jsx)(A.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:x,children:"SUBMIT"})})]})]})})};var xi=t=>{const[e,i]=(0,l.useState)(null);return(0,k.jsx)(T.az,{children:!e&&(0,k.jsx)(vi,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})},gi=i(9820);const mi=(t={},e,i,o=void 0)=>{var n,r,l,a,d,s,c,u,p,h,v,x,g,m,f,w,C,y,b,j,S,k,I,_,E,z,F,T,P,N,L,B,A,R,D,O,W,M,H,Q,V,X,U,$,Y,q,K,G,Z,J,tt,et,it,ot,nt,rt,lt,at,dt,st,ct,ut,pt,ht,vt,xt,gt,mt;const ft={heightMultiplier:10},wt={fontSizeMultiplier:8.3},Ct={fontSizeMultiplier:3},yt={fontSizeMultiplier:2.8,paddingMultiplier:3.5},bt={fontSizeMultiplier:3.5,paddingYMultiplier:3.5,paddingXMultiplier:4},jt={widthMultiplier:100,paddingMultiplier:5,borderRadiusMultiplier:1.2},St={logoTopMultiplier:0,logoBottomMultiplier:4,headingTopMultiplier:4,headingBottomMultiplier:2,subHeadingTopMultiplier:2,subHeadingBottomMultiplier:2,textFieldTopMultiplier:10,textFieldBottomMultiplier:6,ctaButtonBottomMultiplier:4};let kt="Email";return"number"===o?kt="Phone Number":"string"===o&&(kt="Email"),{logo:{url:(null===t||void 0===t||null===(n=t.logo)||void 0===n?void 0:n.url)||"",show:!(null===t||void 0===t||!t.logo||null===t||void 0===t||null===(r=t.logo)||void 0===r||!r.url),height:i(null!==(l=null===t||void 0===t||null===(a=t.logo)||void 0===a?void 0:a.heightMultiplier)&&void 0!==l?l:ft.heightMultiplier)},heading:{text:(null===t||void 0===t||null===(d=t.heading)||void 0===d?void 0:d.text)||"Bought You Christmas Present!",show:!(null===t||void 0===t||null===(s=t.heading)||void 0===s||!s.text),color:(null===t||void 0===t||null===(c=t.heading)||void 0===c?void 0:c.color)||"black",fontSize:i(null!==(u=null===t||void 0===t||null===(p=t.heading)||void 0===p?void 0:p.fontSizeMultiplier)&&void 0!==u?u:wt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(h=t.heading)||void 0===h?void 0:h.fontWeight)||"bold",textAlign:(null===t||void 0===t||null===(v=t.heading)||void 0===v?void 0:v.textAlign)||"center"},subHeading:{text:(null===t||void 0===t||null===(x=t.subHeading)||void 0===x?void 0:x.text)||"Drop you email for the amazing offers!",show:!(null===t||void 0===t||null===(g=t.subHeading)||void 0===g||!g.text),color:(null===t||void 0===t||null===(m=t.subHeading)||void 0===m?void 0:m.color)||"black",fontSize:i(null!==(f=null===t||void 0===t||null===(w=t.subHeading)||void 0===w?void 0:w.fontSizeMultiplier)&&void 0!==f?f:Ct.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(C=t.subHeading)||void 0===C?void 0:C.fontWeight)||"normal",textAlign:(null===t||void 0===t||null===(y=t.subHeading)||void 0===y?void 0:y.textAlign)||"center"},textField:{placeholder:(null===t||void 0===t||null===(b=t.textField)||void 0===b?void 0:b.placeholder)||kt,backgroundColor:(null===t||void 0===t||null===(j=t.textField)||void 0===j?void 0:j.backgroundColor)||"#FFFFFF",borderColor:(null===t||void 0===t||null===(S=t.textField)||void 0===S?void 0:S.borderColor)||"#CCCCCC",borderWidth:(null===t||void 0===t||null===(k=t.textField)||void 0===k?void 0:k.borderWidth)||"1px",borderRadius:(null===t||void 0===t||null===(I=t.textField)||void 0===I?void 0:I.borderRadius)||"10px",textColor:(null===t||void 0===t||null===(_=t.textField)||void 0===_?void 0:_.textColor)||"#000000",fontSize:i(null!==(E=null===t||void 0===t||null===(z=t.textField)||void 0===z?void 0:z.fontSizeMultiplier)&&void 0!==E?E:yt.fontSizeMultiplier),padding:i(null!==(F=null===t||void 0===t||null===(T=t.textField)||void 0===T?void 0:T.paddingMultiplier)&&void 0!==F?F:yt.paddingMultiplier)},ctaButton:{text:(null===t||void 0===t||null===(P=t.ctaButton)||void 0===P?void 0:P.text)||"Submit",backgroundColor:(null===t||void 0===t||null===(N=t.ctaButton)||void 0===N?void 0:N.backgroundColor)||"#4A4A4A",textColor:(null===t||void 0===t||null===(L=t.ctaButton)||void 0===L?void 0:L.textColor)||"#FFFFFF",fontSize:i(null!==(B=null===t||void 0===t||null===(A=t.ctaButton)||void 0===A?void 0:A.fontSizeMultiplier)&&void 0!==B?B:bt.fontSizeMultiplier),fontWeight:(null===t||void 0===t||null===(R=t.ctaButton)||void 0===R?void 0:R.fontWeight)||"bold",borderRadius:(null===t||void 0===t||null===(D=t.ctaButton)||void 0===D?void 0:D.borderRadius)||"10px",paddingY:i(null!==(O=null===t||void 0===t||null===(W=t.ctaButton)||void 0===W?void 0:W.paddingYMultiplier)&&void 0!==O?O:bt.paddingYMultiplier),paddingX:i(null!==(M=null===t||void 0===t||null===(H=t.ctaButton)||void 0===H?void 0:H.paddingXMultiplier)&&void 0!==M?M:bt.paddingXMultiplier)},closeButton:{backgroundColor:(null===t||void 0===t||null===(Q=t.closeButton)||void 0===Q?void 0:Q.backgroundColor)||"#4A4A4A"},container:{backgroundGradient:(null===t||void 0===t||null===(V=t.container)||void 0===V?void 0:V.backgroundGradient)||"linear-gradient(135deg, #e0ded9 0%, #bab8b0 60%, #f4f3f0 100%)",frameColor:(null===t||void 0===t||null===(X=t.container)||void 0===X?void 0:X.frameColor)||"#CCCCCC",frameWidth:(null===t||void 0===t||null===(U=t.container)||void 0===U?void 0:U.frameWidth)||"2px",borderRadius:i(null!==($=null===t||void 0===t||null===(Y=t.container)||void 0===Y?void 0:Y.borderRadiusMultiplier)&&void 0!==$?$:jt.borderRadiusMultiplier),boxShadow:(null===t||void 0===t||null===(q=t.container)||void 0===q?void 0:q.boxShadow)||"0px 4px 12px rgba(0, 0, 0, 0.15)",padding:i(null!==(K=null===t||void 0===t||null===(G=t.container)||void 0===G?void 0:G.paddingMultiplier)&&void 0!==K?K:jt.paddingMultiplier),width:i(null!==(Z=null===t||void 0===t||null===(J=t.container)||void 0===J?void 0:J.widthMultiplier)&&void 0!==Z?Z:jt.widthMultiplier)},spacing:{logoTop:i(null!==(tt=null===t||void 0===t||null===(et=t.spacing)||void 0===et?void 0:et.logoTopMultiplier)&&void 0!==tt?tt:St.logoTopMultiplier),logoBottom:i(null!==(it=null===t||void 0===t||null===(ot=t.spacing)||void 0===ot?void 0:ot.logoBottomMultiplier)&&void 0!==it?it:St.logoBottomMultiplier),headingTop:i(null!==(nt=null===t||void 0===t||null===(rt=t.spacing)||void 0===rt?void 0:rt.headingTopMultiplier)&&void 0!==nt?nt:St.headingTopMultiplier),headingBottom:i(null!==(lt=null===t||void 0===t||null===(at=t.spacing)||void 0===at?void 0:at.headingBottomMultiplier)&&void 0!==lt?lt:St.headingBottomMultiplier),subHeadingTop:i(null!==(dt=null===t||void 0===t||null===(st=t.spacing)||void 0===st?void 0:st.subHeadingTopMultiplier)&&void 0!==dt?dt:St.subHeadingTopMultiplier),subHeadingBottom:i(null!==(ct=null===t||void 0===t||null===(ut=t.spacing)||void 0===ut?void 0:ut.subHeadingBottomMultiplier)&&void 0!==ct?ct:St.subHeadingBottomMultiplier),textFieldTop:i(null!==(pt=null===t||void 0===t||null===(ht=t.spacing)||void 0===ht?void 0:ht.textFieldTopMultiplier)&&void 0!==pt?pt:St.textFieldTopMultiplier),textFieldBottom:i(null!==(vt=null===t||void 0===t||null===(xt=t.spacing)||void 0===xt?void 0:xt.textFieldBottomMultiplier)&&void 0!==vt?vt:St.textFieldBottomMultiplier),ctaButtonBottom:i(null!==(gt=null===t||void 0===t||null===(mt=t.spacing)||void 0===mt?void 0:mt.ctaButtonBottomMultiplier)&&void 0!==gt?gt:St.ctaButtonBottomMultiplier)}}};var fi=t=>{var e,i,o,n,r;const[a,d]=(0,l.useState)(""),[s,c]=(0,l.useState)(!1),[h,v]=(0,l.useState)(!1),x=(0,l.useContext)(b.BR),[g]=(0,u.QN)("whatmorePrimaryFont"),[m,f,w,C]=(0,p.A)(),y=.01*C,j=null===(e=t.question)||void 0===e?void 0:e.type,S=mi(null===(i=t.question)||void 0===i?void 0:i.template_config,y,t=>y*t+"px",j),I=null===(o=t.question)||void 0===o||null===(n=o.answers)||void 0===n?void 0:n.coupon_code;(0,l.useEffect)(()=>{var e;null!==(e=t.question)&&void 0!==e&&e.id&&(0,ui.NF)(t.question.id)},[]);const _=()=>{var e,i;c(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:a,type:"number"===(null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:x}),I||setTimeout(()=>{t.setIsQuestionVisible(!1)},1500)};return(0,k.jsxs)("div",{className:"whatmore-lead-capture-container",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:S.container.backgroundGradient,padding:S.container.padding,zIndex:100,fontFamily:g},children:[(0,k.jsx)("div",{style:{position:"absolute",top:"16px",right:"16px",zIndex:20,cursor:"pointer"},onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,rt.registerClickEvent)({userInteractionType:lt.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:x})},children:(0,k.jsx)("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"white",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:S.closeButton.backgroundColor,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)(gi.A,{style:{color:"white",fontSize:"18px"}})})})}),s?(0,k.jsxs)("div",{className:"whatmore-lead-capture-success",style:{textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",width:"85%"},children:[(0,k.jsx)(ci,{}),(0,k.jsx)("p",{style:{fontSize:S.heading.fontSize,fontWeight:"bold",color:S.heading.color,margin:"16px 0"},children:"Thank you for your response!"}),I&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{onClick:()=>{navigator.clipboard.writeText(I).then(()=>{v(!0),setTimeout(()=>{t.setIsQuestionVisible(!1)},800)},()=>{console.error("Failed to copy coupon code")})},style:{position:"relative",width:"100%",cursor:"pointer",marginBottom:"12px"},children:[(0,k.jsxs)("div",{style:{backgroundColor:"white",border:"2px dashed black",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,k.jsx)("span",{style:{fontWeight:"bold",fontSize:S.ctaButton.fontSize,color:"black"},children:I}),(0,k.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:h?"#4CAF50":"#666",strokeWidth:"2",children:[(0,k.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,k.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})]}),h&&(0,k.jsx)("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"-30px",backgroundColor:"#4CAF50",color:"white",fontSize:"12px",borderRadius:"4px",padding:"4px 12px"},children:"Copied!"})]}),(0,k.jsx)("p",{style:{fontSize:S.subHeading.fontSize,color:S.subHeading.color,margin:0,fontStyle:"italic"},children:"Tap to copy"})]})]}):(0,k.jsxs)(k.Fragment,{children:[S.logo.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-logo",style:{marginBottom:S.spacing.logoBottom,marginTop:S.spacing.logoTop},children:(0,k.jsx)("img",{src:S.logo.url,alt:"Logo",style:{height:S.logo.height,objectFit:"contain"}})}),S.heading.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-heading",style:{marginTop:S.spacing.headingTop,marginBottom:S.spacing.headingBottom},children:(0,k.jsx)("p",{style:{fontSize:S.heading.fontSize,fontWeight:S.heading.fontWeight,color:S.heading.color,textAlign:S.heading.textAlign,margin:0},children:S.heading.text})}),S.subHeading.show&&(0,k.jsx)("div",{className:"whatmore-lead-capture-subheading",style:{marginTop:S.spacing.subHeadingTop,marginBottom:S.spacing.subHeadingBottom},children:(0,k.jsx)("p",{style:{fontSize:S.subHeading.fontSize,fontWeight:S.subHeading.fontWeight,color:S.subHeading.color,textAlign:S.subHeading.textAlign,margin:0},children:S.subHeading.text})}),(0,k.jsx)("div",{className:"whatmore-lead-capture-textfield",style:{marginTop:S.spacing.textFieldTop,marginBottom:S.spacing.textFieldBottom,width:"85%"},children:(0,k.jsx)("div",{style:{backgroundColor:S.textField.backgroundColor,border:`${S.textField.borderWidth} solid ${S.textField.borderColor}`,borderRadius:S.textField.borderRadius,padding:S.textField.padding,width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,k.jsx)("input",{type:"number"===(null===(r=t.question)||void 0===r?void 0:r.type)?"tel":"email",placeholder:S.textField.placeholder,value:a,onChange:t=>d(t.target.value),onKeyDown:t=>{"Enter"===t.key&&_()},style:{fontSize:S.textField.fontSize,color:S.textField.textColor,border:"none",outline:"none",width:"100%",backgroundColor:"transparent",height:"100%"}})})}),(0,k.jsx)("button",{className:"whatmore-lead-capture-cta-button",onClick:_,style:{minWidth:"35%",maxWidth:"70%",width:"auto",backgroundColor:S.ctaButton.backgroundColor,color:S.ctaButton.textColor,fontSize:S.ctaButton.fontSize,fontWeight:S.ctaButton.fontWeight,borderRadius:S.ctaButton.borderRadius,padding:`${S.ctaButton.paddingY} ${S.ctaButton.paddingX}`,marginBottom:S.spacing.ctaButtonBottom,border:"none",outline:"none",cursor:"pointer",whiteSpace:"normal",textAlign:"center"},onMouseEnter:t=>t.target.style.opacity="0.9",onMouseLeave:t=>t.target.style.opacity="1",children:S.ctaButton.text})]})]})};var wi=t=>{var e;const[i,o]=(0,l.useState)(null),n=t.questionIndex,r=t.questionList;if((0,l.useEffect)(()=>{if(!(n>=r.length))return()=>(0,ui.Hm)()},[]),n>=r.length)return;const a=null===r||void 0===r?void 0:r[n];return"lead_capture"===(null===a||void 0===a?void 0:a.template_type)?(0,k.jsx)(T.az,{children:(0,k.jsx)(fi,{question:a,setIsQuestionVisible:t.setIsQuestionVisible})}):"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,k.jsx)(T.az,{children:(0,k.jsx)(xi,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,k.jsx)(T.az,{children:(0,k.jsx)(pi,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map(t=>null===t||void 0===t?void 0:t.value),onAnswerSelect:t=>{o(t)},selectedAnswer:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Ci=i(2261);const yi=({iconSize:t})=>(0,k.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,k.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,k.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})});var bi=function(t){const e=(0,u.Xd)("whatmoreShopId"),i=t.event,[o,r,l,a]=(0,p.A)(),d=.09*a*(0,c.xkB)(e);return(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{onClick:async function(){const t=(0,n.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),o=await e.blob(),n=window.URL.createObjectURL(o),r=document.createElement("a");r.href=n,r.download=`whatmore-video-${i.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,k.jsx)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,k.jsx)(yi,{iconSize:d})})})})},ji=i(5568),Si=i(5879);function ki(t){var e;const i=t.event,[o,r,a,d]=(0,p.A)(),[s]=(0,u.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,l.useContext)(b.BR),[v]=(0,u.QN)("whatmoreSecondaryColor"),[x]=(0,u.QN)("whatmoreShopId"),g=(0,c.ivI)(x),m=null!==(e=(0,c.qAx)(x))&&void 0!==e?e:[v,g,v,g,v],f=(0,l.useRef)(null);(0,l.useEffect)(()=>{f.current&&f.current.play()},[]);const w=(0,n.s)(null===i||void 0===i?void 0:i.storyset_thumbnail_image);return(0,k.jsx)(k.Fragment,{children:h?(0,k.jsx)(T.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,k.jsxs)(B.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(T.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+m[0]+"50, 0px -2px 1px 0px "+m[1]+"50, 2px 0px 1px 0px "+m[2]+"50, -2px 0px 1px 0px "+m[3]+"80, 2px -2px 1px 0px "+m[4]+"80, -2px 2px 1px 0px "+m[0]+"DA, 2px 2px 1px 0px "+m[1]+"DA, -2px -2px 1px 0px "+m[2]+"DA"},children:"video"==(0,yt.B)(w)?(0,k.jsx)(ai.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:w,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,k.jsx)("img",{src:w,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(A.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:s+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:i.storyset_name})})]})}):(0,k.jsx)(k.Fragment,{})})}var Ii=function(t){var e,i,o,n,r;const[a,d,h]=(0,ji.A)(),[v]=(0,u.QN)("isInDesignMode"),[x]=(0,u.QN)("isDemoBrand"),[m,f]=(0,u.QN)("isProductSwiperCatalogOpen"),[w,C]=(0,u.QN)("isFirstIndicatorRenderDone"),[y]=(0,u.QN)("whatmoreShopId"),[j]=(0,u.QN)("websiteLanguage"),[S]=(0,u.QN)("whatmoreShowViews"),I=(0,l.useContext)(g.p),{whatmoreEventsBrowsingTemplate:_,whatmoreIsStoriesTemplate:E}=(0,l.useContext)(b.BR),[z,F,P,N]=(0,p.A)(),R=(0,u.Xd)("whatmorePrimaryFont"),[D,O]=(0,l.useState)(0),W=t.event,M=t.storySetId,H=t.isLast,Q=t.onCloseCallback,V=t.focusRef,X=t.productClickHandler,$=t.videoPlayingData,q=t.totalSiblingEvents,K=t.indexAmongSiblings,Z=t.leftOpenSpaceClickHandler,et=t.midOpenSpaceClickHandler,it=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:ot}=(0,l.useContext)(b.BR),nt=.1*N,[at,dt]=(0,l.useState)(!1),[st,ct]=(0,l.useState)([]);function ut(){v||x||(async()=>{(0,s.increaseWhatsappClickCount)(W,1)})();const t=W.products[D]||W.products[0];(0,rt.registerClickEvent)({userInteractionType:lt.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:ot,event:W,productList:null===W||void 0===W?void 0:W.products,ctaList:null===W||void 0===W?void 0:W.cta});const e=t.product_link,i=(0,c.dzp)(y),o=(0,G.ek)(window.Shopify&&window.Shopify.locale||j,"whatsapp_share"),n="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:o?o.replace("{brand}",(null===t||void 0===t?void 0:t.brand)||"").replace("{url}",e):`Hey, I am interested in this product I saw on ${null===t||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}(0,l.useEffect)(()=>{O(0)},[null===W||void 0===W?void 0:W.event_id]);const pt=t=>{ht.current&&!ht.current.contains(t.target)&&dt(!1)},ht=(0,l.useRef)(null);(0,l.useEffect)(()=>(at?document.addEventListener("click",pt):document.removeEventListener("click",pt),()=>{document.removeEventListener("click",pt)}),[at]);const vt=(()=>{const t=(0,u.Xd)("whatmoreShopId");return"Free"==(0,c.yt9)(t)})()&&"portrait"==a;return(0,k.jsxs)(T.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,k.jsx)(ne.S,{userInteractionType:lt.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!v&&!x,children:(0,k.jsx)(wi,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),at&&(0,k.jsx)("div",{ref:ht,className:"whatmore-share-modal",style:{zIndex:100,position:"absolute",boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.6)",width:"75%",top:"45%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,k.jsx)(ni,{shareText:st,setShareText:ct,iconSize:nt,isModalOpen:at,setIsModalOpen:dt})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,k.jsxs)(B.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,k.jsxs)(B.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[I.showVideoPlayingData?(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,k.jsx)(Ue,{videoPlayingData:$,totalSiblings:q,indexAmongSiblings:K})}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(T.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,k.jsxs)(B.B,{direction:"row",width:"full",height:"fit-content",paddingRight:"10px",paddingLeft:"10px",children:[(0,k.jsxs)(B.B,{className:"wht-overlay-left-group",direction:"row",alignItems:"center",gap:"10px",style:{flexGrow:1,minWidth:0},children:[(0,k.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",width:0,height:0}}),(0,k.jsx)(ki,{event:W,width:N}),(0,kt.Yt)(_)||"show"!==S||"61415948468"!==y||"show"!==(0,c.klK)(y)?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(T.az,{children:(0,k.jsx)(Si.A,{event:W,fontSize:.035*N+"px"})})]}),(0,k.jsxs)(B.B,{className:"wht-overlay-right-group",direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,kt.Yt)(_)?(0,k.jsx)(Ke,{whatmoreShareTemplateId:(0,kt.Gy)(_),whatmoreShareStoryId:M,whatmoreShareEventId:W.event_id,event:W,showShareText:!1,iconSize:.098*N,setIsModalOpen:dt,setShareText:ct}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)(L,{focusRef:V}),("landscape"!==a||t.showCloseOverlay)&&(0,k.jsx)(Y,{event:W,onCloseCallback:Q})]})]})})]}),(0,k.jsxs)(B.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,k.jsx)(T.az,{width:"33%",height:"100%",onClick:()=>{Z&&Z()},sx:{display:"block !important"}}),(0,k.jsx)(T.az,{width:"34%",height:"100%",onClick:()=>{et&&et()},sx:{display:"block !important"}}),(0,k.jsx)(T.az,{width:"33%",height:"100%",onClick:()=>{it&&it()},sx:{display:"block !important"}})]}),(0,k.jsxs)(T.az,{width:"full",height:"fit-content",children:[I.totalEvents>1&&!w&&I.showSwipeIndicator?(0,k.jsx)(T.az,{width:"full",margin:"2px",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,k.jsx)(J,{swipeUp:!H})})}):null,(0,k.jsx)(T.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,k.jsxs)(T.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,k.jsxs)(k.Fragment,{children:[" ","portrait"==a&&I.totalEvents>1&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(T.az,{children:(0,k.jsx)(Ci.A,{style:{fontSize:1.3*nt+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(W,"left")}})}),(0,k.jsx)(T.az,{children:(0,k.jsx)(Ci.A,{style:{fontSize:1.3*nt+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(W,"right")}})})]}),(0,k.jsx)(T.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(bi,{event:W})})})]}),(0,c.oZc)(y)&&(0,c.dzp)(y)&&!(0,kt.Yt)(_)?(0,k.jsx)(T.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,k.jsxs)(B.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:ut,children:[(0,k.jsx)(ti,{iconSize:.7*nt,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,k.jsx)(A.E,{fontSize:nt*(0,c.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:R+" !important",color:"white !important"},children:null!==(n=(0,G.ek)(j,"talk_to_us"))&&void 0!==n?n:(0,c.wtw)(y)})]})}):(0,k.jsx)(k.Fragment,{}),(0,c.MdM)(y)&&(0,k.jsxs)(T.az,{height:"fit-content",position:"relative",children:[(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(Je,{event:W})}),(0,kt.Yt)(_)&&"50529403072"===y&&(0,k.jsx)(T.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,k.jsxs)(B.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:ut,children:[(0,k.jsx)(ti,{iconSize:.6*nt,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,k.jsx)(A.E,{fontSize:nt*(0,c.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:R+" !important",color:"white !important"},children:null!==(r=(0,G.ek)(j,"talk_to_us"))&&void 0!==r?r:(0,c.wtw)(y)})]})})]}),(0,c.iQ5)(y)&&!(0,kt.Yt)(_)?(0,k.jsx)(T.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(Ke,{whatmoreShareTemplateId:(0,kt.Gy)(_),whatmoreShareStoryId:M,whatmoreShareEventId:W.event_id,event:W,setIsModalOpen:dt,setShareText:ct})})}):(0,k.jsx)(k.Fragment,{})]})}),(0,tt.Z_)(W)?(0,k.jsx)(T.az,{width:"full",children:"multi-product-tile"===(0,c.Vpi)(y)?(0,k.jsx)(T.az,{display:"flex",width:"100%",height:"fit-content",children:(0,k.jsx)(Ve,{event:W,productClickHandler:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,setLockSwiper:t.setLockSwiper})}):(0,k.jsxs)(k.Fragment,{children:[(0,c.ek9)(y)?(0,k.jsx)(T.az,{w:"100%",children:(0,k.jsx)(B.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,k.jsx)(U,{event:W,onToggle:t=>{f("minimize-button"!==t)}})})}):(0,k.jsx)(k.Fragment,{}),m&&(0,k.jsx)(T.az,{display:"flex",width:"100%",height:"fit-content",children:(0,k.jsx)(ae,{event:W,isPlaying:t.isPlaying,productClickHandler:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange,onActiveProductChange:O})})]})}):(0,k.jsx)(k.Fragment,{})]}),vt&&(0,k.jsx)(B.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,k.jsx)(li,{brandName:null===W||void 0===W?void 0:W.brand,fontSize:.033*N})})]})]})},_i=i(9612),Ei=i.n(_i);var zi=function(t){var e,i,o,a,d,s,[v,x,m,f]=(0,p.A)();const[w,C]=(0,l.useState)(!1),[y,j]=(0,l.useState)(),[S,I]=(0,l.useState)(),_=(0,l.useRef)({current_time:0,video_duration:0,is_video_ended:!1}),E=(0,u.Xd)("whatmoreShopId"),P=t.event,N=t.storyId,L=t.onBack,A=l.useRef(),R=t.changeSlide,D=t.isPlaying,O=t.isLast,W=t.setLockSwiper,M=t.onVideoEndedCallback,H=t.progressUpdateCallback,Q=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,V=null!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=null===(o=t.showOverlay)||void 0===o||o,U=null!==(a=t.leftOpenSpaceClickHandler)&&void 0!==a?a:()=>{},$=null!==(d=t.midOpenSpaceClickHandler)&&void 0!==d?d:()=>{},Y=null!==(s=t.rightOpenSpaceClickHandler)&&void 0!==s?s:()=>{},{whatmoreWidgetSourceDetails:q,whatmoreIsStoriesTemplate:K}=(0,l.useContext)(b.BR),{questionList:G}=(0,l.useContext)(g.p),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,l.useState)(),[et,it]=(0,l.useState)({}),ot=(t,e)=>{it(i=>({...i,[t]:e}))};(0,l.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const nt="center",at=async t=>{const e=await(0,h.M)(t,(0,c.NCy)(E),E);I(t),j(e),C(!0),W(!0),(0,rt.registerClickEvent)({userInteractionType:lt.O.SHOPNOW_CLICKED,widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta}),(0,u.t2)("whatmoreAllowAutoSlide",!1)};let dt;try{dt=Ei()(()=>{M()},1e3,{leading:!0,trailing:!1})}catch(st){console.log(st)}return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:f,height:m,sx:{overflow:"hidden"},children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:nt,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"white",children:(0,k.jsx)(Le.g,{width:"full",ratio:f/m,children:(0,k.jsx)(z,{height:"100%",width:"100%",url:(0,n.s)((0,r.lP)(P)),isPlaying:D&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=Xe(t,e),o=_.current.is_video_ended;i>=99&&D&&!o?((0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:e,video_duration:e},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta}),dt(),_.current={current_time:t,video_duration:e,is_video_ended:!0}):_.current={current_time:t,video_duration:e,is_video_ended:o&&i>=99},H({watch_time:t,video_duration:e,event_id:P.event_id,is_video_ended:_.current.is_video_ended})},event:P,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),X?(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:nt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:K?(0,k.jsx)(Ii,{focusRef:A,event:t.event,isLast:O,onCloseCallback:t=>{var e;L(t),null!==(e=_.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:_.current.current_time,video_duration:_.current.video_duration},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta})},productClickHandler:at,videoPlayingData:_,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:U,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:Y,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:ot,setLockSwiper:W}):(0,k.jsx)(Ii,{focusRef:A,event:t.event,isPlaying:D,isLast:O,onCloseCallback:t=>{var e;L(t),null!==(e=_.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:_.current.current_time,video_duration:_.current.video_duration},widgetSourceDetails:q,event:P,productList:P.products,ctaList:P.cta})},productClickHandler:at,videoPlayingData:_,totalSiblingEvents:Q,indexAmongSiblings:V,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:R,productCartCounts:et,onCartCountChange:ot,setLockSwiper:W})})}):(0,k.jsx)(k.Fragment,{}),!0===w?(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:nt,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,k.jsx)(Ne,{focusRef:A,event:t.event,isLast:O,onCloseCallback:()=>L(),setLockSwiper:W,data:y,currentProduct:S,setOpenShopNow:t=>{C(t),(0,u.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:ot})})}):(0,k.jsx)("div",{})]})})},Fi=i(3168),Ti=i(2654);var Pi=function(t){var[e,i,o,l]=(0,p.A)();const a=(0,u.Xd)("whatmoreShopId"),d=t.event,s=t.isPlaying,h="center";return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:l,height:o,sx:{overflow:"hidden"},children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:h,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"white",children:(0,k.jsx)(Le.g,{width:"full",ratio:l/o,children:(0,k.jsx)(z,{height:"100%",width:"100%",url:(0,n.s)((0,r.lP)(d)),isPlaying:s,timeUpdateCallback:function(t,e){},event:d,source:t.source})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:h,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,w.bo)()},children:(0,k.jsxs)(B.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,k.jsx)(Ti.A,{sx:{boxShadow:3,color:(0,c.KFN)(a),fontSize:.4*l,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,w.bo)()}}),(0,k.jsx)(A.E,{color:"white",fontSize:.05*l+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ni=i(6380);var Li=function(t){var e,i;const o=t.changeSlide,n=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,a=t.isLast,d=t.setLockSwiper,s=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),p=t.progressUpdateCallback,[h,g]=(0,x.A)(),[m]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),f=null===(i=t.showOverlay)||void 0===i||i;function w(){!0!==(0,c.GZ2)((0,u.Xd)("whatmoreShopId"))&&g(!h)}return(0,Fi.MN)()&&0==m?(0,Ni._)()?(0,k.jsx)(Pi,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+n.event_id):(0,k.jsx)(zi,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(0,v.i)(n)||(0,v.I)(n)?(0,k.jsx)(zi,{event:n,onBack:l,isPlaying:r,isLast:a,setLockSwiper:d,onVideoEndedCallback:s,progressUpdateCallback:p,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:f,source:C.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:o},"shopping-video-view"+n.event_id):(console.error("Can't render event which is neither video or image"),(0,k.jsx)("div",{}))},Bi=i(6569),Ai=i.n(Bi),Ri=i(1947),Di=i(7309);function Oi(t){var e;const[i,o]=(0,l.useState)(!1),n=t.onClick,r=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,k.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,k.jsx)(Di.A,{sx:{color:"white",fontSize:r+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),n(t,"up")}}):(0,k.jsx)(Ri.A,{sx:{color:"white",fontSize:r+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),n(t,"down")}})})}var Wi=function(t){var e,i,o;const n=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(o=t.fontSize)&&void 0!==o?o:50,a=t.handleClick;return(0,k.jsx)("div",{style:{position:"relative",zIndex:1,bottom:n,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,k.jsx)(Oi,{type:"left",onClick:a,fontSize:l}),(0,k.jsx)(Oi,{type:"right",onClick:a,fontSize:l})]})})},Mi=i(1637),Hi=i(7939);var Qi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,l.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var Vi=function(t,e){const i=(0,l.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(o){const n=i.current.clientX,r=i.current.clientY;var l=n-o.changedTouches[0].clientX,a=r-o.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var Xi=function(t,e){const i=(0,l.useRef)(Ei()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(o,n){var r=0;if(r="vertical"==t?o.deltaY:o.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(n,l)}]},Ui=i(350);var $i=function(t){const e=t.events,i=t.eventIndex,o=t.onBack;var[n,r,h,v]=(0,p.A)();const[x]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f,w]=(0,l.useState)(!0),[C,y]=(0,u.QN)("isFirstIndicatorRenderDone"),[j,S]=(0,l.useState)(!1),I=(0,l.useRef)({watch_time:0,video_duration:0}),{setCloseClickComponent:_}=(0,l.useContext)(g.p),{slideDirection:E}=(0,l.useContext)(g.p),[z]=(0,u.QN)("whatmoreShopId"),[F]=(0,u.QN)("whatmoreLandingLocationType"),[T,P]=Qi(i,e.length),[N,L]=Vi(E,10),[A]=Xi("vertical",10),[R,D]=(0,l.useState)(!0),[O,W]=(0,l.useState)(null),{whatmoreWidgetSourceDetails:M,whatmoreUserInfo:H}=(0,l.useContext)(b.BR),Q=M.landingLocationType,V=M.templateType,X=Math.round(.05*h);let U=i;const{questionList:$}=(0,l.useContext)(g.p);function Y(){D(!1)}function q(t){Y(),setTimeout(()=>{o(t)},500)}function K(){(0,u.Xd)("whatmoreAllowAutoSlide")&&(P("right"),O.slideNext())}function G(t,e){P(e),function(t,e){O&&("left"===e?O.slidePrev():O.slideNext())}(0,e)}return(0,l.useEffect)(()=>{_(q)},[]),(0,l.useEffect)(()=>{if("horizontal"===E)return;const t=t=>{if("ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;const e=document.activeElement;e&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||e.isContentEditable)||!j&&O&&G(t,"ArrowLeft"===t.key?"left":"right")};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[E,j,O]),(0,k.jsx)(Ai(),{isOpen:R,onRequestClose:Y,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,k.jsx)(Ui.A,{children:(0,k.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,ot.YU)("#000000",13),touchAction:"pan-y",transform:"translateZ(0)",willChange:"transform"},onTouchStart:t=>{N(t)},onTouchEnd:t=>{if(j)return;const e=L(t);e&&G(0,e)},onWheel:t=>{j||A(t,t=>{G(0,t)})},children:[(0,k.jsx)(a.RC,{speed:300,threshold:X,slidesPerView:1,direction:E,modules:[d.s3,d.Jq,d.dK,d.FJ,d.AV],keyboard:{enabled:!0},initialSlide:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!j,allowSlidePrev:!j,allowTouchMove:!1,onSwiper:t=>{W(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products})},onSlideChange:t=>{var i;if(f)return void w(!1);C||y(!0);const o=e.find(t=>t.event_id===I.current.event_id);var n;!o||null!==(i=I.current)&&void 0!==i&&i.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:I.current,widgetSourceDetails:M,event:o,productList:o.products,ctaList:o.cta}),n=e[T().activeIndex],x||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,kt.Wd)(Q)+(0,kt.gf)(V)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,s.increaseViewCount)(n),"index"===F?((0,Hi.sendVideoViewEventToGA)(z,Mi.TB,Mi.Dk),(0,ui.Ch)(n.event_id,n.products,Mi.TB,Mi.Dk,t,null===n||void 0===n?void 0:n.location,null===H||void 0===H?void 0:H.userType)):F.startsWith("product")||"embed"===F?((0,Hi.sendVideoViewEventToGA)(z,Mi.DK,Mi.K1),(0,ui.Ch)(n.event_id,n.products,Mi.DK,Mi.K1,t)):F.startsWith("collection")?((0,Hi.sendVideoViewEventToGA)(z,Mi.Sx,Mi.rz),(0,ui.Ch)(n.event_id,n.products,Mi.Sx,Mi.rz,t)):((0,Hi.sendVideoViewEventToGA)(z,Mi.TB,Mi.Dk),(0,ui.Ch)(n.event_id,n.products,Mi.TB,Mi.Dk,t))})(),(0,rt.registerSwipeEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products})},children:[...Array(Math.min(e.length,3)).keys()].map(o=>(0,k.jsx)(a.qr,{virtualIndex:o,children:({isActive:o,isPrev:n,isNext:r,isVisible:l,isDuplicate:a})=>{const d=o?"activeIndex":n?"prevIndex":"nextIndex",s=T()[d];"activeIndex"==d&&(U=Math.max(U,s),0==s&&(U=0));const u=(null===$||void 0===$?void 0:$.length)>0&&o&&l&&(s>i||U<i&&s>0)&&s>=U&&s%(0,c.uSp)(z)==i%(0,c.uSp)(z);return(0,k.jsx)(B.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,k.jsx)(Li,{event:e[s],showQuestion:u,onBack:q,isPlaying:1==e.length||o&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:K,progressUpdateCallback:t=>{I.current=t},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:G})})}},"event-vertical-scroll-slide-"+o))}),e.length>1&&!j&&(0,c.kb)(z)&&"horizontal"===(0,c.br0)(z)&&"horizontal"===E?(0,k.jsx)(Wi,{relativeBottomPercentage:"50%",width:v,handleClick:(t,e)=>{G(0,"down"==e?"right":"left")},fontSize:parseInt(.12*v)}):(0,k.jsx)(k.Fragment,{})]})})})};i(564),i(5277),i(4548),i(6376),i(2446),i(878),i(621);const Yi=({children:t,customClass:e,show:i,closeCallback:n})=>o.createPortal((0,k.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:i?"block":"none"},children:[(0,k.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:n}),(0,k.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);Yi.defaultProps={children:(0,k.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var qi=Yi;i(1325);var Ki=function(t){var e,[i,o,n,r]=(0,p.A)();const[h]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x,m]=(0,u.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,l.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),[I]=(0,u.QN)("whatmoreLandingLocationType"),_=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:z}=(0,l.useContext)(b.BR),[P,N]=(0,l.useState)(!1),[L,A]=(0,l.useState)(null);function R(){N(!1)}const D=t.events,O=t.eventIndex,W=t.onBack,M=D.concat(D),H=D.length,Q=null===D||void 0===D||null===(e=D[0])||void 0===e?void 0:e.brand,V=(0,l.useRef)(0);function X(t){R(),setTimeout(()=>{W(t)},500)}function U(){L&&!L.isEnd&&(0,u.Xd)("whatmoreAllowAutoSlide")&&L.slideNext()}(0,l.useEffect)(()=>(N(!0),()=>{}),[]),C(X);const $=E.landingLocationType,q=E.templateType,K=(0,l.useRef)({watch_time:0,video_duration:0}),G=parseInt(Math.min(5,D.length)),Z=("90518552861"===S||"63512346790"===S)&&G>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:G>=2;return(0,k.jsx)(qi,{show:P,closeCallback:R,customClass:"whatmore-landscape-modal-swipe-view"+(G<5?" whatmore-nav":""),children:(0,k.jsxs)(B.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,ot.YU)("#000000",13),children:[(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{height:"fit-content",width:r*G,position:("90518552861"===S||"63512346790"===S)&&G>=5?"relative":void 0,style:{"--whatmore-active-edge-offset":(G-1)*r/2+"px"},children:[("90518552861"===S||"63512346790"===S)&&G>=5&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,k.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,k.jsxs)(a.RC,{onInit:t=>{A(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:D[t.activeIndex],productList:D[t.activeIndex].products,ctaList:D[t.activeIndex].cta})},slidesPerView:G,centeredSlides:!0,allowTouchMove:!1,initialSlide:O,modules:[d.s3,d.Jq,d.t9,d.Vx,d.FJ,d.Ij,d.dK],keyboard:{enabled:!0,onlyInViewport:!1},navigation:Z,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*n),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:r*G,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;if(f)return void w(!1);x||m(!0),i=D[t.activeIndex],h||v||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,kt.Wd)($)+(0,kt.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,s.increaseViewCount)(i),"index"===I?((0,Hi.sendVideoViewEventToGA)(S,Mi.TB,Mi.Dk),(0,ui.Ch)(i.event_id,i.products,Mi.TB,Mi.Dk,t,null===i||void 0===i?void 0:i.location,null===z||void 0===z?void 0:z.userType)):I.startsWith("product")||"embed"===I?((0,Hi.sendVideoViewEventToGA)(S,Mi.DK,Mi.K1),(0,ui.Ch)(i.event_id,i.products,Mi.DK,Mi.K1,t)):I.startsWith("collection")?((0,Hi.sendVideoViewEventToGA)(S,Mi.Sx,Mi.rz),(0,ui.Ch)(i.event_id,i.products,Mi.Sx,Mi.rz,t)):((0,Hi.sendVideoViewEventToGA)(S,Mi.TB,Mi.Dk),(0,ui.Ch)(i.event_id,i.products,Mi.TB,Mi.Dk,t))})();const o=D.find(t=>t.event_id===K.current.event_id);!o||null!==(e=K.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:K.current,widgetSourceDetails:E,event:o,productList:o.products,ctaList:o.cta}),(0,rt.registerSwipeEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:D[t.activeIndex],productList:D[t.activeIndex].products,ctaList:D[t.activeIndex].cta})},mousewheel:{invert:!1,thresholdDelta:20},children:[D.length>2&&(0,k.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,k.jsx)(Y,{onCloseCallback:W})}),M.slice(O,D.length+O).map((t,e)=>(0,k.jsx)(a.qr,{children:({isActive:t,isPrev:i,isNext:o,isVisible:l,isDuplicate:a})=>{if(t)return(0,k.jsx)(B.B,{direction:"column",height:n,width:1*r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Li,{event:D[e%H],onBack:X,isPlaying:!0,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showCloseOverlay:(null===D||void 0===D?void 0:D.length)<=2,mode:"landscape"})})});if(o)return(0,k.jsx)(B.B,{direction:"column",height:n,width:r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{L.slideTo(e%H,300)},children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Li,{event:D[e%H],onBack:X,isPlaying:!1,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});if(i&&1===V.current)return(0,k.jsx)(B.B,{direction:"column",height:n,width:r,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{L.slideTo(e%H,300)},children:(0,k.jsx)(T.az,{overflow:"hidden",sx:{borderRadius:"round"==_?"10px":"0px",borderWidth:(0,c.YcK)(S),borderColor:(0,c.Fwt)(S)},children:(0,k.jsx)(Li,{event:D[e%H],onBack:X,isPlaying:!1,isLast:e%H===D.length-1,setLockSwiper:j,widthFactor:1,heightFactor:1,onVideoEndedCallback:U,progressUpdateCallback:t=>{K.current=t},showOverlay:!1,mode:"landscape"})})});try{O+e>=H-1&&(V.current=1)}catch(d){console.log(d)}return(0,k.jsx)(k.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(li,{brandName:Q,height:.04*n,width:.1*r,fontSize:.02*n})})]})})},Gi=i(9943),Zi=i(7515),Ji=i(2211),to=i(426),eo=i(3161);var io=function(t){const[e,i,o,n]=(0,p.A)(),[r]=(0,u.QN)("whatmorePrimaryColor"),[l]=(0,u.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:n,height:o,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,k.jsx)(T.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,k.jsx)(Le.g,{width:"full",ratio:n/o,children:(0,k.jsx)(T.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,k.jsx)(Le.g,{width:"full",ratio:9/16,children:(0,k.jsx)(T.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var oo=function(t){var e;const i=t.stories,o=t.onBack,n=t.onStoryCompleteCallback,r=t.isActive,d=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,h=i.events;var[g,m,f,w]=(0,p.A)();const[y,j]=(0,x.A)(),[S]=(0,u.QN)("isInDesignMode"),[I]=(0,u.QN)("isDemoBrand"),[_]=(0,u.QN)("whatmoreShopId"),[E,z]=(0,l.useState)(!0),[F,T]=(0,u.QN)("isFirstIndicatorRenderDone"),[P,N]=(0,l.useState)(null),[L,A]=(0,l.useState)(!1),{whatmoreWidgetSourceDetails:R,whatmoreUserInfo:D}=(0,l.useContext)(b.BR),[O,W]=Qi(d,h.length);function M(t){o(t)}const H=R.landingLocationType,Q=R.templateType;function V(){if(!(0,u.Xd)("whatmoreAllowAutoSlide"))return;O().activeIndex+1>=h.length?n("right"):(W("right"),P&&P.slideNext())}function X(t){const e=O().activeIndex;"right"==t&&e+1>=h.length||"left"==t&&e-1<0?n(t):(W(t),P&&("left"==t?P.slidePrev():P.slideNext()))}const U=(0,l.useRef)({watch_time:0,video_duration:0});return h[O().activeIndex],(0,k.jsx)("div",{children:(0,k.jsx)(a.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:f,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{N(t)},onSlideChange:t=>{var e;if(E)return void z(!1);F||T(!0);const i=h.find(t=>t.event_id===U.current.event_id);!i||null!==(e=U.current)&&void 0!==e&&e.is_video_ended||(0,rt.videoPlayBackEvent)({userInteractionType:lt.O.VIDEO_PLAYBACK,userInteractionMetadata:U.current,widgetSourceDetails:R,event:i,productList:i.products,ctaList:i.cta}),function(t){const e=(0,kt.Wd)(H)+(0,kt.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);S||I||(async()=>{(0,s.increaseViewCount)(t),(0,Hi.sendVideoViewEventToGA)(_,Mi.TB,Mi.OL),(0,ui.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===D||void 0===D?void 0:D.userType)})()}(h[O().activeIndex]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:R,event:h[O().activeIndex],productList:h[O().activeIndex].products,ctaList:h[O().activeIndex].cta})},children:[...Array(Math.min(h.length,3)).keys()].map(e=>(0,k.jsx)(a.qr,{children:({isActive:e,isPrev:o,isNext:n,isVisible:l,isDuplicate:a})=>{if(r){const n=e?"activeIndex":o?"prevIndex":"nextIndex",a=h[O()[n]];return(0,k.jsx)(B.B,{direction:"column",height:f,justifyContent:"center",children:(0,v.i)(a)||(0,v.I)(a)?(0,k.jsx)(zi,{event:a,totalSiblingEvents:h.length,indexAmongSiblings:O()[n],onBack:M,isPlaying:r&&e&&l,isLast:!1,setLockSwiper:A,onVideoEndedCallback:V,progressUpdateCallback:t=>{U.current=t},leftOpenSpaceClickHandler:()=>{X("left")},midOpenSpaceClickHandler:()=>{!0!==(0,c.GZ2)((0,u.Xd)("whatmoreShopId"))&&j(!y)},rightOpenSpaceClickHandler:()=>{X("right")},storyId:i.id,source:C.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+a.event_id):(0,k.jsx)(k.Fragment,{})})}return(0,k.jsx)(B.B,{direction:"column",height:g,justifyContent:"center",children:(0,k.jsx)(io,{})})}},"event-story-view-slide-"+e))})})};var no=function(t){const e=t.onBack,i=t.eventsStories,o=t.initialStoryIndex,[n]=(0,u.QN)("isInDesignMode"),[r]=(0,u.QN)("isDemoBrand"),[c,p]=(0,l.useState)(!0),{setCloseClickComponent:h}=(0,l.useContext)(g.p),[v]=(0,u.QN)("whatmoreShopId"),[x,m]=Qi(o,i.length),[f,w]=Vi("horizontal",50),[C]=Xi("vertical",30),y=t.eventIndex,[j,S]=(0,l.useState)(!0),[I,_]=(0,l.useState)(null),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:z}=(0,l.useContext)(b.BR);function F(){S(!1)}function T(t){F(),setTimeout(()=>{e(t)},500)}h(T);const P=E.landingLocationType,N=E.templateType;function L(t){I&&(0,u.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?I.slideNext():I.slidePrev())}function A(t,e){L(e)}return(0,k.jsx)(Ai(),{isOpen:j,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,k.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{f(t)},onTouchEnd:t=>{const e=w(t);e&&A(0,e)},onWheel:t=>{C(t,t=>{A(0,t)})},children:(0,k.jsx)(a.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[d.s3,d.Jq,d.hw,d.FJ],keyboard:{enabled:!0},initialSlide:o,loop:i.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,o;_(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:i[x().activeIndex].events[0],productList:null===(e=i[x().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[x().activeIndex].events[0])||void 0===o?void 0:o.cta})},onSlideChange:t=>{var e,o;c?p(!1):(!function(t){const e=(0,kt.Wd)(P)+(0,kt.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);n||r||(async()=>{(0,s.increaseViewCount)(t),(0,Hi.sendVideoViewEventToGA)(v,Mi.TB,Mi.OL),(0,ui.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(i[x().activeIndex].events[0]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:E,event:i[x().activeIndex].events[0],productList:null===(e=i[x().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(o=i[x().activeIndex].events[0])||void 0===o?void 0:o.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map(t=>(0,k.jsx)(a.qr,{children:({isActive:t,isPrev:e,isNext:n,isVisible:r,isDuplicate:l})=>{const a=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,k.jsx)(B.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,k.jsx)(oo,{stories:i[x()[a]],onBack:T,isActive:t&&r,isNext:n,isPrev:e,onStoryCompleteCallback:L,nextStories:i[x().nextIndex],prevStories:i[x().prevIndex],initialEventIndex:o==x()[a]?y:0},"event-story-view-"+i[x()[a]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var ro=function(t){var e,i,o,[n,r,a,d]=(0,p.A)();const[s]=(0,u.QN)("whatmorePrimaryColor"),[c]=(0,u.QN)("whatmoreSecondaryColor"),h=t.event,x=(t.onBack,l.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),g=null!==(i=t.heightFactor)&&void 0!==i?i:1,m="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=g,(0,k.jsx)(F.o,{children:(0,k.jsxs)(T.az,{width:d,height:a,children:[(0,k.jsx)(B.B,{direction:"column",justifyContent:m,height:"full",width:"full",children:(0,k.jsx)(T.az,{children:(0,k.jsx)(Le.g,{width:"full",ratio:9/16,children:x?(0,v.i)(h)||(0,v.I)(h)?(0,k.jsx)(ai.A,{height:"100%",width:"100%",url:h.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:h}):(0,k.jsx)(D._,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,k.jsx)(T.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+s+", gray, "+c+")"})})})}),(0,k.jsx)(B.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:m,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,k.jsx)(T.az,{children:(0,k.jsx)(Le.g,{width:"full",ratio:9/16,children:(0,k.jsx)(T.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var lo=function(t){var e,i,[o,n,r,c]=(0,p.A)();const[h]=(0,u.QN)("isInDesignMode"),[v]=(0,u.QN)("isDemoBrand"),[x,m]=(0,u.QN)("isFirstIndicatorRenderDone"),[f,w]=(0,l.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,l.useContext)(g.p),[y,j]=(0,l.useState)(!1),[S]=(0,u.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:I,whatmoreUserInfo:_}=(0,l.useContext)(b.BR),[E,z]=(0,l.useState)(!1),[P,N]=(0,l.useState)(null);function L(){z(!1)}t.events;const A=t.eventIndex,R=t.onBack,D=t.eventsStories,O=t.initialStoryIndex,W=null===(e=D[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function M(t){L(),setTimeout(()=>{R(t)},500)}(0,l.useEffect)(()=>(z(!0),()=>{}),[]),C(M);const H=I.landingLocationType,Q=I.templateType;function V(t){P&&!P.isEnd&&("right"==t?P.slideNext():P.slidePrev())}const X=parseInt(Math.min(5,D.length));return(0,k.jsx)(qi,{show:E,closeCallback:L,customClass:"whatmore-landscape-modal-stories-view",children:(0,k.jsxs)(B.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,k.jsx)(F.o,{children:(0,k.jsx)(T.az,{height:"fit-content",width:c*X,children:(0,k.jsxs)(a.RC,{onInit:t=>{var e,i;N(t),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:I,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta})},slidesPerView:X,centeredSlides:!0,allowTouchMove:!1,initialSlide:O,modules:[d.s3,d.Jq,d.t9,d.Vx,d.FJ],keyboard:{enabled:!0,onlyInViewport:!1},navigation:X>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*r),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:c*X,watchSlidesProgress:!0,onSlideChange:t=>{var e,i;f?w(!1):(x||m(!0),function(t){const e=(0,kt.Wd)(H)+(0,kt.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||v||(async()=>{(0,s.increaseViewCount)(t),(0,Hi.sendVideoViewEventToGA)(S,Mi.TB,Mi.OL),(0,ui.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===_||void 0===_?void 0:_.userType)})()}(D[t.activeIndex].events[0]),(0,rt.registerClickEvent)({userInteractionType:lt.O.EVENT_VIEW,widgetSourceDetails:I,event:D[t.activeIndex].events[0],productList:null===(e=D[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=D[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[D.length>2&&(0,k.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,k.jsx)(Y,{onCloseCallback:R})}),D.map((t,e)=>(0,k.jsx)(a.qr,{children:({isActive:i,isPrev:o,isNext:n,isVisible:l,isDuplicate:a})=>{if(i){const o=1;return(0,k.jsx)(B.B,{direction:"column",height:r,width:c*o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,k.jsx)(T.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,k.jsx)(oo,{stories:t,onBack:M,isActive:i&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:V,initialEventIndex:O==e?A:0,showCloseOverlay:(null===D||void 0===D?void 0:D.length)<=2},"event-story-view-"+t.id)})})}return o||n?(0,k.jsx)(B.B,{direction:"column",height:r,width:c,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{P.slideTo(e,300)},children:(0,k.jsx)(T.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,k.jsx)(ro,{showPausedVideo:!0,event:D[e].events[0],onBack:M,isPlaying:!1,setLockSwiper:j})})}):(0,k.jsx)(k.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,k.jsx)(F.o,{children:(0,k.jsx)(li,{brandName:W,height:.04*r,width:.1*c,fontSize:.02*r})})]})})};const ao=(0,eo.A)({key:"whatmore-css-sv"});var so=function(t){var e,i,a;const[d,s]=(0,l.useState)(!1),[p,h,v]=(0,ji.A)(),[x]=(0,u.QN)("whatmoreShopId"),{whatmoreRootId:m}=(0,l.useContext)(b.BR),{whatmoreIsStoriesTemplate:f}=(0,l.useContext)(b.BR),{whatmoreCollectionId:w}=(0,l.useContext)(b.BR),{whatmoreIsCollectionsTemplate:C}=(0,l.useContext)(b.BR),[y]=(0,u.QN)("isWhatmorePreviewMode");var j=t.events,S=t.index,I=t.onBack,_=t.eventsStories,E=t.initialStoryIndex,z=(0,c.M3_)(x);(0,l.useEffect)(()=>{if(!I)return;const t=t=>{"Escape"!==t.key&&"Esc"!==t.key||I()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[I]),(0,l.useEffect)(()=>{const t=setTimeout(()=>{s(!0)},100);return()=>clearTimeout(t)},[]);var F="portrait"===p?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:j.length>1?"horizontal":"vertical",T="portrait"===p?!(0,c.kb)(x)&&!f:(0,c.DNc)(x);if((0,l.useLayoutEffect)(()=>{if(!(0,c.hpk)(x))return;let t=!1;window.location.href.includes(z)?history.replaceState(null,"","#"+z):(history.pushState(null,"","#"+z),t=!0);const e=()=>{window.location.href.includes(z)||I()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),window.location.href.includes(z)&&(t?"75310563627"===x&&"529610080555"===w||"35680321669"===x&&C?history.replaceState(null,"",window.location.pathname+window.location.search):history.back():history.replaceState(null,"",window.location.pathname+window.location.search))}},[]),delete Zi.Ay.styles.global,!d&&"portrait"===p){var P,N;const t=f&&_&&null!==E?null===(P=_[E])||void 0===P||null===(N=P.events)||void 0===N?void 0:N[0]:j[S];return(0,o.createPortal)((0,k.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000",zIndex:2147483647},children:(0,k.jsxs)("div",{style:{width:v,height:h,overflow:"hidden",position:"relative"},children:[(0,k.jsx)("img",{src:(0,n.s)(t?(0,r.tQ)(t):void 0),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}),(0,k.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,k.jsx)(Ji.A,{})})]})}),document.body)}return f?(0,k.jsx)(to.C,{value:ao,children:(0,k.jsx)(Gi.s,{theme:Zi.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,k.jsx)(g.p.Provider,{value:{isIOS:(0,Fi.MN)(),totalEvents:j.length,closeClickComponent:I,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:T},children:("portrait"!==p||y)&&(0,c.Rdb)(x)?(0,k.jsx)(lo,{eventsStories:_,initialStoryIndex:E,onBack:I,eventIndex:S}):(0,k.jsx)(no,{eventsStories:_,initialStoryIndex:E,onBack:I,eventIndex:S})})})}):(0,k.jsx)(to.C,{value:ao,children:(0,k.jsx)(Gi.s,{theme:Zi.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,k.jsx)(g.p.Provider,{value:{isIOS:(0,Fi.MN)(),totalEvents:j.length,closeClickComponent:I,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:T,questionList:(0,c.JwJ)(x)?null===(a=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===a?void 0:a.questionList:[]},children:"portrait"===p?(0,k.jsx)($i,{events:j,eventIndex:S,onBack:I}):(0,k.jsx)(Ki,{events:j,eventIndex:S,onBack:I})})})})}}}]);