whatmore-react-assets 1.0.1521 → 1.0.1522

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1521",
3
+ "version": "1.0.1522",
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,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:g,children:(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===p?b:C,children:"vertical"===p?(0,f.jsx)(D.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(R.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{textShadow:"dark-lg",fontSize:y+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var Q=function(t){const[e,i]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.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,f.jsx)(W,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},V=i(8781),M=i(5144),H=i(4459);const U="15px";var X=i(1351),Y=i(6157),$=i(4737);var q=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,m,g]=(0,x.A)(),[w,y]=(0,n.useState)(!1),b=t.product,C=t.event,{whatmoreWidgetSourceDetails:S}=(0,n.useContext)($.B),k=.1*m,I=.95*g,_=.05*g;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:U,backgroundColor:o,borderRadius:"5px",animation:w?M.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{y(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[n],ctaList:t.cta})})()}(C,b),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(b)},_hover:{backgroundColor:(0,H.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},K=i(4892),G=i(8538),Z=i(7458),J=i(2159),tt=i(9537),et=i(6710),it=i(173),nt=(i(6125),i(4905));const ot={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 rt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,m=t.width,g=t.height,w=t.title,y=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?M.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:y?(0,H.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),y?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function lt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,m=t.onClick,g=t.width,w=t.height;return(0,f.jsx)(c.az,{width:g,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),m(),h(!0)},animation:d?M.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,p.KPq)(a),"\xa0"]})})})})}function at(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(j.E,{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 dt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var st=function(t){var e,i,n,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(at,{baseFontSize:s,width:g,height:w})}):"init"==u?0==h?(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(dt,{onClick:m,baseFontSize:s,cartCount:h,width:g,height:w,onCartIconClick:x})}):(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):(0,f.jsx)(rt,{onClick:m,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:g,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===ot||void 0===ot||null===(a=ot[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},ct=i(4533),ut=i(6387),ht=i(1745);const pt=(0,v.Xd)("isInDesignMode"),vt=(0,v.Xd)("isDemoBrand");async function xt(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,ht.RX)(t,e,n,l,a,d):(pt||vt||(async()=>{(0,ct.Fu)(o,r,l,a,d)})(),(0,ut.It)(null===t||void 0===t?void 0:t[0],e,n))}function mt(t,e){return"shopify"==t?(0,ht.iL)(e):(0,ut.pV)(e)}var gt=i(852);var ft=function(t,e,i){const[o]=(0,v.QN)("whatmoreShopId"),[r]=(0,v.QN)("isInDesignMode"),[a]=(0,v.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),c=(0,n.useRef)(null),{closeClickComponent:u}=(0,n.useContext)(Ei),{whatmoreUserInfo:h}=(0,n.useContext)($.B),[x,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,v.t2)("whatmoreAllowAutoSlide",!1):(0,v.t2)("whatmoreAllowAutoSlide",!0)}function w(t){const e=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function j(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]}function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function b(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function C(){if(c.current&&c.current.length>=1){return c.current.filter((t=>t.available)).length>=1}return!1}function S(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}function k(t,n){const r=w(t);if(!r)return void f("init",x.cart_count);f("atcApiCallInProgress",null);xt([r],1,(0,p.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(S(i,e,1),f("init",x.cart_count+1),(0,v.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,v.Xd)("whatmoreAddedToCart")&&(0,gt.H)(o,(()=>{}),100,window.location.hostname),(0,p.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[x,function(t){const n=[];f("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,m.M)(t,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const i=j(e);if(s(i),b(i)&&C()){const e=w([y(i[0]),y(i[1]),y(i[2])]);return e?(n.push(t),e):void f("init",x.cart_count)}}))))).then((r=>{xt(r.filter((t=>void 0!=t)),1,(0,p.NCy)(o),o,i,e,t,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{S(i,t,1),f("init",x.cart_count+1)})),(0,v.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}))},f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,m.M)(e,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const n=j(e);s(n),b(n)||i?C()?k([y(n[0]),y(n[1]),y(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},k,function(t){var e,i,n,r;const l=c.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,p.NCy)(o),a),compare_price:((0,p.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,p.m4S)(o)&&("go_to_cart_page"!==(0,p.m4S)(o)?"open_cart_slider"!==(0,p.m4S)(o)||null!==u&&u():mt((0,p.NCy)(o),o))}]},wt=i(2720),jt=i(3755),yt=i(7973);var bt=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",h=null!==(o=t.baseFontSize)&&void 0!==o?o:10,p=t.onOptionSelected,x=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",m=t.data,[g]=(0,v.QN)("whatmorePrimaryFont");function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[b,C]=(0,n.useState)([w(l[0]),w(l[1]),w(l[2])]);return(0,n.useEffect)((()=>{p(b)}),[b]),(0,f.jsx)(u.B,{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,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(j.E,{as:"b",fontSize:1.2*h+"px",sx:{color:x+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,f.jsx)(jt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,s,u,p,v;return(0==i||(null===m||void 0===m||null===(r=m.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===b||void 0===b?void 0:b[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)C([b[0],b[1],t]);else if(1==e){var i,n;C([b[0],t,null===m||void 0===m||null===(i=m.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===m||void 0===m||null===(o=m.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;C([t,null===m||void 0===m||null===(l=m.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===m||void 0===m||null===(d=m.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===b[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===b[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===b[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,f.jsxs)(j.E,{as:e.available?"samp":"s",fontSize:.8*h+"px",sx:{color:e.option===b[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(x=e.option,x.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,f.jsx)(y._,{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,yt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===s?void 0:s.src)&&void 0!==l?l:null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p||null===(v=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]});var x}))},i)]},i)}))})},Ct=i(6594),St=i(4833);var kt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreSecondaryColor"),w=(0,v.Xd)("whatmoreSecondaryColorShade900"),[b]=(0,v.QN)("whatmorePrimaryFont"),[C]=(0,v.QN)("whatmoreShopId"),[S,k,I,_]=(0,x.A)(),[z,E]=(0,n.useState)(!1),[T,N]=(0,n.useState)(t.product),F=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,n.useContext)($.B),[P,L,B,O,D,R,W,Q]=ft(0,T,t.event),[V,q]=(0,n.useState)(null),[J,tt]=(0,n.useState)(parseFloat(T.price)),[ot,rt]=(0,n.useState)(parseFloat(T.compare_price)),[lt,at]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[dt,ct]=(0,n.useState)(T.currency),[ut,ht]=(0,n.useState)(null),pt=t.event,vt=t.productClickHandler,{whatmoreIsPreviewMode:xt}=(0,n.useContext)($.B),[mt,gt]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1),[kt,It]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,p.w4b)(C)&&(0,Ct.ck)(T,(0,p.NCy)(C),C).then((t=>{N(t),tt(parseFloat(t.price)),rt(parseFloat(t.compare_price)),ct(t.currency),jt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,m.M)(T,(0,p.NCy)(C),C);ht(l),tt(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),rt(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!=ut?null===ut||void 0===ut||null===(t=ut.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===ut||void 0===ut||null===(e=ut.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===ut||void 0===ut||null===(r=ut.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));gt({position:i,finalArr:n,finalArrExternal:o})}),[ut]);var _t=.68*_,zt=.55*_t,Et=.4*_t,Tt=_t*(.55-.4),Nt=_t+"px",Ft=Et+"px",At=Tt+"px",Pt=.12*Et;const Lt=(0,p.XQu)(C);function Bt(){window.location.href=function(t){return(0,p.BLb)(C)?t.product_link+"?"+(0,p.VCz)(C)+"&"+(0,p.Spk)(C)+"&"+(0,p.$lz)(C):t.product_link}(T)}const Ot=A.landingLocationType,Dt=A.templateType,Rt=(0,St.Wd)(Ot)+(0,St.gf)(Dt)+(null!==pt&&void 0!==pt&&pt.isRelatedEvent?"R":"E")+"_"+(null===pt||void 0===pt?void 0:pt.event_id),Wt=(0,p.HKH)(C)&&t.activeProductsCount>1&&"init"==P.state;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(C),width:Nt,height:"fit-content",boxShadow:"round"==F?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==C?Bt():vt(e),E(!0)}(pt,T)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(C)),animation:z?M.jd:null,borderRadius:"round"==F?"xl":null,overflow:"hidden",onAnimationEnd:()=>{E(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(C),borderColor:(0,p.Fwt)(C)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Ft,width:Ft,children:(0,f.jsx)(y._,{className:"product-tile-image",width:Ft,height:Ft,src:(0,yt.b)(null!==(e=null!==(i=null===mt||void 0===mt||null===(o=mt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===mt||void 0===mt||null===(a=mt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(C)+" !important"}})}),(0,f.jsxs)(c.az,{height:Ft,width:_t-Et+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Pt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",b,"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,G.v)(lt,"prod-tile")}),(0,p.Nzx)(C)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==F?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(C)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==J&&void 0!==J?J:null===T||void 0===T?void 0:T.price,"",C,dt)," \xa0"]}),(0,Z.P)(J,ot)&&wt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==ot&&void 0!==ot?ot:null===T||void 0===T?void 0:T.compare_price,"",C,dt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.E,{fontSize:.82*Pt*(0,p.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:b+" !important",color:(0,p.Br1)(C)+" !important"},children:xt?(0,p.p6A)(C):(0,p.i2h)(C)})]}),(0,p.UlM)(C)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==F?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(C)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:g},sx:{bg:g},children:(0,f.jsx)(j.E,{color:"white",paddingX:"6px",fontSize:.8*Pt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)(K.A,{sx:{color:g,fontSize:1.3*Pt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==P.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==P.state&&null!=O?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*zt+"px",marginBottom:.1*zt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Lt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:Nt,height:"fit-content",event:pt,product:T,finalArr:mt,data:ut,productVariantOptions:O,baseFontSize:1.2*Pt,onOptionSelected:t=>{!function(t){q(t);const e=W(t);e&&(tt(e.price),rt(e.compare_price),e.title.includes(" ")&&at(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:At,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:At,children:(0,f.jsx)(st,{baseFontSize:Wt?.2*Tt:.3*Tt,setProductVariantTitle:at,product:T,cartState:P.state,cartCount:P.cart_count,updateCartState:B,onClickAtc:t=>{"init"==P.state?(D(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:pt,productList:[T],ctaList:pt.cta})):"awaitingVariantSelection"==P.state&&(R(V,Rt),at(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{Q()}})}),Wt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(nt.$,{disabled:kt,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${b} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{It(!0),L(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:A,event:pt,productList:pt.products,ctaList:pt.cta})}catch(e){console.error("Failed to add items:",e),It(!1)}},children:kt?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,f.jsx)(j.E,{fontFamily:b,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),_t=i(8397);var zt=function(t){var e,i,n,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("whatmoreShopId"),[g]=(0,v.QN)("websiteLanguage"),w=t.event,y=t.product,b=null!==(e=t.baseFontSize)&&void 0!==e?e:10,C=null!==(i=t.width)&&void 0!==i?i:"fit-content",S=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,f.jsx)(_t.N,{href:y.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,y)},children:(0,f.jsx)(c.az,{width:C,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.4*b,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(m)?(0,p.KnH)(m):null!==(o=null===ot||void 0===ot||null===(r=ot[g])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(m)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(K.A,{sx:{color:h,fontSize:1.4*b}})})]})})})},Et=i(9408);function Tt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),s=t.onClick,h=t.width,x=t.height,m=t.title;return(0,f.jsx)(c.az,{width:h,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(r)?i:(0,p.Wc_)(r),onClick:t=>{t.stopPropagation(),s(),a(!0)},animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(j.E,{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,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Nt=function(t){var e,i,n;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",c=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,f.jsx)(Tt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var Ft=function(t){var e;const[i]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,w]=(0,x.A)(),[b,C]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)($.B),[_,z,E,T,N,F,A]=ft(0,S,t.event),[P,L]=(0,n.useState)(null),[B,O]=(0,n.useState)(parseFloat(S.price)),[D,R]=(0,n.useState)(parseFloat(S.compare_price)),[W,Q]=(0,n.useState)(S.currency),[V,H]=(0,n.useState)(!1),q=t.event,K=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,tt=I.landingLocationType,it=I.templateType,nt=(0,St.Wd)(tt)+(0,St.gf)(it)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(a)&&(0,Ct.ck)(S,(0,p.NCy)(a),a).then((t=>{k(t),O(parseFloat(t.price)),R(parseFloat(t.compare_price)),Q(t.currency)}));(async()=>{const t=await(0,m.M)(S,(0,p.NCy)(a),a);O(null===t||void 0===t?void 0:t.price),R(null===t||void 0===t?void 0:t.compare_at_price),H(!0)})()}),[]);var ot=w*J,rt=.3*ot,lt=ot+"px",at=.7*rt,dt=.9*at,ct=.12*rt;const ut=(0,p.XQu)(a);function ht(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),C(!0)}return(0,f.jsx)(u.B,{direction:"row",width:lt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:U,marginBottom:(0,p.qw1)(a),width:lt,onClick:t=>{},animation:b?M.jd:null,borderRadius:"lg",onAnimationEnd:()=>{C(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{ht(q,S)},children:[(0,f.jsx)(c.az,{height:at+"px",width:at+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:dt+"px",width:dt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(y._,{width:dt+"px",height:dt+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:at+"px",width:ot-at+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ct+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,G.v)(S.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(a)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[V&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:1*ct+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==B&&void 0!==B?B:null===S||void 0===S?void 0:S.price,"",a,W)," \xa0"]}),(0,f.jsx)(s.o,{children:(0,Z.P)(S.price,S.compare_price)&&V?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.8*ct+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==D&&void 0!==D?D:null===S||void 0===S?void 0:S.compare_price,"",a,W)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(It.A,{storeId:a,productId:S.client_product_id,productLink:S.product_link,fontSize:1*ct,fontColor:"white"})})]})]})})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==_.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==_.state&&null!=E?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*rt+"px",marginBottom:.1*rt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:rt*ut+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:lt,height:"fit-content",event:q,product:S,productVariantOptions:E,baseFontSize:1*ct,onOptionSelected:t=>{!function(t){L(t);const e=F(t);e&&(O(e.price),R(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(zt,{baseFontSize:.8*ct,event:q,product:S,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(a)?(0,f.jsx)(Nt,{baseFontSize:.8*ct,event:q,product:S,borderRadius:"md",onShopNowClick:t=>{ht(q,S)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(a)?(0,f.jsx)(Et.default,{baseFontSize:.8*ct,event:q,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(st,{baseFontSize:.8*ct,event:q,product:S,cartState:_.state,cartCount:_.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==_.state?(T(nt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:q,productList:[S],ctaList:q.cta})):"awaitingVariantSelection"==_.state&&N(P,nt)},onCartIconClick:()=>{A()}})})})]})]})})})};var At=function(t){var e,i,o,r,a,d,s,h,g,w;const[b]=(0,v.QN)("isInDesignMode"),[C]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreSecondaryColor"),k=(0,v.Xd)("whatmoreSecondaryColorShade900"),[I]=(0,v.QN)("whatmorePrimaryFont"),[_]=(0,v.QN)("whatmoreShopId"),[z,E,T,N]=(0,x.A)(),[F,A]=(0,n.useState)(!1),[P,L]=(0,n.useState)(t.product),B=(0,v.Xd)("whatmoreUITheme"),[O,D]=(0,n.useState)(!1),[R,W]=(0,n.useState)(parseFloat(P.price)),[Q,V]=(0,n.useState)(parseFloat(P.compare_price)),[q,J]=(0,n.useState)(P.currency),tt=t.event,[et,it]=(0,n.useState)();(0,n.useEffect)((()=>{(0,p.w4b)(_)&&(0,Ct.ck)(P,(0,p.NCy)(_),_).then((t=>{L(t),W(parseFloat(t.price)),V(parseFloat(t.compare_price)),J(t.currency),D(!0)}));(async()=>{const t=await(0,m.M)(P,(0,p.NCy)(_),_);it(t),D(!0)})()}),[]);var nt=.68*N,ot=.4*nt,rt=nt+"px",lt=ot+"px",at=nt*(.55-.4)+"px",dt=.12*ot;(0,p.XQu)(_);const{whatmoreWidgetSourceDetails:st}=(0,n.useContext)($.B);function ct(t){return(0,p.BLb)(_)?t.product_link+"?"+(0,p.VCz)(_)+"&"+(0,p.Spk)(_)+"&"+(0,p.$lz)(_):t.product_link}function ut(t,e){b||C||(async()=>{(0,l.Pb)(t,e),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:st,event:t,productList:[e],ctaList:t.cta})})(),A(!0)}return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(_),width:rt,height:"fit-content",boxShadow:"round"==B?"dark-lg":null,onClick:()=>{ut(tt,P),window.location.href=ct(P)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(_)),animation:F?M.jd:null,borderRadius:"round"==B?"xl":null,overflow:"hidden",onAnimationEnd:()=>{A(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(_),borderColor:(0,p.Fwt)(_)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:lt,width:lt,children:(0,f.jsx)(y._,{width:lt,height:lt,src:(0,yt.b)(P.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(_)+" !important"}})}),(0,f.jsxs)(c.az,{height:lt,width:nt-ot+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(_)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(j.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:I+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*dt+"px !important"},children:(0,G.v)(null==P.title?"":P.title.toString(),"prod-tile")}),(0,p.Nzx)(_)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(_)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==B?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[O&&(0,f.jsxs)(j.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.uoB)(_)+" !important",margin:"0px !important"},children:[" "+(0,Ct.Sb)(parseFloat("77948879170"===_?(null===et||void 0===et?void 0:et.price)>0?null===et||void 0===et?void 0:et.price:(null===et||void 0===et||null===(e=et.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===tt||void 0===tt||null===(o=tt.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===tt||void 0===tt||null===(a=tt.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===tt||void 0===tt||null===(s=tt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price_max):null!==(g=null===et||void 0===et?void 0:et.price)&&void 0!==g?g:R),"",_,q)," \xa0"]}),(0,Z.P)(R,Q)&&O?(0,f.jsxs)(j.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.gld)(_)+" !important",margin:"0px !important"},children:[" ",(0,Ct.Sb)(null!==(w=null===et||void 0===et?void 0:et.compare_at_price)&&void 0!==w?w:Q,"",_,q)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(_)&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*dt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(_)+" !important",color:(0,p._zx)(_)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(_)," \xa0"]})]}),(0,p.UlM)(_)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:k,sx:{borderRadius:"round"==B?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,f.jsx)(K.A,{sx:{color:S,fontSize:1.3*dt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(_)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:at,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Nt,{baseFontSize:.8*dt,event:tt,product:P,borderRadius:"md",onShopNowClick:t=>{ut(tt,P),window.location.href=ct(P)}})})]})};function Pt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(Lt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:g?(0,H.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Lt(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?M.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function Bt(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(j.E,{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 Ot(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}}):(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Dt=function(t){var e,i,n,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const m=null!==(n=t.width)&&void 0!==n?n:"100%",g=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,f.jsx)(Bt,{event:l,product:a,baseFontSize:d,width:m,height:g})}):"init"==c?0==u?(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):s?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,f.jsx)(Ot,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:m,height:g,onCartIconClick:p})}):(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):(0,f.jsx)(Pt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:m,height:g,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Rt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[b,C,S,k]=(0,x.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)($.B),[F,A,P,L,B,O,D]=ft(0,z,t.event),[R,W]=(0,n.useState)(null),[Q,V]=(0,n.useState)(parseFloat(z.price)),[q,K]=(0,n.useState)(parseFloat(z.compare_price)),[J,tt]=(0,n.useState)(z.currency),[et,it]=(0,n.useState)(null),nt=t.event,ot=t.productClickHandler,[rt,lt]=(0,n.useState)(null),[at,dt]=(0,n.useState)(!1),st=N.landingLocationType,ct=N.templateType,ut=(0,St.Wd)(st)+(0,St.gf)(ct)+"_"+(null===nt||void 0===nt?void 0:nt.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(w)&&(0,Ct.ck)(z,(0,p.NCy)(w),w).then((t=>{E(t),V(parseFloat(t.price)),K(parseFloat(t.compare_price)),tt(t.currency),dt(!0)}));(async()=>{const t=await(0,m.M)(z,(0,p.NCy)(w),w);it(t),V(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),dt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=et?null===et||void 0===et||null===(t=et.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===et||void 0===et||null===(e=et.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===et||void 0===et||null===(r=et.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));lt({position:i,finalArr:n,finalArrExternal:o})}),[et]);var ht=.72*k,pt=.37*ht,vt=ht*(.48-.37),xt=.95*ht+"px",mt=pt+"px",gt=.12*pt;function wt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:"24px",width:xt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?wt():ot(e),_(!0)}(nt,z)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(w)),animation:I?M.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:mt,width:mt,children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===rt||void 0===rt||null===(o=rt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===rt||void 0===rt||null===(a=rt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:mt,width:ht-pt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",gt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",g,"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,G.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*gt+"px"},children:[at&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:g+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,Ct.Sb)(null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,J)," \xa0"]}),(0,Z.P)(Q,q)&&at?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:g+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==q&&void 0!==q?q:null===z||void 0===z?void 0:z.compare_price,"",w,J)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(Dt,{baseFontSize:.3*vt,event:nt,product:z,cartState:F.state,cartCount:F.cart_count,updateCartState:A,onClickAtc:t=>{"init"===F.state?(L(ut,!0),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:nt,productList:[z],ctaList:nt.cta})):"awaitingVariantSelection"===F.state&&ot(z)},onCartIconClick:t=>{D()}})]})})]})})};var Wt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[i]=(0,v.QN)("isWhatmoreWebsite"),n=(0,p.Vpi)(e),o=t.event,r=t.product;return i?(0,f.jsx)(At,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,f.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount}):"broad-tile-no-cta"==n?(0,f.jsx)(At,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,f.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,f.jsx)(q,{product:t.product,event:t.event}):"narrow-tile"==n?(0,f.jsx)(Ft,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,f.jsx)(f.Fragment,{})},Qt=i(1079),Vt=i(7802),Mt=i(2979);var Ht=function(t){var e,i,n;const[l,a,d,h]=(0,x.A)(),[m]=(0,v.QN)("whatmoreShopId"),g=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),j=t.event,y=t.productClickHandler,b=(0,p.Vpi)(m),C=null!==(e=null===(i=j.products)||void 0===i||null===(n=i.filter((t=>"active"==(null===t||void 0===t?void 0:t.product_status))))||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(!(0,Vt.Z_)(j))return(0,f.jsx)(f.Fragment,{});if(1==j.products.length&&(void 0==j.cta||0==j.cta.length)){const t=j.products[0];return(0,p.uJl)(m)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(Ft,{event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(Wt,{activeProductsCount:1,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==j.products.length?1:1.4,initialSlide:j.products.length<=2||(0,p.TYM)(m)?0:1,centeredSlides:!(0,p.TYM)(m),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===m?[j.products[0]]:j.products).map((t=>("oos"!=t.product_status||(0,p.$7F)(m))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Wt,{activeProductsCount:C,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})},j.event_id+t.product_id))),(0,p.Woi)(m)&&void 0!=j.cta&&j.cta.map((t=>(0,f.jsx)(f.Fragment,{children:""!==t.cta_title.trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Qt.A,{fontFactor:.75,cta:t},j.event_id+t.cta_id)})},j.event_id+t.cta_id)})))]})})})})};var Ut=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(Ei).isIOS&&e?(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id):(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id)})};function Xt(t){const e=t.event,[i,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(j.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(L.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Yt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,S.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,n.useContext)(Ei),[x]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.isLast,w=t.onCloseCallback,j=t.focusRef,y=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Xt,{event:m}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(k,{focusRef:j}),(0,f.jsx)(B.A,{event:m,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Ut,{event:m,productClickHandler:y})})]}):(0,f.jsx)("div",{})]})]})})},$t=i(7642);function qt(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(""),h=t.data,m=(t.event,t.product,t.setShowOptionsChart);var g=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;s(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=`${z.i7`
68
+ `} infinite 1.5s linear`;return(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:g,children:(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===p?b:C,children:"vertical"===p?(0,f.jsx)(D.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(R.A,{sx:{color:"white !important",fontSize:w,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{textShadow:"dark-lg",fontSize:y+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var Q=function(t){const[e,i]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.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,f.jsx)(W,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},V=i(8781),M=i(5144),H=i(4459);const U="15px";var X=i(1351),Y=i(6157),$=i(4737);var q=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,m,g]=(0,x.A)(),[w,y]=(0,n.useState)(!1),b=t.product,C=t.event,{whatmoreWidgetSourceDetails:S}=(0,n.useContext)($.B),k=.1*m,I=.95*g,_=.05*g;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:U,backgroundColor:o,borderRadius:"5px",animation:w?M.jd:null,onAnimationEnd:()=>{y(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{y(!0),function(t,n){e||i||(async()=>{(0,l.Pb)(t,n),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[n],ctaList:t.cta})})()}(C,b),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(b)},_hover:{backgroundColor:(0,H.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},K=i(4892),G=i(8538),Z=i(7458),J=i(2159),tt=i(9537),et=i(6710),it=i(173),nt=(i(6125),i(4905));const ot={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 rt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,m=t.width,g=t.height,w=t.title,y=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?M.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:y?(0,H.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),y?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function lt(t){var e,i,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,m=t.onClick,g=t.width,w=t.height;return(0,f.jsx)(c.az,{width:g,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),m(),h(!0)},animation:d?M.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(i=null===ot||void 0===ot||null===(o=ot[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,p.KPq)(a),"\xa0"]})})})})}function at(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(j.E,{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 dt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var st=function(t){var e,i,n,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(i=t.showAddedToCart)||void 0===i||i,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(at,{baseFontSize:s,width:g,height:w})}):"init"==u?0==h?(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:g},children:(0,f.jsx)(dt,{onClick:m,baseFontSize:s,cartCount:h,width:g,height:w,onCartIconClick:x})}):(0,f.jsx)(lt,{onClick:m,baseFontSize:s,width:g,height:w,websiteLanguage:d}):(0,f.jsx)(rt,{onClick:m,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:g,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===ot||void 0===ot||null===(a=ot[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},ct=i(4533),ut=i(6387),ht=i(1745);const pt=(0,v.Xd)("isInDesignMode"),vt=(0,v.Xd)("isDemoBrand");async function xt(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,ht.RX)(t,e,n,l,a,d):(pt||vt||(async()=>{(0,ct.Fu)(o,r,l,a,d)})(),(0,ut.It)(null===t||void 0===t?void 0:t[0],e,n))}function mt(t,e){return"shopify"==t?(0,ht.iL)(e):(0,ut.pV)(e)}var gt=i(852);var ft=function(t,e,i){const[o]=(0,v.QN)("whatmoreShopId"),[r]=(0,v.QN)("isInDesignMode"),[a]=(0,v.QN)("isDemoBrand"),[d,s]=(0,n.useState)(null),c=(0,n.useRef)(null),{closeClickComponent:u}=(0,n.useContext)(Ei),{whatmoreUserInfo:h}=(0,n.useContext)($.B),[x,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,v.t2)("whatmoreAllowAutoSlide",!1):(0,v.t2)("whatmoreAllowAutoSlide",!0)}function w(t){const e=c.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function j(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]}function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function b(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function C(){if(c.current&&c.current.length>=1){return c.current.filter((t=>t.available)).length>=1}return!1}function S(t,e,i){r||a||(async()=>{(0,l.tO)(t,e,i)})()}function k(t,n){const r=w(t);if(!r)return void f("init",x.cart_count);f("atcApiCallInProgress",null);xt([r],1,(0,p.NCy)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(S(i,e,1),f("init",x.cart_count+1),(0,v.t2)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,v.Xd)("whatmoreAddedToCart")&&(0,gt.H)(o,(()=>{}),100,window.location.hostname),(0,p.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[x,function(t){const n=[];Promise.all(i.products.map((t=>(0,m.M)(t,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const i=j(e);if(s(i),b(i)&&C()){const e=w([y(i[0]),y(i[1]),y(i[2])]);return e?(n.push(t),e):void f("init",x.cart_count)}}))))).then((r=>{xt(r.filter((t=>void 0!=t)),1,(0,p.NCy)(o),o,i,e,t,null===i||void 0===i?void 0:i.location,null===h||void 0===h?void 0:h.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{S(i,t,1),f("init",x.cart_count+1)})),(0,v.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}))},f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,m.M)(e,(0,p.NCy)(o),o).then((e=>{c.current=e.variants;const n=j(e);s(n),b(n)||i?C()?k([y(n[0]),y(n[1]),y(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},k,function(t){var e,i,n,r;const l=c.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,p.NCy)(o),a),compare_price:((0,p.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,p.m4S)(o)&&("go_to_cart_page"!==(0,p.m4S)(o)?"open_cart_slider"!==(0,p.m4S)(o)||null!==u&&u():mt((0,p.NCy)(o),o))}]},wt=i(2720),jt=i(3755),yt=i(7973);var bt=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",h=null!==(o=t.baseFontSize)&&void 0!==o?o:10,p=t.onOptionSelected,x=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",m=t.data,[g]=(0,v.QN)("whatmorePrimaryFont");function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[b,C]=(0,n.useState)([w(l[0]),w(l[1]),w(l[2])]);return(0,n.useEffect)((()=>{p(b)}),[b]),(0,f.jsx)(u.B,{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,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(wt.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(j.E,{as:"b",fontSize:1.2*h+"px",sx:{color:x+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,f.jsx)(jt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,s,u,p,v;return(0==i||(null===m||void 0===m||null===(r=m.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===b||void 0===b?void 0:b[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)C([b[0],b[1],t]);else if(1==e){var i,n;C([b[0],t,null===m||void 0===m||null===(i=m.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===m||void 0===m||null===(o=m.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;C([t,null===m||void 0===m||null===(l=m.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===m||void 0===m||null===(d=m.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===b[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===b[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===b[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,f.jsxs)(j.E,{as:e.available?"samp":"s",fontSize:.8*h+"px",sx:{color:e.option===b[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(x=e.option,x.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,f.jsx)(y._,{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,yt.b)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===s?void 0:s.src)&&void 0!==l?l:null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p||null===(v=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]});var x}))},i)]},i)}))})},Ct=i(6594),St=i(4833);var kt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreSecondaryColor"),w=(0,v.Xd)("whatmoreSecondaryColorShade900"),[b]=(0,v.QN)("whatmorePrimaryFont"),[C]=(0,v.QN)("whatmoreShopId"),[S,k,I,_]=(0,x.A)(),[z,E]=(0,n.useState)(!1),[T,N]=(0,n.useState)(t.product),F=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,n.useContext)($.B),[P,L,B,O,D,R,W,Q]=ft(0,T,t.event),[V,q]=(0,n.useState)(null),[J,tt]=(0,n.useState)(parseFloat(T.price)),[ot,rt]=(0,n.useState)(parseFloat(T.compare_price)),[lt,at]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[dt,ct]=(0,n.useState)(T.currency),[ut,ht]=(0,n.useState)(null),pt=t.event,vt=t.productClickHandler,{whatmoreIsPreviewMode:xt}=(0,n.useContext)($.B),[mt,gt]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1),[kt,It]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,p.w4b)(C)&&(0,Ct.ck)(T,(0,p.NCy)(C),C).then((t=>{N(t),tt(parseFloat(t.price)),rt(parseFloat(t.compare_price)),ct(t.currency),jt(!0)}));(async()=>{var t,e,i,n,o,r;const l=await(0,m.M)(T,(0,p.NCy)(C),C);ht(l),tt(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),rt(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!=ut?null===ut||void 0===ut||null===(t=ut.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===ut||void 0===ut||null===(e=ut.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===ut||void 0===ut||null===(r=ut.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));gt({position:i,finalArr:n,finalArrExternal:o})}),[ut]);var _t=.68*_,zt=.55*_t,Et=.4*_t,Tt=_t*(.55-.4),Nt=_t+"px",Ft=Et+"px",At=Tt+"px",Pt=.12*Et;const Lt=(0,p.XQu)(C);function Bt(){window.location.href=function(t){return(0,p.BLb)(C)?t.product_link+"?"+(0,p.VCz)(C)+"&"+(0,p.Spk)(C)+"&"+(0,p.$lz)(C):t.product_link}(T)}const Ot=A.landingLocationType,Dt=A.templateType,Rt=(0,St.Wd)(Ot)+(0,St.gf)(Dt)+(null!==pt&&void 0!==pt&&pt.isRelatedEvent?"R":"E")+"_"+(null===pt||void 0===pt?void 0:pt.event_id),Wt=(0,p.HKH)(C)&&t.activeProductsCount>1&&"init"==P.state;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(C),width:Nt,height:"fit-content",boxShadow:"round"==F?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==C?Bt():vt(e),E(!0)}(pt,T)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(C)),animation:z?M.jd:null,borderRadius:"round"==F?"xl":null,overflow:"hidden",onAnimationEnd:()=>{E(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(C),borderColor:(0,p.Fwt)(C)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Ft,width:Ft,children:(0,f.jsx)(y._,{className:"product-tile-image",width:Ft,height:Ft,src:(0,yt.b)(null!==(e=null!==(i=null===mt||void 0===mt||null===(o=mt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===mt||void 0===mt||null===(a=mt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===V||void 0===V?void 0:V[null===mt||void 0===mt?void 0:mt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(C)+" !important"}})}),(0,f.jsxs)(c.az,{height:Ft,width:_t-Et+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(C)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(C),"important"),t.style.setProperty("font-size",1.1*Pt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",b,"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,G.v)(lt,"prod-tile")}),(0,p.Nzx)(C)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(C)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==F?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(C)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.uoB)(C)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==J&&void 0!==J?J:null===T||void 0===T?void 0:T.price,"",C,dt)," \xa0"]}),(0,Z.P)(J,ot)&&wt?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*Pt*(0,p.rh$)(C)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:b+" !important",color:(0,p.gld)(C)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==ot&&void 0!==ot?ot:null===T||void 0===T?void 0:T.compare_price,"",C,dt)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.E,{fontSize:.82*Pt*(0,p.rh$)(C)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:b+" !important",color:(0,p.Br1)(C)+" !important"},children:xt?(0,p.p6A)(C):(0,p.i2h)(C)})]}),(0,p.UlM)(C)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==F?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(C)?(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:g},sx:{bg:g},children:(0,f.jsx)(j.E,{color:"white",paddingX:"6px",fontSize:.8*Pt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)(K.A,{sx:{color:g,fontSize:1.3*Pt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==P.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==P.state&&null!=O?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*zt+"px",marginBottom:.1*zt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:zt*Lt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:Nt,height:"fit-content",event:pt,product:T,finalArr:mt,data:ut,productVariantOptions:O,baseFontSize:1.2*Pt,onOptionSelected:t=>{!function(t){q(t);const e=W(t);e&&(tt(e.price),rt(e.compare_price),e.title.includes(" ")&&at(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:At,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:At,children:(0,f.jsx)(st,{baseFontSize:Wt?.2*Tt:.3*Tt,setProductVariantTitle:at,product:T,cartState:P.state,cartCount:P.cart_count,updateCartState:B,onClickAtc:t=>{"init"==P.state?(D(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:pt,productList:[T],ctaList:pt.cta})):"awaitingVariantSelection"==P.state&&(R(V,Rt),at(null===T||void 0===T?void 0:T.title))},onCartIconClick:()=>{Q()}})}),Wt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Tt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(nt.$,{disabled:kt,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${b} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{It(!0),L(Rt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:A,event:pt,productList:pt.products,ctaList:pt.cta})}catch(e){console.error("Failed to add items:",e),It(!1)}},children:kt?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Tt*2.5+"px"}})}):(0,f.jsx)(j.E,{fontFamily:b,children:"ADD ALL ITEMS"})})})]})]})},It=i(2835),_t=i(8397);var zt=function(t){var e,i,n,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("whatmoreShopId"),[g]=(0,v.QN)("websiteLanguage"),w=t.event,y=t.product,b=null!==(e=t.baseFontSize)&&void 0!==e?e:10,C=null!==(i=t.width)&&void 0!==i?i:"fit-content",S=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,f.jsx)(_t.N,{href:y.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,y)},children:(0,f.jsx)(c.az,{width:C,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.4*b,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(m)?(0,p.KnH)(m):null!==(o=null===ot||void 0===ot||null===(r=ot[g])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(m)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(K.A,{sx:{color:h,fontSize:1.4*b}})})]})})})},Et=i(9408);function Tt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),s=t.onClick,h=t.width,x=t.height,m=t.title;return(0,f.jsx)(c.az,{width:h,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(r)?i:(0,p.Wc_)(r),onClick:t=>{t.stopPropagation(),s(),a(!0)},animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(j.E,{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,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Nt=function(t){var e,i,n;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",c=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,f.jsx)(Tt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var Ft=function(t){var e;const[i]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,w]=(0,x.A)(),[b,C]=(0,n.useState)(!1),[S,k]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:I}=(0,n.useContext)($.B),[_,z,E,T,N,F,A]=ft(0,S,t.event),[P,L]=(0,n.useState)(null),[B,O]=(0,n.useState)(parseFloat(S.price)),[D,R]=(0,n.useState)(parseFloat(S.compare_price)),[W,Q]=(0,n.useState)(S.currency),[V,H]=(0,n.useState)(!1),q=t.event,K=t.productClickHandler,J=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,tt=I.landingLocationType,it=I.templateType,nt=(0,St.Wd)(tt)+(0,St.gf)(it)+(null!==q&&void 0!==q&&q.isRelatedEvent?"R":"E")+"_"+(null===q||void 0===q?void 0:q.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(a)&&(0,Ct.ck)(S,(0,p.NCy)(a),a).then((t=>{k(t),O(parseFloat(t.price)),R(parseFloat(t.compare_price)),Q(t.currency)}));(async()=>{const t=await(0,m.M)(S,(0,p.NCy)(a),a);O(null===t||void 0===t?void 0:t.price),R(null===t||void 0===t?void 0:t.compare_at_price),H(!0)})()}),[]);var ot=w*J,rt=.3*ot,lt=ot+"px",at=.7*rt,dt=.9*at,ct=.12*rt;const ut=(0,p.XQu)(a);function ht(t,e){i||o||(async()=>{(0,l.Pb)(t,e)})(),K(e),C(!0)}return(0,f.jsx)(u.B,{direction:"row",width:lt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:U,marginBottom:(0,p.qw1)(a),width:lt,onClick:t=>{},animation:b?M.jd:null,borderRadius:"lg",onAnimationEnd:()=>{C(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{ht(q,S)},children:[(0,f.jsx)(c.az,{height:at+"px",width:at+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:dt+"px",width:dt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(y._,{width:dt+"px",height:dt+"px",src:S.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:at+"px",width:ot-at+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(j.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ct+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,G.v)(S.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(a)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[V&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:1*ct+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," "+(0,Ct.Sb)(null!==B&&void 0!==B?B:null===S||void 0===S?void 0:S.price,"",a,W)," \xa0"]}),(0,f.jsx)(s.o,{children:(0,Z.P)(S.price,S.compare_price)&&V?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.8*ct+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==D&&void 0!==D?D:null===S||void 0===S?void 0:S.compare_price,"",a,W)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(It.A,{storeId:a,productId:S.client_product_id,productLink:S.product_link,fontSize:1*ct,fontColor:"white"})})]})]})})]}),(0,f.jsx)(et.s,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==_.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==_.state&&null!=E?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*rt+"px",marginBottom:.1*rt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:rt*ut+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(bt,{width:lt,height:"fit-content",event:q,product:S,productVariantOptions:E,baseFontSize:1*ct,onOptionSelected:t=>{!function(t){L(t);const e=F(t);e&&(O(e.price),R(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{})}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(zt,{baseFontSize:.8*ct,event:q,product:S,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(a)?(0,f.jsx)(Nt,{baseFontSize:.8*ct,event:q,product:S,borderRadius:"md",onShopNowClick:t=>{ht(q,S)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(a)?(0,f.jsx)(Et.default,{baseFontSize:.8*ct,event:q,product:S,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(st,{baseFontSize:.8*ct,event:q,product:S,cartState:_.state,cartCount:_.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==_.state?(T(nt),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:I,event:q,productList:[S],ctaList:q.cta})):"awaitingVariantSelection"==_.state&&N(P,nt)},onCartIconClick:()=>{A()}})})})]})]})})})};var At=function(t){var e,i,o,r,a,d,s,h,g,w;const[b]=(0,v.QN)("isInDesignMode"),[C]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreSecondaryColor"),k=(0,v.Xd)("whatmoreSecondaryColorShade900"),[I]=(0,v.QN)("whatmorePrimaryFont"),[_]=(0,v.QN)("whatmoreShopId"),[z,E,T,N]=(0,x.A)(),[F,A]=(0,n.useState)(!1),[P,L]=(0,n.useState)(t.product),B=(0,v.Xd)("whatmoreUITheme"),[O,D]=(0,n.useState)(!1),[R,W]=(0,n.useState)(parseFloat(P.price)),[Q,V]=(0,n.useState)(parseFloat(P.compare_price)),[q,J]=(0,n.useState)(P.currency),tt=t.event,[et,it]=(0,n.useState)();(0,n.useEffect)((()=>{(0,p.w4b)(_)&&(0,Ct.ck)(P,(0,p.NCy)(_),_).then((t=>{L(t),W(parseFloat(t.price)),V(parseFloat(t.compare_price)),J(t.currency),D(!0)}));(async()=>{const t=await(0,m.M)(P,(0,p.NCy)(_),_);it(t),D(!0)})()}),[]);var nt=.68*N,ot=.4*nt,rt=nt+"px",lt=ot+"px",at=nt*(.55-.4)+"px",dt=.12*ot;(0,p.XQu)(_);const{whatmoreWidgetSourceDetails:st}=(0,n.useContext)($.B);function ct(t){return(0,p.BLb)(_)?t.product_link+"?"+(0,p.VCz)(_)+"&"+(0,p.Spk)(_)+"&"+(0,p.$lz)(_):t.product_link}function ut(t,e){b||C||(async()=>{(0,l.Pb)(t,e),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:st,event:t,productList:[e],ctaList:t.cta})})(),A(!0)}return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:(0,p.qw1)(_),width:rt,height:"fit-content",boxShadow:"round"==B?"dark-lg":null,onClick:()=>{ut(tt,P),window.location.href=ct(P)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(_)),animation:F?M.jd:null,borderRadius:"round"==B?"xl":null,overflow:"hidden",onAnimationEnd:()=>{A(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(_),borderColor:(0,p.Fwt)(_)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:lt,width:lt,children:(0,f.jsx)(y._,{width:lt,height:lt,src:(0,yt.b)(P.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(_)+" !important"}})}),(0,f.jsxs)(c.az,{height:lt,width:nt-ot+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(_)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(j.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:I+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*dt+"px !important"},children:(0,G.v)(null==P.title?"":P.title.toString(),"prod-tile")}),(0,p.Nzx)(_)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(_)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==B?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[O&&(0,f.jsxs)(j.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.uoB)(_)+" !important",margin:"0px !important"},children:[" "+(0,Ct.Sb)(parseFloat("77948879170"===_?(null===et||void 0===et?void 0:et.price)>0?null===et||void 0===et?void 0:et.price:(null===et||void 0===et||null===(e=et.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price)||((null===tt||void 0===tt||null===(o=tt.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price)>0?null===tt||void 0===tt||null===(a=tt.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.price:null===tt||void 0===tt||null===(s=tt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price_max):null!==(g=null===et||void 0===et?void 0:et.price)&&void 0!==g?g:R),"",_,q)," \xa0"]}),(0,Z.P)(R,Q)&&O?(0,f.jsxs)(j.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*dt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:I+" !important",color:(0,p.gld)(_)+" !important",margin:"0px !important"},children:[" ",(0,Ct.Sb)(null!==(w=null===et||void 0===et?void 0:et.compare_at_price)&&void 0!==w?w:Q,"",_,q)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(_)&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*dt+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(_)+" !important",color:(0,p._zx)(_)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(_)," \xa0"]})]}),(0,p.UlM)(_)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:k,sx:{borderRadius:"round"==B?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,f.jsx)(K.A,{sx:{color:S,fontSize:1.3*dt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(_)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:at,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Nt,{baseFontSize:.8*dt,event:tt,product:P,borderRadius:"md",onShopNowClick:t=>{ut(tt,P),window.location.href=ct(P)}})})]})};function Pt(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(Lt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?M.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:g?(0,H.YU)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(j.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(it.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Lt(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?M.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(j.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function Bt(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(j.E,{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 Ot(t){var e;const[i]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(tt.A,{sx:{color:i,fontSize:1.6*r}}):(0,f.jsx)(nt.$,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,f.jsx)(j.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(j.E,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(J.A,{sx:{color:i,fontSize:1.6*r}})})]})})}var Dt=function(t){var e,i,n,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const m=null!==(n=t.width)&&void 0!==n?n:"100%",g=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,f.jsx)(Bt,{event:l,product:a,baseFontSize:d,width:m,height:g})}):"init"==c?0==u?(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):s?(0,f.jsx)(et.s,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,f.jsx)(Ot,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:m,height:g,onCartIconClick:p})}):(0,f.jsx)(Lt,{onClick:x,event:l,product:a,baseFontSize:d,width:m,height:g}):(0,f.jsx)(Pt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:m,height:g,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Rt=function(t){var e,i,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[b,C,S,k]=(0,x.A)(),[I,_]=(0,n.useState)(!1),[z,E]=(0,n.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:N}=(0,n.useContext)($.B),[F,A,P,L,B,O,D]=ft(0,z,t.event),[R,W]=(0,n.useState)(null),[Q,V]=(0,n.useState)(parseFloat(z.price)),[q,K]=(0,n.useState)(parseFloat(z.compare_price)),[J,tt]=(0,n.useState)(z.currency),[et,it]=(0,n.useState)(null),nt=t.event,ot=t.productClickHandler,[rt,lt]=(0,n.useState)(null),[at,dt]=(0,n.useState)(!1),st=N.landingLocationType,ct=N.templateType,ut=(0,St.Wd)(st)+(0,St.gf)(ct)+"_"+(null===nt||void 0===nt?void 0:nt.event_id);(0,n.useEffect)((()=>{(0,p.w4b)(w)&&(0,Ct.ck)(z,(0,p.NCy)(w),w).then((t=>{E(t),V(parseFloat(t.price)),K(parseFloat(t.compare_price)),tt(t.currency),dt(!0)}));(async()=>{const t=await(0,m.M)(z,(0,p.NCy)(w),w);it(t),V(null===t||void 0===t?void 0:t.price),K(null===t||void 0===t?void 0:t.compare_at_price),dt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=et?null===et||void 0===et||null===(t=et.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===et||void 0===et||null===(e=et.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===et||void 0===et||null===(r=et.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));lt({position:i,finalArr:n,finalArrExternal:o})}),[et]);var ht=.72*k,pt=.37*ht,vt=ht*(.48-.37),xt=.95*ht+"px",mt=pt+"px",gt=.12*pt;function wt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:U,marginBottom:"24px",width:xt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?wt():ot(e),_(!0)}(nt,z)},backgroundColor:(0,H.YU)("#ffffff",(0,p.p2R)(w)),animation:I?M.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:mt,width:mt,children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:(0,yt.b)(null!==(e=null!==(i=null===rt||void 0===rt||null===(o=rt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===rt||void 0===rt||null===(a=rt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===rt||void 0===rt?void 0:rt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:mt,width:ht-pt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",gt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",g,"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,G.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*gt+"px"},children:[at&&(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:g+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,Ct.Sb)(null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,J)," \xa0"]}),(0,Z.P)(Q,q)&&at?(0,f.jsxs)(j.E,{noOfLines:1,fontSize:.9*gt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:g+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,Ct.Sb)(null!==q&&void 0!==q?q:null===z||void 0===z?void 0:z.compare_price,"",w,J)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(Dt,{baseFontSize:.3*vt,event:nt,product:z,cartState:F.state,cartCount:F.cart_count,updateCartState:A,onClickAtc:t=>{"init"===F.state?(L(ut,!0),(0,X.kz)({userInteractionType:Y.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:N,event:nt,productList:[z],ctaList:nt.cta})):"awaitingVariantSelection"===F.state&&ot(z)},onCartIconClick:t=>{D()}})]})})]})})};var Wt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[i]=(0,v.QN)("isWhatmoreWebsite"),n=(0,p.Vpi)(e),o=t.event,r=t.product;return i?(0,f.jsx)(At,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,f.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount}):"broad-tile-no-cta"==n?(0,f.jsx)(At,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,f.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,f.jsx)(q,{product:t.product,event:t.event}):"narrow-tile"==n?(0,f.jsx)(Ft,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,f.jsx)(f.Fragment,{})},Qt=i(1079),Vt=i(7802),Mt=i(2979);var Ht=function(t){var e,i,n;const[l,a,d,h]=(0,x.A)(),[m]=(0,v.QN)("whatmoreShopId"),g=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),j=t.event,y=t.productClickHandler,b=(0,p.Vpi)(m),C=null!==(e=null===(i=j.products)||void 0===i||null===(n=i.filter((t=>"active"==(null===t||void 0===t?void 0:t.product_status))))||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(!(0,Vt.Z_)(j))return(0,f.jsx)(f.Fragment,{});if(1==j.products.length&&(void 0==j.cta||0==j.cta.length)){const t=j.products[0];return(0,p.uJl)(m)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(Ft,{event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(Wt,{activeProductsCount:1,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==j.products.length?1:1.4,initialSlide:j.products.length<=2||(0,p.TYM)(m)?0:1,centeredSlides:!(0,p.TYM)(m),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===m?[j.products[0]]:j.products).map((t=>("oos"!=t.product_status||(0,p.$7F)(m))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Mt.S,{userInteractionType:Y.O.PRODUCT_CTA_VIEW,event:j,productList:[t],triggerFlag:!g&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Wt,{activeProductsCount:C,event:j,product:t,productClickHandler:y},j.event_id+t.product_id)})})},j.event_id+t.product_id))),(0,p.Woi)(m)&&void 0!=j.cta&&j.cta.map((t=>(0,f.jsx)(f.Fragment,{children:""!==t.cta_title.trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Qt.A,{fontFactor:.75,cta:t},j.event_id+t.cta_id)})},j.event_id+t.cta_id)})))]})})})})};var Ut=function(t){const[e,i]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(Ei).isIOS&&e?(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id):(0,f.jsx)(O.J,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,f.jsx)(Ht,{event:o,productClickHandler:r},o.event_id)})};function Xt(t){const e=t.event,[i,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(y._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(j.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(L.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Yt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[i]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,S.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,n.useContext)(Ei),[x]=(0,v.QN)("whatmoreShopId"),m=t.event,g=t.isLast,w=t.onCloseCallback,j=t.focusRef,y=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Xt,{event:m}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(k,{focusRef:j}),(0,f.jsx)(B.A,{event:m,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(Q,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(P,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Ut,{event:m,productClickHandler:y})})]}):(0,f.jsx)("div",{})]})]})})},$t=i(7642);function qt(t){const[e,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,n.useState)(""),h=t.data,m=(t.event,t.product,t.setShowOptionsChart);var g=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;s(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=`${z.i7`
69
69
  0% {
70
70
  transform: translateY(100%);
71
71
  }