whatmore-react-assets 1.0.1829 → 1.0.1830
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{event-click-component.be3c7d44.chunk.js → event-click-component.2930df22.chunk.js} +1 -1
- package/static/js/homepage-carousel-view.c5d22c24.chunk.js +15 -0
- package/static/js/react-main-app.eed8743b.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/homepage-carousel-view.fe4276db.chunk.js +0 -15
- package/static/js/react-main-app.ea9341c5.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
100% {
|
|
66
66
|
transform: translateY(0%) rotate(0deg);
|
|
67
67
|
}
|
|
68
|
-
`} infinite 1.5s linear`;return(0,S.jsx)(E.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,S.jsxs)(P.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,S.jsx)(F.o,{animation:"vertical"===d?v:g,children:"vertical"===d?(0,S.jsx)($.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,S.jsx)(q.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{textShadow:"dark-lg",fontSize:h+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===K.m||void 0===K.m||null===(i=K.m[u])||void 0===i?void 0:i.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var Z=function(t){const[e,i]=(0,s.QN)("isFirstIndicatorRenderDone"),[o]=(0,s.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)(()=>{const t=setTimeout(()=>{i(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,S.jsx)(G,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},J=i(8781),tt=i(5144),et=i(4459);const it="15px";var ot=i(1351),nt=i(6157);var rt=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreSecondaryColor"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[u,p,h,v]=(0,c.A)(),[x,g]=(0,n.useState)(!1),m=t.product,f=t.event,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(y.AppContext),C=.1*h,b=.95*v,j=.05*v;return(0,S.jsx)(P.B,{direction:"row",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,S.jsx)(P.B,{direction:"column",width:"fit-content",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,S.jsx)(E.az,{width:b+"px",height:"fit-content",padding:"6px",marginTop:it,backgroundColor:o,borderRadius:"5px",animation:x?tt.jd:null,onAnimationEnd:()=>{g(!1)},marginBottom:(0,d.qw1)(l),onClick:()=>{g(!0),function(t,o){e||i||(async()=>{(0,a.Pb)(t,o),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:t,productList:[o],ctaList:t.cta})})()}(f,m),window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(m)},_hover:{backgroundColor:(0,et.YU)(o,8)},cursor:"pointer",children:(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*j+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,d.Qed)(l)})})})})})},lt=i(4892),at=i(8538),dt=i(7458),st=i(2159),ct=i(9537),ut=i(173),pt=(i(6125),i(4905));function ht(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c,u]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return(0,S.jsxs)(E.az,{display:"flex",width:v,height:x,padding:"2x",boxShadow:"lg",animation:c?tt.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.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),u(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",backgroundColor:m?(0,et.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),u(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function vt(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c,u]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height;return(0,S.jsx)(E.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(a)?r:(0,d.Wc_)(a),onClick:t=>{t.stopPropagation(),h(),u(!0)},animation:c?tt.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,S.jsx)(F.o,{maxWidth:"90%",children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,d.KPq)(a)?(0,d.KPq)(a):null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,d.KPq)(a),"\xa0"]})})})})}function xt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,S.jsx)(E.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function gt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,c=t.width,u=t.height,p=t.onCartIconClick;return(0,S.jsx)(E.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:()=>{p()},children:(0,d.DiI)(n)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var mt=function(t){var e,i,o,n,r,l,a;const[d]=(0,s.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,S.jsx)(xt,{baseFontSize:c,width:m,height:f}):"init"==p?0==h?(0,S.jsx)(vt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d}):u?(0,S.jsx)(gt,{onClick:g,baseFontSize:c,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,S.jsx)(vt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d}):(0,S.jsx)(ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===K.m||void 0===K.m||null===(a=K.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})},ft=i(6305),wt=i(7973),Ct=i(1615);var yt=function(t){var e,i;const o=t.productVariantOptions,r=null!==(e=t.width)&&void 0!==e?e:"100%",l=t.maxHeight,a=null!==(i=t.baseFontSize)&&void 0!==i?i:10,d=t.onOptionSelected,c=t.data,[u]=(0,s.QN)("whatmorePrimaryFont"),[p]=(0,s.QN)("websiteLanguage"),h=(0,n.useRef)(null);function v(t){if(!t||0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[x,g]=(0,n.useState)([v(o[0]),v(o[1]),v(o[2])]);function m(t,e){if(2==e)g([x[0],x[1],t]);else if(1==e){var i,o;g([x[0],t,null===c||void 0===c||null===(i=c.variants)||void 0===i||null===(o=i.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===o?void 0:o.option3])}else{var n,r,l,a,d,s;const e=null===c||void 0===c||null===(n=c.variants)||void 0===n||null===(r=n.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;g([t,null===c||void 0===c||null===(l=c.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===c||void 0===c||null===(d=c.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])}}(0,n.useEffect)(()=>{d(x)},[x]);const f=Math.max(10,.8*a),w=Math.max(11,.92*a);return(0,S.jsx)("div",{ref:h,style:{width:r,maxHeight:l,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",display:"flex",flexDirection:"column",gap:"12px"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:o.map((e,i)=>{var o,n,r,l;if(!e||0==e.length||"mlveda_country"==(null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.type))return null;const a=e.every(e=>{var i,o,n,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(o=i.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===n?void 0:n.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,S.jsxs)("div",{style:{width:"100%"},children:[(0,S.jsx)("div",{style:{fontFamily:u,fontSize:f+"px",letterSpacing:"1.6px",textTransform:"uppercase",color:"#9a9a9a",fontWeight:400,marginBottom:"6px"},children:null!==(n=null===K.m||void 0===K.m||null===(r=K.m[p])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==n?n:e[0].type}),(0,S.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:e.map((e,o)=>{if(!(0==i||!(null!==c&&void 0!==c&&c.variants)||c.variants.find(t=>t[`option${i}`]==(null===x||void 0===x?void 0:x[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option))))return null;const n=e.option===x[i],r=e.available;var l,d,s,p,h,v,g;return a?(0,S.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{width:"52px",height:"52px",borderRadius:"50%",overflow:"hidden",cursor:r?"pointer":"not-allowed",border:n?"2px solid #1a1a1a":"1px solid #e0e0e0",padding:n?"2px":"0",boxSizing:"border-box",opacity:r?1:.4,filter:r?"none":"grayscale(100%)",transition:"border 0.15s ease"},...r?(0,Ct.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:(0,S.jsx)("img",{alt:e.option,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%",display:"block"},src:(0,wt.b)(null!==(l=null===t||void 0===t||null===(d=t.finalArr)||void 0===d||null===(s=d.finalArr)||void 0===s||null===(p=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===p?void 0:p.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(v=h.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})},o):(0,S.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{fontFamily:u,fontSize:w+"px",lineHeight:"1",padding:"7px 12px",border:n?"1px solid #1a1a1a":"1px solid #dcdcdc",backgroundColor:n?"#1a1a1a":"transparent",color:n?"#ffffff":r?"#1a1a1a":"#c4c4c4",textDecoration:r?"none":"line-through",cursor:r?"pointer":"not-allowed",borderRadius:"2px",transition:"border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease",whiteSpace:"nowrap",userSelect:"none"},...r?(0,Ct.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:e.option},o)})})]},i)})})},bt=i(6594),jt=i(4833),St=i(3161);var kt=function(t){var e,i,o,r,l,p,h,v;const[x]=(0,s.QN)("isInDesignMode"),[g]=(0,s.QN)("isDemoBrand"),[m]=(0,s.QN)("whatmoreSecondaryColor"),f=(0,s.Xd)("whatmoreSecondaryColorShade900"),[w]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("whatmoreShopId"),[b,j,k,I]=(0,c.A)(),[z,_]=(0,n.useState)(!1),[F,T]=(0,n.useState)(t.product),A=(0,s.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)(y.AppContext),[B,O]=(0,n.useState)(null),[D,W]=(0,n.useState)(parseFloat(F.price)),[M,Q]=(0,n.useState)(parseFloat(F.compare_price)),[H,V]=(0,n.useState)(null===F||void 0===F?void 0:F.title),[X,Y]=(0,n.useState)(F.currency),[U,$]=(0,n.useState)(null),q=t.event,K=t.productClickHandler,{whatmoreIsPreviewMode:G}=(0,n.useContext)(y.AppContext),[Z,J]=(0,n.useState)(null),[rt,st]=(0,n.useState)(!1),[ct,ht]=(0,n.useState)(!1),[vt,xt,gt,ft,Ct,kt,It,zt]=t.useAddToCartStatesInstance,_t=t.productCartCounts&&t.productCartCounts[F.product_id]?t.productCartCounts[F.product_id]:vt.cart_count;if((0,n.useEffect)(()=>{(0,d.w4b)(C)?(0,bt.ck)(F,(0,d.NCy)(C),C).then(t=>{T(t),W(parseFloat(t.price)),Q(parseFloat(t.compare_price)),Y(t.currency),st(!0)}).catch(t=>{st(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,u.M)(F,(0,d.NCy)(C),C);$(l),W((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Q((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),st(!0)}catch(l){st(!0)}})(),!(0,d.E8r)(C)||!("in_stock"in q)||null!==q&&void 0!==q&&q.in_stock||gt("errored")},[]),(0,n.useEffect)(()=>{var t,e;const i=null!=U?null===U||void 0===U||null===(t=U.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===U||void 0===U||null===(e=U.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===U||void 0===U||null===(r=U.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:i,finalArr:o,finalArrExternal:n})},[U]),!rt)return(0,S.jsx)(S.Fragment,{});var Ft=.68*I,Et=.55*Ft,Tt=.4*Ft,At=Ft*(.55-.4),Nt=Ft+"px",Pt=Tt+"px",Lt=At+"px",Bt=.12*Tt;const Rt=(0,d.XQu)(C);function Ot(){window.location.href=function(t){return(0,d.BLb)(C)?t.product_link+"?"+(0,d.VCz)(C)+"&"+(0,d.Spk)(C)+"&"+(0,d.$lz)(C):t.product_link}(F)}function Dt(t,e){x||g||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==C?Ot():K(e),_(!0)}const Wt=(null===N||void 0===N?void 0:N.landingLocationType)||"index",Mt=(null===N||void 0===N?void 0:N.templateType)||"template-a",Qt=(0,jt.Wd)(Wt)+(0,jt.gf)(Mt)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id),Ht=(0,d.HKH)(C)&&t.activeProductsCount>1&&"init"==vt.state&&0==vt.cart_count;return(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:(0,d.qw1)(C),width:Nt,height:"fit-content",boxShadow:"round"==A?"dark-lg":null,onClick:()=>{Dt(q,F)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(C)),animation:z?tt.jd:tt.so,borderRadius:"round"==A?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,d.YcK)(C),borderColor:(0,d.Fwt)(C)},children:[(0,S.jsxs)(P.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,S.jsx)(E.az,{height:Pt,width:Pt,children:(0,S.jsx)(R._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,wt.b)(null!==(e=null!==(i=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===B||void 0===B?void 0:B[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===Z||void 0===Z||null===(l=Z.finalArrExternal)||void 0===l||null===(p=l.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===Z||void 0===Z?void 0:Z.position])))||void 0===p?void 0:p.src)&&void 0!==e?e:F.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(C)+" !important"}})}),(0,S.jsxs)(E.az,{height:Pt,width:Ft-Tt+"px",children:[(0,S.jsxs)(P.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,d.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Bt*(0,d.rh$)(C)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",w,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,at.v)("58396311733"===C?(0,St.$)(H):H,"prod-tile")}),(0,d.Nzx)(C)?(0,S.jsxs)(P.B,{className:"whatmore-product-atc-price",direction:(0,d.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==A?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[rt&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Bt*(0,d.rh$)(C)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,d.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,bt.Sb)("70756368633"===C?parseFloat(null===q||void 0===q||null===(h=q.products)||void 0===h||null===(v=h[0])||void 0===v?void 0:v.price):null!==D&&void 0!==D?D:null===F||void 0===F?void 0:F.price,"",C,X)," \xa0"]}),(0,dt.P)(D,M)&&rt?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Bt*(0,d.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,d.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,bt.Sb)(null!==M&&void 0!==M?M:null===F||void 0===F?void 0:F.compare_price,"",C,X)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(L.E,{fontSize:.82*Bt*(0,d.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:w+" !important",color:(0,d.Br1)(C)+" !important"},children:G?(0,d.p6A)(C):(0,d.i2h)(C)})]}),(0,d.UlM)(C)?(0,S.jsx)(P.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,S.jsxs)(P.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,S.jsx)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:f,sx:{borderRadius:"round"==A?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,d.SK$)(C)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:m},sx:{bg:m},children:(0,S.jsx)(L.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,S.jsx)(lt.A,{sx:{color:m,fontSize:1.3*Bt+"px"}})}),(0,S.jsx)(E.az,{width:"2px"})]})}):(0,S.jsx)(S.Fragment,{})]})]}),"awaitingVariantSelection"==vt.state&&null!=ft?(0,S.jsx)(E.az,{width:"100%",height:"fit-content",marginTop:.1*Et+"px",marginBottom:.1*Et+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Et*Rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{maxHeight:Et*Rt*.5+"px",width:Nt,height:"fit-content",event:q,product:F,finalArr:Z,data:U,productVariantOptions:ft,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(W(e.price/100),Q(e.compare_price/100),e.title.includes(" ")&&V(e.title))}(t)}})}):(0,S.jsx)(S.Fragment,{}),(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,S.jsx)(P.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,S.jsx)(mt,{baseFontSize:Ht?.2*At:.3*At,setProductVariantTitle:V,product:F,cartState:vt.state,cartCount:_t,updateCartState:gt,onClickAtc:t=>{"72603631788"!==C&&"5220302897"!==C||"init"!=vt.state?"init"==vt.state?(Ct(Qt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:[F],ctaList:q.cta})):"awaitingVariantSelection"==vt.state&&(kt(B,Qt),V(null===F||void 0===F?void 0:F.title)):Dt(q,F)},onCartIconClick:()=>{zt()}})}),Ht&&(0,S.jsx)(P.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*At,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,S.jsx)(pt.$,{disabled:ct,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${w} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{ht(!0),xt(Qt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:q.products,ctaList:q.cta}),ht(!1)}catch(e){console.error("Failed to add items:",e),ht(!1)}},children:ct?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*At*2.5+"px"}})}):(0,S.jsx)(L.E,{fontFamily:w,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),zt=i(8397);var _t=function(t){var e,i,o,n,r;const[l]=(0,s.QN)("isInDesignMode"),[c]=(0,s.QN)("isDemoBrand"),[u]=(0,s.QN)("whatmoreSecondaryColor"),[p]=(0,s.QN)("whatmorePrimaryFont"),[h]=(0,s.QN)("whatmoreShopId"),[v]=(0,s.QN)("websiteLanguage"),x=t.event,g=t.product,m=null!==(e=t.baseFontSize)&&void 0!==e?e:10,f=null!==(i=t.width)&&void 0!==i?i:"fit-content",w=null!==(o=t.height)&&void 0!==o?o:"fit-content";return(0,S.jsx)(zt.N,{href:g.product_link,color:u,onClick:()=>{!function(t,e){l||c||(async()=>{(0,a.TJ)(t,e)})()}(x,g)},children:(0,S.jsx)(E.az,{width:f,height:w,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{lineHeight:"100%",fontSize:1.4*m,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:u+" !important"},children:"MORE INFO"!=(0,d.KnH)(h)?(0,d.KnH)(h):null!==(n=null===K.m||void 0===K.m||null===(r=K.m[v])||void 0===r?void 0:r.more_info)&&void 0!==n?n:(0,d.KnH)(h)})}),(0,S.jsx)(F.o,{children:(0,S.jsx)(lt.A,{sx:{color:u,fontSize:1.4*m}})})]})})})},Ft=i(9408);function Et(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c]=(0,s.QN)("websiteLanguage"),[u,p]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,x=t.width,g=t.height,m=t.title;return(0,S.jsx)(E.az,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(a)?r:(0,d.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),p(!0)},animation:u?tt.jd:null,onAnimationEnd:()=>{p(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,S.jsxs)(L.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*h+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==m&&null!==(i=null===K.m||void 0===K.m||null===(o=K.m[c])||void 0===o?void 0:o.shop_now)&&void 0!==i?i:m,"\xa0"]})})})}var Tt=function(t){var e,i,o;const[n]=(0,s.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,u=null!==(i=t.width)&&void 0!==i?i:"100%",p=null!==(o=t.height)&&void 0!==o?o:"100%";return(0,S.jsx)(Et,{onClick:function(){c()},event:r,product:l,baseFontSize:a,width:u,height:p,title:(0,d.Qed)(n)})};var At=function(t){var e,i,o,r,l;const[p]=(0,s.QN)("isInDesignMode"),[h]=(0,s.QN)("isDemoBrand"),[v]=(0,s.QN)("whatmorePrimaryFont"),[x]=(0,s.QN)("whatmoreShopId"),[g,m,f,w]=(0,c.A)(),[C,b]=(0,n.useState)(!1),[j,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)(y.AppContext),[z,_]=(0,n.useState)(null),[T,A,N,B,O,D,W,M]=t.useAddToCartStatesInstance,[Q,H]=(0,n.useState)(parseFloat(j.price)),[V,X]=(0,n.useState)(parseFloat(j.compare_price)),[Y,U]=(0,n.useState)(j.currency),[$,q]=(0,n.useState)(!1),K=t.productCartCounts&&t.productCartCounts[j.product_id]?t.productCartCounts[j.product_id]:T.cart_count,G=t.event,Z=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,et=(null===I||void 0===I?void 0:I.landingLocationType)||"index",rt=(null===I||void 0===I?void 0:I.templateType)||"template-a",lt=(0,jt.Wd)(et)+(0,jt.gf)(rt)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);(0,n.useEffect)(()=>{(0,d.w4b)(x)?(0,bt.ck)(j,(0,d.NCy)(x),x).then(t=>{k(t),H(parseFloat(t.price)),X(parseFloat(t.compare_price)),U(t.currency)}):(async()=>{var t,e,i,o,n,r;const l=await(0,u.M)(j,(0,d.NCy)(x),x);H((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),X((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),q(!0)})()},[]);var st=w*J,ct=.3*st,ut=st+"px",pt=.7*ct,ht=.9*pt,vt=.12*ct;const xt=(0,d.XQu)(x);function gt(t,e){p||h||(async()=>{(0,a.Pb)(t,e)})(),Z(e),b(!0)}return(0,S.jsx)(P.B,{direction:"row",width:ut,height:"fit-content",justifyContent:"center",children:(0,S.jsx)(E.az,{marginTop:it,marginBottom:(0,d.qw1)(x),width:ut,onClick:t=>{},animation:C?tt.jd:null,borderRadius:"lg",onAnimationEnd:()=>{b(!1)},children:(0,S.jsxs)(P.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{gt(G,j)},children:[(0,S.jsx)(E.az,{height:pt+"px",width:pt+"px",children:(0,S.jsx)(P.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,S.jsx)(E.az,{height:ht+"px",width:ht+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,S.jsx)(R._,{width:ht+"px",height:ht+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,S.jsx)(E.az,{height:pt+"px",width:st-pt+"px",children:(0,S.jsxs)(P.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,S.jsx)(L.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*vt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:v+" !important",color:"white !important"},children:(0,at.v)(j.title.toString())}),(0,S.jsxs)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,d.Nzx)(x)?(0,S.jsxs)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[$&&(0,S.jsx)(L.E,{noOfLines:1,fontSize:1*vt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"white !important"},children:" "+(0,bt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(i=G.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===j||void 0===j?void 0:j.price,"",x,Y)}),(0,S.jsx)(F.o,{children:(0,dt.P)(j.price,j.compare_price)&&$?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.8*vt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(r=G.products)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.compare_price):null!==V&&void 0!==V?V:null===j||void 0===j?void 0:j.compare_price,"",x,Y)]}):(0,S.jsx)(S.Fragment,{})})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(F.o,{children:(0,S.jsx)(It.A,{storeId:x,productId:j.client_product_id,productLink:j.product_link,fontSize:1*vt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==T.state&&null!=B?(0,S.jsx)(E.az,{width:"100%",height:"fit-content",marginTop:.1*ct+"px",marginBottom:.1*ct+"px",overflowY:"auto",overflowX:"hidden",maxHeight:ct*xt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{width:ut,height:"fit-content",event:G,product:j,productVariantOptions:B,baseFontSize:1*vt,onOptionSelected:t=>{!function(t){_(t);const e=W(t);e&&(H(e.price/100),X(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,S.jsx)(S.Fragment,{}),(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,S.jsx)(E.az,{width:"100%",height:"100%",children:(0,S.jsx)(_t,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%"})}),(0,S.jsx)(E.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,d.ZzM)(x)?(0,S.jsx)(Tt,{baseFontSize:.8*vt,event:G,product:j,borderRadius:"md",onShopNowClick:t=>{gt(G,j)}}):(0,S.jsx)(S.Fragment,{children:"form"===(0,d.nWM)(x)?(0,S.jsx)(Ft.default,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,S.jsx)(mt,{baseFontSize:.8*vt,event:G,product:j,cartState:T.state,cartCount:K,borderRadius:"md",onClickAtc:t=>{"72603631788"!==x&&"5220302897"!==x||"init"!=T.state?"init"==T.state?(O(lt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:G,productList:[j],ctaList:G.cta})):"awaitingVariantSelection"==T.state&&D(z,lt):gt(G,j)},onCartIconClick:()=>{M()}})})})]})]})})})};var Nt=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreSecondaryColor"),r=(0,s.Xd)("whatmoreSecondaryColorShade900"),[l]=(0,s.QN)("whatmorePrimaryFont"),[p]=(0,s.QN)("whatmoreShopId"),[h,v,x,g]=(0,c.A)(),[m,f]=(0,n.useState)(!1),[w,C]=(0,n.useState)(t.product),b=(0,s.Xd)("whatmoreUITheme"),[j,k]=(0,n.useState)(!1),[I,z]=(0,n.useState)(parseFloat(w.price)),[_,F]=(0,n.useState)(parseFloat(w.compare_price)),[T,A]=(0,n.useState)(w.currency),[N,B]=(0,n.useState)(!0),O=t.event,[D,W]=(0,n.useState)();if((0,n.useEffect)(()=>{if("6573064236"===p&&null!==w&&void 0!==w&&w.product_link){const t=Math.ceil(parseFloat(w.price)),e=Math.ceil(parseFloat(w.compare_price));return z(t),F(e),void k(!0)}(0,d.w4b)(p)?(0,bt.ck)(w,(0,d.NCy)(p),p).then(t=>{C(t),z(parseFloat(t.price)),F(parseFloat(t.compare_price)),A(t.currency),k(!0)}).catch(t=>k(!0)):(async()=>{try{var t,e,i,o,n,r;const l=await(0,u.M)(w,(0,d.NCy)(p),p);W(l),z((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),F((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),k(!0)}catch(l){k(!0)}})()},[]),!j)return(0,S.jsx)(S.Fragment,{});var M=.68*g,Q=.4*M,H=M+"px",V=Q+"px",X=M*(.55-.4)+"px",U=.12*Q;(0,d.XQu)(p);const{whatmoreWidgetSourceDetails:$}=(0,n.useContext)(y.AppContext),q=null!==I&&void 0!==I?I:null===w||void 0===w?void 0:w.price,K="STR0IIHZXKW"!==p&&"STRU4RO77D5"!==p||q?" "+(0,bt.Sb)(q,"",p,T)+" ":"Price on request";function G(t){return(0,d.BLb)(p)?t.product_link+"?"+(0,d.VCz)(p)+"&"+(0,d.Spk)(p)+"&"+(0,d.$lz)(p):t.product_link}function Z(t,o){e||i||(async()=>{(0,a.Pb)(t,o),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:$,event:t,productList:[o],ctaList:t.cta})})(),f(!0)}return N?(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:(0,d.qw1)(p),width:H,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{Z(O,w),window.location.href=G(w)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(p)),animation:m?tt.jd:tt.so,borderRadius:"round"==b?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,d.YcK)(p),borderColor:(0,d.Fwt)(p)},children:[(0,S.jsxs)(P.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,S.jsx)(E.az,{height:V,width:V,children:(0,S.jsx)(R._,{width:V,height:V,src:(0,wt.b)(w.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(p)+" !important"}})}),(0,S.jsxs)(E.az,{height:V,width:M-Q+"px",children:[(0,S.jsxs)(P.B,{direction:"column",justifyContent:(0,d.UlM)(p)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,S.jsx)(L.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:l+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*U+"px !important"},children:(0,at.v)(null==w.title?"":w.title.toString(),"prod-tile")}),(0,d.Nzx)(p)?(0,S.jsxs)(P.B,{className:"whatmore-product-shopnow-price",direction:(0,d.vw2)(p)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[j&&(0,S.jsx)(L.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,d.uoB)(p)+" !important",margin:"0px !important"},children:K}),(0,dt.P)(I,_)&&j?(0,S.jsxs)(L.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,d.gld)(p)+" !important",margin:"0px !important"},children:[" ",(0,bt.Sb)(null!==_&&void 0!==_?_:null===w||void 0===w?void 0:w.compare_price,"",p,T)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),""!=(0,d.rsz)(p)&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*U+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,d.ogW)(p)+" !important",color:(0,d._zx)(p)+" !important",margin:"0px !important"},children:["\xa0",(0,d.rsz)(p)," \xa0"]})]}),(0,d.UlM)(p)?(0,S.jsx)(P.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,S.jsxs)(P.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,S.jsx)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==p||"STRNUBH0VYQ"==p||"STRAPB3KXSR"==p?(0,S.jsx)(Y.A,{sx:{boxShadow:3,fontSize:1.3*U,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),B(!1)}}):(0,S.jsx)(lt.A,{sx:{color:o,fontSize:1.3*U+"px"}})}),(0,S.jsx)(E.az,{width:"2px"})]})}):(0,S.jsx)(S.Fragment,{})]})]}),(0,d.Woi)(p)&&(0,S.jsx)(P.B,{direction:"row",width:"100%",height:X,justifyContent:"center",alignItems:"center",children:(0,S.jsx)(Tt,{baseFontSize:.8*U,event:O,product:w,borderRadius:"md",onShopNowClick:t=>{Z(O,w),window.location.href=G(w)}})})]}):(0,S.jsx)(S.Fragment,{})};function Pt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[r]=(0,s.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.onClick,p=t.width,h=t.height,v=t.title,x=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,S.jsx)(Lt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:c,width:p,height:h}):(0,S.jsxs)(E.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?tt.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",backgroundColor:x?(0,et.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),u(),a(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,d.Hfu)(r)+" !important"},children:["\xa0",v,"\xa0"]}),x?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function Lt(t){const[e]=(0,s.QN)("whatmoreSecondaryColor"),[i]=(0,s.QN)("whatmorePrimaryFont"),[o]=(0,s.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,c=t.baseFontSize;return(0,S.jsx)(P.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,S.jsx)(E.az,{className:"whatmore-add-to-cart-initial-button",width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?tt.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{lineHeight:"100%",fontSize:1.3*c+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,d.Hfu)(o)} !important`},children:(0,d.KPq)(o)})})})})})}function Bt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,S.jsx)(E.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,S.jsx)(P.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.2*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Rt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.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,S.jsx)(E.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=n&&"55194878152"!=n&&"12181504100"!=n?(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}}):(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ot=function(t){var e,i,o,n;const[r]=(0,s.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,p=t.cartCount,h=t.onClickAtc,v=t.onCartIconClick;function x(){h()}const g=null!==(o=t.width)&&void 0!==o?o:"100%",m=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==u?(0,S.jsx)(Bt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==u?0==p?(0,S.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):c?(0,S.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:p,width:g,height:m,onCartIconClick:v}):(0,S.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,S.jsx)(Pt,{onClick:x,cartState:u,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==u?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})};var Dt=function(t){var e,i,o,r,l,p;const[h]=(0,s.QN)("isInDesignMode"),[v]=(0,s.QN)("isDemoBrand"),[x]=(0,s.QN)("whatmorePrimaryFont"),[g]=(0,s.QN)("whatmoreShopId"),[m,f,w,C]=(0,c.A)(),[b,j]=(0,n.useState)(!1),[k,I]=(0,n.useState)(t.product),z=(0,s.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)(y.AppContext),[F,T]=(0,n.useState)(null),[A,N]=(0,n.useState)(parseFloat(k.price)),[B,O]=(0,n.useState)(parseFloat(k.compare_price)),[D,W]=(0,n.useState)(k.currency),[M,Q]=(0,n.useState)(null),H=t.event,V=t.productClickHandler,[X,Y]=(0,n.useState)(null),[U,$]=(0,n.useState)(!1),[q,K,G,Z,J,rt,lt,st]=t.useAddToCartStatesInstance,ct=t.productCartCounts&&t.productCartCounts[k.product_id]?t.productCartCounts[k.product_id]:q.cart_count,ut=(null===_||void 0===_?void 0:_.landingLocationType)||"index",pt=(null===_||void 0===_?void 0:_.templateType)||"template-a",ht=(0,jt.Wd)(ut)+(0,jt.gf)(pt)+"_"+(null===H||void 0===H?void 0:H.event_id);(0,n.useEffect)(()=>{(0,d.w4b)(g)?(0,bt.ck)(k,(0,d.NCy)(g),g).then(t=>{I(t),N(parseFloat(t.price)),O(parseFloat(t.compare_price)),W(t.currency),$(!0)}):(async()=>{var t,e,i,o,n,r;const l=await(0,u.M)(k,(0,d.NCy)(g),g);Q(l),N((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),$(!0)})(),!(0,d.E8r)(g)||null!==H&&void 0!==H&&H.in_stock||G("errored")},[]),(0,n.useEffect)(()=>{var t,e;const i=null!=M?null===M||void 0===M||null===(t=M.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===M||void 0===M||null===(e=M.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===M||void 0===M||null===(r=M.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));Y({position:i,finalArr:o,finalArrExternal:n})},[M]);var vt=.72*C,xt=.37*vt,gt=vt*(.48-.37),mt=.95*vt+"px",ft=xt+"px",Ct=.12*xt;function yt(){window.location.href=function(t){return(0,d.BLb)(g)?t.product_link+"?"+(0,d.VCz)(g)+"&"+(0,d.Spk)(g)+"&"+(0,d.$lz)(g):t.product_link}(k)}return(0,S.jsx)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:"24px",width:mt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){h||v||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==g?yt():V(e),j(!0)}(H,k)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(g)),animation:b?tt.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,d.YcK)(g),borderColor:(0,d.Fwt)(g)},children:(0,S.jsxs)(P.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,S.jsx)(E.az,{height:ft,width:ft,children:(0,S.jsx)(R._,{width:"100%",height:"100%",src:(0,wt.b)(null!==(e=null!==(i=null===X||void 0===X||null===(o=X.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===F||void 0===F?void 0:F[null===X||void 0===X?void 0:X.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===X||void 0===X||null===(l=X.finalArrExternal)||void 0===l||null===(p=l.find(t=>(null===t||void 0===t?void 0:t.color)==(null===F||void 0===F?void 0:F[null===X||void 0===X?void 0:X.position])))||void 0===p?void 0:p.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(g)+" !important"}})}),(0,S.jsx)(E.az,{height:ft,width:vt-xt+"px",children:(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",Ct+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,at.v)(null==k.title?"":k.title.toString())}),(0,d.Nzx)(g)?(0,S.jsxs)(P.B,{direction:(0,d.vw2)(g)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*Ct+"px"},children:[U&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Ct*(0,d.rh$)(g)+"px !important",lineHeight:"100%",sx:{fontFamily:x+" !important",color:(0,d.uoB)(g)+" !important",fontWeight:"bold"},children:[" "+(0,bt.Sb)(null!==A&&void 0!==A?A:null===k||void 0===k?void 0:k.price,"",g,D)," \xa0"]}),(0,dt.P)(A,B)&&U?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Ct*(0,d.rh$)(g)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,d.gld)(g)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==B&&void 0!==B?B:null===k||void 0===k?void 0:k.compare_price,"",g,D)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(Ot,{baseFontSize:.3*gt,event:H,product:k,cartState:q.state,cartCount:ct,updateCartState:G,onClickAtc:t=>{"init"===q.state?(J(ht,!0),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_,event:H,productList:[k],ctaList:H.cta})):"awaitingVariantSelection"===q.state&&V(k)},onCartIconClick:t=>{st()}})]})})]})})};function Wt(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[d,c]=(0,n.useState)(!1),u=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,h=t.width,v=t.height,x=t.title,g=t.showInProgressIcon;return(0,S.jsxs)(E.az,{display:"flex",width:h,height:v,gap:"8px",animation:d?tt.jd:null,onAnimationEnd:()=>{c(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.B,{direction:"row",flex:"1",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",backgroundColor:"transparent",border:"1px solid #b5b5b5",borderRadius:"8px",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),c(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*u+"px !important",fontWeight:"500 !important",sx:{fontFamily:l+" !important",color:"#1a1a1a !important"},children:["\xa0",null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",flex:"1",backgroundColor:g?"#3a3a3a":"#1a1a1a",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",borderRadius:"8px",onClick:t=>{t.stopPropagation(),p(),c(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*u+"px !important",fontWeight:"500 !important",sx:{fontFamily:l+" !important",color:"#ffffff !important"},children:["\xa0",x,"\xa0"]}),g?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*u+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function Mt(t){var e,i,o,r,l;const[a]=(0,s.QN)("whatmoreSecondaryColor"),[c]=(0,s.QN)("whatmorePrimaryFont"),[u]=(0,s.QN)("whatmoreShopId"),[p,h]=(0,n.useState)(!1),v=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,f=null!==(i=t.borderRadius)&&void 0!==i?i:"7px",w=null!==(o=t.paddingY)&&void 0!==o?o:"10px";return(0,S.jsx)(E.az,{width:g,height:m,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(u)?a:(0,d.Wc_)(u),borderRadius:f,onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:p?tt.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:w,children:(0,S.jsx)(F.o,{maxWidth:"90%",children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*v+"px !important",fontWeight:"semibold !important",sx:{fontFamily:c+" !important",color:(0,d.Hfu)(u)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,d.KPq)(u)?(0,d.KPq)(u):null!==(r=null===K.m||void 0===K.m||null===(l=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===l?void 0:l.add_to_cart)&&void 0!==r?r:(0,d.KPq)(u),"\xa0"]})})})})}function Qt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,S.jsx)(E.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ht(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,c=t.width,u=t.height,p=t.onCartIconClick;return(0,S.jsx)(E.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:(0,d.DiI)(n)?()=>{p()}:void 0,children:(0,d.DiI)(n)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Vt=function(t){var e,i,o,n,r,l,a;const[d]=(0,s.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,S.jsx)(Qt,{baseFontSize:c,width:m,height:f}):"init"==p?0==h?(0,S.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):u?(0,S.jsx)(Ht,{onClick:g,baseFontSize:c,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,S.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):(0,S.jsx)(Wt,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===K.m||void 0===K.m||null===(a=K.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})};var Xt=function(t){var e;const[i]=(0,s.QN)("isInDesignMode"),[o]=(0,s.QN)("isDemoBrand"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[p,h,v,x]=(0,c.A)(),[g,m]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,n.useContext)(y.AppContext),[w,C]=(0,n.useState)(null),[b,j]=(0,n.useState)(parseFloat(g.price)),[k,I]=(0,n.useState)(parseFloat(g.compare_price)),[z,_]=(0,n.useState)(null===g||void 0===g?void 0:g.title),[F,E]=(0,n.useState)(g.currency),[T,A]=(0,n.useState)(!1),[N,P]=(0,n.useState)(!1),[L]=(0,s.QN)("whatmoreSecondaryColor"),[B,R,O,D,W,M,Q,H]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:B.cart_count,X=t.event,Y=t.productClickHandler;if((0,n.useEffect)(()=>{(0,d.w4b)(l)?(0,bt.ck)(g,(0,d.NCy)(l),l).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,i,o,n,r,a,s;const c=await(0,u.M)(g,(0,d.NCy)(l),l);j((null!==(t=null===c||void 0===c||null===(e=c.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===c||void 0===c?void 0:c.price)/100),I(("63836192926"===l?null!==(o=null!==c&&void 0!==c&&null!==(n=c.variants)&&void 0!==n&&n[0]?c.variants[0].compare_at_price:null===c||void 0===c?void 0:c.compare_at_price)&&void 0!==o?o:0:null!==(r=null===c||void 0===c||null===(a=c.variants)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.compare_at_price)&&void 0!==r?r:null===c||void 0===c?void 0:c.compare_at_price)/100),A(!0)}catch(c){A(!0)}})()},[]),!T)return(0,S.jsx)(S.Fragment,{});const U=.765*x,$=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*U:U,q=.198*$,K=.0315*x,G=1.05*K,Z=Number((0,d.rh$)(l)),J=.85*K*(isNaN(Z)||0===Z?1:Z),tt=.75*K,et=(0,d.XQu)(l),it=(()=>{if((0,dt.P)(b,k)){const t=(k-b)/k*100;return Math.round(t)}return null})(),rt=(0,d.fpt)(l),lt=rt||L,st=(ct=lt,ut=.15,`rgba(${parseInt(ct.slice(1,3),16)}, ${parseInt(ct.slice(3,5),16)}, ${parseInt(ct.slice(5,7),16)}, ${ut})`);var ct,ut;function pt(){window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(g)}function ht(t,e){i||o||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==l?pt():Y(e)}const vt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",xt=(null===f||void 0===f?void 0:f.templateType)||"template-a",gt=(0,jt.Wd)(vt)+(0,jt.gf)(xt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id);return(0,S.jsx)("div",{style:{width:$+"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"===l)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);ht(X,g)},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:(0,S.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,S.jsx)("div",{style:{width:q+"px",height:q+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,S.jsx)("img",{src:(0,wt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,S.jsxs)("div",{style:{flex:1},children:[(0,S.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*G+"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,at.v)(z,"prod-tile")}),(0,d.Nzx)(l)&&(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*J+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,bt.Sb)(null!==b&&void 0!==b?b:null===g||void 0===g?void 0:g.price,"",l,F)}),(0,dt.P)(b,k)&&T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:J+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,bt.Sb)(null!==k&&void 0!==k?k:null===g||void 0===g?void 0:g.compare_price,"",l,F)}),it&&(0,d.mOK)(l)&&(0,S.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",lt,"important"),t.style.setProperty("background-color",st,"important"))},style:{fontSize:.9*J+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[it,"% OFF"]})]})]})]}),"awaitingVariantSelection"==B.state&&null!=D&&(0,S.jsx)("div",{style:{width:"100%",maxHeight:.3*$*et+"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,S.jsx)(yt,{width:"100%",height:"fit-content",event:X,product:g,productVariantOptions:D,baseFontSize:.9*K,onOptionSelected:t=>{!function(t){C(t);const e=Q(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,S.jsx)("div",{style:{width:"100%"},children:(0,S.jsx)(Vt,{baseFontSize:1.1*tt,setProductVariantTitle:_,product:g,cartState:B.state,cartCount:V,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==l&&"72603631788"!==l&&"5220302897"!==l&&"57217876118"!==l?"init"==B.state?(W(gt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==B.state&&(M(w,gt),_(null===g||void 0===g?void 0:g.title)):ht(X,g)},onCartIconClick:()=>{H()}})})]})})};var Yt=function(t){var e;const[i]=(0,s.QN)("isInDesignMode"),[o]=(0,s.QN)("isDemoBrand"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[p,h,v,x]=(0,c.A)(),[g,m]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,n.useContext)(y.AppContext),[w,C]=(0,n.useState)(null),[b,j]=(0,n.useState)(parseFloat(g.price)),[k,I]=(0,n.useState)(parseFloat(g.compare_price)),[z,_]=(0,n.useState)(null===g||void 0===g?void 0:g.title),[F,E]=(0,n.useState)(g.currency),[T,A]=(0,n.useState)(!1),[N,P]=(0,n.useState)(!1),[L]=(0,s.QN)("whatmoreSecondaryColor"),[B,R,O,D,W,M,Q,H]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:B.cart_count,X=t.event,Y=t.productClickHandler;if((0,n.useEffect)(()=>{(0,d.w4b)(l)?(0,bt.ck)(g,(0,d.NCy)(l),l).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,i,o,n,r;const a=await(0,u.M)(g,(0,d.NCy)(l),l);j((null!==(t=null===a||void 0===a||null===(e=a.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===a||void 0===a?void 0:a.price)/100),I((null!==(o=null===a||void 0===a||null===(n=a.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===a||void 0===a?void 0:a.compare_at_price)/100),A(!0)}catch(a){A(!0)}})()},[]),!T)return(0,S.jsx)(S.Fragment,{});const U=.765*x,$=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*U:U,q=.0315*x,K=1.05*q,G=Number((0,d.rh$)(l)),Z=.85*q*(isNaN(G)||0===G?1:G),J=.75*q,tt=(0,d.XQu)(l),et=Number(tt),it=Math.max(240,Number.isFinite(et)?.3*$*et:0),rt=(()=>{if((0,dt.P)(b,k)){const t=(k-b)/k*100;return Math.round(t)}return null})(),lt=(0,d.fpt)(l),st=lt||L,ct=(ut=st,pt=.15,`rgba(${parseInt(ut.slice(1,3),16)}, ${parseInt(ut.slice(3,5),16)}, ${parseInt(ut.slice(5,7),16)}, ${pt})`);var ut,pt;function ht(){window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(g)}function vt(t,e){i||o||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==l?ht():Y(e)}const xt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",gt=(null===f||void 0===f?void 0:f.templateType)||"template-a",mt=(0,jt.Wd)(xt)+(0,jt.gf)(gt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id),ft=Math.min($,480),Ct=.3*ft,St=.46*ft,kt=(0,S.jsx)(Vt,{baseFontSize:1.1*J,setProductVariantTitle:_,product:g,cartState:B.state,cartCount:V,updateCartState:O,isPremium:!0,borderRadius:"2px",paddingY:"6px",onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==l&&"72603631788"!==l&&"5220302897"!==l&&"57217876118"!==l?"init"==B.state?(W(mt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==B.state&&(M(w,mt),_(null===g||void 0===g?void 0:g.title)):vt(X,g)},onCartIconClick:()=>{H()}});return(0,S.jsxs)("div",{style:{width:$+"px",maxWidth:"480px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.4)",backdropFilter:"blur(12px)",border:"none",borderRadius:"4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",position:"relative",zIndex:10},onClick:()=>{if("22907887"===l)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);vt(X,g)},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[(0,S.jsxs)("div",{style:{display:"flex",alignItems:"stretch",width:"100%"},children:[(0,S.jsx)("div",{style:{width:Ct+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8"},children:(0,S.jsx)("img",{src:(0,wt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,S.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:"12px",padding:"16px 18px"},children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*K+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,at.v)(z,"prod-tile")}),(0,d.Nzx)(l)&&(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"nowrap",minWidth:0,overflow:"hidden",whiteSpace:"nowrap"},children:[T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*Z+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,bt.Sb)(null!==b&&void 0!==b?b:null===g||void 0===g?void 0:g.price,"",l,F)}),(0,dt.P)(b,k)&&T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:Z+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,bt.Sb)(null!==k&&void 0!==k?k:null===g||void 0===g?void 0:g.compare_price,"",l,F)}),rt&&(0,d.mOK)(l)&&(0,S.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",st,"important"),t.style.setProperty("background-color",ct,"important"))},style:{fontSize:.9*Z+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[rt,"% OFF"]})]})]}),"awaitingVariantSelection"!=B.state&&(0,S.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,S.jsx)("div",{style:{width:St+"px",maxWidth:"100%"},children:kt})})]})]}),"awaitingVariantSelection"==B.state&&null!=D&&(0,S.jsxs)("div",{style:{width:"100%",backgroundColor:"rgba(248, 248, 248, 0.8)",borderTop:"1px solid #e0e0e0",boxSizing:"border-box"},children:[(0,S.jsx)("div",{style:{width:"100%",padding:"4px 16px 0",boxSizing:"border-box"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{width:"100%",height:"fit-content",maxHeight:it+"px",event:X,product:g,productVariantOptions:D,baseFontSize:.9*q,onOptionSelected:t=>{!function(t){C(t);const e=Q(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px 16px 12px",boxSizing:"border-box"},children:(0,S.jsx)("div",{style:{width:St+"px",maxWidth:"100%"},children:kt})})]})]})};var Ut=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreShopId"),[r,l,u,p]=(0,c.A)(),h=t.product,v=t.event,{whatmoreWidgetSourceDetails:x}=(0,n.useContext)(y.AppContext),[g,m,f,w,C,b,j,k]=t.useAddToCartStatesInstance,I=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:g.cart_count,z=(null===x||void 0===x?void 0:x.landingLocationType)||"index",_=(null===x||void 0===x?void 0:x.templateType)||"template-a",F=(0,jt.Wd)(z)+(0,jt.gf)(_)+"_"+(null===v||void 0===v?void 0:v.event_id);(0,n.useEffect)(()=>{!(0,d.E8r)(o)||null!==v&&void 0!==v&&v.in_stock||f("errored")},[]);const T=.1*u,A=.95*p,N=.04*p;return(0,S.jsx)(P.B,{direction:"row",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",className:"chakra-stack whatmore-minimal-atc-outer",children:(0,S.jsx)(P.B,{direction:"column",width:"fit-content",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",className:"chakra-stack whatmore-minimal-atc-inner",children:(0,S.jsx)(E.az,{width:A+"px",height:"fit-content",marginTop:"35px",marginBottom:"10px",display:"flex",justifyContent:"center",alignItems:"center",className:"whatmore-minimal-atc-button-container",children:(0,S.jsx)(Ot,{baseFontSize:N,event:v,product:h,cartState:g.state,cartCount:I,updateCartState:f,onClickAtc:t=>{"init"===g.state&&(e||i||(async()=>{(0,a.Pb)(v,h),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:x,event:v,productList:[h],ctaList:v.cta})})(),C(F,!0))},onCartIconClick:t=>{k()}})})})})};var $t=function(t){const[e]=(0,s.QN)("whatmoreShopId"),[i]=(0,s.QN)("isWhatmoreWebsite"),o=(0,d.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,c=t.onCartCountChange,[u,...p]=(0,ft.A)(0,l,t.event),h=[u,...p];return(0,n.useEffect)(()=>{let t=u.cart_count;a>u.cart_count&&(t=a+1),c&&c(l.product_id,t)},[u.cart_count]),i?(0,S.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,S.jsx)(Xt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"navigation-tile"==o?(0,S.jsx)(Yt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"broad-tile"==o?(0,S.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"broad-tile-no-cta"==o?(0,S.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,S.jsx)(Dt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"link_only"==o?(0,S.jsx)(rt,{product:t.product,event:t.event}):"minimal_atc_button"==o?(0,S.jsx)(Ut,{product:t.product,event:t.event,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"narrow-tile"==o?(0,S.jsx)(At,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):(0,S.jsx)(S.Fragment,{})},qt=i(1079),Kt=i(7802),Gt=i(2979);var Zt=function(t){var e,i,o;const[a,u,p,h]=(0,c.A)(),[v]=(0,s.QN)("whatmoreShopId"),x=(0,s.Xd)("isInDesignMode"),g=(0,s.Xd)("isDemoBrand"),m=t.event,f=t.productClickHandler,w=t.productCartCounts,C=t.onCartCountChange,y=t.onActiveProductChange,b=(0,d.Vpi)(v),j="navigation-tile"==b,k=(0,n.useRef)(null),I=(0,n.useRef)(null),[z,_]=(0,n.useState)(80);(0,n.useEffect)(()=>{const t=requestAnimationFrame(()=>{if(I.current){const t=I.current.getBoundingClientRect().height;t>0&&_(t)}});return()=>cancelAnimationFrame(t)},[]);const T=20+z+"px",A=("STRDOIDF6O7"===v?[t.event.products[0]]:t.event.products).filter(t=>"oos"!=t.product_status||(0,d.$7F)(v)).length,N=(0,d.Woi)(v)&&void 0!=t.event.cta?t.event.cta.filter(t=>{var e;return""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()}).length:0,L=j&&A+N>1,B=null!==(e=null===(i=m.products)||void 0===i||null===(o=i.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===o?void 0:o.length)&&void 0!==e?e:0;if(!(0,Kt.Z_)(m))return(0,S.jsx)(S.Fragment,{});if(1==m.products.length&&(void 0==m.cta||0==m.cta.length)){const t=m.products[0];return(0,d.uJl)(v)?(0,S.jsx)(P.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,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)(F.o,{children:(0,S.jsx)(At,{event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})}):(0,S.jsx)(P.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,S.jsx)(F.o,{children:(0,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)($t,{activeProductsCount:1,event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})})}return(0,S.jsx)(F.o,{children:(0,S.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsxs)(E.az,{width:h+"px",position:"relative",display:"flex",alignItems:"flex-end",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:[L&&(0,S.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=k.current)||void 0===e||e.slidePrev()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:T,marginBottom:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Previous product",children:(0,S.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M9 3L3 12L9 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,S.jsx)("div",{style:{flex:"1 1 auto",minWidth:0,overflow:"hidden"},children:(0,S.jsxs)(r.RC,{className:"product-tile swiper-slide",slidesPerView:1==m.products.length?1:L?1.15:1.4,spaceBetween:L?12:0,initialSlide:0,centeredSlides:!L&&!(0,d.TYM)(v),modules:[l.s3,l.Jq,l.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,onSwiper:t=>{k.current=t},onSlideChange:t=>{y&&y(t.activeIndex)},children:[("STRDOIDF6O7"===v?[m.products[0]]:m.products).map((t,e)=>("oos"!=t.product_status||(0,d.$7F)(v))&&(0,S.jsx)(r.qr,{children:(0,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)(P.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",paddingBottom:L?"20px":"0",children:(0,S.jsx)("div",{ref:0===e?I:null,children:(0,S.jsx)($t,{activeProductsCount:B,event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})})},m.event_id+t.product_id)),(0,d.Woi)(v)&&void 0!=m.cta&&m.cta.map(t=>{var e;return(0,S.jsx)(S.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,S.jsx)(r.qr,{children:(0,S.jsx)(P.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,S.jsx)(qt.A,{fontFactor:.75,cta:t},m.event_id+t.cta_id)})},m.event_id+t.cta_id)})})]})}),L&&(0,S.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=k.current)||void 0===e||e.slideNext()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:T,marginBottom:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Next product",children:(0,S.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M3 3L9 12L3 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})};var Jt=function(t){const[e,i]=(0,s.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange,d=t.onActiveProductChange;return(0,n.useContext)(x.p).isIOS,(0,S.jsx)(Zt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a,onActiveProductChange:d},o.event_id)};function te(t){const[e,i,o,r]=(0,c.A)(),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[u,p]=(0,n.useState)(""),h=t.data,v=(t.event,t.product,t.setShowOptionsChart);var x=.4*r*.8*.13;(0,n.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,i,o,n,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.layout)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const g=`${D.i7`
|
|
68
|
+
`} infinite 1.5s linear`;return(0,S.jsx)(E.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,S.jsxs)(P.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,S.jsx)(F.o,{animation:"vertical"===d?v:g,children:"vertical"===d?(0,S.jsx)($.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,S.jsx)(q.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{textShadow:"dark-lg",fontSize:h+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===K.m||void 0===K.m||null===(i=K.m[u])||void 0===i?void 0:i.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var Z=function(t){const[e,i]=(0,s.QN)("isFirstIndicatorRenderDone"),[o]=(0,s.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)(()=>{const t=setTimeout(()=>{i(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,S.jsx)(G,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},J=i(8781),tt=i(5144),et=i(4459);const it="15px";var ot=i(1351),nt=i(6157);var rt=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreSecondaryColor"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[u,p,h,v]=(0,c.A)(),[x,g]=(0,n.useState)(!1),m=t.product,f=t.event,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(y.AppContext),C=.1*h,b=.95*v,j=.05*v;return(0,S.jsx)(P.B,{direction:"row",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,S.jsx)(P.B,{direction:"column",width:"fit-content",height:C,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,S.jsx)(E.az,{width:b+"px",height:"fit-content",padding:"6px",marginTop:it,backgroundColor:o,borderRadius:"5px",animation:x?tt.jd:null,onAnimationEnd:()=>{g(!1)},marginBottom:(0,d.qw1)(l),onClick:()=>{g(!0),function(t,o){e||i||(async()=>{(0,a.Pb)(t,o),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:w,event:t,productList:[o],ctaList:t.cta})})()}(f,m),window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(m)},_hover:{backgroundColor:(0,et.YU)(o,8)},cursor:"pointer",children:(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*j+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,d.Qed)(l)})})})})})},lt=i(4892),at=i(8538),dt=i(7458),st=i(2159),ct=i(9537),ut=i(173),pt=(i(6125),i(4905));function ht(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c,u]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return(0,S.jsxs)(E.az,{display:"flex",width:v,height:x,padding:"2x",boxShadow:"lg",animation:c?tt.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.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),u(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",backgroundColor:m?(0,et.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),u(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function vt(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c,u]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,v=t.width,x=t.height;return(0,S.jsx)(E.az,{width:v,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(a)?r:(0,d.Wc_)(a),onClick:t=>{t.stopPropagation(),h(),u(!0)},animation:c?tt.jd:null,onAnimationEnd:()=>{u(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,S.jsx)(F.o,{maxWidth:"90%",children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,d.KPq)(a)?(0,d.KPq)(a):null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,d.KPq)(a),"\xa0"]})})})})}function xt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,S.jsx)(E.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function gt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,c=t.width,u=t.height,p=t.onCartIconClick;return(0,S.jsx)(E.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:()=>{p()},children:(0,d.DiI)(n)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var mt=function(t){var e,i,o,n,r,l,a;const[d]=(0,s.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,S.jsx)(xt,{baseFontSize:c,width:m,height:f}):"init"==p?0==h?(0,S.jsx)(vt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d}):u?(0,S.jsx)(gt,{onClick:g,baseFontSize:c,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,S.jsx)(vt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d}):(0,S.jsx)(ht,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===K.m||void 0===K.m||null===(a=K.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})},ft=i(6305),wt=i(7973),Ct=i(1615);var yt=function(t){var e,i;const o=t.productVariantOptions,r=null!==(e=t.width)&&void 0!==e?e:"100%",l=t.maxHeight,a=null!==(i=t.baseFontSize)&&void 0!==i?i:10,d=t.onOptionSelected,c=t.data,[u]=(0,s.QN)("whatmorePrimaryFont"),[p]=(0,s.QN)("websiteLanguage"),h=(0,n.useRef)(null);function v(t){if(!t||0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[x,g]=(0,n.useState)([v(o[0]),v(o[1]),v(o[2])]);function m(t,e){if(2==e)g([x[0],x[1],t]);else if(1==e){var i,o;g([x[0],t,null===c||void 0===c||null===(i=c.variants)||void 0===i||null===(o=i.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===o?void 0:o.option3])}else{var n,r,l,a,d,s;const e=null===c||void 0===c||null===(n=c.variants)||void 0===n||null===(r=n.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;g([t,null===c||void 0===c||null===(l=c.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===c||void 0===c||null===(d=c.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])}}(0,n.useEffect)(()=>{d(x)},[x]);const f=Math.max(10,.8*a),w=Math.max(11,.92*a);return(0,S.jsx)("div",{ref:h,style:{width:r,maxHeight:l,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",display:"flex",flexDirection:"column",gap:"12px"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:o.map((e,i)=>{var o,n,r,l;if(!e||0==e.length||"mlveda_country"==(null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.type))return null;const a=e.every(e=>{var i,o,n,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(o=i.finalArr)||void 0===o||null===(n=o.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===n?void 0:n.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,S.jsxs)("div",{style:{width:"100%"},children:[(0,S.jsx)("div",{style:{fontFamily:u,fontSize:f+"px",letterSpacing:"1.6px",textTransform:"uppercase",color:"#9a9a9a",fontWeight:400,marginBottom:"6px"},children:null!==(n=null===K.m||void 0===K.m||null===(r=K.m[p])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==n?n:e[0].type}),(0,S.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:e.map((e,o)=>{if(!(0==i||!(null!==c&&void 0!==c&&c.variants)||c.variants.find(t=>t[`option${i}`]==(null===x||void 0===x?void 0:x[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option))))return null;const n=e.option===x[i],r=e.available;var l,d,s,p,h,v,g;return a?(0,S.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{width:"52px",height:"52px",borderRadius:"50%",overflow:"hidden",cursor:r?"pointer":"not-allowed",border:n?"2px solid #1a1a1a":"1px solid #e0e0e0",padding:n?"2px":"0",boxSizing:"border-box",opacity:r?1:.4,filter:r?"none":"grayscale(100%)",transition:"border 0.15s ease"},...r?(0,Ct.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:(0,S.jsx)("img",{alt:e.option,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%",display:"block"},src:(0,wt.b)(null!==(l=null===t||void 0===t||null===(d=t.finalArr)||void 0===d||null===(s=d.finalArr)||void 0===s||null===(p=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===p?void 0:p.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(v=h.finalArrExternal)||void 0===v||null===(g=v.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===g?void 0:g.optionsrc,"?width=400&height=400")})},o):(0,S.jsx)("div",{onClick:t=>{t.stopPropagation(),r&&m(e.option,i)},style:{fontFamily:u,fontSize:w+"px",lineHeight:"1",padding:"7px 12px",border:n?"1px solid #1a1a1a":"1px solid #dcdcdc",backgroundColor:n?"#1a1a1a":"transparent",color:n?"#ffffff":r?"#1a1a1a":"#c4c4c4",textDecoration:r?"none":"line-through",cursor:r?"pointer":"not-allowed",borderRadius:"2px",transition:"border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease",whiteSpace:"nowrap",userSelect:"none"},...r?(0,Ct.i)(e.option):{"aria-label":e.option+" (unavailable)","aria-disabled":!0},children:e.option},o)})})]},i)})})},bt=i(6594),jt=i(4833),St=i(3161);var kt=function(t){var e,i,o,r,l,p,h,v;const[x]=(0,s.QN)("isInDesignMode"),[g]=(0,s.QN)("isDemoBrand"),[m]=(0,s.QN)("whatmoreSecondaryColor"),f=(0,s.Xd)("whatmoreSecondaryColorShade900"),[w]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("whatmoreShopId"),[b,j,k,I]=(0,c.A)(),[z,_]=(0,n.useState)(!1),[F,T]=(0,n.useState)(t.product),A=(0,s.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)(y.AppContext),[B,O]=(0,n.useState)(null),[D,W]=(0,n.useState)(parseFloat(F.price)),[M,Q]=(0,n.useState)(parseFloat(F.compare_price)),[H,V]=(0,n.useState)(null===F||void 0===F?void 0:F.title),[X,Y]=(0,n.useState)(F.currency),[U,$]=(0,n.useState)(null),q=t.event,K=t.productClickHandler,{whatmoreIsPreviewMode:G}=(0,n.useContext)(y.AppContext),[Z,J]=(0,n.useState)(null),[rt,st]=(0,n.useState)(!1),[ct,ht]=(0,n.useState)(!1),[vt,xt,gt,ft,Ct,kt,It,zt]=t.useAddToCartStatesInstance,_t=t.productCartCounts&&t.productCartCounts[F.product_id]?t.productCartCounts[F.product_id]:vt.cart_count;if((0,n.useEffect)(()=>{(0,d.w4b)(C)?(0,bt.ck)(F,(0,d.NCy)(C),C).then(t=>{T(t),W(parseFloat(t.price)),Q(parseFloat(t.compare_price)),Y(t.currency),st(!0)}).catch(t=>{st(!0)}):(async()=>{try{var t,e,i,o,n,r;const l=await(0,u.M)(F,(0,d.NCy)(C),C);$(l),W((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Q((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),st(!0)}catch(l){st(!0)}})(),!(0,d.E8r)(C)||!("in_stock"in q)||null!==q&&void 0!==q&&q.in_stock||gt("errored")},[]),(0,n.useEffect)(()=>{var t,e;const i=null!=U?null===U||void 0===U||null===(t=U.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===U||void 0===U||null===(e=U.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===U||void 0===U||null===(r=U.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:i,finalArr:o,finalArrExternal:n})},[U]),!rt)return(0,S.jsx)(S.Fragment,{});var Ft=.68*I,Et=.55*Ft,Tt=.4*Ft,At=Ft*(.55-.4),Nt=Ft+"px",Pt=Tt+"px",Lt=At+"px",Bt=.12*Tt;const Rt=(0,d.XQu)(C);function Ot(){window.location.href=function(t){return(0,d.BLb)(C)?t.product_link+"?"+(0,d.VCz)(C)+"&"+(0,d.Spk)(C)+"&"+(0,d.$lz)(C):t.product_link}(F)}function Dt(t,e){x||g||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==C?Ot():K(e),_(!0)}const Wt=(null===N||void 0===N?void 0:N.landingLocationType)||"index",Mt=(null===N||void 0===N?void 0:N.templateType)||"template-a",Qt=(0,jt.Wd)(Wt)+(0,jt.gf)(Mt)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id),Ht=(0,d.HKH)(C)&&t.activeProductsCount>1&&"init"==vt.state&&0==vt.cart_count;return(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:(0,d.qw1)(C),width:Nt,height:"fit-content",boxShadow:"round"==A?"dark-lg":null,onClick:()=>{Dt(q,F)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(C)),animation:z?tt.jd:tt.so,borderRadius:"round"==A?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,d.YcK)(C),borderColor:(0,d.Fwt)(C)},children:[(0,S.jsxs)(P.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,S.jsx)(E.az,{height:Pt,width:Pt,children:(0,S.jsx)(R._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,wt.b)(null!==(e=null!==(i=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===B||void 0===B?void 0:B[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===Z||void 0===Z||null===(l=Z.finalArrExternal)||void 0===l||null===(p=l.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===Z||void 0===Z?void 0:Z.position])))||void 0===p?void 0:p.src)&&void 0!==e?e:F.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(C)+" !important"}})}),(0,S.jsxs)(E.az,{height:Pt,width:Ft-Tt+"px",children:[(0,S.jsxs)(P.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,d.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Bt*(0,d.rh$)(C)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",w,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,at.v)("58396311733"===C?(0,St.$)(H):H,"prod-tile")}),(0,d.Nzx)(C)?(0,S.jsxs)(P.B,{className:"whatmore-product-atc-price",direction:(0,d.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==A?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[rt&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Bt*(0,d.rh$)(C)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,d.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,bt.Sb)("70756368633"===C?parseFloat(null===q||void 0===q||null===(h=q.products)||void 0===h||null===(v=h[0])||void 0===v?void 0:v.price):null!==D&&void 0!==D?D:null===F||void 0===F?void 0:F.price,"",C,X)," \xa0"]}),(0,dt.P)(D,M)&&rt?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Bt*(0,d.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:w+" !important",color:(0,d.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,bt.Sb)(null!==M&&void 0!==M?M:null===F||void 0===F?void 0:F.compare_price,"",C,X)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(L.E,{fontSize:.82*Bt*(0,d.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:w+" !important",color:(0,d.Br1)(C)+" !important"},children:G?(0,d.p6A)(C):(0,d.i2h)(C)})]}),(0,d.UlM)(C)?(0,S.jsx)(P.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,S.jsxs)(P.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,S.jsx)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:f,sx:{borderRadius:"round"==A?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,d.SK$)(C)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:m},sx:{bg:m},children:(0,S.jsx)(L.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,S.jsx)(lt.A,{sx:{color:m,fontSize:1.3*Bt+"px"}})}),(0,S.jsx)(E.az,{width:"2px"})]})}):(0,S.jsx)(S.Fragment,{})]})]}),"awaitingVariantSelection"==vt.state&&null!=ft?(0,S.jsx)(E.az,{width:"100%",height:"fit-content",marginTop:.1*Et+"px",marginBottom:.1*Et+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Et*Rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{maxHeight:Et*Rt*.5+"px",width:Nt,height:"fit-content",event:q,product:F,finalArr:Z,data:U,productVariantOptions:ft,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(W(e.price/100),Q(e.compare_price/100),e.title.includes(" ")&&V(e.title))}(t)}})}):(0,S.jsx)(S.Fragment,{}),(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,S.jsx)(P.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,S.jsx)(mt,{baseFontSize:Ht?.2*At:.3*At,setProductVariantTitle:V,product:F,cartState:vt.state,cartCount:_t,updateCartState:gt,onClickAtc:t=>{"72603631788"!==C&&"5220302897"!==C||"init"!=vt.state?"init"==vt.state?(Ct(Qt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:[F],ctaList:q.cta})):"awaitingVariantSelection"==vt.state&&(kt(B,Qt),V(null===F||void 0===F?void 0:F.title)):Dt(q,F)},onCartIconClick:()=>{zt()}})}),Ht&&(0,S.jsx)(P.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*At,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,S.jsx)(pt.$,{disabled:ct,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${w} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{ht(!0),xt(Qt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:N,event:q,productList:q.products,ctaList:q.cta}),ht(!1)}catch(e){console.error("Failed to add items:",e),ht(!1)}},children:ct?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*At*2.5+"px"}})}):(0,S.jsx)(L.E,{fontFamily:w,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),zt=i(8397);var _t=function(t){var e,i,o,n,r;const[l]=(0,s.QN)("isInDesignMode"),[c]=(0,s.QN)("isDemoBrand"),[u]=(0,s.QN)("whatmoreSecondaryColor"),[p]=(0,s.QN)("whatmorePrimaryFont"),[h]=(0,s.QN)("whatmoreShopId"),[v]=(0,s.QN)("websiteLanguage"),x=t.event,g=t.product,m=null!==(e=t.baseFontSize)&&void 0!==e?e:10,f=null!==(i=t.width)&&void 0!==i?i:"fit-content",w=null!==(o=t.height)&&void 0!==o?o:"fit-content";return(0,S.jsx)(zt.N,{href:g.product_link,color:u,onClick:()=>{!function(t,e){l||c||(async()=>{(0,a.TJ)(t,e)})()}(x,g)},children:(0,S.jsx)(E.az,{width:f,height:w,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{lineHeight:"100%",fontSize:1.4*m,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:u+" !important"},children:"MORE INFO"!=(0,d.KnH)(h)?(0,d.KnH)(h):null!==(n=null===K.m||void 0===K.m||null===(r=K.m[v])||void 0===r?void 0:r.more_info)&&void 0!==n?n:(0,d.KnH)(h)})}),(0,S.jsx)(F.o,{children:(0,S.jsx)(lt.A,{sx:{color:u,fontSize:1.4*m}})})]})})})},Ft=i(9408);function Et(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[c]=(0,s.QN)("websiteLanguage"),[u,p]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,x=t.width,g=t.height,m=t.title;return(0,S.jsx)(E.az,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(a)?r:(0,d.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),p(!0)},animation:u?tt.jd:null,onAnimationEnd:()=>{p(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,S.jsxs)(L.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*h+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,d.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==m&&null!==(i=null===K.m||void 0===K.m||null===(o=K.m[c])||void 0===o?void 0:o.shop_now)&&void 0!==i?i:m,"\xa0"]})})})}var Tt=function(t){var e,i,o;const[n]=(0,s.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,u=null!==(i=t.width)&&void 0!==i?i:"100%",p=null!==(o=t.height)&&void 0!==o?o:"100%";return(0,S.jsx)(Et,{onClick:function(){c()},event:r,product:l,baseFontSize:a,width:u,height:p,title:(0,d.Qed)(n)})};var At=function(t){var e,i,o,r,l;const[p]=(0,s.QN)("isInDesignMode"),[h]=(0,s.QN)("isDemoBrand"),[v]=(0,s.QN)("whatmorePrimaryFont"),[x]=(0,s.QN)("whatmoreShopId"),[g,m,f,w]=(0,c.A)(),[C,b]=(0,n.useState)(!1),[j,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)(y.AppContext),[z,_]=(0,n.useState)(null),[T,A,N,B,O,D,W,M]=t.useAddToCartStatesInstance,[Q,H]=(0,n.useState)(parseFloat(j.price)),[V,X]=(0,n.useState)(parseFloat(j.compare_price)),[Y,U]=(0,n.useState)(j.currency),[$,q]=(0,n.useState)(!1),K=t.productCartCounts&&t.productCartCounts[j.product_id]?t.productCartCounts[j.product_id]:T.cart_count,G=t.event,Z=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,et=(null===I||void 0===I?void 0:I.landingLocationType)||"index",rt=(null===I||void 0===I?void 0:I.templateType)||"template-a",lt=(0,jt.Wd)(et)+(0,jt.gf)(rt)+(null!==G&&void 0!==G&&G.isRelatedEvent?"R":"E")+"_"+(null===G||void 0===G?void 0:G.event_id);(0,n.useEffect)(()=>{(0,d.w4b)(x)?(0,bt.ck)(j,(0,d.NCy)(x),x).then(t=>{k(t),H(parseFloat(t.price)),X(parseFloat(t.compare_price)),U(t.currency)}):(async()=>{var t,e,i,o,n,r;const l=await(0,u.M)(j,(0,d.NCy)(x),x);H((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),X((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),q(!0)})()},[]);var st=w*J,ct=.3*st,ut=st+"px",pt=.7*ct,ht=.9*pt,vt=.12*ct;const xt=(0,d.XQu)(x);function gt(t,e){p||h||(async()=>{(0,a.Pb)(t,e)})(),Z(e),b(!0)}return(0,S.jsx)(P.B,{direction:"row",width:ut,height:"fit-content",justifyContent:"center",children:(0,S.jsx)(E.az,{marginTop:it,marginBottom:(0,d.qw1)(x),width:ut,onClick:t=>{},animation:C?tt.jd:null,borderRadius:"lg",onAnimationEnd:()=>{b(!1)},children:(0,S.jsxs)(P.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{gt(G,j)},children:[(0,S.jsx)(E.az,{height:pt+"px",width:pt+"px",children:(0,S.jsx)(P.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,S.jsx)(E.az,{height:ht+"px",width:ht+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,S.jsx)(R._,{width:ht+"px",height:ht+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,S.jsx)(E.az,{height:pt+"px",width:st-pt+"px",children:(0,S.jsxs)(P.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,S.jsx)(L.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*vt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:v+" !important",color:"white !important"},children:(0,at.v)(j.title.toString())}),(0,S.jsxs)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,d.Nzx)(x)?(0,S.jsxs)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[$&&(0,S.jsx)(L.E,{noOfLines:1,fontSize:1*vt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"white !important"},children:" "+(0,bt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(i=G.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===j||void 0===j?void 0:j.price,"",x,Y)}),(0,S.jsx)(F.o,{children:(0,dt.P)(j.price,j.compare_price)&&$?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.8*vt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:v+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)("28849832033"===x?parseFloat(null===G||void 0===G||null===(r=G.products)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.compare_price):null!==V&&void 0!==V?V:null===j||void 0===j?void 0:j.compare_price,"",x,Y)]}):(0,S.jsx)(S.Fragment,{})})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(F.o,{children:(0,S.jsx)(It.A,{storeId:x,productId:j.client_product_id,productLink:j.product_link,fontSize:1*vt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==T.state&&null!=B?(0,S.jsx)(E.az,{width:"100%",height:"fit-content",marginTop:.1*ct+"px",marginBottom:.1*ct+"px",overflowY:"auto",overflowX:"hidden",maxHeight:ct*xt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{width:ut,height:"fit-content",event:G,product:j,productVariantOptions:B,baseFontSize:1*vt,onOptionSelected:t=>{!function(t){_(t);const e=W(t);e&&(H(e.price/100),X(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,S.jsx)(S.Fragment,{}),(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,S.jsx)(E.az,{width:"100%",height:"100%",children:(0,S.jsx)(_t,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%"})}),(0,S.jsx)(E.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,d.ZzM)(x)?(0,S.jsx)(Tt,{baseFontSize:.8*vt,event:G,product:j,borderRadius:"md",onShopNowClick:t=>{gt(G,j)}}):(0,S.jsx)(S.Fragment,{children:"form"===(0,d.nWM)(x)?(0,S.jsx)(Ft.default,{baseFontSize:.8*vt,event:G,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,S.jsx)(mt,{baseFontSize:.8*vt,event:G,product:j,cartState:T.state,cartCount:K,borderRadius:"md",onClickAtc:t=>{"72603631788"!==x&&"5220302897"!==x||"init"!=T.state?"init"==T.state?(O(lt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:G,productList:[j],ctaList:G.cta})):"awaitingVariantSelection"==T.state&&D(z,lt):gt(G,j)},onCartIconClick:()=>{M()}})})})]})]})})})};var Nt=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreSecondaryColor"),r=(0,s.Xd)("whatmoreSecondaryColorShade900"),[l]=(0,s.QN)("whatmorePrimaryFont"),[p]=(0,s.QN)("whatmoreShopId"),[h,v,x,g]=(0,c.A)(),[m,f]=(0,n.useState)(!1),[w,C]=(0,n.useState)(t.product),b=(0,s.Xd)("whatmoreUITheme"),[j,k]=(0,n.useState)(!1),[I,z]=(0,n.useState)(parseFloat(w.price)),[_,F]=(0,n.useState)(parseFloat(w.compare_price)),[T,A]=(0,n.useState)(w.currency),[N,B]=(0,n.useState)(!0),O=t.event,[D,W]=(0,n.useState)();if((0,n.useEffect)(()=>{if("6573064236"===p&&null!==w&&void 0!==w&&w.product_link){const t=Math.ceil(parseFloat(w.price)),e=Math.ceil(parseFloat(w.compare_price));return z(t),F(e),void k(!0)}(0,d.w4b)(p)?(0,bt.ck)(w,(0,d.NCy)(p),p).then(t=>{C(t),z(parseFloat(t.price)),F(parseFloat(t.compare_price)),A(t.currency),k(!0)}).catch(t=>k(!0)):(async()=>{try{var t,e,i,o,n,r;const l=await(0,u.M)(w,(0,d.NCy)(p),p);W(l),z((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),F((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),k(!0)}catch(l){k(!0)}})()},[]),!j)return(0,S.jsx)(S.Fragment,{});var M=.68*g,Q=.4*M,H=M+"px",V=Q+"px",X=M*(.55-.4)+"px",U=.12*Q;(0,d.XQu)(p);const{whatmoreWidgetSourceDetails:$}=(0,n.useContext)(y.AppContext),q=null!==I&&void 0!==I?I:null===w||void 0===w?void 0:w.price,K="STR0IIHZXKW"!==p&&"STRU4RO77D5"!==p||q?" "+(0,bt.Sb)(q,"",p,T)+" ":"Price on request";function G(t){return(0,d.BLb)(p)?t.product_link+"?"+(0,d.VCz)(p)+"&"+(0,d.Spk)(p)+"&"+(0,d.$lz)(p):t.product_link}function Z(t,o){e||i||(async()=>{(0,a.Pb)(t,o),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:$,event:t,productList:[o],ctaList:t.cta})})(),f(!0)}return N?(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:(0,d.qw1)(p),width:H,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{Z(O,w),window.location.href=G(w)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(p)),animation:m?tt.jd:tt.so,borderRadius:"round"==b?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,d.YcK)(p),borderColor:(0,d.Fwt)(p)},children:[(0,S.jsxs)(P.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,S.jsx)(E.az,{height:V,width:V,children:(0,S.jsx)(R._,{width:V,height:V,src:(0,wt.b)(w.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(p)+" !important"}})}),(0,S.jsxs)(E.az,{height:V,width:M-Q+"px",children:[(0,S.jsxs)(P.B,{direction:"column",justifyContent:(0,d.UlM)(p)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,S.jsx)(L.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:l+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*U+"px !important"},children:(0,at.v)(null==w.title?"":w.title.toString(),"prod-tile")}),(0,d.Nzx)(p)?(0,S.jsxs)(P.B,{className:"whatmore-product-shopnow-price",direction:(0,d.vw2)(p)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[j&&(0,S.jsx)(L.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,d.uoB)(p)+" !important",margin:"0px !important"},children:K}),(0,dt.P)(I,_)&&j?(0,S.jsxs)(L.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,d.gld)(p)+" !important",margin:"0px !important"},children:[" ",(0,bt.Sb)(null!==_&&void 0!==_?_:null===w||void 0===w?void 0:w.compare_price,"",p,T)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),""!=(0,d.rsz)(p)&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*U+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,d.ogW)(p)+" !important",color:(0,d._zx)(p)+" !important",margin:"0px !important"},children:["\xa0",(0,d.rsz)(p)," \xa0"]})]}),(0,d.UlM)(p)?(0,S.jsx)(P.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,S.jsxs)(P.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,S.jsx)(P.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==p||"STRNUBH0VYQ"==p||"STRAPB3KXSR"==p?(0,S.jsx)(Y.A,{sx:{boxShadow:3,fontSize:1.3*U,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),B(!1)}}):(0,S.jsx)(lt.A,{sx:{color:o,fontSize:1.3*U+"px"}})}),(0,S.jsx)(E.az,{width:"2px"})]})}):(0,S.jsx)(S.Fragment,{})]})]}),(0,d.Woi)(p)&&(0,S.jsx)(P.B,{direction:"row",width:"100%",height:X,justifyContent:"center",alignItems:"center",children:(0,S.jsx)(Tt,{baseFontSize:.8*U,event:O,product:w,borderRadius:"md",onShopNowClick:t=>{Z(O,w),window.location.href=G(w)}})})]}):(0,S.jsx)(S.Fragment,{})};function Pt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[r]=(0,s.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.onClick,p=t.width,h=t.height,v=t.title,x=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,S.jsx)(Lt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:c,width:p,height:h}):(0,S.jsxs)(E.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?tt.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",backgroundColor:x?(0,et.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),u(),a(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.4*c+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,d.Hfu)(r)+" !important"},children:["\xa0",v,"\xa0"]}),x?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function Lt(t){const[e]=(0,s.QN)("whatmoreSecondaryColor"),[i]=(0,s.QN)("whatmorePrimaryFont"),[o]=(0,s.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,c=t.baseFontSize;return(0,S.jsx)(P.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,S.jsx)(E.az,{className:"whatmore-add-to-cart-initial-button",width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?tt.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,S.jsx)(F.o,{children:(0,S.jsx)(L.E,{lineHeight:"100%",fontSize:1.3*c+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,d.Hfu)(o)} !important`},children:(0,d.KPq)(o)})})})})})}function Bt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,S.jsx)(E.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,S.jsx)(P.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.2*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Rt(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.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,S.jsx)(E.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=n&&"55194878152"!=n&&"12181504100"!=n?(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}}):(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ot=function(t){var e,i,o,n;const[r]=(0,s.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,p=t.cartCount,h=t.onClickAtc,v=t.onCartIconClick;function x(){h()}const g=null!==(o=t.width)&&void 0!==o?o:"100%",m=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==u?(0,S.jsx)(Bt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==u?0==p?(0,S.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):c?(0,S.jsx)(Rt,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:p,width:g,height:m,onCartIconClick:v}):(0,S.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,S.jsx)(Pt,{onClick:x,cartState:u,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==u?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})};var Dt=function(t){var e,i,o,r,l,p;const[h]=(0,s.QN)("isInDesignMode"),[v]=(0,s.QN)("isDemoBrand"),[x]=(0,s.QN)("whatmorePrimaryFont"),[g]=(0,s.QN)("whatmoreShopId"),[m,f,w,C]=(0,c.A)(),[b,j]=(0,n.useState)(!1),[k,I]=(0,n.useState)(t.product),z=(0,s.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)(y.AppContext),[F,T]=(0,n.useState)(null),[A,N]=(0,n.useState)(parseFloat(k.price)),[B,O]=(0,n.useState)(parseFloat(k.compare_price)),[D,W]=(0,n.useState)(k.currency),[M,Q]=(0,n.useState)(null),H=t.event,V=t.productClickHandler,[X,Y]=(0,n.useState)(null),[U,$]=(0,n.useState)(!1),[q,K,G,Z,J,rt,lt,st]=t.useAddToCartStatesInstance,ct=t.productCartCounts&&t.productCartCounts[k.product_id]?t.productCartCounts[k.product_id]:q.cart_count,ut=(null===_||void 0===_?void 0:_.landingLocationType)||"index",pt=(null===_||void 0===_?void 0:_.templateType)||"template-a",ht=(0,jt.Wd)(ut)+(0,jt.gf)(pt)+"_"+(null===H||void 0===H?void 0:H.event_id);(0,n.useEffect)(()=>{(0,d.w4b)(g)?(0,bt.ck)(k,(0,d.NCy)(g),g).then(t=>{I(t),N(parseFloat(t.price)),O(parseFloat(t.compare_price)),W(t.currency),$(!0)}):(async()=>{var t,e,i,o,n,r;const l=await(0,u.M)(k,(0,d.NCy)(g),g);Q(l),N((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(o=null===l||void 0===l||null===(n=l.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===l||void 0===l?void 0:l.compare_at_price)/100),$(!0)})(),!(0,d.E8r)(g)||null!==H&&void 0!==H&&H.in_stock||G("errored")},[]),(0,n.useEffect)(()=>{var t,e;const i=null!=M?null===M||void 0===M||null===(t=M.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,o=-1!==i?null===M||void 0===M||null===(e=M.variants)||void 0===e?void 0:e.map(t=>{var e,o;const n=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:n,src:null===t||void 0===t||null===(o=t.featured_image)||void 0===o?void 0:o.src}:null}):[];let n=[];var r;-1!==i&&(n=null===M||void 0===M||null===(r=M.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));Y({position:i,finalArr:o,finalArrExternal:n})},[M]);var vt=.72*C,xt=.37*vt,gt=vt*(.48-.37),mt=.95*vt+"px",ft=xt+"px",Ct=.12*xt;function yt(){window.location.href=function(t){return(0,d.BLb)(g)?t.product_link+"?"+(0,d.VCz)(g)+"&"+(0,d.Spk)(g)+"&"+(0,d.$lz)(g):t.product_link}(k)}return(0,S.jsx)(P.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:it,marginBottom:"24px",width:mt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){h||v||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==g?yt():V(e),j(!0)}(H,k)},backgroundColor:(0,et.YU)("#ffffff",(0,d.p2R)(g)),animation:b?tt.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,d.YcK)(g),borderColor:(0,d.Fwt)(g)},children:(0,S.jsxs)(P.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,S.jsx)(E.az,{height:ft,width:ft,children:(0,S.jsx)(R._,{width:"100%",height:"100%",src:(0,wt.b)(null!==(e=null!==(i=null===X||void 0===X||null===(o=X.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===F||void 0===F?void 0:F[null===X||void 0===X?void 0:X.position])))||void 0===r?void 0:r.src)&&void 0!==i?i:null===X||void 0===X||null===(l=X.finalArrExternal)||void 0===l||null===(p=l.find(t=>(null===t||void 0===t?void 0:t.color)==(null===F||void 0===F?void 0:F[null===X||void 0===X?void 0:X.position])))||void 0===p?void 0:p.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,d.KZe)(g)+" !important"}})}),(0,S.jsx)(E.az,{height:ft,width:vt-xt+"px",children:(0,S.jsxs)(P.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,S.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",Ct+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",x,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,at.v)(null==k.title?"":k.title.toString())}),(0,d.Nzx)(g)?(0,S.jsxs)(P.B,{direction:(0,d.vw2)(g)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*Ct+"px"},children:[U&&(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Ct*(0,d.rh$)(g)+"px !important",lineHeight:"100%",sx:{fontFamily:x+" !important",color:(0,d.uoB)(g)+" !important",fontWeight:"bold"},children:[" "+(0,bt.Sb)(null!==A&&void 0!==A?A:null===k||void 0===k?void 0:k.price,"",g,D)," \xa0"]}),(0,dt.P)(A,B)&&U?(0,S.jsxs)(L.E,{noOfLines:1,fontSize:.9*Ct*(0,d.rh$)(g)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,d.gld)(g)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.Sb)(null!==B&&void 0!==B?B:null===k||void 0===k?void 0:k.compare_price,"",g,D)]}):(0,S.jsx)(S.Fragment,{})]}):(0,S.jsx)(S.Fragment,{}),(0,S.jsx)(Ot,{baseFontSize:.3*gt,event:H,product:k,cartState:q.state,cartCount:ct,updateCartState:G,onClickAtc:t=>{"init"===q.state?(J(ht,!0),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_,event:H,productList:[k],ctaList:H.cta})):"awaitingVariantSelection"===q.state&&V(k)},onCartIconClick:t=>{st()}})]})})]})})};function Wt(t){var e,i,o;const[r]=(0,s.QN)("whatmoreSecondaryColor"),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[d,c]=(0,n.useState)(!1),u=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=t.onClick,h=t.width,v=t.height,x=t.title,g=t.showInProgressIcon;return(0,S.jsxs)(E.az,{display:"flex",width:h,height:v,gap:"8px",animation:d?tt.jd:null,onAnimationEnd:()=>{c(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,S.jsx)(P.B,{direction:"row",flex:"1",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",backgroundColor:"transparent",border:"1px solid #b5b5b5",borderRadius:"8px",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),c(!0)},children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*u+"px !important",fontWeight:"500 !important",sx:{fontFamily:l+" !important",color:"#1a1a1a !important"},children:["\xa0",null!==(i=null===K.m||void 0===K.m||null===(o=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,S.jsxs)(P.B,{direction:"row",flex:"1",backgroundColor:g?"#3a3a3a":"#1a1a1a",alignItems:"center",justifyContent:"center",paddingY:"11px",paddingX:"12px",borderRadius:"8px",onClick:t=>{t.stopPropagation(),p(),c(!0)},children:[(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*u+"px !important",fontWeight:"500 !important",sx:{fontFamily:l+" !important",color:"#ffffff !important"},children:["\xa0",x,"\xa0"]}),g?(0,S.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,S.jsx)(ut.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*u+"px"}})}):(0,S.jsx)(S.Fragment,{})]})]})}function Mt(t){var e,i,o,r,l;const[a]=(0,s.QN)("whatmoreSecondaryColor"),[c]=(0,s.QN)("whatmorePrimaryFont"),[u]=(0,s.QN)("whatmoreShopId"),[p,h]=(0,n.useState)(!1),v=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,f=null!==(i=t.borderRadius)&&void 0!==i?i:"7px",w=null!==(o=t.paddingY)&&void 0!==o?o:"10px";return(0,S.jsx)(E.az,{width:g,height:m,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,d.Wc_)(u)?a:(0,d.Wc_)(u),borderRadius:f,onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:p?tt.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:w,children:(0,S.jsx)(F.o,{maxWidth:"90%",children:(0,S.jsxs)(L.E,{lineHeight:"100%",fontSize:1.2*v+"px !important",fontWeight:"semibold !important",sx:{fontFamily:c+" !important",color:(0,d.Hfu)(u)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,d.KPq)(u)?(0,d.KPq)(u):null!==(r=null===K.m||void 0===K.m||null===(l=K.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===l?void 0:l.add_to_cart)&&void 0!==r?r:(0,d.KPq)(u),"\xa0"]})})})})}function Qt(t){var e;const[i]=(0,s.QN)("whatmorePrimaryFont"),o=null!==(e=t.baseFontSize)&&void 0!==e?e:10,n=t.width,r=t.height;return(0,S.jsx)(E.az,{width:n,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,S.jsx)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,S.jsxs)(L.E,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ht(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[o]=(0,s.QN)("whatmorePrimaryFont"),[n]=(0,s.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,c=t.width,u=t.height,p=t.onCartIconClick;return(0,S.jsx)(E.az,{width:c,height:u,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,S.jsxs)(P.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,S.jsx)(F.o,{paddingX:"5px",onClick:(0,d.DiI)(n)?()=>{p()}:void 0,children:(0,d.DiI)(n)?(0,S.jsx)(pt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,S.jsx)(L.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,S.jsx)(ct.A,{sx:{color:i,fontSize:1.6*r}})}),(0,S.jsx)(L.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important"},children:a}),(0,S.jsx)(F.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,S.jsx)(st.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Vt=function(t){var e,i,o,n,r,l,a;const[d]=(0,s.QN)("websiteLanguage"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=null===(i=t.showAddedToCart)||void 0===i||i,p=t.cartState,h=t.cartCount,v=t.onClickAtc,x=t.onCartIconClick;function g(){v()}const m=null!==(o=t.width)&&void 0!==o?o:"100%",f=null!==(n=t.height)&&void 0!==n?n:"100%";return"errored"==p?(0,S.jsx)(Qt,{baseFontSize:c,width:m,height:f}):"init"==p?0==h?(0,S.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):u?(0,S.jsx)(Ht,{onClick:g,baseFontSize:c,cartCount:h,width:m,height:f,onCartIconClick:x}):(0,S.jsx)(Mt,{onClick:g,baseFontSize:c,width:m,height:f,websiteLanguage:d,borderRadius:t.borderRadius,paddingY:t.paddingY}):(0,S.jsx)(Wt,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:p,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:c,width:m,height:f,title:"awaitingVariantSelection"==p?null!==(l=null===K.m||void 0===K.m||null===(a=K.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==p||"productVariantDetailsApiCallInProgress"==p,websiteLanguage:d})};var Xt=function(t){var e;const[i]=(0,s.QN)("isInDesignMode"),[o]=(0,s.QN)("isDemoBrand"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[p,h,v,x]=(0,c.A)(),[g,m]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,n.useContext)(y.AppContext),[w,C]=(0,n.useState)(null),[b,j]=(0,n.useState)(parseFloat(g.price)),[k,I]=(0,n.useState)(parseFloat(g.compare_price)),[z,_]=(0,n.useState)(null===g||void 0===g?void 0:g.title),[F,E]=(0,n.useState)(g.currency),[T,A]=(0,n.useState)(!1),[N,P]=(0,n.useState)(!1),[L]=(0,s.QN)("whatmoreSecondaryColor"),[B,R,O,D,W,M,Q,H]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:B.cart_count,X=t.event,Y=t.productClickHandler;if((0,n.useEffect)(()=>{(0,d.w4b)(l)?(0,bt.ck)(g,(0,d.NCy)(l),l).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,i,o,n,r,a,s;const c=await(0,u.M)(g,(0,d.NCy)(l),l);j((null!==(t=null===c||void 0===c||null===(e=c.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===c||void 0===c?void 0:c.price)/100),I(("63836192926"===l?null!==(o=null!==c&&void 0!==c&&null!==(n=c.variants)&&void 0!==n&&n[0]?c.variants[0].compare_at_price:null===c||void 0===c?void 0:c.compare_at_price)&&void 0!==o?o:0:null!==(r=null===c||void 0===c||null===(a=c.variants)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.compare_at_price)&&void 0!==r?r:null===c||void 0===c?void 0:c.compare_at_price)/100),A(!0)}catch(c){A(!0)}})()},[]),!T)return(0,S.jsx)(S.Fragment,{});const U=.765*x,$=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*U:U,q=.198*$,K=.0315*x,G=1.05*K,Z=Number((0,d.rh$)(l)),J=.85*K*(isNaN(Z)||0===Z?1:Z),tt=.75*K,et=(0,d.XQu)(l),it=(()=>{if((0,dt.P)(b,k)){const t=(k-b)/k*100;return Math.round(t)}return null})(),rt=(0,d.fpt)(l),lt=rt||L,st=(ct=lt,ut=.15,`rgba(${parseInt(ct.slice(1,3),16)}, ${parseInt(ct.slice(3,5),16)}, ${parseInt(ct.slice(5,7),16)}, ${ut})`);var ct,ut;function pt(){window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(g)}function ht(t,e){i||o||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==l?pt():Y(e)}const vt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",xt=(null===f||void 0===f?void 0:f.templateType)||"template-a",gt=(0,jt.Wd)(vt)+(0,jt.gf)(xt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id);return(0,S.jsx)("div",{style:{width:$+"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"===l)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);ht(X,g)},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:(0,S.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,S.jsx)("div",{style:{width:q+"px",height:q+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,S.jsx)("img",{src:(0,wt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,S.jsxs)("div",{style:{flex:1},children:[(0,S.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*G+"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,at.v)(z,"prod-tile")}),(0,d.Nzx)(l)&&(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*J+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,bt.Sb)(null!==b&&void 0!==b?b:null===g||void 0===g?void 0:g.price,"",l,F)}),(0,dt.P)(b,k)&&T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:J+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,bt.Sb)(null!==k&&void 0!==k?k:null===g||void 0===g?void 0:g.compare_price,"",l,F)}),it&&(0,d.mOK)(l)&&(0,S.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",lt,"important"),t.style.setProperty("background-color",st,"important"))},style:{fontSize:.9*J+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[it,"% OFF"]})]})]})]}),"awaitingVariantSelection"==B.state&&null!=D&&(0,S.jsx)("div",{style:{width:"100%",maxHeight:.3*$*et+"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,S.jsx)(yt,{width:"100%",height:"fit-content",event:X,product:g,productVariantOptions:D,baseFontSize:.9*K,onOptionSelected:t=>{!function(t){C(t);const e=Q(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,S.jsx)("div",{style:{width:"100%"},children:(0,S.jsx)(Vt,{baseFontSize:1.1*tt,setProductVariantTitle:_,product:g,cartState:B.state,cartCount:V,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==l&&"72603631788"!==l&&"5220302897"!==l&&"57217876118"!==l?"init"==B.state?(W(gt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==B.state&&(M(w,gt),_(null===g||void 0===g?void 0:g.title)):ht(X,g)},onCartIconClick:()=>{H()}})})]})})};var Yt=function(t){var e;const[i]=(0,s.QN)("isInDesignMode"),[o]=(0,s.QN)("isDemoBrand"),[r]=(0,s.QN)("whatmorePrimaryFont"),[l]=(0,s.QN)("whatmoreShopId"),[p,h,v,x]=(0,c.A)(),[g,m]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:f}=(0,n.useContext)(y.AppContext),[w,C]=(0,n.useState)(null),[b,j]=(0,n.useState)(parseFloat(g.price)),[k,I]=(0,n.useState)(parseFloat(g.compare_price)),[z,_]=(0,n.useState)(null===g||void 0===g?void 0:g.title),[F,E]=(0,n.useState)(g.currency),[T,A]=(0,n.useState)(!1),[N,P]=(0,n.useState)(!1),[L]=(0,s.QN)("whatmoreSecondaryColor"),[B,R,O,D,W,M,Q,H]=t.useAddToCartStatesInstance,V=t.productCartCounts&&t.productCartCounts[g.product_id]?t.productCartCounts[g.product_id]:B.cart_count,X=t.event,Y=t.productClickHandler;if((0,n.useEffect)(()=>{(0,d.w4b)(l)?(0,bt.ck)(g,(0,d.NCy)(l),l).then(t=>{m(t),j(parseFloat(t.price)),I(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,i,o,n,r;const a=await(0,u.M)(g,(0,d.NCy)(l),l);j((null!==(t=null===a||void 0===a||null===(e=a.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)&&void 0!==t?t:null===a||void 0===a?void 0:a.price)/100),I((null!==(o=null===a||void 0===a||null===(n=a.variants)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==o?o:null===a||void 0===a?void 0:a.compare_at_price)/100),A(!0)}catch(a){A(!0)}})()},[]),!T)return(0,S.jsx)(S.Fragment,{});const U=.765*x,$=(null===X||void 0===X||null===(e=X.products)||void 0===e?void 0:e.length)>1?.85*U:U,q=.0315*x,K=1.05*q,G=Number((0,d.rh$)(l)),Z=.85*q*(isNaN(G)||0===G?1:G),J=.75*q,tt=(0,d.XQu)(l),et=Number(tt),it=Math.max(240,Number.isFinite(et)?.3*$*et:0),rt=(()=>{if((0,dt.P)(b,k)){const t=(k-b)/k*100;return Math.round(t)}return null})(),lt=(0,d.fpt)(l),st=lt||L,ct=(ut=st,pt=.15,`rgba(${parseInt(ut.slice(1,3),16)}, ${parseInt(ut.slice(3,5),16)}, ${parseInt(ut.slice(5,7),16)}, ${pt})`);var ut,pt;function ht(){window.location.href=function(t){return(0,d.BLb)(l)?t.product_link+"?"+(0,d.VCz)(l)+"&"+(0,d.Spk)(l)+"&"+(0,d.$lz)(l):t.product_link}(g)}function vt(t,e){i||o||(async()=>{(0,a.Pb)(t,e)})(),"72550089015"==l?ht():Y(e)}const xt=(null===f||void 0===f?void 0:f.landingLocationType)||"index",gt=(null===f||void 0===f?void 0:f.templateType)||"template-a",mt=(0,jt.Wd)(xt)+(0,jt.gf)(gt)+(null!==X&&void 0!==X&&X.isRelatedEvent?"R":"E")+"_"+(null===X||void 0===X?void 0:X.event_id),ft=Math.min($,480),Ct=.3*ft,St=.46*ft,kt=(0,S.jsx)(Vt,{baseFontSize:1.1*J,setProductVariantTitle:_,product:g,cartState:B.state,cartCount:V,updateCartState:O,isPremium:!0,borderRadius:"2px",paddingY:"6px",onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==l&&"72603631788"!==l&&"5220302897"!==l&&"57217876118"!==l?"init"==B.state?(W(mt),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:f,event:X,productList:[g],ctaList:X.cta})):"awaitingVariantSelection"==B.state&&(M(w,mt),_(null===g||void 0===g?void 0:g.title)):vt(X,g)},onCartIconClick:()=>{H()}});return(0,S.jsxs)("div",{style:{width:$+"px",maxWidth:"480px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.4)",backdropFilter:"blur(12px)",border:"none",borderRadius:"4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"translateY(-1.7px)":"translateY(0)",boxShadow:"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",position:"relative",zIndex:10},onClick:()=>{if("22907887"===l)return console.log("product.product_link : ",g.product_link),void(window.location.href=g.product_link);vt(X,g)},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[(0,S.jsxs)("div",{style:{display:"flex",alignItems:"stretch",width:"100%"},children:[(0,S.jsx)("div",{style:{width:Ct+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8"},children:(0,S.jsx)("img",{src:(0,wt.b)(g.thumbnail_image),alt:g.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),(0,S.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:"12px",padding:"16px 18px"},children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*K+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:(0,at.v)(z,"prod-tile")}),(0,d.Nzx)(l)&&(0,S.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"nowrap",minWidth:0,overflow:"hidden",whiteSpace:"nowrap"},children:[T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*Z+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,bt.Sb)(null!==b&&void 0!==b?b:null===g||void 0===g?void 0:g.price,"",l,F)}),(0,dt.P)(b,k)&&T&&(0,S.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(l),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:Z+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,bt.Sb)(null!==k&&void 0!==k?k:null===g||void 0===g?void 0:g.compare_price,"",l,F)}),rt&&(0,d.mOK)(l)&&(0,S.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",st,"important"),t.style.setProperty("background-color",ct,"important"))},style:{fontSize:.9*Z+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[rt,"% OFF"]})]})]}),"awaitingVariantSelection"!=B.state&&(0,S.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,S.jsx)("div",{style:{width:St+"px",maxWidth:"100%"},children:kt})})]})]}),"awaitingVariantSelection"==B.state&&null!=D&&(0,S.jsxs)("div",{style:{width:"100%",backgroundColor:"rgba(248, 248, 248, 0.8)",borderTop:"1px solid #e0e0e0",boxSizing:"border-box"},children:[(0,S.jsx)("div",{style:{width:"100%",padding:"4px 16px 0",boxSizing:"border-box"},onTouchStart:t=>{t.stopPropagation()},onTouchMove:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},onWheel:t=>{t.stopPropagation()},children:(0,S.jsx)(yt,{width:"100%",height:"fit-content",maxHeight:it+"px",event:X,product:g,productVariantOptions:D,baseFontSize:.9*q,onOptionSelected:t=>{!function(t){C(t);const e=Q(t);e&&(j(e.price/100),I(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px 16px 12px",boxSizing:"border-box"},children:(0,S.jsx)("div",{style:{width:St+"px",maxWidth:"100%"},children:kt})})]})]})};var Ut=function(t){const[e]=(0,s.QN)("isInDesignMode"),[i]=(0,s.QN)("isDemoBrand"),[o]=(0,s.QN)("whatmoreShopId"),[r,l,u,p]=(0,c.A)(),h=t.product,v=t.event,{whatmoreWidgetSourceDetails:x}=(0,n.useContext)(y.AppContext),[g,m,f,w,C,b,j,k]=t.useAddToCartStatesInstance,I=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:g.cart_count,z=(null===x||void 0===x?void 0:x.landingLocationType)||"index",_=(null===x||void 0===x?void 0:x.templateType)||"template-a",F=(0,jt.Wd)(z)+(0,jt.gf)(_)+"_"+(null===v||void 0===v?void 0:v.event_id);(0,n.useEffect)(()=>{!(0,d.E8r)(o)||null!==v&&void 0!==v&&v.in_stock||f("errored")},[]);const T=.1*u,A=.95*p,N=.04*p;return(0,S.jsx)(P.B,{direction:"row",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",className:"chakra-stack whatmore-minimal-atc-outer",children:(0,S.jsx)(P.B,{direction:"column",width:"fit-content",height:T,justifyContent:"center",alignItems:"center",alignContent:"center",className:"chakra-stack whatmore-minimal-atc-inner",children:(0,S.jsx)(E.az,{width:A+"px",height:"fit-content",marginTop:"35px",marginBottom:"10px",display:"flex",justifyContent:"center",alignItems:"center",className:"whatmore-minimal-atc-button-container",children:(0,S.jsx)(Ot,{baseFontSize:N,event:v,product:h,cartState:g.state,cartCount:I,updateCartState:f,onClickAtc:t=>{"init"===g.state&&(e||i||(async()=>{(0,a.Pb)(v,h),(0,ot.kz)({userInteractionType:nt.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:x,event:v,productList:[h],ctaList:v.cta})})(),C(F,!0))},onCartIconClick:t=>{k()}})})})})};var $t=function(t){const[e]=(0,s.QN)("whatmoreShopId"),[i]=(0,s.QN)("isWhatmoreWebsite"),o=(0,d.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,c=t.onCartCountChange,[u,...p]=(0,ft.A)(0,l,t.event),h=[u,...p];return(0,n.useEffect)(()=>{let t=u.cart_count;a>u.cart_count&&(t=a+1),c&&c(l.product_id,t)},[u.cart_count]),i?(0,S.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,S.jsx)(Xt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"navigation-tile"==o?(0,S.jsx)(Yt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"broad-tile"==o?(0,S.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"broad-tile-no-cta"==o?(0,S.jsx)(Nt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,S.jsx)(Dt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"link_only"==o?(0,S.jsx)(rt,{product:t.product,event:t.event}):"minimal_atc_button"==o?(0,S.jsx)(Ut,{product:t.product,event:t.event,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):"narrow-tile"==o?(0,S.jsx)(At,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:c,useAddToCartStatesInstance:h}):(0,S.jsx)(S.Fragment,{})},qt=i(1079),Kt=i(7802),Gt=i(2979);var Zt=function(t){var e,i,o;const[a,u,p,h]=(0,c.A)(),[v]=(0,s.QN)("whatmoreShopId"),x=(0,s.Xd)("isInDesignMode"),g=(0,s.Xd)("isDemoBrand"),m=t.event,f=t.productClickHandler,w=t.productCartCounts,C=t.onCartCountChange,y=t.onActiveProductChange,b=(0,d.Vpi)(v),j="navigation-tile"==b,k=(0,n.useRef)(null),I=(0,n.useRef)(null),[z,_]=(0,n.useState)(80);(0,n.useEffect)(()=>{if(!I.current)return;let t=!1;const e=new ResizeObserver(i=>{var o,n;if(t)return;const r=null===(o=i[0])||void 0===o||null===(n=o.contentRect)||void 0===n?void 0:n.height;r&&r>40&&(t=!0,_(r),e.disconnect())});return e.observe(I.current),()=>e.disconnect()},[]);const T=20+z+"px",A=h<600?"0":"30px",N=("STRDOIDF6O7"===v?[t.event.products[0]]:t.event.products).filter(t=>"oos"!=t.product_status||(0,d.$7F)(v)).length,L=(0,d.Woi)(v)&&void 0!=t.event.cta?t.event.cta.filter(t=>{var e;return""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()}).length:0,B=j&&N+L>1,R=null!==(e=null===(i=m.products)||void 0===i||null===(o=i.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===o?void 0:o.length)&&void 0!==e?e:0;if(!(0,Kt.Z_)(m))return(0,S.jsx)(S.Fragment,{});if(1==m.products.length&&(void 0==m.cta||0==m.cta.length)){const t=m.products[0];return(0,d.uJl)(v)?(0,S.jsx)(P.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,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)(F.o,{children:(0,S.jsx)(At,{event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})}):(0,S.jsx)(P.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,S.jsx)(F.o,{children:(0,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)($t,{activeProductsCount:1,event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})})}return(0,S.jsx)(F.o,{children:(0,S.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,S.jsxs)(E.az,{width:h+"px",position:"relative",display:"flex",alignItems:"flex-end",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:[B&&(0,S.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=k.current)||void 0===e||e.slidePrev()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:T,marginBottom:A,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Previous product",children:(0,S.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M9 3L3 12L9 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,S.jsx)("div",{style:{flex:"1 1 auto",minWidth:0,overflow:"hidden"},children:(0,S.jsxs)(r.RC,{className:"product-tile swiper-slide",slidesPerView:1==m.products.length?1:B?1.15:1.4,spaceBetween:B?12:0,initialSlide:0,centeredSlides:!B&&!(0,d.TYM)(v),modules:[l.s3,l.Jq,l.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,onSwiper:t=>{k.current=t},onSlideChange:t=>{y&&y(t.activeIndex)},children:[("STRDOIDF6O7"===v?[m.products[0]]:m.products).map((t,e)=>("oos"!=t.product_status||(0,d.$7F)(v))&&(0,S.jsx)(r.qr,{children:(0,S.jsx)(Gt.S,{userInteractionType:nt.O.PRODUCT_CTA_VIEW,event:m,productList:[t],triggerFlag:!x&&!g,children:(0,S.jsx)(P.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",paddingBottom:B?"20px":"0",children:(0,S.jsx)("div",{ref:0===e?I:null,children:(0,S.jsx)($t,{activeProductsCount:R,event:m,product:t,productClickHandler:f,productCartCounts:w,onCartCountChange:C},m.event_id+t.product_id)})})})},m.event_id+t.product_id)),(0,d.Woi)(v)&&void 0!=m.cta&&m.cta.map(t=>{var e;return(0,S.jsx)(S.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,S.jsx)(r.qr,{children:(0,S.jsx)(P.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,S.jsx)(qt.A,{fontFactor:.75,cta:t},m.event_id+t.cta_id)})},m.event_id+t.cta_id)})})]})}),B&&(0,S.jsx)("div",{onClick:t=>{var e;t.stopPropagation(),null===(e=k.current)||void 0===e||e.slideNext()},style:{flex:"0 0 auto",width:"44px",alignSelf:"flex-end",height:T,marginBottom:A,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent",opacity:1,paddingBottom:"20px",zIndex:20},"aria-label":"Next product",children:(0,S.jsx)("svg",{width:"14",height:"26",viewBox:"0 0 12 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M3 3L9 12L3 21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})};var Jt=function(t){const[e,i]=(0,s.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange,d=t.onActiveProductChange;return(0,n.useContext)(x.p).isIOS,(0,S.jsx)(Zt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a,onActiveProductChange:d},o.event_id)};function te(t){const[e,i,o,r]=(0,c.A)(),[l]=(0,s.QN)("whatmorePrimaryFont"),[a]=(0,s.QN)("whatmoreShopId"),[u,p]=(0,n.useState)(""),h=t.data,v=(t.event,t.product,t.setShowOptionsChart);var x=.4*r*.8*.13;(0,n.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,i,o,n,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(o=i.layout)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const g=`${D.i7`
|
|
69
69
|
0% {
|
|
70
70
|
transform: translateY(100%);
|
|
71
71
|
}
|