whatmore-react-assets 1.0.1420 → 1.0.1421

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1420",
3
+ "version": "1.0.1421",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -65,7 +65,7 @@
65
65
  100% {
66
66
  transform: translateY(0%) rotate(0deg);
67
67
  }
68
- `} infinite 1.5s linear`;return(0,x.jsx)(N.Jt,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.ov,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,x.jsx)(A.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(P.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var B=function(t){const[e,i]=(0,u.QN)("isFirstIndicatorRenderDone"),[o]=(0,u.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,x.jsx)(L,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},O=i(8781),D=i(5144),R=i(4459);const W="15px";var Q=i(1351),V=i(6157),M=i(4737);var H=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p,v,m]=(0,h.A)(),[g,f]=(0,n.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(M.B),b=.1*v,C=.95*m,S=.05*m;return(0,x.jsx)(s.BJ,{direction:"row",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.BJ,{direction:"column",width:"fit-content",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,x.jsx)(s.az,{width:C+"px",height:"fit-content",padding:"6px",marginTop:W,backgroundColor:o,borderRadius:"5px",animation:g?D.jd:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.qw1)(a),onClick:()=>{f(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[n],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.BLb)(a)?t.product_link+"?"+(0,c.VCz)(a)+"&"+(0,c.Spk)(a)+"&"+(0,c.$lz)(a):t.product_link}(w)},_hover:{backgroundColor:(0,R.YU)(o,8)},cursor:"pointer",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,c.Qed)(a)})})})})})},Y=i(4892),J=i(8538),U=i(7458),X=i(2159),q=i(9537),K=i(173),$=(i(6125),i(7807));const G={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70"}};function Z(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height,f=t.title,w=t.showInProgressIcon;return(0,x.jsxs)(s.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{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),h(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:w?(0,R.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),v(),h(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function tt(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height;return(0,x.jsx)(s.az,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(a)?r:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),h(!0)},animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(a)?(0,c.KPq)(a):null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.KPq)(a),"\xa0"]})})})})}function et(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,x.jsx)(s.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.3*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function it(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,p=t.onCartIconClick;return(0,x.jsx)(s.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{p()},children:(0,c.DiI)(o)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var nt=function(t){var e,i,n,o,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,h=t.cartState,p=t.cartCount,v=t.onClickAtc,m=t.onCartIconClick;function g(){v()}const f=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==h?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(et,{baseFontSize:s,width:f,height:w})}):"init"==h?0==p?(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):c?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(it,{onClick:g,baseFontSize:s,cartCount:p,width:f,height:w,onCartIconClick:m})}):(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):(0,x.jsx)(Z,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:f,height:w,title:"awaitingVariantSelection"==h?null!==(l=null===G||void 0===G||null===(a=G[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:d})},ot=i(4533),rt=i(6387),lt=i(1745);const at=(0,u.Xd)("isInDesignMode"),dt=(0,u.Xd)("isDemoBrand");async function st(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,lt.RX)(t,e,n,l,a,d,r):(at||dt||(async()=>{(0,ot.Fu)(o,r,l,a,d)})(),(0,rt.It)(t,e,n))}function ct(t,e){return"shopify"==t?(0,lt.iL)(e):(0,rt.pV)(e)}var ut=i(852);var ht=function(t,e,i){const[o]=(0,u.QN)("whatmoreShopId"),[r]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),{closeClickComponent:v}=(0,n.useContext)(fi),{whatmoreUserInfo:x}=(0,n.useContext)(M.B),[m,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:m.cart_count}),"init"!=t&&"errored"!=t?(0,u.t2)("whatmoreAllowAutoSlide",!1):(0,u.t2)("whatmoreAllowAutoSlide",!0)}function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,n){const d=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(d,1,(0,c.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===x||void 0===x?void 0:x.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}(i,e,1),f("init",m.cart_count+1),(0,u.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.Xd)("whatmoreAddedToCart")&&(0,ut.H)(o,(()=>{}),100,window.location.hostname),(0,c.MPe)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[m,f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.M)(e,(0,c.NCy)(o),o).then((e=>{h.current=e.variants;const n=function(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}(e);s(n),function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)||i?!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},j,function(t){var e,i,n,r;const l=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,c.NCy)(o),a),compare_price:((0,c.NCy)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,c.m4S)(o)&&("go_to_cart_page"!==(0,c.m4S)(o)?"open_cart_slider"!==(0,c.m4S)(o)||null!==v&&v():ct((0,c.NCy)(o),o))}]},pt=i(7973);var vt=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",c=null!==(o=t.baseFontSize)&&void 0!==o?o:10,h=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",v=t.data,[m]=(0,u.QN)("whatmorePrimaryFont");function f(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[w,j]=(0,n.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,n.useEffect)((()=>{h(w)}),[w]),(0,x.jsx)(s.BJ,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,i)=>{var n;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.type))return;const o=e.every((e=>{var i,n,o,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(n=i.finalArr)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===a?void 0:a.optionsrc)}));return(0,x.jsxs)(s.BJ,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,x.jsx)(s.ov,{width:"100%",children:(0,x.jsx)(s.cG,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.EY,{as:"b",fontSize:1.2*c+"px",sx:{color:p+" !important",fontFamily:m+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,x.jsx)(s.so,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,u,h,p,f;return(0==i||(null===v||void 0===v||null===(r=v.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===w||void 0===w?void 0:w[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,x.jsxs)(s.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var i,n;j([w[0],t,null===v||void 0===v||null===(i=v.variants)||void 0===i||null===(n=i.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===n?void 0:n.option3])}else{var o,r,l,a,d,s;const e=null===v||void 0===v||null===(o=v.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;j([t,null===v||void 0===v||null===(l=v.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===v||void 0===v||null===(d=v.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===w[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,x.jsxs)(s.EY,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:m+" !important"},align:"center",paddingX:(y=e.option,y.length>=3?"0px":.5*c+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,x.jsx)(g._V,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:o?"50%":"100%"},src:(0,pt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(u=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===u?void 0:u.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(f=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===f?void 0:f.optionsrc,"?width=400&height=400")})]});var y}))},i)]},i)}))})},xt=i(6594),mt=i(4833);var gt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmoreSecondaryColor"),w=(0,u.Xd)("whatmoreSecondaryColorShade900"),[j]=(0,u.QN)("whatmorePrimaryFont"),[y]=(0,u.QN)("whatmoreShopId"),[b,C,S,k]=(0,h.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)(M.B),[A,P,L,B,O,H,X]=ht(0,z,t.event),[q,K]=(0,n.useState)(null),[G,Z]=(0,n.useState)(parseFloat(z.price)),[tt,et]=(0,n.useState)(parseFloat(z.compare_price)),[it,ot]=(0,n.useState)(null===z||void 0===z?void 0:z.title),[rt,lt]=(0,n.useState)(z.currency),[at,dt]=(0,n.useState)(null),st=t.event,ct=t.productClickHandler,{whatmoreIsPreviewMode:ut}=(0,n.useContext)(M.B),[gt,ft]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,c.w4b)(y)&&(0,xt.ck)(z,(0,c.NCy)(y),y).then((t=>{E(t),Z(parseFloat(t.price)),et(parseFloat(t.compare_price)),lt(t.currency),jt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,p.M)(z,(0,c.NCy)(y),y);dt(l),Z("61916709004"==y&&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),et("61916709004"==y&&null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price),jt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=at?null===at||void 0===at||null===(t=at.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,n=-1!==i?null===at||void 0===at||null===(e=at.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===at||void 0===at||null===(r=at.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ft({position:i,finalArr:n,finalArrExternal:o})}),[at]);var yt=.68*k,bt=.55*yt,Ct=.4*yt,St=yt*(.55-.4),kt=yt+"px",It=Ct+"px",_t=St+"px",zt=.12*Ct;const Et=(0,c.XQu)(y);function Tt(){window.location.href=function(t){return(0,c.BLb)(y)?t.product_link+"?"+(0,c.VCz)(y)+"&"+(0,c.Spk)(y)+"&"+(0,c.$lz)(y):t.product_link}(z)}const Ft=F.landingLocationType,Nt=F.templateType,At=(0,mt.Wd)(Ft)+(0,mt.gf)(Nt)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(y),width:kt,height:"fit-content",boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==y?Tt():ct(e),_(!0)}(st,z)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(y)),animation:I?D.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(y),borderColor:(0,c.Fwt)(y)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:It,width:It,bgColor:"STRDOIDF6O7"==y?"#f7f7f7":w,children:(0,x.jsx)(g._V,{width:It,height:It,src:(0,pt.b)(null!==(e=null!==(i=null===gt||void 0===gt||null===(o=gt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===gt||void 0===gt||null===(a=gt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(y)+" !important"}})}),(0,x.jsxs)(s.az,{height:It,width:yt-Ct+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(y)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*zt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"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","important"))},children:(0,J.v)(it,"prod-tile")}),(0,c.Nzx)(y)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-atc-price",direction:(0,c.vw2)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==T?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*zt*(0,c.rh$)(y)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.uoB)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,xt.Sb)(null!==G&&void 0!==G?G:null===z||void 0===z?void 0:z.price,"",y,rt)," \xa0"]}),(0,U.P)(G,tt)&&wt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*zt*(0,c.rh$)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.gld)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==tt&&void 0!==tt?tt:null===z||void 0===z?void 0:z.compare_price,"",y,rt)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.EY,{fontSize:.82*zt*(0,c.rh$)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.Br1)(y)+" !important"},children:ut?(0,c.p6A)(y):(0,c.i2h)(y)})]}),(0,c.UlM)(y)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==T?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.SK$)(y)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.EY,{color:"white",paddingX:"6px",fontSize:.8*zt+"px",children:"VIEW PRODUCT"})}):(0,x.jsx)(Y.A,{sx:{color:f,fontSize:1.3*zt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(N.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==A.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==A.state&&null!=L?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*bt+"px",marginBottom:.1*bt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:bt*Et+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:kt,height:"fit-content",event:st,product:z,finalArr:gt,data:at,productVariantOptions:L,baseFontSize:1.2*zt,onOptionSelected:t=>{!function(t){K(t);const e=H(t);e&&(Z(e.price),et(e.compare_price),e.title.includes(" ")&&ot(e.title))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.BJ,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:_t,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(nt,{baseFontSize:.3*St,setProductVariantTitle:ot,product:z,cartState:A.state,cartCount:A.cart_count,updateCartState:P,onClickAtc:t=>{"init"==A.state?(B(At),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:st,productList:[z],ctaList:st.cta})):"awaitingVariantSelection"==A.state&&(O(q,At),ot(null===z||void 0===z?void 0:z.title))},onCartIconClick:()=>{X()}})})]})},ft=i(2835);var wt=function(t){var e,i,n,o,r;const[a]=(0,u.QN)("isInDesignMode"),[d]=(0,u.QN)("isDemoBrand"),[h]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("whatmorePrimaryFont"),[v]=(0,u.QN)("whatmoreShopId"),[m]=(0,u.QN)("websiteLanguage"),g=t.event,f=t.product,w=null!==(e=t.baseFontSize)&&void 0!==e?e:10,j=null!==(i=t.width)&&void 0!==i?i:"fit-content",y=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,x.jsx)(s.N_,{href:f.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(g,f)},children:(0,x.jsx)(s.az,{width:j,height:y,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.4*w,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:h+" !important"},children:"MORE INFO"!=(0,c.KnH)(v)?(0,c.KnH)(v):null!==(o=null===G||void 0===G||null===(r=G[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,c.KnH)(v)})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(Y.A,{sx:{color:h,fontSize:1.4*w}})})]})})})},jt=i(9408);function yt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title;return(0,x.jsx)(s.az,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(r)?i:(0,c.Wc_)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var bt=function(t){var e,i,n;const[o]=(0,u.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,x.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Qed)(o)})};var Ct=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,v,m,f]=(0,h.A)(),[w,j]=(0,n.useState)(!1),[y,b]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(M.B),[S,k,I,_,z,E,T]=ht(0,y,t.event),[F,A]=(0,n.useState)(null),[P,L]=(0,n.useState)(parseFloat(y.price)),[B,O]=(0,n.useState)(parseFloat(y.compare_price)),[R,H]=(0,n.useState)(y.currency),[Y,X]=(0,n.useState)(!1),q=t.event,K=t.productClickHandler,$=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,G=C.landingLocationType,Z=C.templateType,tt=(0,mt.Wd)(G)+(0,mt.gf)(Z)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(a)&&(0,xt.ck)(y,(0,c.NCy)(a),a).then((t=>{b(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),H(t.currency)}));(async()=>{const t=await(0,p.M)(y,(0,c.NCy)(a),a);L(null===t||void 0===t?void 0:t.price),O(null===t||void 0===t?void 0:t.compare_at_price),X(!0)})()}),[]);var et=f*$,it=.3*et,ot=et+"px",rt=.7*it,lt=.9*rt,at=.12*it;const dt=(0,c.XQu)(a);function st(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),j(!0)}return(0,x.jsx)(s.BJ,{direction:"row",width:ot,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.az,{marginTop:W,marginBottom:(0,c.qw1)(a),width:ot,onClick:t=>{},animation:w?D.jd:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{st(q,y)},children:[(0,x.jsx)(s.az,{height:rt+"px",width:rt+"px",children:(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.az,{height:lt+"px",width:lt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g._V,{width:lt+"px",height:lt+"px",src:y.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.az,{height:rt+"px",width:et-rt+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*at+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,J.v)(y.title.toString())}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.Nzx)(a)?(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[Y&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:1*at+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,xt.Sb)(null!==P&&void 0!==P?P:null===y||void 0===y?void 0:y.price,"",a,R)," \xa0"]}),(0,x.jsx)(s.ov,{children:(0,U.P)(y.price,y.compare_price)&&Y?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.8*at+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==B&&void 0!==B?B:null===y||void 0===y?void 0:y.compare_price,"",a,R)]}):(0,x.jsx)(x.Fragment,{})})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(ft.A,{storeId:a,productId:y.client_product_id,productLink:y.product_link,fontSize:1*at,fontColor:"white"})})]})]})})]}),(0,x.jsx)(N.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=I?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*it+"px",marginBottom:.1*it+"px",overflowY:"auto",overflowX:"hidden",maxHeight:it*dt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:ot,height:"fit-content",event:q,product:y,productVariantOptions:I,baseFontSize:1*at,onOptionSelected:t=>{!function(t){A(t);const e=E(t);e&&(L(e.price),O(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.az,{width:"100%",height:"100%",children:(0,x.jsx)(wt,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%"})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.ZzM)(a)?(0,x.jsx)(bt,{baseFontSize:.8*at,event:q,product:y,borderRadius:"md",onShopNowClick:t=>{st(q,y)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c.nWM)(a)?(0,x.jsx)(jt.default,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(nt,{baseFontSize:.8*at,event:q,product:y,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(_(tt),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:q,productList:[y],ctaList:q.cta})):"awaitingVariantSelection"==S.state&&z(F,tt)},onCartIconClick:()=>{T()}})})})]})]})})})};var St=function(t){var e,i,o,r,a,d,v,m,f,w;const[j]=(0,u.QN)("isInDesignMode"),[y]=(0,u.QN)("isDemoBrand"),[b]=(0,u.QN)("whatmoreSecondaryColor"),C=(0,u.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,u.QN)("whatmorePrimaryFont"),[k]=(0,u.QN)("whatmoreShopId"),[I,_,z,E]=(0,h.A)(),[T,F]=(0,n.useState)(!1),[N,A]=(0,n.useState)(t.product),P=(0,u.Xd)("whatmoreUITheme"),[L,B]=(0,n.useState)(!1),[O,H]=(0,n.useState)(parseFloat(N.price)),[X,q]=(0,n.useState)(parseFloat(N.compare_price)),[K,$]=(0,n.useState)(N.currency),G=t.event,[Z,tt]=(0,n.useState)();(0,n.useEffect)((()=>{(0,c.w4b)(k)&&(0,xt.ck)(N,(0,c.NCy)(k),k).then((t=>{A(t),H(parseFloat(t.price)),q(parseFloat(t.compare_price)),$(t.currency),B(!0)}));(async()=>{const t=await(0,p.M)(N,(0,c.NCy)(k),k);tt(t),B(!0)})()}),[]);var et=.68*E,it=.4*et,nt=et+"px",ot=it+"px",rt=et*(.55-.4)+"px",lt=.12*it;(0,c.XQu)(k);const{whatmoreWidgetSourceDetails:at}=(0,n.useContext)(M.B);function dt(t){return(0,c.BLb)(k)?t.product_link+"?"+(0,c.VCz)(k)+"&"+(0,c.Spk)(k)+"&"+(0,c.$lz)(k):t.product_link}function st(t,e){j||y||(async()=>{(0,l.Pb)(t,e),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:at,event:t,productList:[e],ctaList:t.cta})})(),F(!0)}return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(k),width:nt,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{st(G,N),window.location.href=dt(N)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(k)),animation:T?D.jd:null,borderRadius:"round"==P?"xl":null,overflow:"hidden",onAnimationEnd:()=>{F(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(k),borderColor:(0,c.Fwt)(k)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:ot,width:ot,children:(0,x.jsx)(g._V,{width:ot,height:ot,src:(0,pt.b)(N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(k)+" !important"}})}),(0,x.jsxs)(s.az,{height:ot,width:et-it+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.jsx)(s.EY,{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:S+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*lt+"px !important"},children:(0,J.v)(null==N.title?"":N.title.toString(),"prod-tile")}),(0,c.Nzx)(k)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-shopnow-price",direction:(0,c.vw2)(k)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[L&&(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.uoB)(k)+" !important",margin:"0px !important"},children:[" "+(0,xt.Sb)(parseFloat("77948879170"===k?(null===Z||void 0===Z?void 0:Z.price)>0?null===Z||void 0===Z?void 0:Z.price:(null===Z||void 0===Z||null===(e=Z.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===G||void 0===G||null===(o=G.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===G||void 0===G||null===(a=G.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===G||void 0===G||null===(v=G.products)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.price_max):null!==(f=null===Z||void 0===Z?void 0:Z.price)&&void 0!==f?f:O),"",k,K)," \xa0"]}),(0,U.P)(O,X)&&L?(0,x.jsxs)(s.EY,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.gld)(k)+" !important",margin:"0px !important"},children:[" ",(0,xt.Sb)(null!==(w=null===Z||void 0===Z?void 0:Z.compare_at_price)&&void 0!==w?w:X,"",k,K)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.rsz)(k)&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*lt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.ogW)(k)+" !important",color:(0,c._zx)(k)+" !important",margin:"0px !important"},children:["\xa0",(0,c.rsz)(k)," \xa0"]})]}),(0,c.UlM)(k)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:C,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(Y.A,{sx:{color:b,fontSize:1.3*lt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.Woi)(k)&&(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:rt,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(bt,{baseFontSize:.8*lt,event:G,product:N,borderRadius:"md",onShopNowClick:t=>{st(G,N),window.location.href=dt(N)}})})]})};function kt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,p=t.width,v=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,x.jsx)(It,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:v}):(0,x.jsxs)(s.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:g?(0,R.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function It(t){const[e]=(0,u.QN)("whatmoreSecondaryColor"),[i]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,x.jsx)(s.BJ,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,x.jsx)(s.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?D.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.Hfu)(o)} !important`},children:(0,c.KPq)(o)})})})})})}function _t(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,x.jsx)(s.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,x.jsx)(s.BJ,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.2*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function zt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,x.jsx)(s.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,x.jsxs)(s.BJ,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}}):(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Et=function(t){var e,i,n,o;const[r]=(0,u.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,x.jsx)(_t,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,x.jsx)(zt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(kt,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Tt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmorePrimaryFont"),[w]=(0,u.QN)("whatmoreShopId"),[j,y,b,C]=(0,h.A)(),[S,k]=(0,n.useState)(!1),[I,_]=(0,n.useState)(t.product),z=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E}=(0,n.useContext)(M.B),[T,F,N,A,P,L,B]=ht(0,I,t.event),[O,H]=(0,n.useState)(null),[Y,X]=(0,n.useState)(parseFloat(I.price)),[q,K]=(0,n.useState)(parseFloat(I.compare_price)),[$,G]=(0,n.useState)(I.currency),[Z,tt]=(0,n.useState)(null),et=t.event,it=t.productClickHandler,[nt,ot]=(0,n.useState)(null),[rt,lt]=(0,n.useState)(!1),at=E.landingLocationType,dt=E.templateType,st=(0,mt.Wd)(at)+(0,mt.gf)(dt)+"_"+(null===et||void 0===et?void 0:et.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(w)&&(0,xt.ck)(I,(0,c.NCy)(w),w).then((t=>{_(t),X(parseFloat(t.price)),K(parseFloat(t.compare_price)),G(t.currency),lt(!0)}));(async()=>{const t=await(0,p.M)(I,(0,c.NCy)(w),w);tt(t),X(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),lt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=Z?null===Z||void 0===Z||null===(t=Z.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,n=-1!==i?null===Z||void 0===Z||null===(e=Z.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===Z||void 0===Z||null===(r=Z.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ot({position:i,finalArr:n,finalArrExternal:o})}),[Z]);var ct=.72*C,ut=.37*ct,vt=ct*(.48-.37),gt=.95*ct+"px",ft=ut+"px",wt=.12*ut;function jt(){window.location.href=function(t){return(0,c.BLb)(w)?t.product_link+"?"+(0,c.VCz)(w)+"&"+(0,c.Spk)(w)+"&"+(0,c.$lz)(w):t.product_link}(I)}return(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:"24px",width:gt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?jt():it(e),k(!0)}(et,I)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(w)),animation:S?D.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{k(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(w),borderColor:(0,c.Fwt)(w)},children:(0,x.jsxs)(s.BJ,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,x.jsx)(s.az,{height:ft,width:ft,children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:(0,pt.b)(null!==(e=null!==(i=null===nt||void 0===nt||null===(o=nt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===nt||void 0===nt||null===(a=nt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:I.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(w)+" !important"}})}),(0,x.jsx)(s.az,{height:ft,width:ct-ut+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",f,"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,J.v)(null==I.title?"":I.title.toString())}),(0,c.Nzx)(w)?(0,x.jsxs)(s.BJ,{direction:(0,c.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[rt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,xt.Sb)(null!==Y&&void 0!==Y?Y:null===I||void 0===I?void 0:I.price,"",w,$)," \xa0"]}),(0,U.P)(Y,q)&&rt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==q&&void 0!==q?q:null===I||void 0===I?void 0:I.compare_price,"",w,$)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(Et,{baseFontSize:.3*vt,event:et,product:I,cartState:T.state,cartCount:T.cart_count,updateCartState:F,onClickAtc:t=>{"init"===T.state?(A(st,!0),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:E,event:et,productList:[I],ctaList:et.cta})):"awaitingVariantSelection"===T.state&&it(I)},onCartIconClick:t=>{B()}})]})})]})})};var Ft=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i]=(0,u.QN)("isWhatmoreWebsite"),n=(0,c.Vpi)(e),o=t.event,r=t.product;return i?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,x.jsx)(Tt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,x.jsx)(H,{product:t.product,event:t.event}):"narrow-tile"==n?(0,x.jsx)(Ct,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,x.jsx)(x.Fragment,{})},Nt=i(1079),At=i(7802),Pt=i(2979);var Lt=function(t){const[e,i,n,l]=(0,h.A)(),[a]=(0,u.QN)("whatmoreShopId"),d=(0,u.Xd)("isInDesignMode"),p=(0,u.Xd)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.Vpi)(a);if(!(0,At.Z_)(v))return(0,x.jsx)(x.Fragment,{});if(1==v.products.length&&(void 0==v.cta||0==v.cta.length)){const t=v.products[0];return(0,c.uJl)(a)?(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,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,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(Ct,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"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,x.jsx)(s.ov,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(Ft,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.ov,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.az,{width:l+"px",backgroundImage:"narrow-tile"==g?"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,x.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.TYM)(a)?0:1,centeredSlides:!(0,c.TYM)(a),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[v.products[0]]:v.products).map((t=>"oos"!=t.product_status&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(Ft,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.Woi)(a)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,x.jsx)(Nt.A,{fontFactor:.75,cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Bt=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(fi).isIOS&&e?(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id):(0,x.jsx)(N.Jt,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id)})};function Ot(t){const e=t.event,[i,n,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont");return(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.EY,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,x.jsx)(T.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Dt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o,r]=(0,u.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,j.A)(),[d,h]=(0,u.QN)("isFirstIndicatorRenderDone"),p=(0,n.useContext)(fi),[v]=(0,u.QN)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,b=t.productClickHandler;return(0,x.jsx)(s.az,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Ot,{event:m}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(y,{focusRef:w}),(0,x.jsx)(F.A,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.az,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.az,{width:"full",margin:"2px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(B,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.az,{width:"full",children:[(0,c.ek9)(v)?(0,x.jsx)(s.az,{w:"100%",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(E,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.az,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Bt,{event:m,productClickHandler:b})})]}):(0,x.jsx)("div",{})]})]})})},Rt=i(7642);function Wt(t){const[e,i,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p]=(0,n.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.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===v||void 0===v?void 0:v.id}&title=${null===v||void 0===v?void 0:v.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,n,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${C.i7`
68
+ `} infinite 1.5s linear`;return(0,x.jsx)(N.Jt,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.ov,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,x.jsx)(A.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(P.A,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var B=function(t){const[e,i]=(0,u.QN)("isFirstIndicatorRenderDone"),[o]=(0,u.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,x.jsx)(L,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},O=i(8781),D=i(5144),R=i(4459);const W="15px";var Q=i(1351),V=i(6157),M=i(4737);var H=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o]=(0,u.QN)("whatmoreSecondaryColor"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p,v,m]=(0,h.A)(),[g,f]=(0,n.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(M.B),b=.1*v,C=.95*m,S=.05*m;return(0,x.jsx)(s.BJ,{direction:"row",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.BJ,{direction:"column",width:"fit-content",height:b,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,x.jsx)(s.az,{width:C+"px",height:"fit-content",padding:"6px",marginTop:W,backgroundColor:o,borderRadius:"5px",animation:g?D.jd:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.qw1)(a),onClick:()=>{f(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[n],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.BLb)(a)?t.product_link+"?"+(0,c.VCz)(a)+"&"+(0,c.Spk)(a)+"&"+(0,c.$lz)(a):t.product_link}(w)},_hover:{backgroundColor:(0,R.YU)(o,8)},cursor:"pointer",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,c.Qed)(a)})})})})})},Y=i(4892),J=i(8538),U=i(7458),X=i(2159),q=i(9537),K=i(173),$=(i(6125),i(7807));const G={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70"}};function Z(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height,f=t.title,w=t.showInProgressIcon;return(0,x.jsxs)(s.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{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),h(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:w?(0,R.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),v(),h(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function tt(t){var e,i,o;const[r]=(0,u.QN)("whatmoreSecondaryColor"),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=t.onClick,m=t.width,g=t.height;return(0,x.jsx)(s.az,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(a)?r:(0,c.Wc_)(a),onClick:t=>{t.stopPropagation(),v(),h(!0)},animation:d?D.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.KPq)(a)?(0,c.KPq)(a):null!==(i=null===G||void 0===G||null===(o=G[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.KPq)(a),"\xa0"]})})})})}function et(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,x.jsx)(s.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.3*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function it(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,p=t.onCartIconClick;return(0,x.jsx)(s.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{p()},children:(0,c.DiI)(o)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var nt=function(t){var e,i,n,o,r,l,a;const[d]=(0,u.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,h=t.cartState,p=t.cartCount,v=t.onClickAtc,m=t.onCartIconClick;function g(){v()}const f=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==h?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(et,{baseFontSize:s,width:f,height:w})}):"init"==h?0==p?(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):c?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:f},children:(0,x.jsx)(it,{onClick:g,baseFontSize:s,cartCount:p,width:f,height:w,onCartIconClick:m})}):(0,x.jsx)(tt,{onClick:g,baseFontSize:s,width:f,height:w,websiteLanguage:d}):(0,x.jsx)(Z,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:h,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:f,height:w,title:"awaitingVariantSelection"==h?null!==(l=null===G||void 0===G||null===(a=G[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==h||"productVariantDetailsApiCallInProgress"==h,websiteLanguage:d})},ot=i(4533),rt=i(6387),lt=i(1745);const at=(0,u.Xd)("isInDesignMode"),dt=(0,u.Xd)("isDemoBrand");async function st(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,lt.RX)(t,e,n,l,a,d,r):(at||dt||(async()=>{(0,ot.Fu)(o,r,l,a,d)})(),(0,rt.It)(t,e,n))}function ct(t,e){return"shopify"==t?(0,lt.iL)(e):(0,rt.pV)(e)}var ut=i(852);var ht=function(t,e,i){const[o]=(0,u.QN)("whatmoreShopId"),[r]=(0,u.QN)("isInDesignMode"),[a]=(0,u.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),{closeClickComponent:v}=(0,n.useContext)(fi),{whatmoreUserInfo:x}=(0,n.useContext)(M.B),[m,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:m.cart_count}),"init"!=t&&"errored"!=t?(0,u.t2)("whatmoreAllowAutoSlide",!1):(0,u.t2)("whatmoreAllowAutoSlide",!0)}function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,n){const d=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(d,1,(0,c.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===x||void 0===x?void 0:x.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}(i,e,1),f("init",m.cart_count+1),(0,u.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.Xd)("whatmoreAddedToCart")&&(0,ut.H)(o,(()=>{}),100,window.location.hostname),(0,c.MPe)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[m,f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.M)(e,(0,c.NCy)(o),o).then((e=>{h.current=e.variants;const n=function(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}(e);s(n),function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)||i?!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},j,function(t){var e,i,n,r;const l=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,c.NCy)(o),a),compare_price:((0,c.NCy)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,c.m4S)(o)&&("go_to_cart_page"!==(0,c.m4S)(o)?"open_cart_slider"!==(0,c.m4S)(o)||null!==v&&v():ct((0,c.NCy)(o),o))}]},pt=i(7973);var vt=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",c=null!==(o=t.baseFontSize)&&void 0!==o?o:10,h=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",v=t.data,[m]=(0,u.QN)("whatmorePrimaryFont");function f(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[w,j]=(0,n.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,n.useEffect)((()=>{h(w)}),[w]),(0,x.jsx)(s.BJ,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",children:l.map(((e,i)=>{var n;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.type))return;const o=e.every((e=>{var i,n,o,r,l,a;return(null===t||void 0===t||null===(i=t.finalArr)||void 0===i||null===(n=i.finalArr)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option))))||void 0===a?void 0:a.optionsrc)}));return(0,x.jsxs)(s.BJ,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,x.jsx)(s.ov,{width:"100%",children:(0,x.jsx)(s.cG,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.EY,{as:"b",fontSize:1.2*c+"px",sx:{color:p+" !important",fontFamily:m+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,x.jsx)(s.so,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,u,h,p,f;return(0==i||(null===v||void 0===v||null===(r=v.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===w||void 0===w?void 0:w[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,x.jsxs)(s.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var i,n;j([w[0],t,null===v||void 0===v||null===(i=v.variants)||void 0===i||null===(n=i.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===n?void 0:n.option3])}else{var o,r,l,a,d,s;const e=null===v||void 0===v||null===(o=v.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;j([t,null===v||void 0===v||null===(l=v.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===v||void 0===v||null===(d=v.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===w[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,x.jsxs)(s.EY,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:m+" !important"},align:"center",paddingX:(y=e.option,y.length>=3?"0px":.5*c+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,x.jsx)(g._V,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:o?"50%":"100%"},src:(0,pt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(u=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===u?void 0:u.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(f=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===f?void 0:f.optionsrc,"?width=400&height=400")})]});var y}))},i)]},i)}))})},xt=i(6594),mt=i(4833);var gt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmoreSecondaryColor"),w=(0,u.Xd)("whatmoreSecondaryColorShade900"),[j]=(0,u.QN)("whatmorePrimaryFont"),[y]=(0,u.QN)("whatmoreShopId"),[b,C,S,k]=(0,h.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)(M.B),[A,P,L,B,O,H,X]=ht(0,z,t.event),[q,K]=(0,n.useState)(null),[G,Z]=(0,n.useState)(parseFloat(z.price)),[tt,et]=(0,n.useState)(parseFloat(z.compare_price)),[it,ot]=(0,n.useState)(null===z||void 0===z?void 0:z.title),[rt,lt]=(0,n.useState)(z.currency),[at,dt]=(0,n.useState)(null),st=t.event,ct=t.productClickHandler,{whatmoreIsPreviewMode:ut}=(0,n.useContext)(M.B),[gt,ft]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,c.w4b)(y)&&(0,xt.ck)(z,(0,c.NCy)(y),y).then((t=>{E(t),Z(parseFloat(t.price)),et(parseFloat(t.compare_price)),lt(t.currency),jt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,p.M)(z,(0,c.NCy)(y),y);dt(l),Z("61916709004"==y&&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),et("61916709004"==y&&null!==(n=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==n?n:null===l||void 0===l?void 0:l.compare_at_price),jt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=at?null===at||void 0===at||null===(t=at.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,n=-1!==i?null===at||void 0===at||null===(e=at.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===at||void 0===at||null===(r=at.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ft({position:i,finalArr:n,finalArrExternal:o})}),[at]);var yt=.68*k,bt=.55*yt,Ct=.4*yt,St=yt*(.55-.4),kt=yt+"px",It=Ct+"px",_t=St+"px",zt=.12*Ct;const Et=(0,c.XQu)(y);function Tt(){window.location.href=function(t){return(0,c.BLb)(y)?t.product_link+"?"+(0,c.VCz)(y)+"&"+(0,c.Spk)(y)+"&"+(0,c.$lz)(y):t.product_link}(z)}const Ft=F.landingLocationType,Nt=F.templateType,At=(0,mt.Wd)(Ft)+(0,mt.gf)(Nt)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(y),width:kt,height:"fit-content",boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==y?Tt():ct(e),_(!0)}(st,z)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(y)),animation:I?D.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(y),borderColor:(0,c.Fwt)(y)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:It,width:It,children:(0,x.jsx)(g._V,{width:It,height:It,src:(0,pt.b)(null!==(e=null!==(i=null===gt||void 0===gt||null===(o=gt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===gt||void 0===gt||null===(a=gt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===q||void 0===q?void 0:q[null===gt||void 0===gt?void 0:gt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(y)+" !important"}})}),(0,x.jsxs)(s.az,{height:It,width:yt-Ct+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(y)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*zt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"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","important"))},children:(0,J.v)(it,"prod-tile")}),(0,c.Nzx)(y)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-atc-price",direction:(0,c.vw2)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==T?"lg":null,paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:1.2*zt*(0,c.rh$)(y)+"px !important",fontWeight:"bold !important",lineHeight:"100%",textAlign:"left",sx:{fontFamily:j+" !important",color:(0,c.uoB)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,xt.Sb)(null!==G&&void 0!==G?G:null===z||void 0===z?void 0:z.price,"",y,rt)," \xa0"]}),(0,U.P)(G,tt)&&wt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:1.2*zt*(0,c.rh$)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.gld)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==tt&&void 0!==tt?tt:null===z||void 0===z?void 0:z.compare_price,"",y,rt)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.EY,{fontSize:.82*zt*(0,c.rh$)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.Br1)(y)+" !important"},children:ut?(0,c.p6A)(y):(0,c.i2h)(y)})]}),(0,c.UlM)(y)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==T?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.SK$)(y)?(0,x.jsx)($.$n,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.EY,{color:"white",paddingX:"6px",fontSize:.8*zt+"px",children:"VIEW PRODUCT"})}):(0,x.jsx)(Y.A,{sx:{color:f,fontSize:1.3*zt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(N.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==A.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==A.state&&null!=L?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*bt+"px",marginBottom:.1*bt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:bt*Et+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:kt,height:"fit-content",event:st,product:z,finalArr:gt,data:at,productVariantOptions:L,baseFontSize:1.2*zt,onOptionSelected:t=>{!function(t){K(t);const e=H(t);e&&(Z(e.price),et(e.compare_price),e.title.includes(" ")&&ot(e.title))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.BJ,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:_t,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(nt,{baseFontSize:.3*St,setProductVariantTitle:ot,product:z,cartState:A.state,cartCount:A.cart_count,updateCartState:P,onClickAtc:t=>{"init"==A.state?(B(At),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:st,productList:[z],ctaList:st.cta})):"awaitingVariantSelection"==A.state&&(O(q,At),ot(null===z||void 0===z?void 0:z.title))},onCartIconClick:()=>{X()}})})]})},ft=i(2835);var wt=function(t){var e,i,n,o,r;const[a]=(0,u.QN)("isInDesignMode"),[d]=(0,u.QN)("isDemoBrand"),[h]=(0,u.QN)("whatmoreSecondaryColor"),[p]=(0,u.QN)("whatmorePrimaryFont"),[v]=(0,u.QN)("whatmoreShopId"),[m]=(0,u.QN)("websiteLanguage"),g=t.event,f=t.product,w=null!==(e=t.baseFontSize)&&void 0!==e?e:10,j=null!==(i=t.width)&&void 0!==i?i:"fit-content",y=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,x.jsx)(s.N_,{href:f.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(g,f)},children:(0,x.jsx)(s.az,{width:j,height:y,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.4*w,fontWeight:"semibold",sx:{fontFamily:p+" !important",color:h+" !important"},children:"MORE INFO"!=(0,c.KnH)(v)?(0,c.KnH)(v):null!==(o=null===G||void 0===G||null===(r=G[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,c.KnH)(v)})}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(Y.A,{sx:{color:h,fontSize:1.4*w}})})]})})})},jt=i(9408);function yt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title;return(0,x.jsx)(s.az,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.Wc_)(r)?i:(0,c.Wc_)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var bt=function(t){var e,i,n;const[o]=(0,u.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,x.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Qed)(o)})};var Ct=function(t){var e;const[i]=(0,u.QN)("isInDesignMode"),[o]=(0,u.QN)("isDemoBrand"),[r]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,v,m,f]=(0,h.A)(),[w,j]=(0,n.useState)(!1),[y,b]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(M.B),[S,k,I,_,z,E,T]=ht(0,y,t.event),[F,A]=(0,n.useState)(null),[P,L]=(0,n.useState)(parseFloat(y.price)),[B,O]=(0,n.useState)(parseFloat(y.compare_price)),[R,H]=(0,n.useState)(y.currency),[Y,X]=(0,n.useState)(!1),q=t.event,K=t.productClickHandler,$=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,G=C.landingLocationType,Z=C.templateType,tt=(0,mt.Wd)(G)+(0,mt.gf)(Z)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(a)&&(0,xt.ck)(y,(0,c.NCy)(a),a).then((t=>{b(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),H(t.currency)}));(async()=>{const t=await(0,p.M)(y,(0,c.NCy)(a),a);L(null===t||void 0===t?void 0:t.price),O(null===t||void 0===t?void 0:t.compare_at_price),X(!0)})()}),[]);var et=f*$,it=.3*et,ot=et+"px",rt=.7*it,lt=.9*rt,at=.12*it;const dt=(0,c.XQu)(a);function st(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),j(!0)}return(0,x.jsx)(s.BJ,{direction:"row",width:ot,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.az,{marginTop:W,marginBottom:(0,c.qw1)(a),width:ot,onClick:t=>{},animation:w?D.jd:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,x.jsxs)(s.BJ,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{st(q,y)},children:[(0,x.jsx)(s.az,{height:rt+"px",width:rt+"px",children:(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.az,{height:lt+"px",width:lt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g._V,{width:lt+"px",height:lt+"px",src:y.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.az,{height:rt+"px",width:et-rt+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.EY,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*at+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,J.v)(y.title.toString())}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,c.Nzx)(a)?(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[Y&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:1*at+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,xt.Sb)(null!==P&&void 0!==P?P:null===y||void 0===y?void 0:y.price,"",a,R)," \xa0"]}),(0,x.jsx)(s.ov,{children:(0,U.P)(y.price,y.compare_price)&&Y?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.8*at+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==B&&void 0!==B?B:null===y||void 0===y?void 0:y.compare_price,"",a,R)]}):(0,x.jsx)(x.Fragment,{})})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.ov,{children:(0,x.jsx)(ft.A,{storeId:a,productId:y.client_product_id,productLink:y.product_link,fontSize:1*at,fontColor:"white"})})]})]})})]}),(0,x.jsx)(N.s1,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=I?(0,x.jsx)(s.az,{width:"100%",height:"fit-content",marginTop:.1*it+"px",marginBottom:.1*it+"px",overflowY:"auto",overflowX:"hidden",maxHeight:it*dt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:ot,height:"fit-content",event:q,product:y,productVariantOptions:I,baseFontSize:1*at,onOptionSelected:t=>{!function(t){A(t);const e=E(t);e&&(L(e.price),O(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.az,{width:"100%",height:"100%",children:(0,x.jsx)(wt,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%"})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.ZzM)(a)?(0,x.jsx)(bt,{baseFontSize:.8*at,event:q,product:y,borderRadius:"md",onShopNowClick:t=>{st(q,y)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c.nWM)(a)?(0,x.jsx)(jt.default,{baseFontSize:.8*at,event:q,product:y,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(nt,{baseFontSize:.8*at,event:q,product:y,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(_(tt),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:q,productList:[y],ctaList:q.cta})):"awaitingVariantSelection"==S.state&&z(F,tt)},onCartIconClick:()=>{T()}})})})]})]})})})};var St=function(t){var e,i,o,r,a,d,v,m,f,w;const[j]=(0,u.QN)("isInDesignMode"),[y]=(0,u.QN)("isDemoBrand"),[b]=(0,u.QN)("whatmoreSecondaryColor"),C=(0,u.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,u.QN)("whatmorePrimaryFont"),[k]=(0,u.QN)("whatmoreShopId"),[I,_,z,E]=(0,h.A)(),[T,F]=(0,n.useState)(!1),[N,A]=(0,n.useState)(t.product),P=(0,u.Xd)("whatmoreUITheme"),[L,B]=(0,n.useState)(!1),[O,H]=(0,n.useState)(parseFloat(N.price)),[X,q]=(0,n.useState)(parseFloat(N.compare_price)),[K,$]=(0,n.useState)(N.currency),G=t.event,[Z,tt]=(0,n.useState)();(0,n.useEffect)((()=>{(0,c.w4b)(k)&&(0,xt.ck)(N,(0,c.NCy)(k),k).then((t=>{A(t),H(parseFloat(t.price)),q(parseFloat(t.compare_price)),$(t.currency),B(!0)}));(async()=>{const t=await(0,p.M)(N,(0,c.NCy)(k),k);tt(t),B(!0)})()}),[]);var et=.68*E,it=.4*et,nt=et+"px",ot=it+"px",rt=et*(.55-.4)+"px",lt=.12*it;(0,c.XQu)(k);const{whatmoreWidgetSourceDetails:at}=(0,n.useContext)(M.B);function dt(t){return(0,c.BLb)(k)?t.product_link+"?"+(0,c.VCz)(k)+"&"+(0,c.Spk)(k)+"&"+(0,c.$lz)(k):t.product_link}function st(t,e){j||y||(async()=>{(0,l.Pb)(t,e),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:at,event:t,productList:[e],ctaList:t.cta})})(),F(!0)}return(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.qw1)(k),width:nt,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{st(G,N),window.location.href=dt(N)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(k)),animation:T?D.jd:null,borderRadius:"round"==P?"xl":null,overflow:"hidden",onAnimationEnd:()=>{F(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(k),borderColor:(0,c.Fwt)(k)},children:[(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.az,{height:ot,width:ot,children:(0,x.jsx)(g._V,{width:ot,height:ot,src:(0,pt.b)(N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(k)+" !important"}})}),(0,x.jsxs)(s.az,{height:ot,width:et-it+"px",children:[(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:(0,c.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.jsx)(s.EY,{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:S+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*lt+"px !important"},children:(0,J.v)(null==N.title?"":N.title.toString(),"prod-tile")}),(0,c.Nzx)(k)?(0,x.jsxs)(s.BJ,{className:"whatmore-product-shopnow-price",direction:(0,c.vw2)(k)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[L&&(0,x.jsxs)(s.EY,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.uoB)(k)+" !important",margin:"0px !important"},children:[" "+(0,xt.Sb)(parseFloat("77948879170"===k?(null===Z||void 0===Z?void 0:Z.price)>0?null===Z||void 0===Z?void 0:Z.price:(null===Z||void 0===Z||null===(e=Z.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===G||void 0===G||null===(o=G.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===G||void 0===G||null===(a=G.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===G||void 0===G||null===(v=G.products)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.price_max):null!==(f=null===Z||void 0===Z?void 0:Z.price)&&void 0!==f?f:O),"",k,K)," \xa0"]}),(0,U.P)(O,X)&&L?(0,x.jsxs)(s.EY,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*lt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,c.gld)(k)+" !important",margin:"0px !important"},children:[" ",(0,xt.Sb)(null!==(w=null===Z||void 0===Z?void 0:Z.compare_at_price)&&void 0!==w?w:X,"",k,K)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.rsz)(k)&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*lt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.ogW)(k)+" !important",color:(0,c._zx)(k)+" !important",margin:"0px !important"},children:["\xa0",(0,c.rsz)(k)," \xa0"]})]}),(0,c.UlM)(k)?(0,x.jsx)(s.BJ,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:C,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(Y.A,{sx:{color:b,fontSize:1.3*lt+"px"}})}),(0,x.jsx)(s.az,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.Woi)(k)&&(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:rt,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(bt,{baseFontSize:.8*lt,event:G,product:N,borderRadius:"md",onShopNowClick:t=>{st(G,N),window.location.href=dt(N)}})})]})};function kt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[o]=(0,u.QN)("whatmorePrimaryFont"),[r]=(0,u.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,p=t.width,v=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,x.jsx)(It,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:v}):(0,x.jsxs)(s.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?D.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.BJ,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,x.jsxs)(s.BJ,{direction:"row",backgroundColor:g?(0,R.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.EY,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(K.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function It(t){const[e]=(0,u.QN)("whatmoreSecondaryColor"),[i]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,x.jsx)(s.BJ,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,x.jsx)(s.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?D.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,x.jsx)(s.BJ,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.EY,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.Hfu)(o)} !important`},children:(0,c.KPq)(o)})})})})})}function _t(t){var e;const[i]=(0,u.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,x.jsx)(s.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,x.jsx)(s.BJ,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,x.jsxs)(s.EY,{color:"gray",lineHeight:"100%",fontSize:1.2*n+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function zt(t){var e;const[i]=(0,u.QN)("whatmoreSecondaryColor"),[n]=(0,u.QN)("whatmorePrimaryFont"),[o]=(0,u.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,x.jsx)(s.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,x.jsxs)(s.BJ,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.ov,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,x.jsx)(q.A,{sx:{color:i,fontSize:1.6*r}}):(0,x.jsx)($.$n,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,x.jsx)(s.EY,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.EY,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,x.jsx)(s.ov,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Et=function(t){var e,i,n,o;const[r]=(0,u.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,x.jsx)(_t,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(N.s1,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,x.jsx)(zt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(It,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(kt,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Tt=function(t){var e,i,o,r,a,d;const[v]=(0,u.QN)("isInDesignMode"),[m]=(0,u.QN)("isDemoBrand"),[f]=(0,u.QN)("whatmorePrimaryFont"),[w]=(0,u.QN)("whatmoreShopId"),[j,y,b,C]=(0,h.A)(),[S,k]=(0,n.useState)(!1),[I,_]=(0,n.useState)(t.product),z=(0,u.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E}=(0,n.useContext)(M.B),[T,F,N,A,P,L,B]=ht(0,I,t.event),[O,H]=(0,n.useState)(null),[Y,X]=(0,n.useState)(parseFloat(I.price)),[q,K]=(0,n.useState)(parseFloat(I.compare_price)),[$,G]=(0,n.useState)(I.currency),[Z,tt]=(0,n.useState)(null),et=t.event,it=t.productClickHandler,[nt,ot]=(0,n.useState)(null),[rt,lt]=(0,n.useState)(!1),at=E.landingLocationType,dt=E.templateType,st=(0,mt.Wd)(at)+(0,mt.gf)(dt)+"_"+(null===et||void 0===et?void 0:et.event_id);(0,n.useEffect)((()=>{(0,c.w4b)(w)&&(0,xt.ck)(I,(0,c.NCy)(w),w).then((t=>{_(t),X(parseFloat(t.price)),K(parseFloat(t.compare_price)),G(t.currency),lt(!0)}));(async()=>{const t=await(0,p.M)(I,(0,c.NCy)(w),w);tt(t),X(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),lt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=Z?null===Z||void 0===Z||null===(t=Z.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,n=-1!==i?null===Z||void 0===Z||null===(e=Z.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=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:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===Z||void 0===Z||null===(r=Z.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ot({position:i,finalArr:n,finalArrExternal:o})}),[Z]);var ct=.72*C,ut=.37*ct,vt=ct*(.48-.37),gt=.95*ct+"px",ft=ut+"px",wt=.12*ut;function jt(){window.location.href=function(t){return(0,c.BLb)(w)?t.product_link+"?"+(0,c.VCz)(w)+"&"+(0,c.Spk)(w)+"&"+(0,c.$lz)(w):t.product_link}(I)}return(0,x.jsx)(s.BJ,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:"24px",width:gt,boxShadow:"round"==z?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?jt():it(e),k(!0)}(et,I)},backgroundColor:(0,R.YU)("#ffffff",(0,c.p2R)(w)),animation:S?D.jd:null,borderRadius:"round"==z?"xl":null,overflow:"hidden",onAnimationEnd:()=>{k(!1)},spacing:0,sx:{borderWidth:(0,c.YcK)(w),borderColor:(0,c.Fwt)(w)},children:(0,x.jsxs)(s.BJ,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,x.jsx)(s.az,{height:ft,width:ft,children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:(0,pt.b)(null!==(e=null!==(i=null===nt||void 0===nt||null===(o=nt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===nt||void 0===nt||null===(a=nt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===O||void 0===O?void 0:O[null===nt||void 0===nt?void 0:nt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:I.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.KZe)(w)+" !important"}})}),(0,x.jsx)(s.az,{height:ft,width:ct-ut+"px",children:(0,x.jsxs)(s.BJ,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",f,"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,J.v)(null==I.title?"":I.title.toString())}),(0,c.Nzx)(w)?(0,x.jsxs)(s.BJ,{direction:(0,c.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[rt&&(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,xt.Sb)(null!==Y&&void 0!==Y?Y:null===I||void 0===I?void 0:I.price,"",w,$)," \xa0"]}),(0,U.P)(Y,q)&&rt?(0,x.jsxs)(s.EY,{noOfLines:1,fontSize:.9*wt*(0,c.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,xt.Sb)(null!==q&&void 0!==q?q:null===I||void 0===I?void 0:I.compare_price,"",w,$)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(Et,{baseFontSize:.3*vt,event:et,product:I,cartState:T.state,cartCount:T.cart_count,updateCartState:F,onClickAtc:t=>{"init"===T.state?(A(st,!0),(0,Q.kz)({userInteractionType:V.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:E,event:et,productList:[I],ctaList:et.cta})):"awaitingVariantSelection"===T.state&&it(I)},onCartIconClick:t=>{B()}})]})})]})})};var Ft=function(t){const[e]=(0,u.QN)("whatmoreShopId"),[i]=(0,u.QN)("isWhatmoreWebsite"),n=(0,c.Vpi)(e),o=t.event,r=t.product;return i?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,x.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,x.jsx)(Tt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,x.jsx)(H,{product:t.product,event:t.event}):"narrow-tile"==n?(0,x.jsx)(Ct,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,x.jsx)(x.Fragment,{})},Nt=i(1079),At=i(7802),Pt=i(2979);var Lt=function(t){const[e,i,n,l]=(0,h.A)(),[a]=(0,u.QN)("whatmoreShopId"),d=(0,u.Xd)("isInDesignMode"),p=(0,u.Xd)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.Vpi)(a);if(!(0,At.Z_)(v))return(0,x.jsx)(x.Fragment,{});if(1==v.products.length&&(void 0==v.cta||0==v.cta.length)){const t=v.products[0];return(0,c.uJl)(a)?(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,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,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.ov,{children:(0,x.jsx)(Ct,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.BJ,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"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,x.jsx)(s.ov,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(Ft,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.ov,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.az,{width:l+"px",backgroundImage:"narrow-tile"==g?"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,x.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.TYM)(a)?0:1,centeredSlides:!(0,c.TYM)(a),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[v.products[0]]:v.products).map((t=>"oos"!=t.product_status&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(Pt.S,{userInteractionType:V.O.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(Ft,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.Woi)(a)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(o.qr,{children:(0,x.jsx)(s.BJ,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,x.jsx)(Nt.A,{fontFactor:.75,cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Bt=function(t){const[e,i]=(0,u.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(fi).isIOS&&e?(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id):(0,x.jsx)(N.Jt,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Lt,{event:o,productClickHandler:r},o.event_id)})};function Ot(t){const e=t.event,[i,n,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont");return(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.ov,{children:(0,x.jsx)(s.jl,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g._V,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.az,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.EY,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,x.jsx)(T.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Dt=function(t){const[e]=(0,u.QN)("isInDesignMode"),[i]=(0,u.QN)("isDemoBrand"),[o,r]=(0,u.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,j.A)(),[d,h]=(0,u.QN)("isFirstIndicatorRenderDone"),p=(0,n.useContext)(fi),[v]=(0,u.QN)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,b=t.productClickHandler;return(0,x.jsx)(s.az,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.BJ,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Ot,{event:m}),(0,x.jsxs)(s.BJ,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(y,{focusRef:w}),(0,x.jsx)(F.A,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.az,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.az,{width:"full",margin:"2px",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(B,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.az,{width:"full",children:[(0,c.ek9)(v)?(0,x.jsx)(s.az,{w:"100%",children:(0,x.jsx)(s.BJ,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(E,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.az,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Bt,{event:m,productClickHandler:b})})]}):(0,x.jsx)("div",{})]})]})})},Rt=i(7642);function Wt(t){const[e,i,o,r]=(0,h.A)(),[l]=(0,u.QN)("whatmorePrimaryFont"),[a]=(0,u.QN)("whatmoreShopId"),[d,p]=(0,n.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.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===v||void 0===v?void 0:v.id}&title=${null===v||void 0===v?void 0:v.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,n,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${C.i7`
69
69
  0% {
70
70
  transform: translateY(100%);
71
71
  }