whatmore-react-assets 1.0.1809 → 1.0.1811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/387.2b62aa44.chunk.js +1 -0
- package/static/js/{688.c6d08e38.chunk.js → 688.332703e9.chunk.js} +3 -3
- package/static/js/{714.4f0aca78.chunk.js → 714.1ee54dc7.chunk.js} +1 -1
- package/static/js/carousel-template-a.0e0c2e57.chunk.js +1 -0
- package/static/js/{carousel-template-f.374be5b9.chunk.js → carousel-template-f.4260a7af.chunk.js} +1 -1
- package/static/js/{collections-template-stories.0bcef775.chunk.js → collections-template-stories.6c2c2b31.chunk.js} +1 -1
- package/static/js/share-shimmer-loader.c890506d.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/387.d1dcb02f.chunk.js +0 -1
- package/static/js/carousel-template-a.71032284.chunk.js +0 -1
- package/static/js/share-shimmer-loader.6f06fc7c.chunk.js +0 -1
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
100% {
|
|
77
77
|
transform: translateY(0%) rotate(0deg);
|
|
78
78
|
}
|
|
79
|
-
`} infinite 1.5s linear`;return(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===d?m:w,children:"vertical"===d?(0,f.jsx)(L.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(B.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{textShadow:"dark-lg",fontSize:g+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===O.m||void 0===O.m||null===(n=O.m[h])||void 0===n?void 0:n.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var R=function(t){const[e,n]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,i.useEffect)(()=>{const t=setTimeout(()=>{n(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,f.jsx)(D,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},W=n(8781),V=n(5144),Q=n(4459);const M="15px";var H=n(1351),X=n(6157),U=n(5551);var Y=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,m]=(0,x.A)(),[w,b]=(0,i.useState)(!1),j=t.product,y=t.event,{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(U.B),k=.1*g,I=.95*m,_=.05*m;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:M,backgroundColor:o,borderRadius:"5px",animation:w?V.jd:null,onAnimationEnd:()=>{b(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{b(!0),function(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[i],ctaList:t.cta})})()}(y,j),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(j)},_hover:{backgroundColor:(0,Q.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},$=n(4892),q=n(8538),K=n(7458),G=n(2159),Z=n(9537),J=n(173),tt=(n(6125),n(4905));function et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2x",boxShadow:"lg",animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.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,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function nt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function it(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ot(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var rt=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){p()}const m=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(it,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(ot,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},lt=n(6305),at=n(2720),dt=n(3755),st=n(7973);var ct=function(t){var e,n,o;const r=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",a=(t.height,t.maxHeight),d=null!==(n=t.baseFontSize)&&void 0!==n?n:10,h=t.onOptionSelected,p=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",x=t.data,[g]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("websiteLanguage"),w=(0,i.useRef)(null),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(0),[I,_]=(0,i.useState)(0);function z(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[E,T]=(0,i.useState)([z(r[0]),z(r[1]),z(r[2])]);return(0,i.useEffect)(()=>{h(E)},[E]),(0,f.jsx)(u.B,{ref:w,direction:"column",width:l,maxHeight:a,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",overflowY:"auto",onTouchStart:t=>{w.current&&(y(!0),k(t.touches[0].clientY),_(w.current.scrollTop))},onTouchMove:t=>{if(!j||!w.current)return;const e=t.touches[0].clientY,n=1.5*(S-e);w.current.scrollTop=I+n,t.preventDefault()},onTouchEnd:()=>{y(!1)},onWheel:t=>{if(!w.current)return;let e=0===t.deltaMode?1:15;w.current.scrollTop+=t.deltaY*e},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px",background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"24px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"},"overflow-y":"scroll !important","-webkit-overflow-scrolling":"touch"},children:r.map((e,n)=>{var i,o,r,l;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.type))return;const a=e.every(e=>{var n,i,o,r,l,a;return(null===t||void 0===t||null===(n=t.finalArr)||void 0===n||null===(i=n.finalArr)||void 0===i||null===(o=i.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===o?void 0:o.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,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(C.E,{as:"b",fontSize:1.2*d+"px",sx:{color:p+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==o?o:e[0].type,"\xa0"]}),(0,f.jsx)(dt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map((e,i)=>{var o,r,l,s,u,h,p,v;return(0==n||(null===x||void 0===x||null===(o=x.variants)||void 0===o?void 0:o.find(t=>t[`option${n}`]==(null===E||void 0===E?void 0:E[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)T([E[0],E[1],t]);else if(1==e){var n,i;T([E[0],t,null===x||void 0===x||null===(n=x.variants)||void 0===n||null===(i=n.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;T([t,null===x||void 0===x||null===(l=x.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===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option===E[n]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===E[n]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===E[n]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:a?"0px":"8px",borderRadius:a?"50%":"0",children:[!a&&(0,f.jsxs)(C.E,{as:e.available?"samp":"s",fontSize:.8*d+"px",sx:{color:e.option===E[n]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(m=e.option,m.length>=3?"0px":.5*d+"px"),children:["\xa0",e.option,"\xa0"]}),a&&(0,f.jsx)(b._,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:a?"50%":"100%"},src:(0,st.b)(null!==(r=null===t||void 0===t||null===(l=t.finalArr)||void 0===l||null===(s=l.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===u?void 0:u.src)&&void 0!==r?r:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(v=p.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]},i);var m})},n)]},n)})})},ut=n(6594),ht=n(4833),pt=n(3161);var vt=function(t){var e,n,o,r,a,d,s,h;const[m]=(0,v.QN)("isInDesignMode"),[w]=(0,v.QN)("isDemoBrand"),[j]=(0,v.QN)("whatmoreSecondaryColor"),y=(0,v.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,v.QN)("whatmorePrimaryFont"),[k]=(0,v.QN)("whatmoreShopId"),[I,_,z,E]=(0,x.A)(),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(t.product),P=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:L}=(0,i.useContext)(U.B),[B,O]=(0,i.useState)(null),[D,R]=(0,i.useState)(parseFloat(N.price)),[W,Y]=(0,i.useState)(parseFloat(N.compare_price)),[G,Z]=(0,i.useState)(null===N||void 0===N?void 0:N.title),[et,nt]=(0,i.useState)(N.currency),[it,ot]=(0,i.useState)(null),lt=t.event,at=t.productClickHandler,{whatmoreIsPreviewMode:dt}=(0,i.useContext)(U.B),[vt,xt]=(0,i.useState)(null),[gt,mt]=(0,i.useState)(!1),[ft,wt]=(0,i.useState)(!1),[Ct,bt,jt,yt,St,kt,It,_t]=t.useAddToCartStatesInstance,zt=t.productCartCounts&&t.productCartCounts[N.product_id]?t.productCartCounts[N.product_id]:Ct.cart_count;if((0,i.useEffect)(()=>{(0,p.w4b)(k)?(0,ut.ck)(N,(0,p.NCy)(k),k).then(t=>{F(t),R(parseFloat(t.price)),Y(parseFloat(t.compare_price)),nt(t.currency),mt(!0)}).catch(t=>{mt(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(N,(0,p.NCy)(k),k);ot(l),R((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Y((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),mt(!0)}catch(l){mt(!0)}})(),!(0,p.E8r)(k)||!("in_stock"in lt)||null!==lt&&void 0!==lt&<.in_stock||jt("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=it?null===it||void 0===it||null===(t=it.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,i=-1!==n?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));xt({position:n,finalArr:i,finalArrExternal:o})},[it]),!gt)return(0,f.jsx)(f.Fragment,{});var Et=.68*E,Tt=.55*Et,At=.4*Et,Nt=Et*(.55-.4),Ft=Et+"px",Pt=At+"px",Lt=Nt+"px",Bt=.12*At;const Ot=(0,p.XQu)(k);function Dt(){window.location.href=function(t){return(0,p.BLb)(k)?t.product_link+"?"+(0,p.VCz)(k)+"&"+(0,p.Spk)(k)+"&"+(0,p.$lz)(k):t.product_link}(N)}const Rt=L.landingLocationType,Wt=L.templateType,Vt=(0,ht.Wd)(Rt)+(0,ht.gf)(Wt)+(null!==lt&&void 0!==lt&<.isRelatedEvent?"R":"E")+"_"+(null===lt||void 0===lt?void 0:lt.event_id),Qt=(0,p.HKH)(k)&&t.activeProductsCount>1&&"init"==Ct.state&&0==Ct.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(k),width:Ft,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{!function(t,e){m||w||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==k?Dt():at(e),A(!0)}(lt,N)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(k)),animation:T?V.jd:V.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(k),borderColor:(0,p.Fwt)(k)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Pt,width:Pt,children:(0,f.jsx)(b._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,st.b)(null!==(e=null!==(n=null===vt||void 0===vt||null===(o=vt.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===vt||void 0===vt||null===(a=vt.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(k)+" !important"}})}),(0,f.jsxs)(c.az,{height:Pt,width:Et-At+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(k),"important"),t.style.setProperty("font-size",1.1*Bt*(0,p.rh$)(k)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",S,"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,q.v)("58396311733"===k?(0,pt.$)(G):G,"prod-tile")}),(0,p.Nzx)(k)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(k)?"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:[gt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.uoB)(k)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,ut.Sb)("70756368633"===k?parseFloat(null===lt||void 0===lt||null===(s=lt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price):null!==D&&void 0!==D?D:null===N||void 0===N?void 0:N.price,"",k,et)," \xa0"]}),(0,K.P)(D,W)&>?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.gld)(k)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,ut.Sb)(null!==W&&void 0!==W?W:null===N||void 0===N?void 0:N.compare_price,"",k,et)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(C.E,{fontSize:.82*Bt*(0,p.rh$)(k)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:S+" !important",color:(0,p.Br1)(k)+" !important"},children:dt?(0,p.p6A)(k):(0,p.i2h)(k)})]}),(0,p.UlM)(k)?(0,f.jsx)(u.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,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:y,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(k)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:j},sx:{bg:j},children:(0,f.jsx)(C.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)($.A,{sx:{color:j,fontSize:1.3*Bt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),"awaitingVariantSelection"==Ct.state&&null!=yt?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*Tt+"px",marginBottom:.1*Tt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Tt*Ot+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{maxHeight:Tt*Ot*.5+"px",width:Ft,height:"fit-content",event:lt,product:N,finalArr:vt,data:it,productVariantOptions:yt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(R(e.price/100),Y(e.compare_price/100),e.title.includes(" ")&&Z(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,f.jsx)(rt,{baseFontSize:Qt?.2*Nt:.3*Nt,setProductVariantTitle:Z,product:N,cartState:Ct.state,cartCount:zt,updateCartState:jt,onClickAtc:t=>{"init"==Ct.state?(St(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:[N],ctaList:lt.cta})):"awaitingVariantSelection"==Ct.state&&(kt(B,Vt),Z(null===N||void 0===N?void 0:N.title))},onCartIconClick:()=>{_t()}})}),Qt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Nt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(tt.$,{disabled:ft,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${S} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{wt(!0),bt(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:lt.products,ctaList:lt.cta}),wt(!1)}catch(e){console.error("Failed to add items:",e),wt(!1)}},children:ft?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Nt*2.5+"px"}})}):(0,f.jsx)(C.E,{fontFamily:S,children:"ADD ALL ITEMS"})})})]})]})},xt=n(2835),gt=n(8397);var mt=function(t){var e,n,i,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[g]=(0,v.QN)("whatmoreShopId"),[m]=(0,v.QN)("websiteLanguage"),w=t.event,b=t.product,j=null!==(e=t.baseFontSize)&&void 0!==e?e:10,y=null!==(n=t.width)&&void 0!==n?n:"fit-content",S=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,f.jsx)(gt.N,{href:b.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,b)},children:(0,f.jsx)(c.az,{width:y,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.4*j,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(g)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)($.A,{sx:{color:h,fontSize:1.4*j}})})]})})})},ft=n(9408);function wt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d]=(0,v.QN)("websiteLanguage"),[s,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height,b=t.title;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:s?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*x+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==b&&null!==(n=null===O.m||void 0===O.m||null===(o=O.m[d])||void 0===o?void 0:o.shop_now)&&void 0!==n?n:b,"\xa0"]})})})}var Ct=function(t){var e,n,i;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,f.jsx)(wt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var bt=function(t){var e,n,o,r,a;const[d]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(null),[F,P,L,B,O,D,R,W]=t.useAddToCartStatesInstance,[Q,Y]=(0,i.useState)(parseFloat(z.price)),[$,G]=(0,i.useState)(parseFloat(z.compare_price)),[Z,J]=(0,i.useState)(z.currency),[tt,et]=(0,i.useState)(!1),nt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:F.cart_count,it=t.event,ot=t.productClickHandler,lt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,at=T.landingLocationType,dt=T.templateType,st=(0,ht.Wd)(at)+(0,ht.gf)(dt)+(null!==it&&void 0!==it&&it.isRelatedEvent?"R":"E")+"_"+(null===it||void 0===it?void 0:it.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),J(t.currency)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),G((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})()},[]);var pt=k*lt,vt=.3*pt,gt=pt+"px",wt=.7*vt,bt=.9*wt,jt=.12*vt;const yt=(0,p.XQu)(w);function St(t,e){d||h||(async()=>{(0,l.Pb)(t,e)})(),ot(e),_(!0)}return(0,f.jsx)(u.B,{direction:"row",width:gt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:M,marginBottom:(0,p.qw1)(w),width:gt,onClick:t=>{},animation:I?V.jd:null,borderRadius:"lg",onAnimationEnd:()=>{_(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{St(it,z)},children:[(0,f.jsx)(c.az,{height:wt+"px",width:wt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:bt+"px",width:bt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(b._,{width:bt+"px",height:bt+"px",src:z.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:wt+"px",width:pt-wt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*jt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:m+" !important",color:"white !important"},children:(0,q.v)(z.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[tt&&(0,f.jsx)(C.E,{noOfLines:1,fontSize:1*jt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"white !important"},children:" "+(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(n=it.products)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,Z)}),(0,f.jsx)(s.o,{children:(0,K.P)(z.price,z.compare_price)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.8*jt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(r=it.products)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.compare_price):null!==$&&void 0!==$?$:null===z||void 0===z?void 0:z.compare_price,"",w,Z)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(xt.A,{storeId:w,productId:z.client_product_id,productLink:z.product_link,fontSize:1*jt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==F.state&&null!=B?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*vt+"px",marginBottom:.1*vt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:vt*yt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{width:gt,height:"fit-content",event:it,product:z,productVariantOptions:B,baseFontSize:1*jt,onOptionSelected:t=>{!function(t){N(t);const e=R(t);e&&(Y(e.price/100),G(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(mt,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(w)?(0,f.jsx)(Ct,{baseFontSize:.8*jt,event:it,product:z,borderRadius:"md",onShopNowClick:t=>{St(it,z)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(w)?(0,f.jsx)(ft.default,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(rt,{baseFontSize:.8*jt,event:it,product:z,cartState:F.state,cartCount:nt,borderRadius:"md",onClickAtc:t=>{"init"==F.state?(O(st),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:T,event:it,productList:[z],ctaList:it.cta})):"awaitingVariantSelection"==F.state&&D(A,st)},onCartIconClick:()=>{W()}})})})]})]})})})};var jt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),r=(0,v.Xd)("whatmoreSecondaryColorShade900"),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s,h,m,w]=(0,x.A)(),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(t.product),I=(0,v.Xd)("whatmoreUITheme"),[_,z]=(0,i.useState)(!1),[E,T]=(0,i.useState)(parseFloat(S.price)),[A,N]=(0,i.useState)(parseFloat(S.compare_price)),[P,L]=(0,i.useState)(S.currency),[B,O]=(0,i.useState)(!0),D=t.event,[R,W]=(0,i.useState)();if((0,i.useEffect)(()=>{if("6573064236"===d&&null!==S&&void 0!==S&&S.product_link){const t=parseFloat(S.price);return N(t),S.product_link.includes("flo-ergo-memory-foam-mattress")?T(.6*t):S.product_link.includes("flo-latex-mattress")?T(.58*t):S.product_link.includes("flo-orthopedic-mattress")?T(.56*t):T(t),void z(!0)}(0,p.w4b)(d)?(0,ut.ck)(S,(0,p.NCy)(d),d).then(t=>{k(t),T(parseFloat(t.price)),N(parseFloat(t.compare_price)),L(t.currency),z(!0)}).catch(t=>z(!0)):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(S,(0,p.NCy)(d),d);W(l),T((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),N((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),z(!0)}catch(l){z(!0)}})()},[]),!_)return(0,f.jsx)(f.Fragment,{});var Y=.68*w,G=.4*Y,Z=Y+"px",J=G+"px",tt=Y*(.55-.4)+"px",et=.12*G;(0,p.XQu)(d);const{whatmoreWidgetSourceDetails:nt}=(0,i.useContext)(U.B);function it(t){return(0,p.BLb)(d)?t.product_link+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d):t.product_link}function ot(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:nt,event:t,productList:[i],ctaList:t.cta})})(),y(!0)}return B?(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(d),width:Z,height:"fit-content",boxShadow:"round"==I?"dark-lg":null,onClick:()=>{ot(D,S),window.location.href=it(S)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(d)),animation:j?V.jd:V.so,borderRadius:"round"==I?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(d),borderColor:(0,p.Fwt)(d)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:J,width:J,children:(0,f.jsx)(b._,{width:J,height:J,src:(0,st.b)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(d)+" !important"}})}),(0,f.jsxs)(c.az,{height:J,width:Y-G+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(d)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(C.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:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*et+"px !important"},children:(0,q.v)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,p.Nzx)(d)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(d)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==I?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*et+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.uoB)(d)+" !important",margin:"0px !important"},children:[" "+(0,ut.Sb)(null!==E&&void 0!==E?E:null===S||void 0===S?void 0:S.price,"",d,P)," \xa0"]}),(0,K.P)(E,A)&&_?(0,f.jsxs)(C.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*et+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.gld)(d)+" !important",margin:"0px !important"},children:[" ",(0,ut.Sb)(null!==A&&void 0!==A?A:null===S||void 0===S?void 0:S.compare_price,"",d,P)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(d)&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*et+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(d)+" !important",color:(0,p._zx)(d)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(d)," \xa0"]})]}),(0,p.UlM)(d)?(0,f.jsx)(u.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,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==I?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==d||"STRNUBH0VYQ"==d||"STRAPB3KXSR"==d?(0,f.jsx)(F.A,{sx:{boxShadow:3,fontSize:1.3*et,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),O(!1)}}):(0,f.jsx)($.A,{sx:{color:o,fontSize:1.3*et+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(d)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:tt,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Ct,{baseFontSize:.8*et,event:D,product:S,borderRadius:"md",onShopNowClick:t=>{ot(D,S),window.location.href=it(S)}})})]}):(0,f.jsx)(f.Fragment,{})};function yt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,i.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(St,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?V.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:m?(0,Q.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function St(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,i.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?V.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${n} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function kt(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.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,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.2*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function It(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.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,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}}):(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var _t=function(t){var e,n,i,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",m=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(kt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==u?(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,f.jsx)(It,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:g,height:m,onCartIconClick:p}):(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,f.jsx)(yt,{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 zt=function(t){var e,n,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(U.B),[N,F]=(0,i.useState)(null),[P,L]=(0,i.useState)(parseFloat(z.price)),[B,O]=(0,i.useState)(parseFloat(z.compare_price)),[D,R]=(0,i.useState)(z.currency),[W,Y]=(0,i.useState)(null),$=t.event,G=t.productClickHandler,[Z,J]=(0,i.useState)(null),[tt,et]=(0,i.useState)(!1),[nt,it,ot,rt,lt,at,dt,ct]=t.useAddToCartStatesInstance,pt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:nt.cart_count,vt=A.landingLocationType,xt=A.templateType,gt=(0,ht.Wd)(vt)+(0,ht.gf)(xt)+"_"+(null===$||void 0===$?void 0:$.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),R(t.currency),et(!0)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y(l),L((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})(),!(0,p.E8r)(w)||null!==$&&void 0!==$&&$.in_stock||ot("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=W?null===W||void 0===W||null===(t=W.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,i=-1!==n?null===W||void 0===W||null===(e=W.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===W||void 0===W||null===(r=W.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:n,finalArr:i,finalArrExternal:o})},[W]);var mt=.72*k,ft=.37*mt,wt=mt*(.48-.37),Ct=.95*mt+"px",bt=ft+"px",jt=.12*ft;function yt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:"24px",width:Ct,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?yt():G(e),_(!0)}($,z)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(w)),animation:I?V.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:bt,width:bt,children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:(0,st.b)(null!==(e=null!==(n=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===Z||void 0===Z||null===(a=Z.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:bt,width:mt-ft+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",jt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",m,"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,q.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*jt+"px"},children:[tt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:m+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,ut.Sb)(null!==P&&void 0!==P?P:null===z||void 0===z?void 0:z.price,"",w,D)," \xa0"]}),(0,K.P)(P,B)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)(null!==B&&void 0!==B?B:null===z||void 0===z?void 0:z.compare_price,"",w,D)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(_t,{baseFontSize:.3*wt,event:$,product:z,cartState:nt.state,cartCount:pt,updateCartState:ot,onClickAtc:t=>{"init"===nt.state?(lt(gt,!0),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:$,productList:[z],ctaList:$.cta})):"awaitingVariantSelection"===nt.state&&G(z)},onCartIconClick:t=>{ct()}})]})})]})})};function Et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon,j="12px";return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2px",boxShadow:"lg",borderRadius:j,animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",backgroundColor:"white",borderRadius:j,onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",borderRadius:j,onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Tt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),borderRadius:"7px",onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"10px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.2*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function At(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Nt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){p()}const m=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(At,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(Nt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(Et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})};var Pt=function(t){var e;const[n]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s,c,u]=(0,x.A)(),[h,m]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(U.B),[C,b]=(0,i.useState)(null),[j,y]=(0,i.useState)(parseFloat(h.price)),[S,k]=(0,i.useState)(parseFloat(h.compare_price)),[I,_]=(0,i.useState)(null===h||void 0===h?void 0:h.title),[z,E]=(0,i.useState)(h.currency),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(!1),[P]=(0,v.QN)("whatmoreSecondaryColor"),[L,B,O,D,R,W,V,Q]=t.useAddToCartStatesInstance,M=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:L.cart_count,Y=t.event,$=t.productClickHandler;if((0,i.useEffect)(()=>{(0,p.w4b)(a)?(0,ut.ck)(h,(0,p.NCy)(a),a).then(t=>{m(t),y(parseFloat(t.price)),k(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(h,(0,p.NCy)(a),a);y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),k((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),A(!0)}catch(l){A(!0)}})()},[]),!T)return(0,f.jsx)(f.Fragment,{});const G=.765*u,Z=(null===Y||void 0===Y||null===(e=Y.products)||void 0===e?void 0:e.length)>1?.85*G:G,J=.198*Z,tt=.0315*u,et=1.05*tt,nt=Number((0,p.rh$)(a)),it=.85*tt*(isNaN(nt)||0===nt?1:nt),ot=.75*tt,rt=(0,p.XQu)(a),lt=(()=>{if((0,K.P)(j,S)){const t=(S-j)/S*100;return Math.round(t)}return null})(),at=P,dt=(pt=at,vt=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${vt})`);var pt,vt;function xt(){window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(h)}function gt(t,e){n||o||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==a?xt():$(e)}const mt=w.landingLocationType,ft=w.templateType,wt=(0,ht.Wd)(mt)+(0,ht.gf)(ft)+(null!==Y&&void 0!==Y&&Y.isRelatedEvent?"R":"E")+"_"+(null===Y||void 0===Y?void 0:Y.event_id);return(0,f.jsx)("div",{style:{width:Z+"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:N?"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"===a)return console.log("product.product_link : ",h.product_link),void(window.location.href=h.product_link);gt(Y,h)},onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,f.jsx)("div",{style:{width:J+"px",height:J+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,f.jsx)("img",{src:(0,st.b)(h.thumbnail_image),alt:h.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,f.jsxs)("div",{style:{flex:1},children:[(0,f.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*et+"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,q.v)(I,"prod-tile")}),(0,p.Nzx)(a)&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*it+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,ut.Sb)(null!==j&&void 0!==j?j:null===h||void 0===h?void 0:h.price,"",a,z)}),(0,K.P)(j,S)&&T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:it+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,ut.Sb)(null!==S&&void 0!==S?S:null===h||void 0===h?void 0:h.compare_price,"",a,z)}),lt&&(0,p.mOK)(a)&&(0,f.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*it+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[lt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==L.state&&null!=D&&(0,f.jsx)("div",{style:{width:"100%",maxHeight:.3*Z*rt+"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,f.jsx)(ct,{width:"100%",height:"fit-content",event:Y,product:h,productVariantOptions:D,baseFontSize:.9*tt,onOptionSelected:t=>{!function(t){b(t);const e=V(t);e&&(y(e.price/100),k(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,f.jsx)("div",{style:{width:"100%"},children:(0,f.jsx)(Ft,{baseFontSize:1.1*ot,setProductVariantTitle:_,product:h,cartState:L.state,cartCount:M,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==a?"init"==L.state?(R(wt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:Y,productList:[h],ctaList:Y.cta})):"awaitingVariantSelection"==L.state&&(W(C,wt),_(null===h||void 0===h?void 0:h.title)):gt(Y,h)},onCartIconClick:()=>{Q()}})})]})})};var Lt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[n]=(0,v.QN)("isWhatmoreWebsite"),o=(0,p.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...c]=(0,lt.A)(0,l,t.event),u=[s,...c];return(0,i.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(l.product_id,t)},[s.cart_count]),n?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile"==o?(0,f.jsx)(vt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile-no-cta"==o?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,f.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"link_only"==o?(0,f.jsx)(Y,{product:t.product,event:t.event}):"narrow-tile"==o?(0,f.jsx)(bt,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):(0,f.jsx)(f.Fragment,{})},Bt=n(1079),Ot=n(7802),Dt=n(2979);var Rt=function(t){var e,n,i;const[l,a,d,h]=(0,x.A)(),[g]=(0,v.QN)("whatmoreShopId"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),C=t.event,b=t.productClickHandler,j=t.productCartCounts,y=t.onCartCountChange,S=(0,p.Vpi)(g),k=null!==(e=null===(n=C.products)||void 0===n||null===(i=n.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===i?void 0:i.length)&&void 0!==e?e:0;if(!(0,Ot.Z_)(C))return(0,f.jsx)(f.Fragment,{});if(1==C.products.length&&(void 0==C.cta||0==C.cta.length)){const t=C.products[0];return(0,p.uJl)(g)?(0,f.jsx)(u.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,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(bt,{event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==S?"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,f.jsx)(s.o,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(Lt,{activeProductsCount:1,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==S?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==C.products.length?1:1.4,initialSlide:0,centeredSlides:!(0,p.TYM)(g),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===g?[C.products[0]]:C.products).map(t=>("oos"!=t.product_status||(0,p.$7F)(g))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Lt,{activeProductsCount:k,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})},C.event_id+t.product_id)),(0,p.Woi)(g)&&void 0!=C.cta&&C.cta.map(t=>{var e;return(0,f.jsx)(f.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Bt.A,{fontFactor:.75,cta:t},C.event_id+t.cta_id)})},C.event_id+t.cta_id)})})]})})})})};var Wt=function(t){const[e,n]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange;return(0,i.useContext)(Pn).isIOS,(0,f.jsx)(Rt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a},o.event_id)},Vt=n(6670);function Qt(t){const e=t.event,[n,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(C.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(N.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Mt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,Vt.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),g=t.event,m=t.isLast,w=t.onCloseCallback,C=t.focusRef,b=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Qt,{event:g}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(j.A,{focusRef:C}),(0,f.jsx)(P,{event:g,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!m})})}):null,void 0!=g.products&&g.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:g,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:g,productClickHandler:b})})]}):(0,f.jsx)("div",{})]})]})})};function Ht(t){const[e,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(""),h=t.data,g=(t.event,t.product,t.setShowOptionsChart);var m=.4*r*.8*.13;(0,i.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,n,i,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const w=`${k.i7`
|
|
79
|
+
`} infinite 1.5s linear`;return(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===d?m:w,children:"vertical"===d?(0,f.jsx)(L.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(B.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{textShadow:"dark-lg",fontSize:g+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===O.m||void 0===O.m||null===(n=O.m[h])||void 0===n?void 0:n.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var R=function(t){const[e,n]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,i.useEffect)(()=>{const t=setTimeout(()=>{n(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,f.jsx)(D,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},W=n(8781),V=n(5144),Q=n(4459);const M="15px";var H=n(1351),X=n(6157),U=n(5551);var Y=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,m]=(0,x.A)(),[w,b]=(0,i.useState)(!1),j=t.product,y=t.event,{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(U.B),k=.1*g,I=.95*m,_=.05*m;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:M,backgroundColor:o,borderRadius:"5px",animation:w?V.jd:null,onAnimationEnd:()=>{b(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{b(!0),function(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[i],ctaList:t.cta})})()}(y,j),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(j)},_hover:{backgroundColor:(0,Q.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},$=n(4892),q=n(8538),K=n(7458),G=n(2159),Z=n(9537),J=n(173),tt=(n(6125),n(4905));function et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2x",boxShadow:"lg",animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.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,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function nt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function it(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ot(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var rt=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){p()}const m=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(it,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(ot,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},lt=n(6305),at=n(2720),dt=n(3755),st=n(7973);var ct=function(t){var e,n,o;const r=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",a=(t.height,t.maxHeight),d=null!==(n=t.baseFontSize)&&void 0!==n?n:10,h=t.onOptionSelected,p=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",x=t.data,[g]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("websiteLanguage"),w=(0,i.useRef)(null),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(0),[I,_]=(0,i.useState)(0);function z(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[E,T]=(0,i.useState)([z(r[0]),z(r[1]),z(r[2])]);return(0,i.useEffect)(()=>{h(E)},[E]),(0,f.jsx)(u.B,{ref:w,direction:"column",width:l,maxHeight:a,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",overflowY:"auto",onTouchStart:t=>{w.current&&(y(!0),k(t.touches[0].clientY),_(w.current.scrollTop))},onTouchMove:t=>{if(!j||!w.current)return;const e=t.touches[0].clientY,n=1.5*(S-e);w.current.scrollTop=I+n,t.preventDefault()},onTouchEnd:()=>{y(!1)},onWheel:t=>{if(!w.current)return;let e=0===t.deltaMode?1:15;w.current.scrollTop+=t.deltaY*e},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px",background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"24px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"},"overflow-y":"scroll !important","-webkit-overflow-scrolling":"touch"},children:r.map((e,n)=>{var i,o,r,l;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.type))return;const a=e.every(e=>{var n,i,o,r,l,a;return(null===t||void 0===t||null===(n=t.finalArr)||void 0===n||null===(i=n.finalArr)||void 0===i||null===(o=i.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===o?void 0:o.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,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(C.E,{as:"b",fontSize:1.2*d+"px",sx:{color:p+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==o?o:e[0].type,"\xa0"]}),(0,f.jsx)(dt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map((e,i)=>{var o,r,l,s,u,h,p,v;return(0==n||(null===x||void 0===x||null===(o=x.variants)||void 0===o?void 0:o.find(t=>t[`option${n}`]==(null===E||void 0===E?void 0:E[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)T([E[0],E[1],t]);else if(1==e){var n,i;T([E[0],t,null===x||void 0===x||null===(n=x.variants)||void 0===n||null===(i=n.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;T([t,null===x||void 0===x||null===(l=x.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===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option===E[n]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===E[n]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===E[n]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:a?"0px":"8px",borderRadius:a?"50%":"0",children:[!a&&(0,f.jsxs)(C.E,{as:e.available?"samp":"s",fontSize:.8*d+"px",sx:{color:e.option===E[n]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(m=e.option,m.length>=3?"0px":.5*d+"px"),children:["\xa0",e.option,"\xa0"]}),a&&(0,f.jsx)(b._,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:a?"50%":"100%"},src:(0,st.b)(null!==(r=null===t||void 0===t||null===(l=t.finalArr)||void 0===l||null===(s=l.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===u?void 0:u.src)&&void 0!==r?r:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(v=p.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]},i);var m})},n)]},n)})})},ut=n(6594),ht=n(4833),pt=n(3161);var vt=function(t){var e,n,o,r,a,d,s,h;const[m]=(0,v.QN)("isInDesignMode"),[w]=(0,v.QN)("isDemoBrand"),[j]=(0,v.QN)("whatmoreSecondaryColor"),y=(0,v.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,v.QN)("whatmorePrimaryFont"),[k]=(0,v.QN)("whatmoreShopId"),[I,_,z,E]=(0,x.A)(),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(t.product),P=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:L}=(0,i.useContext)(U.B),[B,O]=(0,i.useState)(null),[D,R]=(0,i.useState)(parseFloat(N.price)),[W,Y]=(0,i.useState)(parseFloat(N.compare_price)),[G,Z]=(0,i.useState)(null===N||void 0===N?void 0:N.title),[et,nt]=(0,i.useState)(N.currency),[it,ot]=(0,i.useState)(null),lt=t.event,at=t.productClickHandler,{whatmoreIsPreviewMode:dt}=(0,i.useContext)(U.B),[vt,xt]=(0,i.useState)(null),[gt,mt]=(0,i.useState)(!1),[ft,wt]=(0,i.useState)(!1),[Ct,bt,jt,yt,St,kt,It,_t]=t.useAddToCartStatesInstance,zt=t.productCartCounts&&t.productCartCounts[N.product_id]?t.productCartCounts[N.product_id]:Ct.cart_count;if((0,i.useEffect)(()=>{(0,p.w4b)(k)?(0,ut.ck)(N,(0,p.NCy)(k),k).then(t=>{F(t),R(parseFloat(t.price)),Y(parseFloat(t.compare_price)),nt(t.currency),mt(!0)}).catch(t=>{mt(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(N,(0,p.NCy)(k),k);ot(l),R((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Y((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),mt(!0)}catch(l){mt(!0)}})(),!(0,p.E8r)(k)||!("in_stock"in lt)||null!==lt&&void 0!==lt&<.in_stock||jt("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=it?null===it||void 0===it||null===(t=it.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,i=-1!==n?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));xt({position:n,finalArr:i,finalArrExternal:o})},[it]),!gt)return(0,f.jsx)(f.Fragment,{});var Et=.68*E,Tt=.55*Et,At=.4*Et,Nt=Et*(.55-.4),Ft=Et+"px",Pt=At+"px",Lt=Nt+"px",Bt=.12*At;const Ot=(0,p.XQu)(k);function Dt(){window.location.href=function(t){return(0,p.BLb)(k)?t.product_link+"?"+(0,p.VCz)(k)+"&"+(0,p.Spk)(k)+"&"+(0,p.$lz)(k):t.product_link}(N)}const Rt=L.landingLocationType,Wt=L.templateType,Vt=(0,ht.Wd)(Rt)+(0,ht.gf)(Wt)+(null!==lt&&void 0!==lt&<.isRelatedEvent?"R":"E")+"_"+(null===lt||void 0===lt?void 0:lt.event_id),Qt=(0,p.HKH)(k)&&t.activeProductsCount>1&&"init"==Ct.state&&0==Ct.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(k),width:Ft,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{!function(t,e){m||w||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==k?Dt():at(e),A(!0)}(lt,N)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(k)),animation:T?V.jd:V.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(k),borderColor:(0,p.Fwt)(k)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Pt,width:Pt,children:(0,f.jsx)(b._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,st.b)(null!==(e=null!==(n=null===vt||void 0===vt||null===(o=vt.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===vt||void 0===vt||null===(a=vt.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(k)+" !important"}})}),(0,f.jsxs)(c.az,{height:Pt,width:Et-At+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(k),"important"),t.style.setProperty("font-size",1.1*Bt*(0,p.rh$)(k)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",S,"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,q.v)("58396311733"===k?(0,pt.$)(G):G,"prod-tile")}),(0,p.Nzx)(k)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(k)?"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:[gt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.uoB)(k)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,ut.Sb)("70756368633"===k?parseFloat(null===lt||void 0===lt||null===(s=lt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price):null!==D&&void 0!==D?D:null===N||void 0===N?void 0:N.price,"",k,et)," \xa0"]}),(0,K.P)(D,W)&>?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.gld)(k)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,ut.Sb)(null!==W&&void 0!==W?W:null===N||void 0===N?void 0:N.compare_price,"",k,et)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(C.E,{fontSize:.82*Bt*(0,p.rh$)(k)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:S+" !important",color:(0,p.Br1)(k)+" !important"},children:dt?(0,p.p6A)(k):(0,p.i2h)(k)})]}),(0,p.UlM)(k)?(0,f.jsx)(u.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,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:y,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(k)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:j},sx:{bg:j},children:(0,f.jsx)(C.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)($.A,{sx:{color:j,fontSize:1.3*Bt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),"awaitingVariantSelection"==Ct.state&&null!=yt?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*Tt+"px",marginBottom:.1*Tt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Tt*Ot+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{maxHeight:Tt*Ot*.5+"px",width:Ft,height:"fit-content",event:lt,product:N,finalArr:vt,data:it,productVariantOptions:yt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(R(e.price/100),Y(e.compare_price/100),e.title.includes(" ")&&Z(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,f.jsx)(rt,{baseFontSize:Qt?.2*Nt:.3*Nt,setProductVariantTitle:Z,product:N,cartState:Ct.state,cartCount:zt,updateCartState:jt,onClickAtc:t=>{"init"==Ct.state?(St(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:[N],ctaList:lt.cta})):"awaitingVariantSelection"==Ct.state&&(kt(B,Vt),Z(null===N||void 0===N?void 0:N.title))},onCartIconClick:()=>{_t()}})}),Qt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Nt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(tt.$,{disabled:ft,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${S} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{wt(!0),bt(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:lt.products,ctaList:lt.cta}),wt(!1)}catch(e){console.error("Failed to add items:",e),wt(!1)}},children:ft?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Nt*2.5+"px"}})}):(0,f.jsx)(C.E,{fontFamily:S,children:"ADD ALL ITEMS"})})})]})]})},xt=n(2835),gt=n(8397);var mt=function(t){var e,n,i,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[g]=(0,v.QN)("whatmoreShopId"),[m]=(0,v.QN)("websiteLanguage"),w=t.event,b=t.product,j=null!==(e=t.baseFontSize)&&void 0!==e?e:10,y=null!==(n=t.width)&&void 0!==n?n:"fit-content",S=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,f.jsx)(gt.N,{href:b.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,b)},children:(0,f.jsx)(c.az,{width:y,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.4*j,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(g)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)($.A,{sx:{color:h,fontSize:1.4*j}})})]})})})},ft=n(9408);function wt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d]=(0,v.QN)("websiteLanguage"),[s,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height,b=t.title;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:s?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*x+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==b&&null!==(n=null===O.m||void 0===O.m||null===(o=O.m[d])||void 0===o?void 0:o.shop_now)&&void 0!==n?n:b,"\xa0"]})})})}var Ct=function(t){var e,n,i;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,f.jsx)(wt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var bt=function(t){var e,n,o,r,a;const[d]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(null),[F,P,L,B,O,D,R,W]=t.useAddToCartStatesInstance,[Q,Y]=(0,i.useState)(parseFloat(z.price)),[$,G]=(0,i.useState)(parseFloat(z.compare_price)),[Z,J]=(0,i.useState)(z.currency),[tt,et]=(0,i.useState)(!1),nt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:F.cart_count,it=t.event,ot=t.productClickHandler,lt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,at=T.landingLocationType,dt=T.templateType,st=(0,ht.Wd)(at)+(0,ht.gf)(dt)+(null!==it&&void 0!==it&&it.isRelatedEvent?"R":"E")+"_"+(null===it||void 0===it?void 0:it.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),J(t.currency)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),G((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})()},[]);var pt=k*lt,vt=.3*pt,gt=pt+"px",wt=.7*vt,bt=.9*wt,jt=.12*vt;const yt=(0,p.XQu)(w);function St(t,e){d||h||(async()=>{(0,l.Pb)(t,e)})(),ot(e),_(!0)}return(0,f.jsx)(u.B,{direction:"row",width:gt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:M,marginBottom:(0,p.qw1)(w),width:gt,onClick:t=>{},animation:I?V.jd:null,borderRadius:"lg",onAnimationEnd:()=>{_(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{St(it,z)},children:[(0,f.jsx)(c.az,{height:wt+"px",width:wt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:bt+"px",width:bt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(b._,{width:bt+"px",height:bt+"px",src:z.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:wt+"px",width:pt-wt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*jt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:m+" !important",color:"white !important"},children:(0,q.v)(z.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[tt&&(0,f.jsx)(C.E,{noOfLines:1,fontSize:1*jt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"white !important"},children:" "+(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(n=it.products)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,Z)}),(0,f.jsx)(s.o,{children:(0,K.P)(z.price,z.compare_price)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.8*jt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(r=it.products)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.compare_price):null!==$&&void 0!==$?$:null===z||void 0===z?void 0:z.compare_price,"",w,Z)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(xt.A,{storeId:w,productId:z.client_product_id,productLink:z.product_link,fontSize:1*jt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==F.state&&null!=B?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*vt+"px",marginBottom:.1*vt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:vt*yt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{width:gt,height:"fit-content",event:it,product:z,productVariantOptions:B,baseFontSize:1*jt,onOptionSelected:t=>{!function(t){N(t);const e=R(t);e&&(Y(e.price/100),G(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(mt,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(w)?(0,f.jsx)(Ct,{baseFontSize:.8*jt,event:it,product:z,borderRadius:"md",onShopNowClick:t=>{St(it,z)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(w)?(0,f.jsx)(ft.default,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(rt,{baseFontSize:.8*jt,event:it,product:z,cartState:F.state,cartCount:nt,borderRadius:"md",onClickAtc:t=>{"init"==F.state?(O(st),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:T,event:it,productList:[z],ctaList:it.cta})):"awaitingVariantSelection"==F.state&&D(A,st)},onCartIconClick:()=>{W()}})})})]})]})})})};var jt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),r=(0,v.Xd)("whatmoreSecondaryColorShade900"),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s,h,m,w]=(0,x.A)(),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(t.product),I=(0,v.Xd)("whatmoreUITheme"),[_,z]=(0,i.useState)(!1),[E,T]=(0,i.useState)(parseFloat(S.price)),[A,N]=(0,i.useState)(parseFloat(S.compare_price)),[P,L]=(0,i.useState)(S.currency),[B,O]=(0,i.useState)(!0),D=t.event,[R,W]=(0,i.useState)();if((0,i.useEffect)(()=>{if("6573064236"===d&&null!==S&&void 0!==S&&S.product_link){const t=Math.ceil(parseFloat(S.price)),e=Math.ceil(parseFloat(S.compare_price));return T(t),N(e),void z(!0)}(0,p.w4b)(d)?(0,ut.ck)(S,(0,p.NCy)(d),d).then(t=>{k(t),T(parseFloat(t.price)),N(parseFloat(t.compare_price)),L(t.currency),z(!0)}).catch(t=>z(!0)):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(S,(0,p.NCy)(d),d);W(l),T((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),N((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),z(!0)}catch(l){z(!0)}})()},[]),!_)return(0,f.jsx)(f.Fragment,{});var Y=.68*w,G=.4*Y,Z=Y+"px",J=G+"px",tt=Y*(.55-.4)+"px",et=.12*G;(0,p.XQu)(d);const{whatmoreWidgetSourceDetails:nt}=(0,i.useContext)(U.B);function it(t){return(0,p.BLb)(d)?t.product_link+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d):t.product_link}function ot(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:nt,event:t,productList:[i],ctaList:t.cta})})(),y(!0)}return B?(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(d),width:Z,height:"fit-content",boxShadow:"round"==I?"dark-lg":null,onClick:()=>{ot(D,S),window.location.href=it(S)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(d)),animation:j?V.jd:V.so,borderRadius:"round"==I?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(d),borderColor:(0,p.Fwt)(d)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:J,width:J,children:(0,f.jsx)(b._,{width:J,height:J,src:(0,st.b)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(d)+" !important"}})}),(0,f.jsxs)(c.az,{height:J,width:Y-G+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(d)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(C.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:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*et+"px !important"},children:(0,q.v)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,p.Nzx)(d)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(d)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==I?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*et+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.uoB)(d)+" !important",margin:"0px !important"},children:[" "+(0,ut.Sb)(null!==E&&void 0!==E?E:null===S||void 0===S?void 0:S.price,"",d,P)," \xa0"]}),(0,K.P)(E,A)&&_?(0,f.jsxs)(C.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*et+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.gld)(d)+" !important",margin:"0px !important"},children:[" ",(0,ut.Sb)(null!==A&&void 0!==A?A:null===S||void 0===S?void 0:S.compare_price,"",d,P)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(d)&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*et+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(d)+" !important",color:(0,p._zx)(d)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(d)," \xa0"]})]}),(0,p.UlM)(d)?(0,f.jsx)(u.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,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==I?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==d||"STRNUBH0VYQ"==d||"STRAPB3KXSR"==d?(0,f.jsx)(F.A,{sx:{boxShadow:3,fontSize:1.3*et,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),O(!1)}}):(0,f.jsx)($.A,{sx:{color:o,fontSize:1.3*et+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(d)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:tt,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Ct,{baseFontSize:.8*et,event:D,product:S,borderRadius:"md",onShopNowClick:t=>{ot(D,S),window.location.href=it(S)}})})]}):(0,f.jsx)(f.Fragment,{})};function yt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,i.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(St,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?V.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:m?(0,Q.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function St(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,i.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?V.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${n} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function kt(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.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,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.2*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function It(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.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,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}}):(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var _t=function(t){var e,n,i,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",m=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(kt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==u?(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,f.jsx)(It,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:g,height:m,onCartIconClick:p}):(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,f.jsx)(yt,{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 zt=function(t){var e,n,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(U.B),[N,F]=(0,i.useState)(null),[P,L]=(0,i.useState)(parseFloat(z.price)),[B,O]=(0,i.useState)(parseFloat(z.compare_price)),[D,R]=(0,i.useState)(z.currency),[W,Y]=(0,i.useState)(null),$=t.event,G=t.productClickHandler,[Z,J]=(0,i.useState)(null),[tt,et]=(0,i.useState)(!1),[nt,it,ot,rt,lt,at,dt,ct]=t.useAddToCartStatesInstance,pt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:nt.cart_count,vt=A.landingLocationType,xt=A.templateType,gt=(0,ht.Wd)(vt)+(0,ht.gf)(xt)+"_"+(null===$||void 0===$?void 0:$.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),R(t.currency),et(!0)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y(l),L((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})(),!(0,p.E8r)(w)||null!==$&&void 0!==$&&$.in_stock||ot("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=W?null===W||void 0===W||null===(t=W.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,i=-1!==n?null===W||void 0===W||null===(e=W.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===W||void 0===W||null===(r=W.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:n,finalArr:i,finalArrExternal:o})},[W]);var mt=.72*k,ft=.37*mt,wt=mt*(.48-.37),Ct=.95*mt+"px",bt=ft+"px",jt=.12*ft;function yt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:"24px",width:Ct,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?yt():G(e),_(!0)}($,z)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(w)),animation:I?V.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:bt,width:bt,children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:(0,st.b)(null!==(e=null!==(n=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===Z||void 0===Z||null===(a=Z.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:bt,width:mt-ft+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",jt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",m,"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,q.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*jt+"px"},children:[tt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:m+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,ut.Sb)(null!==P&&void 0!==P?P:null===z||void 0===z?void 0:z.price,"",w,D)," \xa0"]}),(0,K.P)(P,B)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)(null!==B&&void 0!==B?B:null===z||void 0===z?void 0:z.compare_price,"",w,D)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(_t,{baseFontSize:.3*wt,event:$,product:z,cartState:nt.state,cartCount:pt,updateCartState:ot,onClickAtc:t=>{"init"===nt.state?(lt(gt,!0),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:$,productList:[z],ctaList:$.cta})):"awaitingVariantSelection"===nt.state&&G(z)},onCartIconClick:t=>{ct()}})]})})]})})};function Et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon,j="12px";return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2px",boxShadow:"lg",borderRadius:j,animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",backgroundColor:"white",borderRadius:j,onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",borderRadius:j,onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Tt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),borderRadius:"7px",onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"10px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.2*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function At(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Nt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){p()}const m=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(At,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(Nt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(Et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})};var Pt=function(t){var e;const[n]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s,c,u]=(0,x.A)(),[h,m]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(U.B),[C,b]=(0,i.useState)(null),[j,y]=(0,i.useState)(parseFloat(h.price)),[S,k]=(0,i.useState)(parseFloat(h.compare_price)),[I,_]=(0,i.useState)(null===h||void 0===h?void 0:h.title),[z,E]=(0,i.useState)(h.currency),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(!1),[P]=(0,v.QN)("whatmoreSecondaryColor"),[L,B,O,D,R,W,V,Q]=t.useAddToCartStatesInstance,M=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:L.cart_count,Y=t.event,$=t.productClickHandler;if((0,i.useEffect)(()=>{(0,p.w4b)(a)?(0,ut.ck)(h,(0,p.NCy)(a),a).then(t=>{m(t),y(parseFloat(t.price)),k(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(h,(0,p.NCy)(a),a);y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),k((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),A(!0)}catch(l){A(!0)}})()},[]),!T)return(0,f.jsx)(f.Fragment,{});const G=.765*u,Z=(null===Y||void 0===Y||null===(e=Y.products)||void 0===e?void 0:e.length)>1?.85*G:G,J=.198*Z,tt=.0315*u,et=1.05*tt,nt=Number((0,p.rh$)(a)),it=.85*tt*(isNaN(nt)||0===nt?1:nt),ot=.75*tt,rt=(0,p.XQu)(a),lt=(()=>{if((0,K.P)(j,S)){const t=(S-j)/S*100;return Math.round(t)}return null})(),at=P,dt=(pt=at,vt=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${vt})`);var pt,vt;function xt(){window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(h)}function gt(t,e){n||o||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==a?xt():$(e)}const mt=w.landingLocationType,ft=w.templateType,wt=(0,ht.Wd)(mt)+(0,ht.gf)(ft)+(null!==Y&&void 0!==Y&&Y.isRelatedEvent?"R":"E")+"_"+(null===Y||void 0===Y?void 0:Y.event_id);return(0,f.jsx)("div",{style:{width:Z+"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:N?"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"===a)return console.log("product.product_link : ",h.product_link),void(window.location.href=h.product_link);gt(Y,h)},onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,f.jsx)("div",{style:{width:J+"px",height:J+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,f.jsx)("img",{src:(0,st.b)(h.thumbnail_image),alt:h.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,f.jsxs)("div",{style:{flex:1},children:[(0,f.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*et+"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,q.v)(I,"prod-tile")}),(0,p.Nzx)(a)&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*it+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,ut.Sb)(null!==j&&void 0!==j?j:null===h||void 0===h?void 0:h.price,"",a,z)}),(0,K.P)(j,S)&&T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:it+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,ut.Sb)(null!==S&&void 0!==S?S:null===h||void 0===h?void 0:h.compare_price,"",a,z)}),lt&&(0,p.mOK)(a)&&(0,f.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*it+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[lt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==L.state&&null!=D&&(0,f.jsx)("div",{style:{width:"100%",maxHeight:.3*Z*rt+"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,f.jsx)(ct,{width:"100%",height:"fit-content",event:Y,product:h,productVariantOptions:D,baseFontSize:.9*tt,onOptionSelected:t=>{!function(t){b(t);const e=V(t);e&&(y(e.price/100),k(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,f.jsx)("div",{style:{width:"100%"},children:(0,f.jsx)(Ft,{baseFontSize:1.1*ot,setProductVariantTitle:_,product:h,cartState:L.state,cartCount:M,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==a?"init"==L.state?(R(wt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:Y,productList:[h],ctaList:Y.cta})):"awaitingVariantSelection"==L.state&&(W(C,wt),_(null===h||void 0===h?void 0:h.title)):gt(Y,h)},onCartIconClick:()=>{Q()}})})]})})};var Lt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[n]=(0,v.QN)("isWhatmoreWebsite"),o=(0,p.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...c]=(0,lt.A)(0,l,t.event),u=[s,...c];return(0,i.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(l.product_id,t)},[s.cart_count]),n?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile"==o?(0,f.jsx)(vt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile-no-cta"==o?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,f.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"link_only"==o?(0,f.jsx)(Y,{product:t.product,event:t.event}):"narrow-tile"==o?(0,f.jsx)(bt,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):(0,f.jsx)(f.Fragment,{})},Bt=n(1079),Ot=n(7802),Dt=n(2979);var Rt=function(t){var e,n,i;const[l,a,d,h]=(0,x.A)(),[g]=(0,v.QN)("whatmoreShopId"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),C=t.event,b=t.productClickHandler,j=t.productCartCounts,y=t.onCartCountChange,S=(0,p.Vpi)(g),k=null!==(e=null===(n=C.products)||void 0===n||null===(i=n.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===i?void 0:i.length)&&void 0!==e?e:0;if(!(0,Ot.Z_)(C))return(0,f.jsx)(f.Fragment,{});if(1==C.products.length&&(void 0==C.cta||0==C.cta.length)){const t=C.products[0];return(0,p.uJl)(g)?(0,f.jsx)(u.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,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(bt,{event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==S?"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,f.jsx)(s.o,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(Lt,{activeProductsCount:1,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==S?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==C.products.length?1:1.4,initialSlide:0,centeredSlides:!(0,p.TYM)(g),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===g?[C.products[0]]:C.products).map(t=>("oos"!=t.product_status||(0,p.$7F)(g))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Lt,{activeProductsCount:k,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})},C.event_id+t.product_id)),(0,p.Woi)(g)&&void 0!=C.cta&&C.cta.map(t=>{var e;return(0,f.jsx)(f.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Bt.A,{fontFactor:.75,cta:t},C.event_id+t.cta_id)})},C.event_id+t.cta_id)})})]})})})})};var Wt=function(t){const[e,n]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange;return(0,i.useContext)(Pn).isIOS,(0,f.jsx)(Rt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a},o.event_id)},Vt=n(6670);function Qt(t){const e=t.event,[n,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(C.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(N.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Mt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,Vt.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),g=t.event,m=t.isLast,w=t.onCloseCallback,C=t.focusRef,b=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Qt,{event:g}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(j.A,{focusRef:C}),(0,f.jsx)(P,{event:g,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!m})})}):null,void 0!=g.products&&g.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:g,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:g,productClickHandler:b})})]}):(0,f.jsx)("div",{})]})]})})};function Ht(t){const[e,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(""),h=t.data,g=(t.event,t.product,t.setShowOptionsChart);var m=.4*r*.8*.13;(0,i.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,n,i,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const w=`${k.i7`
|
|
80
80
|
0% {
|
|
81
81
|
transform: translateY(100%);
|
|
82
82
|
}
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
0% {
|
|
85
85
|
transform: translateY(100%);
|
|
86
86
|
}
|
|
87
|
-
`} 0.5s`,kt=null===H||void 0===H||null===(e=H.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"))}),[It,_t]=(0,i.useState)(-1!==kt?null===(n=H.options)||void 0===n||null===(o=n[kt])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[zt,Et]=(0,i.useState)({});(0,i.useEffect)(()=>{-1!==kt&&"whatmore"!==(0,p.NCy)(Ct)&&async function(){const t=await(0,$t._N)(U);Et(t)}()},[]);let Tt=-1,At=-1!==kt&&null!==zt&&void 0!==zt&&zt.product&&(null===zt||void 0===zt||null===(l=zt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===zt||void 0===zt||null===(d=zt.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[kt])||void 0===h||null===(g=h.values)||void 0===g?void 0:g.length)?null===zt||void 0===zt||null===(m=zt.product)||void 0===m||null===(w=m.images)||void 0===w?void 0:w.map(t=>{var e,n,i,o,r,l,a,d,s,c,u,h,p,v;const x=null===zt||void 0===zt||null===(e=zt.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.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===zt||void 0===zt||null===(i=zt.product)||void 0===i||null===(o=i.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Tt,(null===zt||void 0===zt||null===(a=zt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[kt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===zt||void 0===zt||null===(u=zt.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Tt)],src:null===t||void 0===t?void 0:t.src}}):[],Nt=[];if("whatmore"==(0,p.NCy)(Ct)&&(null===H||void 0===H||null===(C=H.images)||void 0===C?void 0:C.length)>0){var Ft;var Pt;if(-1!==(null===H||void 0===H||null===(Ft=H.options)||void 0===Ft?void 0:Ft.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"))})))Nt=null===H||void 0===H||null===(Pt=H.images)||void 0===Pt?void 0:Pt.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Tt+1<(null===zt||void 0===zt||null===(j=zt.product)||void 0===j||null===(y=j.options)||void 0===y||null===(S=y[kt])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(At=[]),(0,f.jsxs)(dt.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"auto",opacity:"100%",borderTopRadius:"24px",animation:St,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,f.jsx)(c.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",children:(0,f.jsx)(te,{setOpenShopNow:Y,setLockSwiper:$,FONT_SIZE:V})}),(0,f.jsx)(c.az,{height:"fit-content",minHeight:R+20+"px",position:"relative",children:(0,f.jsx)(s.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,f.jsx)(dt.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(ae.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:D+"px",height:R+"px",position:"relative",children:(0,f.jsx)(b._,{width:D+"px",height:R+"px",borderRadius:"16px",src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.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,f.jsx)(W.A,{width:D+"px",height:R+"px",borderRadius:"16px"})})})}),dataList:At.length>0&&!At.includes(null)?null===(_=At)||void 0===_?void 0:_.filter(t=>(null===t||void 0===t?void 0:t.color)==It):Nt.length>0?[null===(z=Nt)||void 0===z?void 0:z.find(t=>(null===t||void 0===t?void 0:t.color)==It)]:null===H||void 0===H||null===(E=H.images)||void 0===E?void 0:E.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:D+"px",defaultWidth:R+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,f.jsxs)(dt.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,f.jsx)(ie,{data:H,product:U,PRODUCT_TILE_HEIGHT:O,PRODUCT_TILE_WIDTH:B,FONT_SIZE:V,getVariantPrice:ce,selectedVariantId:ot,itemPrice:ct,itemQuantity:lt,setItemQuantity:at,thumbnailImage:ft}),"11829268"===Ct&&(0,f.jsx)(le,{liveScreenWidth:L}),(null===H||void 0===H||null===(T=H.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsx)(re,{data:"22907887"===Ct?{...H,options:null===H||void 0===H||null===(A=H.options)||void 0===A?void 0:A.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))}:H,dividerColor:(0,p.R6d)(Ct),setSelectedColor:_t,finalArr:At,finalArrExternal:Nt,product:U,PRODUCT_TILE_HEIGHT:O,PRODUCT_TILE_WIDTH:B,FONT_SIZE:V,selectOptionFirstHandler:bt,selectOptionSecondHandler:jt,selectOptionThirdHandler:yt,getVariantPrice:ce,selectedOptionFirst:Z,selectedOptionSecond:tt,selectedOptionThird:nt,selectedVariantId:ot,isVariantAvailable:G})]}),(0,f.jsx)(c.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",children:(0,f.jsx)(Jt,{position:"relative",selectedVariantId:ot,data:H,FONT_SIZE:V,PRODUCT_TILE_WIDTH:B,product:U,itemQuantity:lt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:gt,setSoldOutFlag:mt,onCloseCallback:t.onCloseCallback,event:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]})}const se=(t,e,n,i)=>{var o;if(!e&&!n&&!i)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find(t=>(!e||t.option1===e)&&(!n||t.option2===n)&&(!i||t.option3===i));return r?r.id:void 0},ce=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find(t=>t.id===e))||void 0===i?void 0:i.price},ue=(t,e)=>{var n;const i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>t.id==e);return void 0===i?null:null===i||void 0===i||null===(o=i.featured_image)||void 0===o?void 0:o.src;var o},he=(0,i.createContext)({setShowOptionsChart:null});var pe=function(t){const e=t.event,n=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,i.useState)(!1);return(0,f.jsx)(he.Provider,{value:{setShowOptionsChart:s},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(de,{data:n,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,f.jsx)(u.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,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(Ht,{data:n,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var ve=function(t){var e,[n,o,r,l]=(0,x.A)();const[a,d]=(0,i.useState)(!1),[m,C]=(0,i.useState)(),[b,j]=(0,i.useState)(),y=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=i.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,A=null===(e=t.showOverlay)||void 0===e||e,N="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),A?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Mt,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(y),y);j(t),C(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:m,currentProduct:b,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ge(t){var e,n,[i,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map(t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t))})}var me=n(3788),fe=n(758);const we=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Ce=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var be=function(t){var e,n,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,g=t.whatmoreShareEventId,m=t.event,w=null===(e=t.showShareText)||void 0===e||e,b=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,j=(0,v.Xd)("whatmoreShopId"),y=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,i.useContext)(U.B),[z,E,T,A]=(0,x.A)(),N=null!==(o=t.iconSize)&&void 0!==o?o:.1*A*(0,p.xkB)(j);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var n;!function(t){y||S||(async()=>{(0,l.Zh)(t)})()}(m),n="event_product_link"===(0,p.moP)(j)?m.products[0].product_link||"":window.location.pathname,n=("event_product_link"===(0,p.moP)(j)?"":window.location.hostname)+n+"?wtt="+d+"&wsid="+h+"&weid="+g,(0,p.BLb)(j)&&(n=n+"&"+(0,p.VCz)(j)+"&utm_campaign=video-share&utm_medium="+e);const i={title:(0,p.kZI)(j),text:`${(0,p.dmA)(j)} \n ${n} ${"50529403072"!==j&&(0,p.ZX9)(j)?"\n \n -via Whatmore":""}`};navigator.share&&!Ce?navigator.share(i):(t.setIsModalOpen(!0),t.setShareText([i,n]))}return"63046287536"==j?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:b+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(fe.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:N,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,H.kz)({userInteractionType:X.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:m,productList:m.products,ctaList:m.cta})}}),w&&(0,p.ViG)(j)?(0,f.jsxs)(C.E,{fontSize:.3*N+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",m.total_share>(0,p.vDV)(j)?we(m.total_share):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},je=n(3420),ye=n(7170);var Se=function(t){var e,n,o,r,a;const d=(0,v.Xd)("whatmoreShopId"),h=(0,v.Xd)("whatmorePrimaryFont"),g=(0,v.Xd)("whatmoreLikedEvents"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),b=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(U.B),[y]=(0,i.useState)(()=>Math.floor(50*Math.random()+100)),S=t.event,[k,I]=(0,i.useState)(null!==(e=g[S.event_id])&&void 0!==e&&e),[_,z,E,T]=(0,x.A)(),A=.1*T*(0,p.xkB)(d);function N(t,e){m||w||(async()=>{(0,l.$B)(t,e)})()}function F(){(0,v.t2)("whatmoreLikedEvents",{...g,[S.event_id]:!k}),k?(N(S,-1),(0,H.kz)({userInteractionType:X.O.VIDEO_UNLIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})):(N(S,1),(0,H.kz)({userInteractionType:X.O.VIDEO_LIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})),I(!k)}const P=("78232846646"==d?null!==(n=S.total_like)&&void 0!==n?n:y:null!==(o=S.total_like)&&void 0!==o?o:0)+(k?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[k?(0,f.jsx)(ye.A,{sx:{boxShadow:3,color:(0,p.MJ6)(d),fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}):(0,f.jsx)(je.A,{sx:{boxShadow:3,color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(d)?(0,f.jsxs)(C.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:h+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",P>=(0,p.LGx)(d)?we(P):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[b])||void 0===a?void 0:a.like)&&void 0!==r?r:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ke=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),Ie=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),_e=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),ze=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,f.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var Ee=t=>{const e=(0,v.Xd)("whatmoreShopId"),n=t.shareText,[o,r]=(0,i.useState)("Copy link"),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(window.innerWidth),[c,u,h,g]=(0,x.A)(),m=.1*g*(0,p.xkB)(e)*.5;(0,i.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),b=w?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.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,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,f.jsxs)("div",{onClick:()=>{"22907887"!==e&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:["22907887"!==e?(0,f.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,f.jsx)(fe.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,f.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:"22907887"===e?"Share On":"Whatmore"})]}),(0,f.jsx)(F.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ke,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"Whatsapp"})]}),"22907887"!==e&&(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(Ie,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(n[1]),r("Copied"),a("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(_e,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,color:l,margin:0,textAlign:"center"},children:o})]}),(0,f.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const i=(null===n||void 0===n||null===(e=n[0])||void 0===e?void 0:e.text)||"",o=null===n||void 0===n?void 0:n[1];try{navigator.share?await navigator.share({title:"Check this out",text:i,url:o}):(await navigator.clipboard.writeText(o),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,f.jsx)(ze,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"More"})]})]})]})})},Te=n(1941);var Ae=function(t){var e,n;const i=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,v.Xd)("whatmorePrimaryFont"),r=(0,v.Xd)("whatmoreShopId"),l=null!==(n=t.fontSize)&&void 0!==n?n:"8",[a]=(0,Te.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`,g=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(gt.N,{href:g,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.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,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.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,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:"Whatmore"})]})]})})},Ne=n(9879),Fe=n(9556),Pe=n(2209);var Le=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Be=t=>{var e;const n={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,r]=(0,i.useState)(!1),[l,a]=(0,i.useState)(null),[d,s]=(0,i.useState)(null),h=(0,i.useRef)(null),p=(0,i.useContext)(U.B);return(0,i.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,i.useEffect)(()=>{!o&&h.current&&s(h.current.offsetHeight)},[o]),(0,f.jsxs)(c.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:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.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,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Pe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Fe.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===n||void 0===n?void 0:n.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Le,{}),(0,f.jsx)(Fe.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:n.options.map((e,n)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var n;a(e),r(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(C.E,{py:5,color:"gray.800",children:e})},n))})})]})},Oe=n(4533),De=n(9935);var Re=t=>{var e,n;const[o,r]=(0,i.useState)(""),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),g=(0,v.Xd)("whatmoreSecondaryColor"),m=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,b=(0,i.useContext)(U.B),j=()=>{var e,n;(()=>{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,H.kz)({userInteractionType:X.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===(n=t.question)||void 0===n?void 0:n.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:b})):a("Please enter valid contact info.")},y=()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:b})};return(0,f.jsx)(dt.s,{bg:g,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,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{y()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(De.A,{sx:{color:u?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:g,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(dt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.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,f.jsx)("input",{fontFamily:m,type:"number"===(null===(n=t.question)||void 0===n?void 0:n.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&j()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(C.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:j,width:"50%",children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var We=t=>{const[e,n]=(0,i.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Re,{question:t.question,onEmailSubmit:t=>{n(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Ve=t=>{var e;const[n,o]=(0,i.useState)(null),r=t.questionIndex,l=t.questionList;if((0,i.useEffect)(()=>{if(!(r>=l.length))return()=>(0,Oe.Hm)()},[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(We,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Be,{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:n,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Qe=n(6118);const Me=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.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,f.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,f.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 He=function(t){const e=(0,v.Xd)("whatmoreShopId"),n=t.event,[i,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,me.s)(null===n||void 0===n?void 0:n.event_hls_url);if(t)try{const e=await fetch(t),i=await e.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${n.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Me,{iconSize:a})})})})},Xe=n(3305);function Ue(t){var e;const n=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,i.useContext)(U.B),[g]=(0,v.QN)("whatmoreSecondaryColor"),[m]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(m),b=null!==(e=(0,p.qAx)(m))&&void 0!==e?e:[g,w,g,w,g],j=(0,i.useRef)(null);(0,i.useEffect)(()=>{j.current&&j.current.play()},[]);const y=(0,me.s)(null===n||void 0===n?void 0:n.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:"video"==(0,st.B)(y)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===n||void 0===n?void 0:n.thumbnail_image,url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:y,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Ye=function(t){var e,n,o;const[r,a,d]=(0,Xe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g,m]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[y]=(0,v.QN)("whatmoreShopId"),S=(0,i.useContext)(Pn),{whatmoreEventsBrowsingTemplate:k}=(0,i.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,F=t.storySetId,L=t.isLast,B=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,i.useContext)(U.B),K=.1*E,[G,Z]=(0,i.useState)(!1),[J,tt]=(0,i.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,H.kz)({userInteractionType:X.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map(t=>`${t.product_link} \n`),n=(0,p.dzp)(y),i="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(n+`&text=${i}&type=phone_number`,"_blank")}const nt=t=>{it.current&&!it.current.contains(t.target)&&Z(!1)},it=(0,i.useRef)(null);(0,i.useEffect)(()=>(G?document.addEventListener("click",nt):document.removeEventListener("click",nt),()=>{document.removeEventListener("click",nt)}),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Dt.S,{userInteractionType:X.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(n=e[t.qIndex])||void 0===n?void 0:n.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Ve,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:it,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,f.jsx)(Ee,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.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:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(ge,{progress:xe(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Ue,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(P,{event:N,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!L})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(He,{event:N})})})]}),(0,p.oZc)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(y)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Se,{event:N})}),(0,ht.Yt)(k)&&"50529403072"===y&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})})]}),(0,p.iQ5)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Ot.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(y)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:N,onToggle:t=>{m("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),g&&(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:N,productClickHandler:D,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Ae,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},$e=n(5491),qe=n.n($e),Ke=n(6493);var Ge=function(t){var e,n,o,r,l,a,[d,w,C,b]=(0,x.A)();const[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(),[I,_]=(0,i.useState)(),[z,E]=(0,i.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),A=t.event,N=t.storyId,F=t.onBack,P=i.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,M=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,i.useContext)(U.B),{questionList:G}=(0,i.useContext)(Pn),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,i.useState)(),[et,nt]=(0,i.useState)({}),it=(t,e)=>{nt(n=>({...n,[t]:e}))};(0,i.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const ot="center";let rt;try{rt=qe()(()=>{R()},1e3,{leading:!0,trailing:!1})}catch(lt){console.log(lt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:b,height:C,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:ot,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:b/C,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(A)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const n=xe(t,e);W({watch_time:t,video_duration:e});const i=z.is_video_ended;n>=99&&B&&!i?(rt(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:i})},event:A,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Ye,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(T),T);_(t),k(e),y(!0),D(!0),(0,H.kz)({userInteractionType:X.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L,productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)(f.Fragment,{}),!0===j?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{y(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)("div",{})]})})},Ze=n(2039),Je=n(6613),tn=n(1085),en=n(5727);var nn=function(t){var[e,n,i,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,tn.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(en.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,tn.bo)()}}),(0,f.jsx)(C.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},on=n(3294),rn=n(9821);var ln=function(t){var e,n;const i=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[x,g]=(0,Vt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),w=null===(n=t.showOverlay)||void 0===n||n;function C(){!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&g(!x)}if((0,Je.MN)()&&0==m)return(0,rn._)()?(0,f.jsx)(nn,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.ij)(o)||(0,Ze.Il)(o))return(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.Th)(o)){var{status:b,bannerText:j,timeToStartInMins:y}=d.A.getEventStatus(o);if(b.name===a.A.LIVE.name)return(0,f.jsx)(ve,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:w},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},an=n(4806),dn=n.n(an),sn=n(2804),cn=n(6834);function un(t){var e;const[n,o]=(0,i.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(cn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"up")}}):(0,f.jsx)(sn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"down")}})})}var hn=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",l=null!==(i=t.fontSize)&&void 0!==i?i:50,a=t.handleClick;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,f.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,f.jsx)(un,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(un,{type:"right",onClick:a,fontSize:l})]})})},pn=n(964),vn=n(3330);var xn=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,i.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:n(o.current.activeIndex,e),activeIndex:n(o.current.activeIndex+1,e),nextIndex:n(o.current.activeIndex+2,e)}:{prevIndex:n(o.current.activeIndex-2,e),activeIndex:n(o.current.activeIndex-1,e),nextIndex:n(o.current.activeIndex,e)}},function(t){return n(o.current.activeIndex+t)}]};var gn=function(t,e){const n=(0,i.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var l=o-i.changedTouches[0].clientX,a=r-i.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 mn=function(t,e){const n=(0,i.useRef)(qe()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";n.current(o,l)}]},fn=n(4638);var wn=function(t){const e=t.events,n=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,i.useState)(!0),[b,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,S]=(0,i.useState)(!1),[k,I]=(0,i.useState)({}),{setCloseClickComponent:_}=(0,i.useContext)(Pn),{slideDirection:z}=(0,i.useContext)(Pn),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[A,N]=xn(n,e.length),[F,P]=gn(z,10),[L]=mn("vertical",10),[B,O]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:V}=(0,i.useContext)(U.B);function M(){O(!1)}function Y(t){M(),setTimeout(()=>{a(t)},500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=n;const{questionList:G}=(0,i.useContext)(Pn);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(N("right"),D.slideNext())}function J(t,e){N(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(dn(),{isOpen:B,onRequestClose:M,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(fn.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,Q.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(y)return;const e=P(t);e&&J(0,e)},onWheel:t=>{y||L(t,t=>{J(0,t)})},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{R(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products})},onSlideChange:t=>{var n;w?C(!1):(b||j(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}),n=e[A().activeIndex],g||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.lB)(n),"index"===T?((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t,null===n||void 0===n?void 0:n.location,null===V||void 0===V?void 0:V.userType)):T.startsWith("product")||"embed"===T?((0,vn.sendVideoViewEventToGA)(E,pn.DK,pn.K1),(0,Oe.Ch)(n.event_id,n.products,pn.DK,pn.K1,t)):T.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(E,pn.Sx,pn.rz),(0,Oe.Ch)(n.event_id,n.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t))})(),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map(i=>(0,f.jsx)(o.qr,{children:({isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a})=>{const d=i?"activeIndex":o?"prevIndex":"nextIndex",s=A()[d];"activeIndex"==d&&(K=Math.max(K,s),0==s&&(K=0));const c=(null===G||void 0===G?void 0:G.length)>0&&i&&l&&(s>n||K<n&&s>0)&&s>=K&&s%(0,p.uSp)(E)==n%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ln,{event:e[s],showQuestion:c,onBack:Y,isPlaying:1==e.length||i&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+i))}),e.length>1&&!y&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(hn,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},Cn=n(7119);n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042);const bn=({children:t,customClass:e,show:n,closeCallback:i})=>Cn.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:i}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);bn.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var jn=bn;n(1012);var yn=function(t){var e,[n,a,d,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(!1),[F,L]=(0,i.useState)(null);function B(){N(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),V=O.length,M=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,i.useRef)(0);function $(t){B(),setTimeout(()=>{R(t)},500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,i.useEffect)(()=>(N(!0),()=>{}),[]),y($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,i.useState)({}),tt=parseInt(Math.min(5,O.length)),et="90518552861"===I&&tt>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:tt>=5;return(0,f.jsx)(jn,{show:A,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,Q.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{height:"fit-content",width:h*tt,position:"90518552861"===I&&tt>=5?"relative":void 0,children:["90518552861"===I&&tt>=5&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,f.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,f.jsxs)(o.RC,{onInit:t=>{L(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:et,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;b?j(!1):(w||C(!0),e=O[t.activeIndex],g||m||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,vn.sendVideoViewEventToGA)(I,pn.DK,pn.K1),(0,Oe.Ch)(e.event_id,e.products,pn.DK,pn.K1,t)):_.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(I,pn.Sx,pn.rz),(0,Oe.Ch)(e.event_id,e.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t))})(),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:R})}),W.slice(D,O.length+D).map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:o,isDuplicate:r})=>{if(t)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!0,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=V-1&&(Y.current=1)}catch(l){console.log(l)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:M,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},Sn=n(340),kn=n(5089),In=n(572),_n=n(8603);var zn=function(t){const[e,n,i,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var En=function(t){var e;const n=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=n.events;var[h,g,m,w]=(0,x.A)();const[C,b]=(0,Vt.A)(),[j]=(0,v.QN)("isInDesignMode"),[y]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,i.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,i.useState)(null),[A,N]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,i.useContext)(U.B),[L,B]=xn(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function V(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[Q,M]=(0,i.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Q,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(D)+(0,ht.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);j||y||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(S,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map(e=>(0,f.jsx)(o.qr,{children:({isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(d){const o=e?"activeIndex":i?"prevIndex":"nextIndex",l=c[L()[o]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Ze.ij)(l)||(0,Ze.Il)(l)?(0,f.jsx)(Ge,{event:l,totalSiblingEvents:c.length,indexAmongSiblings:L()[o],onBack:O,isPlaying:d&&e&&r,isLast:!1,setLockSwiper:N,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{V("left")},midOpenSpaceClickHandler:()=>{!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&b(!C)},rightOpenSpaceClickHandler:()=>{V("right")},storyId:n.id,source:on.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+l.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(zn,{})})}},"event-story-view-slide-"+e))})})};var Tn=function(t){const e=t.onBack,n=t.eventsStories,a=t.initialStoryIndex,[d]=(0,v.QN)("isInDesignMode"),[s]=(0,v.QN)("isDemoBrand"),[c,h]=(0,i.useState)(!0),{setCloseClickComponent:p}=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),[g,m]=xn(a,n.length),[w,C]=gn("horizontal",50),[b]=mn("vertical",30),j=t.eventIndex,[y,S]=(0,i.useState)(!0),[k,I]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B);function E(){S(!1)}function T(t){E(),setTimeout(()=>{e(t)},500)}p(T);const A=_.landingLocationType,N=_.templateType;function F(t){k&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?k.slideNext():k.slidePrev())}function P(t,e){F(e)}return(0,f.jsx)(dn(),{isOpen:y,onRequestClose:E,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{w(t)},onTouchEnd:t=>{const e=C(t);e&&P(0,e)},onWheel:t=>{b(t,t=>{P(0,t)})},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,i;I(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta})},onSlideChange:t=>{var e,i;c?h(!1):(!function(t){const e=(0,ht.Wd)(A)+(0,ht.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);d||s||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(x,pn.TB,pn.OL),(0,Oe.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)})()}(n[g().activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map(t=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:e,isNext:i,isVisible:o,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(En,{stories:n[g()[l]],onBack:T,isActive:t&&o,isNext:i,isPrev:e,onStoryCompleteCallback:F,nextStories:n[g().nextIndex],prevStories:n[g().prevIndex],initialEventIndex:a==g()[l]?j:0},"event-story-view-"+n[g()[l]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var An=function(t){var e,n,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[g]=(0,v.QN)("whatmoreSecondaryColor"),m=t.event,w=(t.onBack,i.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),C=null!==(n=t.heightFactor)&&void 0!==n?n:1,j="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=C,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:j,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Ze.ij)(m)||(0,Ze.Il)(m)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",url:m.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:m}):(0,f.jsx)(b._,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+g+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:j,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Nn=function(t){var e,n,[a,d,h,p]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B),[E,T]=(0,i.useState)(!1),[A,N]=(0,i.useState)(null);function F(){T(!1)}t.events;const L=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(n=e.events[0])||void 0===n?void 0:n.brand;function W(t){F(),setTimeout(()=>{B(t)},500)}(0,i.useEffect)(()=>(T(!0),()=>{}),[]),y(W);const V=_.landingLocationType,Q=_.templateType;function M(t){A&&!A.isEnd&&("right"==t?A.slideNext():A.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(jn,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,n;N(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,n;b?j(!1):(w||C(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);g||m||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.OL),(0,Oe.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)})()}(O[t.activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:B})}),O.map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(En,{stories:t,onBack:W,isActive:n&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?L:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return i||o?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(An,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Fn=(0,_n.A)({key:"whatmore-css-sv"}),Pn=(0,i.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ln=function(t){var e,n,o;const[r,l,a]=(0,Xe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,i.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,i.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,g=t.onBack,m=t.eventsStories,w=t.initialStoryIndex,C=(0,p.M3_)(d),b="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:h.length>1?"horizontal":"vertical",j="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,i.useLayoutEffect)(()=>{(0,p.hpk)(d)&&(window.location.href.includes(C)?history.replaceState(null,"","#"+C):history.pushState(null,"","#"+C),window.addEventListener("popstate",()=>{window.location.href.includes(C)||g()}))},[]),delete kn.Ay.styles.global,c?(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(Nn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x}):(0,f.jsx)(Tn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x})})})}):(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(wn,{events:h,eventIndex:x,onBack:g}):(0,f.jsx)(yn,{events:h,eventIndex:x,onBack:g})})})})}},5144:function(t,e,n){n.d(e,{jd:function(){return o},so:function(){return r}});var i=n(8283);const o=`\n ${i.i7`
|
|
87
|
+
`} 0.5s`,kt=null===H||void 0===H||null===(e=H.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"))}),[It,_t]=(0,i.useState)(-1!==kt?null===(n=H.options)||void 0===n||null===(o=n[kt])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[zt,Et]=(0,i.useState)({});(0,i.useEffect)(()=>{-1!==kt&&"whatmore"!==(0,p.NCy)(Ct)&&async function(){const t=await(0,$t._N)(U);Et(t)}()},[]);let Tt=-1,At=-1!==kt&&null!==zt&&void 0!==zt&&zt.product&&(null===zt||void 0===zt||null===(l=zt.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===zt||void 0===zt||null===(d=zt.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[kt])||void 0===h||null===(g=h.values)||void 0===g?void 0:g.length)?null===zt||void 0===zt||null===(m=zt.product)||void 0===m||null===(w=m.images)||void 0===w?void 0:w.map(t=>{var e,n,i,o,r,l,a,d,s,c,u,h,p,v;const x=null===zt||void 0===zt||null===(e=zt.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.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===zt||void 0===zt||null===(i=zt.product)||void 0===i||null===(o=i.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Tt,(null===zt||void 0===zt||null===(a=zt.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[kt])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===zt||void 0===zt||null===(u=zt.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Tt)],src:null===t||void 0===t?void 0:t.src}}):[],Nt=[];if("whatmore"==(0,p.NCy)(Ct)&&(null===H||void 0===H||null===(C=H.images)||void 0===C?void 0:C.length)>0){var Ft;var Pt;if(-1!==(null===H||void 0===H||null===(Ft=H.options)||void 0===Ft?void 0:Ft.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"))})))Nt=null===H||void 0===H||null===(Pt=H.images)||void 0===Pt?void 0:Pt.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Tt+1<(null===zt||void 0===zt||null===(j=zt.product)||void 0===j||null===(y=j.options)||void 0===y||null===(S=y[kt])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(At=[]),(0,f.jsxs)(dt.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"auto",opacity:"100%",borderTopRadius:"24px",animation:St,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,f.jsx)(c.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",children:(0,f.jsx)(te,{setOpenShopNow:Y,setLockSwiper:$,FONT_SIZE:V})}),(0,f.jsx)(c.az,{height:"fit-content",minHeight:R+20+"px",position:"relative",children:(0,f.jsx)(s.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,f.jsx)(dt.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(ae.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:D+"px",height:R+"px",position:"relative",children:(0,f.jsx)(b._,{width:D+"px",height:R+"px",borderRadius:"16px",src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.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,f.jsx)(W.A,{width:D+"px",height:R+"px",borderRadius:"16px"})})})}),dataList:At.length>0&&!At.includes(null)?null===(_=At)||void 0===_?void 0:_.filter(t=>(null===t||void 0===t?void 0:t.color)==It):Nt.length>0?[null===(z=Nt)||void 0===z?void 0:z.find(t=>(null===t||void 0===t?void 0:t.color)==It)]:null===H||void 0===H||null===(E=H.images)||void 0===E?void 0:E.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:D+"px",defaultWidth:R+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,f.jsxs)(dt.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,f.jsx)(ie,{data:H,product:U,PRODUCT_TILE_HEIGHT:O,PRODUCT_TILE_WIDTH:B,FONT_SIZE:V,getVariantPrice:ce,selectedVariantId:ot,itemPrice:ct,itemQuantity:lt,setItemQuantity:at,thumbnailImage:ft}),"11829268"===Ct&&(0,f.jsx)(le,{liveScreenWidth:L}),(null===H||void 0===H||null===(T=H.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsx)(re,{data:"22907887"===Ct?{...H,options:null===H||void 0===H||null===(A=H.options)||void 0===A?void 0:A.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))}:H,dividerColor:(0,p.R6d)(Ct),setSelectedColor:_t,finalArr:At,finalArrExternal:Nt,product:U,PRODUCT_TILE_HEIGHT:O,PRODUCT_TILE_WIDTH:B,FONT_SIZE:V,selectOptionFirstHandler:bt,selectOptionSecondHandler:jt,selectOptionThirdHandler:yt,getVariantPrice:ce,selectedOptionFirst:Z,selectedOptionSecond:tt,selectedOptionThird:nt,selectedVariantId:ot,isVariantAvailable:G})]}),(0,f.jsx)(c.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",children:(0,f.jsx)(Jt,{position:"relative",selectedVariantId:ot,data:H,FONT_SIZE:V,PRODUCT_TILE_WIDTH:B,product:U,itemQuantity:lt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:gt,setSoldOutFlag:mt,onCloseCallback:t.onCloseCallback,event:X,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]})}const se=(t,e,n,i)=>{var o;if(!e&&!n&&!i)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find(t=>(!e||t.option1===e)&&(!n||t.option2===n)&&(!i||t.option3===i));return r?r.id:void 0},ce=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find(t=>t.id===e))||void 0===i?void 0:i.price},ue=(t,e)=>{var n;const i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>t.id==e);return void 0===i?null:null===i||void 0===i||null===(o=i.featured_image)||void 0===o?void 0:o.src;var o},he=(0,i.createContext)({setShowOptionsChart:null});var pe=function(t){const e=t.event,n=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,i.useState)(!1);return(0,f.jsx)(he.Provider,{value:{setShowOptionsChart:s},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(de,{data:n,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,f.jsx)(u.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,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(Ht,{data:n,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var ve=function(t){var e,[n,o,r,l]=(0,x.A)();const[a,d]=(0,i.useState)(!1),[m,C]=(0,i.useState)(),[b,j]=(0,i.useState)(),y=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=i.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,A=null===(e=t.showOverlay)||void 0===e||e,N="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),A?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Mt,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(y),y);j(t),C(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:m,currentProduct:b,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ge(t){var e,n,[i,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map(t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t))})}var me=n(3788),fe=n(758);const we=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Ce=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var be=function(t){var e,n,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,g=t.whatmoreShareEventId,m=t.event,w=null===(e=t.showShareText)||void 0===e||e,b=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,j=(0,v.Xd)("whatmoreShopId"),y=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,i.useContext)(U.B),[z,E,T,A]=(0,x.A)(),N=null!==(o=t.iconSize)&&void 0!==o?o:.1*A*(0,p.xkB)(j);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var n;!function(t){y||S||(async()=>{(0,l.Zh)(t)})()}(m),n="event_product_link"===(0,p.moP)(j)?m.products[0].product_link||"":window.location.pathname,n=("event_product_link"===(0,p.moP)(j)?"":window.location.hostname)+n+"?wtt="+d+"&wsid="+h+"&weid="+g,(0,p.BLb)(j)&&(n=n+"&"+(0,p.VCz)(j)+"&utm_campaign=video-share&utm_medium="+e);const i={title:(0,p.kZI)(j),text:`${(0,p.dmA)(j)} \n ${n} ${"50529403072"!==j&&(0,p.ZX9)(j)?"\n \n -via Whatmore":""}`};navigator.share&&!Ce?navigator.share(i):(t.setIsModalOpen(!0),t.setShareText([i,n]))}return"63046287536"==j?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:b+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(fe.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:N,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,H.kz)({userInteractionType:X.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:m,productList:m.products,ctaList:m.cta})}}),w&&(0,p.ViG)(j)?(0,f.jsxs)(C.E,{fontSize:.3*N+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",m.total_share>(0,p.vDV)(j)?we(m.total_share):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},je=n(3420),ye=n(7170);var Se=function(t){var e,n,o,r,a;const d=(0,v.Xd)("whatmoreShopId"),h=(0,v.Xd)("whatmorePrimaryFont"),g=(0,v.Xd)("whatmoreLikedEvents"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),b=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(U.B),[y]=(0,i.useState)(()=>Math.floor(50*Math.random()+100)),S=t.event,[k,I]=(0,i.useState)(null!==(e=g[S.event_id])&&void 0!==e&&e),[_,z,E,T]=(0,x.A)(),A=.1*T*(0,p.xkB)(d);function N(t,e){m||w||(async()=>{(0,l.$B)(t,e)})()}function F(){(0,v.t2)("whatmoreLikedEvents",{...g,[S.event_id]:!k}),k?(N(S,-1),(0,H.kz)({userInteractionType:X.O.VIDEO_UNLIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})):(N(S,1),(0,H.kz)({userInteractionType:X.O.VIDEO_LIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})),I(!k)}const P=("78232846646"==d?null!==(n=S.total_like)&&void 0!==n?n:y:null!==(o=S.total_like)&&void 0!==o?o:0)+(k?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[k?(0,f.jsx)(ye.A,{sx:{boxShadow:3,color:(0,p.MJ6)(d),fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}):(0,f.jsx)(je.A,{sx:{boxShadow:3,color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(d)?(0,f.jsxs)(C.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:h+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",P>=(0,p.LGx)(d)?we(P):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[b])||void 0===a?void 0:a.like)&&void 0!==r?r:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ke=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),Ie=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),_e=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.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,f.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"})})}),ze=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,f.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var Ee=t=>{const e=(0,v.Xd)("whatmoreShopId"),n=t.shareText,[o,r]=(0,i.useState)("Copy link"),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(window.innerWidth),[c,u,h,g]=(0,x.A)(),m=.1*g*(0,p.xkB)(e)*.5;(0,i.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),b=w?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.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,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,f.jsxs)("div",{onClick:()=>{"22907887"!==e&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:["22907887"!==e?(0,f.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,f.jsx)(fe.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,f.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:"22907887"===e?"Share On":"Whatmore"})]}),(0,f.jsx)(F.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ke,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"Whatsapp"})]}),"22907887"!==e&&(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(Ie,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(n[1]),r("Copied"),a("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(_e,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,color:l,margin:0,textAlign:"center"},children:o})]}),(0,f.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const i=(null===n||void 0===n||null===(e=n[0])||void 0===e?void 0:e.text)||"",o=null===n||void 0===n?void 0:n[1];try{navigator.share?await navigator.share({title:"Check this out",text:i,url:o}):(await navigator.clipboard.writeText(o),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,f.jsx)(ze,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"More"})]})]})]})})},Te=n(1941);var Ae=function(t){var e,n;const i=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,v.Xd)("whatmorePrimaryFont"),r=(0,v.Xd)("whatmoreShopId"),l=null!==(n=t.fontSize)&&void 0!==n?n:"8",[a]=(0,Te.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`,g=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(gt.N,{href:g,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.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,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.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,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:"Whatmore"})]})]})})},Ne=n(9879),Fe=n(9556),Pe=n(2209);var Le=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Be=t=>{var e;const n={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,r]=(0,i.useState)(!1),[l,a]=(0,i.useState)(null),[d,s]=(0,i.useState)(null),h=(0,i.useRef)(null),p=(0,i.useContext)(U.B);return(0,i.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,i.useEffect)(()=>{!o&&h.current&&s(h.current.offsetHeight)},[o]),(0,f.jsxs)(c.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:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.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,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Pe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Fe.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===n||void 0===n?void 0:n.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Le,{}),(0,f.jsx)(Fe.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:n.options.map((e,n)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var n;a(e),r(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(C.E,{py:5,color:"gray.800",children:e})},n))})})]})},Oe=n(4533),De=n(9935);var Re=t=>{var e,n;const[o,r]=(0,i.useState)(""),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),g=(0,v.Xd)("whatmoreSecondaryColor"),m=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,b=(0,i.useContext)(U.B),j=()=>{var e,n;(()=>{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,H.kz)({userInteractionType:X.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===(n=t.question)||void 0===n?void 0:n.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:b})):a("Please enter valid contact info.")},y=()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:b})};return(0,f.jsx)(dt.s,{bg:g,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,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{y()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(De.A,{sx:{color:u?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:g,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(dt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.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,f.jsx)("input",{fontFamily:m,type:"number"===(null===(n=t.question)||void 0===n?void 0:n.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&j()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(C.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:j,width:"50%",children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var We=t=>{const[e,n]=(0,i.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Re,{question:t.question,onEmailSubmit:t=>{n(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Ve=t=>{var e;const[n,o]=(0,i.useState)(null),r=t.questionIndex,l=t.questionList;if((0,i.useEffect)(()=>{if(!(r>=l.length))return()=>(0,Oe.Hm)()},[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(We,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Be,{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:n,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Qe=n(6118);const Me=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.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,f.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,f.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 He=function(t){const e=(0,v.Xd)("whatmoreShopId"),n=t.event,[i,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,me.s)(null===n||void 0===n?void 0:n.event_hls_url);if(t)try{const e=await fetch(t),i=await e.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${n.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Me,{iconSize:a})})})})},Xe=n(3305);function Ue(t){var e;const n=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,i.useContext)(U.B),[g]=(0,v.QN)("whatmoreSecondaryColor"),[m]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(m),b=null!==(e=(0,p.qAx)(m))&&void 0!==e?e:[g,w,g,w,g],j=(0,i.useRef)(null);(0,i.useEffect)(()=>{j.current&&j.current.play()},[]);const y=(0,me.s)(null===n||void 0===n?void 0:n.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:"video"==(0,st.B)(y)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===n||void 0===n?void 0:n.thumbnail_image,url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:y,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Ye=function(t){var e,n,o;const[r,a,d]=(0,Xe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g,m]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[y]=(0,v.QN)("whatmoreShopId"),S=(0,i.useContext)(Pn),{whatmoreEventsBrowsingTemplate:k}=(0,i.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,F=t.storySetId,L=t.isLast,B=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,i.useContext)(U.B),K=.1*E,[G,Z]=(0,i.useState)(!1),[J,tt]=(0,i.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,H.kz)({userInteractionType:X.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map(t=>`${t.product_link} \n`),n=(0,p.dzp)(y),i="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(n+`&text=${i}&type=phone_number`,"_blank")}const nt=t=>{it.current&&!it.current.contains(t.target)&&Z(!1)},it=(0,i.useRef)(null);(0,i.useEffect)(()=>(G?document.addEventListener("click",nt):document.removeEventListener("click",nt),()=>{document.removeEventListener("click",nt)}),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Dt.S,{userInteractionType:X.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(n=e[t.qIndex])||void 0===n?void 0:n.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Ve,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:it,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,f.jsx)(Ee,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.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:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(ge,{progress:xe(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Ue,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(P,{event:N,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!L})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(He,{event:N})})})]}),(0,p.oZc)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(y)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Se,{event:N})}),(0,ht.Yt)(k)&&"50529403072"===y&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})})]}),(0,p.iQ5)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Ot.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(y)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:N,onToggle:t=>{m("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),g&&(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:N,productClickHandler:D,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Ae,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},$e=n(5491),qe=n.n($e),Ke=n(6493);var Ge=function(t){var e,n,o,r,l,a,[d,w,C,b]=(0,x.A)();const[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(),[I,_]=(0,i.useState)(),[z,E]=(0,i.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),A=t.event,N=t.storyId,F=t.onBack,P=i.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,M=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,i.useContext)(U.B),{questionList:G}=(0,i.useContext)(Pn),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,i.useState)(),[et,nt]=(0,i.useState)({}),it=(t,e)=>{nt(n=>({...n,[t]:e}))};(0,i.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const ot="center";let rt;try{rt=qe()(()=>{R()},1e3,{leading:!0,trailing:!1})}catch(lt){console.log(lt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:b,height:C,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:ot,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:b/C,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(A)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const n=xe(t,e);W({watch_time:t,video_duration:e});const i=z.is_video_ended;n>=99&&B&&!i?(rt(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:i})},event:A,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Ye,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(T),T);_(t),k(e),y(!0),D(!0),(0,H.kz)({userInteractionType:X.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L,productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)(f.Fragment,{}),!0===j?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{y(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)("div",{})]})})},Ze=n(2039),Je=n(6613),tn=n(1085),en=n(5727);var nn=function(t){var[e,n,i,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,tn.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(en.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,tn.bo)()}}),(0,f.jsx)(C.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},on=n(3294),rn=n(9821);var ln=function(t){var e,n;const i=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[x,g]=(0,Vt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),w=null===(n=t.showOverlay)||void 0===n||n;function C(){!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&g(!x)}if((0,Je.MN)()&&0==m)return(0,rn._)()?(0,f.jsx)(nn,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.ij)(o)||(0,Ze.Il)(o))return(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.Th)(o)){var{status:b,bannerText:j,timeToStartInMins:y}=d.A.getEventStatus(o);if(b.name===a.A.LIVE.name)return(0,f.jsx)(ve,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:w},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},an=n(4806),dn=n.n(an),sn=n(2804),cn=n(6834);function un(t){var e;const[n,o]=(0,i.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(cn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"up")}}):(0,f.jsx)(sn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"down")}})})}var hn=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",l=null!==(i=t.fontSize)&&void 0!==i?i:50,a=t.handleClick;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,f.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,f.jsx)(un,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(un,{type:"right",onClick:a,fontSize:l})]})})},pn=n(964),vn=n(3330);var xn=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,i.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:n(o.current.activeIndex,e),activeIndex:n(o.current.activeIndex+1,e),nextIndex:n(o.current.activeIndex+2,e)}:{prevIndex:n(o.current.activeIndex-2,e),activeIndex:n(o.current.activeIndex-1,e),nextIndex:n(o.current.activeIndex,e)}},function(t){return n(o.current.activeIndex+t)}]};var gn=function(t,e){const n=(0,i.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var l=o-i.changedTouches[0].clientX,a=r-i.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 mn=function(t,e){const n=(0,i.useRef)(qe()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";n.current(o,l)}]},fn=n(4638);var wn=function(t){const e=t.events,n=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,i.useState)(!0),[b,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,S]=(0,i.useState)(!1),[k,I]=(0,i.useState)({}),{setCloseClickComponent:_}=(0,i.useContext)(Pn),{slideDirection:z}=(0,i.useContext)(Pn),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[A,N]=xn(n,e.length),[F,P]=gn(z,10),[L]=mn("vertical",10),[B,O]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:V}=(0,i.useContext)(U.B);function M(){O(!1)}function Y(t){M(),setTimeout(()=>{a(t)},500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=n;const{questionList:G}=(0,i.useContext)(Pn);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(N("right"),D.slideNext())}function J(t,e){N(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(dn(),{isOpen:B,onRequestClose:M,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(fn.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,Q.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(y)return;const e=P(t);e&&J(0,e)},onWheel:t=>{y||L(t,t=>{J(0,t)})},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{R(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products})},onSlideChange:t=>{var n;w?C(!1):(b||j(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}),n=e[A().activeIndex],g||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.lB)(n),"index"===T?((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t,null===n||void 0===n?void 0:n.location,null===V||void 0===V?void 0:V.userType)):T.startsWith("product")||"embed"===T?((0,vn.sendVideoViewEventToGA)(E,pn.DK,pn.K1),(0,Oe.Ch)(n.event_id,n.products,pn.DK,pn.K1,t)):T.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(E,pn.Sx,pn.rz),(0,Oe.Ch)(n.event_id,n.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t))})(),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map(i=>(0,f.jsx)(o.qr,{children:({isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a})=>{const d=i?"activeIndex":o?"prevIndex":"nextIndex",s=A()[d];"activeIndex"==d&&(K=Math.max(K,s),0==s&&(K=0));const c=(null===G||void 0===G?void 0:G.length)>0&&i&&l&&(s>n||K<n&&s>0)&&s>=K&&s%(0,p.uSp)(E)==n%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ln,{event:e[s],showQuestion:c,onBack:Y,isPlaying:1==e.length||i&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+i))}),e.length>1&&!y&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(hn,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},Cn=n(7119);n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042);const bn=({children:t,customClass:e,show:n,closeCallback:i})=>Cn.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:i}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);bn.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var jn=bn;n(1012);var yn=function(t){var e,[n,a,d,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(!1),[F,L]=(0,i.useState)(null);function B(){N(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),V=O.length,M=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,i.useRef)(0);function $(t){B(),setTimeout(()=>{R(t)},500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,i.useEffect)(()=>(N(!0),()=>{}),[]),y($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,i.useState)({}),tt=parseInt(Math.min(5,O.length)),et=("90518552861"===I||"63512346790"===I)&&tt>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:tt>=5;return(0,f.jsx)(jn,{show:A,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,Q.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{height:"fit-content",width:h*tt,position:("90518552861"===I||"63512346790"===I)&&tt>=5?"relative":void 0,children:[("90518552861"===I||"63512346790"===I)&&tt>=5&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,f.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,f.jsxs)(o.RC,{onInit:t=>{L(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:et,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;b?j(!1):(w||C(!0),e=O[t.activeIndex],g||m||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,vn.sendVideoViewEventToGA)(I,pn.DK,pn.K1),(0,Oe.Ch)(e.event_id,e.products,pn.DK,pn.K1,t)):_.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(I,pn.Sx,pn.rz),(0,Oe.Ch)(e.event_id,e.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t))})(),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:R})}),W.slice(D,O.length+D).map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:o,isDuplicate:r})=>{if(t)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!0,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=V-1&&(Y.current=1)}catch(l){console.log(l)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:M,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},Sn=n(340),kn=n(5089),In=n(572),_n=n(8603);var zn=function(t){const[e,n,i,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var En=function(t){var e;const n=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=n.events;var[h,g,m,w]=(0,x.A)();const[C,b]=(0,Vt.A)(),[j]=(0,v.QN)("isInDesignMode"),[y]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,i.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,i.useState)(null),[A,N]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,i.useContext)(U.B),[L,B]=xn(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function V(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[Q,M]=(0,i.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Q,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(D)+(0,ht.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);j||y||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(S,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map(e=>(0,f.jsx)(o.qr,{children:({isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(d){const o=e?"activeIndex":i?"prevIndex":"nextIndex",l=c[L()[o]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Ze.ij)(l)||(0,Ze.Il)(l)?(0,f.jsx)(Ge,{event:l,totalSiblingEvents:c.length,indexAmongSiblings:L()[o],onBack:O,isPlaying:d&&e&&r,isLast:!1,setLockSwiper:N,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{V("left")},midOpenSpaceClickHandler:()=>{!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&b(!C)},rightOpenSpaceClickHandler:()=>{V("right")},storyId:n.id,source:on.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+l.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(zn,{})})}},"event-story-view-slide-"+e))})})};var Tn=function(t){const e=t.onBack,n=t.eventsStories,a=t.initialStoryIndex,[d]=(0,v.QN)("isInDesignMode"),[s]=(0,v.QN)("isDemoBrand"),[c,h]=(0,i.useState)(!0),{setCloseClickComponent:p}=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),[g,m]=xn(a,n.length),[w,C]=gn("horizontal",50),[b]=mn("vertical",30),j=t.eventIndex,[y,S]=(0,i.useState)(!0),[k,I]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B);function E(){S(!1)}function T(t){E(),setTimeout(()=>{e(t)},500)}p(T);const A=_.landingLocationType,N=_.templateType;function F(t){k&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?k.slideNext():k.slidePrev())}function P(t,e){F(e)}return(0,f.jsx)(dn(),{isOpen:y,onRequestClose:E,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{w(t)},onTouchEnd:t=>{const e=C(t);e&&P(0,e)},onWheel:t=>{b(t,t=>{P(0,t)})},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,i;I(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta})},onSlideChange:t=>{var e,i;c?h(!1):(!function(t){const e=(0,ht.Wd)(A)+(0,ht.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);d||s||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(x,pn.TB,pn.OL),(0,Oe.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)})()}(n[g().activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map(t=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:e,isNext:i,isVisible:o,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(En,{stories:n[g()[l]],onBack:T,isActive:t&&o,isNext:i,isPrev:e,onStoryCompleteCallback:F,nextStories:n[g().nextIndex],prevStories:n[g().prevIndex],initialEventIndex:a==g()[l]?j:0},"event-story-view-"+n[g()[l]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var An=function(t){var e,n,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[g]=(0,v.QN)("whatmoreSecondaryColor"),m=t.event,w=(t.onBack,i.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),C=null!==(n=t.heightFactor)&&void 0!==n?n:1,j="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=C,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:j,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Ze.ij)(m)||(0,Ze.Il)(m)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",url:m.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:m}):(0,f.jsx)(b._,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+g+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:j,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Nn=function(t){var e,n,[a,d,h,p]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B),[E,T]=(0,i.useState)(!1),[A,N]=(0,i.useState)(null);function F(){T(!1)}t.events;const L=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(n=e.events[0])||void 0===n?void 0:n.brand;function W(t){F(),setTimeout(()=>{B(t)},500)}(0,i.useEffect)(()=>(T(!0),()=>{}),[]),y(W);const V=_.landingLocationType,Q=_.templateType;function M(t){A&&!A.isEnd&&("right"==t?A.slideNext():A.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(jn,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,n;N(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,n;b?j(!1):(w||C(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);g||m||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.OL),(0,Oe.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)})()}(O[t.activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:B})}),O.map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(En,{stories:t,onBack:W,isActive:n&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?L:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return i||o?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(An,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Fn=(0,_n.A)({key:"whatmore-css-sv"}),Pn=(0,i.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ln=function(t){var e,n,o;const[r,l,a]=(0,Xe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,i.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,i.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,g=t.onBack,m=t.eventsStories,w=t.initialStoryIndex,C=(0,p.M3_)(d),b="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:h.length>1?"horizontal":"vertical",j="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,i.useLayoutEffect)(()=>{(0,p.hpk)(d)&&(window.location.href.includes(C)?history.replaceState(null,"","#"+C):history.pushState(null,"","#"+C),window.addEventListener("popstate",()=>{window.location.href.includes(C)||g()}))},[]),delete kn.Ay.styles.global,c?(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(Nn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x}):(0,f.jsx)(Tn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x})})})}):(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(wn,{events:h,eventIndex:x,onBack:g}):(0,f.jsx)(yn,{events:h,eventIndex:x,onBack:g})})})})}},5144:function(t,e,n){n.d(e,{jd:function(){return o},so:function(){return r}});var i=n(8283);const o=`\n ${i.i7`
|
|
88
88
|
0% { transform: scale(1); }
|
|
89
89
|
50%, { transform: scale(0.95); }
|
|
90
90
|
100% { transform: scale(1); }
|
|
@@ -124,4 +124,4 @@
|
|
|
124
124
|
100% {
|
|
125
125
|
transform: scale(1);
|
|
126
126
|
}
|
|
127
|
-
`} 0.3s ease-in-out;\n`)},5242:function(t,e,n){var i=n(3731),o=n(1422),r=n(3247),l=n(7239),a=n(5388),d=n(4414);e.A=function(t){var e,n=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(n);return u.name===a.A.LIVE.name?(0,d.jsx)(r.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(r.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6125:function(){},6305:function(t,e,n){var i=n(9950),o=n(1348),r=n(5830),l=n(1052),a=n(140),d=n(8149),s=n(4688),c=n(3262),u=n(5551);e.A=function(t,e,n){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,g]=(0,i.useState)(null),m=(0,i.useRef)(null),{closeClickComponent:f}=(0,i.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,i.useContext)(u.B),[C,b]=(0,i.useState)({state:"init",cart_count:t});function j(t,e){b({state:t,cart_count:null!==e&&void 0!==e?e:C.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function y(t){const e=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);return 0==e.length?null:e[0].id}function S(t){var e=[],n=[],i=[];return t.variants.forEach(o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})}),e=e.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),n=n.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),i=i.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),[e,n,i]}function k(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(m.current&&m.current.length>=1){return m.current.filter(t=>t.available).length>=1}return!1}function z(t,e,n){p||v||(async()=>{(0,a.tO)(t,e,n)})()}function E(t,i){const a=y(t);if(!a)return void j("init",C.cart_count);j("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,n,e,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(z(n,e,1),j("init",C.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,()=>{},100,window.location.hostname,a,e.client_product_id,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout(()=>function(){const t=window.location.origin+"/cart";window.location.href=t}(),500),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})}return[C,function(t){const i=[];j("productVariantDetailsApiCallInProgress",null),Promise.all(n.products.map(t=>(0,d.M)(t,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const n=S(e);if(g(n),I(n)&&_()){const e=y([k(n[0]),k(n[1]),k(n[2])]);return e?(i.push(t),e):void j("init",C.cart_count)}}))).then(a=>{const d=a.filter(t=>void 0!=t);(0,l.cF)(d,1,(0,o.NCy)(h),h,n,e,t,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(i.forEach(t=>{z(n,t,1)}),j("init",C.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})})},j,x,function(t,n=!1){j("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const i=S(e);g(i),I(i)||n?_()?E([k(i[0]),k(i[1]),k(i[2])],t):j("errored",null):j("awaitingVariantSelection",null)}).catch(t=>{j("errored",null)})},E,function(t){var e,n,i,r;const l=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(n=l[0].compare_at_price)&&void 0!==n?n:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(i=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==i?i:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,n){var i=n(9950),o=n(5830);e.A=function(t){const[e,n]=(0,o.QN)("muted");return(0,i.useEffect)(()=>{},[]),[e,n]}},7035:function(t,e,n){n.d(e,{m:function(){return i}});const i={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off",swipe_more:"swipe for more"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"},tr:{swipe_more:"Daha fazlas\u0131 i\xe7in kayd\u0131r\u0131n"}}},7239:function(t,e,n){var i=n(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==i.A.LIVE.name)return{status:i.A.LIVE,bannerText:" "+i.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==i.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+n+" "+l),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,r=o/60,l=r/24;return n<=0?{status:i.A.COMPLETED,bannerText:" "+i.A.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:i.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:i.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,n){n.d(e,{c:function(){return a}});var i=n(6649),o=n(9950),r=(n(4365),n(4414));function l(t){const[e,n,o]=(0,i.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,n;const i=(0,o.useRef)(null),a=(0,o.useRef)(null),[d,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[h,p]=(0,o.useState)({top:"50%",left:"5px",right:"5px"}),v="90518552861"===t.shopId,x=()=>{const t=i.current,e=a.current;if(!t||!e)return;const n=t.scrollLeft,o=t.scrollWidth,r=t.clientWidth;s(n>10);u(!(n+r>=o-10)&&o>r);e.getBoundingClientRect(),t.getBoundingClientRect();p({top:"50%",left:"5px",right:"5px"})};return(0,o.useEffect)(()=>{const t=i.current;let e,n,o,r=!1,l=0,a=null;function d(t){a&&(cancelAnimationFrame(a),a=null),t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(r=!0,e=t.touches[0].clientX,n=e,o=Date.now(),l=0):(r=!0,e=t.clientX,n=e,o=Date.now(),l=0)}function s(i){if(!r)return;const a=i.touches?i.touches[0].clientX:i.clientX,d=Date.now(),s=d-o;t.style.pointerEvents="none";const c=(i.touches?1.2:2)*(e-a);t.scrollLeft+=c,s>0&&(l=(n-a)/s),e=a,n=a,o=d}function c(e){t.style.pointerEvents="auto",r=!1;const n=30*l;Math.abs(n)>1&&function(e){let n=e;const i=.95,o=.5;function l(){Math.abs(n)>o&&!r?(t.scrollLeft+=n,n*=i,a=requestAnimationFrame(l)):a=null}a=requestAnimationFrame(l)}(n)}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",d,{passive:!1}),t.addEventListener("touchmove",s,{passive:!1}),t.addEventListener("touchend",c,{passive:!1})),t.addEventListener("mousedown",d),document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),v&&(t.addEventListener("scroll",x),setTimeout(()=>{x()},100),window.addEventListener("resize",x))),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",d),t.removeEventListener("touchmove",s),t.removeEventListener("touchend",c)),t.removeEventListener("mousedown",d),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),v&&(t.removeEventListener("scroll",x),window.removeEventListener("resize",x)))}},[v]),(0,r.jsxs)("div",{ref:a,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[v&&d&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),v&&c&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("div",{ref:i,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto",scrollBehavior:"auto",scrollbarWidth:"none",msOverflowStyle:"none",touchAction:"pan-y"},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(n=t.dataList)||void 0===n?void 0:n.map((e,n)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n))})]})}},9408:function(t,e,n){n.r(e),n.d(e,{default:function(){return b}});var i=n(3247),o=n(1422),r=n(3731),l=n(6086),a=n(9810),d=n(9950),s=n(5830),c=n(140);var u=n(5144),h=n(4905),p=n(4688),v=n(1348),x=n(8149),g=n(5551),m=n(1351),f=n(6157),w=n(4414);function C(t){var e;const[n]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(i.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:n,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:n,fontSize:1.5*c}})})]})})}var b=function(t){var e,n,a,b;const[j]=(0,s.QN)("whatmorePrimaryFont"),[y]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,A]=(0,d.useState)(!1),[N,F]=(0,d.useState)({state:"initial"}),[P,L]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(g.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,n){y||S||(async()=>{(0,c.tO)(t,e,n)})()}(0,d.useEffect)(()=>{!async function(){var t,e,n,i;const o=await(0,x.M)(R,(0,v.NCy)(_),_);L({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(n=o.variants)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.price})}()},[]);const Q=null!==(n=t.width)&&void 0!==n?n:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(b=(0,v.FyB)(_))&&void 0!==b?b:2)+"px";return P.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{A(!0),V(D,R,1),(0,m.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout(()=>{B()},2e3)},children:"initial"===N.state?(0,w.jsx)(i.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,w.jsx)(o.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:j+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:R,baseFontSize:W,cartState:N,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
|
|
127
|
+
`} 0.3s ease-in-out;\n`)},5242:function(t,e,n){var i=n(3731),o=n(1422),r=n(3247),l=n(7239),a=n(5388),d=n(4414);e.A=function(t){var e,n=t.event,s=t.fontSize,c=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:u,bannerText:h,timeToStartInMins:p}=l.A.getEventStatus(n);return u.name===a.A.LIVE.name?(0,d.jsx)(r.az,{maxWidth:c,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"bold",color:"white",children:h})})}):(0,d.jsx)(r.az,{maxWidth:c,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:u.color,children:(0,d.jsx)(o.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,d.jsx)(i.E,{fontSize:s,fontWeight:"medium",children:h})})})}},5388:function(t,e){e.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6125:function(){},6305:function(t,e,n){var i=n(9950),o=n(1348),r=n(5830),l=n(1052),a=n(140),d=n(8149),s=n(4688),c=n(3262),u=n(5551);e.A=function(t,e,n){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,g]=(0,i.useState)(null),m=(0,i.useRef)(null),{closeClickComponent:f}=(0,i.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,i.useContext)(u.B),[C,b]=(0,i.useState)({state:"init",cart_count:t});function j(t,e){b({state:t,cart_count:null!==e&&void 0!==e?e:C.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function y(t){const e=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);return 0==e.length?null:e[0].id}function S(t){var e=[],n=[],i=[];return t.variants.forEach(o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})}),e=e.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),n=n.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),i=i.reduce((t,e,n)=>{var i=t.filter(t=>t.option==e.option);return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)},[]),[e,n,i]}function k(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(m.current&&m.current.length>=1){return m.current.filter(t=>t.available).length>=1}return!1}function z(t,e,n){p||v||(async()=>{(0,a.tO)(t,e,n)})()}function E(t,i){const a=y(t);if(!a)return void j("init",C.cart_count);j("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,n,e,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(z(n,e,1),j("init",C.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,()=>{},100,window.location.hostname,a,e.client_product_id,i,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout(()=>function(){const t=window.location.origin+"/cart";window.location.href=t}(),500),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})}return[C,function(t){const i=[];j("productVariantDetailsApiCallInProgress",null),Promise.all(n.products.map(t=>(0,d.M)(t,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const n=S(e);if(g(n),I(n)&&_()){const e=y([k(n[0]),k(n[1]),k(n[2])]);return e?(i.push(t),e):void j("init",C.cart_count)}}))).then(a=>{const d=a.filter(t=>void 0!=t);(0,l.cF)(d,1,(0,o.NCy)(h),h,n,e,t,null===n||void 0===n?void 0:n.location,null===w||void 0===w?void 0:w.userType).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>(i.forEach(t=>{z(n,t,1)}),j("init",C.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t)).catch(t=>{j("errored",null),console.error("Error while adding to cart:",t)})})},j,x,function(t,n=!1){j("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then(e=>{m.current=e.variants;const i=S(e);g(i),I(i)||n?_()?E([k(i[0]),k(i[1]),k(i[2])],t):j("errored",null):j("awaitingVariantSelection",null)}).catch(t=>{j("errored",null)})},E,function(t){var e,n,i,r;const l=m.current.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(n=l[0].compare_at_price)&&void 0!==n?n:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(i=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==i?i:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,n){var i=n(9950),o=n(5830);e.A=function(t){const[e,n]=(0,o.QN)("muted");return(0,i.useEffect)(()=>{},[]),[e,n]}},7035:function(t,e,n){n.d(e,{m:function(){return i}});const i={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off",swipe_more:"swipe for more"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"},tr:{swipe_more:"Daha fazlas\u0131 i\xe7in kayd\u0131r\u0131n"}}},7239:function(t,e,n){var i=n(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==i.A.LIVE.name)return{status:i.A.LIVE,bannerText:" "+i.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==i.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+n+" "+l),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,r=o/60,l=r/24;return n<=0?{status:i.A.COMPLETED,bannerText:" "+i.A.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:i.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:i.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:i.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,n){n.d(e,{c:function(){return a}});var i=n(6649),o=n(9950),r=(n(4365),n(4414));function l(t){const[e,n,o]=(0,i.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,n;const i=(0,o.useRef)(null),a=(0,o.useRef)(null),[d,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[h,p]=(0,o.useState)({top:"50%",left:"5px",right:"5px"}),v="90518552861"===t.shopId||"63512346790"===t.shopId,x=()=>{const t=i.current,e=a.current;if(!t||!e)return;const n=t.scrollLeft,o=t.scrollWidth,r=t.clientWidth;s(n>10);u(!(n+r>=o-10)&&o>r);e.getBoundingClientRect(),t.getBoundingClientRect();p({top:"50%",left:"5px",right:"5px"})};return(0,o.useEffect)(()=>{const t=i.current;let e,n,o,r=!1,l=0,a=null;function d(t){a&&(cancelAnimationFrame(a),a=null),t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(r=!0,e=t.touches[0].clientX,n=e,o=Date.now(),l=0):(r=!0,e=t.clientX,n=e,o=Date.now(),l=0)}function s(i){if(!r)return;const a=i.touches?i.touches[0].clientX:i.clientX,d=Date.now(),s=d-o;t.style.pointerEvents="none";const c=(i.touches?1.2:2)*(e-a);t.scrollLeft+=c,s>0&&(l=(n-a)/s),e=a,n=a,o=d}function c(e){t.style.pointerEvents="auto",r=!1;const n=30*l;Math.abs(n)>1&&function(e){let n=e;const i=.95,o=.5;function l(){Math.abs(n)>o&&!r?(t.scrollLeft+=n,n*=i,a=requestAnimationFrame(l)):a=null}a=requestAnimationFrame(l)}(n)}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",d,{passive:!1}),t.addEventListener("touchmove",s,{passive:!1}),t.addEventListener("touchend",c,{passive:!1})),t.addEventListener("mousedown",d),document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),v&&(t.addEventListener("scroll",x),setTimeout(()=>{x()},100),window.addEventListener("resize",x))),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",d),t.removeEventListener("touchmove",s),t.removeEventListener("touchend",c)),t.removeEventListener("mousedown",d),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),v&&(t.removeEventListener("scroll",x),window.removeEventListener("resize",x)))}},[v]),(0,r.jsxs)("div",{ref:a,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[v&&d&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),v&&c&&(0,r.jsx)("button",{onClick:()=>{const t=i.current;t&&t.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1.1)",t.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:t=>{t.currentTarget.style.transform="translateY(-50%) scale(1)",t.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,r.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("div",{ref:i,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto",scrollBehavior:"auto",scrollbarWidth:"none",msOverflowStyle:"none",touchAction:"pan-y"},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(n=t.dataList)||void 0===n?void 0:n.map((e,n)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n))})]})}},9408:function(t,e,n){n.r(e),n.d(e,{default:function(){return b}});var i=n(3247),o=n(1422),r=n(3731),l=n(6086),a=n(9810),d=n(9950),s=n(5830),c=n(140);var u=n(5144),h=n(4905),p=n(4688),v=n(1348),x=n(8149),g=n(5551),m=n(1351),f=n(6157),w=n(4414);function C(t){var e;const[n]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(i.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:n,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:n,fontSize:1.5*c}})})]})})}var b=function(t){var e,n,a,b;const[j]=(0,s.QN)("whatmorePrimaryFont"),[y]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,A]=(0,d.useState)(!1),[N,F]=(0,d.useState)({state:"initial"}),[P,L]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(g.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,n){y||S||(async()=>{(0,c.tO)(t,e,n)})()}(0,d.useEffect)(()=>{!async function(){var t,e,n,i;const o=await(0,x.M)(R,(0,v.NCy)(_),_);L({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(n=o.variants)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.price})}()},[]);const Q=null!==(n=t.width)&&void 0!==n?n:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(b=(0,v.FyB)(_))&&void 0!==b?b:2)+"px";return P.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{A(!0),V(D,R,1),(0,m.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout(()=>{B()},2e3)},children:"initial"===N.state?(0,w.jsx)(i.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{A(!1)},children:(0,w.jsx)(o.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:j+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(C,{event:D,product:R,baseFontSize:W,cartState:N,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
|