whatmore-react-assets 1.0.1761 → 1.0.1763

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/static/js/262.2d189fac.chunk.js +1 -0
  3. package/static/js/519.5671d536.chunk.js +1 -0
  4. package/static/js/59.564b512e.chunk.js +2 -0
  5. package/static/js/620.e9701f57.chunk.js +1 -0
  6. package/static/js/{688.18e75153.chunk.js → 688.dd2bf717.chunk.js} +1 -1
  7. package/static/js/{714.19ddda6b.chunk.js → 714.44231c94.chunk.js} +1 -1
  8. package/static/js/atc-with-form.e73051d1.chunk.js +1 -0
  9. package/static/js/banner-template-a.babd8bda.chunk.js +1 -0
  10. package/static/js/carousel-template-f.18ecbd2b.chunk.js +1 -0
  11. package/static/js/{carousel-template-feed.bf6284ee.chunk.js → carousel-template-feed.286f8e72.chunk.js} +1 -1
  12. package/static/js/event-click.052a6906.chunk.js +2 -0
  13. package/static/js/location-details.bd3f495b.chunk.js +1 -0
  14. package/static/js/product-page-view.cfb33537.chunk.js +1 -0
  15. package/static/js/spotlight-view.ae0b659e.chunk.js +1 -0
  16. package/whatmore.js +2 -2
  17. package/static/js/262.e9c2b756.chunk.js +0 -1
  18. package/static/js/519.09d808e4.chunk.js +0 -1
  19. package/static/js/59.d4ff8aa0.chunk.js +0 -2
  20. package/static/js/620.8b81307a.chunk.js +0 -1
  21. package/static/js/atc-with-form.3041ebf5.chunk.js +0 -1
  22. package/static/js/banner-template-a.e429a3e9.chunk.js +0 -1
  23. package/static/js/carousel-template-f.6024cc46.chunk.js +0 -1
  24. package/static/js/event-click.056c4885.chunk.js +0 -2
  25. package/static/js/location-details.74afe936.chunk.js +0 -1
  26. package/static/js/product-page-view.a8f57571.chunk.js +0 -1
  27. package/static/js/spotlight-view.36245070.chunk.js +0 -1
@@ -84,7 +84,7 @@
84
84
  0% {
85
85
  transform: translateY(100%);
86
86
  }
87
- `} 0.5s`,St=null===M||void 0===M||null===(e=M.options)||void 0===e?void 0:e.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"))}),[kt,It]=(0,i.useState)(-1!==St?null===(n=M.options)||void 0===n||null===(o=n[St])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[_t,zt]=(0,i.useState)({});(0,i.useEffect)(()=>{-1!==St&&"whatmore"!==(0,p.NCy)(wt)&&async function(){const t=await(0,$t._N)(X);zt(t)}()},[]);let Et=-1,Tt=-1!==St&&null!==_t&&void 0!==_t&&_t.product&&(null===_t||void 0===_t||null===(l=_t.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===_t||void 0===_t||null===(d=_t.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[St])||void 0===h||null===(g=h.values)||void 0===g?void 0:g.length)?null===_t||void 0===_t||null===(m=_t.product)||void 0===m||null===(w=m.images)||void 0===w?void 0:w.map(t=>{var e,n,i,o,r,l,a,d,s,c,u,h,p,v;const x=null===_t||void 0===_t||null===(e=_t.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.findIndex(t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===_t||void 0===_t||null===(i=_t.product)||void 0===i||null===(o=i.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Et,(null===_t||void 0===_t||null===(a=_t.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[St])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===_t||void 0===_t||null===(u=_t.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Et)],src:null===t||void 0===t?void 0:t.src}}):[],At=[];if("whatmore"==(0,p.NCy)(wt)&&(null===M||void 0===M||null===(C=M.images)||void 0===C?void 0:C.length)>0){var Nt;var Ft;if(-1!==(null===M||void 0===M||null===(Nt=M.options)||void 0===Nt?void 0:Nt.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"))})))At=null===M||void 0===M||null===(Ft=M.images)||void 0===Ft?void 0:Ft.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Et+1<(null===_t||void 0===_t||null===(j=_t.product)||void 0===j||null===(y=j.options)||void 0===y||null===(S=y[St])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Tt=[]),(0,f.jsxs)(dt.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"auto",opacity:"100%",borderTopRadius:"24px",animation:yt,boxShadow:"0 -8px 32px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04)",border:"1px solid rgba(255, 255, 255, 0.6)",backdropFilter:"blur(8px)",overflow:"hidden",children:[(0,f.jsx)(c.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",children:(0,f.jsx)(te,{setOpenShopNow:U,setLockSwiper:Y,FONT_SIZE:R})}),(0,f.jsx)(c.az,{height:"fit-content",minHeight:D+20+"px",position:"relative",children:(0,f.jsx)(s.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,f.jsx)(dt.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(ae.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",position:"relative",children:(0,f.jsx)(b._,{width:O+"px",height:D+"px",borderRadius:"16px",src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:X.handle,sx:{objectFit:"cover !important",filter:"saturate(1.1) contrast(1.05)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},_hover:{transform:"scale(1.02)",filter:"saturate(1.15) contrast(1.1)"},fallback:(0,f.jsx)(W.A,{width:O+"px",height:D+"px",borderRadius:"16px"})})})}),dataList:Tt.length>0&&!Tt.includes(null)?null===(_=Tt)||void 0===_?void 0:_.filter(t=>(null===t||void 0===t?void 0:t.color)==kt):At.length>0?[null===(z=At)||void 0===z?void 0:z.find(t=>(null===t||void 0===t?void 0:t.color)==kt)]:null===M||void 0===M||null===(E=M.images)||void 0===E?void 0:E.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:O+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,f.jsxs)(dt.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,f.jsx)(ie,{data:M,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,getVariantPrice:ce,selectedVariantId:it,itemPrice:at,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:mt}),"11829268"===wt&&(0,f.jsx)(le,{liveScreenWidth:P}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsx)(re,{data:M,dividerColor:(0,p.R6d)(wt),setSelectedColor:It,finalArr:Tt,finalArrExternal:At,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,selectOptionFirstHandler:Ct,selectOptionSecondHandler:bt,selectOptionThirdHandler:jt,getVariantPrice:ce,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:it,isVariantAvailable:K})]}),(0,f.jsx)(c.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",children:(0,f.jsx)(Jt,{position:"relative",selectedVariantId:it,data:M,FONT_SIZE:R,PRODUCT_TILE_WIDTH:L,product:X,itemQuantity:rt,cartItemCount:ut,addToCartFlag:pt,setAddToCartFlag:vt,soldOutFlag:xt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]})}const se=(t,e,n,i)=>{var o;if(!e&&!n&&!i)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find(t=>(!e||t.option1===e)&&(!n||t.option2===n)&&(!i||t.option3===i));return r?r.id:void 0},ce=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find(t=>t.id===e))||void 0===i?void 0:i.price},ue=(t,e)=>{var n;const i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>t.id==e);return void 0===i?null:null===i||void 0===i||null===(o=i.featured_image)||void 0===o?void 0:o.src;var o},he=(0,i.createContext)({setShowOptionsChart:null});var pe=function(t){const e=t.event,n=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,i.useState)(!1);return(0,f.jsx)(he.Provider,{value:{setShowOptionsChart:s},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(de,{data:n,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(Ht,{data:n,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var ve=function(t){var e,[n,o,r,l]=(0,x.A)();const[a,d]=(0,i.useState)(!1),[m,C]=(0,i.useState)(),[b,j]=(0,i.useState)(),y=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=i.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,A=null===(e=t.showOverlay)||void 0===e||e,N="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),A?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Mt,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(y),y);j(t),C(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:m,currentProduct:b,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ge(t){var e,n,[i,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map(t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t))})}var me=n(3788),fe=n(758);const we=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Ce=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var be=function(t){var e,n,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,g=t.whatmoreShareEventId,m=t.event,w=null===(e=t.showShareText)||void 0===e||e,b=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,j=(0,v.Xd)("whatmoreShopId"),y=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,i.useContext)(U.B),[z,E,T,A]=(0,x.A)(),N=null!==(o=t.iconSize)&&void 0!==o?o:.1*A*(0,p.xkB)(j);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var n;!function(t){y||S||(async()=>{(0,l.Zh)(t)})()}(m),n="event_product_link"===(0,p.moP)(j)?m.products[0].product_link||"":window.location.pathname,n=("event_product_link"===(0,p.moP)(j)?"":window.location.hostname)+n+"?wtt="+d+"&wsid="+h+"&weid="+g,(0,p.BLb)(j)&&(n=n+"&"+(0,p.VCz)(j)+"&utm_campaign=video-share&utm_medium="+e);const i={title:(0,p.kZI)(j),text:`${(0,p.dmA)(j)} \n ${n} ${"50529403072"!==j&&(0,p.ZX9)(j)?"\n \n -via Whatmore":""}`};navigator.share&&!Ce?navigator.share(i):(t.setIsModalOpen(!0),t.setShareText([i,n]))}return"63046287536"==j?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:b+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(fe.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:N,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,H.kz)({userInteractionType:X.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:m,productList:m.products,ctaList:m.cta})}}),w&&(0,p.ViG)(j)?(0,f.jsxs)(C.E,{fontSize:.3*N+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",m.total_share>(0,p.vDV)(j)?we(m.total_share):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},je=n(3420),ye=n(7170);var Se=function(t){var e,n,o,r,a;const d=(0,v.Xd)("whatmoreShopId"),h=(0,v.Xd)("whatmorePrimaryFont"),g=(0,v.Xd)("whatmoreLikedEvents"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),b=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(U.B),[y]=(0,i.useState)(()=>Math.floor(50*Math.random()+100)),S=t.event,[k,I]=(0,i.useState)(null!==(e=g[S.event_id])&&void 0!==e&&e),[_,z,E,T]=(0,x.A)(),A=.1*T*(0,p.xkB)(d);function N(t,e){m||w||(async()=>{(0,l.$B)(t,e)})()}function F(){(0,v.t2)("whatmoreLikedEvents",{...g,[S.event_id]:!k}),k?(N(S,-1),(0,H.kz)({userInteractionType:X.O.VIDEO_UNLIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})):(N(S,1),(0,H.kz)({userInteractionType:X.O.VIDEO_LIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})),I(!k)}const P=("78232846646"==d?null!==(n=S.total_like)&&void 0!==n?n:y:null!==(o=S.total_like)&&void 0!==o?o:0)+(k?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[k?(0,f.jsx)(ye.A,{sx:{boxShadow:3,color:(0,p.MJ6)(d),fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}):(0,f.jsx)(je.A,{sx:{boxShadow:3,color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(d)?(0,f.jsxs)(C.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:h+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",P>=(0,p.LGx)(d)?we(P):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[b])||void 0===a?void 0:a.like)&&void 0!==r?r:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ke=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})}),Ie=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"})})}),_e=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})}),ze=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,f.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var Ee=t=>{const e=t.shareText,[n,o]=(0,i.useState)("Copy link"),[r,l]=(0,i.useState)(""),[a,d]=(0,i.useState)(window.innerWidth);(0,i.useEffect)(()=>{const t=()=>d(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const s=a<380,c=s?Math.min(t.iconSize,22):Math.min(t.iconSize,28),u=s?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"10px",padding:"12px 16px 20px 16px",width:"90%",maxWidth:"420px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:[(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,f.jsxs)("div",{onClick:()=>{window.location.href="https://www.whatmore.ai"},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:[(0,f.jsx)("img",{className:"whatmore-label",src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px",width:Math.min(t.iconSize,28)+"px"}}),(0,f.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:"Whatmore"})]}),(0,f.jsx)(F.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var n;t.stopPropagation();const i=encodeURIComponent(null===(n=e[0])||void 0===n?void 0:n.text);window.open(`https://wa.me/?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ke,{iconSize:c}),(0,f.jsx)("p",{style:{fontSize:u,margin:0,textAlign:"center"},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var n;t.stopPropagation();const i=encodeURIComponent(null===(n=e[0])||void 0===n?void 0:n.text);window.open(`https://twitter.com/intent/tweet?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(Ie,{iconSize:c}),(0,f.jsx)("p",{style:{fontSize:u,margin:0,textAlign:"center"},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e[1]),o("Copied"),l("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(_e,{iconSize:c}),(0,f.jsx)("p",{style:{fontSize:u,color:r,margin:0,textAlign:"center"},children:n})]}),(0,f.jsxs)("div",{onClick:async t=>{var n;t.stopPropagation();const i=(null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.text)||"",o=null===e||void 0===e?void 0:e[1];try{navigator.share?await navigator.share({title:"Check this out",text:i,url:o}):(await navigator.clipboard.writeText(o),alert("Link copied. You can paste it anywhere!"))}catch(r){console.error("Share failed:",r)}},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ze,{iconSize:c}),(0,f.jsx)("p",{style:{fontSize:u,margin:0,textAlign:"center"},children:"More"})]})]})]})})},Te=n(1941);var Ae=function(t){var e,n;const i=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,v.Xd)("whatmorePrimaryFont"),r=(0,v.Xd)("whatmoreShopId"),l=null!==(n=t.fontSize)&&void 0!==n?n:"8",[a]=(0,Te.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`,g=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(gt.N,{href:g,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:"Whatmore"})]})]})})},Ne=n(9879),Fe=n(9556),Pe=n(2209);var Le=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Be=t=>{var e;const n={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,r]=(0,i.useState)(!1),[l,a]=(0,i.useState)(null),[d,s]=(0,i.useState)(null),h=(0,i.useRef)(null),p=(0,i.useContext)(U.B);return(0,i.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,i.useEffect)(()=>{!o&&h.current&&s(h.current.offsetHeight)},[o]),(0,f.jsxs)(c.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Pe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Fe.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===n||void 0===n?void 0:n.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Le,{}),(0,f.jsx)(Fe.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:n.options.map((e,n)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var n;a(e),r(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(C.E,{py:5,color:"gray.800",children:e})},n))})})]})},Oe=n(4533),De=n(9935);var Re=t=>{var e,n;const[o,r]=(0,i.useState)(""),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),g=(0,v.Xd)("whatmoreSecondaryColor"),m=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,b=(0,i.useContext)(U.B),j=()=>{var e,n;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:b})):a("Please enter valid contact info.")},y=()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:b})};return(0,f.jsx)(dt.s,{bg:g,p:"6%",borderRadius:"md",boxShadow:"md",width:"90vw",mx:"auto",minH:"40vh",maxH:"80vh",position:"fixed",top:"30%",left:"50%",transform:"translateX(-50%)",direction:"column",align:"center",justify:"center",zIndex:100,overflow:"hidden",children:d?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{y()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(De.A,{sx:{color:u?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:g,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(dt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,f.jsx)("input",{fontFamily:m,type:"number"===(null===(n=t.question)||void 0===n?void 0:n.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&j()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(C.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:j,width:"50%",children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var We=t=>{const[e,n]=(0,i.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Re,{question:t.question,onEmailSubmit:t=>{n(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Ve=t=>{var e;const[n,o]=(0,i.useState)(null),r=t.questionIndex,l=t.questionList;if((0,i.useEffect)(()=>{if(!(r>=l.length))return()=>(0,Oe.Hm)()},[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(We,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Be,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map(t=>null===t||void 0===t?void 0:t.value),onAnswerSelect:t=>{o(t)},selectedAnswer:n,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Qe=n(6118);const Me=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,f.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,f.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})});var He=function(t){const e=(0,v.Xd)("whatmoreShopId"),n=t.event,[i,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,me.s)(null===n||void 0===n?void 0:n.event_hls_url);if(t)try{const e=await fetch(t),i=await e.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${n.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Me,{iconSize:a})})})})},Xe=n(3305);function Ue(t){var e;const n=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,i.useContext)(U.B),[g]=(0,v.QN)("whatmoreSecondaryColor"),[m]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(m),b=null!==(e=(0,p.qAx)(m))&&void 0!==e?e:[g,w,g,w,g],j=(0,i.useRef)(null);(0,i.useEffect)(()=>{j.current&&j.current.play()},[]);const y=(0,me.s)(null===n||void 0===n?void 0:n.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:"video"==(0,st.B)(y)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===n||void 0===n?void 0:n.thumbnail_image,url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:y,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Ye=function(t){var e,n,o;const[r,a,d]=(0,Xe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g,m]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[y]=(0,v.QN)("whatmoreShopId"),S=(0,i.useContext)(Pn),{whatmoreEventsBrowsingTemplate:k}=(0,i.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,F=t.storySetId,L=t.isLast,B=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,i.useContext)(U.B),K=.1*E,[G,Z]=(0,i.useState)(!1),[J,tt]=(0,i.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,H.kz)({userInteractionType:X.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map(t=>`${t.product_link} \n`),n=(0,p.dzp)(y),i="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(n+`&text=${i}&type=phone_number`,"_blank")}const nt=t=>{it.current&&!it.current.contains(t.target)&&Z(!1)},it=(0,i.useRef)(null);(0,i.useEffect)(()=>(G?document.addEventListener("click",nt):document.removeEventListener("click",nt),()=>{document.removeEventListener("click",nt)}),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Dt.S,{userInteractionType:X.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(n=e[t.qIndex])||void 0===n?void 0:n.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Ve,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:it,className:"whatmore-share-modal",style:{zIndex:100,position:"absolute",boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.6)",width:"75%",top:"45%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,f.jsx)(Ee,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(ge,{progress:xe(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Ue,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(P,{event:N,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!L})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(He,{event:N})})})]}),(0,p.oZc)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(y)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Se,{event:N})}),(0,ht.Yt)(k)&&"50529403072"===y&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})})]}),(0,p.iQ5)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Ot.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(y)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:N,onToggle:t=>{m("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),g&&(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:N,productClickHandler:D,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Ae,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},$e=n(5491),qe=n.n($e),Ke=n(6493);var Ge=function(t){var e,n,o,r,l,a,[d,w,C,b]=(0,x.A)();const[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(),[I,_]=(0,i.useState)(),[z,E]=(0,i.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),A=t.event,N=t.storyId,F=t.onBack,P=i.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,M=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,i.useContext)(U.B),{questionList:G}=(0,i.useContext)(Pn),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,i.useState)(),[et,nt]=(0,i.useState)({}),it=(t,e)=>{nt(n=>({...n,[t]:e}))};(0,i.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const ot="center";let rt;try{rt=qe()(()=>{R()},1e3,{leading:!0,trailing:!1})}catch(lt){console.log(lt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:b,height:C,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:ot,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:b/C,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(A)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const n=xe(t,e);W({watch_time:t,video_duration:e});const i=z.is_video_ended;n>=99&&B&&!i?(rt(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:i})},event:A,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Ye,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(T),T);_(t),k(e),y(!0),D(!0),(0,H.kz)({userInteractionType:X.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L,productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)(f.Fragment,{}),!0===j?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{y(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)("div",{})]})})},Ze=n(2039),Je=n(6613),tn=n(1085),en=n(5727);var nn=function(t){var[e,n,i,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,tn.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(en.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,tn.bo)()}}),(0,f.jsx)(C.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},on=n(3294),rn=n(9821);var ln=function(t){var e,n;const i=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[x,g]=(0,Vt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),w=null===(n=t.showOverlay)||void 0===n||n;function C(){!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&g(!x)}if((0,Je.MN)()&&0==m)return(0,rn._)()?(0,f.jsx)(nn,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.ij)(o)||(0,Ze.Il)(o))return(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.Th)(o)){var{status:b,bannerText:j,timeToStartInMins:y}=d.A.getEventStatus(o);if(b.name===a.A.LIVE.name)return(0,f.jsx)(ve,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:w},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},an=n(4806),dn=n.n(an),sn=n(2804),cn=n(6834);function un(t){var e;const[n,o]=(0,i.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(cn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"up")}}):(0,f.jsx)(sn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"down")}})})}var hn=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",l=null!==(i=t.fontSize)&&void 0!==i?i:50,a=t.handleClick;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,f.jsx)(un,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(un,{type:"right",onClick:a,fontSize:l})]})})},pn=n(964),vn=n(3330);var xn=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,i.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:n(o.current.activeIndex,e),activeIndex:n(o.current.activeIndex+1,e),nextIndex:n(o.current.activeIndex+2,e)}:{prevIndex:n(o.current.activeIndex-2,e),activeIndex:n(o.current.activeIndex-1,e),nextIndex:n(o.current.activeIndex,e)}},function(t){return n(o.current.activeIndex+t)}]};var gn=function(t,e){const n=(0,i.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var l=o-i.changedTouches[0].clientX,a=r-i.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var mn=function(t,e){const n=(0,i.useRef)(qe()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";n.current(o,l)}]},fn=n(4638);var wn=function(t){const e=t.events,n=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,i.useState)(!0),[b,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,S]=(0,i.useState)(!1),[k,I]=(0,i.useState)({}),{setCloseClickComponent:_}=(0,i.useContext)(Pn),{slideDirection:z}=(0,i.useContext)(Pn),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[A,N]=xn(n,e.length),[F,P]=gn(z,10),[L]=mn("vertical",10),[B,O]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:V}=(0,i.useContext)(U.B);function M(){O(!1)}function Y(t){M(),setTimeout(()=>{a(t)},500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=n;const{questionList:G}=(0,i.useContext)(Pn);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(N("right"),D.slideNext())}function J(t,e){N(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(dn(),{isOpen:B,onRequestClose:M,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(fn.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,Q.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(y)return;const e=P(t);e&&J(0,e)},onWheel:t=>{y||L(t,t=>{J(0,t)})},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{R(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products})},onSlideChange:t=>{var n;w?C(!1):(b||j(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}),n=e[A().activeIndex],g||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.lB)(n),"index"===T?((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t,null===n||void 0===n?void 0:n.location,null===V||void 0===V?void 0:V.userType)):T.startsWith("product")||"embed"===T?((0,vn.sendVideoViewEventToGA)(E,pn.DK,pn.K1),(0,Oe.Ch)(n.event_id,n.products,pn.DK,pn.K1,t)):T.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(E,pn.Sx,pn.rz),(0,Oe.Ch)(n.event_id,n.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t))})(),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map(i=>(0,f.jsx)(o.qr,{children:({isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a})=>{const d=i?"activeIndex":o?"prevIndex":"nextIndex",s=A()[d];"activeIndex"==d&&(K=Math.max(K,s),0==s&&(K=0));const c=(null===G||void 0===G?void 0:G.length)>0&&i&&l&&(s>n||K<n&&s>0)&&s>=K&&s%(0,p.uSp)(E)==n%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ln,{event:e[s],showQuestion:c,onBack:Y,isPlaying:1==e.length||i&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+i))}),e.length>1&&!y&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(hn,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},Cn=n(7119);n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042);const bn=({children:t,customClass:e,show:n,closeCallback:i})=>Cn.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:i}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);bn.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var jn=bn;n(1012);var yn=function(t){var e,[n,a,d,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(!1),[F,L]=(0,i.useState)(null);function B(){N(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),V=O.length,M=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,i.useRef)(0);function $(t){B(),setTimeout(()=>{R(t)},500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,i.useEffect)(()=>(N(!0),()=>{}),[]),y($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,i.useState)({}),tt=parseInt(Math.min(5,O.length)),et="90518552861"===I&&tt>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:tt>=5;return(0,f.jsx)(jn,{show:A,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,Q.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{height:"fit-content",width:h*tt,position:"90518552861"===I&&tt>=5?"relative":void 0,children:["90518552861"===I&&tt>=5&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,f.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,f.jsxs)(o.RC,{onInit:t=>{L(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:et,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;b?j(!1):(w||C(!0),e=O[t.activeIndex],g||m||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,vn.sendVideoViewEventToGA)(I,pn.DK,pn.K1),(0,Oe.Ch)(e.event_id,e.products,pn.DK,pn.K1,t)):_.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(I,pn.Sx,pn.rz),(0,Oe.Ch)(e.event_id,e.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t))})(),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:R})}),W.slice(D,O.length+D).map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:o,isDuplicate:r})=>{if(t)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!0,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=V-1&&(Y.current=1)}catch(l){console.log(l)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:M,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},Sn=n(340),kn=n(5089),In=n(572),_n=n(8603);var zn=function(t){const[e,n,i,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var En=function(t){var e;const n=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=n.events;var[h,g,m,w]=(0,x.A)();const[C,b]=(0,Vt.A)(),[j]=(0,v.QN)("isInDesignMode"),[y]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,i.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,i.useState)(null),[A,N]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,i.useContext)(U.B),[L,B]=xn(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function V(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[Q,M]=(0,i.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Q,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(D)+(0,ht.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);j||y||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(S,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map(e=>(0,f.jsx)(o.qr,{children:({isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(d){const o=e?"activeIndex":i?"prevIndex":"nextIndex",l=c[L()[o]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Ze.ij)(l)||(0,Ze.Il)(l)?(0,f.jsx)(Ge,{event:l,totalSiblingEvents:c.length,indexAmongSiblings:L()[o],onBack:O,isPlaying:d&&e&&r,isLast:!1,setLockSwiper:N,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{V("left")},midOpenSpaceClickHandler:()=>{!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&b(!C)},rightOpenSpaceClickHandler:()=>{V("right")},storyId:n.id,source:on.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+l.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(zn,{})})}},"event-story-view-slide-"+e))})})};var Tn=function(t){const e=t.onBack,n=t.eventsStories,a=t.initialStoryIndex,[d]=(0,v.QN)("isInDesignMode"),[s]=(0,v.QN)("isDemoBrand"),[c,h]=(0,i.useState)(!0),{setCloseClickComponent:p}=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),[g,m]=xn(a,n.length),[w,C]=gn("horizontal",50),[b]=mn("vertical",30),j=t.eventIndex,[y,S]=(0,i.useState)(!0),[k,I]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B);function E(){S(!1)}function T(t){E(),setTimeout(()=>{e(t)},500)}p(T);const A=_.landingLocationType,N=_.templateType;function F(t){k&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?k.slideNext():k.slidePrev())}function P(t,e){F(e)}return(0,f.jsx)(dn(),{isOpen:y,onRequestClose:E,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{w(t)},onTouchEnd:t=>{const e=C(t);e&&P(0,e)},onWheel:t=>{b(t,t=>{P(0,t)})},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,i;I(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta})},onSlideChange:t=>{var e,i;c?h(!1):(!function(t){const e=(0,ht.Wd)(A)+(0,ht.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);d||s||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(x,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(n[g().activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map(t=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:e,isNext:i,isVisible:o,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(En,{stories:n[g()[l]],onBack:T,isActive:t&&o,isNext:i,isPrev:e,onStoryCompleteCallback:F,nextStories:n[g().nextIndex],prevStories:n[g().prevIndex],initialEventIndex:a==g()[l]?j:0},"event-story-view-"+n[g()[l]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var An=function(t){var e,n,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[g]=(0,v.QN)("whatmoreSecondaryColor"),m=t.event,w=(t.onBack,i.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),C=null!==(n=t.heightFactor)&&void 0!==n?n:1,j="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=C,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:j,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Ze.ij)(m)||(0,Ze.Il)(m)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",url:m.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:m}):(0,f.jsx)(b._,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+g+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:j,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Nn=function(t){var e,n,[a,d,h,p]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B),[E,T]=(0,i.useState)(!1),[A,N]=(0,i.useState)(null);function F(){T(!1)}t.events;const L=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(n=e.events[0])||void 0===n?void 0:n.brand;function W(t){F(),setTimeout(()=>{B(t)},500)}(0,i.useEffect)(()=>(T(!0),()=>{}),[]),y(W);const V=_.landingLocationType,Q=_.templateType;function M(t){A&&!A.isEnd&&("right"==t?A.slideNext():A.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(jn,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,n;N(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,n;b?j(!1):(w||C(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);g||m||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:B})}),O.map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(En,{stories:t,onBack:W,isActive:n&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?L:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return i||o?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(An,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Fn=(0,_n.A)({key:"whatmore-css-sv"}),Pn=(0,i.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ln=function(t){var e,n,o;const[r,l,a]=(0,Xe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,i.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,i.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,g=t.onBack,m=t.eventsStories,w=t.initialStoryIndex,C=(0,p.M3_)(d),b="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:h.length>1?"horizontal":"vertical",j="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,i.useLayoutEffect)(()=>{(0,p.hpk)(d)&&(window.location.href.includes(C)?history.replaceState(null,"","#"+C):history.pushState(null,"","#"+C),window.addEventListener("popstate",()=>{window.location.href.includes(C)||g()}))},[]),delete kn.Ay.styles.global,c?(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(Nn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x}):(0,f.jsx)(Tn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x})})})}):(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(wn,{events:h,eventIndex:x,onBack:g}):(0,f.jsx)(yn,{events:h,eventIndex:x,onBack:g})})})})}},5144:function(t,e,n){n.d(e,{jd:function(){return o},so:function(){return r}});var i=n(8283);const o=`\n ${i.i7`
87
+ `} 0.5s`,St=null===M||void 0===M||null===(e=M.options)||void 0===e?void 0:e.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"))}),[kt,It]=(0,i.useState)(-1!==St?null===(n=M.options)||void 0===n||null===(o=n[St])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[_t,zt]=(0,i.useState)({});(0,i.useEffect)(()=>{-1!==St&&"whatmore"!==(0,p.NCy)(wt)&&async function(){const t=await(0,$t._N)(X);zt(t)}()},[]);let Et=-1,Tt=-1!==St&&null!==_t&&void 0!==_t&&_t.product&&(null===_t||void 0===_t||null===(l=_t.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===_t||void 0===_t||null===(d=_t.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[St])||void 0===h||null===(g=h.values)||void 0===g?void 0:g.length)?null===_t||void 0===_t||null===(m=_t.product)||void 0===m||null===(w=m.images)||void 0===w?void 0:w.map(t=>{var e,n,i,o,r,l,a,d,s,c,u,h,p,v;const x=null===_t||void 0===_t||null===(e=_t.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.findIndex(t=>"Color"==(null===t||void 0===t?void 0:t.name)||"Colour"==(null===t||void 0===t?void 0:t.name)||"COLOR"==(null===t||void 0===t?void 0:t.name));return{color:(null===t||void 0===t?void 0:t.variant_ids.length)>0?null===_t||void 0===_t||null===(i=_t.product)||void 0===i||null===(o=i.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Et,(null===_t||void 0===_t||null===(a=_t.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[St])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===_t||void 0===_t||null===(u=_t.product)||void 0===u||null===(h=u.options)||void 0===h||null===(p=h[x])||void 0===p||null===(v=p.values)||void 0===v?void 0:v[Math.max(0,Et)],src:null===t||void 0===t?void 0:t.src}}):[],At=[];if("whatmore"==(0,p.NCy)(wt)&&(null===M||void 0===M||null===(C=M.images)||void 0===C?void 0:C.length)>0){var Nt;var Ft;if(-1!==(null===M||void 0===M||null===(Nt=M.options)||void 0===Nt?void 0:Nt.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"))})))At=null===M||void 0===M||null===(Ft=M.images)||void 0===Ft?void 0:Ft.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc}))}return Et+1<(null===_t||void 0===_t||null===(j=_t.product)||void 0===j||null===(y=j.options)||void 0===y||null===(S=y[St])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Tt=[]),(0,f.jsxs)(dt.s,{id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",direction:"column",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",maxHeight:"auto",opacity:"100%",borderTopRadius:"24px",animation:yt,boxShadow:"0 -8px 32px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04)",border:"1px solid rgba(255, 255, 255, 0.6)",backdropFilter:"blur(8px)",overflow:"hidden",children:[(0,f.jsx)(c.az,{position:"sticky",top:"0",bg:"linear-gradient(135deg, #fafafa 0%, #ffffff 100%)",backdropFilter:"blur(8px)",zIndex:"20",children:(0,f.jsx)(te,{setOpenShopNow:U,setLockSwiper:Y,FONT_SIZE:R})}),(0,f.jsx)(c.az,{height:"fit-content",minHeight:D+20+"px",position:"relative",children:(0,f.jsx)(s.o,{marginBottom:"1px",px:"0px",py:"10px",children:(0,f.jsx)(dt.s,{width:"fit-content",height:"fit-content",overflow:"hidden",position:"relative",children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(ae.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",position:"relative",children:(0,f.jsx)(b._,{width:O+"px",height:D+"px",borderRadius:"16px",src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:X.handle,sx:{objectFit:"cover !important",filter:"saturate(1.1) contrast(1.05)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},_hover:{transform:"scale(1.02)",filter:"saturate(1.15) contrast(1.1)"},fallback:(0,f.jsx)(W.A,{width:O+"px",height:D+"px",borderRadius:"16px"})})})}),dataList:Tt.length>0&&!Tt.includes(null)?null===(_=Tt)||void 0===_?void 0:_.filter(t=>(null===t||void 0===t?void 0:t.color)==kt):At.length>0?[null===(z=At)||void 0===z?void 0:z.find(t=>(null===t||void 0===t?void 0:t.color)==kt)]:null===M||void 0===M||null===(E=M.images)||void 0===E?void 0:E.map(t=>({src:t.includes("https")?t:"https:"+t})),spacing:10,defaultHeight:O+"px",defaultWidth:D+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})})}),(0,f.jsxs)(dt.s,{id:"wht-shopnow-title-content",direction:"column",flex:"1",sx:{"&::-webkit-scrollbar":{width:"0px"}},children:[(0,f.jsx)(ie,{data:M,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,getVariantPrice:ce,selectedVariantId:it,itemPrice:at,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:mt}),"11829268"===wt&&(0,f.jsx)(le,{liveScreenWidth:P}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsx)(re,{data:M,dividerColor:(0,p.R6d)(wt),setSelectedColor:It,finalArr:Tt,finalArrExternal:At,product:X,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:L,FONT_SIZE:R,selectOptionFirstHandler:Ct,selectOptionSecondHandler:bt,selectOptionThirdHandler:jt,getVariantPrice:ce,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:it,isVariantAvailable:K})]}),(0,f.jsx)(c.az,{position:"sticky",bottom:"0",left:"0",right:"0",zIndex:"10",children:(0,f.jsx)(Jt,{position:"relative",selectedVariantId:it,data:M,FONT_SIZE:R,PRODUCT_TILE_WIDTH:L,product:X,itemQuantity:rt,cartItemCount:ut,addToCartFlag:pt,setAddToCartFlag:vt,soldOutFlag:xt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]})}const se=(t,e,n,i)=>{var o;if(!e&&!n&&!i)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find(t=>(!e||t.option1===e)&&(!n||t.option2===n)&&(!i||t.option3===i));return r?r.id:void 0},ce=(t,e)=>{var n,i;return null===t||void 0===t||null===(n=t.variants)||void 0===n||null===(i=n.find(t=>t.id===e))||void 0===i?void 0:i.price},ue=(t,e)=>{var n;const i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(t=>t.id==e);return void 0===i?null:null===i||void 0===i||null===(o=i.featured_image)||void 0===o?void 0:o.src;var o},he=(0,i.createContext)({setShowOptionsChart:null});var pe=function(t){const e=t.event,n=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,i.useState)(!1);return(0,f.jsx)(he.Provider,{value:{setShowOptionsChart:s},children:(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(de,{data:n,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})}),d?(0,f.jsx)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,f.jsx)(c.az,{width:"full",height:"fit-content",children:(0,f.jsx)(Ht,{data:n,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var ve=function(t){var e,[n,o,r,l]=(0,x.A)();const[a,d]=(0,i.useState)(!1),[m,C]=(0,i.useState)(),[b,j]=(0,i.useState)(),y=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=i.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,A=null===(e=t.showOverlay)||void 0===e||e,N="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:l,height:r,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:l/r,children:(0,f.jsx)(w,{height:"100%",width:"100%",url:S.event_hls_url,isPlaying:_,event:S})})})}),A?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Mt,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(y),y);j(t),C(e),d(!0),E(!0)}})})}):(0,f.jsx)(f.Fragment,{}),!0===a?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:m,currentProduct:b,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const xe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ge(t){var e,n,[i,o,r,l]=(0,x.A)();const[a]=(0,v.QN)("whatmoreSecondaryColor"),[d]=(0,v.QN)("whatmoreSecondaryColorShade900"),s=t.progress,h=null!==(e=t.totalSiblings)&&void 0!==e?e:1,p=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,f.jsx)(u.B,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(h).keys()].map(t=>(0,f.jsx)(u.B,{width:"100%",height:.004*r+"px",backgroundColor:t<p?a:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==p?(0,f.jsx)(c.az,{height:"100%",width:s+"%",bgColor:a,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,f.jsx)(f.Fragment,{})},"event-progress-bar-slab-"+t))})}var me=n(3788),fe=n(758);const we=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,Ce=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var be=function(t){var e,n,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,g=t.whatmoreShareEventId,m=t.event,w=null===(e=t.showShareText)||void 0===e||e,b=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,j=(0,v.Xd)("whatmoreShopId"),y=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,i.useContext)(U.B),[z,E,T,A]=(0,x.A)(),N=null!==(o=t.iconSize)&&void 0!==o?o:.1*A*(0,p.xkB)(j);function F(){const e=(0,v.Xd)("whatmoreLandingLocationType");var n;!function(t){y||S||(async()=>{(0,l.Zh)(t)})()}(m),n="event_product_link"===(0,p.moP)(j)?m.products[0].product_link||"":window.location.pathname,n=("event_product_link"===(0,p.moP)(j)?"":window.location.hostname)+n+"?wtt="+d+"&wsid="+h+"&weid="+g,(0,p.BLb)(j)&&(n=n+"&"+(0,p.VCz)(j)+"&utm_campaign=video-share&utm_medium="+e);const i={title:(0,p.kZI)(j),text:`${(0,p.dmA)(j)} \n ${n} ${"50529403072"!==j&&(0,p.ZX9)(j)?"\n \n -via Whatmore":""}`};navigator.share&&!Ce?navigator.share(i):(t.setIsModalOpen(!0),t.setShareText([i,n]))}return"63046287536"==j?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:b+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(fe.A,{sx:{transform:"scaleX(1)",color:"white",fontSize:N,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F(),(0,H.kz)({userInteractionType:X.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:m,productList:m.products,ctaList:m.cta})}}),w&&(0,p.ViG)(j)?(0,f.jsxs)(C.E,{fontSize:.3*N+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",m.total_share>(0,p.vDV)(j)?we(m.total_share):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},je=n(3420),ye=n(7170);var Se=function(t){var e,n,o,r,a;const d=(0,v.Xd)("whatmoreShopId"),h=(0,v.Xd)("whatmorePrimaryFont"),g=(0,v.Xd)("whatmoreLikedEvents"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),b=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(U.B),[y]=(0,i.useState)(()=>Math.floor(50*Math.random()+100)),S=t.event,[k,I]=(0,i.useState)(null!==(e=g[S.event_id])&&void 0!==e&&e),[_,z,E,T]=(0,x.A)(),A=.1*T*(0,p.xkB)(d);function N(t,e){m||w||(async()=>{(0,l.$B)(t,e)})()}function F(){(0,v.t2)("whatmoreLikedEvents",{...g,[S.event_id]:!k}),k?(N(S,-1),(0,H.kz)({userInteractionType:X.O.VIDEO_UNLIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})):(N(S,1),(0,H.kz)({userInteractionType:X.O.VIDEO_LIKED,widgetSourceDetails:j,event:S,productList:S.products,ctaList:S.cta})),I(!k)}const P=("78232846646"==d?null!==(n=S.total_like)&&void 0!==n?n:y:null!==(o=S.total_like)&&void 0!==o?o:0)+(k?1:0);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[k?(0,f.jsx)(ye.A,{sx:{boxShadow:3,color:(0,p.MJ6)(d),fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}):(0,f.jsx)(je.A,{sx:{boxShadow:3,color:"white",fontSize:A,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),F()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(d)?(0,f.jsxs)(C.E,{fontSize:.3*A+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:h+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",P>=(0,p.LGx)(d)?we(P):null!==(r=null===O.m||void 0===O.m||null===(a=O.m[b])||void 0===a?void 0:a.like)&&void 0!==r?r:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ke=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})}),Ie=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-twitter-x",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"})})}),_e=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*t},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-copy",viewBox:"0 0 16 16",children:(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"})})}),ze=({iconSize:t})=>(0,f.jsx)("div",{style:{backgroundColor:"#E0E0E0",borderRadius:"50%",padding:.3*t,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"black",viewBox:"0 0 16 16",children:[(0,f.jsx)("circle",{cx:"3.5",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,f.jsx)("circle",{cx:"12.5",cy:"8",r:"1.5"})]})});var Ee=t=>{const e=(0,v.Xd)("whatmoreShopId"),n=t.shareText,[o,r]=(0,i.useState)("Copy link"),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(window.innerWidth),[c,u,h,g]=(0,x.A)(),m=.1*g*(0,p.xkB)(e)*.5;(0,i.useEffect)(()=>{const t=()=>s(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const w=d<380,C=w?Math.min(t.iconSize,22):Math.min(t.iconSize,28),b=w?Math.min(t.iconSize,10):Math.min(t.iconSize,12);return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"10px",padding:"12px 16px 20px 16px",width:"90%",maxWidth:"420px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:[(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:"6px"},children:[(0,f.jsxs)("div",{onClick:()=>{"22907887"!==e&&(window.location.href="https://www.whatmore.ai")},style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"6px"},children:["22907887"!==e?(0,f.jsx)("img",{className:"whatmore-label",src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px",width:Math.min(t.iconSize,28)+"px"}}):(0,f.jsx)(fe.A,{sx:{color:"#595959",fontSize:m,backgroundColor:"transparent",borderRadius:0,padding:0}}),(0,f.jsx)("span",{style:{fontWeight:"bold",fontSize:"16px",color:"#1a1a1a"},children:"22907887"===e?"Share On":"Whatmore"})]}),(0,f.jsx)(F.A,{className:"close-rounded-icon",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",justifyContent:"space-around",alignItems:"flex-start",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://wa.me/?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ke,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var e;t.stopPropagation();const i=encodeURIComponent(null===(e=n[0])||void 0===e?void 0:e.text);window.open(`https://twitter.com/intent/tweet?text=${i}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(Ie,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(n[1]),r("Copied"),a("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(_e,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,color:l,margin:0,textAlign:"center"},children:o})]}),(0,f.jsxs)("div",{onClick:async t=>{var e;t.stopPropagation();const i=(null===n||void 0===n||null===(e=n[0])||void 0===e?void 0:e.text)||"",o=null===n||void 0===n?void 0:n[1];try{navigator.share?await navigator.share({title:"Check this out",text:i,url:o}):(await navigator.clipboard.writeText(o),alert("Link copied. You can paste it anywhere!"))}catch(r){console.error("Share failed:",r)}},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",flex:1},children:[(0,f.jsx)(ze,{iconSize:C}),(0,f.jsx)("p",{style:{fontSize:b,margin:0,textAlign:"center"},children:"More"})]})]})]})})},Te=n(1941);var Ae=function(t){var e,n;const i=null===(e=t.brandName)||void 0===e?void 0:e.replace(/\s+/g,"_"),o=(0,v.Xd)("whatmorePrimaryFont"),r=(0,v.Xd)("whatmoreShopId"),l=null!==(n=t.fontSize)&&void 0!==n?n:"8",[a]=(0,Te.A)(),d="landscape"===a?"customer_referral_desktop":"customer_referral_mobile",s="60183543963"==r,h=(0,v.Xd)("whatmoreLandingLocationType"),x=t.isOutside||!h.includes("index")||r.includes("STR")?`https://www.whatmore.ai/shoppable-videos?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${i}&utm_medium=referral&utm_campaign=${d}`,g=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(gt.N,{href:g,isExternal:!0,textDecoration:"none",children:(0,p.SGs)(r)&&(0,f.jsxs)(u.B,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"6px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:s?"marketed by":"Powered By"}),s?(0,f.jsx)(c.az,{padding:"1px 4px",bg:"#fff",width:"fit-content",children:(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/gudworld/Letsmapit_Logo.png",style:{objectFit:"contain",width:1.7*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"letsmapit"})}):(0,f.jsxs)(c.az,{display:"flex",alignItems:"center",gap:"4px",children:[(0,f.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/new_whatmore_logo.png",style:{objectFit:"contain",width:1.3*l,backgroundColor:"transparent",borderRadius:"0px"},alt:"whatmore"}),(0,f.jsx)("p",{ref:e=>{var n;e&&(e.style.setProperty("font-family",o,"important"),e.style.setProperty("font-size",l+"px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("color",null!==(n=t.color)&&void 0!==n?n:"white"))},children:"Whatmore"})]})]})})},Ne=n(9879),Fe=n(9556),Pe=n(2209);var Le=()=>(0,f.jsxs)(c.az,{as:"svg",width:"46px",height:"46px",viewBox:"0 0 24 24",fill:"none",className:"tick-animation",marginBottom:"20px",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"gray",strokeWidth:"2",fill:"none"}),(0,f.jsx)("path",{d:"M7 12l3 3 7-7",stroke:"gray",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]});var Be=t=>{var e;const n={text:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,options:(null===t||void 0===t?void 0:t.options)||[]},[o,r]=(0,i.useState)(!1),[l,a]=(0,i.useState)(null),[d,s]=(0,i.useState)(null),h=(0,i.useRef)(null),p=(0,i.useContext)(U.B);return(0,i.useEffect)(()=>{if(o){const e=setTimeout(()=>{t.setIsQuestionVisible(!1)},1e3);return()=>clearTimeout(e)}},[o]),(0,i.useEffect)(()=>{!o&&h.current&&s(h.current.offsetHeight)},[o]),(0,f.jsxs)(c.az,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"320px",width:"fit-content",bg:"white",borderRadius:"lg",boxShadow:"md",display:"flex",flexDirection:"column",maxWidth:"90%",maxHeight:"90%",overflowY:"visible",ref:h,height:d?`${d}px`:"auto",children:[(0,f.jsx)(c.az,{position:"absolute",top:"-10px",right:"-10px",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"full",padding:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:"10",onClick:()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:p})},children:(0,f.jsx)(Pe.A,{})}),(0,f.jsx)(c.az,{bg:"gray.700",borderTopRadius:"lg",py:3,px:6,display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",children:(0,f.jsx)(Fe.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===n||void 0===n?void 0:n.text})}),(0,f.jsx)(c.az,{flex:"1",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:5,px:6,width:"100%",children:o?(0,f.jsxs)(c.az,{flex:"1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[(0,f.jsx)(Le,{}),(0,f.jsx)(Fe.D,{as:"h3",size:"md",color:"gray.700",fontWeight:"medium",textAlign:"center",mt:4,fontSize:"lg",children:"Thank you for your response!"})]}):(0,f.jsx)(u.B,{spacing:5,width:"100%",align:"center",children:n.options.map((e,n)=>(0,f.jsx)(c.az,{px:4,borderWidth:2,borderRadius:"md",cursor:"pointer",bg:l===e?"gray.200":"white",borderColor:l===e?"gray.400":"gray.200",_hover:{bg:"gray.200"},onClick:()=>(e=>{var n;a(e),r(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.id,response:e},widgetSourceDetails:p})})(e),transition:"background-color 0.2s, border-color 0.2s",display:"flex",alignItems:"center",width:"100%",children:(0,f.jsx)(C.E,{py:5,color:"gray.800",children:e})},n))})})]})},Oe=n(4533),De=n(9935);var Re=t=>{var e,n;const[o,r]=(0,i.useState)(""),[l,a]=(0,i.useState)(""),[d,s]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),g=(0,v.Xd)("whatmoreSecondaryColor"),m=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,b=(0,i.useContext)(U.B),j=()=>{var e,n;(()=>{const{type:e}=(null===t||void 0===t?void 0:t.question)||{};return"number"===e?/^\d{10}$/.test(o):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)})()?(s(!0),(0,H.kz)({userInteractionType:X.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id,response:o,type:"number"===(null===t||void 0===t||null===(n=t.question)||void 0===n?void 0:n.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:b})):a("Please enter valid contact info.")},y=()=>{var e;t.setIsQuestionVisible(!1),(0,H.kz)({userInteractionType:X.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:b})};return(0,f.jsx)(dt.s,{bg:g,p:"6%",borderRadius:"md",boxShadow:"md",width:"90vw",mx:"auto",minH:"40vh",maxH:"80vh",position:"fixed",top:"30%",left:"50%",transform:"translateX(-50%)",direction:"column",align:"center",justify:"center",zIndex:100,overflow:"hidden",children:d?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{fontSize:"2xl",fontWeight:"bold",children:"CONGRATULATIONS!"}),(0,f.jsx)(c.az,{my:"4%",fontSize:"xl",children:"Claim Now"})]}),(0,f.jsx)(c.az,{position:"absolute",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then(()=>{h(!0),setTimeout(()=>{y()},1e3),setTimeout(()=>h(!1),2e3)},()=>{console.error("Failed to copy the coupon code")})},cursor:"pointer",children:[(0,f.jsxs)(c.az,{bg:"white",border:"2px dashed black",borderRadius:"md",p:"2%",display:"flex",alignItems:"center",justifyContent:"space-between",mt:"4%",children:[(0,f.jsx)(c.az,{as:"span",fontWeight:"bold",color:"black",children:(0,p.TH)(x)}),(0,f.jsx)(De.A,{sx:{color:u?{whatmoreSecondaryColor:g}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:g,color:"white",fontSize:"12px",borderRadius:"md",px:"2%",py:"0.5%",textAlign:"center",children:"Copied!"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.az,{textAlign:"center",color:"white",children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"22px",fontWeight:"bold",children:w})}),(0,f.jsx)(c.az,{marginBottom:"10%",fontSize:"md",children:(0,p.aRV)(x)})]}),(0,f.jsx)(c.az,{position:"fixed",top:"2%",right:"2%",zIndex:20,children:(0,f.jsx)(P,{onCloseCallback:y})}),(0,f.jsxs)(dt.s,{mt:"4%",align:"center",direction:"column",width:"80%",children:[(0,f.jsx)(c.az,{sx:{bg:"white",border:"2px solid #4A4A4A",borderRadius:"8px",paddingLeft:"4%",display:"flex",alignItems:"center",marginBottom:"6%",width:"100%",height:"auto",minH:"48px"},children:(0,f.jsx)("input",{fontFamily:m,type:"number"===(null===(n=t.question)||void 0===n?void 0:n.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&j()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(C.E,{color:"red.500",mb:"4% !important",fontSize:"md",textAlign:"center",width:"100%",children:l}),(0,f.jsx)(c.az,{as:"button",bg:"#D3D3D3",color:"#343434",borderRadius:"md",fontWeight:"bold",height:"35px",display:"flex",alignItems:"center",justifyContent:"center",onClick:j,width:"50%",children:(0,f.jsx)(C.E,{fontFamily:m,fontSize:"0.8em",padding:"2%",color:g,children:"SUBMIT"})})]})]})})};var We=t=>{const[e,n]=(0,i.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Re,{question:t.question,onEmailSubmit:t=>{n(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Ve=t=>{var e;const[n,o]=(0,i.useState)(null),r=t.questionIndex,l=t.questionList;if((0,i.useEffect)(()=>{if(!(r>=l.length))return()=>(0,Oe.Hm)()},[]),r>=l.length)return;const a=null===l||void 0===l?void 0:l[r];return"string"===(null===a||void 0===a?void 0:a.type)||"number"===(null===a||void 0===a?void 0:a.type)?(0,f.jsx)(c.az,{children:(0,f.jsx)(We,{setIsQuestionVisible:t.setIsQuestionVisible,question:a,placeholder:"number"===(null===a||void 0===a?void 0:a.type)?"Enter your phone number":"Enter your email"})}):(0,f.jsx)(c.az,{children:(0,f.jsx)(Be,{question:a,options:null===a||void 0===a||null===(e=a.answers)||void 0===e?void 0:e.values.map(t=>null===t||void 0===t?void 0:t.value),onAnswerSelect:t=>{o(t)},selectedAnswer:n,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Qe=n(6118);const Me=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-download",viewBox:"0 0 16 16",children:[(0,f.jsx)("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),(0,f.jsx)("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"})]})});var He=function(t){const e=(0,v.Xd)("whatmoreShopId"),n=t.event,[i,o,r,l]=(0,x.A)(),a=.09*l*(0,p.xkB)(e);return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{onClick:async function(){const t=(0,me.s)(null===n||void 0===n?void 0:n.event_hls_url);if(t)try{const e=await fetch(t),i=await e.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${n.event_id}.mp4`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(e){console.error("Video download failed:",e)}},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:(0,f.jsx)(Me,{iconSize:a})})})})},Xe=n(3305);function Ue(t){var e;const n=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,i.useContext)(U.B),[g]=(0,v.QN)("whatmoreSecondaryColor"),[m]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(m),b=null!==(e=(0,p.qAx)(m))&&void 0!==e?e:[g,w,g,w,g],j=(0,i.useRef)(null);(0,i.useEffect)(()=>{j.current&&j.current.play()},[]);const y=(0,me.s)(null===n||void 0===n?void 0:n.storyset_thumbnail_image);return(0,f.jsx)(f.Fragment,{children:h?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.14*t.width+"px",sx:{boxShadow:"0px 2px 1px 0px "+b[0]+"50, 0px -2px 1px 0px "+b[1]+"50, 2px 0px 1px 0px "+b[2]+"50, -2px 0px 1px 0px "+b[3]+"80, 2px -2px 1px 0px "+b[4]+"80, -2px 2px 1px 0px "+b[0]+"DA, 2px 2px 1px 0px "+b[1]+"DA, -2px -2px 1px 0px "+b[2]+"DA"},children:"video"==(0,st.B)(y)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",poster:null===n||void 0===n?void 0:n.thumbnail_image,url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:y,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*t.width+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Ye=function(t){var e,n,o;const[r,a,d]=(0,Xe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[g,m]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[y]=(0,v.QN)("whatmoreShopId"),S=(0,i.useContext)(Pn),{whatmoreEventsBrowsingTemplate:k}=(0,i.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),N=t.event,F=t.storySetId,L=t.isLast,B=t.onCloseCallback,O=t.focusRef,D=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,i.useContext)(U.B),K=.1*E,[G,Z]=(0,i.useState)(!1),[J,tt]=(0,i.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(N,1)})(),(0,H.kz)({userInteractionType:X.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:N,productList:null===N||void 0===N?void 0:N.products,ctaList:null===N||void 0===N?void 0:N.cta});const e=N.products.map(t=>`${t.product_link} \n`),n=(0,p.dzp)(y),i="50529403072"==y?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${N.products.length>1?"these products":"this product"} I saw on ${null===(t=N.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(n+`&text=${i}&type=phone_number`,"_blank")}const nt=t=>{it.current&&!it.current.contains(t.target)&&Z(!1)},it=(0,i.useRef)(null);(0,i.useEffect)(()=>(G?document.addEventListener("click",nt):document.removeEventListener("click",nt),()=>{document.removeEventListener("click",nt)}),[G]);const ot=(()=>{const t=(0,v.Xd)("whatmoreShopId");return"Free"==(0,p.yt9)(t)})()&&"portrait"==r;return(0,f.jsxs)(c.az,{width:"full",height:"full",borderRadius:"md",children:[t.isQuestionVisible&&(0,f.jsx)(Dt.S,{userInteractionType:X.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(n=e[t.qIndex])||void 0===n?void 0:n.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Ve,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:it,className:"whatmore-share-modal",style:{zIndex:100,position:"absolute",boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.6)",width:"75%",top:"45%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,f.jsx)(Ee,{shareText:J,setShareText:tt,iconSize:K,isModalOpen:G,setIsModalOpen:Z})}),(!t.isQuestionVisible||t.qIndex>=(null===t||void 0===t||null===(o=t.questionList)||void 0===o?void 0:o.length))&&(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsxs)(u.B,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[S.showVideoPlayingData?(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,f.jsx)(ge,{progress:xe(W.current_time,W.video_duration),totalSiblings:V,indexAmongSiblings:Q})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{width:"full",margin:"2px",marginTop:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Ue,{event:N,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(j.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(P,{event:N,onCloseCallback:B})]})]})})]}),(0,f.jsxs)(u.B,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"34%",height:"100%",onClick:()=>{Y()},sx:{display:"block !important"}}),(0,f.jsx)(c.az,{width:"33%",height:"100%",onClick:()=>{$()},sx:{display:"block !important"}})]}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[S.totalEvents>1&&!w&&S.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!L})})}):null,(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",position:"absolute",right:4,bottom:"30%",children:(0,f.jsxs)(c.az,{display:"flex",flexDirection:"column",alignItems:"center",children:["78232846646"==y&&(0,f.jsxs)(f.Fragment,{children:[" ","portrait"==r&&S.totalEvents>1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Qe.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(N,"right")}})})]}),(0,f.jsx)(c.az,{height:"fit-content",position:"relative",marginBottom:"18px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(He,{event:N})})})]}),(0,p.oZc)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{width:"fit-content",paddingY:"12px",position:"relative",children:(0,f.jsxs)(u.B,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",maxWidth:"55px",style:{marginTop:"2px"},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(y)&&(0,f.jsxs)(c.az,{height:"fit-content",position:"relative",children:[(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(Se,{event:N})}),(0,ht.Yt)(k)&&"50529403072"===y&&(0,f.jsx)(c.az,{ml:"auto",width:"fit-content",paddingY:"12px",children:(0,f.jsxs)(u.B,{gap:"4px",marginRight:"-3px",direction:"column",justifyContent:"flex-end",alignItems:"center",cursor:"pointer",onClick:et,children:[(0,f.jsx)(ke,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(C.E,{fontSize:K*(0,p.LOH)(y)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(y)})]})})]}),(0,p.iQ5)(y)&&!(0,ht.Yt)(k)?(0,f.jsx)(c.az,{height:"fit-content",paddingY:"2px",position:"relative",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(be,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:F,whatmoreShareEventId:N.event_id,event:N,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Ot.Z_)(N)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(y)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:N,onToggle:t=>{m("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),g&&(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:N,productClickHandler:D,productCartCounts:t.productCartCounts,onCartCountChange:t.onCartCountChange})})]}):(0,f.jsx)(f.Fragment,{})]}),ot&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",bg:"rgba(52, 52, 52, 0.9)",py:"3px",justifyContent:"center",children:(0,f.jsx)(Ae,{brandName:null===N||void 0===N?void 0:N.brand,fontSize:.033*E})})]})]})},$e=n(5491),qe=n.n($e),Ke=n(6493);var Ge=function(t){var e,n,o,r,l,a,[d,w,C,b]=(0,x.A)();const[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(),[I,_]=(0,i.useState)(),[z,E]=(0,i.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),A=t.event,N=t.storyId,F=t.onBack,P=i.useRef(),L=t.changeSlide,B=t.isPlaying,O=t.isLast,D=t.setLockSwiper,R=t.onVideoEndedCallback,W=t.progressUpdateCallback,V=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,Q=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,M=null===(o=t.showOverlay)||void 0===o||o,Y=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},$=null!==(l=t.midOpenSpaceClickHandler)&&void 0!==l?l:()=>{},q=null!==(a=t.rightOpenSpaceClickHandler)&&void 0!==a?a:()=>{},{whatmoreWidgetSourceDetails:K}=(0,i.useContext)(U.B),{questionList:G}=(0,i.useContext)(Pn),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,i.useState)(),[et,nt]=(0,i.useState)({}),it=(t,e)=>{nt(n=>({...n,[t]:e}))};(0,i.useEffect)(()=>{tt(t.showQuestion)},[t.showQuestion]);const ot="center";let rt;try{rt=qe()(()=>{R()},1e3,{leading:!0,trailing:!1})}catch(lt){console.log(lt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:b,height:C,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:ot,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:b/C,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(A)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const n=xe(t,e);W({watch_time:t,video_duration:e});const i=z.is_video_ended;n>=99&&B&&!i?(rt(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:i})},event:A,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),M?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(Ye,{focusRef:P,event:t.event,isLast:O,onCloseCallback:t=>{F(t),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta})},productClickHandler:async t=>{const e=await(0,g.M)(t,(0,p.NCy)(T),T);_(t),k(e),y(!0),D(!0),(0,H.kz)({userInteractionType:X.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:A,productList:A.products,ctaList:A.cta}),(0,v.t2)("whatmoreAllowAutoSlide",!1)},videoPlayingData:z,totalSiblingEvents:V,indexAmongSiblings:Q,questionList:G,isQuestionVisible:J&&Z<(null===G||void 0===G?void 0:G.length),qIndex:Z,setIsQuestionVisible:tt,leftOpenSpaceClickHandler:Y,midOpenSpaceClickHandler:$,rightOpenSpaceClickHandler:q,storySetId:N,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:L,productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)(f.Fragment,{}),!0===j?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:ot,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,f.jsx)(pe,{focusRef:P,event:t.event,isLast:O,onCloseCallback:()=>F(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{y(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)},productCartCounts:et,onCartCountChange:it})})}):(0,f.jsx)("div",{})]})})},Ze=n(2039),Je=n(6613),tn=n(1085),en=n(5727);var nn=function(t){var[e,n,i,o]=(0,x.A)();const r=(0,v.Xd)("whatmoreShopId"),l=t.event,a=t.isPlaying,d="center";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(m.A,{height:"100%",width:"100%",url:(0,me.s)((0,Ke.lP)(l)),isPlaying:a,timeUpdateCallback:function(t,e){},event:l,source:t.source})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,tn.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(en.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,tn.bo)()}}),(0,f.jsx)(C.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},on=n(3294),rn=n(9821);var ln=function(t){var e,n;const i=t.changeSlide,o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,s=t.isLast,c=t.setLockSwiper,u=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),h=t.progressUpdateCallback,[x,g]=(0,Vt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),w=null===(n=t.showOverlay)||void 0===n||n;function C(){!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&g(!x)}if((0,Je.MN)()&&0==m)return(0,rn._)()?(0,f.jsx)(nn,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.ij)(o)||(0,Ze.Il)(o))return(0,f.jsx)(Ge,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{C()},midOpenSpaceClickHandler:()=>{C()},rightOpenSpaceClickHandler:()=>{C()},showOverlay:w,source:on.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:i},"shopping-video-view"+o.event_id);if((0,Ze.Th)(o)){var{status:b,bannerText:j,timeToStartInMins:y}=d.A.getEventStatus(o);if(b.name===a.A.LIVE.name)return(0,f.jsx)(ve,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:w},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,f.jsx)("div",{})},an=n(4806),dn=n.n(an),sn=n(2804),cn=n(6834);function un(t){var e;const[n,o]=(0,i.useState)(!1),r=t.onClick,l=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,f.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(cn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"up")}}):(0,f.jsx)(sn.A,{sx:{color:"white",fontSize:l+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{o(!0),setTimeout(()=>{o(!1)},500),r(t,"down")}})})}var hn=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",l=null!==(i=t.fontSize)&&void 0!==i?i:50,a=t.handleClick;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,f.jsx)(un,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(un,{type:"right",onClick:a,fontSize:l})]})})},pn=n(964),vn=n(3330);var xn=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,i.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:n(o.current.activeIndex,e),activeIndex:n(o.current.activeIndex+1,e),nextIndex:n(o.current.activeIndex+2,e)}:{prevIndex:n(o.current.activeIndex-2,e),activeIndex:n(o.current.activeIndex-1,e),nextIndex:n(o.current.activeIndex,e)}},function(t){return n(o.current.activeIndex+t)}]};var gn=function(t,e){const n=(0,i.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var l=o-i.changedTouches[0].clientX,a=r-i.changedTouches[0].clientY;return"vertical"==t&&Math.abs(a)>e||"horizontal"==t&&Math.abs(l)>e?"vertical"==t?a>0?"right":"left":l>0?"right":"left":null}]};var mn=function(t,e){const n=(0,i.useRef)(qe()((t,e)=>{t(e)},300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";n.current(o,l)}]},fn=n(4638);var wn=function(t){const e=t.events,n=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,i.useState)(!0),[b,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,S]=(0,i.useState)(!1),[k,I]=(0,i.useState)({}),{setCloseClickComponent:_}=(0,i.useContext)(Pn),{slideDirection:z}=(0,i.useContext)(Pn),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[A,N]=xn(n,e.length),[F,P]=gn(z,10),[L]=mn("vertical",10),[B,O]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:V}=(0,i.useContext)(U.B);function M(){O(!1)}function Y(t){M(),setTimeout(()=>{a(t)},500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=n;const{questionList:G}=(0,i.useContext)(Pn);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(N("right"),D.slideNext())}function J(t,e){N(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(dn(),{isOpen:B,onRequestClose:M,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(fn.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,Q.YU)("#000000",13)},onTouchStart:t=>{F(t)},onTouchEnd:t=>{if(y)return;const e=P(t);e&&J(0,e)},onWheel:t=>{y||L(t,t=>{J(0,t)})},children:[(0,f.jsx)(o.RC,{speed:400,threshold:tt,slidesPerView:1,direction:z,modules:[r.dK,r.FJ],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{R(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products})},onSlideChange:t=>{var n;w?C(!1):(b||j(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}),n=e[A().activeIndex],g||m||null===n||void 0===n||!n.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==n&&void 0!==n&&n.isRelatedEvent?"R":"E")+"_"+(null===n||void 0===n?void 0:n.event_id);(0,l.lB)(n),"index"===T?((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t,null===n||void 0===n?void 0:n.location,null===V||void 0===V?void 0:V.userType)):T.startsWith("product")||"embed"===T?((0,vn.sendVideoViewEventToGA)(E,pn.DK,pn.K1),(0,Oe.Ch)(n.event_id,n.products,pn.DK,pn.K1,t)):T.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(E,pn.Sx,pn.rz),(0,Oe.Ch)(n.event_id,n.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(E,pn.TB,pn.Dk),(0,Oe.Ch)(n.event_id,n.products,pn.TB,pn.Dk,t))})(),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:W,event:e[A().activeIndex],productList:e[A().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map(i=>(0,f.jsx)(o.qr,{children:({isActive:i,isPrev:o,isNext:r,isVisible:l,isDuplicate:a})=>{const d=i?"activeIndex":o?"prevIndex":"nextIndex",s=A()[d];"activeIndex"==d&&(K=Math.max(K,s),0==s&&(K=0));const c=(null===G||void 0===G?void 0:G.length)>0&&i&&l&&(s>n||K<n&&s>0)&&s>=K&&s%(0,p.uSp)(E)==n%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(ln,{event:e[s],showQuestion:c,onBack:Y,isPlaying:1==e.length||i&&l,isLast:!1,setLockSwiper:S,onVideoEndedCallback:Z,progressUpdateCallback:t=>{I(t)},showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,mode:"portrait",changeSlide:J})})}},"event-vertical-scroll-slide-"+i))}),e.length>1&&!y&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(hn,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},Cn=n(7119);n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042);const bn=({children:t,customClass:e,show:n,closeCallback:i})=>Cn.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:i}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);bn.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var jn=bn;n(1012);var yn=function(t){var e,[n,a,d,h]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(!1),[F,L]=(0,i.useState)(null);function B(){N(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),V=O.length,M=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,i.useRef)(0);function $(t){B(),setTimeout(()=>{R(t)},500)}function q(){F&&!F.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&F.slideNext()}(0,i.useEffect)(()=>(N(!0),()=>{}),[]),y($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,i.useState)({}),tt=parseInt(Math.min(5,O.length)),et="90518552861"===I&&tt>=5?{nextEl:".whatmore-swiper-button-next-event-click-view",prevEl:".whatmore-swiper-button-prev-event-click-view"}:tt>=5;return(0,f.jsx)(jn,{show:A,closeCallback:B,customClass:"whatmore-landscape-modal-swipe-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:(0,Q.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{height:"fit-content",width:h*tt,position:"90518552861"===I&&tt>=5?"relative":void 0,children:["90518552861"===I&&tt>=5&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"whatmore-swiper-button-prev-event-click-view"}),(0,f.jsx)("div",{className:"whatmore-swiper-button-next-event-click-view"})]}),(0,f.jsxs)(o.RC,{onInit:t=>{L(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta})},slidesPerView:tt,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ,r.Ij,r.dK],navigation:et,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*d),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:h*tt,watchSlidesProgress:!0,onSlideChange:t=>{var e;b?j(!1):(w||C(!0),e=O[t.activeIndex],g||m||null===e||void 0===e||!e.event_id||(async()=>{const t=(0,ht.Wd)(K)+(0,ht.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),"index"===_?((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,vn.sendVideoViewEventToGA)(I,pn.DK,pn.K1),(0,Oe.Ch)(e.event_id,e.products,pn.DK,pn.K1,t)):_.startsWith("collection")?((0,vn.sendVideoViewEventToGA)(I,pn.Sx,pn.rz),(0,Oe.Ch)(e.event_id,e.products,pn.Sx,pn.rz,t)):((0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.Dk),(0,Oe.Ch)(e.event_id,e.products,pn.TB,pn.Dk,t))})(),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,H.UM)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:R})}),W.slice(D,O.length+D).map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:n,isNext:i,isVisible:o,isDuplicate:r})=>{if(t)return(0,f.jsx)(u.B,{direction:"column",height:d,width:1*h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!0,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2,mode:"landscape"})})});if(i)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(n&&1===Y.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e%V,300)},children:(0,f.jsx)(c.az,{overflow:"hidden",sx:{borderRadius:"round"==z?"10px":"0px",borderWidth:(0,p.YcK)(I),borderColor:(0,p.Fwt)(I)},children:(0,f.jsx)(ln,{event:O[e%V],onBack:$,isPlaying:!1,isLast:e%V===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=V-1&&(Y.current=1)}catch(l){console.log(l)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id))]})]})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:M,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},Sn=n(340),kn=n(5089),In=n(572),_n=n(8603);var zn=function(t){const[e,n,i,o]=(0,x.A)(),[r]=(0,v.QN)("whatmorePrimaryColor"),[l]=(0,v.QN)("whatmoreSecondaryColor"),a="flex-end";return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:a,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:o/i,children:(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+l+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:a,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var En=function(t){var e;const n=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=n.events;var[h,g,m,w]=(0,x.A)();const[C,b]=(0,Vt.A)(),[j]=(0,v.QN)("isInDesignMode"),[y]=(0,v.QN)("isDemoBrand"),[S]=(0,v.QN)("whatmoreShopId"),[k,I]=(0,i.useState)(!0),[_,z]=(0,v.QN)("isFirstIndicatorRenderDone"),[E,T]=(0,i.useState)(null),[A,N]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:P}=(0,i.useContext)(U.B),[L,B]=xn(s,c.length);function O(t){r(t)}const D=F.landingLocationType,R=F.templateType;function W(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(B("right"),E&&E.slideNext())}function V(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(B(t),E&&("left"==t?E.slidePrev():E.slideNext()))}const[Q,M]=(0,i.useState)({});return c[L().activeIndex],(0,f.jsx)("div",{children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:m,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{T(t)},onSlideChange:t=>{k?I(!1):(_||z(!0),(0,H.DG)({userInteractionType:X.O.VIDEO_PLAYBACK,userInteractionMetadata:Q,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(D)+(0,ht.gf)(R)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);j||y||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(S,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===P||void 0===P?void 0:P.userType)})()}(c[L().activeIndex]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}))},children:[...Array(Math.min(c.length,3)).keys()].map(e=>(0,f.jsx)(o.qr,{children:({isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(d){const o=e?"activeIndex":i?"prevIndex":"nextIndex",l=c[L()[o]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Ze.ij)(l)||(0,Ze.Il)(l)?(0,f.jsx)(Ge,{event:l,totalSiblingEvents:c.length,indexAmongSiblings:L()[o],onBack:O,isPlaying:d&&e&&r,isLast:!1,setLockSwiper:N,onVideoEndedCallback:W,progressUpdateCallback:t=>{M(t)},leftOpenSpaceClickHandler:()=>{V("left")},midOpenSpaceClickHandler:()=>{!0!==(0,p.GZ2)((0,v.Xd)("whatmoreShopId"))&&b(!C)},rightOpenSpaceClickHandler:()=>{V("right")},storyId:n.id,source:on.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+l.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(zn,{})})}},"event-story-view-slide-"+e))})})};var Tn=function(t){const e=t.onBack,n=t.eventsStories,a=t.initialStoryIndex,[d]=(0,v.QN)("isInDesignMode"),[s]=(0,v.QN)("isDemoBrand"),[c,h]=(0,i.useState)(!0),{setCloseClickComponent:p}=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),[g,m]=xn(a,n.length),[w,C]=gn("horizontal",50),[b]=mn("vertical",30),j=t.eventIndex,[y,S]=(0,i.useState)(!0),[k,I]=(0,i.useState)(null),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B);function E(){S(!1)}function T(t){E(),setTimeout(()=>{e(t)},500)}p(T);const A=_.landingLocationType,N=_.templateType;function F(t){k&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(m(t),"right"==t?k.slideNext():k.slidePrev())}function P(t,e){F(e)}return(0,f.jsx)(dn(),{isOpen:y,onRequestClose:E,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{w(t)},onTouchEnd:t=>{const e=C(t);e&&P(0,e)},onWheel:t=>{b(t,t=>{P(0,t)})},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{var e,i;I(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta})},onSlideChange:t=>{var e,i;c?h(!1):(!function(t){const e=(0,ht.Wd)(A)+(0,ht.gf)(N)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);d||s||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(x,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(n[g().activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:n[g().activeIndex].events[0],productList:null===(e=n[g().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[g().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map(t=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:e,isNext:i,isVisible:o,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(En,{stories:n[g()[l]],onBack:T,isActive:t&&o,isNext:i,isPrev:e,onStoryCompleteCallback:F,nextStories:n[g().nextIndex],prevStories:n[g().prevIndex],initialEventIndex:a==g()[l]?j:0},"event-story-view-"+n[g()[l]].id)})}},"event-vertical-scroll-slide-"+t))})})})};var An=function(t){var e,n,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[g]=(0,v.QN)("whatmoreSecondaryColor"),m=t.event,w=(t.onBack,i.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),C=null!==(n=t.heightFactor)&&void 0!==n?n:1,j="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=C,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:j,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Ze.ij)(m)||(0,Ze.Il)(m)?(0,f.jsx)(Ne.A,{height:"100%",width:"100%",url:m.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:m}):(0,f.jsx)(b._,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+g+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:j,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:(0,f.jsx)(c.az,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var Nn=function(t){var e,n,[a,d,h,p]=(0,x.A)();const[g]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[w,C]=(0,v.QN)("isFirstIndicatorRenderDone"),[b,j]=(0,i.useState)(0!=t.eventIndex),{setCloseClickComponent:y}=(0,i.useContext)(Pn),[S,k]=(0,i.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,i.useContext)(U.B),[E,T]=(0,i.useState)(!1),[A,N]=(0,i.useState)(null);function F(){T(!1)}t.events;const L=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(n=e.events[0])||void 0===n?void 0:n.brand;function W(t){F(),setTimeout(()=>{B(t)},500)}(0,i.useEffect)(()=>(T(!0),()=>{}),[]),y(W);const V=_.landingLocationType,Q=_.templateType;function M(t){A&&!A.isEnd&&("right"==t?A.slideNext():A.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(jn,{show:E,closeCallback:F,customClass:"whatmore-landscape-modal-stories-view",children:(0,f.jsxs)(u.B,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",alignItems:"center",backgroundColor:"blackAlpha.800",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:p*Y,children:(0,f.jsxs)(o.RC,{onInit:t=>{var e,n;N(t),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta})},slidesPerView:Y,centeredSlides:!0,allowTouchMove:!1,initialSlide:D,modules:[r.t9,r.Vx,r.FJ],navigation:Y>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*h),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:p*Y,watchSlidesProgress:!0,onSlideChange:t=>{var e,n;b?j(!1):(w||C(!0),function(t){const e=(0,ht.Wd)(V)+(0,ht.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);g||m||(async()=>{(0,l.lB)(t),(0,vn.sendVideoViewEventToGA)(I,pn.TB,pn.OL),(0,Oe.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})()}(O[t.activeIndex].events[0]),(0,H.kz)({userInteractionType:X.O.EVENT_VIEW,widgetSourceDetails:_,event:O[t.activeIndex].events[0],productList:null===(e=O[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=O[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(P,{onCloseCallback:B})}),O.map((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:l})=>{if(n){const i=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*i,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(En,{stories:t,onBack:W,isActive:n&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:M,initialEventIndex:D==e?L:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return i||o?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(An,{showPausedVideo:!0,event:O[e].events[0],onBack:W,isPlaying:!1,setLockSwiper:k})})}):(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide-"+e))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(Ae,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const Fn=(0,_n.A)({key:"whatmore-css-sv"}),Pn=(0,i.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Ln=function(t){var e,n,o;const[r,l,a]=(0,Xe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,i.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,i.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,g=t.onBack,m=t.eventsStories,w=t.initialStoryIndex,C=(0,p.M3_)(d),b="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:h.length>1?"horizontal":"vertical",j="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,i.useLayoutEffect)(()=>{(0,p.hpk)(d)&&(window.location.href.includes(C)?history.replaceState(null,"","#"+C):history.pushState(null,"","#"+C),window.addEventListener("popstate",()=>{window.location.href.includes(C)||g()}))},[]),delete kn.Ay.styles.global,c?(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(Nn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x}):(0,f.jsx)(Tn,{eventsStories:m,initialStoryIndex:w,onBack:g,eventIndex:x})})})}):(0,f.jsx)(In.C,{value:Fn,children:(0,f.jsx)(Sn.s,{theme:kn.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Pn.Provider,{value:{isIOS:(0,Je.MN)(),totalEvents:h.length,closeClickComponent:g,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:b,showSwipeIndicator:j,questionList:(0,p.JwJ)(d)?null===(o=JSON.parse(localStorage.getItem("_whatmore_brand_questions")))||void 0===o?void 0:o.questionList:[]},children:"portrait"===r?(0,f.jsx)(wn,{events:h,eventIndex:x,onBack:g}):(0,f.jsx)(yn,{events:h,eventIndex:x,onBack:g})})})})}},5144:function(t,e,n){n.d(e,{jd:function(){return o},so:function(){return r}});var i=n(8283);const o=`\n ${i.i7`
88
88
  0% { transform: scale(1); }
89
89
  50%, { transform: scale(0.95); }
90
90
  100% { transform: scale(1); }
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[714],{22:function(e,t,r){r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),s=r(5830),l=r(932);var d=function(e){const[t,r,o,n,i]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[p]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=i[a.dl]===a.nN?p/100:d/100*1.2;return[t*c,r*c,i]},p=r(1628),c=r.n(p),h=r(6702),x=(r(9733),r(4365),r(1348)),u=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,u.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,u.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,u.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,u.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,u.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,u.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,u.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[l,p,g]=d();(0,s.Xd)("whatmoreUITheme");const[v]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[k]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),N=(0,s.Xd)("isWhatmorePreviewMode");var C=b,z=y,P=j;g[a.dl]===a.nN&&(C=k,z=S,P=L);const[A,R]=(0,n.useState)(["initial",window.pageYOffset]),[M,Q]=(0,n.useState)(!1),B=null!==(t=e.isSpotlight)&&void 0!==t&&t,I=g[a.dl]===a.nN?.8*(0,x.O86)(E):1.2*(0,x.O86)(E),F=B?I:1.2;l*=F,p*=F;const T=B?(0,x.LrK)(E):C,_=B?(0,x._2D)(E):(0,x.GSq)(E),[W,D]=(0,n.useState)(!B&&(0,x.n8Q)(E)),V=!B&&(0,x.YE3)(E);function X(e,t){R(e),e[1]<=100?Q(!1):t!=M&&(Q(t),D(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(X([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:r,handler:()=>{X(["scrolled-up",A[1]],!0)}});const Y=e.event,H=e.inVideoClick,G=e.closeClick,O=.25*p,U=.5*p,$=.6*p,q="20px",Z=(0,x.GvQ)(E);var K=!1,J=0,ee=0;function te(e){K=e}return(0,u.jsx)("div",{className:"wht-popup",children:W&&!_?(0,u.jsx)(u.Fragment,{}):M&&_?(0,u.jsx)("div",{style:"left"===T?{left:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z}:{right:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z},children:(0,u.jsxs)("div",{onClick:()=>{X(["initial",A[1]],!1)},style:{width:$+"px",height:$*(16/9)+"px",borderRadius:q,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===T?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,u.jsx)(i.A,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,u.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),G()},children:(0,u.jsx)(m,{size:.8*O})})}),(0,u.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(h.A,{sx:{color:"white",fontSize:2*O+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,u.jsx)(c(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,J=r,ee=o},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{K&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):(V&&G(e),H(Y))},children:(0,u.jsx)("div",{ref:r,style:"left"===T?{left:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z}:{right:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z},children:(0,u.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":p+"px",height:e.isSpotlight&&"60122562760"==E?p+"px":l+"px",borderRadius:q,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===T?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,u.jsx)(i.A,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,u.jsx)("div",{className:"close-btn",onClick:G,children:(0,u.jsx)(m,{size:O})})}),(0,u.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,u.jsx)(f,{size:U})}),(0,u.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:q,borderBottomRightRadius:q,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,u.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*O+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,n.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[p]=(0,o.QN)("whatmoreVideoTileSize"),[c]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>r,x="portrait"==t?c:p,u=!("portrait"!=t||!(s>=481)),m=x/100*1.3*.5,f=x/100;var g=Math.min(s,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var k={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],k[i._]=i.$S,k[i.dl]=i.nN}else if(u){var S=.8*w,L=.8*v;"portrait"==t?(S*=f,L*=f,[v,w,b,y]=[L,S,j(s/(1.2*S)),0],k[i._]=i.vF,k[i.dl]=i.tn):([v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.vF,k[i.dl]=i.nN)}else{S=w,L=v;"portrait"==t?(S=S*f*.9,L=L*f*.9,[v,w,b,y]=[L,S,j(s/(1.15*S)),0],k[i._]=i.b4,k[i.dl]=i.tn):(S=.7*w,L=.7*v,[v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.b4,k[i.dl]=i.nN)}return[v,w,b,y,k]}},2410:function(e,t,r){var o=r(9950),n=r(1348),i=r(5830),a=(r(6125),r(4365),r(6614),r(9879)),s=(r(7509),r(932)),l=r(5551),d=r(4414);t.A=function(e){var t;const[r,p]=(0,s.A)(),[c]=(0,i.QN)("whatmoreSecondaryColor"),[h]=(0,i.QN)("whatmoreShopId"),x=(0,i.Xd)("whatmoreVideoTileSize"),u=(0,i.Xd)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?u:x,f=(0,i.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:g}=(0,o.useContext)(l.B),[v,w]=(0,o.useState)(!1),b=(0,n.ivI)(h),y=g.landingLocationType,j=e.event,k=e.onClick,S=e.removeBorders,L=r*m*.01,E=p*m*.01,N=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,n._hU)(h)?"auto":E+"px",marginLeft:S?"2px":"5px",marginRight:S?"2px":(0,n.FZM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{w(!0),k(j)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:N,overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+c+"50, 0px -1px 1px 0px "+b+"50, 1px 0px 1px 0px "+c+"50, -1px 0px 1px 0px "+b+"80, 1px -1px 1px 0px "+c+"80, -1px 1px 1px 0px "+b+"DA, 1px 1px 1px 0px "+c+"DA, -1px -1px 1px 0px "+b+"DA"},children:(0,d.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:L+"px",width:"40273707171"==h?"auto":E+"px",borderRadius:N,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.A,{height:"100%",width:"100%",url:j.thumbnail_image,isPlaying:!0,event:j})})}),y.startsWith("product")&&(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,d.jsx)("p",{ref:t=>{var r;t&&(t.style.setProperty("font-family",f,"important"),t.style.setProperty("font-size",(null!==(r=e.fontSize)&&void 0!==r?r:10)+"px","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"))},children:null===j||void 0===j?void 0:j.title})})]})}},3997:function(){},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return s}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function s(e){var t,r;const o=(0,n.useRef)(null),s=(0,n.useRef)(null),[l,d]=(0,n.useState)(!1),[p,c]=(0,n.useState)(!1),[h,x]=(0,n.useState)({top:"50%",left:"5px",right:"5px"}),u="90518552861"===e.shopId,m=()=>{const e=o.current,t=s.current;if(!e||!t)return;const r=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;d(r>10);c(!(r+i>=n-10)&&n>i);t.getBoundingClientRect(),e.getBoundingClientRect();x({top:"50%",left:"5px",right:"5px"})};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),u&&(e.addEventListener("scroll",m),setTimeout(()=>{m()},100),window.addEventListener("resize",m))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),u&&(e.removeEventListener("scroll",m),window.removeEventListener("resize",m)))}},[u]),(0,i.jsxs)("div",{ref:s,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[u&&l&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),u&&p&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},9130:function(){},9733:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[714],{22:function(e,t,r){r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",n="device_mode",i="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},851:function(e,t,r){r.d(t,{A:function(){return g}});var o=r(1005),n=r(9950),i=r(9879),a=r(22),s=r(5830),l=r(932);var d=function(e){const[t,r,o,n,i]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[p]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=i[a.dl]===a.nN?p/100:d/100*1.2;return[t*c,r*c,i]},p=r(1628),c=r.n(p),h=r(6702),x=(r(9733),r(4365),r(1348)),u=r(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,u.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,u.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,u.jsxs)("svg",{width:.7*e,height:.7*e,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,u.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,u.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,u.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,u.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(e){var t;const r=n.useRef(null);var[l,p,g]=d();(0,s.Xd)("whatmoreUITheme");const[v]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[k]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),N=(0,s.Xd)("isWhatmorePreviewMode");var C=b,z=y,P=j;g[a.dl]===a.nN&&(C=k,z=S,P=L);const[A,R]=(0,n.useState)(["initial",window.pageYOffset]),[M,Q]=(0,n.useState)(!1),B=null!==(t=e.isSpotlight)&&void 0!==t&&t,I=g[a.dl]===a.nN?.8*(0,x.O86)(E):1.2*(0,x.O86)(E),F=B?I:1.2;l*=F,p*=F;const T=B?(0,x.LrK)(E):C,_=B?(0,x._2D)(E):(0,x.GSq)(E),[W,D]=(0,n.useState)(!B&&(0,x.n8Q)(E)),V=!B&&(0,x.YE3)(E);function X(e,t){R(e),e[1]<=100?Q(!1):t!=M&&(Q(t),D(!1))}(0,n.useEffect)(()=>{let e=window.pageYOffset,t=!1;const r=()=>{const r=window.pageYOffset;Math.abs(r-e)<100||(X([r>e?"scrolled-down":"scrolled-up",r],!0),e=r>0?r:0),t=!1},o=()=>{t||(window.requestAnimationFrame(r),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:r,handler:()=>{X(["scrolled-up",A[1]],!0)}});const Y=e.event,H=e.inVideoClick,G=e.closeClick,O=.25*p,U=.5*p,$=.6*p,q="20px",Z=(0,x.GvQ)(E);var K=!1,J=0,ee=0;function te(e){K=e}return(0,u.jsx)("div",{className:"wht-popup",children:W&&!_?(0,u.jsx)(u.Fragment,{}):M&&_?(0,u.jsx)("div",{style:"left"===T?{left:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z}:{right:"16px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z},children:(0,u.jsxs)("div",{onClick:()=>{X(["initial",A[1]],!1)},style:{width:$+"px",height:$*(16/9)+"px",borderRadius:q,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===T?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,u.jsx)(i.A,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,u.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),G()},children:(0,u.jsx)(m,{size:.8*O})})}),(0,u.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(h.A,{sx:{color:"white",fontSize:2*O+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,u.jsx)(c(),{nodeRef:r,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var r,o;r=t.x,o=t.y,J=r,ee=o},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{K&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):(V&&G(e),H(Y))},children:(0,u.jsx)("div",{ref:r,style:"left"===T?{left:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z}:{right:B?(0,x.D2A)(E)+"px":z+"px",bottom:B?(0,x.pUQ)(E)+"px":P+"px",position:"fixed",zIndex:Z},children:(0,u.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":p+"px",height:e.isSpotlight&&"60122562760"==E?p+"px":l+"px",borderRadius:q,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===T?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,u.jsx)(i.A,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,u.jsx)("div",{className:"close-btn",onClick:G,children:(0,u.jsx)(m,{size:O})})}),(0,u.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,u.jsx)(f,{size:U})}),(0,u.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:q,borderBottomRightRadius:q,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,u.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*O+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(e,t,r){var o=r(5830),n=r(1941),i=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,n.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[p]=(0,o.QN)("whatmoreVideoTileSize"),[c]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>r,x="portrait"==t?c:p,u=!("portrait"!=t||!(s>=481)),m=x/100*1.3*.5,f=x/100;var g=Math.min(s,r),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var k={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(h){const e=w*m,t=v*m;[v,w,b,y]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],k[i._]=i.$S,k[i.dl]=i.nN}else if(u){var S=.8*w,L=.8*v;"portrait"==t?(S*=f,L*=f,[v,w,b,y]=[L,S,j(s/(1.2*S)),0],k[i._]=i.vF,k[i.dl]=i.tn):([v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.vF,k[i.dl]=i.nN)}else{S=w,L=v;"portrait"==t?(S=S*f*.9,L=L*f*.9,[v,w,b,y]=[L,S,j(s/(1.15*S)),0],k[i._]=i.b4,k[i.dl]=i.tn):(S=.7*w,L=.7*v,[v,w,b,y]=[L,S,(s-2*l)/(1.1*S),l],k[i._]=i.b4,k[i.dl]=i.nN)}return[v,w,b,y,k]}},2410:function(e,t,r){var o=r(9950),n=r(1348),i=r(5830),a=(r(6125),r(4365),r(6614),r(9879)),s=(r(7509),r(932)),l=r(5551),d=r(4414);t.A=function(e){var t;const[r,p]=(0,s.A)(),[c]=(0,i.QN)("whatmoreSecondaryColor"),[h]=(0,i.QN)("whatmoreShopId"),x=(0,i.Xd)("whatmoreVideoTileSize"),u=(0,i.Xd)("whatmoreVideoTileSizePortrait"),m="portrait"===e.mode?u:x,f=(0,i.QN)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:g}=(0,o.useContext)(l.B),[v,w]=(0,o.useState)(!1),b=(0,n.ivI)(h),y=g.landingLocationType,j="22907887"===h?"portrait"===e.mode?.9:.83:1,k=e.event,S=e.onClick,L=e.removeBorders,E=j*r*m*.01,N=p*m*.01,C=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,n._hU)(h)?"auto":N+"px",marginLeft:L?"2px":"5px",marginRight:L?"2px":(0,n.FZM)(h)+"px",marginTop:L?"2px":"5px",marginBottom:L?"2px":"5px",cursor:"pointer"},onClick:()=>{w(!0),S(k)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:C,overflow:"hidden",boxShadow:L?"":"0px 1px 1px 0px "+c+"50, 0px -1px 1px 0px "+b+"50, 1px 0px 1px 0px "+c+"50, -1px 0px 1px 0px "+b+"80, 1px -1px 1px 0px "+c+"80, -1px 1px 1px 0px "+b+"DA, 1px 1px 1px 0px "+c+"DA, -1px -1px 1px 0px "+b+"DA"},children:(0,d.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:E+"px",width:"40273707171"==h?"auto":N+"px",borderRadius:C,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.A,{height:"100%",width:"100%",url:k.thumbnail_image,isPlaying:!0,event:k})})}),y.startsWith("product")&&(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,d.jsx)("p",{ref:t=>{var r;t&&(t.style.setProperty("font-family",f,"important"),t.style.setProperty("font-size",(null!==(r=e.fontSize)&&void 0!==r?r:10)+"px","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"))},children:null===k||void 0===k?void 0:k.title})})]})}},3997:function(){},4669:function(){},6042:function(){},6125:function(){},6614:function(){},7229:function(){},7509:function(e,t,r){r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8385:function(e,t,r){r.d(t,{c:function(){return s}});var o=r(6649),n=r(9950),i=(r(4365),r(4414));function a(e){const[t,r,n]=(0,o.A)({triggerOnce:e.retainAlreadyRenderedElements});return(0,i.jsx)("div",{ref:t,children:r?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,i.jsx)("div",{style:{backgroundColor:e.showBgPlaceholder?"gray":"transparent",minWidth:e.defaultWidth,minHeight:e.defaultHeight}})})}function s(e){var t,r;const o=(0,n.useRef)(null),s=(0,n.useRef)(null),[l,d]=(0,n.useState)(!1),[p,c]=(0,n.useState)(!1),[h,x]=(0,n.useState)({top:"50%",left:"5px",right:"5px"}),u="90518552861"===e.shopId,m=()=>{const e=o.current,t=s.current;if(!e||!t)return;const r=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;d(r>10);c(!(r+i>=n-10)&&n>i);t.getBoundingClientRect(),e.getBoundingClientRect();x({top:"50%",left:"5px",right:"5px"})};return(0,n.useEffect)(()=>{const e=o.current;let t,r=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(r=!0,t=e.touches[0].clientX):(r=!0,t=e.clientX)}function i(o){if(!r)return;const n=o.touches?o.touches[0].clientX:o.clientX;e.style.pointerEvents="none";const i=2*(t-n);e.scrollLeft+=i,t=n}function a(t){e.style.pointerEvents="auto",r=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",i),e.addEventListener("touchend",a)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),u&&(e.addEventListener("scroll",m),setTimeout(()=>{m()},100),window.addEventListener("resize",m))),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",a)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),u&&(e.removeEventListener("scroll",m),window.removeEventListener("resize",m)))}},[u]),(0,i.jsxs)("div",{ref:s,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-carousel-navigation-wrapper",children:[u&&l&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:-300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-left",style:{position:"absolute",left:h.left,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll left",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),u&&p&&(0,i.jsx)("button",{onClick:()=>{const e=o.current;e&&e.scrollBy({left:300,behavior:"smooth"})},className:"whatmore-carousel-nav-arrow whatmore-carousel-nav-arrow-right",style:{position:"absolute",right:h.right,top:h.top,transform:"translateY(-50%)",zIndex:1e3,width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 4px rgba(0,0,0,0.15)",transition:"all 0.2s ease",padding:0},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1.1)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(-50%) scale(1)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0,0,0,0.15)"},"aria-label":"Scroll right",children:(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",className:"whatmore-carousel-nav-icon",children:(0,i.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsx)("div",{ref:o,style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto",scrollBehavior:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(r=e.dataList)||void 0===r?void 0:r.map((t,r)=>(0,i.jsx)(a,{showBgPlaceholder:e.showBgPlaceholder,renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+r))})]})}},9130:function(){},9733:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,939],{3262:function(t,e,o){o.d(e,{initiateCartSliderEvent:function(){return i}});var r=o(5830),n=o(1745);const i=async function(t,e,o,i,a="",c="",u="",d="",s="",l=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,n.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,o=e.quantity,r=e.properties;(0,n.CP)(t,o,r,u,d,s,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===l||void 0===l||null===(m=l.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,o));var m}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=a,r=1,n=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(n){let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.appendChild(i)),i.disabled=!1,i.value=t;const a=n.querySelector('input[name="quantity"]');a&&(a.value=r);const c=n.querySelector('button[data-add-to-cart], button[type="submit"]');return c?(c.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),c.click(),c.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{y(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:r}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{y(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const r=t.querySelector('input[name="id"]');if(!r)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);r.value=a;const n=t.querySelector('button[type="submit"]');if(!n)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);n.click(),setTimeout(()=>{y(a)},500),setTimeout(e,o)}catch(T){console.error("[ATC 64683278550] error:",T),setTimeout(e,o)}return}const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},h=(e,o,r)=>{const n=e.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",o),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",r);let e=n.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=n.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(n),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var r;const n=null!==(r=t.matches)&&void 0!==r&&r.call(t,"form")?t:t.querySelector("form");if(!n)return;let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=n.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const c=n.querySelector('input[name="product-id"]');c&&(c.value=String(o))})(a,o,r),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,i=o.quantity,a=o.properties;(0,n.CP)(r,i,a,u,d,s,!0,!0,!0)})},v=p(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=h(v,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}else{var S;fetch(null===l||void 0===l||null===(S=l.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=p(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,o)}}}]);