whatmore-react-assets 1.0.1647 → 1.0.1649

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 (65) hide show
  1. package/package.json +1 -1
  2. package/static/js/{137.3f374049.chunk.js → 137.c204446d.chunk.js} +1 -1
  3. package/static/js/262.38dc5116.chunk.js +1 -0
  4. package/static/js/304.024ba064.chunk.js +280 -0
  5. package/static/js/340.7bf77729.chunk.js +2 -0
  6. package/static/js/437.4ec0efaf.chunk.js +1 -0
  7. package/static/js/438.0d78087f.chunk.js +2 -0
  8. package/static/js/{498.e82b91d7.chunk.js → 451.8b0f1d96.chunk.js} +2 -2
  9. package/static/js/571.93bc3a3d.chunk.js +1 -0
  10. package/static/js/59.d947034b.chunk.js +2 -0
  11. package/static/js/620.0989f175.chunk.js +1 -0
  12. package/static/js/{647.e656bdd7.chunk.js → 647.c3af639c.chunk.js} +2 -2
  13. package/static/js/691.151a2fc3.chunk.js +2 -0
  14. package/static/js/72.4f779c68.chunk.js +2 -0
  15. package/static/js/879.b4278841.chunk.js +1 -0
  16. package/static/js/{925.14e2015f.chunk.js → 925.b301cf3b.chunk.js} +1 -1
  17. package/static/js/946.f96cd49c.chunk.js +1 -0
  18. package/static/js/968.baa2c975.chunk.js +15 -0
  19. package/static/js/carousel-template-a.d504d9aa.chunk.js +1 -0
  20. package/static/js/carousel-template-b.3cba552a.chunk.js +1 -0
  21. package/static/js/carousel-template-f.cdc84dd6.chunk.js +1 -0
  22. package/static/js/carousel-template-feed.fd453a82.chunk.js +2 -0
  23. package/static/js/carousel-template-g.3f96b508.chunk.js +1 -0
  24. package/static/js/carousel-template-h.70efb640.chunk.js +1 -0
  25. package/static/js/{carousel-template-i.aa7f7ff6.chunk.js → carousel-template-i.edf5e918.chunk.js} +1 -1
  26. package/static/js/carousel-template-view-more.3af121be.chunk.js +41 -0
  27. package/static/js/event-click-product.c7d627cf.chunk.js +2 -0
  28. package/static/js/event-click-spotlight.93dcffbf.chunk.js +2 -0
  29. package/static/js/event-click.324cacb2.chunk.js +2 -0
  30. package/static/js/homepage-carousel-view.5b2f5d87.chunk.js +1 -0
  31. package/static/js/product-page-view.dff87f24.chunk.js +1 -0
  32. package/static/js/share-shimmer-loader.325ec052.chunk.js +1 -0
  33. package/static/js/{spotlight-view.6375015f.chunk.js → spotlight-view.89cd2e98.chunk.js} +1 -1
  34. package/static/js/stories-template-a.3c063429.chunk.js +1 -0
  35. package/static/js/whatmore-root.b841b4c6.chunk.js +1 -0
  36. package/whatmore.js +2 -2
  37. package/static/js/131.90afb45a.chunk.js +0 -1
  38. package/static/js/262.5014b74a.chunk.js +0 -1
  39. package/static/js/304.e3530c2f.chunk.js +0 -280
  40. package/static/js/310.40b47755.chunk.js +0 -2
  41. package/static/js/375.2cd5e9d8.chunk.js +0 -1
  42. package/static/js/437.bb6da7be.chunk.js +0 -1
  43. package/static/js/438.edcc26ce.chunk.js +0 -2
  44. package/static/js/571.6d50c925.chunk.js +0 -1
  45. package/static/js/59.0b037ebd.chunk.js +0 -2
  46. package/static/js/620.f1fb0745.chunk.js +0 -1
  47. package/static/js/691.9956e71d.chunk.js +0 -2
  48. package/static/js/72.5b4a0a96.chunk.js +0 -2
  49. package/static/js/879.b16b58a2.chunk.js +0 -1
  50. package/static/js/946.7875c6c1.chunk.js +0 -1
  51. package/static/js/carousel-template-a.8ccd196e.chunk.js +0 -2
  52. package/static/js/carousel-template-b.fdc48abc.chunk.js +0 -2
  53. package/static/js/carousel-template-f.6a7c94dd.chunk.js +0 -1
  54. package/static/js/carousel-template-feed.7b41dc2f.chunk.js +0 -16
  55. package/static/js/carousel-template-g.a334d92c.chunk.js +0 -1
  56. package/static/js/carousel-template-h.ffd5d66b.chunk.js +0 -1
  57. package/static/js/carousel-template-view-more.1138eae5.chunk.js +0 -55
  58. package/static/js/event-click-product.006e7126.chunk.js +0 -2
  59. package/static/js/event-click-spotlight.0f108d8b.chunk.js +0 -2
  60. package/static/js/event-click.71a94c90.chunk.js +0 -2
  61. package/static/js/homepage-carousel-view.962a01c8.chunk.js +0 -1
  62. package/static/js/product-page-view.a33bf39c.chunk.js +0 -1
  63. package/static/js/share-shimmer-loader.f70b8c55.chunk.js +0 -1
  64. package/static/js/stories-template-a.9e364754.chunk.js +0 -1
  65. package/static/js/whatmore-root.3697befe.chunk.js +0 -1
@@ -120,8 +120,8 @@
120
120
  0% {
121
121
  transform: translateY(100%);
122
122
  }
123
- `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Rt=i(63),Wt=i(1745),Vt=i(8203);function Qt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,Wt.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Mt(t){const e=t.product;return(0,f.jsx)(Qt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var Ht=i(1052),Ut=i(3262);function Xt(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[b]=(0,v.QN)("websiteLanguage"),C=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)(U.B),[I,z]=(0,n.useState)(!1),{closeClickComponent:E}=(0,n.useContext)(Ci),[T,N]=(0,n.useState)(!1),F=t.FONT_SIZE,A=t.data,L=t.event,P=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,V=t.setAddToCartFlag,Q=t.soldOutFlag,X=t.setSoldOutFlag,Y=S.landingLocationType,$=S.templateType,q=(0,ht.Wd)(Y)+(0,ht.gf)($)+(null!==L&&void 0!==L&&L.isRelatedEvent?"R":"E")+"_"+(null===L||void 0===L?void 0:L.event_id);const K=e=>{if(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(L,B),"buy-now"==e){var i,n;if((0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta}),"78881718575"==g)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();(0,Ht.Dr)(void 0!==P?P:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.id,O,(0,p.NCy)(g),g,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType)}"view-more"==e&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*F,children:[" ",Q?(0,f.jsx)(J.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==C?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"90%",spacing:"15px",fontSize:.9*F,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(J.$,{className:"add-to-cart-button",height:2.5*F,onClick:async t=>{var e,i;t.stopPropagation(),z(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(L,B,O),(0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta});const n=null!==P&&void 0!==P?P:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void z(!1);(0,Ht.cF)([n],O,(0,p.NCy)(g),g,L,B,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(!1),V(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,v.Xd)("whatmoreAddedToCart")&&(0,Ut.initiateCartSliderEvent)(g,(()=>{}),100,window.location.hostname,n,B.client_product_id,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType,B.product_link),(0,p.rEM)(g)&&(x||(async()=>{await(0,Wt.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{z(!1),X(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"10px !important",paddingRight:"10px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Rt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:F+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===tt.m||void 0===tt.m||null===(i=tt.m[b])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(Mt,{variantId:void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*F,width:"90%",fontSize:F,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:!(0,p.naM)(g)||"78881718575"===g&&null!==Y&&void 0!==Y&&Y.includes("product")?(0,f.jsx)(J.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===tt.m||void 0===tt.m||null===(h=tt.m[b])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})}):(0,f.jsx)(J.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===tt.m||void 0===tt.m||null===(d=tt.m[b])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:T?(0,f.jsx)(dt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Vt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}})})}):(0,f.jsxs)(dt.s,{animation:W?_:"none",onAnimationEnd:()=>V(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==E&&E()}(g)):(0,Ht.Le)((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(G.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*F,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*F+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function Yt(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(dt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(dt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(dt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(dt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function $t(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const qt=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})})};function Kt(t){var e,i,o;const[r,l]=(0,n.useState)(t.product),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s]=(0,v.QN)("whatmoreSecondaryColor"),[u]=(0,v.QN)("websiteLanguage");(0,n.useEffect)((()=>{(0,p.w4b)(d)&&(0,ut.ck)(r,(0,p.NCy)(d),d).then((t=>{l(t)}))}),[]);const h=t.FONT_SIZE,x=t.data,m=t.itemPrice;let g,w,y;var b,C,S;"STRDOIDF6O7"==d&&(g=null===x||void 0===x||null===(b=x.variants)||void 0===b?void 0:b.find((e=>e.id==t.selectedVariantId)),w=null===(C=g)||void 0===C?void 0:C.title,y=null===(S=g)||void 0===S?void 0:S.productLink);const k=(e=>{const i=null===x||void 0===x||null===(e=x.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),I=k&&0!=k&&k>m?Math.round((k-m)/k*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(dt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(dt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(d)?("STRDOIDF6O7"==d?y:t.product_link)+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d)+((0,p.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?y:t.product_link)+((0,p.N0t)(d)?"?currency="+t.currency:"")}(r)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:h,sx:{color:"black",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:"STRDOIDF6O7"==d&&null!==(e=w)&&void 0!==e?e:null===x||void 0===x?void 0:x.title}),(0,f.jsx)(qt,{iconSize:1.1*h})]}),(0,f.jsxs)(dt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[k&&k>m&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*h,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?k/100:k)," ",d,r.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*h,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?m/100:m),"",d,r.currency,!0)}),!isNaN(I)&&0!=I&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(d)?"#343434"==s?(0,p.ub$)(d):s:(0,p.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(d)?"14px !important":1.1*h,fontWeight:"normal !important",sx:{color:(0,p.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,p.mOK)(d)?`${I}% ${null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[u])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,ut.Sb)(parseFloat(k/100-m/100)," ",d,r.currency)}`})})]}),"61412737206"==d&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var Gt=i(4418);function Zt(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(oe),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,b=t.isVariantAvailable,C=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.variants)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===a?void 0:a.option2,[null===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(dt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(dt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(dt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*C+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(dt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*C,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(Gt.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const F=b(n,i),A=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&A&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(dt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,st.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):A&&(0,f.jsx)(dt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(J.$,{isDisabled:!F,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&F?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:F?"p":"s",textDecoration:F?"none":"line-through",fontSize:.9*C+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&F?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(at.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var Jt=i(8385);function te(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,b,C,S,I,_,z,E,T;const[N,F,A,L]=(0,x.A)();var P=.4*L*.8,B=P*(16/9)*.6*.8;const O=1.1*P,D=O*(16/9)*.8;var W=.12*P;const[V,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[ct,ut]=(0,n.useState)(),[ht,pt]=(0,n.useState)(0),[vt,xt]=(0,n.useState)(!1),[mt,gt]=(0,n.useState)(!1),[ft,wt]=(0,n.useState)(U.thumbnail_image),jt=(0,v.Xd)("whatmoreUITheme"),yt=(0,v.Xd)("whatmoreShopId"),bt=(0,n.useCallback)((t=>{Z(t)}),[]),Ct=(0,n.useCallback)((t=>{tt(t)}),[]),St=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=ee(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),ut(ie(M,i)),lt(1),gt(!1);const n=ne(M,i);null!==n&&wt(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ie(M,nt);ut(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{(0,Ht.Eo)((0,p.NCy)(yt),yt).then((t=>t.json())).then((t=>{pt(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[vt]);const kt=`${k.i7`
123
+ `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Rt=i(63),Wt=i(1745),Vt=i(8203);function Qt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,Wt.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Mt(t){const e=t.product;return(0,f.jsx)(Qt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var Ht=i(1052),Ut=i(3262);function Xt(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[b]=(0,v.QN)("websiteLanguage"),C=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)(U.B),[I,z]=(0,n.useState)(!1),{closeClickComponent:E}=(0,n.useContext)(Ci),[T,N]=(0,n.useState)(!1),F=t.FONT_SIZE,A=t.data,L=t.event,P=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,V=t.setAddToCartFlag,Q=t.soldOutFlag,X=t.setSoldOutFlag,Y=S.landingLocationType,$=S.templateType,q=(0,ht.Wd)(Y)+(0,ht.gf)($)+(null!==L&&void 0!==L&&L.isRelatedEvent?"R":"E")+"_"+(null===L||void 0===L?void 0:L.event_id);const K=e=>{if(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(L,B),"buy-now"==e){var i,n;if((0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta}),"78881718575"==g)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();(0,Ht.Dr)(void 0!==P?P:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.id,O,(0,p.NCy)(g),g,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType)}"view-more"==e&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*F,children:[" ",Q?(0,f.jsx)(J.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==C?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"90%",spacing:"15px",fontSize:.9*F,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(J.$,{className:"add-to-cart-button",height:2.5*F,onClick:async t=>{var e,i;t.stopPropagation(),z(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(L,B,O),(0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta});const n=null!==P&&void 0!==P?P:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void z(!1);(0,Ht.cF)([n],O,(0,p.NCy)(g),g,L,B,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(!1),V(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,v.Xd)("whatmoreAddedToCart")&&(0,Ut.initiateCartSliderEvent)(g,(()=>{}),100,window.location.hostname,n,B.client_product_id,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType,B.product_link),(0,p.rEM)(g)&&(x||(async()=>{await(0,Wt.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{z(!1),X(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"10px !important",paddingRight:"10px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Rt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:F+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===tt.m||void 0===tt.m||null===(i=tt.m[b])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(Mt,{variantId:void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*F,width:"90%",fontSize:F,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:!(0,p.naM)(g)||"78881718575"===g&&null!==Y&&void 0!==Y&&Y.includes("product")?(0,f.jsx)(J.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===tt.m||void 0===tt.m||null===(h=tt.m[b])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})}):(0,f.jsx)(J.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===tt.m||void 0===tt.m||null===(d=tt.m[b])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:T?(0,f.jsx)(dt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Vt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}})})}):(0,f.jsxs)(dt.s,{animation:W?_:"none",onAnimationEnd:()=>V(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==E&&E()}(g)):(0,Ht.Le)((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(G.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*F,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*F+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function Yt(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(dt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(dt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(dt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(dt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function $t(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const qt=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});function Kt(t){var e,i,o;const[r,l]=(0,n.useState)(t.product),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s]=(0,v.QN)("whatmoreSecondaryColor"),[u]=(0,v.QN)("websiteLanguage");(0,n.useEffect)((()=>{(0,p.w4b)(d)&&(0,ut.ck)(r,(0,p.NCy)(d),d).then((t=>{l(t)}))}),[]);const h=t.FONT_SIZE,x=t.data,m=t.itemPrice;let g,w,y;var b,C,S;"STRDOIDF6O7"==d&&(g=null===x||void 0===x||null===(b=x.variants)||void 0===b?void 0:b.find((e=>e.id==t.selectedVariantId)),w=null===(C=g)||void 0===C?void 0:C.title,y=null===(S=g)||void 0===S?void 0:S.productLink);const k=(e=>{const i=null===x||void 0===x||null===(e=x.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),I=k&&0!=k&&k>m?Math.round((k-m)/k*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(dt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(dt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(d)?("STRDOIDF6O7"==d?y:t.product_link)+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d)+((0,p.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?y:t.product_link)+((0,p.N0t)(d)?"?currency="+t.currency:"")}(r)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:h,sx:{color:"black",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:"STRDOIDF6O7"==d&&null!==(e=w)&&void 0!==e?e:null===x||void 0===x?void 0:x.title}),(0,f.jsx)(qt,{iconSize:1.1*h})]}),(0,f.jsxs)(dt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[k&&k>m&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*h,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?k/100:k)," ",d,r.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*h,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?m/100:m),"",d,r.currency,!0)}),!isNaN(I)&&0!=I&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(d)?"#343434"==s?(0,p.ub$)(d):s:(0,p.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(d)?"14px !important":1.1*h,fontWeight:"normal !important",sx:{color:(0,p.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,p.mOK)(d)?`${I}% ${null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[u])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,ut.Sb)(parseFloat(k/100-m/100)," ",d,r.currency)}`})})]}),"61412737206"==d&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var Gt=i(4418);function Zt(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(oe),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,b=t.isVariantAvailable,C=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.variants)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===a?void 0:a.option2,[null===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(dt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(dt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(dt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*C+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(dt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*C,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(Gt.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const F=b(n,i),A=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&A&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(dt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,st.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):A&&(0,f.jsx)(dt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(J.$,{isDisabled:!F,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&F?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:F?"p":"s",textDecoration:F?"none":"line-through",fontSize:.9*C+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&F?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(at.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var Jt=i(8385);function te(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,b,C,S,I,_,z,E,T;const[N,F,A,L]=(0,x.A)();var P=.4*L*.8,B=P*(16/9)*.6*.8;const O=1.1*P,D=O*(16/9)*.8;var W=.12*P;const[V,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[ct,ut]=(0,n.useState)(),[ht,pt]=(0,n.useState)(0),[vt,xt]=(0,n.useState)(!1),[mt,gt]=(0,n.useState)(!1),[ft,wt]=(0,n.useState)(U.thumbnail_image),jt=(0,v.Xd)("whatmoreUITheme"),yt=(0,v.Xd)("whatmoreShopId"),bt=(0,n.useCallback)((t=>{Z(t)}),[]),Ct=(0,n.useCallback)((t=>{tt(t)}),[]),St=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=ee(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),ut(ie(M,i)),lt(1),gt(!1);const n=ne(M,i);null!==n&&wt(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ie(M,nt);ut(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{(0,Ht.Eo)((0,p.NCy)(yt),yt).then((t=>t.json())).then((t=>{pt(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[vt]);const kt=`${k.i7`
124
124
  0% {
125
125
  transform: translateY(100%);
126
126
  }
127
- `} 0.5s`,It=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"))})),[_t,zt]=(0,n.useState)(-1!==It?null===(i=M.options)||void 0===i||null===(o=i[It])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Et,Tt]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==It&&"whatmore"!==(0,p.NCy)(yt)&&async function(){const t=await(0,Wt._N)(U);Tt(t)}()}),[]);let Nt=-1,Ft=-1!==It&&null!==Et&&void 0!==Et&&Et.product&&(null===Et||void 0===Et||null===(l=Et.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Et||void 0===Et||null===(d=Et.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[It])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Et||void 0===Et||null===(g=Et.product)||void 0===g||null===(w=g.images)||void 0===w?void 0:w.map((t=>{var e,i,n,o,r,l,a,d,s,c,u,h,p,v;const x=null===Et||void 0===Et||null===(e=Et.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.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===Et||void 0===Et||null===(n=Et.product)||void 0===n||null===(o=n.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Nt,(null===Et||void 0===Et||null===(a=Et.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[It])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Et||void 0===Et||null===(u=Et.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,Nt)],src:null===t||void 0===t?void 0:t.src}})):[],At=[];if("whatmore"==(0,p.NCy)(yt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Lt;var Pt;if(-1!==(null===M||void 0===M||null===(Lt=M.options)||void 0===Lt?void 0:Lt.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===(Pt=M.images)||void 0===Pt?void 0:Pt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Nt+1<(null===Et||void 0===Et||null===(b=Et.product)||void 0===b||null===(C=b.options)||void 0===C||null===(S=C[It])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Ft=[]),(0,f.jsxs)(dt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"xl":null,animation:kt,children:[(0,f.jsx)(Yt,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:W}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(dt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(yt),borderColor:(0,p.Fwt)(yt)},children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(Jt.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",children:(0,f.jsx)(y._,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(yt)+" !important"},fallback:(0,f.jsx)(R.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:Ft.length>0&&!Ft.includes(null)?null===(_=Ft)||void 0===_?void 0:_.filter((t=>(null===t||void 0===t?void 0:t.color)==_t)):At.length>0?[null===(z=At)||void 0===z?void 0:z.find((t=>(null===t||void 0===t?void 0:t.color)==_t))]: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.jsx)(Kt,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,getVariantPrice:ie,selectedVariantId:nt,itemPrice:ct,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:ft}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.o,{paddingTop:"4px",width:"100%",children:(0,f.jsx)(at.c,{color:(0,p.R6d)(yt),size:"xs",width:"90%"})}),(0,f.jsx)(Zt,{data:M,dividerColor:(0,p.R6d)(yt),setSelectedColor:zt,finalArr:Ft,finalArrExternal:At,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,selectOptionFirstHandler:bt,selectOptionSecondHandler:Ct,selectOptionThirdHandler:St,getVariantPrice:ie,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(yt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)($t,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:W,data:M,handleToggle:()=>Q(!V),show:V}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(Xt,{position:"relative",data:M,FONT_SIZE:W,product:U})}),(0,f.jsx)(Xt,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:W,PRODUCT_TILE_WIDTH:P,product:U,itemQuantity:rt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:mt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H})]})}const ee=(t,e,i,n)=>{var o;if(!e&&!i&&!n)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!n||t.option3===n)));return r?r.id:void 0},ie=(t,e)=>{var i,n;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.price},ne=(t,e)=>{var i;const n=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find((t=>t.id==e));return void 0===n?null:null===n||void 0===n||null===(o=n.featured_image)||void 0===o?void 0:o.src;var o},oe=(0,n.createContext)({setShowOptionsChart:null});var re=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,n.useState)(!1);return(0,f.jsx)(oe.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)(te,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a})})}),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)(Dt,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var le=function(t){var e,[i,o,r,l]=(0,x.A)();const[a,d]=(0,n.useState)(!1),[g,j]=(0,n.useState)(),[y,b]=(0,n.useState)(),C=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=n.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,N=null===(e=t.showOverlay)||void 0===e||e,F="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:F,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})})})}),N?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:F,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)(Ot,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(C),C);b(t),j(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:F,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)(re,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const ae=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function de(t){var e,i,[n,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!==(i=t.indexAmongSiblings)&&void 0!==i?i: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 se=i(3788),ce=i(758);const ue=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,he=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var pe=function(t){var e,i,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,m=t.whatmoreShareEventId,g=t.event,w=null===(e=t.showShareText)||void 0===e||e,y=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)(U.B),[z,E,T,N]=(0,x.A)(),F=null!==(o=t.iconSize)&&void 0!==o?o:.1*N*(0,p.xkB)(b);function A(){const e=(0,v.Xd)("whatmoreLandingLocationType");var i;!function(t){C||S||(async()=>{(0,l.Zh)(t)})()}(g),i="event_product_link"===(0,p.moP)(b)?g.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,p.moP)(b)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+h+"&weid="+m,(0,p.BLb)(b)&&(i=i+"&"+(0,p.VCz)(b)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,p.kZI)(b),text:`${(0,p.dmA)(b)} \n ${i} ${"50529403072"!==b&&(0,p.ZX9)(b)?"\n \n -via Whatmore":""}`};navigator.share&&!he?navigator.share(n):(t.setIsModalOpen(!0),t.setShareText([n,i]))}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:y+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(ce.A,{sx:{transform:"scaleX(-1)",color:"white",fontSize:F,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A(),(0,M.kz)({userInteractionType:H.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:g,productList:g.products,ctaList:g.cta})}}),w&&(0,p.ViG)(b)?(0,f.jsxs)(j.E,{fontSize:.3*F+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(b)?ue(g.total_share):null!==(r=null===tt.m||void 0===tt.m||null===(a=tt.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},ve=i(3420),xe=i(7170);var me=function(t){var e,i,o;const r=(0,v.Xd)("whatmoreShopId"),a=(0,v.Xd)("whatmorePrimaryFont"),d=(0,v.Xd)("whatmoreLikedEvents"),h=(0,v.Xd)("isInDesignMode"),m=(0,v.Xd)("isDemoBrand"),g=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(U.B),y=t.event,[b,C]=(0,n.useState)(null!==(e=d[y.event_id])&&void 0!==e&&e),[S,k,I,_]=(0,x.A)(),z=.1*_*(0,p.xkB)(r);function E(t,e){h||m||(async()=>{(0,l.$B)(t,e)})()}function T(){(0,v.t2)("whatmoreLikedEvents",{...d,[y.event_id]:!b}),b?(E(y,-1),(0,M.kz)({userInteractionType:H.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,M.kz)({userInteractionType:H.O.VIDEO_LIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})),C(!b)}const N=y.total_like+(b?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:[b?(0,f.jsx)(xe.A,{sx:{boxShadow:3,color:(0,p.MJ6)(r),fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}):(0,f.jsx)(ve.A,{sx:{boxShadow:3,color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(r)?(0,f.jsxs)(j.E,{fontSize:.3*z+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,p.LGx)(r)?ue(N):null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ge=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*e},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,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"})})})};var fe=i(1941);const we=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,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"})})})},je=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:.3*e},children:(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,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"})})})};var ye=t=>{const e=t.shareText,[i,o]=(0,n.useState)("Copy link"),[r,l]=(0,n.useState)("");return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{backgroundColor:"white",borderRadius:"10px",padding:"12px 12px 20px 12px"},children:[(0,f.jsxs)("div",{style:{cursor:"pointer",display:"flex",justifyContent:"space-between",paddingBottom:"6px"},children:[(0,f.jsx)("img",{className:"whatmore-label",onClick:()=>{window.location.href="https://www.whatmore.ai"},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)(A.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",gap:"20px",justifyContent:"center",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://wa.me/?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(ge,{iconSize:Math.min(t.iconSize,30)}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://twitter.com/intent/tweet?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(we,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e[1]),o("Link copied"),l("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(je,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14),color:r},children:i})]})]})]})})};var be=function(t){var e,i;const n=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!==(i=t.fontSize)&&void 0!==i?i:"8",[a]=(0,fe.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=${n}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`,m=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(xt.N,{href:m,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 i;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!==(i=t.color)&&void 0!==i?i:"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 i;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!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},Ce=i(9879),Se=i(9556),ke=i(2209);var Ie=()=>(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 _e=t=>{var e;const i={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,n.useState)(!1),[l,a]=(0,n.useState)(null),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),p=(0,n.useContext)(U.B);return(0,n.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,n.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,M.kz)({userInteractionType:H.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)(ke.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)(Se.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.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)(Ie,{}),(0,f.jsx)(Se.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:i.options.map(((e,i)=>(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 i;a(e),r(!0),(0,M.kz)({userInteractionType:H.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.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)(j.E,{py:5,color:"gray.800",children:e})},i)))})})]})},ze=i(4533),Ee=i(9935);var Te=t=>{var e,i;const[o,r]=(0,n.useState)(""),[l,a]=(0,n.useState)(""),[d,s]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),m=(0,v.Xd)("whatmoreSecondaryColor"),g=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,y=(0,n.useContext)(U.B),b=()=>{var e,i;(()=>{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,M.kz)({userInteractionType:H.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===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:y})):a("Please enter valid contact info.")},C=()=>{var e;t.setIsQuestionVisible(!1),(0,M.kz)({userInteractionType:H.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:y})};return(0,f.jsx)(dt.s,{bg:m,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)(L,{onCloseCallback:C})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then((()=>{h(!0),setTimeout((()=>{C()}),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)(Ee.A,{sx:{color:u?{whatmoreSecondaryColor:m}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:m,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)(j.E,{fontFamily:g,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)(L,{onCloseCallback:C})}),(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:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&b()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(j.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:b,width:"50%",children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:m,children:"SUBMIT"})})]})]})})};var Ne=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Te,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Fe=t=>{var e;const[i,o]=(0,n.useState)(null),r=t.questionIndex,l=t.questionList;if((0,n.useEffect)((()=>{if(!(r>=l.length))return()=>(0,ze.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)(Ne,{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)(_e,{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:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Ae=i(6118);const Le=t=>{let{iconSize:e}=t;return(0,f.jsx)("div",{style:{color:"white",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,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 Pe=function(t){const e=(0,v.Xd)("whatmoreShopId"),i=t.event,[n,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,se.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),n=await e.blob(),o=window.URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${i.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)(Le,{iconSize:a})})})})};function Be(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(U.B),[m]=(0,v.QN)("whatmoreSecondaryColor"),[g]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(g),y=null!==(e=(0,p.qAx)(g))&&void 0!==e?e:[m,w,m,w,m],b=(0,n.useRef)(null);(0,n.useEffect)((()=>{b.current&&b.current.play()}),[]);const C=(0,se.s)(null===i||void 0===i?void 0:i.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 "+y[0]+"50, 0px -2px 1px 0px "+y[1]+"50, 2px 0px 1px 0px "+y[2]+"50, -2px 0px 1px 0px "+y[3]+"80, 2px -2px 1px 0px "+y[4]+"80, -2px 2px 1px 0px "+y[0]+"DA, 2px 2px 1px 0px "+y[1]+"DA, -2px -2px 1px 0px "+y[2]+"DA"},children:"video"==(0,st.B)(C)?(0,f.jsx)(Ce.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:C,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:C,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.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:i.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Oe=function(t){var e,i,o;const[r,a,d]=(0,fe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),S=(0,n.useContext)(Ci),{whatmoreEventsBrowsingTemplate:k}=(0,n.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),F=t.event,A=t.storySetId,P=t.isLast,B=t.onCloseCallback,O=t.focusRef,R=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,X=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)(U.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(F,1)})(),(0,M.kz)({userInteractionType:H.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:F,productList:null===F||void 0===F?void 0:F.products,ctaList:null===F||void 0===F?void 0:F.cta});const e=F.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${F.products.length>1?"these products":"this product"} I saw on ${null===(t=F.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[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)(Ft.S,{userInteractionType:H.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Fe,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:nt,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)(ye,{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)(de,{progress:ae(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)(Be,{event:F,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(b.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(L,{event:F,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:()=>{X()},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)(D,{swipeUp:!P})})}):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"==C&&(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)(Ae.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"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)(Pe,{event:F})})})]}),(0,p.oZc)(C)&&!(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)(ge,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(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)(me,{event:F})}),(0,ht.Yt)(k)&&"50529403072"===C&&(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)(ge,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(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)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Nt.Z_)(F)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(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)(N,{event:F,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Lt,{event:F,productClickHandler:R})})]}):(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)(be,{brandName:null===F||void 0===F?void 0:F.brand,fontSize:.033*E})})]})]})},De=i(5491),Re=i.n(De),We=i(6493);var Ve=function(t){var e,i,o,r,l,a,[d,w,j,y]=(0,x.A)();const[b,C]=(0,n.useState)(!1),[S,k]=(0,n.useState)(),[I,_]=(0,n.useState)(),[z,E]=(0,n.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),N=t.event,F=t.storyId,A=t.onBack,L=n.useRef(),P=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!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=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,n.useContext)(U.B),{questionList:G}=(0,n.useContext)(Ci),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,n.useState)();(0,n.useEffect)((()=>{tt(t.showQuestion)}),[t.showQuestion]);const et="center";let it;try{it=Re()((()=>{R()}),1e3,{leading:!0,trailing:!1})}catch(nt){console.log(nt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:y,height:j,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:et,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:y/j,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,se.s)((0,We.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=ae(t,e);W({watch_time:t,video_duration:e});const n=z.is_video_ended;i>=99&&B&&!n?(it(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:n})},event:N,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),X?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:et,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)(Oe,{focusRef:L,event:t.event,isLast:O,onCloseCallback:t=>{A(t),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta})},productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(T),T);_(t),k(e),C(!0),D(!0),(0,M.kz)({userInteractionType:H.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.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:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:P})})}):(0,f.jsx)(f.Fragment,{}),!0===b?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:et,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)(re,{focusRef:L,event:t.event,isLast:O,onCloseCallback:()=>A(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{C(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,f.jsx)("div",{})]})})},Qe=i(2039),Me=i(6613),He=i(1085),Ue=i(5727);var Xe=function(t){var[e,i,n,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:n,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/n,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,se.s)((0,We.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,He.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ue.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,He.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ye=i(3294),$e=i(9821);var qe=function(t){var e,i;const n=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,[p,x]=(0,Pt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,Me.MN)()&&0==m)return(0,$e._)()?(0,f.jsx)(Xe,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ve,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.ij)(o)||(0,Qe.Il)(o))return(0,f.jsx)(Ve,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:b}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(le,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:g},"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",{})},Ke=i(4806),Ge=i.n(Ke),Ze=i(2804),Je=i(6834);function ti(t){var e;const[i,o]=(0,n.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:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(Je.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)(Ze.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 ei=function(t){var e,i,n;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(n=t.fontSize)&&void 0!==n?n: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)(ti,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(ti,{type:"right",onClick:a,fontSize:l})]})})},ii=i(964),ni=i(3330);var oi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,n.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var ri=function(t,e){const i=(0,n.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(n){const o=i.current.clientX,r=i.current.clientY;var l=o-n.changedTouches[0].clientX,a=r-n.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 li=function(t,e){const i=(0,n.useRef)(Re()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(n,o){var r=0;if(r="vertical"==t?n.deltaY:n.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(o,l)}]},ai=i(6325);var di=function(t){const e=t.events,i=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,n.useState)(!0),[y,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[C,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(Ci),{slideDirection:z}=(0,n.useContext)(Ci),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,F]=oi(i,e.length),[A,L]=ri(z,10),[P]=li("vertical",10),[B,O]=(0,n.useState)(!0),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)(U.B);function X(){O(!1)}function Y(t){X(),setTimeout((()=>{a(t)}),500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=i;const{questionList:G}=(0,n.useContext)(Ci);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(F("right"),D.slideNext())}function J(t,e){F(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(Ge(),{isOpen:B,onRequestClose:X,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(ai.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,V.YU)("#000000",13)},onTouchStart:t=>{A(t)},onTouchEnd:t=>{if(C)return;const e=L(t);e&&J(0,e)},onWheel:t=>{C||P(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:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!C,allowSlidePrev:!C,allowTouchMove:!1,onSwiper:t=>{R(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products})},onSlideChange:t=>{var i;w?j(!1):(y||b(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}),i=e[N().activeIndex],m||g||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t,null===i||void 0===i?void 0:i.location,null===Q||void 0===Q?void 0:Q.userType)):T.startsWith("product")||"embed"===T?((0,ni.sendVideoViewEventToGA)(E,ii.DK,ii.K1),(0,ze.Ch)(i.event_id,i.products,ii.DK,ii.K1,t)):T.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(E,ii.Sx,ii.rz),(0,ze.Ch)(i.event_id,i.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t))})(),(0,M.UM)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((n=>(0,f.jsx)(o.qr,{children:n=>{let{isActive:o,isPrev:r,isNext:l,isVisible:a,isDuplicate:d}=n;const s=o?"activeIndex":r?"prevIndex":"nextIndex",c=N()[s];"activeIndex"==s&&(K=Math.max(K,c),0==c&&(K=0));const h=(null===G||void 0===G?void 0:G.length)>0&&o&&a&&(c>i||K<i&&c>0)&&c>=K&&c%(0,p.uSp)(E)==i%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(qe,{event:e[c],showQuestion:h,onBack:Y,isPlaying:1==e.length||o&&a,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-"+n)))}),e.length>1&&!C&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(ei,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},si=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const ci=t=>{let{children:e,customClass:i,show:n,closeCallback:o}=t;return si.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${i}`,style:{display:n?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};ci.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var ui=ci;var hi=function(t){var e,[i,a,d,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,n.useContext)(U.B),[N,F]=(0,n.useState)(!1),[A,P]=(0,n.useState)(null);function B(){F(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,X=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,n.useRef)(0);function $(t){B(),setTimeout((()=>{R(t)}),500)}function q(){A&&!A.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&A.slideNext()}(0,n.useEffect)((()=>(F(!0),()=>{})),[]),C($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:N,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,V.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,M.kz)({userInteractionType:H.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:tt>=5,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;y?b(!1):(w||j(!0),e=O[t.activeIndex],m||g||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,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ni.sendVideoViewEventToGA)(I,ii.DK,ii.K1),(0,ze.Ch)(e.event_id,e.products,ii.DK,ii.K1,t)):_.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(I,ii.Sx,ii.rz),(0,ze.Ch)(e.event_id,e.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t))})(),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,M.UM)({userInteractionType:H.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)(L,{onCloseCallback:R})}),W.slice(D,O.length+D).map(((t,e)=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;if(i)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)(qe,{event:O[e%Q],onBack:$,isPlaying:!0,isLast:e%Q===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(o)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e%Q,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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===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=>{A.slideTo(e%Q,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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-1&&(Y.current=1)}catch(a){console.log(a)}return(0,f.jsx)(f.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))]})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(be,{brandName:X,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},pi=i(340),vi=i(5089),xi=i(572),mi=i(8603);var gi=function(t){const[e,i,n,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:n,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/n,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 fi=function(t){var e;const i=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=i.events;var[h,p,m,g]=(0,x.A)();const[w,j]=(0,Pt.A)(),[y]=(0,v.QN)("isInDesignMode"),[b]=(0,v.QN)("isDemoBrand"),[C]=(0,v.QN)("whatmoreShopId"),[S,k]=(0,n.useState)(!0),[I,_]=(0,v.QN)("isFirstIndicatorRenderDone"),[z,E]=(0,n.useState)(null),[T,N]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:A}=(0,n.useContext)(U.B),[L,P]=oi(s,c.length);function B(t){r(t)}const O=F.landingLocationType,D=F.templateType;function R(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(P("right"),z&&z.slideNext())}function W(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(P(t),z&&("left"==t?z.slidePrev():z.slideNext()))}const[V,Q]=(0,n.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:g,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{E(t)},onSlideChange:t=>{S?k(!1):(I||_(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(O)+(0,ht.gf)(D)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);y||b||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(C,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===A||void 0===A?void 0:A.userType)})()}(c[L().activeIndex]),(0,M.kz)({userInteractionType:H.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:e=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=e;if(d){const e=n?"activeIndex":o?"prevIndex":"nextIndex",r=c[L()[e]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Qe.ij)(r)||(0,Qe.Il)(r)?(0,f.jsx)(Ve,{event:r,totalSiblingEvents:c.length,indexAmongSiblings:L()[e],onBack:B,isPlaying:d&&n&&l,isLast:!1,setLockSwiper:N,onVideoEndedCallback:R,progressUpdateCallback:t=>{Q(t)},leftOpenSpaceClickHandler:()=>{W("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{W("right")},storyId:i.id,source:Ye.N.STORY_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay},"shopping-video-view"+r.event_id):(0,f.jsx)(f.Fragment,{})})}return(0,f.jsx)(u.B,{direction:"column",height:h,justifyContent:"center",children:(0,f.jsx)(gi,{})})}},"event-story-view-slide-"+e)))})})};var wi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,fe.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ci),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=oi(a,i.length),[b,C]=ri("horizontal",50),[S]=li("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!0),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)(U.B);function F(){_(!1)}function A(t){F(),setTimeout((()=>{e(t)}),500)}g(A);const L=T.landingLocationType,P=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(Ge(),{isOpen:I,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{b(t)},onTouchEnd:t=>{const e=C(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,ht.Wd)(L)+(0,ht.gf)(P)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(w,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:t=>{let{isActive:e,isPrev:n,isNext:o,isVisible:r,isDuplicate:l}=t;const d=e?"activeIndex":n?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(fi,{stories:i[j()[d]],onBack:A,isActive:e&&r,isNext:o,isPrev:n,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[d]?k:0},"event-story-view-"+i[j()[d]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var ji=function(t){var e,i,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[m]=(0,v.QN)("whatmoreSecondaryColor"),g=t.event,w=(t.onBack,n.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(i=t.heightFactor)&&void 0!==i?i:1,b="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=j,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:b,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Qe.ij)(g)||(0,Qe.Il)(g)?(0,f.jsx)(Ce.A,{height:"100%",width:"100%",url:g.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:g}):(0,f.jsx)(y._,{width:"full",height:"full",src:g.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+m+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:b,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 yi=function(t){var e,i,[a,d,h,p]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)(U.B),[E,T]=(0,n.useState)(!1),[N,F]=(0,n.useState)(null);function A(){T(!1)}t.events;const P=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){A(),setTimeout((()=>{B(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),C(W);const V=_.landingLocationType,Q=_.templateType;function X(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:E,closeCallback:A,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,i;F(t),(0,M.kz)({userInteractionType:H.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===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.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,i;y?b(!1):(w||j(!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);m||g||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.OL),(0,ze.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,M.kz)({userInteractionType:H.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===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(L,{onCloseCallback:B})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a}=i;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)(fi,{stories:t,onBack:W,isActive:n&&l,isNext:!1,isPrev:!1,onStoryCompleteCallback:X,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return o||r?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(ji,{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)(be,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const bi=(0,mi.A)({key:"whatmore-css-sv"}),Ci=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Si=function(t){var e,i,o;const[r,l,a]=(0,fe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",b="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete vi.Ay.styles.global,c?(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(yi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(wi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b,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)(di,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(hi,{events:h,eventIndex:x,onBack:m})})})})}},6125:function(){},6305:function(t,e,i){var n=i(9950),o=i(1348),r=i(5830),l=i(1052),a=i(140),d=i(8149),s=i(5647),c=i(3262),u=i(5551);e.A=function(t,e,i){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,m]=(0,n.useState)(null),g=(0,n.useRef)(null),{closeClickComponent:f}=(0,n.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,n.useContext)(u.B),[j,y]=(0,n.useState)({state:"init",cart_count:t});function b(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:j.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function C(t){const e=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function S(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(g.current&&g.current.length>=1){return g.current.filter((t=>t.available)).length>=1}return!1}function z(t,e,i){p||v||(async()=>{(0,a.tO)(t,e,i)})()}function E(t,n){const a=C(t);if(!a)return void b("init",j.cart_count);b("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,i,e,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(i,e,1),b("init",j.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,(()=>{}),100,window.location.hostname,a,e.client_product_id,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}return[j,function(t){const n=[];b("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,d.M)(t,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const i=S(e);if(m(i),I(i)&&_()){const e=C([k(i[0]),k(i[1]),k(i[2])]);return e?(n.push(t),e):void b("init",j.cart_count)}}))))).then((a=>{const d=a.filter((t=>void 0!=t));(0,l.cF)(d,1,(0,o.NCy)(h),h,i,e,t,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{z(i,t,1)})),b("init",j.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}))},b,x,function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const n=S(e);m(n),I(n)||i?_()?E([k(n[0]),k(n[1]),k(n[2])],t):b("errored",null):b("awaitingVariantSelection",null)})).catch((t=>{b("errored",null)}))},E,function(t){var e,i,n,r;const l=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,i){var n=i(9950),o=i(5830);e.A=function(t){const[e,i]=(0,o.QN)("muted");return(0,n.useEffect)((()=>{}),[]),[e,i]}},7035:function(t,e,i){i.d(e,{m:function(){return n}});const n={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"}}},7239:function(t,e,i){var n=i(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",i=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==n.A.LIVE.name)return{status:n.A.LIVE,bannerText:" "+n.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==n.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+i+" "+l),function(t){var e=new Date,i=(t.getTime()-e.getTime())/1e3,o=i/60,r=o/60,l=r/24;return i<=0?{status:n.A.COMPLETED,bannerText:" "+n.A.COMPLETED.name+" ",timeToStartInMins:0}:i>=1&&i<=30?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" sec ",timeToStartInMins:i/60}:o<60?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:n.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:n.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:n.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,i){i.d(e,{c:function(){return a}});var n=i(6649),o=i(9950),r=(i(4365),i(4414));function l(t){const[e,i,o]=(0,n.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:i?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,i;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,i=!1;function n(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(i=!0,e=t.touches[0].clientX):(i=!0,e=t.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",i=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",n),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(i=t.dataList)||void 0===i?void 0:i.map(((e,i)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(140);var u=i(5144),h=i(4905),p=i(5647),v=i(1348),x=i(8149),m=i(5551),g=i(1351),f=i(6157),w=i(4414);function j(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,N]=(0,d.useState)(!1),[F,A]=(0,d.useState)({state:"initial"}),[L,P]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(m.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){C||S||(async()=>{(0,c.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,x.M)(R,(0,v.NCy)(_),_);P({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const Q=null!==(i=t.width)&&void 0!==i?i:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{N(!0),V(D,R,1),(0,g.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout((()=>{B()}),2e3)},children:"initial"===F.state?(0,w.jsx)(n.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{N(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(j,{event:D,product:R,baseFontSize:W,cartState:F,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);
127
+ `} 0.5s`,It=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"))})),[_t,zt]=(0,n.useState)(-1!==It?null===(i=M.options)||void 0===i||null===(o=i[It])||void 0===o||null===(r=o.values)||void 0===r?void 0:r[0]:""),[Et,Tt]=(0,n.useState)({});(0,n.useEffect)((()=>{-1!==It&&"whatmore"!==(0,p.NCy)(yt)&&async function(){const t=await(0,Wt._N)(U);Tt(t)}()}),[]);let Nt=-1,Ft=-1!==It&&null!==Et&&void 0!==Et&&Et.product&&(null===Et||void 0===Et||null===(l=Et.product)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.length)>=(null===Et||void 0===Et||null===(d=Et.product)||void 0===d||null===(u=d.options)||void 0===u||null===(h=u[It])||void 0===h||null===(m=h.values)||void 0===m?void 0:m.length)?null===Et||void 0===Et||null===(g=Et.product)||void 0===g||null===(w=g.images)||void 0===w?void 0:w.map((t=>{var e,i,n,o,r,l,a,d,s,c,u,h,p,v;const x=null===Et||void 0===Et||null===(e=Et.product)||void 0===e||null===(i=e.options)||void 0===i?void 0:i.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===Et||void 0===Et||null===(n=Et.product)||void 0===n||null===(o=n.options)||void 0===o||null===(r=o[x])||void 0===r||null===(l=r.values)||void 0===l?void 0:l[Math.min(++Nt,(null===Et||void 0===Et||null===(a=Et.product)||void 0===a||null===(d=a.options)||void 0===d||null===(s=d[It])||void 0===s||null===(c=s.values)||void 0===c?void 0:c.length)-1)]:null===Et||void 0===Et||null===(u=Et.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,Nt)],src:null===t||void 0===t?void 0:t.src}})):[],At=[];if("whatmore"==(0,p.NCy)(yt)&&(null===M||void 0===M||null===(j=M.images)||void 0===j?void 0:j.length)>0){var Lt;var Pt;if(-1!==(null===M||void 0===M||null===(Lt=M.options)||void 0===Lt?void 0:Lt.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===(Pt=M.images)||void 0===Pt?void 0:Pt.map((t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})))}return Nt+1<(null===Et||void 0===Et||null===(b=Et.product)||void 0===b||null===(C=b.options)||void 0===C||null===(S=C[It])||void 0===S||null===(I=S.values)||void 0===I?void 0:I.length)&&(Ft=[]),(0,f.jsxs)(dt.s,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",className:"wht-shn-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"xl":null,animation:kt,children:[(0,f.jsx)(Yt,{setOpenShopNow:X,setLockSwiper:Y,FONT_SIZE:W}),(0,f.jsx)(s.o,{marginBottom:"10px",px:"20px",py:"5px",children:(0,f.jsx)(dt.s,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.YcK)(yt),borderColor:(0,p.Fwt)(yt)},children:(0,f.jsx)(dt.s,{width:"100%",children:(0,f.jsx)(Jt.c,{renderElement:t=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(c.az,{width:O+"px",height:D+"px",children:(0,f.jsx)(y._,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"lg":null,src:(0,st.b)(t.eventData.src,"&width=400&height=400"),alt:U.handle,sx:{objectFit:(0,p.KZe)(yt)+" !important"},fallback:(0,f.jsx)(R.A,{width:O+"px",height:D+"px",borderRadius:"round"==(null===jt||void 0===jt?void 0:jt.whatmoreUITheme)?"10px":"0px"})})})}),dataList:Ft.length>0&&!Ft.includes(null)?null===(_=Ft)||void 0===_?void 0:_.filter((t=>(null===t||void 0===t?void 0:t.color)==_t)):At.length>0?[null===(z=At)||void 0===z?void 0:z.find((t=>(null===t||void 0===t?void 0:t.color)==_t))]: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.jsx)(Kt,{data:M,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,getVariantPrice:ie,selectedVariantId:nt,itemPrice:ct,itemQuantity:rt,setItemQuantity:lt,thumbnailImage:ft}),(null===M||void 0===M||null===(T=M.variants)||void 0===T?void 0:T.length)>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.o,{paddingTop:"4px",width:"100%",children:(0,f.jsx)(at.c,{color:(0,p.R6d)(yt),size:"xs",width:"90%"})}),(0,f.jsx)(Zt,{data:M,dividerColor:(0,p.R6d)(yt),setSelectedColor:zt,finalArr:Ft,finalArrExternal:At,product:U,PRODUCT_TILE_HEIGHT:B,PRODUCT_TILE_WIDTH:P,FONT_SIZE:W,selectOptionFirstHandler:bt,selectOptionSecondHandler:Ct,selectOptionThirdHandler:St,getVariantPrice:ie,selectedOptionFirst:G,selectedOptionSecond:J,selectedOptionThird:et,selectedVariantId:nt,isVariantAvailable:K})]}),(0,p.wW8)(yt)&&((null===M||void 0===M?void 0:M.description)||(null===M||void 0===M?void 0:M.body_html))&&(0,f.jsx)($t,{PRODUCT_TILE_HEIGHT:B,FONT_SIZE:W,data:M,handleToggle:()=>Q(!V),show:V}),(0,f.jsx)(c.az,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,f.jsx)(Xt,{position:"relative",data:M,FONT_SIZE:W,product:U})}),(0,f.jsx)(Xt,{position:"fixed",selectedVariantId:nt,data:M,FONT_SIZE:W,PRODUCT_TILE_WIDTH:P,product:U,itemQuantity:rt,cartItemCount:ht,addToCartFlag:vt,setAddToCartFlag:xt,soldOutFlag:mt,setSoldOutFlag:gt,onCloseCallback:t.onCloseCallback,event:H})]})}const ee=(t,e,i,n)=>{var o;if(!e&&!i&&!n)return;const r=null===t||void 0===t||null===(o=t.variants)||void 0===o?void 0:o.find((t=>(!e||t.option1===e)&&(!i||t.option2===i)&&(!n||t.option3===n)));return r?r.id:void 0},ie=(t,e)=>{var i,n;return null===t||void 0===t||null===(i=t.variants)||void 0===i||null===(n=i.find((t=>t.id===e)))||void 0===n?void 0:n.price},ne=(t,e)=>{var i;const n=null===t||void 0===t||null===(i=t.variants)||void 0===i?void 0:i.find((t=>t.id==e));return void 0===n?null:null===n||void 0===n||null===(o=n.featured_image)||void 0===o?void 0:o.src;var o},oe=(0,n.createContext)({setShowOptionsChart:null});var re=function(t){const e=t.event,i=t.data,o=t.currentProduct,r=t.setOpenShopNow,l=t.setLockSwiper,a=t.onCloseCallback,[d,s]=(0,n.useState)(!1);return(0,f.jsx)(oe.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)(te,{data:i,event:e,product:o,setOpenShopNow:r,setLockSwiper:l,onCloseCallback:a})})}),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)(Dt,{data:i,event:e,product:o,setShowOptionsChart:()=>{s(!1)}})})}):(0,f.jsx)(f.Fragment,{})]})})};var le=function(t){var e,[i,o,r,l]=(0,x.A)();const[a,d]=(0,n.useState)(!1),[g,j]=(0,n.useState)(),[y,b]=(0,n.useState)(),C=(0,v.Xd)("whatmoreShopId"),S=t.event,k=t.onBack,I=n.useRef(),_=t.isPlaying,z=t.isLast,E=t.setLockSwiper,T=t.selectedVariantId,N=null===(e=t.showOverlay)||void 0===e||e,F="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:F,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})})})}),N?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:F,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)(Ot,{focusRef:I,event:t.event,isLast:z,onCloseCallback:k,productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(C),C);b(t),j(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:F,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)(re,{focusRef:I,event:t.event,isLast:z,onCloseCallback:()=>k(),setLockSwiper:E,data:g,currentProduct:y,setOpenShopNow:d,selectedVariantId:T})})}):(0,f.jsx)("div",{})]})})};const ae=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function de(t){var e,i,[n,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!==(i=t.indexAmongSiblings)&&void 0!==i?i: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 se=i(3788),ce=i(758);const ue=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t,he=()=>"undefined"!==typeof window&&window.innerWidth>=1024;var pe=function(t){var e,i,o,r,a,d=t.whatmoreShareTemplateId;const h=t.whatmoreShareStoryId,m=t.whatmoreShareEventId,g=t.event,w=null===(e=t.showShareText)||void 0===e||e,y=null!==(i=t.shareButtonBottomMargin)&&void 0!==i?i:0,b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("isInDesignMode"),S=(0,v.Xd)("isDemoBrand"),k=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:_}=(0,n.useContext)(U.B),[z,E,T,N]=(0,x.A)(),F=null!==(o=t.iconSize)&&void 0!==o?o:.1*N*(0,p.xkB)(b);function A(){const e=(0,v.Xd)("whatmoreLandingLocationType");var i;!function(t){C||S||(async()=>{(0,l.Zh)(t)})()}(g),i="event_product_link"===(0,p.moP)(b)?g.products[0].product_link||"":window.location.pathname,i=("event_product_link"===(0,p.moP)(b)?"":window.location.hostname)+i+"?wtt="+d+"&wsid="+h+"&weid="+m,(0,p.BLb)(b)&&(i=i+"&"+(0,p.VCz)(b)+"&utm_campaign=video-share&utm_medium="+e);const n={title:(0,p.kZI)(b),text:`${(0,p.dmA)(b)} \n ${i} ${"50529403072"!==b&&(0,p.ZX9)(b)?"\n \n -via Whatmore":""}`};navigator.share&&!he?navigator.share(n):(t.setIsModalOpen(!0),t.setShareText([n,i]))}return(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{cursor:"pointer",style:{marginBottom:y+"px"},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,f.jsx)(ce.A,{sx:{transform:"scaleX(-1)",color:"white",fontSize:F,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),A(),(0,M.kz)({userInteractionType:H.O.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:_,event:g,productList:g.products,ctaList:g.cta})}}),w&&(0,p.ViG)(b)?(0,f.jsxs)(j.E,{fontSize:.3*F+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:k+" !important",color:"white !important",maxWidth:"48px",wordWrap:"break-word"},children:["\xa0",g.total_share>(0,p.vDV)(b)?ue(g.total_share):null!==(r=null===tt.m||void 0===tt.m||null===(a=tt.m[I])||void 0===a?void 0:a.share)&&void 0!==r?r:"Share","\xa0"]}):(0,f.jsx)(f.Fragment,{})]})})})},ve=i(3420),xe=i(7170);var me=function(t){var e,i,o;const r=(0,v.Xd)("whatmoreShopId"),a=(0,v.Xd)("whatmorePrimaryFont"),d=(0,v.Xd)("whatmoreLikedEvents"),h=(0,v.Xd)("isInDesignMode"),m=(0,v.Xd)("isDemoBrand"),g=(0,v.Xd)("websiteLanguage"),{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(U.B),y=t.event,[b,C]=(0,n.useState)(null!==(e=d[y.event_id])&&void 0!==e&&e),[S,k,I,_]=(0,x.A)(),z=.1*_*(0,p.xkB)(r);function E(t,e){h||m||(async()=>{(0,l.$B)(t,e)})()}function T(){(0,v.t2)("whatmoreLikedEvents",{...d,[y.event_id]:!b}),b?(E(y,-1),(0,M.kz)({userInteractionType:H.O.VIDEO_UNLIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})):(E(y,1),(0,M.kz)({userInteractionType:H.O.VIDEO_LIKED,widgetSourceDetails:w,event:y,productList:y.products,ctaList:y.cta})),C(!b)}const N=y.total_like+(b?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:[b?(0,f.jsx)(xe.A,{sx:{boxShadow:3,color:(0,p.MJ6)(r),fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}):(0,f.jsx)(ve.A,{sx:{boxShadow:3,color:"white",fontSize:z,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{t.stopPropagation(),T()}}),(0,f.jsx)(f.Fragment,{children:(0,p.FlI)(r)?(0,f.jsxs)(j.E,{fontSize:.3*z+"px !important",fontWeight:"semibold !important",align:"center",sx:{fontFamily:a+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",N>=(0,p.LGx)(r)?ue(N):null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[g])||void 0===o?void 0:o.like)&&void 0!==i?i:"Like","\xa0"]}):(0,f.jsx)(f.Fragment,{})})]})})})};const ge=({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"})})});var fe=i(1941);const we=({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"})})}),je=({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"})})});var ye=t=>{const e=t.shareText,[i,o]=(0,n.useState)("Copy link"),[r,l]=(0,n.useState)("");return(0,f.jsx)(f.Fragment,{children:t.isModalOpen&&(0,f.jsxs)("div",{className:"modal-overlay",style:{backgroundColor:"white",borderRadius:"10px",padding:"12px 12px 20px 12px"},children:[(0,f.jsxs)("div",{style:{cursor:"pointer",display:"flex",justifyContent:"space-between",paddingBottom:"6px"},children:[(0,f.jsx)("img",{className:"whatmore-label",onClick:()=>{window.location.href="https://www.whatmore.ai"},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)(A.A,{className:"close-rounded-icon",onClick:e=>{e.stopPropagation(),t.setIsModalOpen(!1)}})]}),(0,f.jsx)("div",{}),(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"100%"}),(0,f.jsxs)("div",{className:"social-icons",style:{display:"flex",gap:"20px",justifyContent:"center",paddingTop:"12px"},children:[(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://wa.me/?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(ge,{iconSize:Math.min(t.iconSize,30)}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"Whatsapp"})]}),(0,f.jsxs)("div",{onClick:t=>{var i;t.stopPropagation();const n=encodeURIComponent(null===(i=e[0])||void 0===i?void 0:i.text);window.open(`https://twitter.com/intent/tweet?text=${n}`,"_blank")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(we,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14)},children:"X"})]}),(0,f.jsxs)("div",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e[1]),o("Link copied"),l("green")},style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,f.jsx)(je,{iconSize:Math.min(t.iconSize,30),style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)("p",{style:{fontSize:Math.min(t.iconSize,14),color:r},children:i})]})]})]})})};var be=function(t){var e,i;const n=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!==(i=t.fontSize)&&void 0!==i?i:"8",[a]=(0,fe.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=${n}&utm_medium=referral&utm_campaign=${d}`:`https://apps.shopify.com/whatmore-live?utm_source=${n}&utm_medium=referral&utm_campaign=${d}`,m=s?"https://www.letsmapit.in/":x;return(0,f.jsx)(xt.N,{href:m,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 i;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!==(i=t.color)&&void 0!==i?i:"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 i;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!==(i=t.color)&&void 0!==i?i:"white"))},children:"Whatmore"})]})]})})},Ce=i(9879),Se=i(9556),ke=i(2209);var Ie=()=>(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 _e=t=>{var e;const i={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,n.useState)(!1),[l,a]=(0,n.useState)(null),[d,s]=(0,n.useState)(null),h=(0,n.useRef)(null),p=(0,n.useContext)(U.B);return(0,n.useEffect)((()=>{if(o){const e=setTimeout((()=>{t.setIsQuestionVisible(!1)}),1e3);return()=>clearTimeout(e)}}),[o]),(0,n.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,M.kz)({userInteractionType:H.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)(ke.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)(Se.D,{py:6,as:"h2",textAlign:"center",style:{fontWeight:"bold",fontSize:"18px",color:"white"},children:null===i||void 0===i?void 0:i.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)(Ie,{}),(0,f.jsx)(Se.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:i.options.map(((e,i)=>(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 i;a(e),r(!0),(0,M.kz)({userInteractionType:H.O.QUESTION_ANSWERED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(i=t.question)||void 0===i?void 0:i.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)(j.E,{py:5,color:"gray.800",children:e})},i)))})})]})},ze=i(4533),Ee=i(9935);var Te=t=>{var e,i;const[o,r]=(0,n.useState)(""),[l,a]=(0,n.useState)(""),[d,s]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),x=(0,v.Xd)("whatmoreShopId"),m=(0,v.Xd)("whatmoreSecondaryColor"),g=(0,v.Xd)("whatmorePrimaryFont"),w=null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.title,y=(0,n.useContext)(U.B),b=()=>{var e,i;(()=>{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,M.kz)({userInteractionType:H.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===(i=t.question)||void 0===i?void 0:i.type)?"leadgen:number":"leadgen:email"},widgetSourceDetails:y})):a("Please enter valid contact info.")},C=()=>{var e;t.setIsQuestionVisible(!1),(0,M.kz)({userInteractionType:H.O.QUESTION_CLOSED,userInteractionMetadata:{questionId:null===t||void 0===t||null===(e=t.question)||void 0===e?void 0:e.id},widgetSourceDetails:y})};return(0,f.jsx)(dt.s,{bg:m,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)(L,{onCloseCallback:C})}),(0,f.jsxs)(c.az,{position:"relative",width:"70%",onClick:()=>{const t=(0,p.TH)(x);navigator.clipboard.writeText(t).then((()=>{h(!0),setTimeout((()=>{C()}),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)(Ee.A,{sx:{color:u?{whatmoreSecondaryColor:m}:"gray",cursor:"pointer",marginLeft:"2%"}})]}),u&&(0,f.jsx)(c.az,{padding:"4%",position:"absolute",left:"50%",transform:"translateX(-50%)",bg:m,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)(j.E,{fontFamily:g,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)(L,{onCloseCallback:C})}),(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:g,type:"number"===(null===(i=t.question)||void 0===i?void 0:i.type)?"tel":"email",placeholder:t.placeholder,value:o,onChange:t=>{r(t.target.value),l&&a("")},onKeyDown:t=>{"Enter"===t.key&&b()},style:{fontSize:"1em",border:"none",outline:"none",width:"100%"}})}),l&&(0,f.jsx)(j.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:b,width:"50%",children:(0,f.jsx)(j.E,{fontFamily:g,fontSize:"0.8em",padding:"2%",color:m,children:"SUBMIT"})})]})]})})};var Ne=t=>{const[e,i]=(0,n.useState)(null);return(0,f.jsx)(c.az,{children:!e&&(0,f.jsx)(Te,{question:t.question,onEmailSubmit:t=>{i(t)},setIsQuestionVisible:t.setIsQuestionVisible,placeholder:t.placeholder})})};var Fe=t=>{var e;const[i,o]=(0,n.useState)(null),r=t.questionIndex,l=t.questionList;if((0,n.useEffect)((()=>{if(!(r>=l.length))return()=>(0,ze.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)(Ne,{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)(_e,{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:i,onClose:()=>{t.setIsQuestionVisible(!1)},setIsQuestionVisible:t.setIsQuestionVisible})})},Ae=i(6118);const Le=({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 Pe=function(t){const e=(0,v.Xd)("whatmoreShopId"),i=t.event,[n,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,se.s)(null===i||void 0===i?void 0:i.event_hls_url);if(t)try{const e=await fetch(t),n=await e.blob(),o=window.URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=`whatmore-video-${i.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)(Le,{iconSize:a})})})})};function Be(t){var e;const i=t.event,[o,r,l,a]=(0,x.A)(),[d]=(0,v.QN)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,n.useContext)(U.B),[m]=(0,v.QN)("whatmoreSecondaryColor"),[g]=(0,v.QN)("whatmoreShopId"),w=(0,p.ivI)(g),y=null!==(e=(0,p.qAx)(g))&&void 0!==e?e:[m,w,m,w,m],b=(0,n.useRef)(null);(0,n.useEffect)((()=>{b.current&&b.current.play()}),[]);const C=(0,se.s)(null===i||void 0===i?void 0:i.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 "+y[0]+"50, 0px -2px 1px 0px "+y[1]+"50, 2px 0px 1px 0px "+y[2]+"50, -2px 0px 1px 0px "+y[3]+"80, 2px -2px 1px 0px "+y[4]+"80, -2px 2px 1px 0px "+y[0]+"DA, 2px 2px 1px 0px "+y[1]+"DA, -2px -2px 1px 0px "+y[2]+"DA"},children:"video"==(0,st.B)(C)?(0,f.jsx)(Ce.A,{height:"100%",width:"100%",poster:null===i||void 0===i?void 0:i.thumbnail_image,url:C,isPlaying:!0,event:{event_type:"video"},borderRadius:"50%"}):(0,f.jsx)("img",{src:C,style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(j.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:i.storyset_name})})]})}):(0,f.jsx)(f.Fragment,{})})}var Oe=function(t){var e,i,o;const[r,a,d]=(0,fe.A)(),[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m,g]=(0,v.QN)("isProductSwiperCatalogOpen"),[w,y]=(0,v.QN)("isFirstIndicatorRenderDone"),[C]=(0,v.QN)("whatmoreShopId"),S=(0,n.useContext)(Ci),{whatmoreEventsBrowsingTemplate:k}=(0,n.useContext)(U.B),[I,_,z,E]=(0,x.A)(),T=(0,v.Xd)("whatmorePrimaryFont"),F=t.event,A=t.storySetId,P=t.isLast,B=t.onCloseCallback,O=t.focusRef,R=t.productClickHandler,W=t.videoPlayingData,V=t.totalSiblingEvents,Q=t.indexAmongSiblings,X=t.leftOpenSpaceClickHandler,Y=t.midOpenSpaceClickHandler,$=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:q}=(0,n.useContext)(U.B),K=.1*E,[G,Z]=(0,n.useState)(!1),[J,tt]=(0,n.useState)([]);function et(){var t;s||h||(async()=>{(0,l.A9)(F,1)})(),(0,M.kz)({userInteractionType:H.O.WHATSAPP_ICON_CLICKED,widgetSourceDetails:q,event:F,productList:null===F||void 0===F?void 0:F.products,ctaList:null===F||void 0===F?void 0:F.cta});const e=F.products.map((t=>`${t.product_link} \n`)),i=(0,p.dzp)(C),n="50529403072"==C?`Hey, I saw a video on your website, need more info about this: \n${e}`:`Hey, I am interested in ${F.products.length>1?"these products":"this product"} I saw on ${null===(t=F.products[0])||void 0===t?void 0:t.brand} store: \n${e}. Could you please help me with some queries?`;window.open(i+`&text=${n}&type=phone_number`,"_blank")}const it=t=>{nt.current&&!nt.current.contains(t.target)&&Z(!1)},nt=(0,n.useRef)(null);(0,n.useEffect)((()=>(G?document.addEventListener("click",it):document.removeEventListener("click",it),()=>{document.removeEventListener("click",it)})),[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)(Ft.S,{userInteractionType:H.O.QUESTION_VIEWED,userInteractionMetadata:{questionId:null===(e=t.questionList)||void 0===e||null===(i=e[t.qIndex])||void 0===i?void 0:i.id},triggerFlag:!s&&!h,children:(0,f.jsx)(Fe,{questionList:t.questionList,questionIndex:t.qIndex,setIsQuestionVisible:t.setIsQuestionVisible})}),G&&(0,f.jsx)("div",{ref:nt,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)(ye,{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)(de,{progress:ae(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)(Be,{event:F,width:E}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,ht.Yt)(k)?(0,f.jsx)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.098*E,setIsModalOpen:Z,setShareText:tt}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(b.A,{focusRef:O}),("landscape"!==r||t.showCloseOverlay)&&(0,f.jsx)(L,{event:F,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:()=>{X()},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)(D,{swipeUp:!P})})}):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"==C&&(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)(Ae.A,{style:{fontSize:1.3*K+"px",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"left")}})}),(0,f.jsx)(c.az,{children:(0,f.jsx)(Ae.A,{style:{fontSize:1.3*K+"px",transform:"rotate(180deg)",color:"white",cursor:"pointer",filter:"drop-shadow(0 0 5px black)"},onClick:()=>{t.changeSlide(F,"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)(Pe,{event:F})})})]}),(0,p.oZc)(C)&&!(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)(ge,{iconSize:.7*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})}):(0,f.jsx)(f.Fragment,{}),(0,p.MdM)(C)&&(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)(me,{event:F})}),(0,ht.Yt)(k)&&"50529403072"===C&&(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)(ge,{iconSize:.6*K,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,f.jsx)(j.E,{fontSize:K*(0,p.LOH)(C)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:T+" !important",color:"white !important"},children:(0,p.wtw)(C)})]})})]}),(0,p.iQ5)(C)&&!(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)(pe,{whatmoreShareTemplateId:(0,ht.Gy)(k),whatmoreShareStoryId:A,whatmoreShareEventId:F.event_id,event:F,setIsModalOpen:Z,setShareText:tt})})}):(0,f.jsx)(f.Fragment,{})]})}),(0,Nt.Z_)(F)?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(C)?(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)(N,{event:F,onToggle:t=>{g("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Lt,{event:F,productClickHandler:R})})]}):(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)(be,{brandName:null===F||void 0===F?void 0:F.brand,fontSize:.033*E})})]})]})},De=i(5491),Re=i.n(De),We=i(6493);var Ve=function(t){var e,i,o,r,l,a,[d,w,j,y]=(0,x.A)();const[b,C]=(0,n.useState)(!1),[S,k]=(0,n.useState)(),[I,_]=(0,n.useState)(),[z,E]=(0,n.useState)({current_time:0,video_duration:0,is_video_ended:!1}),T=(0,v.Xd)("whatmoreShopId"),N=t.event,F=t.storyId,A=t.onBack,L=n.useRef(),P=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!==(i=t.indexAmongSiblings)&&void 0!==i?i:0,X=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,n.useContext)(U.B),{questionList:G}=(0,n.useContext)(Ci),Z=(null===G||void 0===G?void 0:G.length)>0?parseInt(localStorage.getItem("_whatmore_qview_index")):1e4,[J,tt]=(0,n.useState)();(0,n.useEffect)((()=>{tt(t.showQuestion)}),[t.showQuestion]);const et="center";let it;try{it=Re()((()=>{R()}),1e3,{leading:!0,trailing:!1})}catch(nt){console.log(nt)}return(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:y,height:j,sx:{overflow:"hidden"},children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:et,height:"full",width:"full",children:(0,f.jsx)(c.az,{borderRadius:"md",backgroundColor:"white",children:(0,f.jsx)(h.g,{width:"full",ratio:y/j,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,se.s)((0,We.lP)(N)),isPlaying:B&&(!J||Z>=G.length),timeUpdateCallback:function(t,e){const i=ae(t,e);W({watch_time:t,video_duration:e});const n=z.is_video_ended;i>=99&&B&&!n?(it(),E({current_time:t,video_duration:e,is_video_ended:!0})):E({current_time:t,video_duration:e,is_video_ended:n})},event:N,question:J&&Z<(null===G||void 0===G?void 0:G.length),source:t.source})})})}),X?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:et,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)(Oe,{focusRef:L,event:t.event,isLast:O,onCloseCallback:t=>{A(t),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:z.current_time,video_duration:z.video_duration},widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.cta})},productClickHandler:async t=>{const e=await(0,m.M)(t,(0,p.NCy)(T),T);_(t),k(e),C(!0),D(!0),(0,M.kz)({userInteractionType:H.O.SHOPNOW_CLICKED,widgetSourceDetails:K,event:N,productList:N.products,ctaList:N.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:F,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:P})})}):(0,f.jsx)(f.Fragment,{}),!0===b?(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:et,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)(re,{focusRef:L,event:t.event,isLast:O,onCloseCallback:()=>A(),setLockSwiper:D,data:S,currentProduct:I,setOpenShopNow:t=>{C(t),(0,v.t2)("whatmoreAllowAutoSlide",!t)}})})}):(0,f.jsx)("div",{})]})})},Qe=i(2039),Me=i(6613),He=i(1085),Ue=i(5727);var Xe=function(t){var[e,i,n,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:n,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/n,children:(0,f.jsx)(g.A,{height:"100%",width:"100%",url:(0,se.s)((0,We.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,He.bo)()},children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,f.jsx)(Ue.A,{sx:{boxShadow:3,color:(0,p.KFN)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,He.bo)()}}),(0,f.jsx)(j.E,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})},Ye=i(3294),$e=i(9821);var qe=function(t){var e,i;const n=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,[p,x]=(0,Pt.A)(),[m]=(0,v.QN)("whatmoreVideoPlayerPoolBlessed"),g=null===(i=t.showOverlay)||void 0===i||i;function w(){x(!p)}if((0,Me.MN)()&&0==m)return(0,$e._)()?(0,f.jsx)(Xe,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED},"shopping-video-view"+o.event_id):(0,f.jsx)(Ve,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.ij)(o)||(0,Qe.Il)(o))return(0,f.jsx)(Ve,{event:o,onBack:l,isPlaying:r,isLast:s,setLockSwiper:c,onVideoEndedCallback:u,progressUpdateCallback:h,showQuestion:t.showQuestion,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:g,source:Ye.N.CAROUSEL_EVENT_OPENED,showCloseOverlay:null===t||void 0===t?void 0:t.showCloseOverlay,changeSlide:n},"shopping-video-view"+o.event_id);if((0,Qe.Th)(o)){var{status:j,bannerText:y,timeToStartInMins:b}=d.A.getEventStatus(o);if(j.name===a.A.LIVE.name)return(0,f.jsx)(le,{event:o,onBack:l,isPlaying:r,isLast:s,showOverlay:g},"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",{})},Ke=i(4806),Ge=i.n(Ke),Ze=i(2804),Je=i(6834);function ti(t){var e;const[i,o]=(0,n.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:[i?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,f.jsx)(Je.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)(Ze.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 ei=function(t){var e,i,n;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(i=t.width)&&void 0!==i?i:"100%",l=null!==(n=t.fontSize)&&void 0!==n?n: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)(ti,{type:"left",onClick:a,fontSize:l}),(0,f.jsx)(ti,{type:"right",onClick:a,fontSize:l})]})})},ii=i(964),ni=i(3330);var oi=function(t,e){function i(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const o=(0,n.useRef)({prevIndex:i(t-1,e),activeIndex:t,nextIndex:i(t+1,e)});return[function(){return o.current},function(t){o.current="right"==t?{prevIndex:i(o.current.activeIndex,e),activeIndex:i(o.current.activeIndex+1,e),nextIndex:i(o.current.activeIndex+2,e)}:{prevIndex:i(o.current.activeIndex-2,e),activeIndex:i(o.current.activeIndex-1,e),nextIndex:i(o.current.activeIndex,e)}},function(t){return i(o.current.activeIndex+t)}]};var ri=function(t,e){const i=(0,n.useRef)({clientX:0,clientY:0});return[function(t){i.current.clientX=t.changedTouches[0].clientX,i.current.clientY=t.changedTouches[0].clientY},function(n){const o=i.current.clientX,r=i.current.clientY;var l=o-n.changedTouches[0].clientX,a=r-n.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 li=function(t,e){const i=(0,n.useRef)(Re()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(n,o){var r=0;if(r="vertical"==t?n.deltaY:n.deltaX,Math.abs(r)<=e)return;const l=r>0?"right":"left";i.current(o,l)}]},ai=i(4638);var di=function(t){const e=t.events,i=t.eventIndex,a=t.onBack;var[d,s,c,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,n.useState)(!0),[y,b]=(0,v.QN)("isFirstIndicatorRenderDone"),[C,S]=(0,n.useState)(!1),[k,I]=(0,n.useState)({}),{setCloseClickComponent:_}=(0,n.useContext)(Ci),{slideDirection:z}=(0,n.useContext)(Ci),[E]=(0,v.QN)("whatmoreShopId"),[T]=(0,v.QN)("whatmoreLandingLocationType"),[N,F]=oi(i,e.length),[A,L]=ri(z,10),[P]=li("vertical",10),[B,O]=(0,n.useState)(!0),[D,R]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:W,whatmoreUserInfo:Q}=(0,n.useContext)(U.B);function X(){O(!1)}function Y(t){X(),setTimeout((()=>{a(t)}),500)}const $=W.landingLocationType,q=W.templateType;_(Y);let K=i;const{questionList:G}=(0,n.useContext)(Ci);function Z(){(0,v.Xd)("whatmoreAllowAutoSlide")&&(F("right"),D.slideNext())}function J(t,e){F(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}const tt=Math.round(.05*c);return(0,f.jsx)(Ge(),{isOpen:B,onRequestClose:X,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)(ai.A,{children:(0,f.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,V.YU)("#000000",13)},onTouchStart:t=>{A(t)},onTouchEnd:t=>{if(C)return;const e=L(t);e&&J(0,e)},onWheel:t=>{C||P(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:i,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!C,allowSlidePrev:!C,allowTouchMove:!1,onSwiper:t=>{R(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products})},onSlideChange:t=>{var i;w?j(!1):(y||b(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:k,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}),i=e[N().activeIndex],m||g||null===i||void 0===i||!i.event_id||(async()=>{const t=(0,ht.Wd)($)+(0,ht.gf)(q)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,l.lB)(i),"index"===T?((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t,null===i||void 0===i?void 0:i.location,null===Q||void 0===Q?void 0:Q.userType)):T.startsWith("product")||"embed"===T?((0,ni.sendVideoViewEventToGA)(E,ii.DK,ii.K1),(0,ze.Ch)(i.event_id,i.products,ii.DK,ii.K1,t)):T.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(E,ii.Sx,ii.rz),(0,ze.Ch)(i.event_id,i.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(E,ii.TB,ii.Dk),(0,ze.Ch)(i.event_id,i.products,ii.TB,ii.Dk,t))})(),(0,M.UM)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:W,event:e[N().activeIndex],productList:e[N().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((n=>(0,f.jsx)(o.qr,{children:({isActive:n,isPrev:o,isNext:r,isVisible:l,isDuplicate:a})=>{const d=n?"activeIndex":o?"prevIndex":"nextIndex",s=N()[d];"activeIndex"==d&&(K=Math.max(K,s),0==s&&(K=0));const c=(null===G||void 0===G?void 0:G.length)>0&&n&&l&&(s>i||K<i&&s>0)&&s>=K&&s%(0,p.uSp)(E)==i%(0,p.uSp)(E);return(0,f.jsx)(u.B,{direction:"column",height:window.innerHeight,justifyContent:"center",children:(0,f.jsx)(qe,{event:e[s],showQuestion:c,onBack:Y,isPlaying:1==e.length||n&&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-"+n)))}),e.length>1&&!C&&(0,p.kb)(E)&&"horizontal"===(0,p.br0)(E)&&"horizontal"===z?(0,f.jsx)(ei,{relativeBottomPercentage:"50%",width:h,handleClick:(t,e)=>{J(0,"down"==e?"right":"left")},fontSize:parseInt(.12*h)}):(0,f.jsx)(f.Fragment,{})]})})})},si=i(7119);i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042);const ci=({children:t,customClass:e,show:i,closeCallback:n})=>si.createPortal((0,f.jsxs)("div",{className:`whatmore-landscape-modal whatmore-root ${e}`,style:{display:i?"block":"none"},children:[(0,f.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:n}),(0,f.jsx)("div",{className:"whatmore-landscape-modal-content",children:t})]}),document.body);ci.defaultProps={children:(0,f.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var ui=ci;var hi=function(t){var e,[i,a,d,h]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),[_]=(0,v.QN)("whatmoreLandingLocationType"),z=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:E,whatmoreUserInfo:T}=(0,n.useContext)(U.B),[N,F]=(0,n.useState)(!1),[A,P]=(0,n.useState)(null);function B(){F(!1)}const O=t.events,D=t.eventIndex,R=t.onBack,W=O.concat(O),Q=O.length,X=null===O||void 0===O||null===(e=O[0])||void 0===e?void 0:e.brand,Y=(0,n.useRef)(0);function $(t){B(),setTimeout((()=>{R(t)}),500)}function q(){A&&!A.isEnd&&(0,v.Xd)("whatmoreAllowAutoSlide")&&A.slideNext()}(0,n.useEffect)((()=>(F(!0),()=>{})),[]),C($);const K=E.landingLocationType,G=E.templateType,[Z,J]=(0,n.useState)({}),tt=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:N,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,V.YU)("#000000",13),children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.az,{height:"fit-content",width:h*tt,children:(0,f.jsxs)(o.RC,{onInit:t=>{P(t),(0,M.kz)({userInteractionType:H.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:tt>=5,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;y?b(!1):(w||j(!0),e=O[t.activeIndex],m||g||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,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t,null===e||void 0===e?void 0:e.location,null===T||void 0===T?void 0:T.userType)):_.startsWith("product")||"embed"===_?((0,ni.sendVideoViewEventToGA)(I,ii.DK,ii.K1),(0,ze.Ch)(e.event_id,e.products,ii.DK,ii.K1,t)):_.startsWith("collection")?((0,ni.sendVideoViewEventToGA)(I,ii.Sx,ii.rz),(0,ze.Ch)(e.event_id,e.products,ii.Sx,ii.rz,t)):((0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.Dk),(0,ze.Ch)(e.event_id,e.products,ii.TB,ii.Dk,t))})(),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:Z,widgetSourceDetails:E,event:O[t.activeIndex],productList:O[t.activeIndex].products,ctaList:O[t.activeIndex].cta}),(0,M.UM)({userInteractionType:H.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)(L,{onCloseCallback:R})}),W.slice(D,O.length+D).map(((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:i,isNext:n,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)(qe,{event:O[e%Q],onBack:$,isPlaying:!0,isLast:e%Q===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(n)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e%Q,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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});if(i&&1===Y.current)return(0,f.jsx)(u.B,{direction:"column",height:d,width:h,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{A.slideTo(e%Q,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)(qe,{event:O[e%Q],onBack:$,isPlaying:!1,isLast:e%Q===O.length-1,setLockSwiper:k,widthFactor:1,heightFactor:1,onVideoEndedCallback:q,progressUpdateCallback:t=>{J(t)},showOverlay:!1,mode:"landscape"})})});try{D+e>=Q-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)(be,{brandName:X,height:.04*d,width:.1*h,fontSize:.02*d})})]})})},pi=i(340),vi=i(5089),xi=i(572),mi=i(8603);var gi=function(t){const[e,i,n,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:n,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/n,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 fi=function(t){var e;const i=t.stories,r=t.onBack,a=t.onStoryCompleteCallback,d=t.isActive,s=null!==(e=t.initialEventIndex)&&void 0!==e?e:0,c=i.events;var[h,p,m,g]=(0,x.A)();const[w,j]=(0,Pt.A)(),[y]=(0,v.QN)("isInDesignMode"),[b]=(0,v.QN)("isDemoBrand"),[C]=(0,v.QN)("whatmoreShopId"),[S,k]=(0,n.useState)(!0),[I,_]=(0,v.QN)("isFirstIndicatorRenderDone"),[z,E]=(0,n.useState)(null),[T,N]=(0,n.useState)(!1),{whatmoreWidgetSourceDetails:F,whatmoreUserInfo:A}=(0,n.useContext)(U.B),[L,P]=oi(s,c.length);function B(t){r(t)}const O=F.landingLocationType,D=F.templateType;function R(){if(!(0,v.Xd)("whatmoreAllowAutoSlide"))return;L().activeIndex+1>=c.length?a("right"):(P("right"),z&&z.slideNext())}function W(t){const e=L().activeIndex;"right"==t&&e+1>=c.length||"left"==t&&e-1<0?a(t):(P(t),z&&("left"==t?z.slidePrev():z.slideNext()))}const[V,Q]=(0,n.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:g,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{E(t)},onSlideChange:t=>{S?k(!1):(I||_(!0),(0,M.DG)({userInteractionType:H.O.VIDEO_PLAYBACK,userInteractionMetadata:V,widgetSourceDetails:F,event:c[L().activeIndex],productList:c[L().activeIndex].products,ctaList:c[L().activeIndex].cta}),function(t){const e=(0,ht.Wd)(O)+(0,ht.gf)(D)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);y||b||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(C,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===A||void 0===A?void 0:A.userType)})()}(c[L().activeIndex]),(0,M.kz)({userInteractionType:H.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:n,isNext:o,isVisible:r,isDuplicate:l})=>{if(d){const o=e?"activeIndex":n?"prevIndex":"nextIndex",l=c[L()[o]];return(0,f.jsx)(u.B,{direction:"column",height:m,justifyContent:"center",children:(0,Qe.ij)(l)||(0,Qe.Il)(l)?(0,f.jsx)(Ve,{event:l,totalSiblingEvents:c.length,indexAmongSiblings:L()[o],onBack:B,isPlaying:d&&e&&r,isLast:!1,setLockSwiper:N,onVideoEndedCallback:R,progressUpdateCallback:t=>{Q(t)},leftOpenSpaceClickHandler:()=>{W("left")},midOpenSpaceClickHandler:()=>{j(!w)},rightOpenSpaceClickHandler:()=>{W("right")},storyId:i.id,source:Ye.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)(gi,{})})}},"event-story-view-slide-"+e)))})})};var wi=function(t){const e=t.onBack,i=t.eventsStories,a=t.initialStoryIndex,[d,s,c]=(0,fe.A)(),[h]=(0,v.QN)("isInDesignMode"),[p]=(0,v.QN)("isDemoBrand"),[x,m]=(0,n.useState)(!0),{setCloseClickComponent:g}=(0,n.useContext)(Ci),[w]=(0,v.QN)("whatmoreShopId"),[j,y]=oi(a,i.length),[b,C]=ri("horizontal",50),[S]=li("vertical",30),k=t.eventIndex,[I,_]=(0,n.useState)(!0),[z,E]=(0,n.useState)(null),{whatmoreWidgetSourceDetails:T,whatmoreUserInfo:N}=(0,n.useContext)(U.B);function F(){_(!1)}function A(t){F(),setTimeout((()=>{e(t)}),500)}g(A);const L=T.landingLocationType,P=T.templateType;function B(t){z&&(0,v.Xd)("whatmoreAllowAutoSlide")&&(y(t),"right"==t?z.slideNext():z.slidePrev())}function O(t,e){B(e)}return(0,f.jsx)(Ge(),{isOpen:I,onRequestClose:F,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,f.jsx)("div",{style:{height:s,width:c,backgroundColor:"#00000088"},onTouchStart:t=>{b(t)},onTouchEnd:t=>{const e=C(t);e&&O(0,e)},onWheel:t=>{S(t,(t=>{O(0,t)}))},children:(0,f.jsx)(o.RC,{speed:1,slidesPerView:1,direction:"horizontal",modules:[r.hw,r.FJ],initialSlide:a,loop:i.length>1,height:s,width:c,watchSlidesProgress:!0,onSwiper:t=>{var e,n;E(t),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta})},onSlideChange:t=>{var e,n;x?m(!1):(!function(t){const e=(0,ht.Wd)(L)+(0,ht.gf)(P)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);h||p||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(w,ii.TB,ii.OL),(0,ze.Ch)(t.event_id,t.products,"homepage","stories",e,null===t||void 0===t?void 0:t.location,null===N||void 0===N?void 0:N.userType)})()}(i[j().activeIndex].events[0]),(0,M.kz)({userInteractionType:H.O.EVENT_VIEW,widgetSourceDetails:T,event:i[j().activeIndex].events[0],productList:null===(e=i[j().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=i[j().activeIndex].events[0])||void 0===n?void 0:n.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(i.length,3)).keys()].map((t=>(0,f.jsx)(o.qr,{children:({isActive:t,isPrev:e,isNext:n,isVisible:o,isDuplicate:r})=>{const l=t?"activeIndex":e?"prevIndex":"nextIndex";return(0,f.jsx)(u.B,{direction:"column",height:s,justifyContent:"center",children:(0,f.jsx)(fi,{stories:i[j()[l]],onBack:A,isActive:t&&o,isNext:n,isPrev:e,onStoryCompleteCallback:B,nextStories:i[j().nextIndex],prevStories:i[j().prevIndex],initialEventIndex:a==j()[l]?k:0},"event-story-view-"+i[j()[l]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var ji=function(t){var e,i,o,[r,l,a,d]=(0,x.A)();const[p]=(0,v.QN)("whatmorePrimaryColor"),[m]=(0,v.QN)("whatmoreSecondaryColor"),g=t.event,w=(t.onBack,n.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(i=t.heightFactor)&&void 0!==i?i:1,b="flex-end";return d*=null!==(o=t.widthFactor)&&void 0!==o?o:1,a*=j,(0,f.jsx)(s.o,{children:(0,f.jsxs)(c.az,{width:d,height:a,children:[(0,f.jsx)(u.B,{direction:"column",justifyContent:b,height:"full",width:"full",children:(0,f.jsx)(c.az,{children:(0,f.jsx)(h.g,{width:"full",ratio:9/16,children:w?(0,Qe.ij)(g)||(0,Qe.Il)(g)?(0,f.jsx)(Ce.A,{height:"100%",width:"100%",url:g.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:g}):(0,f.jsx)(y._,{width:"full",height:"full",src:g.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,f.jsx)(c.az,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+m+")"})})})}),(0,f.jsx)(u.B,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:b,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 yi=function(t){var e,i,[a,d,h,p]=(0,x.A)();const[m]=(0,v.QN)("isInDesignMode"),[g]=(0,v.QN)("isDemoBrand"),[w,j]=(0,v.QN)("isFirstIndicatorRenderDone"),[y,b]=(0,n.useState)(0!=t.eventIndex),{setCloseClickComponent:C}=(0,n.useContext)(Ci),[S,k]=(0,n.useState)(!1),[I]=(0,v.QN)("whatmoreShopId"),{whatmoreWidgetSourceDetails:_,whatmoreUserInfo:z}=(0,n.useContext)(U.B),[E,T]=(0,n.useState)(!1),[N,F]=(0,n.useState)(null);function A(){T(!1)}t.events;const P=t.eventIndex,B=t.onBack,O=t.eventsStories,D=t.initialStoryIndex,R=null===(e=O[0])||void 0===e||null===(i=e.events[0])||void 0===i?void 0:i.brand;function W(t){A(),setTimeout((()=>{B(t)}),500)}(0,n.useEffect)((()=>(T(!0),()=>{})),[]),C(W);const V=_.landingLocationType,Q=_.templateType;function X(t){N&&!N.isEnd&&("right"==t?N.slideNext():N.slidePrev())}const Y=parseInt(Math.min(5,O.length));return(0,f.jsx)(ui,{show:E,closeCallback:A,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,i;F(t),(0,M.kz)({userInteractionType:H.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===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.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,i;y?b(!1):(w||j(!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);m||g||(async()=>{(0,l.lB)(t),(0,ni.sendVideoViewEventToGA)(I,ii.TB,ii.OL),(0,ze.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,M.kz)({userInteractionType:H.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===(i=O[t.activeIndex].events[0])||void 0===i?void 0:i.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:[O.length>2&&(0,f.jsx)("div",{className:"whatmore-shopping-close-button",children:(0,f.jsx)(L,{onCloseCallback:B})}),O.map(((t,e)=>(0,f.jsx)(o.qr,{children:({isActive:i,isPrev:n,isNext:o,isVisible:r,isDuplicate:l})=>{if(i){const n=1;return(0,f.jsx)(u.B,{direction:"column",height:h,width:p*n,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)(fi,{stories:t,onBack:W,isActive:i&&r,isNext:!1,isPrev:!1,onStoryCompleteCallback:X,initialEventIndex:D==e?P:0,showCloseOverlay:(null===O||void 0===O?void 0:O.length)<=2},"event-story-view-"+t.id)})})}return n||o?(0,f.jsx)(u.B,{direction:"column",height:h,width:p,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{N.slideTo(e,300)},children:(0,f.jsx)(c.az,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,f.jsx)(ji,{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)(be,{brandName:R,height:.04*h,width:.1*p,fontSize:.02*h})})]})})};const bi=(0,mi.A)({key:"whatmore-css-sv"}),Ci=(0,n.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]});var Si=function(t){var e,i,o;const[r,l,a]=(0,fe.A)(),[d]=(0,v.QN)("whatmoreShopId"),{whatmoreRootId:s}=(0,n.useContext)(U.B),{whatmoreIsStoriesTemplate:c}=(0,n.useContext)(U.B),[u]=(0,v.QN)("isWhatmorePreviewMode");var h=t.events,x=t.index,m=t.onBack,g=t.eventsStories,w=t.initialStoryIndex,j=(0,p.M3_)(d),y="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(i=t.slideDirection)&&void 0!==i?i:h.length>1?"horizontal":"vertical",b="portrait"===r?!(0,p.kb)(d)&&!c:(0,p.DNc)(d);return(0,n.useLayoutEffect)((()=>{(0,p.hpk)(d)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||m()})))}),[]),delete vi.Ay.styles.global,c?(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b},children:("portrait"!==r||u)&&(0,p.Rdb)(d)?(0,f.jsx)(yi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x}):(0,f.jsx)(wi,{eventsStories:g,initialStoryIndex:w,onBack:m,eventIndex:x})})})}):(0,f.jsx)(xi.C,{value:bi,children:(0,f.jsx)(pi.s,{theme:vi.Ay,cssVarsRoot:s,resetCSS:!1,children:(0,f.jsx)(Ci.Provider,{value:{isIOS:(0,Me.MN)(),totalEvents:h.length,closeClickComponent:m,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:y,showSwipeIndicator:b,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)(di,{events:h,eventIndex:x,onBack:m}):(0,f.jsx)(hi,{events:h,eventIndex:x,onBack:m})})})})}},6125:function(){},6305:function(t,e,i){var n=i(9950),o=i(1348),r=i(5830),l=i(1052),a=i(140),d=i(8149),s=i(5647),c=i(3262),u=i(5551);e.A=function(t,e,i){const[h]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("isInDesignMode"),[v]=(0,r.QN)("isDemoBrand"),[x,m]=(0,n.useState)(null),g=(0,n.useRef)(null),{closeClickComponent:f}=(0,n.useContext)(s.EventClickComponentContext),{whatmoreUserInfo:w}=(0,n.useContext)(u.B),[j,y]=(0,n.useState)({state:"init",cart_count:t});function b(t,e){y({state:t,cart_count:null!==e&&void 0!==e?e:j.cart_count}),"init"!=t&&"errored"!=t?(0,r.t2)("whatmoreAllowAutoSlide",!1):(0,r.t2)("whatmoreAllowAutoSlide",!0)}function C(t){const e=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}function S(t){var e=[],i=[],n=[];return t.variants.forEach((o=>{var r,l,a;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&i.push({option:o.option2,available:null===(l=o.available)||void 0===l||l,type:t.options[1].name}),o.option3&&n.push({option:o.option3,available:null===(a=o.available)||void 0===a||a,type:t.options[2].name})})),e=e.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),i=i.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),n=n.reduce(((t,e,i)=>{var n=t.filter((t=>t.option==e.option));return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)}),[]),[e,i,n]}function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function I(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function _(){if(g.current&&g.current.length>=1){return g.current.filter((t=>t.available)).length>=1}return!1}function z(t,e,i){p||v||(async()=>{(0,a.tO)(t,e,i)})()}function E(t,n){const a=C(t);if(!a)return void b("init",j.cart_count);b("atcApiCallInProgress",null);(0,l.cF)([a],1,(0,o.NCy)(h),h,i,e,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(i,e,1),b("init",j.cart_count+1),(0,r.t2)("whatmoreAddedToCart",!0),(0,r.Xd)("whatmoreAddedToCart")&&(0,c.initiateCartSliderEvent)(h,(()=>{}),100,window.location.hostname,a,e.client_product_id,n,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType,e.product_link),(0,o.MPe)(h)&&setTimeout((()=>function(){const t=window.location.origin+"/cart";window.location.href=t}()),500),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}return[j,function(t){const n=[];b("productVariantDetailsApiCallInProgress",null),Promise.all(i.products.map((t=>(0,d.M)(t,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const i=S(e);if(m(i),I(i)&&_()){const e=C([k(i[0]),k(i[1]),k(i[2])]);return e?(n.push(t),e):void b("init",j.cart_count)}}))))).then((a=>{const d=a.filter((t=>void 0!=t));(0,l.cF)(d,1,(0,o.NCy)(h),h,i,e,t,null===i||void 0===i?void 0:i.location,null===w||void 0===w?void 0:w.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(n.forEach((t=>{z(i,t,1)})),b("init",j.cart_count+(null===d||void 0===d?void 0:d.length)),(0,r.t2)("whatmoreAddedToCart",!0),t))).catch((t=>{b("errored",null),console.error("Error while adding to cart:",t)}))}))},b,x,function(t,i=!1){b("productVariantDetailsApiCallInProgress",null),(0,d.M)(e,(0,o.NCy)(h),h).then((e=>{g.current=e.variants;const n=S(e);m(n),I(n)||i?_()?E([k(n[0]),k(n[1]),k(n[2])],t):b("errored",null):b("awaitingVariantSelection",null)})).catch((t=>{b("errored",null)}))},E,function(t){var e,i,n,r;const l=g.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));if(0==l.length)return null;const a=null!==(e=l[0].price)&&void 0!==e?e:0,d=null!==(i=l[0].compare_at_price)&&void 0!==i?i:0;return{price:((0,o.NCy)(h),a),compare_price:((0,o.NCy)(h),d),title:null!==(n=null===(r=l[0])||void 0===r?void 0:r.title)&&void 0!==n?n:""}},function(){"do_nothing"!==(0,o.m4S)(h)&&("go_to_cart_page"!==(0,o.m4S)(h)?"open_cart_slider"!==(0,o.m4S)(h)||null!==f&&f():(0,l.Le)((0,o.NCy)(h),h))}]}},6670:function(t,e,i){var n=i(9950),o=i(5830);e.A=function(t){const[e,i]=(0,o.QN)("muted");return(0,n.useEffect)((()=>{}),[]),[e,i]}},7035:function(t,e,i){i.d(e,{m:function(){return n}});const n={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off"},ar:{add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabat"},de:{add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"}}},7239:function(t,e,i){var n=i(5388);e.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",i=t.end_time,o=t.scheduled_date,r=t.status,l=t.time_zone;if(r.toUpperCase()==n.A.LIVE.name)return{status:n.A.LIVE,bannerText:" "+n.A.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==n.A.UPCOMING.name){var a=new Date(o+" "+e+" "+l),d=(new Date(o+" "+i+" "+l),function(t){var e=new Date,i=(t.getTime()-e.getTime())/1e3,o=i/60,r=o/60,l=r/24;return i<=0?{status:n.A.COMPLETED,bannerText:" "+n.A.COMPLETED.name+" ",timeToStartInMins:0}:i>=1&&i<=30?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" sec ",timeToStartInMins:i/60}:o<60?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:r<24?{status:n.A.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:l<7?{status:n.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*l*24}:{status:n.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(a));return{status:d.status,bannerText:d.bannerText,timeToStartInMins:d.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:n.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},8385:function(t,e,i){i.d(e,{c:function(){return a}});var n=i(6649),o=i(9950),r=(i(4365),i(4414));function l(t){const[e,i,o]=(0,n.A)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:i?t.renderElement({eventData:null===t||void 0===t?void 0:t.data}):(0,r.jsx)("div",{style:{backgroundColor:t.showBgPlaceholder?"gray":"transparent",minWidth:t.defaultWidth,minHeight:t.defaultHeight}})})}function a(t){var e,i;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,i=!1;function n(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(i=!0,e=t.touches[0].clientX):(i=!0,e=t.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",i=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",n),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3},className:"whatmore-carousel-horizontal-flex",children:null===t||void 0===t||null===(i=t.dataList)||void 0===i?void 0:i.map(((e,i)=>(0,r.jsx)(l,{showBgPlaceholder:t.showBgPlaceholder,renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+i)))})}},9408:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var n=i(3247),o=i(1422),r=i(3731),l=i(6086),a=i(9810),d=i(9950),s=i(5830),c=i(140);var u=i(5144),h=i(4905),p=i(5647),v=i(1348),x=i(8149),m=i(5551),g=i(1351),f=i(6157),w=i(4414);function j(t){var e;const[i]=(0,s.QN)("whatmoreSecondaryColor"),[d]=(0,s.QN)("whatmorePrimaryFont"),c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,u=t.width,h=t.height;return(0,w.jsx)(n.az,{width:u,height:h,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:i,borderWidth:"1px",children:(0,w.jsxs)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,w.jsxs)(r.E,{color:i,fontSize:1.3*c,fontWeight:"semibold",sx:{fontFamily:d+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,w.jsx)(l.o,{paddingX:"5px",children:(0,w.jsx)(a.A,{sx:{color:i,fontSize:1.5*c}})})]})})}var y=function(t){var e,i,a,y;const[b]=(0,s.QN)("whatmorePrimaryFont"),[C]=(0,s.QN)("isInDesignMode"),[S]=(0,s.QN)("isDemoBrand"),[k,I]=(0,s.QN)("appCartData"),[_]=(0,s.QN)("whatmoreShopId"),[z]=[(0,v.Wc_)(_)],E=(0,v.Wc_)(_),[T,N]=(0,d.useState)(!1),[F,A]=(0,d.useState)({state:"initial"}),[L,P]=(0,d.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:B}=(0,d.useContext)(p.EventClickComponentContext),{whatmoreWidgetSourceDetails:O}=(0,d.useContext)(m.B),D=t.event,R=t.product,W=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function V(t,e,i){C||S||(async()=>{(0,c.tO)(t,e,i)})()}(0,d.useEffect)((()=>{!async function(){var t,e,i,n;const o=await(0,x.M)(R,(0,v.NCy)(_),_);P({loaded:!0,client_product_id:R.client_product_id,variant_id:null===o||void 0===o||null===(t=o.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id,variant_price:null===o||void 0===o||null===(i=o.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price})}()}),[]);const Q=null!==(i=t.width)&&void 0!==i?i:"fit-content",M=null!==(a=t.height)&&void 0!==a?a:"fit-content",H=(null!==(y=(0,v.FyB)(_))&&void 0!==y?y:2)+"px";return L.loaded?(0,w.jsx)("div",{style:{width:Q,height:M},children:(0,w.jsx)("a",{href:"javascript:void(0)","data-variant-id":L.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,w.jsx)(h.$,{type:"submit",className:(0,v.AJI)(_),sx:{width:Q,height:M,minHeight:M},onClick:t=>{N(!0),V(D,R,1),(0,g.kz)({userInteractionType:f.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:O,event:D,productList:[R],ctaList:D.cta}),null!==B&&setTimeout((()=>{B()}),2e3)},children:"initial"===F.state?(0,w.jsx)(n.az,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:E,borderColor:E,borderWidth:"1px",animation:T?u.jd:null,onAnimationEnd:()=>{N(!1)},children:(0,w.jsx)(o.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,w.jsx)(l.o,{children:(0,w.jsxs)(r.E,{lineHeight:"100%",fontSize:1.3*W,fontWeight:"semibold",sx:{fontFamily:b+" !important",color:(0,v.Hfu)(_)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})}):(0,w.jsx)(j,{event:D,product:R,baseFontSize:W,cartState:F,width:Q,height:M})})})}):(0,w.jsx)(w.Fragment,{})}}}]);