whatmore-react-assets 1.0.860 → 1.0.862
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{197.149dc74c.chunk.js → 197.c14695e4.chunk.js} +1 -1
- package/static/js/{218.e2831ae6.chunk.js → 218.25ddaa96.chunk.js} +1 -1
- package/static/js/364.7092cf2a.chunk.js +15 -0
- package/static/js/582.005a1158.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/364.9a7153e7.chunk.js +0 -15
- package/static/js/582.e89a61f5.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[197],{1492:function(e,t,o){o.r(t),o.d(t,{default:function(){return W}});var i=o(7313),n=o(6090),r=o(7616),s=o(8811),l=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),d=o(2210),p=o(8486),c=o(9821),h=o(8866),m=o(2279),x=o.n(m),y=o(7753),u=o(7129),f=o(1855),v=o(9854),g=o(4920),w=o(7376),j=o(778),P=o(7381),b=(o(3439),o(4892)),C=o(6805),I=o(9219),S=o(5945),O=o(6417);var F=function(e){var t,o,n,r,l,a,d,p,h,m,x,f;const[g,w,j,P,F]=(0,c.Z)();var k=(0,i.useContext)(u.V);const{whatmoreUITheme:M}=(0,i.useContext)(s.I),Z=(0,y.MO)("whatmoreShopId"),W=(0,y.MO)("whatmorePrimaryFont"),N=(0,y.MO)("whatmoreSecondaryColor"),z=e.event,R=e.onClick,_=null===(t=e.isOnFocus)||void 0===t||t,E=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,D=null!==(n=e.animateOnFocus&&(0,v.iWI)(Z))&&void 0!==n&&n,U=Math.round(+(null===(r=z.products[0])||void 0===r?void 0:r.price)),T=Math.round(+(null===(l=z.products[0])||void 0===l?void 0:l.compare_price)),V=T&&0!=T&&T>U?Math.round((T-U)/T*100):NaN,B="portrait"===F[C.YP],A=(B?1.076*w*(0,v.pEd)(Z):w*(0,v.H4g)(Z))+"px",L=(B?1.076*w*(0,v.pEd)(Z):w*(0,v.H4g)(Z))+"px",$=(B?.965*w*(0,v.pEd)(Z):.859*w*(0,v.H4g)(Z))+"px",H=(0,v.nzC)(Z),{whatmoreIsPreviewMode:Y}=(0,i.useContext)(s.I),q=.25*w,G=q+"px",X=1.1*q+"px";return(0,O.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",k.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",k.tileBottomMMargin+"px","important"))},children:[(0,O.jsx)("div",{style:{margin:"0 auto",width:w,height:B&&_?"STR2FOC6KG9"==Z?g:1.1*g:g,borderRadius:"round"==M?"5px":"0px",boxShadow:"round"==M?H:null,borderWidth:(0,v.alU)(Z),borderColor:(0,v.qPe)(Z),overflow:"hidden",cursor:"pointer"},className:D?_?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{R(z)},children:(0,O.jsx)(b.Z,{height:"100%",width:"100%",url:z.thumbnail_image,isPlaying:_||E,event:z})}),(0,O.jsxs)("div",{onClick:()=>{R(z)},style:{cursor:"pointer",display:"flex",gap:"6px",padding:"14px 8px"},children:[(Y?(0,v.uU$)(Z):(0,v.EIj)(Z))&&(0,O.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",X,"important")},style:{maxWidth:G,borderRadius:"round"==M?"5px":"0px",overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,O.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,v.yOX)(Z),"important")},src:null===(a=z.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.thumbnail_image})}),(0,O.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",A,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"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"))},children:(0,S.s)(null===(p=z.products[0])||void 0===p?void 0:p.title)}),(0,v.QaY)(Z)&&(0,O.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,v.$zZ)(Z)?"row":"row-reverse",justifyContent:(0,v.$zZ)(Z)?"flex-start":"flex-end"},children:[(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.Uyp)(Z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.rPP)(Z)?"normal":"bold"},children:(0,I.jx)(parseFloat(null===(h=z.products[0])||void 0===h?void 0:h.price)," ",Z,null===(m=z.products[0])||void 0===m?void 0:m.currency)}),!isNaN(T)&&T>U&&(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.kPs)(Z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,I.jx)(parseFloat(null===(x=z.products[0])||void 0===x?void 0:x.compare_price)," ",Z,null===(f=z.products[0])||void 0===f?void 0:f.currency)})]}),(0,v.QaY)(Z)&&!isNaN(V)&&0!=V&&(0,O.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,v.ZJm)(Z)?"#343434"==N?(0,v.ZJm)(Z):N:(0,v.ZJm)(Z),alignItems:"center",borderRadius:(0,v.CF_)(Z)+"px",width:"fit-content",padding:(0,v.Spx)(Z)?"3px 6px":"0px"},children:(0,v.Spx)(Z)?(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.mso)(Z),"important"),e.style.setProperty("font-size",$,"important"),e.style.setProperty("font-family",W,"important"))},children:`${V}% Off`}):(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.aUT)(Z),"important"),e.style.setProperty("font-size",$,"important"),e.style.setProperty("font-family",(0,v.V3Y)(Z),"important"))},children:(0,v.sG7)(Z)})})]})]})]})};const k=(0,a.Z)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,c.Z)(),r=(0,y.MO)("whatmoreShopId"),l=e.events,a=e.onClick,p=n*(0,v.u6l)(r),[h,m]=(0,i.useState)(p),{whatmoreWidgetSourceDetails:x}=(0,i.useContext)(s.I);return(0,i.useEffect)((()=>{h<=p&&m((e=>e+p))}),[p]),(0,O.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,O.jsx)(d.tq,{slidesPerView:l.length>1?p:1,initialSlide:l.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:x}),e.realIndex>e.previousIndex&&m((e=>e+p))},children:l.map(((e,t)=>t<=h&&(0,O.jsx)(d.o5,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:s}=t;return i||n||o?(0,v.$X$)(r)?(0,O.jsx)(F,{isOnFocus:o&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,O.jsx)(g.Z,{isOnFocus:o&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,O.jsx)(f.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function Z(e){const[t,o,n,r]=(0,c.Z)(),[l,a]=(0,i.useState)(-1),h=(0,y.MO)("whatmoreShopId"),[m,u]=(0,i.useState)(n),P=e.onClick,b=e.events,C=Math.min(n,b.length),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(s.I);return(0,i.useEffect)((()=>{m<=n&&u((e=>e+n))}),[n]),(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,O.jsx)("div",{style:{width:o*C*(0,v.Su5)(h)+"px"},children:(0,O.jsx)(d.tq,{slidesPerView:C,watchSlidesProgress:!0,modules:[p.W_],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:e=>{(0,w.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&u((e=>e+n))},spaceBetween:(0,v.WGf)(h),children:b.map(((e,t)=>{const o=x()((()=>a(t)),300);return t<=m&&(0,O.jsx)(d.o5,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),a(-1)},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s?(0,v.$X$)(h)?(0,O.jsx)(F,{isOnFocus:t==l,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{P(e)}}):(0,O.jsx)(g.Z,{isOnFocus:t==l,playOnUnfocus:!(0,v.dHy)(h)||t==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{P(e)}}):(0,O.jsx)(f.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var W=function(e){const[t,o,a]=(0,h.Z)(),[d]=(0,y.j1)("whatmoreShopId"),[p]=(0,y.j1)("whatmorePrimaryColor"),[c]=(0,y.j1)("whatmoreTitleFont"),m="portrait"==t?(0,y.MO)("whatmoreTitleFontSizePortrait"):(0,y.MO)("whatmoreTitleFontSize"),{whatmoreRootId:x}=(0,i.useContext)(s.I),f=((0,y.MO)("isInDesignMode"),(0,y.MO)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(s.I),w=e.events,j=e.onClick,b=c;function C(e){j(e)}return(0,i.useEffect)((()=>{(0,P.Oo)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{s.$.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,O.jsx)(l.C,{value:k,children:(0,O.jsx)("div",{children:(0,O.jsx)(n.x,{theme:r.ZP,cssVarsRoot:x,resetCSS:!1,children:(0,O.jsxs)(u.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||g?(0,O.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",b,"important"),e.style.setProperty("font-size",m+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.wOV)(d),lineHeight:(0,v.vY4)(d),letterSpacing:(0,v.X2K)(d)},children:g?"W"!==f?f:"":e.heading})}):(0,O.jsx)(O.Fragment,{}),"landscape"===t?(0,O.jsx)(Z,{events:w,onClick:C}):(0,O.jsx)(M,{events:w,onClick:C})]})})})})}},1855:function(e,t,o){var i=o(7313),n=o(9821),r=o(7129),s=o(6417);t.Z=function(e){var[t,o]=(0,n.Z)();return(0,i.useContext)(r.V),e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:o,height:t,overflow:"hidden"}})}},4920:function(e,t,o){o.d(t,{Z:function(){return P}});var i=o(7313),n=o(9821),r=(o(3439),o(9723)),s=o(7753),l=o(4892),a=o(7129),d=o(6805),p=o(9854),c=o(1092),h=o(5945),m=o(8811),x=o(9363),y=o(6417);var u=function(e){var t,o,r,l,[a,d]=(0,n.Z)();const{whatmoreUITheme:c}=(0,i.useContext)(m.I),[u]=(0,s.j1)("whatmorePrimaryFont"),[f,v]=(0,i.useState)(0),g=(0,s.MO)("whatmoreShopId"),w=e.event;if(0==w.products.length)return(0,y.jsx)(y.Fragment,{});const j=.3*d,P=j+"px",b=j+"px",C=.07*d,I=C+"px";return(0,y.jsx)("div",{style:{width:d+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,y.jsxs)("div",{ref:e=>{e&&e.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,y.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",b,"important")},style:{width:(0,p.uNj)(g)?P:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.alU)(g),borderColor:(0,p.qPe)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,y.jsx)("img",{ref:e=>{e&&(e.style.setProperty("object-fit",(0,p.yOX)(g),"important"),e.style.setProperty("max-width",P,"important"))},src:(0,x.s)(w.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,y.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,y.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",I,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"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:"normal"},children:[(0,h.s)(w.products[f].title),(0,y.jsx)("br",{})]})}),(null===(t=w.products[f])||void 0===t||null===(o=t.product_metadata)||void 0===o?void 0:o.product_type)&&(0,y.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,y.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",d-5-j+"px","important"),e.style.setProperty("font-size",.7*C+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-overflow","ellipsis","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"))},children:null===(r=w.products[f])||void 0===r||null===(l=r.product_metadata)||void 0===l?void 0:l.product_type})})]})]},f)})},f=o(3933),v=o(8984);function g(e){var t,[o,l]=(0,n.Z)();const[d]=(0,s.j1)("whatmoreShopId"),[c,h,m]=(0,f.YD)({triggerOnce:!0});var x=(0,i.useContext)(a.V);const g=e.event,w=null!==(t=e.unfocusedDisplay)&&void 0!==t&&t,j=.5*l,P=(0,v.gE)()?e.isOnFocus:h;return(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",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",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)("p",{children:" "})}),x.showPlayButton&&!w?(0,y.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==g.event_type&&(0,y.jsx)(r.Z,{sx:{color:(0,p.Ya_)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,y.jsx)(y.Fragment,{}),(0,y.jsx)("div",{ref:c,children:P&&(0,p.PWD)(d)?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(u,{event:g})}):(0,y.jsx)("div",{height:"20px"})})]})})}function w(e){var[t,o]=(0,n.Z)();const[i]=(0,s.j1)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,y.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,y.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,y.jsx)("p",{style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,y.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,y.jsx)(y.Fragment,{})}function j(e){const[t,o,i,r,l]=(0,n.Z)(),[a]=(0,s.j1)("whatmoreShowViews"),h=(0,s.MO)("whatmoreShopId"),m=e.event,x=e.isOnFocus;return(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",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.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===a&&"show"===(0,p.qcC)(h)?(0,y.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)(c.Z,{event:m,fontSize:.07*o+"px"})})}):(0,y.jsx)(y.Fragment,{})})}),d.$w===l[d.YP]?(0,y.jsx)(y.Fragment,{}):x?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,y.jsx)(w,{event:m})}):(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(w,{event:m})})]})})}var P=function(e){var t,o,r;const[c,h,x,u,f]=(0,n.Z)();var v=(0,i.useContext)(a.V);const{whatmoreUITheme:w}=(0,i.useContext)(m.I),P=(0,s.MO)("whatmoreShopId"),b=e.event,C=e.onClick,I=null===(t=e.isOnFocus)||void 0===t||t,S=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,O=null!==(r=e.animateOnFocus&&(0,p.iWI)(P))&&void 0!==r&&r,F=(0,p.nzC)(P);return(0,y.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",v.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",v.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:h,height:c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w?F:null,borderWidth:(0,p.alU)(P),borderColor:(0,p.qPe)(P),overflow:"hidden",cursor:"pointer"},className:O?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(b)},children:[(0,y.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:I||S,event:b}),(0,y.jsxs)("div",{style:{width:h,height:c},children:[(0,y.jsx)(j,{event:b,isOnFocus:I}),"87043703105"===P||"76467011883"===P||!I&&d.$w!==f[d.YP]?null:(0,y.jsx)(g,{event:b,unfocusedDisplay:!I,isOnFocus:I})]})]})}},9723:function(e,t,o){var i=o(5318);t.Z=void 0;var n=i(o(5045)),r=o(6417),s=(0,n.default)((0,r.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=s},3439:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[197],{1492:function(e,t,o){o.r(t),o.d(t,{default:function(){return W}});var i=o(7313),n=o(6090),r=o(7616),s=o(8811),l=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),d=o(2210),p=o(8486),c=o(9821),h=o(8866),m=o(2279),x=o.n(m),y=o(7753),u=o(7129),f=o(1855),v=o(9854),g=o(4920),w=o(7376),j=o(778),P=o(7381),b=(o(3439),o(4892)),C=o(6805),I=o(9219),S=o(5945),O=o(6417);var F=function(e){var t,o,n,r,l,a,d,p,h,m,x,f;const[g,w,j,P,F]=(0,c.Z)();var k=(0,i.useContext)(u.V);const{whatmoreUITheme:M}=(0,i.useContext)(s.I),Z=(0,y.MO)("whatmoreShopId"),W=(0,y.MO)("whatmorePrimaryFont"),N=(0,y.MO)("whatmoreSecondaryColor"),z=e.event,R=e.onClick,_=null===(t=e.isOnFocus)||void 0===t||t,E=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,D=null!==(n=e.animateOnFocus&&(0,v.iWI)(Z))&&void 0!==n&&n,U=Math.round(+(null===(r=z.products[0])||void 0===r?void 0:r.price)),T=Math.round(+(null===(l=z.products[0])||void 0===l?void 0:l.compare_price)),V=T&&0!=T&&T>U?Math.round((T-U)/T*100):NaN,B="portrait"===F[C.YP],A=(B?1.076*w*(0,v.pEd)(Z):w*(0,v.H4g)(Z))+"px",L=(B?1.076*w*(0,v.pEd)(Z):w*(0,v.H4g)(Z))+"px",$=(B?.965*w*(0,v.pEd)(Z):.859*w*(0,v.H4g)(Z))+"px",H=(0,v.nzC)(Z),{whatmoreIsPreviewMode:Y}=(0,i.useContext)(s.I),q=.25*w,G=q+"px",X=1.1*q+"px";return(0,O.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",k.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",k.tileBottomMMargin+"px","important"))},children:[(0,O.jsx)("div",{style:{margin:"0 auto",width:w,height:B&&_?"STR2FOC6KG9"==Z?g:1.1*g:g,borderRadius:"round"==M?"5px":"0px",boxShadow:"round"==M?H:null,borderWidth:(0,v.alU)(Z),borderColor:(0,v.qPe)(Z),overflow:"hidden",cursor:"pointer"},className:D?_?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{R(z)},children:(0,O.jsx)(b.Z,{height:"100%",width:"100%",url:z.thumbnail_image,isPlaying:_||E,event:z})}),(0,O.jsxs)("div",{onClick:()=>{R(z)},style:{cursor:"pointer",display:"flex",gap:"6px",padding:"14px 8px"},children:[(Y?(0,v.uU$)(Z):(0,v.EIj)(Z))&&(0,O.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",X,"important")},style:{maxWidth:G,borderRadius:"round"==M?"5px":"0px",overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,O.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,v.yOX)(Z),"important")},src:null===(a=z.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.thumbnail_image})}),(0,O.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",A,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"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"))},children:(0,S.s)(null===(p=z.products[0])||void 0===p?void 0:p.title)}),(0,v.QaY)(Z)&&(0,O.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,v.$zZ)(Z)?"row":"row-reverse",justifyContent:(0,v.$zZ)(Z)?"flex-start":"flex-end"},children:[(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.Uyp)(Z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.rPP)(Z)?"normal":"bold"},children:(0,I.jx)(parseFloat(null===(h=z.products[0])||void 0===h?void 0:h.price)," ",Z,null===(m=z.products[0])||void 0===m?void 0:m.currency)}),!isNaN(T)&&T>U&&(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.kPs)(Z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",W,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,I.jx)(parseFloat(null===(x=z.products[0])||void 0===x?void 0:x.compare_price)," ",Z,null===(f=z.products[0])||void 0===f?void 0:f.currency)})]}),(0,v.QaY)(Z)&&!isNaN(V)&&0!=V&&(0,O.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,v.ZJm)(Z)?"#343434"==N?(0,v.ZJm)(Z):N:(0,v.ZJm)(Z),alignItems:"center",borderRadius:(0,v.CF_)(Z)+"px",width:"fit-content",padding:(0,v.Spx)(Z)?"3px 6px":"0px"},children:(0,v.Spx)(Z)?(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.mso)(Z),"important"),e.style.setProperty("font-size",$,"important"),e.style.setProperty("font-family",W,"important"))},children:`${V}% Off`}):(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,v.aUT)(Z),"important"),e.style.setProperty("font-size",$,"important"),e.style.setProperty("font-family",(0,v.V3Y)(Z),"important"))},children:(0,v.sG7)(Z)})})]})]})]})};const k=(0,a.Z)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,c.Z)(),r=(0,y.MO)("whatmoreShopId"),l=e.events,a=e.onClick,p=n*(0,v.u6l)(r),[h,m]=(0,i.useState)(p),{whatmoreWidgetSourceDetails:x}=(0,i.useContext)(s.I);return(0,i.useEffect)((()=>{h<=p&&m((e=>e+p))}),[p]),(0,O.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,O.jsx)(d.tq,{slidesPerView:l.length>1?p:1,initialSlide:l.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:x}),e.realIndex>e.previousIndex&&m((e=>e+p))},children:l.map(((e,t)=>t<=h&&(0,O.jsx)(d.o5,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:s}=t;return i||n||o?(0,v.$X$)(r)?(0,O.jsx)(F,{isOnFocus:o&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,O.jsx)(g.Z,{isOnFocus:o&&s,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,O.jsx)(f.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function Z(e){const[t,o,n,r]=(0,c.Z)(),[l,a]=(0,i.useState)(-1),h=(0,y.MO)("whatmoreShopId"),[m,u]=(0,i.useState)(n),P=e.onClick,b=e.events,C=Math.min(n,b.length),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(s.I);return(0,i.useEffect)((()=>{m<=n&&u((e=>e+n))}),[n]),(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,O.jsx)("div",{style:{width:o*C*(0,v.Su5)(h)+"px"},children:(0,O.jsx)(d.tq,{slidesPerView:C,watchSlidesProgress:!0,modules:[p.W_],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:e=>{(0,w.y4)({userInteractionType:j.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&u((e=>e+n))},spaceBetween:(0,v.WGf)(h),children:b.map(((e,t)=>{const o=x()((()=>a(t)),300);return t<=m&&(0,O.jsx)(d.o5,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),a(-1)},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s?(0,v.$X$)(h)?(0,O.jsx)(F,{isOnFocus:t==l,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{P(e)}}):(0,O.jsx)(g.Z,{isOnFocus:t==l,playOnUnfocus:!(0,v.dHy)(h)||t==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{P(e)}}):(0,O.jsx)(f.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var W=function(e){const[t,o,a]=(0,h.Z)(),[d]=(0,y.j1)("whatmoreShopId"),[p]=(0,y.j1)("whatmorePrimaryColor"),[c]=(0,y.j1)("whatmoreTitleFont"),m="portrait"==t?(0,y.MO)("whatmoreTitleFontSizePortrait"):(0,y.MO)("whatmoreTitleFontSize"),{whatmoreRootId:x}=(0,i.useContext)(s.I),f=((0,y.MO)("isInDesignMode"),(0,y.MO)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(s.I),w=e.events,j=e.onClick,b=c;function C(e){j(e)}return(0,i.useEffect)((()=>{(0,P.Oo)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{s.$.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,O.jsx)(l.C,{value:k,children:(0,O.jsx)("div",{children:(0,O.jsx)(n.x,{theme:r.ZP,cssVarsRoot:x,resetCSS:!1,children:(0,O.jsxs)(u.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||g?(0,O.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",b,"important"),e.style.setProperty("font-size",m+"px","important"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.wOV)(d),lineHeight:(0,v.vY4)(d),letterSpacing:(0,v.X2K)(d)},children:g?"W"!==f?f:"":e.heading})}):(0,O.jsx)(O.Fragment,{}),"landscape"===t?(0,O.jsx)(Z,{events:w,onClick:C}):(0,O.jsx)(M,{events:w,onClick:C})]})})})})}},1855:function(e,t,o){var i=o(7313),n=o(9821),r=o(7129),s=o(6417);t.Z=function(e){var[t,o]=(0,n.Z)();return(0,i.useContext)(r.V),e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:o,height:t,overflow:"hidden"}})}},4920:function(e,t,o){o.d(t,{Z:function(){return P}});var i=o(7313),n=o(9821),r=(o(3439),o(9723)),s=o(7753),l=o(4892),a=o(7129),d=o(6805),p=o(9854),c=o(1092),h=o(5945),m=o(8811),x=o(9363),y=o(6417);var u=function(e){var t,o,r,l,[a,d]=(0,n.Z)();const{whatmoreUITheme:c}=(0,i.useContext)(m.I),[u]=(0,s.j1)("whatmorePrimaryFont"),[f,v]=(0,i.useState)(0),g=(0,s.MO)("whatmoreShopId"),w=e.event;if(0==w.products.length)return(0,y.jsx)(y.Fragment,{});const j=.3*d,P=j+"px",b=j+"px",C=.07*d,I=C+"px";return(0,y.jsx)("div",{style:{width:d+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,y.jsxs)("div",{ref:e=>{e&&e.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,y.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",b,"important")},style:{width:(0,p.uNj)(g)?P:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.alU)(g),borderColor:(0,p.qPe)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,y.jsx)("img",{ref:e=>{e&&(e.style.setProperty("object-fit",(0,p.yOX)(g),"important"),e.style.setProperty("max-width",P,"important"))},src:(0,x.s)(w.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,y.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,y.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",I,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"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:"normal"},children:(0,h.s)(w.products[f].title)})}),(null===(t=w.products[f])||void 0===t||null===(o=t.product_metadata)||void 0===o?void 0:o.product_type)&&(0,y.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,y.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",d-5-j+"px","important"),e.style.setProperty("font-size",.7*C+"px","important"),e.style.setProperty("font-family",u,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-overflow","ellipsis","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"))},children:null===(r=w.products[f])||void 0===r||null===(l=r.product_metadata)||void 0===l?void 0:l.product_type})})]})]},f)})},f=o(3933),v=o(8984);function g(e){var t,[o,l]=(0,n.Z)();const[d]=(0,s.j1)("whatmoreShopId"),[c,h,m]=(0,f.YD)({triggerOnce:!0});var x=(0,i.useContext)(a.V);const g=e.event,w=null!==(t=e.unfocusedDisplay)&&void 0!==t&&t,j=.5*l,P=(0,v.gE)()?e.isOnFocus:h;return(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",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",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)("p",{children:" "})}),x.showPlayButton&&!w?(0,y.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==g.event_type&&(0,y.jsx)(r.Z,{sx:{color:(0,p.Ya_)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,y.jsx)(y.Fragment,{}),(0,y.jsx)("div",{ref:c,children:P&&(0,p.PWD)(d)?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(u,{event:g})}):(0,y.jsx)("div",{height:"20px"})})]})})}function w(e){var[t,o]=(0,n.Z)();const[i]=(0,s.j1)("whatmorePrimaryFont"),r=e.event;return r.title.trim().length?(0,y.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,y.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,y.jsx)("p",{style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,y.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*o+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,y.jsx)(y.Fragment,{})}function j(e){const[t,o,i,r,l]=(0,n.Z)(),[a]=(0,s.j1)("whatmoreShowViews"),h=(0,s.MO)("whatmoreShopId"),m=e.event,x=e.isOnFocus;return(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",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.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===a&&"show"===(0,p.qcC)(h)?(0,y.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)(c.Z,{event:m,fontSize:.07*o+"px"})})}):(0,y.jsx)(y.Fragment,{})})}),d.$w===l[d.YP]?(0,y.jsx)(y.Fragment,{}):x?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,y.jsx)(w,{event:m})}):(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(w,{event:m})})]})})}var P=function(e){var t,o,r;const[c,h,x,u,f]=(0,n.Z)();var v=(0,i.useContext)(a.V);const{whatmoreUITheme:w}=(0,i.useContext)(m.I),P=(0,s.MO)("whatmoreShopId"),b=e.event,C=e.onClick,I=null===(t=e.isOnFocus)||void 0===t||t,S=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,O=null!==(r=e.animateOnFocus&&(0,p.iWI)(P))&&void 0!==r&&r,F=(0,p.nzC)(P);return(0,y.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",v.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",v.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:h,height:c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w?F:null,borderWidth:(0,p.alU)(P),borderColor:(0,p.qPe)(P),overflow:"hidden",cursor:"pointer"},className:O?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(b)},children:[(0,y.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:I||S,event:b}),(0,y.jsxs)("div",{style:{width:h,height:c},children:[(0,y.jsx)(j,{event:b,isOnFocus:I}),"87043703105"===P||"76467011883"===P||!I&&d.$w!==f[d.YP]?null:(0,y.jsx)(g,{event:b,unfocusedDisplay:!I,isOnFocus:I})]})]})}},9723:function(e,t,o){var i=o(5318);t.Z=void 0;var n=i(o(5045)),r=o(6417),s=(0,n.default)((0,r.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=s},3439:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
100% {
|
|
66
66
|
transform: translateY(0%) rotate(0deg);
|
|
67
67
|
}
|
|
68
|
-
`} infinite 1.5s linear`;return(0,x.jsx)(L.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.M5,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,x.jsx)(z.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(R.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.M5,{children:(0,x.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,n]=(0,u.j1)("isFirstIndicatorRenderDone"),[i]=(0,u.j1)("indicatorRenderSeconds"),o=i,l=t.swipeUp;return(0,r.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*o);return()=>{clearTimeout(t)}}),[]),e?null:(0,x.jsx)(M,{showForSeconds:.8*o,delayInSeconds:3,swipeUp:l})},A=n(5180),K=n(9316),W=n(5254);const q="15px";var N=n(7376),H=n(778),Z=n(8811);var U=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[l]=(0,u.j1)("whatmoreShopId"),[a,p,v,m]=(0,h.Z)(),[g,f]=(0,r.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,r.useContext)(Z.I),C=.1*v,S=.95*m,b=.05*m;return(0,x.jsx)(s.Kq,{direction:"row",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,x.jsx)(s.xu,{width:S+"px",height:"fit-content",padding:"6px",marginTop:q,backgroundColor:i,borderRadius:"5px",animation:g?K.mT:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.pq5)(l),onClick:()=>{f(!0),function(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[i],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj5)(l)?t.product_link+"?"+(0,c.awP)(l)+"&"+(0,c.n9s)(l)+"&"+(0,c.vaK)(l):t.product_link}(w)},_hover:{backgroundColor:(0,W.lA)(i,8)},cursor:"pointer",children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*b+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:o+" !important",color:"white !important"},children:(0,c.Pvx)(l)})})})})})},V=n(7009),B=n(5945),Y=n(5456),X=n(6984),$=n(6227),G=n(7329),J=(n(9111),n(9748));function Q(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title,g=t.showInProgressIcon;return(0,x.jsxs)(s.xu,{display:"flex",width:p,height:v,padding:"2x",boxShadow:"lg",animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"#343434 !important"},children:["\xa0","Cancel","\xa0"]})}),(0,x.jsxs)(s.Kq,{direction:"row",backgroundColor:g?(0,W.lA)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function tt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height;return(0,x.jsx)(s.xu,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",(0,c.tan)(o),"\xa0"]})})})})}function et(t){var e;const[n]=(0,u.j1)("whatmorePrimaryFont"),[i]=(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,x.jsx)(s.xu,{width:r,height:l,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function nt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(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,c=t.height,h=t.onCartIconClick;return(0,x.jsx)(s.xu,{width:d,height:c,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.M5,{paddingX:"5px",onClick:()=>{h()},children:"1972174947"!=o?(0,x.jsx)($.Z,{sx:{color:n,fontSize:1.6*r}}):(0,x.jsx)(J.zx,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,x.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.xv,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,x.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var it=function(t){var e,n,i,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===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(L.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:f,width:g},children:(0,x.jsx)(et,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(tt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(L.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:f,width:g},children:(0,x.jsx)(nt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(tt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(Q,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})},ot=n(6967),rt=n(6230),lt=n(4844);const at=(0,u.MO)("isInDesignMode"),dt=(0,u.MO)("isDemoBrand");async function st(t,e,n,i,o,r,l,a,d){return"shopify"==n?(0,lt.wW)(t,e,i,l,a,d):(at||dt||(async()=>{(0,ot.FF)(o,r)})(),(0,rt.jg)(t,e,i))}function ct(t,e){return"shopify"==t?(0,lt.JL)(e):(0,rt.TE)(e)}var ut=n(513);var ht=function(t,e,n){const[i]=(0,u.j1)("whatmoreShopId"),[o]=(0,u.j1)("isInDesignMode"),[l]=(0,u.j1)("isDemoBrand"),[a,s]=(0,r.useState)(null),h=(0,r.useRef)(null),{closeClickComponent:v}=(0,r.useContext)(ln),{whatmoreUserInfo:x}=(0,r.useContext)(Z.I),[m,g]=(0,r.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){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,r){const a=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(!a)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(a,1,(0,c.Ipo)(i),i,n,e,r,null===n||void 0===n?void 0:n.location,null===x||void 0===x?void 0:x.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){o||l||(async()=>{(0,d.JX)(t,e,n)})()}(n,e,1),f("init",m.cart_count+1),(0,u.bU)("whatmoreAddedToCart",!0),"72550089015"==i&&(0,u.MO)("whatmoreAddedToCart")&&(0,ut.D)(i,(()=>{}),100,window.location.hostname),(0,c.IKD)(i)&&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,a,function(t){f("productVariantDetailsApiCallInProgress",null),(0,p.p)(e,(0,c.Ipo)(i),i).then((e=>{h.current=e.variants;const n=function(t){var e=[],n=[],i=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}(e);s(n),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)?f("awaitingVariantSelection",null):!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t)})).catch((t=>{f("errored",null)}))},j,function(t){var e,n;const o=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==o.length)return null;const r=null!==(e=o[0].price)&&void 0!==e?e:0,l=null!==(n=o[0].compare_at_price)&&void 0!==n?n:0;return{price:"whatmore"==(0,c.Ipo)(i)?r:r/100,compare_price:"whatmore"==(0,c.Ipo)(i)?l:l/100}},function(){"do_nothing"!==(0,c.v9M)(i)&&("go_to_cart_page"!==(0,c.v9M)(i)?"open_cart_slider"!==(0,c.v9M)(i)||null!==v&&v():ct((0,c.Ipo)(i),i))}]},pt=n(9363);var vt=function(t){var e,n,i,o;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(n=t.height)&&void 0!==n?n:"fit-content",h=null!==(i=t.baseFontSize)&&void 0!==i?i:10,p=t.onOptionSelected,v=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",m=t.data,[f]=(0,u.j1)("whatmoreSecondaryColor"),[w]=(0,u.j1)("whatmorePrimaryFont"),[j]=(0,u.j1)("whatmoreShopId");function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[C,S]=(0,r.useState)([y(l[0]),y(l[1]),y(l[2])]);return(0,r.useEffect)((()=>{p(C)}),[C]),(0,x.jsx)(s.Kq,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:l.map(((e,n)=>{if(0!=e.length)return(0,x.jsxs)(s.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,x.jsx)(s.M5,{width:"100%",children:(0,x.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.xv,{as:"b",fontSize:1.2*h+"px",sx:{color:v+" !important",fontFamily:w+" !important"},align:"center",children:["\xa0",e[0].type,"\xa0"]}),(0,x.jsx)(s.kC,{gap:"6px",wrap:"wrap",justify:"center",children:e.map(((e,i)=>{var o,r,l,a,d,u,p,v,f,y,b,I,k,_,F,T;const E=0==n||(null===m||void 0===m||null===(o=m.variants)||void 0===o?void 0:o.find((t=>t[`option${n}`]==(null===C||void 0===C?void 0:C[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))));return(0,x.jsx)(x.Fragment,{children:E&&(0,x.jsx)(s.xu,{borderRadius:"Colour"===(null===e||void 0===e?void 0:e.type)||null!==e&&void 0!==e&&e.type.toLowerCase().includes("color")?"50%":"2px",onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)S([C[0],C[1],t]);else if(1==e){var n,i;S([C[0],t,null===m||void 0===m||null===(n=m.variants)||void 0===n||null===(i=n.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===m||void 0===m||null===(o=m.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;S([t,null===m||void 0===m||null===(l=m.variants)||void 0===l||null===(a=l.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===a?void 0:a.option2,null===m||void 0===m||null===(d=m.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option==C[n]?"black":"white",cursor:"pointer",children:("Colour"===(null===e||void 0===e?void 0:e.type)||null!==e&&void 0!==e&&e.type.toLowerCase().includes("color"))&&((null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArr)||void 0===l?void 0:l.length)>0&&(null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||!d.includes(null))||(null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p?void 0:p.length)>0&&(null===t||void 0===t||null===(v=t.finalArr)||void 0===v||null===(f=v.finalArrExternal)||void 0===f||!f.includes(null)))?(0,x.jsx)(g.Ee,{padding:"2px",borderRadius:(0,c.lmH)(j),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%)"},src:(0,pt.s)(null!==(y=null===t||void 0===t||null===(b=t.finalArr)||void 0===b||null===(I=b.finalArr)||void 0===I||null===(k=I.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===k?void 0:k.src)&&void 0!==y?y:null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(F=_.finalArrExternal)||void 0===F||null===(T=F.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")}):(0,x.jsxs)(s.xv,{as:e.available?"samp":"s",fontSize:h+"px",sx:{color:(e.available?e.option==C[n]?"white":"black":"gray")+" !important",fontFamily:w+" !important"},align:"center",paddingX:(P=e.option,P.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]})})});var P}))},n)]},n)}))})},xt=n(9219),mt=n(6524);var gt=function(t){var e,n,i,o,l,a;const[v]=(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,S,b,I]=(0,h.Z)(),[k,_]=(0,r.useState)(!1),[F,T]=(0,r.useState)(t.product),{whatmoreUITheme:E}=(0,r.useContext)(Z.I),{whatmoreWidgetSourceDetails:P}=(0,r.useContext)(Z.I),[O,z,R,M,D,A,U]=ht(0,F,t.event),[X,$]=(0,r.useState)(null),[G,Q]=(0,r.useState)(parseFloat(F.price)),[tt,et]=(0,r.useState)(parseFloat(F.compare_price)),[nt,ot]=(0,r.useState)(F.currency),[rt,lt]=(0,r.useState)(null),at=t.event,dt=t.productClickHandler,{whatmoreIsPreviewMode:st}=(0,r.useContext)(Z.I),[ct,ut]=(0,r.useState)(null);(0,r.useEffect)((()=>{(0,c.N8M)(y)&&(0,xt.Rb)(F,(0,c.Ipo)(y),y).then((t=>{T(t),Q(parseFloat(t.price)),et(parseFloat(t.compare_price)),ot(t.currency)}));(async()=>{const t=await(0,p.p)(F,(0,c.Ipo)(y),y);lt(t)})()}),[]),(0,r.useEffect)((()=>{var t,e;const n=null!=rt?null===rt||void 0===rt||null===(t=rt.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,i=-1!==n?null===rt||void 0===rt||null===(e=rt.variants)||void 0===e?void 0:e.map((t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null})):[];let o=[];var r;-1!==n&&(o=null===rt||void 0===rt||null===(r=rt.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ut({position:n,finalArr:i,finalArrExternal:o})}),[rt]);var gt=.68*I,ft=.55*gt,wt=.4*gt,jt=gt*(.55-.4),yt=gt+"px",Ct=wt+"px",St=jt+"px",bt=.12*wt;const It=(0,c.ITD)(y);function kt(){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}(F)}const _t=P.landingLocationType,Ft=P.templateType,Tt=(0,mt.NY)(_t)+(0,mt.dS)(Ft)+"_"+(null===at||void 0===at?void 0:at.event_id);return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:q,marginBottom:(0,c.pq5)(y),width:yt,height:"fit-content",boxShadow:"round"==E?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,d.wz)(t,e)})(),"72550089015"==y?kt():dt(e),_(!0)}(at,F)},backgroundColor:(0,W.lA)("#ffffff",(0,c.U5_)(y)),animation:k?K.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,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:Ct,width:Ct,bgColor:w,children:(0,x.jsx)(g.Ee,{width:Ct,height:Ct,src:(0,pt.s)(null!==(e=null!==(n=null===ct||void 0===ct||null===(i=ct.finalArr)||void 0===i||null===(o=i.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===ct||void 0===ct?void 0:ct.position]))))||void 0===o?void 0:o.src)&&void 0!==n?n:null===ct||void 0===ct||null===(l=ct.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===ct||void 0===ct?void 0:ct.position]))))||void 0===a?void 0:a.src)&&void 0!==e?e:F.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(y)+" !important"}})}),(0,x.jsxs)(s.xu,{height:Ct,width:gt-wt+"px",children:[(0,x.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,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*bt+"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,B.s)(null==F.title?"":F.title.toString())}),(0,c.QaY)(y)?(0,x.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:[(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(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,xt.jx)("10588815418"==y?(null===rt||void 0===rt?void 0:rt.price)/100:G,"",y,nt)," \xa0"]}),(0,Y.B)(G,tt)?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(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,xt.jx)("10588815418"==y?(null===rt||void 0===rt?void 0:rt.compare_at_price)/100:tt,"",y,nt)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xv,{fontSize:.82*bt*(0,c.Rqt)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.eod)(y)+" !important"},children:st?(0,c.qde)(y):(0,c.aTS)(y)})]}),(0,c.Fr)(y)?(0,x.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,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.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:"1972174947"!=y?(0,x.jsx)(V.Z,{sx:{color:f,fontSize:1.3*bt+"px"}}):(0,x.jsx)(J.zx,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.xv,{color:"white",paddingX:"6px",fontSize:.8*bt+"px",children:"VIEW PRODUCT"})})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(L.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==O.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==O.state&&null!=R?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*ft+"px",marginBottom:.1*ft+"px",overflowY:"auto",overflowX:"hidden",maxHeight:ft*It+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:yt,height:"fit-conten",event:at,product:F,finalArr:ct,data:rt,productVariantOptions:R,baseFontSize:1.2*bt,onOptionSelected:t=>{!function(t){$(t);const e=A(t);e&&(Q(e.price),et(e.compare_price))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:St,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(it,{baseFontSize:.3*jt,event:at,product:F,cartState:O.state,cartCount:O.cart_count,updateCartState:z,onClickAtc:t=>{"init"==O.state?(M(Tt),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:P,event:at,productList:[F],ctaList:at.cta})):"awaitingVariantSelection"==O.state&&D(X,Tt)},onCartIconClick:()=>{U()}})})]})},ft=n(3867);var wt=function(t){var e,n,i;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[l]=(0,u.j1)("whatmoreSecondaryColor"),[a]=(0,u.j1)("whatmorePrimaryFont"),c=t.event,h=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,x.jsx)(s.rU,{href:h.product_link,color:l,onClick:()=>{!function(t,e){o||r||(async()=>{(0,d.$L)(t,e)})()}(c,h)},children:(0,x.jsx)(s.xu,{width:v,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:a+" !important",color:l+" !important"},children:" VIEW MORE "})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(V.Z,{sx:{color:l,fontSize:1.4*p}})})]})})})},jt=n(6163);function yt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title;return(0,x.jsx)(s.xu,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.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:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Ct=function(t){var e,n,i;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!==(n=t.width)&&void 0!==n?n:"100%",h=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,x.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Pvx)(o)})};var St=function(t){var e;const[n]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o]=(0,u.j1)("whatmorePrimaryFont"),[l]=(0,u.j1)("whatmoreShopId"),[a,p,v,m]=(0,h.Z)(),[f,w]=(0,r.useState)(!1),[j,y]=(0,r.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,r.useContext)(Z.I),[S,b,I,k,_,F,T]=ht(0,j,t.event),[E,P]=(0,r.useState)(null),[O,z]=(0,r.useState)(parseFloat(j.price)),[R,M]=(0,r.useState)(parseFloat(j.compare_price)),[D,A]=(0,r.useState)(j.currency),W=t.event,U=t.productClickHandler,V=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,X=C.landingLocationType,$=C.templateType,G=(0,mt.NY)(X)+(0,mt.dS)($)+"_"+(null===W||void 0===W?void 0:W.event_id);(0,r.useEffect)((()=>{(0,c.N8M)(l)&&(0,xt.Rb)(j,brandDomainContext(l),l).then((t=>{y(t),z(parseFloat(t.price)),M(parseFloat(t.compare_price)),A(t.currency)}))}),[]);var J=m*V,Q=.3*J,tt=J+"px",et=.7*Q,nt=.9*et,ot=.12*Q;const rt=(0,c.ITD)(l);function lt(t,e){n||i||(async()=>{(0,d.wz)(t,e)})(),U(e),w(!0)}return(0,x.jsx)(s.Kq,{direction:"row",width:tt,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.xu,{marginTop:q,marginBottom:(0,c.pq5)(l),width:tt,onClick:t=>{},animation:f?K.mT:null,borderRadius:"lg",onAnimationEnd:()=>{w(!1)},children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{lt(W,j)},children:[(0,x.jsx)(s.xu,{height:et+"px",width:et+"px",children:(0,x.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.xu,{height:nt+"px",width:nt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g.Ee,{width:nt+"px",height:nt+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.xu,{height:et+"px",width:J-et+"px",children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:o+" !important",color:"white !important"},children:(0,B.s)(j.title.toString())}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,c.QaY)(l)?(0,x.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,x.jsxs)(s.xv,{noOfLines:1,fontSize:1*ot+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:o+" !important",color:"white !important"},children:["\xa0"," ",(0,xt.jx)(parseFloat(O),"",l,D)," \xa0"]}),(0,x.jsx)(s.M5,{children:(0,Y.B)(j.price,j.compare_price)?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.8*ot+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:o+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,xt.jx)(parseFloat(R),"",l,D)]}):(0,x.jsx)(x.Fragment,{})})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(ft.Z,{storeId:l,productId:j.client_product_id,productLink:j.product_link,fontSize:1*ot,fontColor:"white"})})]})]})})]}),(0,x.jsx)(L.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=I?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*Q+"px",marginBottom:.1*Q+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Q*rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:tt,height:"fit-content",event:W,product:j,productVariantOptions:I,baseFontSize:1*ot,onOptionSelected:t=>{!function(t){P(t);const e=F(t);e&&(z(e.price),M(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.xu,{width:"100%",height:"100%",children:(0,x.jsx)(wt,{baseFontSize:.8*ot,event:W,product:j,width:"100%",height:"100%"})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib9)(l)?(0,x.jsx)(Ct,{baseFontSize:.8*ot,event:W,product:j,borderRadius:"md",onShopNowClick:t=>{lt(W,j)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c._5p)(l)?(0,x.jsx)(jt.default,{baseFontSize:.8*ot,event:W,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(it,{baseFontSize:.8*ot,event:W,product:j,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(k(G),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:W,productList:[j],ctaList:W.cta})):"awaitingVariantSelection"==S.state&&_(E,G)},onCartIconClick:()=>{T()}})})})]})]})})})};var bt=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i]=(0,u.j1)("whatmoreSecondaryColor"),o=(0,u.MO)("whatmoreSecondaryColorShade900"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[p,v,m,f]=(0,h.Z)(),[w,j]=(0,r.useState)(!1),[y,C]=(0,r.useState)(t.product),{whatmoreUITheme:S}=(0,r.useContext)(Z.I),[b,I]=(0,r.useState)(!(0,c.N8M)(a)),[k,_]=(0,r.useState)(parseFloat(y.price)),[F,T]=(0,r.useState)(parseFloat(y.compare_price)),[E,P]=(0,r.useState)(y.currency),O=t.event;t.productClickHandler,(0,r.useEffect)((()=>{(0,c.N8M)(a)&&(0,xt.Rb)(y,(0,c.Ipo)(a),a).then((t=>{C(t),_(parseFloat(t.price)),T(parseFloat(t.compare_price)),P(t.currency),I(!0)}))}),[]);var L=.68*f,z=.4*L,R=L+"px",M=z+"px",D=L*(.55-.4)+"px",A=.12*z;(0,c.ITD)(a);const{whatmoreWidgetSourceDetails:U}=(0,r.useContext)(Z.I);function X(t){return(0,c.lj5)(a)?t.product_link+"?"+(0,c.awP)(a)+"&"+(0,c.n9s)(a)+"&"+(0,c.vaK)(a):t.product_link}function $(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:U,event:t,productList:[i],ctaList:t.cta})})(),j(!0)}return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:q,marginBottom:(0,c.pq5)(a),width:R,height:"fit-content",boxShadow:"round"==S?"dark-lg":null,onClick:()=>{$(O,y),window.location.href=X(y)},backgroundColor:(0,W.lA)("#ffffff",(0,c.U5_)(a)),animation:w?K.mT:null,borderRadius:"round"==S?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(a),borderColor:(0,c.qPe)(a)},children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:M,width:M,bgColor:o,children:(0,x.jsx)(g.Ee,{width:M,height:M,src:(0,pt.s)(y.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(a)+" !important"}})}),(0,x.jsxs)(s.xu,{height:M,width:L-z+"px",children:[(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(a)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.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:l+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*A+"px !important"},children:(0,B.s)(null==y.title?"":y.title.toString())}),(0,c.QaY)(a)?(0,x.jsxs)(s.Kq,{direction:(0,c.$zZ)(a)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==S?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[b&&(0,x.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*A+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,c.Uyp)(a)+" !important",margin:"0px !important"},children:[" "+(0,xt.jx)(k,"",a,E)," \xa0"]}),(0,Y.B)(k,F)&&b?(0,x.jsxs)(s.xv,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*A+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,c.kPs)(a)+" !important",margin:"0px !important"},children:[" ",(0,xt.jx)(F,"",a,E)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.sG7)(a)&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*A+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.V3Y)(a)+" !important",color:(0,c.aUT)(a)+" !important",margin:"0px !important"},children:["\xa0",(0,c.sG7)(a)," \xa0"]})]}),(0,c.Fr)(a)?(0,x.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,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:o,sx:{borderRadius:"round"==S?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(V.Z,{sx:{color:i,fontSize:1.3*A+"px"}})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.pp3)(a)&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:D,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(Ct,{baseFontSize:.8*A,event:O,product:y,borderRadius:"md",onShopNowClick:t=>{$(O,y),window.location.href=X(y)}})})]})};var It=function(t){const[e]=(0,u.j1)("whatmoreShopId"),n=(0,c.eyg)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,x.jsx)(bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,x.jsx)(U,{product:t.product,event:t.event}):"narrow-tile"==n?(0,x.jsx)(St,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})},kt=n(6119),_t=n(3388),Ft=n(7643);var Tt=function(t){const[e,n,i,o]=(0,h.Z)(),[r]=(0,u.j1)("whatmoreShopId"),d=(0,u.MO)("isInDesignMode"),p=(0,u.MO)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.eyg)(r);if(!(0,_t.kT)(v))return(0,x.jsx)(x.Fragment,{});if(1==v.products.length&&(void 0==v.cta||0==v.cta.length)){const t=v.products[0];return(0,c.rnv)(r)?(0,x.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(St,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(It,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.M5,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.xu,{width:o+"px",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,x.jsxs)(l.tq,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.VqZ)(r)?0:1,centeredSlides:!(0,c.VqZ)(r),modules:[a.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[v.products.map((t=>"oos"!=t.product_status&&(0,x.jsx)(l.o5,{children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(It,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.pp3)(r)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(l.o5,{children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(kt.Z,{cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Et=function(t){const[e,n]=(0,u.j1)("isProductSwiperCatalogOpen"),i=t.event,o=t.productClickHandler;return(0,r.useContext)(ln).isIOS&&e?(0,x.jsx)(Tt,{event:i,productClickHandler:o},i.event_id):(0,x.jsx)(L.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Tt,{event:i,productClickHandler:o},i.event_id)})};function Pt(t){const e=t.event,[n,i,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont");return(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.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,x.jsx)(E.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Ot=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i,o]=(0,u.j1)("isProductSwiperCatalogOpen"),[l,a]=(0,j.Z)(),[d,h]=(0,u.j1)("isFirstIndicatorRenderDone"),p=(0,r.useContext)(ln),[v]=(0,u.j1)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,C=t.productClickHandler;return(0,x.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Pt,{event:m}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(y,{focusRef:w}),(0,x.jsx)(O,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.xu,{width:"full",margin:"2px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(D,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(v)?(0,x.jsx)(s.xu,{w:"100%",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(T,{event:m,onToggle:t=>{o("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Et,{event:m,productClickHandler:C})})]}):(0,x.jsx)("div",{})]})]})})};function Lt(t){const[e,n,i,o]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p]=(0,r.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*o*.8*.13;(0,r.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a&&(t="vanyaclothing.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===v||void 0===v?void 0:v.id}&title=${null===v||void 0===v?void 0:v.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,n,i,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${S.F4`
|
|
68
|
+
`} infinite 1.5s linear`;return(0,x.jsx)(L.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:m,children:(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,x.jsx)(s.M5,{animation:"vertical"===p?w:j,children:"vertical"===p?(0,x.jsx)(z.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}}):(0,x.jsx)(R.Z,{sx:{color:"white !important",fontSize:g,filter:"drop-shadow(0 0 20px black);"}})}),(0,x.jsx)(s.M5,{children:(0,x.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,n]=(0,u.j1)("isFirstIndicatorRenderDone"),[i]=(0,u.j1)("indicatorRenderSeconds"),o=i,l=t.swipeUp;return(0,r.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*o);return()=>{clearTimeout(t)}}),[]),e?null:(0,x.jsx)(M,{showForSeconds:.8*o,delayInSeconds:3,swipeUp:l})},A=n(5180),K=n(9316),W=n(5254);const q="15px";var N=n(7376),H=n(778),Z=n(8811);var U=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i]=(0,u.j1)("whatmoreSecondaryColor"),[o]=(0,u.j1)("whatmorePrimaryFont"),[l]=(0,u.j1)("whatmoreShopId"),[a,p,v,m]=(0,h.Z)(),[g,f]=(0,r.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:y}=(0,r.useContext)(Z.I),C=.1*v,S=.95*m,b=.05*m;return(0,x.jsx)(s.Kq,{direction:"row",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,x.jsx)(s.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,x.jsx)(s.xu,{width:S+"px",height:"fit-content",padding:"6px",marginTop:q,backgroundColor:i,borderRadius:"5px",animation:g?K.mT:null,onAnimationEnd:()=>{f(!1)},marginBottom:(0,c.pq5)(l),onClick:()=>{f(!0),function(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:y,event:t,productList:[i],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj5)(l)?t.product_link+"?"+(0,c.awP)(l)+"&"+(0,c.n9s)(l)+"&"+(0,c.vaK)(l):t.product_link}(w)},_hover:{backgroundColor:(0,W.lA)(i,8)},cursor:"pointer",children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*b+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:o+" !important",color:"white !important"},children:(0,c.Pvx)(l)})})})})})},V=n(7009),B=n(5945),Y=n(5456),X=n(6984),$=n(6227),G=n(7329),J=(n(9111),n(9748));function Q(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title,g=t.showInProgressIcon;return(0,x.jsxs)(s.xu,{display:"flex",width:p,height:v,padding:"2x",boxShadow:"lg",animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:"#343434 !important"},children:["\xa0","Cancel","\xa0"]})}),(0,x.jsxs)(s.Kq,{direction:"row",backgroundColor:g?(0,W.lA)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),h(),a(!0)},children:[(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",m,"\xa0"]}),g?(0,x.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,x.jsx)(G.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,x.jsx)(x.Fragment,{})]})]})}function tt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height;return(0,x.jsx)(s.xu,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,x.jsx)(s.M5,{children:(0,x.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",(0,c.tan)(o),"\xa0"]})})})})}function et(t){var e;const[n]=(0,u.j1)("whatmorePrimaryFont"),[i]=(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,x.jsx)(s.xu,{width:r,height:l,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,x.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function nt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(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,c=t.height,h=t.onCartIconClick;return(0,x.jsx)(s.xu,{width:d,height:c,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,x.jsx)(s.M5,{paddingX:"5px",onClick:()=>{h()},children:"1972174947"!=o?(0,x.jsx)($.Z,{sx:{color:n,fontSize:1.6*r}}):(0,x.jsx)(J.zx,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,x.jsx)(s.xv,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,x.jsx)(s.xv,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,x.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,x.jsx)(X.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var it=function(t){var e,n,i,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===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,h=t.cartCount,p=t.onClickAtc,v=t.onCartIconClick;function m(){p()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",f=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,x.jsx)(L.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:f,width:g},children:(0,x.jsx)(et,{event:l,product:a,baseFontSize:d,width:g,height:f})}):"init"==c?0==h?(0,x.jsx)(tt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):s?(0,x.jsx)(L.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:f,width:g},children:(0,x.jsx)(nt,{onClick:m,event:l,product:a,baseFontSize:d,cartCount:h,width:g,height:f,onCartIconClick:v})}):(0,x.jsx)(tt,{onClick:m,event:l,product:a,baseFontSize:d,width:g,height:f}):(0,x.jsx)(Q,{onClick:m,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:f,title:"awaitingVariantSelection"==c?"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})},ot=n(6967),rt=n(6230),lt=n(4844);const at=(0,u.MO)("isInDesignMode"),dt=(0,u.MO)("isDemoBrand");async function st(t,e,n,i,o,r,l,a,d){return"shopify"==n?(0,lt.wW)(t,e,i,l,a,d):(at||dt||(async()=>{(0,ot.FF)(o,r)})(),(0,rt.jg)(t,e,i))}function ct(t,e){return"shopify"==t?(0,lt.JL)(e):(0,rt.TE)(e)}var ut=n(513);var ht=function(t,e,n){const[i]=(0,u.j1)("whatmoreShopId"),[o]=(0,u.j1)("isInDesignMode"),[l]=(0,u.j1)("isDemoBrand"),[a,s]=(0,r.useState)(null),h=(0,r.useRef)(null),{closeClickComponent:v}=(0,r.useContext)(ln),{whatmoreUserInfo:x}=(0,r.useContext)(Z.I),[m,g]=(0,r.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){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t,r){const a=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(!a)return void f("init",m.cart_count);f("atcApiCallInProgress",null);st(a,1,(0,c.Ipo)(i),i,n,e,r,null===n||void 0===n?void 0:n.location,null===x||void 0===x?void 0:x.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){o||l||(async()=>{(0,d.JX)(t,e,n)})()}(n,e,1),f("init",m.cart_count+1),(0,u.bU)("whatmoreAddedToCart",!0),"72550089015"==i&&(0,u.MO)("whatmoreAddedToCart")&&(0,ut.D)(i,(()=>{}),100,window.location.hostname),(0,c.IKD)(i)&&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,a,function(t){f("productVariantDetailsApiCallInProgress",null),(0,p.p)(e,(0,c.Ipo)(i),i).then((e=>{h.current=e.variants;const n=function(t){var e=[],n=[],i=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}(e);s(n),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(n)?f("awaitingVariantSelection",null):!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):j([w(n[0]),w(n[1]),w(n[2])],t)})).catch((t=>{f("errored",null)}))},j,function(t){var e,n;const o=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==o.length)return null;const r=null!==(e=o[0].price)&&void 0!==e?e:0,l=null!==(n=o[0].compare_at_price)&&void 0!==n?n:0;return{price:"whatmore"==(0,c.Ipo)(i)?r:r/100,compare_price:"whatmore"==(0,c.Ipo)(i)?l:l/100}},function(){"do_nothing"!==(0,c.v9M)(i)&&("go_to_cart_page"!==(0,c.v9M)(i)?"open_cart_slider"!==(0,c.v9M)(i)||null!==v&&v():ct((0,c.Ipo)(i),i))}]},pt=n(9363);var vt=function(t){var e,n,i,o;const l=t.productVariantOptions,a=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(n=t.height)&&void 0!==n?n:"fit-content",h=null!==(i=t.baseFontSize)&&void 0!==i?i:10,p=t.onOptionSelected,v=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",m=t.data,[f]=(0,u.j1)("whatmoreSecondaryColor"),[w]=(0,u.j1)("whatmorePrimaryFont"),[j]=(0,u.j1)("whatmoreShopId");function y(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[C,S]=(0,r.useState)([y(l[0]),y(l[1]),y(l[2])]);return(0,r.useEffect)((()=>{p(C)}),[C]),(0,x.jsx)(s.Kq,{direction:"column",width:a,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:l.map(((e,n)=>{if(0!=e.length)return(0,x.jsxs)(s.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,x.jsx)(s.M5,{width:"100%",children:(0,x.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,x.jsxs)(s.xv,{as:"b",fontSize:1.2*h+"px",sx:{color:v+" !important",fontFamily:w+" !important"},align:"center",children:["\xa0",e[0].type,"\xa0"]}),(0,x.jsx)(s.kC,{gap:"6px",wrap:"wrap",justify:"center",children:e.map(((e,i)=>{var o,r,l,a,d,u,p,v,f,y,b,I,k,_,F,T;const E=0==n||(null===m||void 0===m||null===(o=m.variants)||void 0===o?void 0:o.find((t=>t[`option${n}`]==(null===C||void 0===C?void 0:C[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))));return(0,x.jsx)(x.Fragment,{children:E&&(0,x.jsx)(s.xu,{borderRadius:"Colour"===(null===e||void 0===e?void 0:e.type)||null!==e&&void 0!==e&&e.type.toLowerCase().includes("color")?"50%":"2px",onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)S([C[0],C[1],t]);else if(1==e){var n,i;S([C[0],t,null===m||void 0===m||null===(n=m.variants)||void 0===n||null===(i=n.find((e=>(null===e||void 0===e?void 0:e.option2)==t)))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===m||void 0===m||null===(o=m.variants)||void 0===o||null===(r=o.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===r?void 0:r.option2;S([t,null===m||void 0===m||null===(l=m.variants)||void 0===l||null===(a=l.find((e=>(null===e||void 0===e?void 0:e.option1)==t)))||void 0===a?void 0:a.option2,null===m||void 0===m||null===(d=m.variants)||void 0===d||null===(s=d.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option==C[n]?"black":"white",cursor:"pointer",children:("Colour"===(null===e||void 0===e?void 0:e.type)||null!==e&&void 0!==e&&e.type.toLowerCase().includes("color"))&&((null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArr)||void 0===l?void 0:l.length)>0&&(null===t||void 0===t||null===(a=t.finalArr)||void 0===a||null===(d=a.finalArr)||void 0===d||!d.includes(null))||(null===t||void 0===t||null===(u=t.finalArr)||void 0===u||null===(p=u.finalArrExternal)||void 0===p?void 0:p.length)>0&&(null===t||void 0===t||null===(v=t.finalArr)||void 0===v||null===(f=v.finalArrExternal)||void 0===f||!f.includes(null)))?(0,x.jsx)(g.Ee,{padding:"2px",borderRadius:(0,c.lmH)(j),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%)"},src:(0,pt.s)(null!==(y=null===t||void 0===t||null===(b=t.finalArr)||void 0===b||null===(I=b.finalArr)||void 0===I||null===(k=I.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===k?void 0:k.src)&&void 0!==y?y:null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(F=_.finalArrExternal)||void 0===F||null===(T=F.find((t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option))))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")}):(0,x.jsxs)(s.xv,{as:e.available?"samp":"s",fontSize:h+"px",sx:{color:(e.available?e.option==C[n]?"white":"black":"gray")+" !important",fontFamily:w+" !important"},align:"center",paddingX:(P=e.option,P.length>=3?"0px":.5*h+"px"),children:["\xa0",e.option,"\xa0"]})})});var P}))},n)]},n)}))})},xt=n(9219),mt=n(6524);var gt=function(t){var e,n,i,o,l,a;const[v]=(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,S,b,I]=(0,h.Z)(),[k,_]=(0,r.useState)(!1),[F,T]=(0,r.useState)(t.product),{whatmoreUITheme:E}=(0,r.useContext)(Z.I),{whatmoreWidgetSourceDetails:P}=(0,r.useContext)(Z.I),[O,z,R,M,D,A,U]=ht(0,F,t.event),[X,$]=(0,r.useState)(null),[G,Q]=(0,r.useState)(parseFloat(F.price)),[tt,et]=(0,r.useState)(parseFloat(F.compare_price)),[nt,ot]=(0,r.useState)(F.currency),[rt,lt]=(0,r.useState)(null),at=t.event,dt=t.productClickHandler,{whatmoreIsPreviewMode:st}=(0,r.useContext)(Z.I),[ct,ut]=(0,r.useState)(null);(0,r.useEffect)((()=>{(0,c.N8M)(y)&&(0,xt.Rb)(F,(0,c.Ipo)(y),y).then((t=>{T(t),Q(parseFloat(t.price)),et(parseFloat(t.compare_price)),ot(t.currency)}));(async()=>{const t=await(0,p.p)(F,(0,c.Ipo)(y),y);lt(t)})()}),[]),(0,r.useEffect)((()=>{var t,e;const n=null!=rt?null===rt||void 0===rt||null===(t=rt.options)||void 0===t?void 0:t.findIndex((t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))})):-1,i=-1!==n?null===rt||void 0===rt||null===(e=rt.variants)||void 0===e?void 0:e.map((t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null})):[];let o=[];var r;-1!==n&&(o=null===rt||void 0===rt||null===(r=rt.images)||void 0===r?void 0:r.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))));ut({position:n,finalArr:i,finalArrExternal:o})}),[rt]);var gt=.68*I,ft=.55*gt,wt=.4*gt,jt=gt*(.55-.4),yt=gt+"px",Ct=wt+"px",St=jt+"px",bt=.12*wt;const It=(0,c.ITD)(y);function kt(){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}(F)}const _t=P.landingLocationType,Ft=P.templateType,Tt=(0,mt.NY)(_t)+(0,mt.dS)(Ft)+"_"+(null===at||void 0===at?void 0:at.event_id);return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:q,marginBottom:(0,c.pq5)(y),width:yt,height:"fit-content",boxShadow:"round"==E?"dark-lg":null,onClick:()=>{!function(t,e){v||m||(async()=>{(0,d.wz)(t,e)})(),"72550089015"==y?kt():dt(e),_(!0)}(at,F)},backgroundColor:(0,W.lA)("#ffffff",(0,c.U5_)(y)),animation:k?K.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,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:Ct,width:Ct,bgColor:w,children:(0,x.jsx)(g.Ee,{width:Ct,height:Ct,src:(0,pt.s)(null!==(e=null!==(n=null===ct||void 0===ct||null===(i=ct.finalArr)||void 0===i||null===(o=i.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===ct||void 0===ct?void 0:ct.position]))))||void 0===o?void 0:o.src)&&void 0!==n?n:null===ct||void 0===ct||null===(l=ct.finalArrExternal)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.color)==(null===X||void 0===X?void 0:X[null===ct||void 0===ct?void 0:ct.position]))))||void 0===a?void 0:a.src)&&void 0!==e?e:F.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(y)+" !important"}})}),(0,x.jsxs)(s.xu,{height:Ct,width:gt-wt+"px",children:[(0,x.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,x.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",1.1*bt+"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,B.s)(null==F.title?"":F.title.toString())}),(0,c.QaY)(y)?(0,x.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:[(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(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,xt.jx)("10588815418"==y||"88566890817"==y?(null===rt||void 0===rt?void 0:rt.price)/100:G,"",y,nt)," \xa0"]}),(0,Y.B)(G,tt)?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*bt*(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,xt.jx)("10588815418"==y||"88566890817"==y?(null===rt||void 0===rt?void 0:rt.compare_at_price)/100:tt,"",y,nt)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xv,{fontSize:.82*bt*(0,c.Rqt)(y)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:j+" !important",color:(0,c.eod)(y)+" !important"},children:st?(0,c.qde)(y):(0,c.aTS)(y)})]}),(0,c.Fr)(y)?(0,x.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,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.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:"1972174947"!=y?(0,x.jsx)(V.Z,{sx:{color:f,fontSize:1.3*bt+"px"}}):(0,x.jsx)(J.zx,{size:"sm",_hover:{bg:f},sx:{bg:f},children:(0,x.jsx)(s.xv,{color:"white",paddingX:"6px",fontSize:.8*bt+"px",children:"VIEW PRODUCT"})})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,x.jsx)(L.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==O.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==O.state&&null!=R?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*ft+"px",marginBottom:.1*ft+"px",overflowY:"auto",overflowX:"hidden",maxHeight:ft*It+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:yt,height:"fit-conten",event:at,product:F,finalArr:ct,data:rt,productVariantOptions:R,baseFontSize:1.2*bt,onOptionSelected:t=>{!function(t){$(t);const e=A(t);e&&(Q(e.price),et(e.compare_price))}(t)}})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:St,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(it,{baseFontSize:.3*jt,event:at,product:F,cartState:O.state,cartCount:O.cart_count,updateCartState:z,onClickAtc:t=>{"init"==O.state?(M(Tt),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:P,event:at,productList:[F],ctaList:at.cta})):"awaitingVariantSelection"==O.state&&D(X,Tt)},onCartIconClick:()=>{U()}})})]})},ft=n(3867);var wt=function(t){var e,n,i;const[o]=(0,u.j1)("isInDesignMode"),[r]=(0,u.j1)("isDemoBrand"),[l]=(0,u.j1)("whatmoreSecondaryColor"),[a]=(0,u.j1)("whatmorePrimaryFont"),c=t.event,h=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,v=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,x.jsx)(s.rU,{href:h.product_link,color:l,onClick:()=>{!function(t,e){o||r||(async()=>{(0,d.$L)(t,e)})()}(c,h)},children:(0,x.jsx)(s.xu,{width:v,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:a+" !important",color:l+" !important"},children:" VIEW MORE "})}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(V.Z,{sx:{color:l,fontSize:1.4*p}})})]})})})},jt=n(6163);function yt(t){var e;const[n]=(0,u.j1)("whatmoreSecondaryColor"),[i]=(0,u.j1)("whatmorePrimaryFont"),[o]=(0,u.j1)("whatmoreShopId"),[l,a]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,v=t.height,m=t.title;return(0,x.jsx)(s.xu,{width:p,height:v,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),a(!0)},animation:l?K.mT:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.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:i+" !important",color:(0,c.KCy)(o)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Ct=function(t){var e,n,i;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!==(n=t.width)&&void 0!==n?n:"100%",h=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,x.jsx)(yt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:h,title:(0,c.Pvx)(o)})};var St=function(t){var e;const[n]=(0,u.j1)("isInDesignMode"),[i]=(0,u.j1)("isDemoBrand"),[o]=(0,u.j1)("whatmorePrimaryFont"),[l]=(0,u.j1)("whatmoreShopId"),[a,p,v,m]=(0,h.Z)(),[f,w]=(0,r.useState)(!1),[j,y]=(0,r.useState)(t.product),{whatmoreWidgetSourceDetails:C}=(0,r.useContext)(Z.I),[S,b,I,k,_,F,T]=ht(0,j,t.event),[E,P]=(0,r.useState)(null),[O,z]=(0,r.useState)(parseFloat(j.price)),[R,M]=(0,r.useState)(parseFloat(j.compare_price)),[D,A]=(0,r.useState)(j.currency),W=t.event,U=t.productClickHandler,V=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,X=C.landingLocationType,$=C.templateType,G=(0,mt.NY)(X)+(0,mt.dS)($)+"_"+(null===W||void 0===W?void 0:W.event_id);(0,r.useEffect)((()=>{(0,c.N8M)(l)&&(0,xt.Rb)(j,brandDomainContext(l),l).then((t=>{y(t),z(parseFloat(t.price)),M(parseFloat(t.compare_price)),A(t.currency)}))}),[]);var J=m*V,Q=.3*J,tt=J+"px",et=.7*Q,nt=.9*et,ot=.12*Q;const rt=(0,c.ITD)(l);function lt(t,e){n||i||(async()=>{(0,d.wz)(t,e)})(),U(e),w(!0)}return(0,x.jsx)(s.Kq,{direction:"row",width:tt,height:"fit-content",justifyContent:"center",children:(0,x.jsx)(s.xu,{marginTop:q,marginBottom:(0,c.pq5)(l),width:tt,onClick:t=>{},animation:f?K.mT:null,borderRadius:"lg",onAnimationEnd:()=>{w(!1)},children:(0,x.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{lt(W,j)},children:[(0,x.jsx)(s.xu,{height:et+"px",width:et+"px",children:(0,x.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,x.jsx)(s.xu,{height:nt+"px",width:nt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,x.jsx)(g.Ee,{width:nt+"px",height:nt+"px",src:j.thumbnail_image,objectFit:"cover"})})})}),(0,x.jsx)(s.xu,{height:et+"px",width:J-et+"px",children:(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,x.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:o+" !important",color:"white !important"},children:(0,B.s)(j.title.toString())}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,c.QaY)(l)?(0,x.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,x.jsxs)(s.xv,{noOfLines:1,fontSize:1*ot+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:o+" !important",color:"white !important"},children:["\xa0"," ",(0,xt.jx)(parseFloat(O),"",l,D)," \xa0"]}),(0,x.jsx)(s.M5,{children:(0,Y.B)(j.price,j.compare_price)?(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.8*ot+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:o+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,xt.jx)(parseFloat(R),"",l,D)]}):(0,x.jsx)(x.Fragment,{})})]}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.M5,{children:(0,x.jsx)(ft.Z,{storeId:l,productId:j.client_product_id,productLink:j.product_link,fontSize:1*ot,fontColor:"white"})})]})]})})]}),(0,x.jsx)(L.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=I?(0,x.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*Q+"px",marginBottom:.1*Q+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Q*rt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(vt,{width:tt,height:"fit-content",event:W,product:j,productVariantOptions:I,baseFontSize:1*ot,onOptionSelected:t=>{!function(t){P(t);const e=F(t);e&&(z(e.price),M(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,x.jsx)(x.Fragment,{})}),(0,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,x.jsx)(s.xu,{width:"100%",height:"100%",children:(0,x.jsx)(wt,{baseFontSize:.8*ot,event:W,product:j,width:"100%",height:"100%"})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib9)(l)?(0,x.jsx)(Ct,{baseFontSize:.8*ot,event:W,product:j,borderRadius:"md",onShopNowClick:t=>{lt(W,j)}}):(0,x.jsx)(x.Fragment,{children:"form"===(0,c._5p)(l)?(0,x.jsx)(jt.default,{baseFontSize:.8*ot,event:W,product:j,width:"100%",height:"100%",showAddedToCart:!0}):(0,x.jsx)(it,{baseFontSize:.8*ot,event:W,product:j,cartState:S.state,cartCount:S.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==S.state?(k(G),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:C,event:W,productList:[j],ctaList:W.cta})):"awaitingVariantSelection"==S.state&&_(E,G)},onCartIconClick:()=>{T()}})})})]})]})})})};var bt=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i]=(0,u.j1)("whatmoreSecondaryColor"),o=(0,u.MO)("whatmoreSecondaryColorShade900"),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[p,v,m,f]=(0,h.Z)(),[w,j]=(0,r.useState)(!1),[y,C]=(0,r.useState)(t.product),{whatmoreUITheme:S}=(0,r.useContext)(Z.I),[b,I]=(0,r.useState)(!(0,c.N8M)(a)),[k,_]=(0,r.useState)(parseFloat(y.price)),[F,T]=(0,r.useState)(parseFloat(y.compare_price)),[E,P]=(0,r.useState)(y.currency),O=t.event;t.productClickHandler,(0,r.useEffect)((()=>{(0,c.N8M)(a)&&(0,xt.Rb)(y,(0,c.Ipo)(a),a).then((t=>{C(t),_(parseFloat(t.price)),T(parseFloat(t.compare_price)),P(t.currency),I(!0)}))}),[]);var L=.68*f,z=.4*L,R=L+"px",M=z+"px",D=L*(.55-.4)+"px",A=.12*z;(0,c.ITD)(a);const{whatmoreWidgetSourceDetails:U}=(0,r.useContext)(Z.I);function X(t){return(0,c.lj5)(a)?t.product_link+"?"+(0,c.awP)(a)+"&"+(0,c.n9s)(a)+"&"+(0,c.vaK)(a):t.product_link}function $(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,N.GF)({userInteractionType:H.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:U,event:t,productList:[i],ctaList:t.cta})})(),j(!0)}return(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:q,marginBottom:(0,c.pq5)(a),width:R,height:"fit-content",boxShadow:"round"==S?"dark-lg":null,onClick:()=>{$(O,y),window.location.href=X(y)},backgroundColor:(0,W.lA)("#ffffff",(0,c.U5_)(a)),animation:w?K.mT:null,borderRadius:"round"==S?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,c.alU)(a),borderColor:(0,c.qPe)(a)},children:[(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,x.jsx)(s.xu,{height:M,width:M,bgColor:o,children:(0,x.jsx)(g.Ee,{width:M,height:M,src:(0,pt.s)(y.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,c.yOX)(a)+" !important"}})}),(0,x.jsxs)(s.xu,{height:M,width:L-z+"px",children:[(0,x.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(a)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,x.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:l+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*A+"px !important"},children:(0,B.s)(null==y.title?"":y.title.toString())}),(0,c.QaY)(a)?(0,x.jsxs)(s.Kq,{direction:(0,c.$zZ)(a)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==S?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[b&&(0,x.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*A+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,c.Uyp)(a)+" !important",margin:"0px !important"},children:[" "+(0,xt.jx)(k,"",a,E)," \xa0"]}),(0,Y.B)(k,F)&&b?(0,x.jsxs)(s.xv,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*A+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:l+" !important",color:(0,c.kPs)(a)+" !important",margin:"0px !important"},children:[" ",(0,xt.jx)(F,"",a,E)]}):(0,x.jsx)(x.Fragment,{})]}):(0,x.jsx)(x.Fragment,{}),""!=(0,c.sG7)(a)&&(0,x.jsxs)(s.xv,{noOfLines:1,fontSize:.9*A+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,c.V3Y)(a)+" !important",color:(0,c.aUT)(a)+" !important",margin:"0px !important"},children:["\xa0",(0,c.sG7)(a)," \xa0"]})]}),(0,c.Fr)(a)?(0,x.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,x.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,x.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:o,sx:{borderRadius:"round"==S?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,x.jsx)(V.Z,{sx:{color:i,fontSize:1.3*A+"px"}})}),(0,x.jsx)(s.xu,{width:"2px"})]})}):(0,x.jsx)(x.Fragment,{})]})]}),(0,c.pp3)(a)&&(0,x.jsx)(s.Kq,{direction:"row",width:"100%",height:D,justifyContent:"center",alignItems:"center",children:(0,x.jsx)(Ct,{baseFontSize:.8*A,event:O,product:y,borderRadius:"md",onShopNowClick:t=>{$(O,y),window.location.href=X(y)}})})]})};var It=function(t){const[e]=(0,u.j1)("whatmoreShopId"),n=(0,c.eyg)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,x.jsx)(bt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,x.jsx)(U,{product:t.product,event:t.event}):"narrow-tile"==n?(0,x.jsx)(St,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,x.jsx)(gt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})},kt=n(6119),_t=n(3388),Ft=n(7643);var Tt=function(t){const[e,n,i,o]=(0,h.Z)(),[r]=(0,u.j1)("whatmoreShopId"),d=(0,u.MO)("isInDesignMode"),p=(0,u.MO)("isDemoBrand"),v=t.event,m=t.productClickHandler,g=(0,c.eyg)(r);if(!(0,_t.kT)(v))return(0,x.jsx)(x.Fragment,{});if(1==v.products.length&&(void 0==v.cta||0==v.cta.length)){const t=v.products[0];return(0,c.rnv)(r)?(0,x.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(St,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})}):(0,x.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,x.jsx)(s.M5,{children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(It,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})})}return(0,x.jsx)(s.M5,{children:(0,x.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,x.jsx)(s.xu,{width:o+"px",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,x.jsxs)(l.tq,{className:"product-tile swiper-slide",slidesPerView:1==v.products.length?1:1.4,initialSlide:v.products.length<=2||(0,c.VqZ)(r)?0:1,centeredSlides:!(0,c.VqZ)(r),modules:[a.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[v.products.map((t=>"oos"!=t.product_status&&(0,x.jsx)(l.o5,{children:(0,x.jsx)(Ft.u,{userInteractionType:H.K.PRODUCT_CTA_VIEW,event:v,productList:[t],triggerFlag:!d&&!p,children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(It,{event:v,product:t,productClickHandler:m},v.event_id+t.product_id)})})},v.event_id+t.product_id))),(0,c.pp3)(r)&&void 0!=v.cta&&v.cta.map((t=>(0,x.jsx)(x.Fragment,{children:""!==t.cta_title.trim()&&(0,x.jsx)(l.o5,{children:(0,x.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,x.jsx)(kt.Z,{cta:t},v.event_id+t.cta_id)})},v.event_id+t.cta_id)})))]})})})})};var Et=function(t){const[e,n]=(0,u.j1)("isProductSwiperCatalogOpen"),i=t.event,o=t.productClickHandler;return(0,r.useContext)(ln).isIOS&&e?(0,x.jsx)(Tt,{event:i,productClickHandler:o},i.event_id):(0,x.jsx)(L.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,x.jsx)(Tt,{event:i,productClickHandler:o},i.event_id)})};function Pt(t){const e=t.event,[n,i,o,r]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont");return(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,x.jsx)(s.M5,{children:(0,x.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,x.jsx)(g.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,x.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,x.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,x.jsx)(E.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Ot=function(t){const[e]=(0,u.j1)("isInDesignMode"),[n]=(0,u.j1)("isDemoBrand"),[i,o]=(0,u.j1)("isProductSwiperCatalogOpen"),[l,a]=(0,j.Z)(),[d,h]=(0,u.j1)("isFirstIndicatorRenderDone"),p=(0,r.useContext)(ln),[v]=(0,u.j1)("whatmoreShopId"),m=t.event,g=t.isLast,f=t.onCloseCallback,w=t.focusRef,C=t.productClickHandler;return(0,x.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,x.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,x.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,x.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,x.jsx)(Pt,{event:m}),(0,x.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,x.jsx)(y,{focusRef:w}),(0,x.jsx)(O,{event:m,onCloseCallback:f})]})]})}),(0,x.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,x.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,x.jsx)(s.xu,{width:"full",margin:"2px",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,x.jsx)(D,{swipeUp:!g})})}):null,void 0!=m.products&&m.products.length>0?(0,x.jsxs)(s.xu,{width:"full",children:[(0,c.Jm1)(v)?(0,x.jsx)(s.xu,{w:"100%",children:(0,x.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,x.jsx)(T,{event:m,onToggle:t=>{o("minimize-button"!==t)}})})}):(0,x.jsx)(x.Fragment,{}),(0,x.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,x.jsx)(Et,{event:m,productClickHandler:C})})]}):(0,x.jsx)("div",{})]})]})})};function Lt(t){const[e,n,i,o]=(0,h.Z)(),[l]=(0,u.j1)("whatmorePrimaryFont"),[a]=(0,u.j1)("whatmoreShopId"),[d,p]=(0,r.useState)(""),v=t.data,m=(t.event,t.product,t.setShowOptionsChart);var f=.4*o*.8*.13;(0,r.useEffect)((()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a&&(t="vanyaclothing.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===v||void 0===v?void 0:v.id}&title=${null===v||void 0===v?void 0:v.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then((t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()})).then((t=>{var e,n,i,o,r,l;p(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=`${S.F4`
|
|
69
69
|
0% {
|
|
70
70
|
transform: translateY(100%);
|
|
71
71
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[364],{8675:function(t,e,n){n.d(e,{Z:function(){return g}});var i=n(3271),o=n(5098),r=n(7313),l=n(9821),a=n(2634),s=n(5180),d=n(686);const p=d.F4`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(1);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: scale(1.05);
|
|
7
|
+
}
|
|
8
|
+
`,c=d.F4`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(1.05);
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
}
|
|
15
|
+
`,h=`\n ${p}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,x=`\n ${c}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var m=n(7753),f=n(7129),u=n(6417);var g=function(t){var e,n,[d,p]=(0,l.Z)();const[c]=(0,m.j1)("whatmorePrimaryFont");var g=(0,r.useContext)(f.V);const w=t.event,y=t.onClick,v=null===(e=t.isOnFocus)||void 0===e||e,j=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,u.jsxs)(i.xu,{animation:j?v?h:x:"none",marginTop:g.tileTopMargin,marginBottom:g.tileBottomMMargin,marginLeft:g.tileLeftMargin,marginRight:g.tileRightMargin,width:p,height:d,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{y(w)},cursor:"pointer",children:[(0,u.jsx)(o.Ee,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,u.jsx)(s.Z,{width:p,height:d}),borderRadius:"lg"}),(0,u.jsx)(i.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,u.jsxs)(i.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,u.jsx)(i.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,u.jsx)(i.Kq,{direction:"column",justifyContent:"flex-start",children:(0,u.jsx)(i.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,u.jsx)(i.Kq,{direction:"row",justifyContent:"space-between",children:(0,u.jsx)(a.Z,{event:w,fontSize:.05*d+"px",maxWidth:.8*p})})})})}),(0,u.jsx)(i.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,u.jsx)(i.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,u.jsx)(i.xu,{width:"full",borderRadius:"lg",children:(0,u.jsxs)(i.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,u.jsx)(i.xv,{color:"white",fontSize:.08*p+"px",fontWeight:"normal",align:"left",children:" "}),(0,u.jsx)(i.xv,{fontSize:.08*p+"px",fontWeight:"normal",align:"left",sx:{fontFamily:c+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,u.jsx)(i.xv,{fontSize:.08*p+"px",fontWeight:"bold",align:"left",sx:{fontFamily:c+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),l=n(6417);e.Z=function(t){var e,n=t.event,a=t.fontSize,s=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:d,bannerText:p,timeToStartInMins:c}=o.Z.getEventStatus(n);return d.name===r.Z.LIVE.name?(0,l.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"bold",color:"white",children:p})})}):(0,l.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"medium",children:p})})})}},4920:function(t,e,n){n.d(e,{Z:function(){return b}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),l=n(7753),a=n(4892),s=n(7129),d=n(6805),p=n(9854),c=n(1092),h=n(5945),x=n(8811),m=n(9363),f=n(6417);var u=function(t){var e,n,r,a,[s,d]=(0,o.Z)();const{whatmoreUITheme:c}=(0,i.useContext)(x.I),[u]=(0,l.j1)("whatmorePrimaryFont"),[g,w]=(0,i.useState)(0),y=(0,l.MO)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,f.jsx)(f.Fragment,{});const j=.3*d,b=j+"px",C=j+"px",P=.07*d,k=P+"px";return(0,f.jsx)("div",{style:{width:d+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,f.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,f.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",C,"important")},style:{width:(0,p.uNj)(y)?b:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.alU)(y),borderColor:(0,p.qPe)(y),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,f.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,p.yOX)(y),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,m.s)(v.products[g].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,f.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",k,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,h.s)(v.products[g].title)})}),(null===(e=v.products[g])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,f.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",d-5-j+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(r=v.products[g])||void 0===r||null===(a=r.product_metadata)||void 0===a?void 0:a.product_type})})]})]},g)})},g=n(3933),w=n(8984);function y(t){var e,[n,a]=(0,o.Z)();const[d]=(0,l.j1)("whatmoreShopId"),[c,h,x]=(0,g.YD)({triggerOnce:!0});var m=(0,i.useContext)(s.V);const y=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*a,b=(0,w.gE)()?t.isOnFocus:h;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),m.showPlayButton&&!v?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==y.event_type&&(0,f.jsx)(r.Z,{sx:{color:(0,p.Ya_)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:c,children:b&&(0,p.PWD)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(u,{event:y})}):(0,f.jsx)("div",{height:"20px"})})]})})}function v(t){var[e,n]=(0,o.Z)();const[i]=(0,l.j1)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function j(t){const[e,n,i,r,a]=(0,o.Z)(),[s]=(0,l.j1)("whatmoreShowViews"),h=(0,l.MO)("whatmoreShopId"),x=t.event,m=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===s&&"show"===(0,p.qcC)(h)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(c.Z,{event:x,fontSize:.07*n+"px"})})}):(0,f.jsx)(f.Fragment,{})})}),d.$w===a[d.YP]?(0,f.jsx)(f.Fragment,{}):m?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(v,{event:x})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(v,{event:x})})]})})}var b=function(t){var e,n,r;const[c,h,m,u,g]=(0,o.Z)();var w=(0,i.useContext)(s.V);const{whatmoreUITheme:v}=(0,i.useContext)(x.I),b=(0,l.MO)("whatmoreShopId"),C=t.event,P=t.onClick,k=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,I=null!==(r=t.animateOnFocus&&(0,p.iWI)(b))&&void 0!==r&&r,R=(0,p.nzC)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",w.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",w.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:h,height:c,borderRadius:"round"==v?"5px":"0px",boxShadow:"round"==v?R:null,borderWidth:(0,p.alU)(b),borderColor:(0,p.qPe)(b),overflow:"hidden",cursor:"pointer"},className:I?k?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(C)},children:[(0,f.jsx)(a.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:k||F,event:C}),(0,f.jsxs)("div",{style:{width:h,height:c},children:[(0,f.jsx)(j,{event:C,isOnFocus:k}),"87043703105"===b||"76467011883"===b||!k&&d.$w!==g[d.YP]?null:(0,f.jsx)(y,{event:C,unfocusedDisplay:!k,isOnFocus:k})]})]})}},9723:function(t,e,n){var i=n(5318);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.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");e.Z=l},3439:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[582],{5582:function(e,t,a){a.r(t),a.d(t,{default:function(){return z}});var n=a(7753),i=a(7313),s=a(2860),r=a(499),o=a(4897),l=a(5160),c=a(9854),d=a(6967),u=a(8984),_=a(58),p=a(4669),m=a(513),h=a(8811),v=a(7300),f=a(6524),g=a(7643),y=a(778),w=a(6417);const b=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(303),a.e(853),a.e(891)]).then(a.bind(a,4095)))),S=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(577),a.e(853),a.e(364),a.e(530)]).then(a.bind(a,5523)))),I=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(380),a.e(690)]).then(a.bind(a,3827)))),k=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(380),a.e(209)]).then(a.bind(a,6071)))),T=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(380),a.e(248)]).then(a.bind(a,1291)))),x=i.lazy((()=>Promise.all([a.e(302),a.e(580)]).then(a.bind(a,3580)))),E=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(577),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(790)]).then(a.bind(a,3218)))),j=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(303),a.e(853),a.e(197)]).then(a.bind(a,1492)))),C=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(367),a.e(303),a.e(411)]).then(a.bind(a,9085)))),L=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(577),a.e(303),a.e(853),a.e(364),a.e(299)]).then(a.bind(a,4362)))),M=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(577),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(196)]).then(a.bind(a,4658)))),O=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(380),a.e(47)]).then(a.bind(a,8767))));var D=function(e){const[t]=(0,n.j1)("isInDesignMode"),[a]=(0,n.j1)("isDemoBrand"),[D]=(0,n.j1)("whatmoreTopBottomPadding"),[A]=(0,n.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:N}=(0,i.useContext)(h.I),[R]=(0,n.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:P}=(0,i.useContext)(h.I),q=(0,n.MO)("isLandingSharedLink"),W=(0,n.MO)("whatmoreShareTemplateId"),G=(0,n.MO)("whatmoreShareStoryId"),K=(0,n.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:z,whatmoreUserInfo:U}=(0,i.useContext)(h.I),[V,B]=(0,i.useState)(-1),[H,F]=(0,i.useState)(null);let Z=e.events,Y=[];if("template-banner-a"!==P){let e=0;for(let t=0;t<(null===Z||void 0===Z?void 0:Z.length);t++){var J,Q,X,$;const a=(null===Z||void 0===Z||null===(J=Z[t])||void 0===J||null===(Q=J.products)||void 0===Q?void 0:Q.length)>0&&(null===Z||void 0===Z||null===(X=Z[t])||void 0===X||null===($=X.products)||void 0===$?void 0:$.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));if(!(0,v.B6)(Z[t])&&!(0,v.WJ)(Z[t])||a&&"12326200"!=R){if((0,v.yC)(null===Z||void 0===Z?void 0:Z[t])){var{status:ee,bannerText:te,timeToStartInMins:ae}=o.Z.getEventStatus(Z[t]);ee.name===r.Z.LIVE.name&&(Y.push({...null===Z||void 0===Z?void 0:Z[t],index:e}),e++)}}else Y.push({...null===Z||void 0===Z?void 0:Z[t],index:e}),e++}}var ne=null;N&&!ne&&(ne=function(e){var t=e.reduce(((e,t,a)=>{var n,i=t.storyset_id;return i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:a,storyset_dynamic_thumbnail:null!==(n=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==n&&n,events:[t]},e}),{}),a=Object.values(t);return a.sort(((e,t)=>e.start_event_index-t.start_event_index)),a}(Y));const ie=z.landingLocationType,se=z.templateType;function re(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,u.KE)()&&!n&&(0,_.QV)(),t||a||(async()=>{const t=ne[e].events[0],a=(0,f.NY)(ie)+(0,f.dS)(se)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,l.wh)(t),(0,p.Tc)(R,s.Xh,s.OW),(0,d.H4)(t.event_id,t.products,"homepage","stories",a,null===t||void 0===t?void 0:t.location,null===U||void 0===U?void 0:U.userType)})();var r=0;null!=i&&ne[e].events.map(((e,t)=>{e.event_id==i&&(r=t)})),B(r),F(e)}function oe(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,u.KE)()&&!n&&(0,_.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return t||a||(async()=>{const t=(0,f.NY)(ie)+(0,f.dS)(se)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,p.Tc)(R,s.Xh,s.pR),(0,d.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void B(e.index);const i=20;var{status:c,bannerText:m,timeToStartInMins:h}=o.Z.getEventStatus(e);h<=i&&c.name!==r.Z.LIVE.name?console.debug(" TODO : show toast on upcoming live event."):B(e.index)}function le(e){return(0,w.jsx)(w.Fragment,{})}return(0,i.useEffect)((()=>{q&&P==(0,f.zv)(W)&&(null!=G&&N?ne.forEach(((e,t)=>{G==e.id&&re(t,!0,K)})):null!=K&&Y.forEach(((e,t)=>{K==e.event_id&&oe(e,!0)})))}),[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"whatmore-widget-container",style:{marginTop:(N?A:D)+"px",marginBottom:(N?A:D)+"px"},children:"template-b"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(b,{events:Y,onClick:oe,heading:e.heading})}):"template-a-1"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(S,{events:Y,onClick:oe,heading:e.heading})}):"template-feed-a"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(L,{events:Y,onClick:oe,heading:e.heading})}):"template-collections-a"===P||"template-c"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(I,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-collections-b"===P||"template-d"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(k,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-collections-c"===P||"template-e"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(T,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-collections-d"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(b,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-collections-e"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-collections-stories"===P||"template-stories"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(O,{events:Y,index:V,setScreen:B,onClick:oe,heading:e.heading})})}):"template-f"===P||"template-collections-f"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(C,{events:Y,onClick:oe,heading:e.heading})})}):"template-banner-a"===P?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.BANNER_WIDGET_VIEW,event:Z[0],triggerFlag:!t&&!a,children:(0,w.jsx)(M,{events:Z})})}):N?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(x,{eventsStories:ne,onClick:re,template:P})})}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Y,onClick:oe,heading:e.heading})})})}),-1==V||-2==V?(0,w.jsx)(le,{}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.EVENT_VIEW,event:Z[V],productList:Z[V].products,cta:Z[V].cta,triggerFlag:!t&&!a,children:(0,w.jsx)(E,{events:Y,index:V,onBack:function(e){(0,c.n2L)(R)&&(0,n.MO)("whatmoreAddedToCart")&&(0,m.D)(R,(()=>{}),100,window.location.hostname,e),B(-1)},slideDirection:N||"horizontal"===(0,c.e8z)(R)?"horizontal":"vertical",eventsStories:ne,initialStoryIndex:H,template:P})})})]})};const A=function(e,t,a){const i=(0,n.MO)("whatmoreShopId");var s=t.reduce(((e,t,a)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),r=Object.keys(s);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var o={};fera.getRatings(r,(e=>{new Promise(((t,a)=>{e.forEach((e=>{o[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(o)})).then((e=>a(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";o={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+r.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{o[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),o))).then((e=>a(e))).catch((e=>console.error(e)))}};var N=a(3388),R=a(7381),P=a(7376),q=a(7008);const W=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var G=function(e){const[t,a]=(0,i.useState)(),[r,o]=(0,i.useState)(),{whatmoreIsStoriesTemplate:l}=(0,i.useContext)(h.I),{whatmoreIsCollectionsTemplate:p}=(0,i.useContext)(h.I),{whatmoreIsBannerTemplate:m}=(0,i.useContext)(h.I),[v]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionId"),b=(0,n.MO)("whatmoreLandingLocationType"),S=(0,n.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(h.I),{whatmoreUserInfo:k,whatmoreIsPreviewMode:T}=(0,i.useContext)(h.I),{whatmoreCollectionUrl:x}=(0,i.useContext)(h.I),[E]=(0,n.j1)("isInDesignMode"),[j]=(0,n.j1)("isDemoBrand"),C=(0,c.cZT)(v)?(0,c._uv)(v)?x:window.location.href.split(/[?#]/)[0]:g,[L,M]=(0,n.j1)("productRatings"),[O,G]=(0,i.useState)(!1);var K=(0,c.efR)(v)?s.Dm+"/v2/events/":s.Gc+"/v2/events/",z=(0,c.efR)(v)?s.Dm+"/v3/events/":s.Gc+"/v3/events/",U=(0,c.efR)(v)?s.Dm+"/get_eventset/":s.Gc+"/get_eventset/",V=(0,c.efR)(v)?s.Dm+"/v2/collection":s.Gc+"/v2/collection",B=(0,c.efR)(v)?s.Dm+"/v2/brand/"+v+"/product-events":s.Gc+"/v2/brand/"+v+"/product-events",H=e.shopId,F="live,upcoming",Z="true";return(0,i.useEffect)((()=>{(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,q.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||r||!(0,u.KE)()||(0,n.MO)("whatmoreVideoPlayerPoolInitiated")||(0,_.b5)(_.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(b.startsWith("product"))if((0,c.C86)(v))e=K.toString()+H.toString()+"?status="+F.toString()+"&is_active="+Z.toString();else{var t=(0,n.MO)("whatmoreProductId");t=(0,c.iXA)(v)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,v):t,e=B.toString()+"?client_product_id="+t.toString()+"&status="+F.toString()+"&event_type=video"}else if(p||"invalid-url"!==x)e=`${V.toString()}?store_id=${H.toString()}&client_collection_id=${"index"==b&&(0,c.igW)(v).length>0?(0,c.igW)(v)[0]:C}`;else if(m){const t=f.ls,a=(0,f.H1)(b);e=U.toString()+H.toString()+"?eventset_type="+t+"&source="+a+"&source_id="+v}else{var i,s,r,d;if(("72201044272"==v||"2665447536"==v&&T)&&!l)e=z.toString()+H.toString()+"?status="+F.toString()+"&is_active="+Z.toString()+"&latitude="+(null!==(i=null===(s=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===s?void 0:s.latitude)&&void 0!==i?i:"")+"&longitude="+(null!==(r=null===(d=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===d?void 0:d.longitude)&&void 0!==r?r:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else e=K.toString()+H.toString()+"?status="+F.toString()+"&is_active="+Z.toString()+(l?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{if(m){const t=f.ls;return(0,N.OC)(e,t)}return(0,N.kW)(e,p||"invalid-url"!==x)})).then((e=>(S&&console.debug("initial received events size : "+e.length),l||p||m?e:(0,N.e8)(e,H)))).then((e=>(null!=e&&0!=e.length&&(0,c.LUY)(v)&&function(e,t,a){const i=setInterval((()=>{null===(0,n.MO)("productRatings")&&A(e,t,a)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(v,e,(e=>{M(e)})),e))).then((e=>{null==e||0==e.length||l||m||(0,c.NOv)(H,e),a((j||E)&&null==e?W:e),G(!0)})).catch((e=>{o(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===b?t&&t.length>0&&(0,P.PB)({userInteractionType:y.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===b&&(t&&t.length>0||(0,c.miB)(v))&&(0,P.PB)({userInteractionType:y.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),(O&&(null==t||0==t.length)||r)&&h.$.forEach((e=>{var t,a,n,i;const s=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),r=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),o=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]'),l=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;(l||o||r||s)&&(r&&c||s&&c||l&&c||o&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||r?(0,w.jsx)("div",{}):(S&&(0,R.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),S&&console.debug("final transformed events data : "+JSON.stringify(t)),S&&console.debug("valid events size : "+t.length),(0,w.jsx)(D,{heading:e.heading,events:t}))},K=a(3933);var z=function(e){const[t]=(0,n.j1)("whatmoreShopId"),[a]=(0,n.j1)("whatmoreHeading"),[s,r]=(0,i.useState)(["initial",window.pageYOffset]),[o,l]=(0,i.useState)(!1),d="2665447536"==t?30:10,u=(0,n.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,p.ll)(t),!(0,c.wc0)(t))return;const e=d;let a=window.pageYOffset,n=!1;const i=()=>{const t=window.pageYOffset;var i,s;Math.abs(t-a)<e?n=!1:(s=!0,r(i=[t>a?"scrolled-down":"scrolled-up",t]),i[1]>d&&l(s),a=t>0?t:0,n=!1)},s=()=>{n||(window.requestAnimationFrame(i),n=!0)};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)}),[]);const[_,m,h]=(0,K.YD)({triggerOnce:!0});return(0,w.jsx)("div",{ref:_,style:{display:"block"},children:o||m||u||!(0,c.wc0)(t)?(0,w.jsx)(G,{heading:a,shopId:t}):(0,w.jsx)("div",{})})}},499:function(e,t){t.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(e,t,a){var n=a(499);t.Z=class{static getEventStatus(e){e.time_zone="GMT+5:30";var t=e.start_time+":00",a=e.end_time,i=e.scheduled_date,s=e.status,r=e.time_zone;if(s.toUpperCase()==n.Z.LIVE.name)return{status:n.Z.LIVE,bannerText:" "+n.Z.LIVE.name+" ",timeToStartInMins:0};if(s.toUpperCase()==n.Z.UPCOMING.name){var o=new Date(i+" "+t+" "+r),l=(new Date(i+" "+a+" "+r),function(e){var t=new Date,a=(e.getTime()-t.getTime())/1e3,i=a/60,s=i/60,r=s/24;return a<=0?{status:n.Z.COMPLETED,bannerText:" "+n.Z.COMPLETED.name+" ",timeToStartInMins:0}:a>=1&&a<=30?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(a)+" sec ",timeToStartInMins:a/60}:i<60?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:s<24?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(s)+" hr ",timeToStartInMins:60*s}:r<7?{status:n.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+" ",timeToStartInMins:60*r*24}:{status:n.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+e.event_id+", status : "+e.status),{status:n.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(e,t,a){a.d(t,{OC:function(){return o},e8:function(){return s},kT:function(){return n},kW:function(){return r},xg:function(){return i}});const n=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},s=function(e,t){if(null!=e)return e.filter((e=>1==n(e)))},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const o=function(e,t){var a;if(null==e)return[];if(!("eventsets"in e))return[];const n=null!==(a=e.eventsets[t])&&void 0!==a?a:null;return n?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(n):[]}},7376:function(e,t,a){a.d(t,{GF:function(){return i},PB:function(){return o},Z2:function(){return s},y4:function(){return r}});var n=a(733);function i(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function s(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function r(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function o(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}}}]);
|