whatmore-react-assets 1.0.1149 → 1.0.1151

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.1149",
3
+ "version": "1.0.1151",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[145],{1332:function(e,t,r){var n=r(7313),i=(r(8743),r(7753)),o=r(5254),m=r(6417);t.Z=function(e){return(0,n.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,r,n){const i=`rgba(${e},${t},${r},${n})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,m=document.createElement("style");m.type="text/css",m.innerHTML=o,document.head.appendChild(m)}(e[0],e[1],e[2],.2)}),[]),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("span",{className:"whatmore-loading-indicator"})})}},3175:function(e,t,r){var n=r(1332),i=r(5180),o=r(6417);t.Z=function(e){var t,r;const m=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,o.jsxs)("div",{style:{width:a,height:m,overflow:"hidden",minHeight:m,minWidth:a},children:[(0,o.jsx)(i.Z,{height:m,width:a}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(n.Z,{})})})]})}},5180:function(e,t,r){var n=r(6417);t.Z=function(e){var t,r,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",m=null!==(r=e.width)&&void 0!==r?r:"100%",a=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,n.jsx)("div",{style:{height:o,width:o,borderRadius:a,overflow:"hidden",minHeight:o,minWidth:m,maxHeight:o,maxWidth:m},children:(0,n.jsx)("div",{style:{minHeight:o,minWidth:m},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,r){var n=r(7313),i=r(3175),o=r(6417);t.Z=function(e){var t,r,m;const[a,s]=(0,n.useState)(!1),d=n.useRef(0),l=(0,n.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(r=e.height)&&void 0!==r?r:"100%",h=null!==(m=e.width)&&void 0!==m?m:"100%";return(0,n.useEffect)((()=>{d.current=0;const e=setInterval((()=>{d.current=d.current+.03,l.current&&u(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:a?"100%":"0px",height:a?"100%":"0px"},children:(0,o.jsx)("img",{ref:l,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),a?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:c})]})}},4892:function(e,t,r){r.d(t,{Z:function(){return $}});var n=r(7313),i=r(3933),o=r(868),m=r(8984),a=r(7300),s=r(2887),d=r(4862),l=r(7753),u=r(342),c=(r(9854),r(6417));var h=function(e){var t,r,o;const a=(0,n.useRef)(null),[s,h,$]=(0,i.YD)({triggerOnce:!0}),p=(0,l.MO)("whatmoreShopId"),g=null!==(t=e.height)&&void 0!==t?t:"100%",f=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,n.useEffect)((()=>{a.current&&(e.isPlaying?a.current.play():((d.G6||(0,m.gE)())&&a.current.play(),"57939755089"==p?setTimeout((()=>{a.current.pause()}),300):a.current.pause()))}),[e.isPlaying,h]),(0,c.jsx)("div",{ref:s,style:{width:g,height:f,overflow:"hidden",display:"flex",alignItems:"center"},children:h||"51394281658"==p||"8968077397"==p?(0,c.jsxs)("video",{ref:a,className:"whatmore-video-player-muted",width:f,height:g,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==p&&"STRY2V4XO5L"!==p?e.url:e.poster,muted:null===(o=e.isVideoMuted)||void 0===o||o,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,c.jsx)("source",{src:e.url,type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:f,height:g,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var $=function(e){var t,r,d,$,p;const[g,f,v]=(0,i.YD)({triggerOnce:!0}),b=(0,l.MO)("whatmoreShopId");if((0,a.WJ)(e.event))return(0,c.jsx)(s.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const w=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;var y;if((0,m.KE)())return(0,c.jsx)(h,{isVideoMuted:e.isVideoMuted,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:null===e||void 0===e||null===(y=e.event)||void 0===y?void 0:y.poster_image,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:w});const _=(0,n.useRef)(null),x=null!==(r=e.height)&&void 0!==r?r:"100%",j=null!==(d=e.width)&&void 0!==d?d:"100%";return(0,n.useEffect)((()=>{_.current&&(e.isPlaying?_.current.play():_.current.pause())}),[e.isPlaying,f]),(0,c.jsx)("div",{ref:g,style:{width:x,height:j,overflow:"hidden",display:"flex",alignItems:"center"},children:f||"51394281658"==b||"8968077397"==b?(0,c.jsxs)("video",{ref:_,className:"whatmore-video-player-muted",width:j,height:x,preload:"metadata",loop:!0,playsInline:!0,muted:null===($=e.isVideoMuted)||void 0===$||$,poster:"57939755089"==b?"":null===e||void 0===e||null===(p=e.event)||void 0===p?void 0:p.poster_image,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,c.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:j,height:x,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,r){r.d(t,{V:function(){return a}});var n=r(9854),i=r(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},m={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},a=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,n.zpr)(t))return e;if("AZURECDN"==(0,n.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,n.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(m))if(e.includes(t))return e.replace(t,m[t]);return e}}return e}},342:function(e,t,r){r.d(t,{$W:function(){return a},WN:function(){return m},uv:function(){return o},vW:function(){return s}});var n=r(9854);const i=(0,r(7753).MO)("whatmoreShopId"),o=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null:e.event_hls_url},m=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},a=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},6805:function(e,t,r){r.d(t,{$I:function(){return a},$w:function(){return d},AK:function(){return o},AL:function(){return m},YP:function(){return i},me:function(){return n},rE:function(){return s}});const n="device_type",i="device_mode",o="mobile",m="tablet",a="desktop",s="portrait",d="landscape"},9821:function(e,t,r){var n=r(6367),i=r(7753),o=r(8866),m=r(6805);t.Z=function(e){const[t,r,a]=(0,o.Z)(),[s]=(0,i.j1)("whatmoreLandscapePadding"),[d]=(0,i.j1)("whatmoreVideoTileSize"),[l]=(0,i.j1)("whatmoreVideoTileSizePortrait"),u=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),c=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),h="portrait"==t?l:d,$=!("portrait"!=t||!c),p=h/100*1.3*.5,g=h/100;var f=Math.min(a,r),[v,b,w,y]=[.6*f*(16/9),.6*f,1.4,0];function _(e){return Math.round(10*e)/10}var x={DEVICE_TYPE:m.AK,DEVICE_MODE:m.rE};if(u){const e=b*p,t=v*p;[v,b,w,y]=[t,e,(a-2*s)/(1.1*e),s],x[m.me]=m.$I,x[m.YP]=m.$w}else if($){var j=.8*b,P=.8*v;"portrait"==t?(j*=g,P*=g,[v,b,w,y]=[P,j,_(a/(1.2*j)),0],x[m.me]=m.AL,x[m.YP]=m.rE):([v,b,w,y]=[P,j,(a-2*s)/(1.1*j),s],x[m.me]=m.AL,x[m.YP]=m.$w)}else{j=b,P=v;"portrait"==t?(j=j*g*.9,P=P*g*.9,[v,b,w,y]=[P,j,_(a/(1.15*j)),0],x[m.me]=m.AK,x[m.YP]=m.rE):(j=.7*b,P=.7*v,[v,b,w,y]=[P,j,(a-2*s)/(1.1*j),s],x[m.me]=m.AK,x[m.YP]=m.$w)}return[v,b,w,y,x]}},8743:function(){},123:function(){},7244:function(){}}]);
@@ -65,7 +65,7 @@
65
65
  100% {
66
66
  transform: translateY(0%) rotate(0deg);
67
67
  }
68
- `} infinite 1.5s linear`;return(0,v.jsx)(P.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,v.jsx)(s.M5,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,v.jsx)(z.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,v.jsx)(L.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var D=function(t){const[e,i]=(0,u.j1)("isFirstIndicatorRenderDone"),[o]=(0,u.j1)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)((()=>{const t=setTimeout((()=>{i(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,v.jsx)(M,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},R=i(5180),A=i(9316),K=i(5254);const W="15px";var q=i(4522),N=i(778),V=i(364);var Z=function(t){const[e]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o]=(0,u.j1)("whatmoreSecondaryColor"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p,x,m]=(0,h.Z)(),[g,f]=(0,n.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(V.I),C=.1*x,b=.95*m,S=.05*m;return(0,v.jsx)(s.Kq,{direction:"row",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(s.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,v.jsx)(s.xu,{width:b+"px",height:"fit-content",padding:"6px",marginTop:W,backgroundColor:o,borderRadius:"5px",animation:g?A.mT:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.pq5)(a),onClick:()=>{f(!0),function(t,n){e||i||(async()=>{(0,l.wz)(t,n),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[n],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj5)(a)?t.product_link+"?"+(0,c.awP)(a)+"&"+(0,c.n9s)(a)+"&"+(0,c.vaK)(a):t.product_link}(w)},_hover:{backgroundColor:(0,K.lA)(o,8)},cursor:"pointer",children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,c.Pvx)(a)})})})})})},H=i(7009),U=i(5945),B=i(5456),Y=i(6984),X=i(6227),G=i(7329),$=(i(9111),i(9748));const Q={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 J(t){var e,i,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),x=t.onClick,m=t.width,g=t.height,f=t.title,w=t.showInProgressIcon;return(0,v.jsxs)(s.xu,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?A.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),h(!0)},children:(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===Q||void 0===Q||null===(o=Q[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,v.jsxs)(s.Kq,{direction:"row",backgroundColor:w?(0,K.lA)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),h(!0)},children:[(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,v.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,v.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,v.jsx)(v.Fragment,{})]})]})}function tt(t){var e,i,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),x=t.onClick,m=t.width,g=t.height;return(0,v.jsx)(s.xu,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(a)?r:(0,c.hmr)(a),onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:d?A.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,v.jsx)(s.M5,{children:(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.tan)(a)?(0,c.tan)(a):null!==(i=null===Q||void 0===Q||null===(o=Q[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.tan)(a),"\xa0"]})})})})}function et(t){var e;const[i]=(0,u.j1)("whatmorePrimaryFont"),[n]=(0,u.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,l=t.height;return(0,v.jsx)(s.xu,{width:r,height:l,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,v.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function it(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[n]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=t.width,h=t.height,p=t.onCartIconClick;return(0,v.jsx)(s.xu,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,v.jsx)(s.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,c.ijd)(o)?(0,v.jsx)($.zx,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,v.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,v.jsx)(X.Z,{sx:{color:i,fontSize:1.6*r}})}),(0,v.jsx)(s.xv,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,v.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,v.jsx)(Y.Z,{sx:{color:i,fontSize:1.6*r}})})]})})}var nt=function(t){var e,i,n,o,r,l;const[a]=(0,u.j1)("whatmoreShopId"),[d]=(0,u.j1)("websiteLanguage"),s=t.event,c=t.product,h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=null===(i=t.showAddedToCart)||void 0===i||i,x=t.cartState,m=t.cartCount,g=t.onClickAtc,f=t.onCartIconClick;function w(){g()}const j=null!==(n=t.width)&&void 0!==n?n:"100%",y=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==x?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:y,width:j},children:(0,v.jsx)(et,{event:s,product:c,baseFontSize:h,width:j,height:y})}):"init"==x?0==m?(0,v.jsx)(tt,{onClick:w,event:s,product:c,baseFontSize:h,width:j,height:y,websiteLanguage:d}):p?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:y,width:j},children:(0,v.jsx)(it,{onClick:w,event:s,product:c,baseFontSize:h,cartCount:m,width:j,height:y,onCartIconClick:f})}):(0,v.jsx)(tt,{onClick:w,event:s,product:c,baseFontSize:h,width:j,height:y,websiteLanguage:d}):(0,v.jsx)(J,{onClick:w,cartState:x,updateCartState:t.updateCartState,event:s,product:c,baseFontSize:h,width:j,height:y,title:"awaitingVariantSelection"==x?null!==(r=null===Q||void 0===Q||null===(l=Q[d])||void 0===l?void 0:l.done)&&void 0!==r?r:"Done":"",showInProgressIcon:"atcApiCallInProgress"==x||"productVariantDetailsApiCallInProgress"==x,websiteLanguage:d})},ot=i(6967),rt=i(3145),lt=i(4844);const at=(0,u.MO)("isInDesignMode"),dt=(0,u.MO)("isDemoBrand");async function st(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,lt.wW)(t,e,n,l,a,d,r):(at||dt||(async()=>{(0,ot.FF)(o,r)})(),(0,rt.jg)(t,e,n))}function ct(t,e){return"shopify"==t?(0,lt.JL)(e):(0,rt.TE)(e)}var ut=i(513);var ht=function(t,e,i){const[o]=(0,u.j1)("whatmoreShopId"),[r]=(0,u.j1)("isInDesignMode"),[a]=(0,u.j1)("isDemoBrand"),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),{closeClickComponent:x}=(0,n.useContext)(ji),{whatmoreUserInfo:v}=(0,n.useContext)(V.I),[m,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:m.cart_count}),"init"!=t&&"errored"!=t?(0,u.bU)("whatmoreAllowAutoSlide",!1):(0,u.bU)("whatmoreAllowAutoSlide",!0)}function w(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 j(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function y(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function C(){if(h.current&&h.current.length>=1){return h.current.filter((t=>t.available)).length>=1}return!1}function b(t,n){const d=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(d,1,(0,c.Ipo)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===v||void 0===v?void 0:v.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,i){r||a||(async()=>{(0,l.JX)(t,e,i)})()}(i,e,1),f("init",m.cart_count+1),(0,u.bU)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.MO)("whatmoreAddedToCart")&&(0,ut.D)(o,(()=>{}),100,window.location.hostname),(0,c.IKD)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[m,f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.p)(e,(0,c.Ipo)(o),o).then((e=>{h.current=e.variants;const n=w(e);s(n),y(n)||i?C()?b([j(n[0]),j(n[1]),j(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},b,function(t){var e,i,n,r;const l=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,c.Ipo)(o),a),compare_price:((0,c.Ipo)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,c.v9M)(o)&&("go_to_cart_page"!==(0,c.v9M)(o)?"open_cart_slider"!==(0,c.v9M)(o)||null!==x&&x():ct((0,c.Ipo)(o),o))}]},pt=i(9363);var xt=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",c=null!==(o=t.baseFontSize)&&void 0!==o?o:10,h=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",x=t.data,[m]=(0,u.j1)("whatmorePrimaryFont");function f(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[w,j]=(0,n.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,n.useEffect)((()=>{h(w)}),[w]),(0,v.jsx)(s.Kq,{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,v.jsxs)(s.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,v.jsx)(s.M5,{width:"100%",children:(0,v.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,v.jsxs)(s.xv,{as:"b",fontSize:1.2*c+"px",sx:{color:p+" !important",fontFamily:m+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,v.jsx)(s.kC,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,u,h,p,f;return(0==i||(null===x||void 0===x||null===(r=x.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===w||void 0===w?void 0:w[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,v.jsxs)(s.xu,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var i,n;j([w[0],t,null===x||void 0===x||null===(i=x.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===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;j([t,null===x||void 0===x||null===(l=x.variants)||void 0===l||null===(a=l.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===a?void 0:a.option2,null===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===w[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,v.jsxs)(s.xv,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:m+" !important"},align:"center",paddingX:(y=e.option,y.length>=3?"0px":.5*c+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,v.jsx)(g.Ee,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:o?"50%":"100%"},src:(0,pt.s)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(u=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===u?void 0:u.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(f=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===f?void 0:f.optionsrc,"?width=400&height=400")})]});var y}))},i)]},i)}))})},vt=i(9219),mt=i(6524);var gt=function(t){var e,i,o,r,a,d;const[x]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmoreSecondaryColor"),w=(0,u.MO)("whatmoreSecondaryColorShade900"),[j]=(0,u.j1)("whatmorePrimaryFont"),[y]=(0,u.j1)("whatmoreShopId"),[C,b,S,I]=(0,h.Z)(),[k,_]=(0,n.useState)(!1),[T,F]=(0,n.useState)(t.product),E=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:O}=(0,n.useContext)(V.I),[z,L,M,D,R,Z,Y]=ht(0,T,t.event),[X,G]=(0,n.useState)(null),[Q,J]=(0,n.useState)(parseFloat(T.price)),[tt,et]=(0,n.useState)(parseFloat(T.compare_price)),[it,ot]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[rt,lt]=(0,n.useState)(T.currency),[at,dt]=(0,n.useState)(null),st=t.event,ct=t.productClickHandler,{whatmoreIsPreviewMode:ut}=(0,n.useContext)(V.I),[gt,ft]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,c.N8M)(y)&&(0,vt.Rb)(T,(0,c.Ipo)(y),y).then((t=>{F(t),J(parseFloat(t.price)),et(parseFloat(t.compare_price)),lt(t.currency),jt(!0)}));(async()=>{const t=await(0,p.p)(T,(0,c.Ipo)(y),y);dt(t),J(null===t||void 0===t?void 0:t.price),et(null===t||void 0===t?void 0:t.compare_at_price),jt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=at?null===at||void 0===at||null===(t=at.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===at||void 0===at||null===(e=at.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===at||void 0===at||null===(r=at.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ft({position:i,finalArr:n,finalArrExternal:o})}),[at]);var yt=.68*I,Ct=.55*yt,bt=.4*yt,St=yt*(.55-.4),It=yt+"px",kt=bt+"px",_t=St+"px",Tt=.12*bt;const Ft=(0,c.ITD)(y);function Et(){window.location.href=function(t){return(0,c.lj5)(y)?t.product_link+"?"+(0,c.awP)(y)+"&"+(0,c.n9s)(y)+"&"+(0,c.vaK)(y):t.product_link}(T)}const Ot=O.landingLocationType,Pt=O.templateType,zt=(0,mt.NY)(Ot)+(0,mt.dS)(Pt)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);return(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.pq5)(y),width:It,height:"fit-content",boxShadow:"round"==E?"dark-lg":null,onClick:()=>{!function(t,e){x||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==y?Et():ct(e),_(!0)}(st,T)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(y)),animation:k?A.mT:null,borderRadius:"round"==E?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(y),borderColor:(0,c.qPe)(y)},children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,v.jsx)(s.xu,{height:kt,width:kt,bgColor:"STRDOIDF6O7"==y?"#f7f7f7":w,children:(0,v.jsx)(g.Ee,{width:kt,height:kt,src:(0,pt.s)(null!==(e=null!==(i=null===gt||void 0===gt||null===(o=gt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===gt||void 0===gt?void 0:gt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===gt||void 0===gt||null===(a=gt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===gt||void 0===gt?void 0:gt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(y)+" !important"}})}),(0,v.jsxs)(s.xu,{height:kt,width:yt-bt+"px",children:[(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(y)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*Tt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,U.s)(it)}),(0,c.QaY)(y)?(0,v.jsxs)(s.Kq,{direction:(0,c.$zZ)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==E?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Tt*(0,c.Rqt)(y)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.Uyp)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,vt.jx)(null!==Q&&void 0!==Q?Q:null===T||void 0===T?void 0:T.price,"",y,rt)," \xa0"]}),(0,B.B)(Q,tt)&&wt?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Tt*(0,c.Rqt)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.kPs)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(null!==tt&&void 0!==tt?tt:null===T||void 0===T?void 0:T.compare_price,"",y,rt)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.xv,{fontSize:.82*Tt*(0,c.Rqt)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.eod)(y)+" !important"},children:ut?(0,c.qde)(y):(0,c.aTS)(y)})]}),(0,c.Fr)(y)?(0,v.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,v.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==E?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.ML$)(y)?(0,v.jsx)($.zx,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,v.jsx)(s.xv,{color:"white",paddingX:"6px",fontSize:.8*Tt+"px",children:"VIEW PRODUCT"})}):(0,v.jsx)(H.Z,{sx:{color:f,fontSize:1.3*Tt+"px"}})}),(0,v.jsx)(s.xu,{width:"2px"})]})}):(0,v.jsx)(v.Fragment,{})]})]}),(0,v.jsx)(P.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==z.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==z.state&&null!=M?(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*Ct+"px",marginBottom:.1*Ct+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Ct*Ft+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(xt,{width:It,height:"fit-conten",event:st,product:T,finalArr:gt,data:at,productVariantOptions:M,baseFontSize:1.2*Tt,onOptionSelected:t=>{!function(t){G(t);const e=Z(t);e&&(J(e.price),et(e.compare_price),ot(e.title))}(t)}})}):(0,v.jsx)(v.Fragment,{})}),(0,v.jsx)(s.Kq,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:_t,justifyContent:"center",alignItems:"center",children:(0,v.jsx)(nt,{baseFontSize:.3*St,event:st,product:T,cartState:z.state,cartCount:z.cart_count,updateCartState:L,onClickAtc:t=>{"init"==z.state?(D(zt),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:st,productList:[T],ctaList:st.cta})):"awaitingVariantSelection"==z.state&&R(X,zt)},onCartIconClick:()=>{Y()}})})]})},ft=i(3867);var wt=function(t){var e,i,n;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),[d]=(0,u.j1)("whatmorePrimaryFont"),c=t.event,h=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=null!==(i=t.width)&&void 0!==i?i:"fit-content",m=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,v.jsx)(s.rU,{href:h.product_link,color:a,onClick:()=>{!function(t,e){o||r||(async()=>{(0,l.$L)(t,e)})()}(c,h)},children:(0,v.jsx)(s.xu,{width:x,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:d+" !important",color:a+" !important"},children:" VIEW MORE "})}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(H.Z,{sx:{color:a,fontSize:1.4*p}})})]})})})},jt=i(6163);function yt(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,x=t.height,m=t.title;return(0,v.jsx)(s.xu,{width:p,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(r)?i:(0,c.hmr)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?A.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,v.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:o+" !important",color:(0,c.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Ct=function(t){var e,i,n;const[o]=(0,u.j1)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,v.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Pvx)(o)})};var bt=function(t){var e;const[i]=(0,u.j1)("isInDesignMode"),[o]=(0,u.j1)("isDemoBrand"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p,x,m]=(0,h.Z)(),[f,w]=(0,n.useState)(!1),[j,y]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(V.I),[b,S,I,k,_,T,F]=ht(0,j,t.event),[E,O]=(0,n.useState)(null),[z,L]=(0,n.useState)(parseFloat(j.price)),[M,D]=(0,n.useState)(parseFloat(j.compare_price)),[R,K]=(0,n.useState)(j.currency),Z=t.event,H=t.productClickHandler,Y=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,X=C.landingLocationType,G=C.templateType,$=(0,mt.NY)(X)+(0,mt.dS)(G)+(null!==Z&&void 0!==Z&&Z.isRelatedEvent?"R":"E")+"_"+(null===Z||void 0===Z?void 0:Z.event_id);(0,n.useEffect)((()=>{(0,c.N8M)(a)&&(0,vt.Rb)(j,(0,c.Ipo)(a),a).then((t=>{y(t),L(parseFloat(t.price)),D(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var Q=m*Y,J=.3*Q,tt=Q+"px",et=.7*J,it=.9*et,ot=.12*J;const rt=(0,c.ITD)(a);function lt(t,e){i||o||(async()=>{(0,l.wz)(t,e)})(),H(e),w(!0)}return(0,v.jsx)(s.Kq,{direction:"row",width:tt,height:"fit-content",justifyContent:"center",children:(0,v.jsx)(s.xu,{marginTop:W,marginBottom:(0,c.pq5)(a),width:tt,onClick:t=>{},animation:f?A.mT:null,borderRadius:"lg",onAnimationEnd:()=>{w(!1)},children:(0,v.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{lt(Z,j)},children:[(0,v.jsx)(s.xu,{height:et+"px",width:et+"px",children:(0,v.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,v.jsx)(s.xu,{height:it+"px",width:it+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,v.jsx)(g.Ee,{width:it+"px",height:it+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,v.jsx)(s.xu,{height:et+"px",width:Q-et+"px",children:(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,v.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,U.s)(j.title.toString())}),(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,c.QaY)(a)?(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",aligntItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:1*ot+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," ",(0,vt.jx)(parseFloat(z),"",a,R)," \xa0"]}),(0,v.jsx)(s.M5,{children:(0,B.B)(j.price,j.compare_price)?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.8*ot+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(parseFloat(M),"",a,R)]}):(0,v.jsx)(v.Fragment,{})})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(ft.Z,{storeId:a,productId:j.client_product_id,productLink:j.product_link,fontSize:1*ot,fontColor:"white"})})]})]})})]}),(0,v.jsx)(P.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=I?(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*J+"px",marginBottom:.1*J+"px",overflowY:"auto",overflowX:"hidden",maxHeight:J*rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(xt,{width:tt,height:"fit-content",event:Z,product:j,productVariantOptions:I,baseFontSize:1*ot,onOptionSelected:t=>{!function(t){O(t);const e=T(t);e&&(L(e.price),D(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,v.jsx)(v.Fragment,{})}),(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,v.jsx)(s.xu,{width:"100%",height:"100%",children:(0,v.jsx)(wt,{baseFontSize:.8*ot,event:Z,product:j,width:"100%",height:"100%"})}),(0,v.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib9)(a)?(0,v.jsx)(Ct,{baseFontSize:.8*ot,event:Z,product:j,borderRadius:"md",onShopNowClick:t=>{lt(Z,j)}}):(0,v.jsx)(v.Fragment,{children:"form"===(0,c._5p)(a)?(0,v.jsx)(jt.default,{baseFontSize:.8*ot,event:Z,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,v.jsx)(nt,{baseFontSize:.8*ot,event:Z,product:j,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?(k($),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:Z,productList:[j],ctaList:Z.cta})):"awaitingVariantSelection"==b.state&&_(E,$)},onCartIconClick:()=>{F()}})})})]})]})})})};var St=function(t){var e,i;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),d=(0,u.MO)("whatmoreSecondaryColorShade900"),[x]=(0,u.j1)("whatmorePrimaryFont"),[m]=(0,u.j1)("whatmoreShopId"),[f,w,j,y]=(0,h.Z)(),[C,b]=(0,n.useState)(!1),[S,I]=(0,n.useState)(t.product),k=(0,u.MO)("whatmoreUITheme"),[_,T]=(0,n.useState)(!1),[F,E]=(0,n.useState)(parseFloat(S.price)),[O,P]=(0,n.useState)(parseFloat(S.compare_price)),[z,L]=(0,n.useState)(S.currency),M=t.event,[D,R]=(0,n.useState)();(0,n.useEffect)((()=>{(0,c.N8M)(m)&&(0,vt.Rb)(S,(0,c.Ipo)(m),m).then((t=>{I(t),E(parseFloat(t.price)),P(parseFloat(t.compare_price)),L(t.currency),T(!0)}));(async()=>{const t=await(0,p.p)(S,(0,c.Ipo)(m),m);R(t),T(!0)})()}),[]);var Z=.68*y,Y=.4*Z,X=Z+"px",G=Y+"px",$=Z*(.55-.4)+"px",Q=.12*Y;(0,c.ITD)(m);const{whatmoreWidgetSourceDetails:J}=(0,n.useContext)(V.I);function tt(t){return(0,c.lj5)(m)?t.product_link+"?"+(0,c.awP)(m)+"&"+(0,c.n9s)(m)+"&"+(0,c.vaK)(m):t.product_link}function et(t,e){o||r||(async()=>{(0,l.wz)(t,e),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:J,event:t,productList:[e],ctaList:t.cta})})(),b(!0)}return(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.pq5)(m),width:X,height:"fit-content",boxShadow:"round"==k?"dark-lg":null,onClick:()=>{et(M,S),window.location.href=tt(S)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(m)),animation:C?A.mT:null,borderRadius:"round"==k?"xl":null,overflow:"hidden",onAnimationEnd:()=>{b(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(m),borderColor:(0,c.qPe)(m)},children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,v.jsx)(s.xu,{height:G,width:G,children:(0,v.jsx)(g.Ee,{width:G,height:G,src:(0,pt.s)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(m)+" !important"}})}),(0,v.jsxs)(s.xu,{height:G,width:Z-Y+"px",children:[(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(m)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,v.jsx)(s.xv,{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:x+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*Q+"px !important"},children:(0,U.s)(null==S.title?"":S.title.toString())}),(0,c.QaY)(m)?(0,v.jsxs)(s.Kq,{direction:(0,c.$zZ)(m)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==k?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,v.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*Q+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.Uyp)(m)+" !important",margin:"0px !important"},children:[" "+(0,vt.jx)(null!==(e=null===D||void 0===D?void 0:D.price)&&void 0!==e?e:F,"",m,z)," \xa0"]}),(0,B.B)(F,O)&&_?(0,v.jsxs)(s.xv,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*Q+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.kPs)(m)+" !important",margin:"0px !important"},children:[" ",(0,vt.jx)(null!==(i=null===D||void 0===D?void 0:D.compare_at_price)&&void 0!==i?i:O,"",m,z)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),""!=(0,c.sG7)(m)&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Q+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.V3Y)(m)+" !important",color:(0,c.aUT)(m)+" !important",margin:"0px !important"},children:["\xa0",(0,c.sG7)(m)," \xa0"]})]}),(0,c.Fr)(m)?(0,v.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,v.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==k?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,v.jsx)(H.Z,{sx:{color:a,fontSize:1.3*Q+"px"}})}),(0,v.jsx)(s.xu,{width:"2px"})]})}):(0,v.jsx)(v.Fragment,{})]})]}),(0,c.pp3)(m)&&(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:$,justifyContent:"center",alignItems:"center",children:(0,v.jsx)(Ct,{baseFontSize:.8*Q,event:M,product:S,borderRadius:"md",onShopNowClick:t=>{et(M,S),window.location.href=tt(S)}})})]})};function It(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,p=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,v.jsx)(kt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:x}):(0,v.jsxs)(s.xu,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?A.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,v.jsx)(s.Kq,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,v.jsxs)(s.xv,{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,v.jsxs)(s.Kq,{direction:"row",backgroundColor:g?(0,K.lA)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,v.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,v.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,v.jsx)(v.Fragment,{})]})]})}function kt(t){const[e]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,v.jsx)(s.Kq,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,v.jsx)(s.xu,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?A.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.KCy)(o)} !important`},children:(0,c.tan)(o)})})})})})}function _t(t){var e;const[i]=(0,u.j1)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,v.jsx)(s.xu,{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,v.jsx)(s.Kq,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,v.jsxs)(s.xv,{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 Tt(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[n]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("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,v.jsx)(s.xu,{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,v.jsxs)(s.Kq,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,v.jsx)(s.M5,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,v.jsx)(X.Z,{sx:{color:i,fontSize:1.6*r}}):(0,v.jsx)($.zx,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,v.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,v.jsx)(s.xv,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,v.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,v.jsx)(Y.Z,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,i,n,o;const[r]=(0,u.j1)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,v.jsx)(_t,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,v.jsx)(kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,v.jsx)(Tt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:x})}):(0,v.jsx)(kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,v.jsx)(It,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Et=function(t){var e,i,o,r,a,d;const[x]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmorePrimaryFont"),[w]=(0,u.j1)("whatmoreShopId"),[j,y,C,b]=(0,h.Z)(),[S,I]=(0,n.useState)(!1),[k,_]=(0,n.useState)(t.product),T=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)(V.I),[E,O,P,z,L,M,D]=ht(0,k,t.event),[R,Z]=(0,n.useState)(null),[H,Y]=(0,n.useState)(parseFloat(k.price)),[X,G]=(0,n.useState)(parseFloat(k.compare_price)),[$,Q]=(0,n.useState)(k.currency),[J,tt]=(0,n.useState)(null),et=t.event,it=t.productClickHandler,[nt,ot]=(0,n.useState)(null),[rt,lt]=(0,n.useState)(!1),at=F.landingLocationType,dt=F.templateType,st=(0,mt.NY)(at)+(0,mt.dS)(dt)+"_"+(null===et||void 0===et?void 0:et.event_id);(0,n.useEffect)((()=>{(0,c.N8M)(w)&&(0,vt.Rb)(k,(0,c.Ipo)(w),w).then((t=>{_(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),Q(t.currency),lt(!0)}));(async()=>{const t=await(0,p.p)(k,(0,c.Ipo)(w),w);tt(t),Y(null===t||void 0===t?void 0:t.price),G(null===t||void 0===t?void 0:t.compare_at_price),lt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=J?null===J||void 0===J||null===(t=J.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===J||void 0===J||null===(e=J.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===J||void 0===J||null===(r=J.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ot({position:i,finalArr:n,finalArrExternal:o})}),[J]);var ct=.72*b,ut=.37*ct,xt=ct*(.48-.37),gt=.95*ct+"px",ft=ut+"px",wt=.12*ut;function jt(){window.location.href=function(t){return(0,c.lj5)(w)?t.product_link+"?"+(0,c.awP)(w)+"&"+(0,c.n9s)(w)+"&"+(0,c.vaK)(w):t.product_link}(k)}return(0,v.jsx)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:"24px",width:gt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){x||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==w?jt():it(e),I(!0)}(et,k)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(w)),animation:S?A.mT:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{I(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(w),borderColor:(0,c.qPe)(w)},children:(0,v.jsxs)(s.Kq,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,v.jsx)(s.xu,{height:ft,width:ft,children:(0,v.jsx)(g.Ee,{width:"100%",height:"100%",src:(0,pt.s)(null!==(e=null!==(i=null===nt||void 0===nt||null===(o=nt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===nt||void 0===nt?void 0:nt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===nt||void 0===nt||null===(a=nt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===nt||void 0===nt?void 0:nt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(w)+" !important"}})}),(0,v.jsx)(s.xu,{height:ft,width:ct-ut+"px",children:(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,U.s)(null==k.title?"":k.title.toString())}),(0,c.QaY)(w)?(0,v.jsxs)(s.Kq,{direction:(0,c.$zZ)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[rt&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*wt*(0,c.Rqt)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.Uyp)(w)+" !important",fontWeight:"bold"},children:[" "+(0,vt.jx)(null!==H&&void 0!==H?H:null===k||void 0===k?void 0:k.price,"",w,$)," \xa0"]}),(0,B.B)(H,X)&&rt?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*wt*(0,c.Rqt)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.kPs)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(null!==X&&void 0!==X?X:null===k||void 0===k?void 0:k.compare_price,"",w,$)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(Ft,{baseFontSize:.3*xt,event:et,product:k,cartState:E.state,cartCount:E.cart_count,updateCartState:O,onClickAtc:t=>{"init"===E.state?(z(st,!0),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:et,productList:[k],ctaList:et.cta})):"awaitingVariantSelection"===E.state&&it(k)},onCartIconClick:t=>{D()}})]})})]})})};var Ot=function(t){const[e]=(0,u.j1)("whatmoreShopId"),[i]=(0,u.j1)("isWhatmoreWebsite"),n=(0,c.eyg)(e),o=t.event,r=t.product;return i?(0,v.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,v.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,v.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,v.jsx)(Et,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,v.jsx)(Z,{product:t.product,event:t.event}):"narrow-tile"==n?(0,v.jsx)(bt,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,v.jsx)(v.Fragment,{})},Pt=i(6119),zt=i(3388),Lt=i(7643);var Mt=function(t){const[e,i,n,l]=(0,h.Z)(),[a]=(0,u.j1)("whatmoreShopId"),d=(0,u.MO)("isInDesignMode"),p=(0,u.MO)("isDemoBrand"),x=t.event,m=t.productClickHandler,g=(0,c.eyg)(a);if(!(0,zt.kT)(x))return(0,v.jsx)(v.Fragment,{});if(1==x.products.length&&(void 0==x.cta||0==x.cta.length)){const t=x.products[0];return(0,c.rnv)(a)?(0,v.jsx)(s.Kq,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(bt,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})}):(0,v.jsx)(s.Kq,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(Ot,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})})}return(0,v.jsx)(s.M5,{children:(0,v.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(s.xu,{width:l+"px",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,v.jsxs)(o.tq,{className:"product-tile swiper-slide",slidesPerView:1==x.products.length?1:1.4,initialSlide:x.products.length<=2||(0,c.VqZ)(a)?0:1,centeredSlides:!(0,c.VqZ)(a),modules:[r.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[x.products[0]]:x.products).map((t=>"oos"!=t.product_status&&(0,v.jsx)(o.o5,{children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,v.jsx)(Ot,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})},x.event_id+t.product_id))),(0,c.pp3)(a)&&void 0!=x.cta&&x.cta.map((t=>(0,v.jsx)(v.Fragment,{children:""!==t.cta_title.trim()&&(0,v.jsx)(o.o5,{children:(0,v.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,v.jsx)(Pt.Z,{cta:t},x.event_id+t.cta_id)})},x.event_id+t.cta_id)})))]})})})})};var Dt=function(t){const[e,i]=(0,u.j1)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(ji).isIOS&&e?(0,v.jsx)(Mt,{event:o,productClickHandler:r},o.event_id):(0,v.jsx)(P.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,v.jsx)(Mt,{event:o,productClickHandler:r},o.event_id)})};function Rt(t){const e=t.event,[i,n,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont");return(0,v.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,v.jsx)(g.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,v.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,v.jsx)(s.xv,{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,v.jsx)(E.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var At=function(t){const[e]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o,r]=(0,u.j1)("isProductSwiperCatalogOpen"),[l,a]=(0,j.Z)(),[d,h]=(0,u.j1)("isFirstIndicatorRenderDone"),p=(0,n.useContext)(ji),[x]=(0,u.j1)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,C=t.productClickHandler;return(0,v.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,v.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,v.jsx)(Rt,{event:m}),(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,v.jsx)(y,{focusRef:w}),(0,v.jsx)(O.Z,{event:m,onCloseCallback:f})]})]})}),(0,v.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,v.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,v.jsx)(s.xu,{width:"full",margin:"2px",children:(0,v.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,v.jsx)(D,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,v.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(x)?(0,v.jsx)(s.xu,{w:"100%",children:(0,v.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,v.jsx)(F,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,v.jsx)(Dt,{event:m,productClickHandler:C})})]}):(0,v.jsx)("div",{})]})]})})},Kt=i(8302);function Wt(t){const[e,i,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p]=(0,n.useState)(""),x=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===x||void 0===x?void 0:x.id}&title=${null===x||void 0===x?void 0:x.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${b.F4`
68
+ `} infinite 1.5s linear`;return(0,v.jsx)(P.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,v.jsx)(s.M5,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,v.jsx)(z.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,v.jsx)(L.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var D=function(t){const[e,i]=(0,u.j1)("isFirstIndicatorRenderDone"),[o]=(0,u.j1)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,n.useEffect)((()=>{const t=setTimeout((()=>{i(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,v.jsx)(M,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},R=i(5180),A=i(9316),K=i(5254);const W="15px";var q=i(4522),N=i(778),V=i(364);var Z=function(t){const[e]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o]=(0,u.j1)("whatmoreSecondaryColor"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p,x,m]=(0,h.Z)(),[g,f]=(0,n.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,n.useContext)(V.I),C=.1*x,b=.95*m,S=.05*m;return(0,v.jsx)(s.Kq,{direction:"row",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(s.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,v.jsx)(s.xu,{width:b+"px",height:"fit-content",padding:"6px",marginTop:W,backgroundColor:o,borderRadius:"5px",animation:g?A.mT:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.pq5)(a),onClick:()=>{f(!0),function(t,n){e||i||(async()=>{(0,l.wz)(t,n),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[n],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj5)(a)?t.product_link+"?"+(0,c.awP)(a)+"&"+(0,c.n9s)(a)+"&"+(0,c.vaK)(a):t.product_link}(w)},_hover:{backgroundColor:(0,K.lA)(o,8)},cursor:"pointer",children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,c.Pvx)(a)})})})})})},H=i(7009),U=i(5945),B=i(5456),Y=i(6984),X=i(6227),G=i(7329),$=(i(9111),i(9748));const Q={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 J(t){var e,i,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),x=t.onClick,m=t.width,g=t.height,f=t.title,w=t.showInProgressIcon;return(0,v.jsxs)(s.xu,{display:"flex",width:m,height:g,padding:"2x",boxShadow:"lg",animation:d?A.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),h(!0)},children:(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(i=null===Q||void 0===Q||null===(o=Q[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==i?i:"Cancel","\xa0"]})}),(0,v.jsxs)(s.Kq,{direction:"row",backgroundColor:w?(0,K.lA)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),h(!0)},children:[(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0",f,"\xa0"]}),w?(0,v.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,v.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*p+"px"}})}):(0,v.jsx)(v.Fragment,{})]})]})}function tt(t){var e,i,o;const[r]=(0,u.j1)("whatmoreSecondaryColor"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,h]=(0,n.useState)(!1),p=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),x=t.onClick,m=t.width,g=t.height;return(0,v.jsx)(s.xu,{width:m,height:g,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(a)?r:(0,c.hmr)(a),onClick:t=>{t.stopPropagation(),x(),h(!0)},animation:d?A.mT:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,v.jsx)(s.M5,{children:(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*p+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,c.KCy)(a)+" !important"},children:["\xa0","ADD TO CART"!=(0,c.tan)(a)?(0,c.tan)(a):null!==(i=null===Q||void 0===Q||null===(o=Q[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==i?i:(0,c.tan)(a),"\xa0"]})})})})}function et(t){var e;const[i]=(0,u.j1)("whatmorePrimaryFont"),[n]=(0,u.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,l=t.height;return(0,v.jsx)(s.xu,{width:r,height:l,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,v.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function it(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[n]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=t.width,h=t.height,p=t.onCartIconClick;return(0,v.jsx)(s.xu,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:i,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,v.jsx)(s.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,c.ijd)(o)?(0,v.jsx)($.zx,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,v.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,v.jsx)(X.Z,{sx:{color:i,fontSize:1.6*r}})}),(0,v.jsx)(s.xv,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,v.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,v.jsx)(Y.Z,{sx:{color:i,fontSize:1.6*r}})})]})})}var nt=function(t){var e,i,n,o,r,l;const[a]=(0,u.j1)("whatmoreShopId"),[d]=(0,u.j1)("websiteLanguage"),s=t.event,c=t.product,h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,p=null===(i=t.showAddedToCart)||void 0===i||i,x=t.cartState,m=t.cartCount,g=t.onClickAtc,f=t.onCartIconClick;function w(){g()}const j=null!==(n=t.width)&&void 0!==n?n:"100%",y=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==x?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:y,width:j},children:(0,v.jsx)(et,{event:s,product:c,baseFontSize:h,width:j,height:y})}):"init"==x?0==m?(0,v.jsx)(tt,{onClick:w,event:s,product:c,baseFontSize:h,width:j,height:y,websiteLanguage:d}):p?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:y,width:j},children:(0,v.jsx)(it,{onClick:w,event:s,product:c,baseFontSize:h,cartCount:m,width:j,height:y,onCartIconClick:f})}):(0,v.jsx)(tt,{onClick:w,event:s,product:c,baseFontSize:h,width:j,height:y,websiteLanguage:d}):(0,v.jsx)(J,{onClick:w,cartState:x,updateCartState:t.updateCartState,event:s,product:c,baseFontSize:h,width:j,height:y,title:"awaitingVariantSelection"==x?null!==(r=null===Q||void 0===Q||null===(l=Q[d])||void 0===l?void 0:l.done)&&void 0!==r?r:"Done":"",showInProgressIcon:"atcApiCallInProgress"==x||"productVariantDetailsApiCallInProgress"==x,websiteLanguage:d})},ot=i(6967),rt=i(3145),lt=i(4844);const at=(0,u.MO)("isInDesignMode"),dt=(0,u.MO)("isDemoBrand");async function st(t,e,i,n,o,r,l,a,d){return"shopify"==i?(0,lt.wW)(t,e,n,l,a,d,r):(at||dt||(async()=>{(0,ot.FF)(o,r)})(),(0,rt.jg)(t,e,n))}function ct(t,e){return"shopify"==t?(0,lt.JL)(e):(0,rt.TE)(e)}var ut=i(513);var ht=function(t,e,i){const[o]=(0,u.j1)("whatmoreShopId"),[r]=(0,u.j1)("isInDesignMode"),[a]=(0,u.j1)("isDemoBrand"),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),{closeClickComponent:x}=(0,n.useContext)(ji),{whatmoreUserInfo:v}=(0,n.useContext)(V.I),[m,g]=(0,n.useState)({state:"init",cart_count:t});function f(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:m.cart_count}),"init"!=t&&"errored"!=t?(0,u.bU)("whatmoreAllowAutoSlide",!1):(0,u.bU)("whatmoreAllowAutoSlide",!0)}function w(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 j(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function y(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function C(){if(h.current&&h.current.length>=1){return h.current.filter((t=>t.available)).length>=1}return!1}function b(t,n){const d=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!d)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(d,1,(0,c.Ipo)(o),o,i,e,n,null===i||void 0===i?void 0:i.location,null===v||void 0===v?void 0:v.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,i){r||a||(async()=>{(0,l.JX)(t,e,i)})()}(i,e,1),f("init",m.cart_count+1),(0,u.bU)("whatmoreAddedToCart",!0),"72550089015"==o&&(0,u.MO)("whatmoreAddedToCart")&&(0,ut.D)(o,(()=>{}),100,window.location.hostname),(0,c.IKD)(o)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[m,f,d,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f("productVariantDetailsApiCallInProgress",null),(0,p.p)(e,(0,c.Ipo)(o),o).then((e=>{h.current=e.variants;const n=w(e);s(n),y(n)||i?C()?b([j(n[0]),j(n[1]),j(n[2])],t):f("errored",null):f("awaitingVariantSelection",null)})).catch((t=>{f("errored",null)}))},b,function(t){var e,i,n,r;const l=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,c.Ipo)(o),a),compare_price:((0,c.Ipo)(o),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,c.v9M)(o)&&("go_to_cart_page"!==(0,c.v9M)(o)?"open_cart_slider"!==(0,c.v9M)(o)||null!==x&&x():ct((0,c.Ipo)(o),o))}]},pt=i(9363);var xt=function(t){var e,i,o,r;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(i=t.height)&&void 0!==i?i:"fit-content",c=null!==(o=t.baseFontSize)&&void 0!==o?o:10,h=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",x=t.data,[m]=(0,u.j1)("whatmorePrimaryFont");function f(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[w,j]=(0,n.useState)([f(l[0]),f(l[1]),f(l[2])]);return(0,n.useEffect)((()=>{h(w)}),[w]),(0,v.jsx)(s.Kq,{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,v.jsxs)(s.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,v.jsx)(s.M5,{width:"100%",children:(0,v.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,v.jsxs)(s.xv,{as:"b",fontSize:1.2*c+"px",sx:{color:p+" !important",fontFamily:m+" !important"},align:"center",marginY:"2px",children:["\xa0",e[0].type,"\xa0"]}),(0,v.jsx)(s.kC,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map(((e,n)=>{var r,l,a,d,u,h,p,f;return(0==i||(null===x||void 0===x||null===(r=x.variants)||void 0===r?void 0:r.find((t=>t[`option${i}`]==(null===w||void 0===w?void 0:w[i-1])&&t[`option${i+1}`]==(null===e||void 0===e?void 0:e.option)))))&&(0,v.jsxs)(s.xu,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)j([w[0],w[1],t]);else if(1==e){var i,n;j([w[0],t,null===x||void 0===x||null===(i=x.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===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;j([t,null===x||void 0===x||null===(l=x.variants)||void 0===l||null===(a=l.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===a?void 0:a.option2,null===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,i)},backgroundColor:e.option===w[i]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===w[i]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===w[i]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:o?"0px":"8px",borderRadius:o?"50%":"0",children:[!o&&(0,v.jsxs)(s.xv,{as:e.available?"samp":"s",fontSize:.8*c+"px",sx:{color:e.option===w[i]?"white":(e.available?"black":"gray")+" !important",fontFamily:m+" !important"},align:"center",paddingX:(y=e.option,y.length>=3?"0px":.5*c+"px"),children:["\xa0",e.option,"\xa0"]}),o&&(0,v.jsx)(g.Ee,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:o?"50%":"100%"},src:(0,pt.s)(null!==(l=null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||null===(u=d.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===u?void 0:u.src)&&void 0!==l?l:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(f=p.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===f?void 0:f.optionsrc,"?width=400&height=400")})]});var y}))},i)]},i)}))})},vt=i(9219),mt=i(6524);var gt=function(t){var e,i,o,r,a,d;const[x]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmoreSecondaryColor"),w=(0,u.MO)("whatmoreSecondaryColorShade900"),[j]=(0,u.j1)("whatmorePrimaryFont"),[y]=(0,u.j1)("whatmoreShopId"),[C,b,S,I]=(0,h.Z)(),[k,_]=(0,n.useState)(!1),[T,F]=(0,n.useState)(t.product),E=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:O}=(0,n.useContext)(V.I),[z,L,M,D,R,Z,Y]=ht(0,T,t.event),[X,G]=(0,n.useState)(null),[Q,J]=(0,n.useState)(parseFloat(T.price)),[tt,et]=(0,n.useState)(parseFloat(T.compare_price)),[it,ot]=(0,n.useState)(null===T||void 0===T?void 0:T.title),[rt,lt]=(0,n.useState)(T.currency),[at,dt]=(0,n.useState)(null),st=t.event,ct=t.productClickHandler,{whatmoreIsPreviewMode:ut}=(0,n.useContext)(V.I),[gt,ft]=(0,n.useState)(null),[wt,jt]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(0,c.N8M)(y)&&(0,vt.Rb)(T,(0,c.Ipo)(y),y).then((t=>{F(t),J(parseFloat(t.price)),et(parseFloat(t.compare_price)),lt(t.currency),jt(!0)}));(async()=>{const t=await(0,p.p)(T,(0,c.Ipo)(y),y);dt(t),J(null===t||void 0===t?void 0:t.price),et(null===t||void 0===t?void 0:t.compare_at_price),jt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=at?null===at||void 0===at||null===(t=at.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,n=-1!==i?null===at||void 0===at||null===(e=at.variants)||void 0===e?void 0:e.map((t=>{var e,n;const o=null===t||void 0===t?void 0:t[`option${i+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(n=t.featured_image)||void 0===n?void 0:n.src}:null})):[];let o=[];var r;-1!==i&&(o=null===at||void 0===at||null===(r=at.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ft({position:i,finalArr:n,finalArrExternal:o})}),[at]);var yt=.68*I,Ct=.55*yt,bt=.4*yt,St=yt*(.55-.4),It=yt+"px",kt=bt+"px",_t=St+"px",Tt=.12*bt;const Ft=(0,c.ITD)(y);function Et(){window.location.href=function(t){return(0,c.lj5)(y)?t.product_link+"?"+(0,c.awP)(y)+"&"+(0,c.n9s)(y)+"&"+(0,c.vaK)(y):t.product_link}(T)}const Ot=O.landingLocationType,Pt=O.templateType,zt=(0,mt.NY)(Ot)+(0,mt.dS)(Pt)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);return(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.pq5)(y),width:It,height:"fit-content",boxShadow:"round"==E?"dark-lg":null,onClick:()=>{!function(t,e){x||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==y?Et():ct(e),_(!0)}(st,T)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(y)),animation:k?A.mT:null,borderRadius:"round"==E?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(y),borderColor:(0,c.qPe)(y)},children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,v.jsx)(s.xu,{height:kt,width:kt,bgColor:"STRDOIDF6O7"==y?"#f7f7f7":w,children:(0,v.jsx)(g.Ee,{width:kt,height:kt,src:(0,pt.s)(null!==(e=null!==(i=null===gt||void 0===gt||null===(o=gt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===gt||void 0===gt?void 0:gt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===gt||void 0===gt||null===(a=gt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===gt||void 0===gt?void 0:gt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:T.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(y)+" !important"}})}),(0,v.jsxs)(s.xu,{height:kt,width:yt-bt+"px",children:[(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(y)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*Tt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,U.s)(it)}),(0,c.QaY)(y)?(0,v.jsxs)(s.Kq,{className:"whatmore-product-atc-price",direction:(0,c.$zZ)(y)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==E?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[wt&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Tt*(0,c.Rqt)(y)+"px !important",fontWeight:"semibold !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.Uyp)(y)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,vt.jx)(null!==Q&&void 0!==Q?Q:null===T||void 0===T?void 0:T.price,"",y,rt)," \xa0"]}),(0,B.B)(Q,tt)&&wt?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Tt*(0,c.Rqt)(y)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:j+" !important",color:(0,c.kPs)(y)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(null!==tt&&void 0!==tt?tt:null===T||void 0===T?void 0:T.compare_price,"",y,rt)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.xv,{fontSize:.82*Tt*(0,c.Rqt)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.eod)(y)+" !important"},children:ut?(0,c.qde)(y):(0,c.aTS)(y)})]}),(0,c.Fr)(y)?(0,v.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,v.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:w,sx:{borderRadius:"round"==E?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,c.ML$)(y)?(0,v.jsx)($.zx,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,v.jsx)(s.xv,{color:"white",paddingX:"6px",fontSize:.8*Tt+"px",children:"VIEW PRODUCT"})}):(0,v.jsx)(H.Z,{sx:{color:f,fontSize:1.3*Tt+"px"}})}),(0,v.jsx)(s.xu,{width:"2px"})]})}):(0,v.jsx)(v.Fragment,{})]})]}),(0,v.jsx)(P.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==z.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==z.state&&null!=M?(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*Ct+"px",marginBottom:.1*Ct+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Ct*Ft+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(xt,{width:It,height:"fit-conten",event:st,product:T,finalArr:gt,data:at,productVariantOptions:M,baseFontSize:1.2*Tt,onOptionSelected:t=>{!function(t){G(t);const e=Z(t);e&&(J(e.price),et(e.compare_price),ot(e.title))}(t)}})}):(0,v.jsx)(v.Fragment,{})}),(0,v.jsx)(s.Kq,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:_t,justifyContent:"center",alignItems:"center",children:(0,v.jsx)(nt,{baseFontSize:.3*St,event:st,product:T,cartState:z.state,cartCount:z.cart_count,updateCartState:L,onClickAtc:t=>{"init"==z.state?(D(zt),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:st,productList:[T],ctaList:st.cta})):"awaitingVariantSelection"==z.state&&R(X,zt)},onCartIconClick:()=>{Y()}})})]})},ft=i(3867);var wt=function(t){var e,i,n;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),[d]=(0,u.j1)("whatmorePrimaryFont"),c=t.event,h=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=null!==(i=t.width)&&void 0!==i?i:"fit-content",m=null!==(n=t.height)&&void 0!==n?n:"fit-content";return(0,v.jsx)(s.rU,{href:h.product_link,color:a,onClick:()=>{!function(t,e){o||r||(async()=>{(0,l.$L)(t,e)})()}(c,h)},children:(0,v.jsx)(s.xu,{width:x,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:d+" !important",color:a+" !important"},children:" VIEW MORE "})}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(H.Z,{sx:{color:a,fontSize:1.4*p}})})]})})})},jt=i(6163);function yt(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,x=t.height,m=t.title;return(0,v.jsx)(s.xu,{width:p,height:x,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,c.hmr)(r)?i:(0,c.hmr)(r),onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?A.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,v.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:o+" !important",color:(0,c.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Ct=function(t){var e,i,n;const[o]=(0,u.j1)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(i=t.width)&&void 0!==i?i:"100%",h=null!==(n=t.height)&&void 0!==n?n:"100%";return(0,v.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Pvx)(o)})};var bt=function(t){var e;const[i]=(0,u.j1)("isInDesignMode"),[o]=(0,u.j1)("isDemoBrand"),[r]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p,x,m]=(0,h.Z)(),[f,w]=(0,n.useState)(!1),[j,y]=(0,n.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(V.I),[b,S,I,k,_,T,F]=ht(0,j,t.event),[E,O]=(0,n.useState)(null),[z,L]=(0,n.useState)(parseFloat(j.price)),[M,D]=(0,n.useState)(parseFloat(j.compare_price)),[R,K]=(0,n.useState)(j.currency),Z=t.event,H=t.productClickHandler,Y=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,X=C.landingLocationType,G=C.templateType,$=(0,mt.NY)(X)+(0,mt.dS)(G)+(null!==Z&&void 0!==Z&&Z.isRelatedEvent?"R":"E")+"_"+(null===Z||void 0===Z?void 0:Z.event_id);(0,n.useEffect)((()=>{(0,c.N8M)(a)&&(0,vt.Rb)(j,(0,c.Ipo)(a),a).then((t=>{y(t),L(parseFloat(t.price)),D(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var Q=m*Y,J=.3*Q,tt=Q+"px",et=.7*J,it=.9*et,ot=.12*J;const rt=(0,c.ITD)(a);function lt(t,e){i||o||(async()=>{(0,l.wz)(t,e)})(),H(e),w(!0)}return(0,v.jsx)(s.Kq,{direction:"row",width:tt,height:"fit-content",justifyContent:"center",children:(0,v.jsx)(s.xu,{marginTop:W,marginBottom:(0,c.pq5)(a),width:tt,onClick:t=>{},animation:f?A.mT:null,borderRadius:"lg",onAnimationEnd:()=>{w(!1)},children:(0,v.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{lt(Z,j)},children:[(0,v.jsx)(s.xu,{height:et+"px",width:et+"px",children:(0,v.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,v.jsx)(s.xu,{height:it+"px",width:it+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,v.jsx)(g.Ee,{width:it+"px",height:it+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,v.jsx)(s.xu,{height:et+"px",width:Q-et+"px",children:(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,v.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,U.s)(j.title.toString())}),(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,c.QaY)(a)?(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",aligntItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:1*ot+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"white !important"},children:["\xa0"," ",(0,vt.jx)(parseFloat(z),"",a,R)," \xa0"]}),(0,v.jsx)(s.M5,{children:(0,B.B)(j.price,j.compare_price)?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.8*ot+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:r+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(parseFloat(M),"",a,R)]}):(0,v.jsx)(v.Fragment,{})})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.M5,{children:(0,v.jsx)(ft.Z,{storeId:a,productId:j.client_product_id,productLink:j.product_link,fontSize:1*ot,fontColor:"white"})})]})]})})]}),(0,v.jsx)(P.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=I?(0,v.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*J+"px",marginBottom:.1*J+"px",overflowY:"auto",overflowX:"hidden",maxHeight:J*rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(xt,{width:tt,height:"fit-content",event:Z,product:j,productVariantOptions:I,baseFontSize:1*ot,onOptionSelected:t=>{!function(t){O(t);const e=T(t);e&&(L(e.price),D(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,v.jsx)(v.Fragment,{})}),(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,v.jsx)(s.xu,{width:"100%",height:"100%",children:(0,v.jsx)(wt,{baseFontSize:.8*ot,event:Z,product:j,width:"100%",height:"100%"})}),(0,v.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib9)(a)?(0,v.jsx)(Ct,{baseFontSize:.8*ot,event:Z,product:j,borderRadius:"md",onShopNowClick:t=>{lt(Z,j)}}):(0,v.jsx)(v.Fragment,{children:"form"===(0,c._5p)(a)?(0,v.jsx)(jt.default,{baseFontSize:.8*ot,event:Z,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,v.jsx)(nt,{baseFontSize:.8*ot,event:Z,product:j,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?(k($),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:Z,productList:[j],ctaList:Z.cta})):"awaitingVariantSelection"==b.state&&_(E,$)},onCartIconClick:()=>{F()}})})})]})]})})})};var St=function(t){var e,i;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[a]=(0,u.j1)("whatmoreSecondaryColor"),d=(0,u.MO)("whatmoreSecondaryColorShade900"),[x]=(0,u.j1)("whatmorePrimaryFont"),[m]=(0,u.j1)("whatmoreShopId"),[f,w,j,y]=(0,h.Z)(),[C,b]=(0,n.useState)(!1),[S,I]=(0,n.useState)(t.product),k=(0,u.MO)("whatmoreUITheme"),[_,T]=(0,n.useState)(!1),[F,E]=(0,n.useState)(parseFloat(S.price)),[O,P]=(0,n.useState)(parseFloat(S.compare_price)),[z,L]=(0,n.useState)(S.currency),M=t.event,[D,R]=(0,n.useState)();(0,n.useEffect)((()=>{(0,c.N8M)(m)&&(0,vt.Rb)(S,(0,c.Ipo)(m),m).then((t=>{I(t),E(parseFloat(t.price)),P(parseFloat(t.compare_price)),L(t.currency),T(!0)}));(async()=>{const t=await(0,p.p)(S,(0,c.Ipo)(m),m);R(t),T(!0)})()}),[]);var Z=.68*y,Y=.4*Z,X=Z+"px",G=Y+"px",$=Z*(.55-.4)+"px",Q=.12*Y;(0,c.ITD)(m);const{whatmoreWidgetSourceDetails:J}=(0,n.useContext)(V.I);function tt(t){return(0,c.lj5)(m)?t.product_link+"?"+(0,c.awP)(m)+"&"+(0,c.n9s)(m)+"&"+(0,c.vaK)(m):t.product_link}function et(t,e){o||r||(async()=>{(0,l.wz)(t,e),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:J,event:t,productList:[e],ctaList:t.cta})})(),b(!0)}return(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:(0,c.pq5)(m),width:X,height:"fit-content",boxShadow:"round"==k?"dark-lg":null,onClick:()=>{et(M,S),window.location.href=tt(S)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(m)),animation:C?A.mT:null,borderRadius:"round"==k?"xl":null,overflow:"hidden",onAnimationEnd:()=>{b(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(m),borderColor:(0,c.qPe)(m)},children:[(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,v.jsx)(s.xu,{height:G,width:G,children:(0,v.jsx)(g.Ee,{width:G,height:G,src:(0,pt.s)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(m)+" !important"}})}),(0,v.jsxs)(s.xu,{height:G,width:Z-Y+"px",children:[(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(m)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,v.jsx)(s.xv,{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:x+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*Q+"px !important"},children:(0,U.s)(null==S.title?"":S.title.toString())}),(0,c.QaY)(m)?(0,v.jsxs)(s.Kq,{className:"whatmore-product-shopnow-price",direction:(0,c.$zZ)(m)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==k?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,v.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*Q+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.Uyp)(m)+" !important",margin:"0px !important"},children:[" "+(0,vt.jx)(null!==(e=null===D||void 0===D?void 0:D.price)&&void 0!==e?e:F,"",m,z)," \xa0"]}),(0,B.B)(F,O)&&_?(0,v.jsxs)(s.xv,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*Q+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:x+" !important",color:(0,c.kPs)(m)+" !important",margin:"0px !important"},children:[" ",(0,vt.jx)(null!==(i=null===D||void 0===D?void 0:D.compare_at_price)&&void 0!==i?i:O,"",m,z)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),""!=(0,c.sG7)(m)&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*Q+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.V3Y)(m)+" !important",color:(0,c.aUT)(m)+" !important",margin:"0px !important"},children:["\xa0",(0,c.sG7)(m)," \xa0"]})]}),(0,c.Fr)(m)?(0,v.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,v.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==k?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,v.jsx)(H.Z,{sx:{color:a,fontSize:1.3*Q+"px"}})}),(0,v.jsx)(s.xu,{width:"2px"})]})}):(0,v.jsx)(v.Fragment,{})]})]}),(0,c.pp3)(m)&&(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:$,justifyContent:"center",alignItems:"center",children:(0,v.jsx)(Ct,{baseFontSize:.8*Q,event:M,product:S,borderRadius:"md",onShopNowClick:t=>{et(M,S),window.location.href=tt(S)}})})]})};function It(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[r]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,n.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=t.onClick,p=t.width,x=t.height,m=t.title,g=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,v.jsx)(kt,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:p,height:x}):(0,v.jsxs)(s.xu,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?A.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,v.jsx)(s.Kq,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,v.jsxs)(s.xv,{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,v.jsxs)(s.Kq,{direction:"row",backgroundColor:g?(0,K.lA)(i,8):i,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,v.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,c.KCy)(r)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,v.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,v.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,v.jsx)(v.Fragment,{})]})]})}function kt(t){const[e]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[r,l]=(0,n.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,v.jsx)(s.Kq,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,v.jsx)(s.xu,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?A.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,v.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.xv,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${i} !important`,color:`${(0,c.KCy)(o)} !important`},children:(0,c.tan)(o)})})})})})}function _t(t){var e;const[i]=(0,u.j1)("whatmorePrimaryFont"),n=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,v.jsx)(s.xu,{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,v.jsx)(s.Kq,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,v.jsxs)(s.xv,{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 Tt(t){var e;const[i]=(0,u.j1)("whatmoreSecondaryColor"),[n]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("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,v.jsx)(s.xu,{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,v.jsxs)(s.Kq,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,v.jsx)(s.M5,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,v.jsx)(X.Z,{sx:{color:i,fontSize:1.6*r}}):(0,v.jsx)($.zx,{size:"sm",_hover:{bg:i},sx:{bg:i},children:(0,v.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,v.jsx)(s.xv,{color:i,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important"},children:a}),(0,v.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,v.jsx)(Y.Z,{sx:{color:i,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,i,n,o;const[r]=(0,u.j1)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(i=t.showAddedToCart)||void 0===i||i,c=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const g=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{},children:(0,v.jsx)(_t,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,v.jsx)(kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,v.jsx)(P.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,children:(0,v.jsx)(Tt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:x})}):(0,v.jsx)(kt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,v.jsx)(It,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var Et=function(t){var e,i,o,r,a,d;const[x]=(0,u.j1)("isInDesignMode"),[m]=(0,u.j1)("isDemoBrand"),[f]=(0,u.j1)("whatmorePrimaryFont"),[w]=(0,u.j1)("whatmoreShopId"),[j,y,C,b]=(0,h.Z)(),[S,I]=(0,n.useState)(!1),[k,_]=(0,n.useState)(t.product),T=(0,u.MO)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:F}=(0,n.useContext)(V.I),[E,O,P,z,L,M,D]=ht(0,k,t.event),[R,Z]=(0,n.useState)(null),[H,Y]=(0,n.useState)(parseFloat(k.price)),[X,G]=(0,n.useState)(parseFloat(k.compare_price)),[$,Q]=(0,n.useState)(k.currency),[J,tt]=(0,n.useState)(null),et=t.event,it=t.productClickHandler,[nt,ot]=(0,n.useState)(null),[rt,lt]=(0,n.useState)(!1),at=F.landingLocationType,dt=F.templateType,st=(0,mt.NY)(at)+(0,mt.dS)(dt)+"_"+(null===et||void 0===et?void 0:et.event_id);(0,n.useEffect)((()=>{(0,c.N8M)(w)&&(0,vt.Rb)(k,(0,c.Ipo)(w),w).then((t=>{_(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),Q(t.currency),lt(!0)}));(async()=>{const t=await(0,p.p)(k,(0,c.Ipo)(w),w);tt(t),Y(null===t||void 0===t?void 0:t.price),G(null===t||void 0===t?void 0:t.compare_at_price),lt(!0)})()}),[]),(0,n.useEffect)((()=>{var t,e;const i=null!=J?null===J||void 0===J||null===(t=J.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===J||void 0===J||null===(e=J.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===J||void 0===J||null===(r=J.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ot({position:i,finalArr:n,finalArrExternal:o})}),[J]);var ct=.72*b,ut=.37*ct,xt=ct*(.48-.37),gt=.95*ct+"px",ft=ut+"px",wt=.12*ut;function jt(){window.location.href=function(t){return(0,c.lj5)(w)?t.product_link+"?"+(0,c.awP)(w)+"&"+(0,c.n9s)(w)+"&"+(0,c.vaK)(w):t.product_link}(k)}return(0,v.jsx)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:W,marginBottom:"24px",width:gt,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){x||m||(async()=>{(0,l.wz)(t,e)})(),"72550089015"==w?jt():it(e),I(!0)}(et,k)},backgroundColor:(0,K.lA)("#ffffff",(0,c.U5_)(w)),animation:S?A.mT:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{I(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(w),borderColor:(0,c.qPe)(w)},children:(0,v.jsxs)(s.Kq,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,v.jsx)(s.xu,{height:ft,width:ft,children:(0,v.jsx)(g.Ee,{width:"100%",height:"100%",src:(0,pt.s)(null!==(e=null!==(i=null===nt||void 0===nt||null===(o=nt.finalArr)||void 0===o||null===(r=o.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===nt||void 0===nt?void 0:nt.position]))))||void 0===r?void 0:r.src)&&void 0!==i?i:null===nt||void 0===nt||null===(a=nt.finalArrExternal)||void 0===a||null===(d=a.find((t=>(null===t||void 0===t?void 0:t.color)==(null===R||void 0===R?void 0:R[null===nt||void 0===nt?void 0:nt.position]))))||void 0===d?void 0:d.src)&&void 0!==e?e:k.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(w)+" !important"}})}),(0,v.jsx)(s.xu,{height:ft,width:ct-ut+"px",children:(0,v.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",wt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,U.s)(null==k.title?"":k.title.toString())}),(0,c.QaY)(w)?(0,v.jsxs)(s.Kq,{direction:(0,c.$zZ)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*wt+"px"},children:[rt&&(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*wt*(0,c.Rqt)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:f+" !important",color:(0,c.Uyp)(w)+" !important",fontWeight:"bold"},children:[" "+(0,vt.jx)(null!==H&&void 0!==H?H:null===k||void 0===k?void 0:k.price,"",w,$)," \xa0"]}),(0,B.B)(H,X)&&rt?(0,v.jsxs)(s.xv,{noOfLines:1,fontSize:.9*wt*(0,c.Rqt)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:f+" !important",color:(0,c.kPs)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,vt.jx)(null!==X&&void 0!==X?X:null===k||void 0===k?void 0:k.compare_price,"",w,$)]}):(0,v.jsx)(v.Fragment,{})]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(Ft,{baseFontSize:.3*xt,event:et,product:k,cartState:E.state,cartCount:E.cart_count,updateCartState:O,onClickAtc:t=>{"init"===E.state?(z(st,!0),(0,q.GF)({userInteractionType:N.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:F,event:et,productList:[k],ctaList:et.cta})):"awaitingVariantSelection"===E.state&&it(k)},onCartIconClick:t=>{D()}})]})})]})})};var Ot=function(t){const[e]=(0,u.j1)("whatmoreShopId"),[i]=(0,u.j1)("isWhatmoreWebsite"),n=(0,c.eyg)(e),o=t.event,r=t.product;return i?(0,v.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile"==n?(0,v.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,v.jsx)(St,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==n?(0,v.jsx)(Et,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,v.jsx)(Z,{product:t.product,event:t.event}):"narrow-tile"==n?(0,v.jsx)(bt,{event:o,product:r,productClickHandler:t.productClickHandler,tileWidthFactor:o.products.length>1?.68:void 0}):(0,v.jsx)(v.Fragment,{})},Pt=i(6119),zt=i(3388),Lt=i(7643);var Mt=function(t){const[e,i,n,l]=(0,h.Z)(),[a]=(0,u.j1)("whatmoreShopId"),d=(0,u.MO)("isInDesignMode"),p=(0,u.MO)("isDemoBrand"),x=t.event,m=t.productClickHandler,g=(0,c.eyg)(a);if(!(0,zt.kT)(x))return(0,v.jsx)(v.Fragment,{});if(1==x.products.length&&(void 0==x.cta||0==x.cta.length)){const t=x.products[0];return(0,c.rnv)(a)?(0,v.jsx)(s.Kq,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(bt,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})}):(0,v.jsx)(s.Kq,{direction:"horizontal",width:l,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,v.jsx)(s.M5,{children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(Ot,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})})}return(0,v.jsx)(s.M5,{children:(0,v.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,v.jsx)(s.xu,{width:l+"px",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,v.jsxs)(o.tq,{className:"product-tile swiper-slide",slidesPerView:1==x.products.length?1:1.4,initialSlide:x.products.length<=2||(0,c.VqZ)(a)?0:1,centeredSlides:!(0,c.VqZ)(a),modules:[r.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===a?[x.products[0]]:x.products).map((t=>"oos"!=t.product_status&&(0,v.jsx)(o.o5,{children:(0,v.jsx)(Lt.u,{userInteractionType:N.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,v.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,v.jsx)(Ot,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})},x.event_id+t.product_id))),(0,c.pp3)(a)&&void 0!=x.cta&&x.cta.map((t=>(0,v.jsx)(v.Fragment,{children:""!==t.cta_title.trim()&&(0,v.jsx)(o.o5,{children:(0,v.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,v.jsx)(Pt.Z,{cta:t},x.event_id+t.cta_id)})},x.event_id+t.cta_id)})))]})})})})};var Dt=function(t){const[e,i]=(0,u.j1)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler;return(0,n.useContext)(ji).isIOS&&e?(0,v.jsx)(Mt,{event:o,productClickHandler:r},o.event_id):(0,v.jsx)(P.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,v.jsx)(Mt,{event:o,productClickHandler:r},o.event_id)})};function Rt(t){const e=t.event,[i,n,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont");return(0,v.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,v.jsx)(s.M5,{children:(0,v.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,v.jsx)(g.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,v.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,v.jsx)(s.xv,{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,v.jsx)(E.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var At=function(t){const[e]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o,r]=(0,u.j1)("isProductSwiperCatalogOpen"),[l,a]=(0,j.Z)(),[d,h]=(0,u.j1)("isFirstIndicatorRenderDone"),p=(0,n.useContext)(ji),[x]=(0,u.j1)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,C=t.productClickHandler;return(0,v.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,v.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,v.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,v.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,v.jsx)(Rt,{event:m}),(0,v.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,v.jsx)(y,{focusRef:w}),(0,v.jsx)(O.Z,{event:m,onCloseCallback:f})]})]})}),(0,v.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,v.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,v.jsx)(s.xu,{width:"full",margin:"2px",children:(0,v.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,v.jsx)(D,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,v.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(x)?(0,v.jsx)(s.xu,{w:"100%",children:(0,v.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,v.jsx)(F,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,v.jsx)(Dt,{event:m,productClickHandler:C})})]}):(0,v.jsx)("div",{})]})]})})},Kt=i(8302);function Wt(t){const[e,i,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p]=(0,n.useState)(""),x=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*r*.8*.13;(0,n.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===x||void 0===x?void 0:x.id}&title=${null===x||void 0===x?void 0:x.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,i,n,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.layout)||void 0===n||null===(o=n.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${b.F4`
69
69
  0% {
70
70
  transform: translateY(100%);
71
71
  }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[876,950,842],{1332:function(e,t,n){var r=n(7313),i=(n(8743),n(7753)),o=n(5254),a=n(6417);t.Z=function(e){return(0,r.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,n,r){const i=`rgba(${e},${t},${n},${r})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},4658:function(e,t,n){n.r(t),n.d(t,{default:function(){return R}});var r=n(7313),i=n(6090),o=n(7616),a=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),s=n(2575),l=n(7129),d=n(364),m=(n(3439),n(7753)),c=n(7931),u=n(9018),h=n(9854),p=n(3933),v=n(8866),f=n(868),g=n(342),x=n(3437),$=n(3455),y=n(6417);var b=function(e){var t;const n=e.isMuted,r=null!==(t=e.iconSize)&&void 0!==t?t:30;function i(){e.onToggle()}return(0,y.jsx)("div",{style:{cursor:"pointer"},children:n?(0,y.jsx)($.Z,{sx:{color:"white",fontSize:r,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{i()}}):(0,y.jsx)(x.Z,{sx:{color:"white",fontSize:r,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{i()}})})},w=(n(1896),n(8984)),j=n(58),_=n(6119),C=n(32),I=n(4522),S=n(778),P=n(3433),M=n(4892);function k(e){const[t,n]=(0,r.useState)(e.initialMuteState),i=e.events,o=e.activeEventIndex,a=e.setActiveEventIndex,s=(0,m.MO)("whatmoreShopId"),l="portrait"===e.mode;function d(){(0,h.hr)(s)&&e.isCTAPresent||(n(!t),(0,w.KE)()&&(0,j.QV)(),e.onMuteToggle())}const p=e.event;return(0,y.jsx)("div",{style:{position:(0,h.SJ)(s)?"absolute":"relative",top:(0,h.SJ)(s)?0:"",zIndex:1,bottom:(0,h.SJ)(s)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,y.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[!(e.isCTAPresent&&(0,h.hr)(s)||"video"!==p.event_type)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()}),(0,y.jsx)(b,{isMuted:t,onToggle:()=>{d()}})]}),i.length>1&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{classname:"banner-navigation-overlay",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),a(0===o?i.length-1:o-1)},children:(0,y.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,y.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,y.jsx)(c.Z,{})})})}),(0,y.jsx)("div",{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),a(o===i.length-1?0:o+1)},children:(0,y.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,y.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,y.jsx)(u.Z,{})})})}),(0,h.cRS)(s)&&(0,y.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:i.map(((e,t)=>{const n=t===o;return(0,y.jsx)("button",{onClick:e=>{e.stopPropagation(),a(t)},style:{width:n?"25px":l?"12px":"14px",height:l?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,h.YFz)(s):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},t)}))})]})]}),(0,y.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()})]})})}var z=function(e){var t,n,i;const[o,a,s]=(0,v.Z)(),[l,c]=(0,r.useState)(!0),u=(0,m.MO)("whatmoreVideoTileSize"),{ref:x,inView:$,entry:b}=(0,p.YD)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:w}=(0,r.useContext)(d.I),j=(0,m.MO)("whatmoreShopId"),z=e.events,Z=e.activeEventIndex,R=e.setActiveEventIndex,F=z[Z],E=(0,g.uv)(F),N=(0,g.WN)(F);if("portrait"===o&&!E)return(0,y.jsx)(y.Fragment,{});if("landscape"===o&&!N)return(0,y.jsx)(y.Fragment,{});const L=(0,f.V)("portrait"===o?E:N),T=u/100*(0,h.b4p)(j),W=u/100*(0,h.GmU)(j),O="portrait"===o?(0,h.oOc)(j):(0,h.snl)(j),A="portrait"===o?s*T:s*W,V=A*O,D=null!=(null===(t=F.cta)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.cta_link);return(0,r.useEffect)((()=>{C.IR.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=e.querySelector(".whatmore-base");n&&(n.style.minHeight="0px")}))}),[]),(0,y.jsxs)("div",{ref:x,onClick:()=>{var e,t;(0,I.GF)({userInteractionType:S.K.BANNER_WIDGET_CLICKED,widgetSourceDetails:w,event:z[Z]}),(0,h.hr)(j)&&D&&!(0,h.j1_)(j)&&window.open(null===(e=F.cta)||void 0===e||null===(t=e[1])||void 0===t?void 0:t.cta_link,"_self")},style:{position:"relative",margin:"0 auto",width:(0,h.SJ)(j)?"100%":A,minHeight:(0,h.SJ)(j)?s*O:"",height:(0,h.SJ)(j)?"auto":V,borderWidth:(0,h.alU)(j),borderColor:(0,h.qPe)(j),overflow:"hidden",cursor:"pointer"},children:[(0,y.jsx)(M.Z,{height:"100%",width:"100%",url:L,isPlaying:$,event:F,isVideoMuted:l,setDuration:e.setDuration,source:P.j.BANNER}),(0,y.jsx)(k,{isCTAPresent:D,events:z,activeEventIndex:Z,setActiveEventIndex:R,event:F,mode:o,onMuteToggle:()=>c(!l),initialMuteState:l}),(0,h.j1_)(j)&&(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"portrait"===o?"12%":"20%"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsx)("div",{children:(0,y.jsx)(_.Z,{event:F,cta:null===F||void 0===F||null===(i=F.cta)||void 0===i?void 0:i[1],fontFactor:.6})})})]})};const Z=(0,s.Z)({key:"whatmore-css-bv"});var R=function(e){const{whatmoreRootId:t}=(0,r.useContext)(d.I),[n,s]=(0,r.useState)(0),m=e.events,[c,u]=(0,r.useState)(-1);let h;return(0,r.useEffect)((()=>{h&&clearInterval(h);const e="video"===m[n].event_type,t=e?1e3*c:6e3;return e?-1!=c&&(h=setInterval((()=>{s((e=>e===m.length-1?0:e+1))}),t)):h=setInterval((()=>{s((e=>e===m.length-1?0:e+1))}),t),()=>{clearInterval(h)}}),[c,n]),delete o.ZP.styles.global,(0,y.jsx)(a.C,{value:Z,children:(0,y.jsx)("div",{className:"whatmore-banner-events",children:(0,y.jsx)(i.x,{theme:o.ZP,cssVarsRoot:t,resetCSS:!1,children:(0,y.jsx)(l.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,y.jsx)(z,{activeEventIndex:n,events:m,setActiveEventIndex:s,setDuration:u})})})})})}},3867:function(e,t,n){var r=n(8816),i=n(417),o=n(4885),a=n(7753),s=n(6417);t.Z=function(e){var t;const n=(0,a.MO)("whatmoreUITheme"),[l]=(0,a.j1)("whatmoreSecondaryColor"),[d,m]=(0,a.j1)("productRatings"),c=(0,a.MO)("whatmorePrimaryFont"),u=e.productId,h=e.fontSize,p=null!==(t=e.fontColor)&&void 0!==t?t:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,s.jsx)(s.Fragment,{});const v=d[u].avgRating,f=d[u].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((e,t)=>(0,s.jsx)(r.Z,{sx:{color:l,fontSize:h+"px"}},"star-icon"+t))),v-Math.floor(v)>.2?(0,s.jsx)(i.Z,{sx:{color:l,fontSize:h+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(o.Z,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((e,t)=>(0,s.jsx)(o.Z,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon-"+t))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",p,"important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(e,t,n){var r=n(1332),i=n(5180),o=n(6417);t.Z=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,o.jsx)(i.Z,{height:a,width:s}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(r.Z,{})})})]})}},5180:function(e,t,n){var r=n(6417);t.Z=function(e){var t,n,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(n=e.width)&&void 0!==n?n:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,r.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,r.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,n){var r=n(7313),i=n(3175),o=n(6417);t.Z=function(e){var t,n,a;const[s,l]=(0,r.useState)(!1),d=r.useRef(0),m=(0,r.useRef)(null),c=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},u=null!==(n=e.height)&&void 0!==n?n:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,r.useEffect)((()=>{d.current=0;const e=setInterval((()=>{d.current=d.current+.03,m.current&&c(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:m,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{l(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:u})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(7313),i=n(3933),o=n(868),a=n(8984),s=n(7300),l=n(2887),d=n(4862),m=n(7753),c=n(342),u=(n(9854),n(6417));var h=function(e){var t,n,o;const s=(0,r.useRef)(null),[l,h,p]=(0,i.YD)({triggerOnce:!0}),v=(0,m.MO)("whatmoreShopId"),f=null!==(t=e.height)&&void 0!==t?t:"100%",g=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.useEffect)((()=>{s.current&&(e.isPlaying?s.current.play():((d.G6||(0,a.gE)())&&s.current.play(),"57939755089"==v?setTimeout((()=>{s.current.pause()}),300):s.current.pause()))}),[e.isPlaying,h]),(0,u.jsx)("div",{ref:l,style:{width:f,height:g,overflow:"hidden",display:"flex",alignItems:"center"},children:h||"51394281658"==v||"8968077397"==v?(0,u.jsxs)("video",{ref:s,className:"whatmore-video-player-muted",width:g,height:f,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==v&&"STRY2V4XO5L"!==v?e.url:e.poster,muted:null===(o=e.isVideoMuted)||void 0===o||o,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,u.jsx)("source",{src:e.url,type:"video/mp4"}),(0,u.jsx)("source",{src:(0,c.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:g,height:f,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,n,d,p,v;const[f,g,x]=(0,i.YD)({triggerOnce:!0}),$=(0,m.MO)("whatmoreShopId");if((0,s.WJ)(e.event))return(0,u.jsx)(l.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const y=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;var b;if((0,a.KE)())return(0,u.jsx)(h,{isVideoMuted:e.isVideoMuted,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:null===e||void 0===e||null===(b=e.event)||void 0===b?void 0:b.poster_image,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:y});const w=(0,r.useRef)(null),j=null!==(n=e.height)&&void 0!==n?n:"100%",_=null!==(d=e.width)&&void 0!==d?d:"100%";return(0,r.useEffect)((()=>{w.current&&(e.isPlaying?w.current.play():w.current.pause())}),[e.isPlaying,g]),(0,u.jsx)("div",{ref:f,style:{width:j,height:_,overflow:"hidden",display:"flex",alignItems:"center"},children:g||"51394281658"==$||"8968077397"==$?(0,u.jsxs)("video",{ref:w,className:"whatmore-video-player-muted",width:_,height:j,preload:"metadata",loop:!0,playsInline:!0,muted:null===(p=e.isVideoMuted)||void 0===p||p,poster:"57939755089"==$?"":null===e||void 0===e||null===(v=e.event)||void 0===v?void 0:v.poster_image,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,u.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,u.jsx)("source",{src:(0,c.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:_,height:j,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,n){n.d(t,{V:function(){return s}});var r=n(9854),i=n(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,r.zpr)(t))return e;if("AZURECDN"==(0,r.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,r.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},342:function(e,t,n){n.d(t,{$W:function(){return s},WN:function(){return a},uv:function(){return o},vW:function(){return l}});var r=n(9854);const i=(0,n(7753).MO)("whatmoreShopId"),o=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null:e.event_hls_url},a=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},l=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},9363:function(e,t,n){n.d(t,{$:function(){return a},s:function(){return o}});var r=n(9854),i=n(7753);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,r.Ipo)(n)?"STRNV8MHJTF"==n?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},5456:function(e,t,n){n.d(t,{B:function(){return r}});const r=function(e,t){return!(isNaN(t)||!t||("string"===typeof t||t instanceof String)&&!t.trim().length)&&!(parseInt(t)<=parseInt(e))}},1195:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=a},7931:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");t.Z=a},9018:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");t.Z=a},9723:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");t.Z=a},8816:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");t.Z=a},417:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");t.Z=a},4885:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");t.Z=a},8743:function(){},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[950,842],{1332:function(e,t,r){var n=r(7313),i=(r(8743),r(7753)),o=r(5254),a=r(6417);t.Z=function(e){return(0,n.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,r,n){const i=`rgba(${e},${t},${r},${n})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},3867:function(e,t,r){var n=r(8816),i=r(417),o=r(4885),a=r(7753),s=r(6417);t.Z=function(e){var t;const r=(0,a.MO)("whatmoreUITheme"),[m]=(0,a.j1)("whatmoreSecondaryColor"),[l,d]=(0,a.j1)("productRatings"),u=(0,a.MO)("whatmorePrimaryFont"),c=e.productId,h=e.fontSize,p=null!==(t=e.fontColor)&&void 0!==t?t:"gray";if(null===l||"undefined"==typeof l||!(c in l)||l[c].avgRating>5)return(0,s.jsx)(s.Fragment,{});const $=l[c].avgRating,f=l[c].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor($))].map(((e,t)=>(0,s.jsx)(n.Z,{sx:{color:m,fontSize:h+"px"}},"star-icon"+t))),$-Math.floor($)>.2?(0,s.jsx)(i.Z,{sx:{color:m,fontSize:h+"px"}},"star-half-icon"):$-Math.floor($)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(o.Z,{sx:{color:m,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-$))].map(((e,t)=>(0,s.jsx)(o.Z,{sx:{color:m,fontSize:h+"px"}},"star-outline-icon-"+t))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:m,borderRadius:"round"==r?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",$,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",p,"important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},3175:function(e,t,r){var n=r(1332),i=r(5180),o=r(6417);t.Z=function(e){var t,r;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,o.jsx)(i.Z,{height:a,width:s}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(n.Z,{})})})]})}},5180:function(e,t,r){var n=r(6417);t.Z=function(e){var t,r,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(r=e.width)&&void 0!==r?r:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,n.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,n.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,r){var n=r(7313),i=r(3175),o=r(6417);t.Z=function(e){var t,r,a;const[s,m]=(0,n.useState)(!1),l=n.useRef(0),d=(0,n.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(r=e.height)&&void 0!==r?r:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,n.useEffect)((()=>{l.current=0;const e=setInterval((()=>{l.current=l.current+.03,d.current&&u(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:d,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{m(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:c})]})}},4892:function(e,t,r){r.d(t,{Z:function(){return p}});var n=r(7313),i=r(3933),o=r(868),a=r(8984),s=r(7300),m=r(2887),l=r(4862),d=r(7753),u=r(342),c=(r(9854),r(6417));var h=function(e){var t,r;const o=(0,n.useRef)(null),[s,m,h]=(0,i.YD)({triggerOnce:!0}),p=(0,d.MO)("whatmoreShopId"),$=null!==(t=e.height)&&void 0!==t?t:"100%",f=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,n.useEffect)((()=>{o.current&&(e.isPlaying?o.current.play():((l.G6||(0,a.gE)())&&o.current.play(),"57939755089"==p?setTimeout((()=>{o.current.pause()}),300):o.current.pause()))}),[e.isPlaying,m]),(0,c.jsx)("div",{ref:s,style:{width:$,height:f,overflow:"hidden",display:"flex",alignItems:"center"},children:m||"51394281658"==p||"8968077397"==p?(0,c.jsxs)("video",{ref:o,className:"whatmore-video-player-muted",width:f,height:$,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==p&&"STRY2V4XO5L"!==p?e.url:e.poster,muted:!0,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,c.jsx)("source",{src:e.url,type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:f,height:$,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,r,l,p;const[$,f,v]=(0,i.YD)({triggerOnce:!0}),g=(0,d.MO)("whatmoreShopId");if((0,s.WJ)(e.event))return(0,c.jsx)(m.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const y=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;var b;if((0,a.KE)())return(0,c.jsx)(h,{borderRadius:e.borderRadius,height:"100%",width:"100%",poster:null===e||void 0===e||null===(b=e.event)||void 0===b?void 0:b.poster_image,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:y});const w=(0,n.useRef)(null),x=null!==(r=e.height)&&void 0!==r?r:"100%",j=null!==(l=e.width)&&void 0!==l?l:"100%";return(0,n.useEffect)((()=>{w.current&&(e.isPlaying?w.current.play():w.current.pause())}),[e.isPlaying,f]),(0,c.jsx)("div",{ref:$,style:{width:x,height:j,overflow:"hidden",display:"flex",alignItems:"center"},children:f||"51394281658"==g||"8968077397"==g?(0,c.jsxs)("video",{ref:w,className:"whatmore-video-player-muted",width:j,height:x,preload:"metadata",loop:!0,playsInline:!0,muted:!0,poster:"57939755089"==g?"":null===e||void 0===e||null===(p=e.event)||void 0===p?void 0:p.poster_image,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,c.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:j,height:x,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,r){r.d(t,{V:function(){return s}});var n=r(9854),i=r(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,n.zpr)(t))return e;if("AZURECDN"==(0,n.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,n.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},342:function(e,t,r){r.d(t,{$W:function(){return s},WN:function(){return a},uv:function(){return o},vW:function(){return m}});var n=r(9854);const i=(0,r(7753).MO)("whatmoreShopId"),o=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null:e.event_hls_url},a=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},m=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},9363:function(e,t,r){r.d(t,{$:function(){return a},s:function(){return o}});var n=r(9854),i=r(7753);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,n.Ipo)(r)?"STRNV8MHJTF"==r?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(r)?"image":null!==i&&void 0!==i&&i.test(r)?"video":void 0}},5456:function(e,t,r){r.d(t,{B:function(){return n}});const n=function(e,t){return!(isNaN(t)||!t||("string"===typeof t||t instanceof String)&&!t.trim().length)&&!(parseInt(t)<=parseInt(e))}},1195:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=a},9723:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");t.Z=a},8816:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");t.Z=a},417:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");t.Z=a},4885:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");t.Z=a},8743:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[950,842],{1332:function(e,t,r){var n=r(7313),i=(r(8743),r(7753)),o=r(5254),a=r(6417);t.Z=function(e){return(0,n.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,r,n){const i=`rgba(${e},${t},${r},${n})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},3867:function(e,t,r){var n=r(8816),i=r(417),o=r(4885),a=r(7753),s=r(6417);t.Z=function(e){var t;const r=(0,a.MO)("whatmoreUITheme"),[m]=(0,a.j1)("whatmoreSecondaryColor"),[l,d]=(0,a.j1)("productRatings"),u=(0,a.MO)("whatmorePrimaryFont"),c=e.productId,h=e.fontSize,p=null!==(t=e.fontColor)&&void 0!==t?t:"gray";if(null===l||"undefined"==typeof l||!(c in l)||l[c].avgRating>5)return(0,s.jsx)(s.Fragment,{});const $=l[c].avgRating,f=l[c].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor($))].map(((e,t)=>(0,s.jsx)(n.Z,{sx:{color:m,fontSize:h+"px"}},"star-icon"+t))),$-Math.floor($)>.2?(0,s.jsx)(i.Z,{sx:{color:m,fontSize:h+"px"}},"star-half-icon"):$-Math.floor($)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(o.Z,{sx:{color:m,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-$))].map(((e,t)=>(0,s.jsx)(o.Z,{sx:{color:m,fontSize:h+"px"}},"star-outline-icon-"+t))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:m,borderRadius:"round"==r?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",$,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",p,"important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},3175:function(e,t,r){var n=r(1332),i=r(5180),o=r(6417);t.Z=function(e){var t,r;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,o.jsx)(i.Z,{height:a,width:s}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(n.Z,{})})})]})}},5180:function(e,t,r){var n=r(6417);t.Z=function(e){var t,r,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(r=e.width)&&void 0!==r?r:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,n.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,n.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,r){var n=r(7313),i=r(3175),o=r(6417);t.Z=function(e){var t,r,a;const[s,m]=(0,n.useState)(!1),l=n.useRef(0),d=(0,n.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(r=e.height)&&void 0!==r?r:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,n.useEffect)((()=>{l.current=0;const e=setInterval((()=>{l.current=l.current+.03,d.current&&u(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:d,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{m(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:c})]})}},4892:function(e,t,r){r.d(t,{Z:function(){return p}});var n=r(7313),i=r(3933),o=r(868),a=r(8984),s=r(7300),m=r(2887),l=r(4862),d=r(7753),u=r(342),c=(r(9854),r(6417));var h=function(e){var t,r,o;const s=(0,n.useRef)(null),[m,h,p]=(0,i.YD)({triggerOnce:!0}),$=(0,d.MO)("whatmoreShopId"),f=null!==(t=e.height)&&void 0!==t?t:"100%",v=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,n.useEffect)((()=>{s.current&&(e.isPlaying?s.current.play():((l.G6||(0,a.gE)())&&s.current.play(),"57939755089"==$?setTimeout((()=>{s.current.pause()}),300):s.current.pause()))}),[e.isPlaying,h]),(0,c.jsx)("div",{ref:m,style:{width:f,height:v,overflow:"hidden",display:"flex",alignItems:"center"},children:h||"51394281658"==$||"8968077397"==$?(0,c.jsxs)("video",{ref:s,className:"whatmore-video-player-muted",width:v,height:f,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==$&&"STRY2V4XO5L"!==$?e.url:e.poster,muted:null===(o=e.isVideoMuted)||void 0===o||o,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,c.jsx)("source",{src:e.url,type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:v,height:f,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,r,l,p,$;const[f,v,g]=(0,i.YD)({triggerOnce:!0}),y=(0,d.MO)("whatmoreShopId");if((0,s.WJ)(e.event))return(0,c.jsx)(m.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const b=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;var w;if((0,a.KE)())return(0,c.jsx)(h,{isVideoMuted:e.isVideoMuted,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:null===e||void 0===e||null===(w=e.event)||void 0===w?void 0:w.poster_image,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:b});const x=(0,n.useRef)(null),j=null!==(r=e.height)&&void 0!==r?r:"100%",_=null!==(l=e.width)&&void 0!==l?l:"100%";return(0,n.useEffect)((()=>{x.current&&(e.isPlaying?x.current.play():x.current.pause())}),[e.isPlaying,v]),(0,c.jsx)("div",{ref:f,style:{width:j,height:_,overflow:"hidden",display:"flex",alignItems:"center"},children:v||"51394281658"==y||"8968077397"==y?(0,c.jsxs)("video",{ref:x,className:"whatmore-video-player-muted",width:_,height:j,preload:"metadata",loop:!0,playsInline:!0,muted:null===(p=e.isVideoMuted)||void 0===p||p,poster:"57939755089"==y?"":null===e||void 0===e||null===($=e.event)||void 0===$?void 0:$.poster_image,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,c.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:_,height:j,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,r){r.d(t,{V:function(){return s}});var n=r(9854),i=r(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,n.zpr)(t))return e;if("AZURECDN"==(0,n.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,n.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},342:function(e,t,r){r.d(t,{$W:function(){return s},WN:function(){return a},uv:function(){return o},vW:function(){return m}});var n=r(9854);const i=(0,r(7753).MO)("whatmoreShopId"),o=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null:e.event_hls_url},a=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},m=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},9363:function(e,t,r){r.d(t,{$:function(){return a},s:function(){return o}});var n=r(9854),i=r(7753);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,n.Ipo)(r)?"STRNV8MHJTF"==r?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(r)?"image":null!==i&&void 0!==i&&i.test(r)?"video":void 0}},5456:function(e,t,r){r.d(t,{B:function(){return n}});const n=function(e,t){return!(isNaN(t)||!t||("string"===typeof t||t instanceof String)&&!t.trim().length)&&!(parseInt(t)<=parseInt(e))}},1195:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=a},9723:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");t.Z=a},8816:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");t.Z=a},417:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");t.Z=a},4885:function(e,t,r){var n=r(5318);t.Z=void 0;var i=n(r(5045)),o=r(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");t.Z=a},8743:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);