whatmore-react-assets 1.0.1839 → 1.0.1841

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[268],{221:function(t,e,n){n.d(e,{N:function(){return o}});const o={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},428:function(t,e,n){n.d(e,{Sn:function(){return o}});const o=Array.from(document.getElementsByClassName("whatmore-base"))},564:function(){},621:function(){},878:function(){},897:function(){},1214:function(t,e,n){n.d(e,{QN:function(){return pt},Xd:function(){return ht},t2:function(){return mt}});var o,r,i,a,c,s,u,l,d,p,h=n(1477),m=n(4298),f=n(5547),v=n(7066),g=n(1637);function _(t,e){var n,o=document.getElementById(t);if(!o)return e;var r=null!==(n=o.getAttribute("data-wh"))&&void 0!==n?n:o.getAttribute("data");return r||e}function w(t,e=window.location.href){const n=new URL(e).searchParams.get(t);return n||null}var y=_("whatmoreShopId",g.YZ),b=_("whatmoreExtensionType","index"),x=_("whatmorePageId",null),S=_("whatmoreCollectionId",null!=x?x:"375196188919"),j=_("whatmoreProductId","6923315216522"),T=_("whatmoreVariantId","no-variant"),C=_("whatmoreEmbedAppVideoTitle",""),E=_("whatmoreEmbedAppPositionPortrait","left"),A=_("whatmoreEmbedAppHorizontalPaddingPortrait",10),P=_("whatmoreEmbedAppVerticalPaddingPortrait",10),k=_("whatmoreEmbedAppVideoPlayerSizePortrait",40),I=_("whatmoreEmbedAppPositionLandscape","left"),$=_("whatmoreEmbedAppHorizontalPaddingLandscape",20),L=_("whatmoreEmbedAppVerticalPaddingLandscape",20),O=_("whatmoreEmbedAppVideoPlayerSizeLandscape",60),N=_("whatmoreEmbedAppUseVariant","false");const W="22892183632"==y||"1546387531"==y?80:60;var D=_("whatmoreHeading",""),R=_("whatmoreCollection","invalid-url"),M=_("whatmoreCollectionHeading",""),z=_("whatmoreTitleFontSize","24"),F=_("whatmoreTitleFontSizePortrait",z),V=_("whatmoreLandscapePadding",function(){let t=!1;const e=document.querySelectorAll(".whatmore-widget");for(let n of e){const e=n.getAttribute("data-wh"),o=n.getAttribute("data"),r=e||o||null;if("string"===typeof r&&r.trim().toLowerCase().startsWith("collection")){t=!0;break}}if(t&&"68304765103"==y)return 0;return 40}()),q=_("whatmoreTopBottomPadding",20),B=_("whatmoreStoriesTopBottomPadding",10),H=_("whatmoreStoryTileSize",40),U=_("whatmoreStoryTileSizeDesktop",40),J=_("whatmoreCollectionsTileSize",W),X=_("whatmoreCollectionsTileSizePortrait",W),Q=_("whatmoreVideoTileSize",J),G=_("whatmoreVideoTileSizePortrait",X),K=_("whatmoreCollectionsTilesSpacing",3),Y="true"===_("whatmoreIsInDesignMode","false"),Z=_("whatmoreShopNowCTA","buy-now"),tt="true"===_("isWhatmoreWebsite","false"),et=null!==(o=(0,f.DGu)(y))&&void 0!==o?o:"#343434",nt=null!==(r=(0,f.uXw)(y))&&void 0!==r?r:"#343434";var ot,rt=w("wtt"),it=w("wsid"),at=w("weid");ot=null!=rt&&null!=at;var ct=null===(i=document)||void 0===i||null===(a=i.documentElement)||void 0===a?void 0:a.lang;!function(){const t=document.documentElement;new MutationObserver(e=>{for(const n of e)"attributes"===n.type&&"lang"===n.attributeName&&(console.log("Language changed to:",t.lang),mt("websiteLanguage",t.lang))}).observe(t,{attributes:!0,attributeFilter:["lang"]})}();var st=null!==(c=(0,f.JQp)(y))&&void 0!==c?c:"Poppins",ut=null!==(s=(0,f.YqT)(y))&&void 0!==s?s:"Poppins";function lt(){return"-apple-system"==st&&"-apple-system"==ut?(st="Poppins",ut="Poppins"):"-apple-system"==st?st=ut:"-apple-system"==ut&&(ut=st),[st,ut]}const{GlobalStateProvider:dt,useGlobalState:pt,getGlobalState:ht,setGlobalState:mt}=(0,m.V)({isInDesignMode:Y,isDemoBrand:y===g.YZ,whatmoreShopId:y,whatmoreProductId:j,whatmoreCollectionId:S,whatmoreLandingLocationType:b,whatmoreEmbedAppPositionPortrait:E,whatmoreEmbedAppHorizontalPaddingPortrait:A,whatmoreEmbedAppVerticalPaddingPortrait:P,whatmoreEmbedAppVideoPlayerSizePortrait:k,whatmoreEmbedAppPositionLandscape:I,whatmoreEmbedAppHorizontalPaddingLandscape:$,whatmoreEmbedAppVerticalPaddingLandscape:L,whatmoreEmbedAppVideoPlayerSizeLandscape:O,whatmoreEmbedAppVideoTitle:C,whatmoreEmbedAppUseVariant:N,whatmoreVariantId:T,whatmoreHeading:D,whatmoreCollectionHeading:M,whatmorePrimaryColor:et,whatmoreSecondaryColor:nt,whatmoreSecondaryColorShade300:(0,v.Ay)(.1,nt),whatmoreSecondaryColorShade600:(0,v.Ay)(.2,nt),whatmoreSecondaryColorShade900:(0,v.Ay)(.5,nt),whatmoreSecondaryColorShade1200:(0,v.Ay)(.8,nt),whatmoreTitleFont:null!==(u=(0,f.sa6)(y))&&void 0!==u?u:lt()[0],whatmoreTitleFontSize:z,whatmoreTitleFontSizePortrait:F,whatmorePrimaryFont:null!==(l=(0,f.vvD)(y))&&void 0!==l?l:lt()[1],whatmoreLandscapePadding:V,whatmoreTopBottomPadding:q,whatmoreStoriesTopBottomPadding:B,whatmoreVideoTileSize:Q,whatmoreVideoTileSizePortrait:G,whatmoreStoryTileSize:H,whatmoreStoryTileSizeDesktop:U,whatmoreCollectionsTilesSpacing:K,whatmoreShowViews:(0,f.RG3)(y),indicatorRenderSeconds:4,isFirstIndicatorRenderDone:!1,isProductSwiperCatalogOpen:(0,f.Mq2)(y),appCartData:{},whatmoreVideoPlayer:h.createRef(),productRatings:null,whatmoreVideoPlayerPool:document.createDocumentFragment(),whatmoreVideoPlayerPoolInitiated:!1,whatmoreVideoPlayerPoolBlessed:!1,whatmoreAddedToCart:!1,whatmoreAllowAutoSlide:"STR0IIHZXKW"!==y&&"STRU4RO77D5"!==y,muted:(0,f.mlY)(y)||ot||"32788742281"===y,is3DTemplateMuted:!0,isLandingSharedLink:ot,whatmoreShareTemplateId:rt,whatmoreShareStoryId:it,whatmoreShareEventId:at,whatmoreLikedEvents:{},whatmoreLoggingActive:null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d,brandCustomizationsLoaded:!1,isCarouselDataLoading:!0,whatmoreShopNowCTA:Z,websiteLanguage:ct,isWhatmoreWebsite:tt,whatmoreUITheme:null!==(p=(0,f.hep)(y))&&void 0!==p?p:"round",whatmoreCollectionUrl:R,isWhatmorePreviewMode:function(){try{const t=window.location.origin;if(t.includes("app.whatmore.live")||window.location.href.includes("consumer.whatmore.live")||t.includes("dashboard.whatmore.live")||t.includes("localhost")||t.includes("trycloudflare.com")){return!!document.getElementById("whatmorePreviewMode")}return!1}catch(t){return!1}}()})},2058:function(t,e,n){n(1477);var o=n(9263),r=n(1214),i=n(5547),a=n(9383),c=n(481);const s=function(t,e){return(0,i.BLb)(e)?t+"?"+(0,i.VCz)(e)+"&"+(0,i.Spk)(e)+"&"+(0,i.yD5)(e):t};e.A=function(t){var e;const[n,u,l,d]=(0,o.A)(),p=(0,r.Xd)("isInDesignMode"),h=(0,r.Xd)("isDemoBrand"),m=(0,r.Xd)("whatmoreSecondaryColor"),f=(0,r.Xd)("whatmorePrimaryFont"),v=(0,r.Xd)("whatmoreShopId"),g=t.cta,_=.06*d,w=.03*d+"px",y=.06*d+"px";return(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:w,marginTop:w},children:(0,c.jsx)("a",{href:s(g.cta_link,v),style:{color:"white",textDecoration:"none"},onClick:()=>{p||h||(async()=>{(0,a.TG)(t)})()},children:(0,c.jsx)("span",{className:"whatmore-cta-tile-text",style:{fontSize:_*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",color:t.isBanner?m:"#fff",backgroundColor:t.isBanner?"#fff":m,borderRadius:"round"===(0,i.hep)(v)?"5px":"0",boxShadow:"1px 1px #0000001a",fontFamily:f,fontWeight:t.isBanner?"bold":void 0,padding:"10px",paddingLeft:y,paddingRight:y,display:"inline-block"},children:g.cta_title})})})})}},2169:function(t,e,n){var o=n(481);e.A=({size:t,color:e="rgba(255, 255, 255, 0.95)",showBackground:n=!0})=>(0,o.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:n?"drop-shadow(0 8px 24px rgba(0,0,0,0.5))":"drop-shadow(0 3px 10px rgba(0,0,0,0.45))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[n&&(0,o.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,o.jsx)("path",{d:n?"M34 28 L34 52 L54 40 Z":"M30 24 L30 56 L62 40 Z",fill:n?e:"white",stroke:n?e:"white",strokeWidth:n?"5":"6",strokeLinejoin:"round",strokeLinecap:"round",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.35))"}}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,o.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,o.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,o.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,o.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,o.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,o.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; stroke: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]})},2211:function(t,e,n){var o=n(1477),r=(n(5497),n(1214)),i=n(7066),a=n(481);e.A=function(t){return(0,o.useEffect)(()=>{const t=(0,i.E2)((0,r.Xd)("whatmoreSecondaryColor"));!function(t,e,n,o){const r=`rgba(${t},${e},${n},${o})`,i=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${r}, 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.7), 1.8em -1.8em 0 0em ${r}, 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 2.5em 0em 0 0em ${r}, 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 1.75em 1.75em 0 0em ${r}, 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 0em 2.5em 0 0em ${r}, -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -1.8em 1.8em 0 0em ${r}, -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -2.6em 0em 0 0em ${r}, -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -1.8em -1.8em 0 0em ${r};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=i,document.head.appendChild(a)}(t[0],t[1],t[2],.2)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},2446:function(){},3168:function(t,e,n){n.d(e,{At:function(){return o},MN:function(){return r}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),r=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},3299:function(t,e,n){n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return c},Z_:function(){return o},Zf:function(){return u},d8:function(){return s},zJ:function(){return i}});const o=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},r=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t){if(null!=t)return t.filter(t=>{var e;return null===(e=null===t||void 0===t?void 0:t.in_stock)||void 0===e||e})},a=function(t,e=!1){var n,o;if(null!=t)return e?{events:t.events[0].events,all_events:null!==(o=null===t||void 0===t?void 0:t.all_events)&&void 0!==o?o:[]}:{events:null===t||void 0===t?void 0:t.events,all_events:null!==(n=null===t||void 0===t?void 0:t.all_events)&&void 0!==n?n:[]}};const c=function(t,e){var n,o;let r=[];if(null==t)return[];if("eventsets"in t&&t.eventsets[e]){const n=function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach(t=>{e=e.concat(t.events)}),e}(t.eventsets[e]);r=[...n]}return{events:r,all_events:null!==(n=null===(o=r)||void 0===o?void 0:o.all_events)&&void 0!==n?n:[]}};function s(t){if(null!=t){var e=0;return t.forEach(t=>{t.index=e++}),t}}function u(t){if(null==t)return;let e=0;return t.reduce((t,n)=>{var o;return(null===(o=null===n||void 0===n?void 0:n.in_stock)||void 0===o||o)&&(n.index=e++,t.push(n)),t},[])}},3391:function(t,e,n){n.d(e,{$S:function(){return c},_:function(){return o},b4:function(){return i},dl:function(){return r},nN:function(){return u},tn:function(){return s},vF:function(){return a}});const o="device_type",r="device_mode",i="mobile",a="tablet",c="desktop",s="portrait",u="landscape"},3477:function(t,e,n){n.d(e,{p:function(){return o}});const o=(0,n(1477).createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]})},3647:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return s}});var o=n(1214),r=n(8513),i=n(5566),a=n(6080),c=n(5547);const s=async function(t,e,n,s,u="",l="",d="",p="",h="",m="",f=null){(0,o.Xd)("whatmoreLandingLocationType");const v=t=>{(0,r.getCartDetailsShopifyAsync)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t);if(!n)return;const o=n.key,i=n.quantity,a=n.properties;(0,r.updateCartLineItemPropertiesDirect)(o,i,a,d,p,h,!0,!0,!0)}).catch(t=>{console.error("[Whatmore] updateATCLineItemProperties error:",t)})};if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("57217876118"===t){async function T(t,e=1){const n=new FormData;n.append("id",t),n.append("quantity",e),n.append("sections","side-cart");const o=await fetch("/cart/add.js",{method:"POST",body:n,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/javascript"}}).then(t=>t.json());o.status?console.error("atc failed",o.description):(window.ajaxCart.load(o),setTimeout(()=>{v(t)},500))}return void T(u,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 57217876118 error:",t)})}if("75310563627"===t){async function C(t,e=1){const n=new FormData;n.append("id",t),n.append("quantity",e),n.append("sections","cart-drawer,cart-icon-bubble");const o=await fetch("/cart/add.js",{method:"POST",body:n,headers:{Accept:"application/javascript"}}).then(t=>t.json());if(o.status)return void console.error("atc failed",o.description);const r=document.querySelector("cart-drawer");r&&(r.renderContents(o),r.classList.remove("is-empty"),r.open())}return C(u,1).then(()=>{setTimeout(()=>{v(u)},500)}).catch(t=>{console.error("[Whatmore] ATC 75310563627 error:",t)}),void setTimeout(e,n)}if("81308287252"===t)return(async()=>{const e={};(0,c.CpV)(t)||(e[a.B_]=`${(0,i.wm)()}#${d}:direct`);const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(u),quantity:1,properties:e})}).then(t=>t.json()).catch(()=>null);n&&!n.status?setTimeout(()=>{const t=document.querySelector(".iCartBtnToggle")||document.querySelector("#iCartBtnToggle");t?t.click():console.warn("[Whatmore] iCart toggle not found for 81308287252")},250):console.error("[Whatmore] ATC 81308287252 failed:",n&&n.description)})(),void setTimeout(e,n);if("67841720509"===t){async function E(t,e=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(t),quantity:e})});n.ok?(document.dispatchEvent(new CustomEvent("on:cart:change",{bubbles:!0,cancelable:!1})),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0}))):console.error("[Whatmore] ATC 67841720509 failed:",await n.text())}return E(u,1).then(()=>{setTimeout(()=>{v(u)},500)}).catch(t=>{console.error("[Whatmore] ATC 67841720509 error:",t)}),void setTimeout(e,n)}if("72603631788"===t||"5220302897"===t){const A=new FormData;A.append("id",u),A.append("quantity","1"),f&&A.append("properties[Size]",f);try{const P=await fetch("/cart/add.js",{method:"POST",body:A}),k=await P.json();k.id?setTimeout(()=>{v(u),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",k)}catch(S){console.error("Afrozeh ATC error:",S)}return void setTimeout(e,n)}if("67083239728"===t){try{const I=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:u,quantity:1}]})});I.ok||console.error("[ATC] Add to cart failed:",I.status)}catch(S){console.error("[ATC] Error while adding to cart:",S)}return setTimeout(()=>{v(u)},1e3),void setTimeout(e,n)}if("62226792677"===t){async function L(t,e=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});var o;n.ok?("function"===typeof(null===(o=window.cleverSopify)||void 0===o?void 0:o.onCartUpdate)&&window.cleverSopify.onCartUpdate(1,1,l),setTimeout(()=>{v(t)},500)):console.error("[ATC] Add to cart failed:",n.status)}return L(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60595503283"===t){async function O(t,e=1){try{const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,quantity:e})});n.ok?setTimeout(()=>{v(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",n.status)}catch(S){console.error("Error adding to cart:",S)}}return O(u,1),void setTimeout(e,n)}if("72915616066"===t){function N(){var t,e;const n=window.customElements.get("cart-drawer")&&document.querySelector("cart-drawer");let o=[];const r=new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:o}});document.documentElement.dispatchEvent(r);const i=o.length>0,a="string"===typeof(null===(t=window.themeVariables)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.cartType);return(!a||"page"!==window.themeVariables.settings.cartType)&&(n&&i&&a)}async function W(t,e){document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));let n=[];document.documentElement.dispatchEvent(new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:n}}));const o=await fetch(`${window.Shopify.routes.root}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}],sections:n.join(",")})});if(document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0})),!o.ok)return console.error("[ATC] Add to cart failed:",o.status),document.dispatchEvent(new CustomEvent("cart:refresh")),!1;const r=await o.json(),i=await(await fetch(`${window.Shopify.routes.root}cart.js`)).json();return i.sections=r.sections,document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{baseEvent:"variant:add",cart:i}})),setTimeout(()=>{v(t)},500),!0}async function D(t,e=1){return N()?W(t,e):async function(t,e,n){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(setTimeout(()=>{n(t)},500),setTimeout(()=>{var t,e;window.location.href=`${(null===(t=window.Shopify)||void 0===t||null===(e=t.routes)||void 0===e?void 0:e.root)||"/"}cart`},1e3),!0):(console.error("[ATC Fallback] Add to cart failed:",o.status),!1)}(t,e,v)}return D(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("44061622423"===t){async function R(t,e=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});n.ok?window.cart&&"function"===typeof window.cart.getCart?(window.cart.getCart(),setTimeout(()=>{v(t)},500)):fetch("/cart?section_id=api-cart-items").then(t=>t.text()).then(e=>{const n=document.createElement("div");if(n.innerHTML=e,window.cart&&"function"===typeof window.cart.build){const t=n.querySelector("[data-api-content]");t&&window.cart.build(t)}document.dispatchEvent(new CustomEvent("theme:product:added",{bubbles:!0})),setTimeout(()=>{v(t)},500)}).catch(()=>{const e=document.querySelector('[href="/cart"], [data-cart-toggle], a[href*="/cart"]');e&&e.click(),setTimeout(()=>{v(t)},500)}):console.error("[ATC] Add to cart failed:",n.status)}return R(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60183445561"===t){async function M(t,e=1,n="/cart"){const o=new URLSearchParams;o.append("id",t),o.append("quantity",e.toString()),o.append("return_to",n);const r=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString(),credentials:"include"}),i=await r.text();return r.ok&&setTimeout(()=>{v(t),window.location.href="https://tapee.in/cart"},500),i}return M(u).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("22907887"===t){async function z(t,e=1){const n=new FormData;n.append("id",t),n.append("quantity",e.toString());const o=document.querySelector("cart-notification, cart-drawer");if(o){const t=o.getSectionsToRender();n.append("sections",t.map(t=>t.id).join(","))}n.append("sections_url",window.location.pathname);const r=await fetch("/cart/add.js",{method:"POST",body:n});if(!r.ok){const t=await r.text();throw new Error(`Failed to add to cart: ${t}`)}const i=await r.json();return o&&o.renderContents&&o.renderContents(i),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:i}})),i}return z(u).then(t=>{setTimeout(()=>{v(u)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("28575536"===t||"64287408360"===t||"8473575520"===t||"65972830359"===t||"75000480020"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{v(u)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,n);if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(u)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{v(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("56444977250"===t){const F=document.querySelector('button[data-pf-type="ProductATC2"]');return F?(l&&F.setAttribute("data-product-id",l),F.click(),setTimeout(()=>{(0,r.getCartDetailsShopifyAsync)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,n=e.quantity,o=e.properties;(0,r.updateCartLineItemPropertiesDirect)(t,n,o,d,p,h,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===m||void 0===m||null===(g=m.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&l&&e.setAttribute("data-product-id",l)}),void setTimeout(e,n));var g}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("66947219508"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(u),quantity:1}]})}).then(async()=>{const t=document.getElementById("mini-cart");t&&"function"===typeof t._rerenderCart&&await t._rerenderCart({detail:{openMiniCart:!0}}),setTimeout(()=>{v(u)},500)}).catch(t=>console.error("[Whatmore] ATC 66947219508 error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const V=u,q=1,B=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(B){let H=B.querySelector('input[name="id"]');H||(H=document.createElement("input"),H.type="hidden",H.name="id",B.appendChild(H)),H.disabled=!1,H.value=V;const U=B.querySelector('input[name="quantity"]');U&&(U.value=q);const J=B.querySelector('button[data-add-to-cart], button[type="submit"]');return J?(J.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),J.click(),J.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(V)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:V,quantity:q}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(V)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const X=document.querySelector('form[action="/cart/add"]');if(!X)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const Q=X.querySelector('input[name="id"]');if(!Q)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);Q.value=u;const G=X.querySelector('button[type="submit"]');if(!G)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);G.click(),setTimeout(()=>{v(u)},500),setTimeout(e,n)}catch(j){console.error("[ATC 64683278550] error:",j),setTimeout(e,n)}return}if("95562924310"===t||"61810999367"===t){try{const K=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:u,quantity:1}]})});if(K.ok){const Y=await K.json();document.dispatchEvent(new CustomEvent("cart:update",{detail:{cart:Y}})),document.dispatchEvent(new CustomEvent("theme:cart:refresh",{detail:{target:"product_flood_atc"},bubbles:!0})),setTimeout(()=>{v(u)},500)}else console.error("[ATC 95562924310] Add to cart failed:",K.status)}catch(S){console.error("[ATC 95562924310] error:",S)}return void setTimeout(e,n)}if("45050691744"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>{jQuery.ajax({type:"GET",url:"/",dataType:"html",success:function(t){jQuery(".drawer__inner.cart-drawer-content").html(jQuery(t).find(".drawer__inner.cart-drawer-content").html()),jQuery(".custom_doscunt_bar").html(jQuery(t).find(".custom_doscunt_bar").html()),jQuery(".some_js_items").html(jQuery(t).find(".some_js_items").html()),jQuery(".header-cart-icon__count").html(jQuery(t).find(".header-cart-icon__count").html());try{jQuery("#FreeShippingText").slick({dots:!0,autoplay:!0,autoplaySpeed:2500,arrows:!0})}catch(e){}jQuery("div#HeaderCartIcon button").trigger("click"),setTimeout(()=>{v(u)},500)}})}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("55337746621"===t){async function Z(t,e=1){var n;await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});const o=await fetch("/cart.js").then(t=>t.json());document.querySelectorAll("[data-cart-count]").forEach(t=>{const e=t.querySelector(":scope > span:last-of-type");e&&(e.textContent=o.item_count)});const r=document.querySelector("[data-cart-container]");if(!r)return;const i=((null===(n=r.parentElement)||void 0===n?void 0:n.id)||"").replace("shopify-section-","");let a=null;if(i){const t=await fetch(`/?sections=${encodeURIComponent(i)}`).then(t=>t.json()).catch(()=>null);if(null!==t&&void 0!==t&&t[i]){const e=document.createElement("div");e.innerHTML=t[i];const n=e.querySelector("[data-cart-container]");n&&(a=n.innerHTML)}}if(!a){const t=await fetch("/cart").then(t=>t.text()),e=(new DOMParser).parseFromString(t,"text/html").querySelector("[data-cart-container]");e&&(a=e.innerHTML)}if(!a)return;r.innerHTML=a,r.classList.add("is-drawer-open"),document.body.classList.add("is-scroll-disabled");const c=()=>{r.classList.remove("is-drawer-open"),document.body.classList.remove("is-scroll-disabled")};r.querySelectorAll("[data-cart-drawer-toggle]").forEach(t=>{t.addEventListener("click",t=>{t.preventDefault(),c()})}),document.addEventListener("keydown",t=>{"Escape"===t.key&&c()},{once:!0})}return Z(u,1).then(()=>{setTimeout(()=>{v(u)},500)}).catch(t=>{console.error("[Whatmore] ATC 55337746621 error:",t)}),void setTimeout(e,n)}if("12175954"===t){async function tt(t,e=1){const n=await fetch(theme.routes.cart_add_url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return n.ok?(document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0,cancelable:!1,detail:{openDrawer:!0}})),setTimeout(()=>{v(t)},500),!0):(console.error("[ATC] Add to cart failed:",n.status),!1)}return tt(u).catch(t=>{console.error("[Whatmore] ATC 12175954 error:",t)}),void setTimeout(e,n)}if("2754609263"===t){const et=()=>{const t=["cart:open","CartDrawer:open","drawerOpen"],e=[document,window];try{window.parent&&window.parent!==window&&window.parent.document&&e.push(window.parent.document)}catch(o){}const n=t=>e.forEach(e=>{try{e.dispatchEvent(new CustomEvent(t,{bubbles:!0}))}catch(o){console.error(`[Whatmore] ATC 2754609263 dispatch ${t} failed:`,o)}});["cart:refresh","cart:build","cart:updated"].forEach(n),setTimeout(()=>t.forEach(n),150)};async function nt(t,e=1){var n,o,r;const i=(null===(n=window.Shopify)||void 0===n||null===(o=n.routes)||void 0===o?void 0:o.root)||"/",a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/javascript"},c=Number(e)||1,s=()=>fetch(`${i}cart/add.js`,{method:"POST",headers:a,body:JSON.stringify({items:[{id:t,quantity:c}]})}).then(t=>t.json()),u=await fetch(`${i}cart.js`,{headers:{Accept:"application/json"},cache:"no-store"}).then(t=>t.json()).catch(()=>null),l=null===u||void 0===u||null===(r=u.items)||void 0===r?void 0:r.find(e=>e.id==t);let d;var p,h;(l?(d=await fetch(`${i}cart/change.js`,{method:"POST",headers:a,body:JSON.stringify({id:l.key,quantity:l.quantity+c})}).then(t=>t.json()).catch(()=>null),d&&!d.status||(console.warn("[Whatmore] ATC 2754609263 change.js rejected, falling back to add.js"),d=await s())):d=await s(),d&&!d.status)?(et(),setTimeout(()=>{v(t)},500)):console.error("[Whatmore] ATC 2754609263 failed:",(null===(p=d)||void 0===p?void 0:p.description)||(null===(h=d)||void 0===h?void 0:h.message))}return nt(u).catch(t=>{console.error("[Whatmore] ATC 2754609263 error:",t)}),void setTimeout(e,n)}if("25786679341"===t)return(async(e,n)=>{const o={};(0,c.CpV)(t)||(o[a.B_]=`${(0,i.wm)()}#${d}:direct`);const r=await fetch(`${(null===(e=window.Shopify)||void 0===e||null===(n=e.routes)||void 0===n?void 0:n.root)||"/"}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(u),quantity:1,properties:o}]})}).then(t=>t.json()).catch(()=>null);if(r&&!r.status)if(document.dispatchEvent(new CustomEvent("vd:cart:added",{bubbles:!0,detail:{items:r.items||[r]}})),"function"===typeof window.vdOpenCart)window.vdOpenCart();else{const t=document.querySelector("a.vd-bag");t?t.click():console.warn("[Whatmore] vdOpenCart missing and no .vd-bag for 25786679341")}else console.error("[Whatmore] ATC 25786679341 failed:",r&&r.description)})().catch(t=>{console.error("[Whatmore] ATC 25786679341 error:",t)}),void setTimeout(e,n);if("8111554613"===t)return(async()=>{const t=()=>{const t=document.querySelector("cart-drawer#CartDrawer");t?(document.querySelectorAll(".add-to-cart-popup, .exit-intent-popup").forEach(t=>t.classList.add("hide")),t.removeAttribute("hidden"),t.removeAttribute("inert"),"function"!==typeof t.show||t.open?(t.setAttribute("open","true"),t.setAttribute("active","true")):t.show()):console.warn("[Whatmore] cart-drawer#CartDrawer not found for 8111554613")},e=()=>{const e=document.querySelector("cart-drawer#CartDrawer");let n=!1;const o=()=>{n||(n=!0,r.disconnect(),clearTimeout(i),t())},r=new MutationObserver(()=>{const t=document.querySelector("cart-drawer#CartDrawer");t&&t!==e&&o()});r.observe(document.body,{childList:!0,subtree:!0});const i=setTimeout(o,3e3)};if("function"!==typeof window.cartGiftUpdate){console.warn("[Whatmore] cartGiftUpdate missing for 8111554613, falling back to /cart/add.js");const e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(u),quantity:1}]})}).then(t=>t.json()).catch(()=>null);return!e||e.status?void console.error("[Whatmore] ATC 8111554613 fallback failed:",e&&e.description):void setTimeout(()=>{v(u),document.dispatchEvent(new CustomEvent("cart:updated",{detail:{cart:e}})),t()},500)}const{price:n,productType:o}=await(async()=>{try{var t,e;const n=await fetch("/cart.js",{headers:{Accept:"application/json"},cache:"no-store"}).then(t=>t.json()),o=null===n||void 0===n||null===(t=n.items)||void 0===t?void 0:t.find(t=>String(t.variant_id)===String(u));if(o)return{price:o.price,productType:null!==(e=o.product_type)&&void 0!==e?e:""}}catch(r){}try{var n,o;const t=(m||window.location.href).split(/[?#]/)[0],e=await fetch(`${t}.js`,{headers:{Accept:"application/json"}}).then(t=>t.json()),r=null===e||void 0===e||null===(n=e.variants)||void 0===n?void 0:n.find(t=>String(t.id)===String(u));if(r)return{price:r.price,productType:null!==(o=e.product_type)&&void 0!==o?o:""}}catch(r){}return{price:0,productType:""}})(),r=()=>{document.removeEventListener("cart:updated",r),clearTimeout(i),v(u),e()},i=setTimeout(()=>{document.removeEventListener("cart:updated",r),v(u),e()},2500);document.addEventListener("cart:updated",r,{once:!1}),window.cartGiftUpdate(String(u),n,1,o,"ADD_TO_CART")})().catch(t=>{console.error("[Whatmore] ATC 8111554613 error:",t)}),void setTimeout(e,n);if("58501496967"===t){async function ot(t,e=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});n.ok?(window.ajaxCart&&"function"===typeof window.ajaxCart.load&&window.ajaxCart.load(),window.jQuery&&window.jQuery("body").trigger("drawer.open"),setTimeout(()=>{v(t)},500)):console.error("[Whatmore] ATC 58501496967 failed:",n.status)}return ot(u,1).catch(t=>{console.error("[Whatmore] ATC 58501496967 error:",t)}),void setTimeout(e,n)}if("5801421"===t)return(async()=>{const e={};(0,c.CpV)(t)||(e[a.B_]=`${(0,i.wm)()}#${d}:direct`);const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(u),quantity:1,properties:e})}).then(t=>t.json()).catch(()=>null);if(!n||n.status)return void console.error("[Whatmore] ATC 5801421 failed:",n&&n.description);let o=!1;const r=()=>{if(o)return!0;const t=window.Rebuy&&window.Rebuy.SmartCart;if(!t||"function"!==typeof t.show)return!1;if("ready"!==t.status&&!t.hasBoundEvents&&!document.querySelector("#rebuy-cart"))return!1;o=!0;try{window.Rebuy.Cart&&window.Rebuy.Cart.fetchCart()}catch(e){}return t.show(),!0};document.addEventListener("rebuy:smartcart.ready",r,{once:!0});const s=(t=0)=>{if(r())return;if(t<40)return void setTimeout(()=>s(t+1),150);const e=window.Rebuy&&window.Rebuy.SmartCart;if(e&&"function"===typeof e.show)return o=!0,void e.show();const n=document.querySelector('[data-cart-open], a[href$="/cart"]:not([disable-rebuy], .disable-rebuy)');n?n.click():console.warn("[Whatmore] Rebuy SmartCart unavailable for 5801421")};s()})().catch(t=>{console.error("[Whatmore] ATC 5801421 error:",t)}),void setTimeout(e,n);const _=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},w=(e,n,o)=>{const r=e.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",n),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let e=r.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(r),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,n)=>{var o;const r=null!==(o=t.matches)&&void 0!==o&&o.call(t,"form")?t:t.querySelector("form");if(!r)return;let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=r.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const c=r.querySelector('input[name="product-id"]');c&&(c.value=String(n))})(a,n,o),a}},y=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},b=_(document);if(b||(null===b||void 0===b?void 0:b.length)>0){const rt=w(b,u,l);y(rt),setTimeout(()=>{v(u)},500),rt.remove()}else{var x;fetch(null===m||void 0===m||null===(x=m.split("?"))||void 0===x?void 0:x[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=_(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=w(n,u,l);y(t),setTimeout(()=>{v(u)},500),t.remove()}})}setTimeout(e,n)}},4018:function(t,e,n){n.d(e,{Cr:function(){return s},cb:function(){return a},lP:function(){return i},tQ:function(){return c},yD:function(){return u}});var o=n(5547);const r=(0,n(1214).Xd)("whatmoreShopId"),i=function(t){var e,n;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.portrait.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.portrait.content_video_1080p?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null===(n=t.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p:function(t){return null!=t.event_m3u8_url&&""!==t.event_m3u8_url?t.event_m3u8_url:t.event_hls_url}(t)},a=function(t){var e;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.landscape.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.landscape.content_video_1080p?t.event_media_urls.secondary.landscape.content_video_1080p:null!==(e=t.event_media_urls.primary.landscape.content_video_1080p)&&void 0!==e?e:t.event_media_urls.primary.portrait.content_video_1080p:t.event_hls_url},c=function(t,e="portrait"){var n,o,r,i;return"event_media_urls"in t?"landscape"===e?t.event_media_urls.primary.landscape.poster_image||(null===(r=t.event_media_urls.secondary)||void 0===r||null===(i=r.landscape)||void 0===i?void 0:i.poster_image)||t.poster_image:t.event_media_urls.primary.portrait.poster_image||(null===(n=t.event_media_urls.secondary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||t.poster_image:t.poster_image},s=function(t){if(t.startsWith("https://cdn.shopify.com")&&t.includes("whatmore_")){const e=(0,o.ath)(r);if(!e)return t;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t},u=function(t){if(t.startsWith("https://cdn.shopify.com")&&t.includes("whatmore_")){const e=(0,o.ath)(r);if(!e)return t;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t}},4040:function(t,e,n){n.d(e,{n:function(){return o}});const o=()=>{if("undefined"!==typeof window){const t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")&&navigator.vendor.includes("Apple")}return!1}},4234:function(t,e,n){n.r(e),n.d(e,{AppContext:function(){return mt},initializeReactApp:function(){return yt},isTemplateTypeBanner:function(){return ft},isTemplateTypeCollections:function(){return vt},isTemplateTypeStories:function(){return gt},mountNeoFullscreen:function(){return wt}});var o=n(1477),r=n(5741),i=n(1214),a=n(5547),c=n(6441),s=n(2873),u=n(7900),l=n(8513),d=n(481);const p=o.lazy(()=>Promise.all([n.e(252),n.e(12),n.e(760)]).then(n.bind(n,3269)));var h,m=()=>(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(p,{})});const f=null!==(h="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==h&&h;class v extends o.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,e){console.error("[Chunk Loading Error]",t,e);const{whatmoreRootId:n}=this.props,o=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${n}"]`);o&&(o.remove(),f&&console.log(`[Chunk Error] Removed shimmer for widget ${n}`));const r=document.querySelector(`.whatmore-render-root[data-widget-id="${n}"]`);if(r){r.style.opacity="0",r.removeAttribute("data-shimmer-active");const t=r.closest(".whatmore-base");t&&(t.style.minHeight="0px",f&&console.log(`[Chunk Error] Reset minHeight to 0px for widget ${n}`))}}render(){return this.state.hasError?null:this.props.children}}var g=v,_=n(1637),w=n(9383),y=n(5566),b=n(3299),x=n(7777),S=n(7372),j=n(3168),T=n(7939),C=(n(3647),n(426)),E=n(3161),A=n(9128),P=n(5968),k=n(7156),I=n(6694),$=n(256),L=n(6984),O=n(6380),N=n(8762),W=n(8888),D=n(5534),R=n(9759),M=n(8060);const z=(0,E.A)({key:"whatmore-css-ppv"});function F(t){return t.split(/[?#]/)[0]}var V=function(t){var e,n;const[r,c]=(0,o.useState)(),[s,l]=(0,o.useState)(),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),[m]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[f,v]=(0,o.useState)(-2),[g]=(0,i.QN)("whatmoreVariantId"),[E]=(0,i.QN)("whatmoreShopId");var[V]=(0,i.QN)("whatmoreProductId");const q=(0,i.Xd)("isLandingSharedLink"),B=(0,i.Xd)("whatmoreShareTemplateId"),H=(0,i.Xd)("whatmoreShareEventId"),U=q&&"template-embed"===(0,u.Mm)(B),[J,X]=(0,o.useState)(U);V=(0,a.BcY)(E)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t||"STRGZ9TGDEQ"==t||"STRJ2T2QPKI"==t||"STROXKHHO98"==t?F(window.location.href).replace(/\/+$/,"").split("/").pop():F(window.location.href)}(E):V;const[Q,G]=(0,o.useState)(()=>"true"===m?g:V),[K,Y]=(0,o.useState)(!1);var Z=((0,a.jpW)(E)?_.$$:_.MT)+"/v2/brand/"+E+"/product-events",tt="upcoming";const{whatmoreWidgetSourceDetails:et}=(0,o.useContext)(mt),nt=(0,o.useRef)(!1),ot=(0,o.useRef)(window.location.pathname);(0,o.useEffect)(()=>{(0,T.initializeGA)(E),(0,$.Fk)("Video shopping powered by Whatmore!"),(0,y.wm)()},[]),(0,o.useEffect)(()=>{null==r||0==r.length||s||!(0,j.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,O._)()?(0,S.Pc)(S.F5):(0,N.bi)())},[r]),(0,o.useEffect)(()=>{if((0,a.fDZ)(E))if(v(-1),(0,a.TOK)(E)){const t=(0,W.f)(E);fetch(`${t}?client_product_id=${Q}&limit=50&status=live,upcoming&event_type=video,image`).then(t=>t.json()).then(t=>{var e;let n=null!==(e=null===t||void 0===t?void 0:t.events)&&void 0!==e?e:[];(0,a.xku)(E)||(n=(0,b.Zf)(n)),c(n)}).catch(t=>l(t.message))}else if((0,a.WH1)(E)){const t=(0,W.B)(E),e=(0,a.buK)(E);fetch(`${t}?client_product_id=${Q}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video,image`).then(t=>t.json()).then(t=>{const n=null===t||void 0===t?void 0:t.events;if((null===n||void 0===n?void 0:n.length)>0){var o;const r=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(o=t.related_events)||void 0===o?void 0:o.map(t=>({...t,isRelatedEvent:!0}));let i=[...n,...r];(0,a.xku)(E)||(i=(0,b.Zf)(i)),c(i)}else c([])}).catch(t=>l(t.message))}else fetch(Z.toString()+"?client_product_id="+Q.toString()+"&status="+tt.toString()+"&event_type=video,image").then(t=>t.json()).then(t=>{const e=t.events;if((null==e||0===e.length)&&"STROXKHHO98"===E){const t=F(window.location.href);if(t!==Q)return fetch(Z.toString()+"?client_product_id="+encodeURIComponent(t)+"&status="+tt.toString()+"&event_type=video,image").then(t=>t.json()).then(t=>t.events)}return e}).then(t=>(null!=t&&0!=t.length&&(0,a.vfi)(E)&&(0,a.YOR)(t),(0,a.xku)(E)||(t=(0,b.Zf)(t)),c(t),t)).then(t=>((0,a.Uht)(E)&&function(t,e){setTimeout(async()=>{const n=t.reduce((t,e)=>[...t,...e.products],[]).filter(t=>t.client_product_id==e)[0];if(!n||n.product_link==F(window.location.href))return;const o={product_id:n.product_id,product_link:F(window.location.href)};fetch(_.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(t,Q),t)).catch(t=>{l(t.message)})},[Q]),(0,o.useEffect)(()=>{v(-2)},[r]),(0,o.useEffect)(()=>{const t=F(window.location.href);"8111554613"===E&&setTimeout(()=>{const t=new Event("change",{bubbles:!0}),e=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");e&&e.dispatchEvent(t)},100);let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let n=history.replaceState;history.replaceState=function(){let t=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==E&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return G(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"80505864496"==E&&window.location.pathname!==ot.current){const t=window.location.pathname;ot.current=t,fetch(window.location.origin+t+".json").then(t=>t.json()).then(t=>{var e;null!==t&&void 0!==t&&null!==(e=t.product)&&void 0!==e&&e.id&&G(t.product.id)}).catch(()=>{})}if("true"===m){const t=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var o=e[n].split("=");if(o[0]==t)return o[1]}return!1}("variant");t&&""!==t&&G(t)}})},[]),(0,o.useEffect)(()=>{if(null!=r&&0!==r.length&&!s&&U&&((0,L.H)("whatmore-video-player",()=>{X(!1)}),null!=H)){const t=r.find(t=>H==t.event_id);if(t)return void at(t,!0,r.indexOf(t))}},[r]);const rt=et.landingLocationType,it=et.templateType,at=async(t,e=!1,n=0)=>{if((0,j.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await((0,O._)()?(0,S.bo)():(0,N.bi)())}if((0,A.i)(t)||(0,A.I)(t))return p||h||(async()=>{const e=(0,u.Wd)(rt)+(0,u.gf)(it)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,w.lB)(t),(0,T.sendVideoViewEventToGA)(E,_.DK,_.K1),(0,y.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,a.YE3)(E)&&Y(!0),void v(n)};function ct(){return(0,d.jsx)(d.Fragment,{})}return null==r||0==r.length||s||(0,u.Ig)(et.templateType)||!(0,a.fDZ)(E)?(0,d.jsx)("div",{}):(0,d.jsxs)(C.C,{value:z,children:[J&&(0,d.jsx)(R.A,{}),"no-product"===Q||-1===f||0===r.length?(0,d.jsx)(ct,{}):-2===f&&r.length>0?(0,d.jsx)("div",{onMouseEnter:()=>(0,D.h)(),children:(0,d.jsx)("div",{style:{height:"100%"},children:(0,d.jsx)(x.A,{event:r[0],inVideoClick:at,closeClick:t=>{var e;t.stopPropagation(),v(-1),(0,P.kz)({userInteractionType:k.O.PDP_POPUP_CLOSED,widgetSourceDetails:et,event:null===r||void 0===r?void 0:r[0],productList:null===r||void 0===r||null===(e=r[0])||void 0===e?void 0:e.products})},onImpression:()=>{var t;nt.current||p||h||(nt.current=!0,(0,I.B)({userInteractionType:k.O.PDP_POPUP_WIDGET_VIEW,widgetSourceDetails:et,event:r[0],productList:r[0].products,ctaList:null!==(t=r[0].cta)&&void 0!==t?t:[]}))}})})}):(0,d.jsx)("div",{children:(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(M.A,{posterUrl:(null===r||void 0===r||null===(e=r[f])||void 0===e?void 0:e.poster_image)||(null===r||void 0===r||null===(n=r[f])||void 0===n?void 0:n.thumbnail_image)}),children:(0,d.jsx)(D.A,{events:r,index:f,onBack:function(){v(K?-1:-2),X(!1)},template:"template-product-page"})})})]})};const q=(0,E.A)({key:"whatmore-css-wsv"});var B=function(t){var e,n;const[r,c]=(0,o.useState)(),[s,l]=(0,o.useState)(),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),[m,f]=(0,o.useState)(-2),[v]=(0,i.QN)("whatmoreShopId"),g=(0,i.Xd)("isLandingSharedLink"),E=(0,i.Xd)("whatmoreShareTemplateId"),P=((0,i.Xd)("whatmoreShareStoryId"),(0,i.Xd)("whatmoreShareEventId")),L=((0,i.Xd)("whatmoreLandingLocationType")||"index").split(".")[0],W=(0,i.Xd)("whatmoreLoggingActive"),R=(0,i.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:z}=(0,o.useContext)(mt),F=(0,o.useRef)(!1);var V=(0,a.SOt)(v)?_.aD+"/get_eventset/":_.$$+"/get_eventset/",B=(0,a.SOt)(v)?_.aD+"/get_eventset_v1/":_.$$+"/get_eventset_v1/",H=(0,a.SOt)(v)?_.aD+"/v2/collection":_.$$+"/v2/collection",U=(0,a.SOt)(v)?_.aD+"/v5/collection":_.$$+"/v5/collection";(0,o.useEffect)(()=>{(0,y.wm)()},[]),(0,o.useEffect)(()=>{(0,T.initializeGA)(v)},[]),(0,o.useEffect)(()=>{null==r||0==r.length||s||!(0,j.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,O._)()?(0,S.Pc)(S.F5):(0,N.bi)())},[r]),(0,o.useEffect)(()=>{f(-1);const t=u.JA,e=(0,u.t6)(L),n=(L||"").startsWith("collection");let o=(0,i.Xd)("whatmoreCollectionId");null!=o&&"0"!==o&&o||(o=window.location.href.split(/[?#]/)[0]);const r=!0===(0,a.dLE)(v)?`${U.toString()}?store_id=${v}&client_collection_id=${o}&sync_products=true`:`${H.toString()}?store_id=${v}&client_collection_id=${o}`,s=n?r:"78232846646"===v.toString()?B.toString()+v.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+v:V.toString()+v.toString()+"?eventset_type="+t+"&source="+e+"&source_id="+v;fetch(s).then(t=>t.json()).then(e=>n?(0,b.Np)(e,!0):(0,b.Po)(e,t)).then(async t=>{if(R&&(null==t||t&&0==(null===t||void 0===t?void 0:t.length))){const{pdpData:t}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return c(t),t}let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];return(0,a.xku)(v)||(e=(0,b.zJ)(e)),e=e.map(t=>{if(!t.poster_image&&t.event_media_urls){var e,n,o,r,i,a;const c=(null===(e=t.event_media_urls)||void 0===e||null===(n=e.primary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||(null===(r=t.event_media_urls)||void 0===r||null===(i=r.secondary)||void 0===i||null===(a=i.portrait)||void 0===a?void 0:a.poster_image)||"";return{...t,poster_image:c}}return t}),c(e),e}).catch(t=>{l(t.message)})},[]),(0,o.useEffect)(()=>{f(-2)},[r]),(0,o.useEffect)(()=>{null==r||0==r.length||s||g&&"template-embed"==(0,u.Mm)(E)&&null!=P&&r.forEach((t,e)=>{P==t.event_id&&Q(t,!0,e)})},[r]);const J=z.landingLocationType,X=z.templateType,Q=(t,e=!1,n=0)=>{if((0,j.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||((0,O._)()?(0,S.bo)():(0,N.Ij)())}if((0,A.i)(t)||(0,A.I)(t))return p||h||(async()=>{const e=(0,u.Wd)(J)+(0,u.gf)(X)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,w.lB)(t),(0,T.sendVideoViewEventToGA)(v,_.DK,_.K1),(0,y.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void f(n)};function G(){return(0,d.jsx)(d.Fragment,{})}return null==r||0==r.length||s?(0,d.jsx)("div",{}):(W&&(0,$.xv)(r),(0,a.ALN)(v)&&m<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,d.jsx)(d.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,d.jsx)(C.C,{value:q,children:-1===m||0===r.length?(0,d.jsx)(G,{}):-2===m&&r.length>0?(0,d.jsx)("div",{onMouseEnter:()=>(0,D.h)(),children:(0,d.jsx)("div",{style:{height:"100%"},children:(0,d.jsx)(x.A,{event:r[0],inVideoClick:Q,closeClick:t=>{t.stopPropagation(),f(-1)},isSpotlight:!0,onImpression:()=>{var t;F.current||p||h||(F.current=!0,(0,I.B)({userInteractionType:k.O.SPOTLIGHT_WIDGET_VIEW,widgetSourceDetails:z,event:r[0],productList:r[0].products,ctaList:null!==(t=r[0].cta)&&void 0!==t?t:[]}))}})})}):(0,d.jsx)("div",{children:(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(M.A,{posterUrl:(null===r||void 0===r||null===(e=r[m])||void 0===e?void 0:e.poster_image)||(null===r||void 0===r||null===(n=r[m])||void 0===n?void 0:n.thumbnail_image)}),children:(0,d.jsx)(D.A,{events:r,index:m,onBack:function(){f(-2)},template:"template-embed",eventsStories:null})})})})))};var H=function(){return(0,d.jsx)(d.Fragment,{})},U=n(4694),J=n(428),X=n(6126);var Q=function(){const[t,e]=(0,o.useState)(),[n,r]=(0,o.useState)(),[c,s]=(0,o.useState)(!1),[l]=(0,i.QN)("whatmoreShopId"),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),m=(0,i.Xd)("isWhatmorePreviewMode"),f=(0,i.Xd)("whatmoreLoggingActive"),{whatmoreRootId:v,whatmoreWidgetIdentity:g}=(0,o.useContext)(mt),w=((0,i.Xd)("whatmoreLandingLocationType"),(0,a.SOt)(l)?_.aD+"/get_eventset/":_.$$+"/get_eventset/");return(0,o.useEffect)(()=>{(0,y.wm)()},[]),(0,o.useEffect)(()=>{(0,T.initializeGA)(l)},[]),(0,o.useEffect)(()=>{null!=t&&0!=t.length&&!n&&(0,j.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,O._)()&&(0,S.Pc)(S.F5)},[t]),(0,o.useEffect)(()=>{const t=u.Jh;let n;if(g&&"wgt_default"!==g){n=`${_.$$}/brand/${l}/eventset?widget_id=${g}&source_type=homepage&source_id=${l}&eventset_type=${t}&status=active,active`,f&&console.log("[Banner Widget System] Using new API:",n)}else n=w.toString()+l.toString()+"?eventset_type="+t+"&source=homepage&source_id="+l,f&&console.log("[Banner Default] Using old API:",n);fetch(n).then(t=>t.json()).then(e=>(0,b.Po)(e,t)).then(async t=>{var n,o;let r=[...null!==(n=null===t||void 0===t?void 0:t.events)&&void 0!==n?n:[],...null!==(o=null===t||void 0===t?void 0:t.all_events)&&void 0!==o?o:[]];if((h||p||m)&&0===r.length){const{bannerData:t}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return void e(t)}e(r),s(!0)}).catch(t=>{r(t.message),s(!0)})},[]),(0,o.useEffect)(()=>{t&&t.length>0&&J.Sn.forEach(t=>{const e=t.querySelector(`.whatmore-shimmer-container[data-widget-id="${v}"]`);e&&(e.remove(),f&&console.log(`[Banner Success] Removed shimmer for widget ${v}`));const n=t.querySelector(`.whatmore-render-root[data-widget-id="${v}"]`);n&&(n.style.opacity="1",n.style.pointerEvents="auto",n.removeAttribute("data-shimmer-active"),f&&console.log(`[Banner Success] Showing render root for widget ${v}`))})},[t]),c&&(null==t||0===t.length||n)?(J.Sn.forEach(t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=t.querySelector(`.whatmore-shimmer-container[data-widget-id="${v}"]`);n&&(n.remove(),f&&console.log(`[Banner API Error] Removed shimmer for widget ${v}`));const o=t.querySelector(`.whatmore-render-root[data-widget-id="${v}"]`);o&&(o.style.opacity="1",o.style.pointerEvents="auto",o.removeAttribute("data-shimmer-active"),f&&console.log(`[Banner API Error] Reset render root for widget ${v}`)),h||p||t.style.setProperty("min-height","0px","important")}),(0,d.jsx)("div",{})):null==t||0===t.length||n?(0,d.jsx)("div",{}):(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(U.S,{userInteractionType:k.O.BANNER_WIDGET_VIEW,event:t[0],triggerFlag:!p&&!h,children:(0,d.jsx)(X.A,{events:t})})})},G=n(5677),K=(n(8584),n(2446),n(6267),n(4475)),Y=n(4540),Z=n(5405);var tt=function(t){var e,n;const r=(0,i.Xd)("whatmorePrimaryFont"),c=(0,i.Xd)("whatmoreSecondaryColor"),s=(0,i.Xd)("whatmoreShopId"),[u,l]=(0,o.useState)(!1),p=t.mode,h=t.storyId,m=(0,K.s)(t.imageUrl),f=t.title,v=t.onClick,g=t.template,_=t.event,w=(0,a.ivI)(s),y="template-stories-a"===g?"50%":"30%",b=t.tileSize,x=.12*b*(0,a.cYm)(s),S=null!==(e=(0,a.Pjz)(s))&&void 0!==e?e:r;let j=null!==(n=(0,a.qAx)(s))&&void 0!==n?n:[c,w,c,w,c];Array.isArray(j)||(j=Array(5).fill(j));const T=(0,o.useRef)(0),C=(0,o.useRef)(null),E=(0,o.useRef)(null);return(0,o.useEffect)(()=>{E.current&&E.current.play();const t=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="stories"])');t&&function e(n=0){const o=t.querySelector("#storiesLoader");o?o.style.display="none":n<10&&setTimeout(()=>e(n+1),100)}()},[]),(0,o.useEffect)(()=>{const t=C.current,e=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(t.isIntersecting){const n=t.target;n.src=n.dataset.src,e.unobserve(n)}})},{rootMargin:"0px 100px 0px 0px",threshold:0});return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[m]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:b*(0,a.rMH)(s)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{l(!0),v(h)},className:[u?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",boxSizing:"border-box",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:y,boxShadow:"87857266990"===s?"none":"0px 2px 1px 0px "+j[0]+"50, 0px -2px 1px 0px "+j[1]+"50, 2px 0px 1px 0px "+j[2]+"50, -2px 0px 1px 0px "+j[3]+"80, 2px -2px 1px 0px "+j[4]+"80, -2px 2px 1px 0px "+j[0]+"DA, 2px 2px 1px 0px "+j[1]+"DA, -2px -2px 1px 0px "+j[2]+"DA"},children:(0,d.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:b+"px",width:b+"px",borderRadius:y,border:"87857266990"===s?"none":"3px solid white",backgroundColor:"#343434"===c?"#d3d3d3":c,overflow:"hidden"},children:"video"==(0,Y.B)(m)?(0,d.jsx)(Z.A,{height:"100%",width:"100%",url:m,isPlaying:!0,event:_||{event_type:"video"},borderRadius:y}):(0,d.jsx)("img",{ref:C,className:"whatmore-story-thumbnail","data-src":m.startsWith("https://cdn.shopify.com")?m.split("?")[0]+"?width=400&height=400":m,loading:"lazy",style:{objectFit:"cover",width:"100%",height:"100%",backgroundColor:"white"},alt:"story",onError:function(){if(T.current<3){let e=(0,K.s)(t.imageUrl);C.current.src="",C.current.src=e,T.current=T.current+1}else console.log("Failed to load image after several attempts"),C.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,d.jsx)("p",{className:"wht-story-title "+("landscape"===p?"wst-landscape":"wst-portrait"),style:{textAlign:"center",color:(0,a.o9q)(s),fontFamily:S,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto",fontSize:x+"px"},children:null===f||void 0===f?void 0:f.substring(0,24)})})]})};const et=t=>(0,d.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:t.style,children:(0,d.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),nt=t=>(0,d.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:t.style,children:(0,d.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ot=(0,E.A)({key:"whatmore-stories-css"});var rt=function(t){const[e,n,r]=(0,G.A)(),[c]=(0,i.QN)("whatmoreStoryTileSize"),[s]=(0,i.QN)("whatmoreStoryTileSizeDesktop"),[u]=(0,i.QN)("whatmoreShopId"),[l,p]=(0,o.useState)("portrait"===e?"flex-start":"center"),[h,m]=(0,o.useState)(!1),[f,v]=(0,o.useState)(!1),g=(0,o.useRef)(null),_=(0,o.useRef)(null);var w=t.eventsStories;const y=t.onClick,b=t.template,x="landscape"===e&&(0,a.lDJ)(u);function S(){if(!x||!g.current)return;const{scrollLeft:t,scrollWidth:e,clientWidth:n}=g.current;m(t>0),v(t<e-n-1)}(0,o.useEffect)(()=>{J.Sn.forEach(t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;t&&(t.style.minHeight="0px")})},[]);const j=t=>{if(g.current){const e="left"===t?4*-A:4*A;g.current.scrollBy({left:e,behavior:"smooth"})}};(0,o.useEffect)(()=>{!function(){if(g.current){const t=g.current.scrollWidth,e=g.current.offsetWidth;p(t>e?"flex-start":"center")}}()},[l,r]),(0,o.useEffect)(()=>{if(!x)return;const t=()=>{S()},e=()=>{S()},n=g.current;return n?(n.addEventListener("scroll",t),window.addEventListener("resize",e),S(),()=>{n.removeEventListener("scroll",t),window.removeEventListener("resize",e)}):void 0},[x]);const[T,E]=(0,o.useState)([]);(0,o.useEffect)(()=>{E(w.map(t=>t.storyset_dynamic_thumbnail?Math.floor(Math.random()*(t.events.length-1)):0))},[]);const A="landscape"===e?n*(s/340):r*(c/200);return(0,d.jsx)(C.C,{value:ot,children:"landscape"==e&&!(0,a.AFg)(u)||"portrait"==e&&!(0,a.rC6)(u)?(0,d.jsx)(d.Fragment,{}):(0,d.jsxs)("div",{ref:_,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-story-container",children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:l,height:"fit-content",width:"100%",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-story-horizontal-flex",ref:g,children:w.map((t,n)=>{var o,r,i,a,c;const s=t.storyset_dynamic_thumbnail?T[n]:0,u=null===(o=t.events)||void 0===o?void 0:o[s],l=t.storyset_dynamic_thumbnail?null!==(r=null===u||void 0===u?void 0:u.poster_image)&&void 0!==r?r:t.thumbnail_image:null!==(i=t.thumbnail_image)&&void 0!==i?i:null===t||void 0===t||null===(a=t.events)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.thumbnail_image;return(0,d.jsx)(tt,{storyId:t.id,tileSize:A,onClick:t=>{y(n)},template:b,imageUrl:l,fallbackUrl:t.thumbnail_image,title:t.title,mode:e,event:u},"whatmore-story-"+t.id)})}),x&&(0,d.jsxs)(d.Fragment,{children:[h&&(0,d.jsx)("button",{onClick:()=>j("left"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",left:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:t=>{t.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:t=>{t.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,d.jsx)(et,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})}),f&&(0,d.jsx)("button",{onClick:()=>j("right"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",right:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:t=>{t.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:t=>{t.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,d.jsx)(nt,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})};var it=function(){var t,e,r,c,s,l;const[p,h]=(0,o.useState)(),[m,f]=(0,o.useState)(),[v,g]=(0,o.useState)(),[x,C]=(0,o.useState)(!1),[E,A]=(0,o.useState)(-1),[P,I]=(0,o.useState)(null),[$]=(0,i.QN)("whatmoreShopId"),[L]=(0,i.QN)("isInDesignMode"),[N]=(0,i.QN)("isDemoBrand"),[W]=(0,i.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreRootId:R,whatmoreWidgetSourceDetails:z,whatmoreUserInfo:F}=((0,i.Xd)("isWhatmorePreviewMode"),(0,i.Xd)("whatmoreLoggingActive"),(0,o.useContext)(mt)),V=(0,i.Xd)("whatmoreLandingLocationType"),q=(null===z||void 0===z?void 0:z.templateType)||"template-stories-a";(0,o.useEffect)(()=>{(0,y.wm)()},[]),(0,o.useEffect)(()=>{(0,T.initializeGA)($)},[]),(0,o.useEffect)(()=>{null!=p&&0!=p.length&&!v&&(0,j.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,O._)()&&(0,S.Pc)(S.F5)},[p]),(0,o.useEffect)(()=>{var t,e,n;const o=null===(t=window)||void 0===t||null===(e=t.whatmore)||void 0===e||null===(n=e.storyEvents)||void 0===n?void 0:n.events;if(V.startsWith("index")&&"object"==typeof o&&(null===o||void 0===o?void 0:o.length)>0)h(o),f(o),C(!0);else{let t;const e="live,upcoming",n="true";if(V.startsWith("product")){const n=(0,i.Xd)("whatmoreProductId");t=_.$$+"/v2/brand/"+$+"/product-events"+"?client_product_id="+n+"&status="+e+"&event_type=video,image"}else{t=((0,a.SOt)($)?_.aD+"/v2/events/":_.$$+"/v2/events/")+$+"?status="+e+"&is_active="+n+"&template_type=stories"}fetch(t).then(t=>t.json()).then(t=>(0,b.Np)(t,!1)).then(t=>{let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];e=(0,a.xku)($)?(0,b.d8)(e):(0,b.Zf)(e),h(e),f(e),C(!0)}).catch(t=>{console.error("[WhatmoreStoriesView] API Error:",t),g(t),C(!0)})}},[]);const B=p?function(t){var e=t.reduce((t,e,n)=>{var o,r=e.storyset_id;r in t?(t[r].total_events=t[r].total_events+1,t[r].events.push(e)):t[r]={id:e.storyset_id,title:e.storyset_name,thumbnail_image:e.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(o=null===e||void 0===e?void 0:e.storyset_dynamic_thumbnail)&&void 0!==o&&o,events:[e]};return t},{}),n=Object.values(e);return n.sort((t,e)=>t.start_event_index-e.start_event_index),n}(p):[];return x&&(null==p||0===p.length||v)?(N||L||J.Sn.forEach(t=>{var e,n,o;(null!==(e=null!==(n=null!==(o=t.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==o?o:t.querySelector('.whatmore-template-type[data="template-stories-a"]'))&&void 0!==n?n:t.querySelector('.whatmore-template-type[data-wh="template-stories-b"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-stories-b"]'))&&t.style.setProperty("min-height","0px","important")}),(0,d.jsx)("div",{})):null==p||0===p.length||v?(0,d.jsx)("div",{}):(0,d.jsxs)(d.Fragment,{children:[-1!==E&&null!==P&&(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(M.A,{posterUrl:(null===B||void 0===B||null===(t=B[P])||void 0===t||null===(e=t.events)||void 0===e||null===(r=e[E])||void 0===r?void 0:r.poster_image)||(null===B||void 0===B||null===(c=B[P])||void 0===c||null===(s=c.events)||void 0===s||null===(l=s[E])||void 0===l?void 0:l.thumbnail_image)}),children:(0,d.jsx)(D.A,{events:m,index:E,onBack:async function(){A(-1)},slideDirection:"horizontal",eventsStories:B,initialStoryIndex:P,template:q})}),(0,d.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,D.h)(),style:{height:"100%",marginTop:W+"px",marginBottom:W+"px"},children:(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(U.S,{userInteractionType:k.O.STORIES_WIDGET_VIEW,triggerFlag:!L&&!N,children:(0,d.jsx)(rt,{eventsStories:B,onClick:async function(t,e=!1,o=null){if((0,j.MN)()&&(0,O._)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,S.bo)()}L||N||(async()=>{const{initializeGA:e,sendVideoViewEventToGA:o}=await Promise.resolve().then(n.bind(n,7939));e();const r=B[t].events[0],i=(null===z||void 0===z?void 0:z.landingLocationType)||"index",a=(null===z||void 0===z?void 0:z.templateType)||"template-stories-a",c=(0,u.Wd)(i)+(0,u.gf)(a)+(null!==r&&void 0!==r&&r.isRelatedEvent?"R":"E")+"_"+(null===r||void 0===r?void 0:r.event_id);(0,w.lB)(r),o($,_.TB,_.OL),(0,y.Ch)(r.event_id,r.products,"homepage","stories",c,null===r||void 0===r?void 0:r.location,null===F||void 0===F?void 0:F.userType)})();var r=0;null!=o&&B[t].events.map((t,e)=>{t.event_id==o&&(r=e)}),A(r),I(t)},template:q})})})})]})},at=n(5e3),ct=n(6287),st=n(4018);var ut,lt=function({events:t,index:e,eventsStories:n,storyIndex:r,onClose:c}){const s=(0,i.Xd)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:u,whatmoreIsStoriesTemplate:l}=(0,o.useContext)(mt),p=(0,o.useMemo)(()=>(Array.isArray(t)?t:[]).map(t=>{var e;return null!==t&&void 0!==t&&null!==(e=t.poster_image)&&void 0!==e&&e.startsWith("https://cdn.shopify.com")?{...t,poster_image:t.poster_image.split("?")[0]+"?width=400&height=400"}:t}),[t]);if((0,o.useEffect)(()=>{(0,ct.B)();const t=(0,at.k5)();t&&(0,at.YJ)()&&((0,i.t2)("whatmoreVideoPlayerPool",t),(0,i.t2)("whatmoreVideoPlayerPoolInitiated",!0),(0,i.t2)("whatmoreVideoPlayerPoolBlessed",!0))},[]),null==e||e<0||!p.length)return null;const h=l||"horizontal"===(0,a.br0)(s)?"horizontal":"vertical";return(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(M.A,{posterUrl:p[e]?(0,st.tQ)(p[e]):void 0}),children:(0,d.jsx)(D.A,{events:p,index:e,onBack:c,slideDirection:h,template:u,eventsStories:n,initialStoryIndex:r})})};const dt=null!==(ut="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==ut&&ut;var pt=function(t){const{whatmoreEventsBrowsingTemplate:e,whatmoreIsStoriesTemplate:r,whatmoreIsCollectionsTemplate:p,whatmoreIsBannerTemplate:h,whatmoreCollectionId:f,whatmoreRootId:v,whatmoreWidgetSourceDetails:_,whatmoreIsPreviewMode:w,whatmoreUserInfo:y}=(0,o.useContext)(mt),b=(null===_||void 0===_?void 0:_.landingLocationType)||"index",[x]=(0,i.QN)("whatmoreShopId"),[S]=(0,i.QN)("isInDesignMode"),[j]=(0,i.QN)("isDemoBrand"),[T]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[C,E]=(0,i.QN)("brandCustomizationsLoaded");function A(){const t=f;return S||(0,s.W)({enableSpotlight:(0,a.hbj)(x),enableOnHP:(0,a.R2w)(x),pageIdSet:(0,a.Idi)(x),enableAllPages:(0,a.isL)(x)},b,t)}if((0,o.useEffect)(()=>{if(!C)try{const t=localStorage.getItem("whatmore_brand_customizations");if(t){const{customizations:e}=JSON.parse(t);(0,a.Tzr)(e,x),E(!0),dt&&console.debug("Whatmore: Customizations loaded from cache in App.js")}}catch(t){console.error("Whatmore: Error loading customizations in App.js:",t)}},[C,x,E]),(0,o.useEffect)(()=>{null==localStorage.getItem("_user_wh_lc")&&"72201044272"==x&&n.e(259).then(n.bind(n,6027)).then(({getLocationDetails:t})=>t()).then(t=>{localStorage.setItem("_user_wh_lc",JSON.stringify(t))}).catch(t=>{localStorage.setItem("_user_wh_lc",JSON.stringify({latitude:"",longitude:""})),console.error(`Whatmore: Error fetching location: ${t}`)})},[x]),null!==t&&void 0!==t&&t.neoFullscreen)return(0,d.jsx)(lt,{events:t.neoFullscreen.events,index:t.neoFullscreen.index,eventsStories:t.neoFullscreen.eventsStories,storyIndex:t.neoFullscreen.storyIndex,onClose:t.neoFullscreen.onClose});if((0,c.U)()){if((0,u.S0)(e))return(0,d.jsx)(d.Fragment,{});if("index"===b||"collection"===b||b.startsWith("collection")||b.startsWith("page")||b.startsWith("blog")||b.startsWith("article")){if(h)return dt&&console.debug(`Whatmore: Shopify, rendering banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(Q,{})});if(r)return dt&&console.debug(`Whatmore: Shopify, rendering stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(it,{})});if(!(0,u.io)(e))return dt&&console.debug(`Whatmore: Shopify, rendering index/collection page carousels: ${e}`),(0,d.jsx)(g,{whatmoreRootId:v,children:(0,d.jsx)(m,{})});if(A()&&!b.startsWith("collection"))return dt&&console.debug(`Whatmore: Shopify, rendering index/page spotlight: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(B,{})});if(b.startsWith("collection")&&(0,u.io)(e)&&!0===(0,a.Vwo)(x))return dt&&console.debug(`Whatmore: Shopify, rendering collection page floating popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(B,{})});if(b.startsWith("collection")&&(0,u.io)(e))return(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(H,{})})}var P,k,I,$,L,O;return b.startsWith("product")?h?(dt&&console.debug(`Whatmore: Shopify, rendering PDP-page banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(Q,{})})):r?(dt&&console.debug(`Whatmore: Shopify, rendering PDP-page stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(it,{})})):(0,u.io)(e)||(0,u.Ig)(e)?null!==(P=window)&&void 0!==P&&null!==(k=P.Shopify)&&void 0!==k&&null!==(I=k.theme)&&void 0!==I&&I.role&&"main"===window.Shopify.theme.role||window.location.href.includes("localhost:")?(dt&&console.debug(`Whatmore: Shopify, rendering PDP-page popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(V,{})})):(null!==($=window)&&void 0!==$&&null!==(L=$.Shopify)&&void 0!==L&&null!==(O=L.theme)&&void 0!==O&&O.role&&"main"!==window.Shopify.theme.role||S)&&(0,a.C1J)(x)?(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(V,{})}):(dt&&console.debug("Whatmore: Shopify, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(dt&&console.debug(`Whatmore: Shopify, rendering PDP-page carousels: ${e}`),(0,d.jsx)(g,{whatmoreRootId:v,children:(0,d.jsx)(m,{})})):((0,a.dnh)(x)&&(0,a.bQo)(x)&&"cart"===b&&(dt&&console.debug("Whatmore: initiating whatmore attribution from cart page."),(0,l.addWhatmoreAttributeToCart)("true"===T)),(0,d.jsx)(d.Fragment,{}))}return"index"===b||"collection"===b||b.startsWith("page")?h?(dt&&console.debug(`Whatmore: External, rendering banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(Q,{})})):r?(dt&&console.debug(`Whatmore: External, rendering stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(it,{})})):(0,u.io)(e)?(0,u.io)(e)&&A()&&!b.startsWith("collection")?(dt&&console.debug(`Whatmore: External, rendering index/page spotlight: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(B,{})})):b.startsWith("collection")&&(0,u.io)(e)&&!0===(0,a.Vwo)(x)?(dt&&console.debug(`Whatmore: External, rendering collection page floating popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(B,{})})):(dt&&console.debug(`Whatmore: External, rendering index/collection page popup: ${e}`),(0,d.jsx)(d.Fragment,{})):(dt&&console.debug(`Whatmore: External, rendering index/collection page carousels: ${e}`),(0,d.jsx)(g,{whatmoreRootId:v,children:(0,d.jsx)(m,{})})):b.startsWith("product")||"embed"===b?h?(dt&&console.debug(`Whatmore: External, rendering PDP-page banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(Q,{})})):r?(dt&&console.debug(`Whatmore: External, rendering PDP-page stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(it,{})})):(0,u.Ig)(e)||(0,u.io)(e)?(0,a.fDZ)(x)?(dt&&console.debug(`Whatmore: External, rendering PDP-page popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(V,{})})):(dt&&console.debug("Whatmore: External, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(dt&&console.debug(`Whatmore: External, rendering PDP-page carousels: ${e}`),(0,d.jsx)(g,{whatmoreRootId:v,children:(0,d.jsx)(m,{})})):(0,d.jsx)(d.Fragment,{})};const ht=["80505864496","26077888559"],mt=o.createContext({whatmoreEventsBrowsingTemplate:"non-existent-template",whatmoreIsStoriesTemplate:!1,whatmoreIsCollectionsTemplate:!1,whatmoreCollectionId:"",whatmoreCollectionHeading:"",whatmoreHeadingCarousel:"",whatmoreWidgetIdentity:"wgt_default",whatmoreIsBannerTemplate:!1,whatmoreRootId:"whatmoreRoot-template-a",whatmoreWidgetSourceDetails:{landingLocationType:"index",templateType:"non-existent-template"},whatmoreIsPreviewMode:"invalid",whatmoreUserInfo:{userType:null}}),ft=function(t){return"template-banner-a"===t||"template-banner-neo"===t},vt=function(t){return"template-collections-a"==t||"template-collections-b"==t||"template-collections-c"==t||"template-collections-d"==t||"template-collections-e"==t||"template-collections-stories"==t||"template-collections-f"==t||"template-collections-g"==t||"template-collections-h"==t||"template-collections-i"==t||"template-collections-feed-a"==t||"template-collections-j"==t||"template-collections-a-1"==t||"template-collections-neo"==t},gt=function(t){return"template-stories-a"===t||"template-stories-b"===t||"template-stories-neo"===t};function _t(t){return{whatmoreEventsBrowsingTemplate:t.templateType,whatmoreIsStoriesTemplate:t.isStoriesTemplate,whatmoreIsCollectionsTemplate:t.isCollectionsTemplate,whatmoreCollectionId:t.whatmoreCollectionId,whatmoreCollectionHeading:t.whatmoreCollectionHeading,whatmoreHeadingCarousel:t.whatmoreHeadingCarousel,whatmoreWidgetIdentity:t.whatmoreWidgetIdentity,whatmoreIsBannerTemplate:t._isTemplateTypeBanner,whatmoreRootId:t.whatmoreRootId,whatmoreWidgetSourceDetails:{landingLocationType:t.landingLocationType,templateType:t.templateType},whatmoreIsPreviewMode:t.isInPreviewMode,whatmoreUserInfo:{userType:t.userType}}}function wt(t,e){const n=_t(t),o=document.createElement("div");o.className="whatmore-neo-fullscreen-root",document.body.appendChild(o);const i=r.createRoot(o);i.render((0,d.jsx)(mt.Provider,{value:n,children:(0,d.jsx)(pt,{neoFullscreen:{events:e.events,index:e.eventIndex,eventsStories:e.eventsStories,storyIndex:e.storyIndex,onClose:()=>{try{i.unmount()}catch(t){}o.remove()}}})}))}function yt(t){const{rootElement:e,templateType:n,whatmoreRootId:o}=t,a=_t(t),c=r.createRoot(e);c.render((0,d.jsx)(mt.Provider,{value:a,children:(0,d.jsx)("div",{style:{display:"block",height:"100%"},id:o,className:"whatmore-root",children:(0,d.jsx)(pt,{})})})),"template-embed"!==n&&ht.includes(String((0,i.Xd)("whatmoreShopId")))&&function(t,e,n,o){var a;const c=(null===(a=t.closest)||void 0===a?void 0:a.call(t,".whatmore-base"))||t.parentElement;if(!c)return;const s=()=>{var t,e;const n=c.querySelector("#whatmoreProductId");return null!==(t=null!==(e=null===n||void 0===n?void 0:n.getAttribute("data-wh"))&&void 0!==e?e:null===n||void 0===n?void 0:n.getAttribute("data"))&&void 0!==t?t:null};let u=s(),l=e;new MutationObserver(()=>{const e=s();if(!e||e===u)return;if(u=e,(0,i.t2)("whatmoreProductId",e),l)try{l.unmount()}catch(c){}t.textContent="";const a=document.createElement("div");a.id=o,a.className="whatmore-root",a.style.display="block",a.style.height="100%",t.appendChild(a),l=r.createRoot(a),l.render((0,d.jsx)(mt.Provider,{value:n,children:(0,d.jsx)(pt,{})}))}).observe(c,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-wh","data"]})}(e,c,a,o)}},4475:function(t,e,n){n.d(e,{s:function(){return c}});var o=n(5547),r=n(1214);const i={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},c=function(t){const e=(0,r.Xd)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.CfJ)(e))return t;if("AZURECDN"==(0,o.CfJ)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,o.CfJ)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}return t}},4540:function(t,e,n){n.d(e,{B:function(){return a},b:function(){return i}});var o=n(5547),r=n(1214);function i(t,e=""){const n=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},4548:function(){},4694:function(t,e,n){n.d(e,{S:function(){return l}});var o=n(5660),r=n(4234),i=n(1477),a=n(6694),c=n(7156),s=n(481);const u=new Set([c.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,c.O.BANNER_WIDGET_VIEW,c.O.STORIES_WIDGET_VIEW,c.O.COLLECTION_WIDGET_VIEW,c.O.SPOTLIGHT_WIDGET_VIEW,c.O.PDP_POPUP_WIDGET_VIEW]),l=function(t){var e,n;const c=u.has(t.userInteractionType),l=null!==(e=t.threshold)&&void 0!==e?e:c?0:1,d=null!==(n=t.triggerOnce)&&void 0!==n?n:c,[p,h,m]=(0,o.A)({triggerOnce:d,threshold:l}),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext);return(0,i.useEffect)(()=>{var e;const n=null===m||void 0===m?void 0:m.boundingClientRect;var o,r,i;(d||!n||0!==n.width&&0!==n.height)&&(h&&null!==(e=t.triggerFlag)&&void 0!==e&&e&&(0,a.B)({userInteractionType:t.userInteractionType,userInteractionMetadata:null!==(o=t.userInteractionMetadata)&&void 0!==o?o:{},widgetSourceDetails:f,event:t.event,productList:null!==(r=t.productList)&&void 0!==r?r:[],ctaList:null!==(i=t.ctaList)&&void 0!==i?i:[]}))},[h,t.triggerFlag]),(0,s.jsx)("div",{style:{height:"100%"},ref:p,children:t.children})}},5e3:function(t,e,n){n.d(e,{Au:function(){return c},YJ:function(){return u},k5:function(){return s}});const o=6,r="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i="whatmore-video-player whatmore-main-video-player-from-pool";function a(){return"undefined"===typeof window?{}:(window.__whatmoreNeoVideoPool||(window.__whatmoreNeoVideoPool={}),window.__whatmoreNeoVideoPool)}function c(){const t=a();if(t.armed||"undefined"===typeof document)return;t.armed=!0,function(){const t=a();if(t.pool||"undefined"===typeof document)return;const e=document.createDocumentFragment();for(let n=0;n<o;n++){const t=document.createElement("video");t.setAttribute("class",i),t.setAttribute("src",r),t.muted=!0,t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t)}t.pool=e}();const e=()=>{document.removeEventListener("click",e),document.removeEventListener("touchstart",e),function(){const t=a();if(t.blessed||!t.pool)return;const e=t.pool.childNodes;for(let n=0;n<e.length;n++){const t=e[n];t.muted=!0;const o=t.play();o&&o.then&&o.then(()=>t.pause()).catch(()=>{})}t.blessed=!0}()};document.addEventListener("click",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})}function s(){return a().pool||null}function u(){return!!a().blessed}},5129:function(t,e,n){var o=n(1477),r=n(9258),i=n(4475),a=n(481);e.A=function(t){var e,n,c;const[s,u]=(0,o.useState)(!1),l=o.useRef(0),d=(0,o.useRef)(null),p=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",m=null!==(c=t.width)&&void 0!==c?c:"100%";return(0,o.useEffect)(()=>{l.current=0;const t=setInterval(()=>{l.current=l.current+.03,d.current&&p(l.current,5),l.current>=5&&(l.current=0)},30);return()=>{clearInterval(t)}},[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:m,height:"100%",overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,a.jsx)("img",{ref:d,src:(0,i.s)(t.url),style:{objectFit:"cover",height:"100%",width:m,backgroundColor:"white"},alt:"image player",onLoad:()=>{u(!0)}})}),s?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(r.A,{width:m,height:h})]})}},5277:function(){},5405:function(t,e,n){n.d(e,{A:function(){return m}});var o=n(1477),r=n(5660),i=n(4475),a=n(3168),c=n(9128),s=n(5129),u=n(4040),l=n(1214),d=n(4018),p=n(481);var h=function(t){var e,n,i,c,s,h,m,f,v,g,_,w,y,b,x,S,j,T,C,E,A,P,k;const I=(0,o.useRef)(null),[$,L,O]=(0,r.A)({triggerOnce:!0}),N=(0,l.Xd)("whatmoreShopId"),W=null!==(e=t.height)&&void 0!==e?e:"100%",D=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)(()=>{if(I.current)if(t.isPlaying){if("99423519085"===N){var e;const n=I.current;n.muted=null===(e=t.isVideoMuted)||void 0===e||e,n.playsInline=!0,n.autoplay=!0;const o=()=>{n.paused&&n.play().catch(()=>{})};return o(),n.addEventListener("loadeddata",o),n.addEventListener("canplay",o),()=>{n.removeEventListener("loadeddata",o),n.removeEventListener("canplay",o)}}I.current.paused&&I.current.play().catch(t=>{"NotAllowedError"!==t.name?console.error("Muted video play error:",t):console.warn("Muted play blocked by iOS autoplay policy")})}else"57939755089"==N?(I.current.paused&&((0,u.n)()||(0,a.At)())&&I.current.play().catch(()=>{}),setTimeout(()=>{I.current&&I.current.pause()},300)):I.current.pause()},[t.isPlaying,L]),(0,p.jsx)("div",{ref:$,style:{width:W,height:D,overflow:"hidden",display:"flex",alignItems:"center"},children:L||"51394281658"==N||"8968077397"==N?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:D,height:W},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(i=null!==(c=null===t||void 0===t||null===(s=t.event)||void 0===s||null===(h=s.products)||void 0===h||null===(m=h[0])||void 0===m?void 0:m.title)&&void 0!==c?c:null===t||void 0===t||null===(f=t.event)||void 0===f?void 0:f.event_id)&&void 0!==i?i:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(v=null===t||void 0===t||null===(g=t.event)||void 0===g||null===(_=g.products)||void 0===_||null===(w=_[0])||void 0===w?void 0:w.title)&&void 0!==v?v:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(y=null===t||void 0===t||null===(b=t.event)||void 0===b?void 0:b.poster_image)&&void 0!==y?y:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(x=null===t||void 0===t||null===(S=t.event)||void 0===S?void 0:S.thumbnail_image)&&void 0!==x?x:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==(j=`${null===t||void 0===t||null===(T=t.event)||void 0===T?void 0:T.scheduled_date}T00:00:00Z`)&&void 0!==j?j:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(C=null===t||void 0===t||null===(E=t.event)||void 0===E?void 0:E.thumbnail_image)&&void 0!==C?C:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==(A=null===t||void 0===t||null===(P=t.event)||void 0===P?void 0:P.total_views)&&void 0!==A?A:0}),(0,p.jsxs)("video",{ref:I,className:"whatmore-video-player-muted",width:D,height:W,preload:"metadata",loop:!0,playsInline:!0,poster:"57939755089"==N?"":t.poster,muted:null===(k=t.isVideoMuted)||void 0===k||k,style:{backgroundColor:"white",borderRadius:t.borderRadius,objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:t.url,type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:D,height:W,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var m=function(t){var e,n,u,m,f,v,g,_,w,y,b,x,S,j,T,C,E,A,P,k,I,$,L,O;const[N,W,D]=(0,r.A)({triggerOnce:!0}),R=(0,l.Xd)("whatmoreShopId"),M=(0,o.useRef)(null),z=(0,o.useRef)(null);if((0,o.useEffect)(()=>{if(z.current&&clearTimeout(z.current),M.current)if(t.isPlaying){if("99423519085"===R){var e;const n=M.current;n.muted=null===(e=t.isVideoMuted)||void 0===e||e,n.playsInline=!0,n.autoplay=!0;const o=()=>{n.paused&&n.play().catch(()=>{})};return o(),n.addEventListener("loadeddata",o),n.addEventListener("canplay",o),()=>{n.removeEventListener("loadeddata",o),n.removeEventListener("canplay",o)}}if("81308287252"===R){if(!navigator.getAutoplayPolicy||"disallowed"!==navigator.getAutoplayPolicy("mediaelement")){const e=M.current.play();void 0!==e&&e.catch(()=>{z.current=setTimeout(()=>{M.current&&t.isPlaying&&M.current.play().catch(()=>{})},500)})}}else M.current.play()}else M.current.pause();return()=>{z.current&&clearTimeout(z.current)}},[t.isPlaying,W,R]),(0,c.I)(t.event))return(0,p.jsx)(s.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});if("75649450207"===R)return(0,p.jsx)(s.A,{height:t.height,width:t.width,url:(0,d.tQ)(t.event),isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const F=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200,V=(0,i.s)(null!==t&&void 0!==t&&t.event?(0,d.tQ)(t.event):void 0);if((0,a.MN)())return(0,p.jsx)(h,{isVideoMuted:t.isVideoMuted,event:null===t||void 0===t?void 0:t.event,borderRadius:t.borderRadius,height:"100%",width:"100%",poster:V,url:(0,i.s)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:F});const q=null!==(n=t.height)&&void 0!==n?n:"100%",B=null!==(u=t.width)&&void 0!==u?u:"100%";return(0,p.jsx)("div",{ref:N,style:{width:q,height:B,overflow:"hidden",display:"flex",alignItems:"center"},children:W||t.eagerLoad||"51394281658"==R||"8968077397"==R?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:q,height:B},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(m=null!==(f=null===t||void 0===t||null===(v=t.event)||void 0===v||null===(g=v.products)||void 0===g||null===(_=g[0])||void 0===_?void 0:_.title)&&void 0!==f?f:null===t||void 0===t||null===(w=t.event)||void 0===w?void 0:w.event_id)&&void 0!==m?m:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(y=null===t||void 0===t||null===(b=t.event)||void 0===b||null===(x=b.products)||void 0===x||null===(S=x[0])||void 0===S?void 0:S.title)&&void 0!==y?y:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(j=null===t||void 0===t||null===(T=t.event)||void 0===T?void 0:T.poster_image)&&void 0!==j?j:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(C=null===t||void 0===t||null===(E=t.event)||void 0===E?void 0:E.thumbnail_image)&&void 0!==C?C:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==(A=`${null===t||void 0===t||null===(P=t.event)||void 0===P?void 0:P.scheduled_date}T00:00:00Z`)&&void 0!==A?A:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(k=null===t||void 0===t||null===(I=t.event)||void 0===I?void 0:I.thumbnail_image)&&void 0!==k?k:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==($=null===t||void 0===t||null===(L=t.event)||void 0===L?void 0:L.total_views)&&void 0!==$?$:0}),(0,p.jsxs)("video",{ref:M,className:"whatmore-video-player-muted",width:B,height:q,preload:"metadata",loop:!0,playsInline:!0,autoPlay:!0,muted:null===(O=t.isVideoMuted)||void 0===O||O,poster:"57939755089"==R?"":V,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:(0,i.s)(t.url),type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:B,height:q,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},5497:function(){},5534:function(t,e,n){n.d(e,{h:function(){return u}});var o,r=n(1477),i=n(481);const a=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,c=(0,r.lazy)(()=>(a&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83c\udfac EventClickComponent chunk loading...`),Promise.all([n.e(252),n.e(712),n.e(12),n.e(260)]).then(n.bind(n,8258))));let s=null;function u(){return s?a&&console.log(`[${(new Date).toLocaleTimeString()}] \u26a1 EventClickComponent already preloaded/preloading`):(a&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udd04 Preloading EventClickComponent on hover...`),s=Promise.all([n.e(252),n.e(712),n.e(12),n.e(260)]).then(n.bind(n,8258)).then(t=>(a&&console.log(`[${(new Date).toLocaleTimeString()}] \u2705 EventClickComponent preload complete`,t),t)).catch(t=>{throw console.error(`[${(new Date).toLocaleTimeString()}] \u274c EventClickComponent preload failed:`,t),t})),s}e.A=function(t){return(0,i.jsx)(c,{...t})}},5547:function(t,e,n){n.d(e,{$7F:function(){return Oo},$du:function(){return io},$lz:function(){return M},A5I:function(){return v},AFg:function(){return fe},AJI:function(){return S},ALN:function(){return Ht},AmR:function(){return An},B6P:function(){return ie},BLb:function(){return W},BRY:function(){return xn},BcY:function(){return dt},Br1:function(){return Xn},C1J:function(){return Dt},CBm:function(){return ho},Cf:function(){return Cn},CfJ:function(){return je},CpV:function(){return L},D2A:function(){return Kt},D7t:function(){return Q},DGu:function(){return Ao},DLl:function(){return Je},DNc:function(){return C},DiI:function(){return ft},DmD:function(){return qe},E8r:function(){return No},Eel:function(){return Vn},FKG:function(){return St},FVo:function(){return We},FZM:function(){return yt},FlI:function(){return un},Fwt:function(){return Ce},FyB:function(){return O},G0Q:function(){return J},GSq:function(){return Rt},GX0:function(){return b},GZ2:function(){return Wo},Gc6:function(){return ce},GvQ:function(){return zt},H$k:function(){return ht},H0Z:function(){return ne},HKH:function(){return Et},HWj:function(){return Tn},Hfu:function(){return P},Idi:function(){return Jt},If9:function(){return ze},JAc:function(){return m},JQp:function(){return Po},JSQ:function(){return oo},JiT:function(){return G},JwJ:function(){return vo},KFN:function(){return Fe},KMo:function(){return z},KPq:function(){return y},KVz:function(){return Zn},KZe:function(){return Tt},KnH:function(){return he},Kr7:function(){return Ln},L0y:function(){return et},LGx:function(){return hn},LOH:function(){return sn},LPW:function(){return Be},LrK:function(){return Gt},M$H:function(){return re},M3_:function(){return vn},MJ6:function(){return ln},MPe:function(){return pt},MRv:function(){return Pe},MdM:function(){return dn},Mq2:function(){return ke},Mz3:function(){return Mn},N0t:function(){return Pt},NCy:function(){return Ge},NFF:function(){return Dn},N_4:function(){return jn},Nzx:function(){return Lt},O86:function(){return Bt},OC6:function(){return V},OLZ:function(){return zn},OSd:function(){return f},Odx:function(){return tt},Pjz:function(){return rt},PpQ:function(){return Xe},Q$:function(){return xo},QNr:function(){return Nn},QSX:function(){return so},Qed:function(){return Ne},R2w:function(){return Ut},R6d:function(){return wn},R7q:function(){return uo},R8W:function(){return me},RG3:function(){return To},Rdb:function(){return E},SGs:function(){return se},SK$:function(){return mt},SOt:function(){return xe},Spk:function(){return R},T9r:function(){return Rn},TH:function(){return _o},TOK:function(){return bo},TYM:function(){return Oe},Tr1:function(){return eo},Tzr:function(){return r},U74:function(){return bt},Uht:function(){return lt},UlM:function(){return Ie},UmS:function(){return En},Usu:function(){return _n},VCz:function(){return D},VYo:function(){return Ve},VhI:function(){return kn},ViG:function(){return tn},Vpi:function(){return at},Vwo:function(){return Nt},WDJ:function(){return He},WH1:function(){return yo},WRx:function(){return In},Wc_:function(){return A},Woi:function(){return ct},XQu:function(){return kt},XYM:function(){return q},YE3:function(){return Ft},YOR:function(){return s},Y_l:function(){return B},YcK:function(){return Te},YqT:function(){return Eo},ZX9:function(){return en},ZzM:function(){return $t},_2D:function(){return Qt},_W0:function(){return te},_hU:function(){return jt},_zx:function(){return Gn},aEh:function(){return Lo},aO7:function(){return po},aRV:function(){return wo},ath:function(){return fo},bQo:function(){return I},br0:function(){return g},buK:function(){return qt},cQ7:function(){return ao},cYm:function(){return ge},cbh:function(){return ro},dLE:function(){return Wt},dmA:function(){return Ze},dnh:function(){return it},dzp:function(){return an},ei:function(){return T},ek9:function(){return x},esc:function(){return _t},fDZ:function(){return Ot},fHt:function(){return no},fpt:function(){return It},fwF:function(){return co},gZ6:function(){return Io},ga9:function(){return U},gcj:function(){return X},gld:function(){return Hn},gq8:function(){return Wn},gvj:function(){return de},hbj:function(){return Zt},hep:function(){return jo},hpk:function(){return fn},i2h:function(){return Jn},i6j:function(){return Un},iQ5:function(){return Ke},igk:function(){return H},imx:function(){return ut},isL:function(){return Xt},ivI:function(){return w},ivR:function(){return Ue},jLA:function(){return gt},jWS:function(){return oe},jpW:function(){return Se},jsS:function(){return $n},kZI:function(){return Ye},kb:function(){return _},kcl:function(){return Me},klK:function(){return De},l3V:function(){return nt},lDJ:function(){return be},m4S:function(){return j},m5c:function(){return ko},mJ$:function(){return vt},mOK:function(){return yn},mRH:function(){return Pn},mlY:function(){return So},moP:function(){return mn},n5O:function(){return Re},n8Q:function(){return Mt},nEf:function(){return Fn},nP1:function(){return d},nWM:function(){return p},naM:function(){return pe},o9q:function(){return _e},oB_:function(){return ue},oZc:function(){return rn},ogW:function(){return Qn},ol5:function(){return on},p2R:function(){return st},p6A:function(){return Yn},pUQ:function(){return Yt},pbJ:function(){return le},qAx:function(){return ve},qLA:function(){return Y},qw1:function(){return Le},rC6:function(){return we},rEM:function(){return k},rMH:function(){return ye},rh$:function(){return Ct},rsz:function(){return Kn},s0t:function(){return Ae},sIk:function(){return Ee},sa6:function(){return Z},tM2:function(){return gn},tSy:function(){return $},tbf:function(){return to},tik:function(){return ee},u06:function(){return lo},u1b:function(){return h},uJl:function(){return u},uSp:function(){return go},uXw:function(){return Co},ub$:function(){return bn},uoB:function(){return Bn},v8m:function(){return Sn},vDV:function(){return pn},vfi:function(){return Vt},vvD:function(){return ot},vvU:function(){return mo},vw2:function(){return qn},w4b:function(){return $e},wQ2:function(){return xt},wtw:function(){return cn},xIo:function(){return ae},xkB:function(){return nn},xku:function(){return $o},y3u:function(){return Qe},yD5:function(){return F},yW$:function(){return At},yt9:function(){return l},z00:function(){return N},z1s:function(){return K},zAb:function(){return On},zC7:function(){return wt}});var o=n(1214);const r=function(t,e){!function(t){const e={customizations:t,timestamp:(new Date).getTime()};localStorage.setItem("whatmore_brand_customizations",JSON.stringify(e))}(t);!function(){var n,r,i,a,c,s;const u=(0,o.Xd)("whatmorePrimaryFont"),l=(0,o.Xd)("whatmoreTitleFont"),d=(0,o.Xd)("isProductSwiperCatalogOpen");(0,o.t2)("whatmorePrimaryFont",null!==(n=ot(e))&&void 0!==n?n:u),(0,o.t2)("whatmoreTitleFont",null!==(r=Z(e))&&void 0!==r?r:l),(0,o.t2)("isProductSwiperCatalogOpen",null!==(i=ke(e))&&void 0!==i?i:d),(0,o.t2)("whatmorePrimaryFont",null===t||void 0===t?void 0:t.brand_theme_font),(0,o.t2)("whatmoreUITheme",null===t||void 0===t?void 0:t.brand_ui_theme),(0,o.t2)("whatmoreShowViews",null===t||void 0===t?void 0:t.brand_video_view_count),(0,o.t2)("whatmorePrimaryColor",null===t||void 0===t?void 0:t.brand_text_color),(0,o.t2)("whatmoreSecondaryColor",null===t||void 0===t?void 0:t.brand_theme_color),(0,o.t2)("whatmoreTitleFont",null!==(a=null===t||void 0===t||null===(c=t.brand_fonts)||void 0===c?void 0:c.carousel_title_font)&&void 0!==a?a:null===t||void 0===t||null===(s=t.homepage_carousel)||void 0===s?void 0:s.carousel_title_font)}()};function i(t,e,n){var o;if(!e.includes("->"))return e in n&&null!==(o=n[e])&&void 0!==o?o:null;const r=e.split("->")[0];return r in n?i(t,e.substring(e.indexOf("->")+2),n[r]):null}let a={};function c(t,e){if(e in a)return a[e];const n=function(){const t=localStorage.getItem("whatmore_brand_customizations");return t?JSON.parse(t).customizations:null}();if(!n)return null;const o=i(e,e,n);return a[e]=o,o}function s(t){t.sort((t,e)=>t.scheduled_date<e.scheduled_date?1:e.scheduled_date<t.scheduled_date?-1:0)}const u=function(t){return c(0,"show_single_product_tile")},l=function(t){return c(0,"brand_billing")},d=function(t){return c(0,"show_add_to_cart_on_card_template")},p=function(t){return c(0,"add_to_cart_button_type")},h=function(t){return c(0,"show_options_chart")},m=function(t){return c(0,"is_multi_size_chart")},f=function(t){return c(0,"options_chart_image_link")},v=function(t){return c(0,"options_chart_name")},g=function(t){return c(0,"default_swipe_direction")},_=function(t){return c(0,"add_navigation_buttons_for_swipe")},w=function(t){return c(0,"tertiary_color")},y=function(t){return c(0,"atc_button_text")},b=function(t){return c(0,"buy_now_button_text")},x=function(t){return c(0,"show_open_close_products_button")},S=function(t){return c(0,"add_to_cart_form_class_name")},j=function(t){return c(0,"cart_icon_button_click_action")},T=function(t){return c(0,"initiate_cart_slider_event_on_atc_click")},C=function(t){return c(0,"show_swipe_indicator_in_landscape")},E=function(t){return c(0,"coverflow_effect_landscape_view")},A=function(t){return c(0,"atc_config->brand_atc_button_color")},P=function(t){return c(0,"atc_config->brand_atc_button_text_color")},k=function(t){return c(0,"order_tracking->initiate_order_tracking_event_after_atc")},I=function(t){return c(0,"order_tracking->add_whatmore_attribute_on_cart_page")},$=function(t){return c(0,"order_tracking->disable_impression_order_tracking")},L=function(t){return c(0,"order_tracking->track_using_wtot")},O=function(t){return c(0,"atc_config->brand_atc_button_padding_in_px")},N=function(t){return c(0,"atc_config->atc_buy_now_alignment")},W=function(t){return c(0,"utm->activate_utm")},D=function(t){return c(0,"utm->utm_source")},R=function(t){return c(0,"utm->utm_campaign")},M=function(t){return c(0,"utm->utm_medium_product_page")},z=function(t){return c(0,"utm->utm_medium_checkout_page")},F=function(t){return c(0,"utm->utm_medium_cart_page")},V=function(t){return c(0,"banner_config->is_banner_clickable")},q=function(t){return c(0,"banner_config->show_cta")},B=function(t){return c(0,"banner_config->landscape_multiplier")},H=function(t){return c(0,"banner_config->portrait_multiplier")},U=function(t){return c(0,"banner_config->landscape_aspect_ratio")},J=function(t){return c(0,"banner_config->portrait_aspect_ratio")},X=function(t){return c(0,"banner_config->widget_aspect_ratios")},Q=function(t){return c(0,"banner_config->is_full_screen")},G=function(t){return c(0,"banner_config->show_navigation_dots")},K=function(t){return c(0,"banner_config->selected_dot_color")},Y=function(t){return c(0,"banner_config->show_mute_button")},Z=function(t){return c(0,"brand_fonts->carousel_title_font")},tt=function(t){return c(0,"brand_fonts->carousel_title_font_weight")},et=function(t){return c(0,"brand_fonts->carousel_title_font_line_height")},nt=function(t){return c(0,"brand_fonts->carousel_title_font_letter_spacing")},ot=function(t){return c(0,"brand_fonts->brand_primary_font")},rt=function(t){return c(0,"brand_fonts->story_title_font")},it=function(t){return c(0,"order_tracking->add_whatmore_attribute")},at=function(t){return c(0,"product_config->tile_type")},ct=function(t){return c(0,"product_config->show_cta")},st=function(t){return c(0,"product_config->tile_bg_opacity")},ut=function(t){return c(0,"product_config->details_api_available")},lt=function(t){return c(0,"product_config->update_product_details_on_product_page_load")},dt=function(t){return c(0,"product_config->use_product_page_link_as_client_product_id")},pt=function(t){return c(0,"product_config->navigate_to_cart_page")},ht=function(t){return c(0,"product_config->is_tile_width")},mt=function(t){return c(0,"product_config->show_view_product_text")},ft=function(t){return c(0,"product_config->show_go_to_cart_text")},vt=function(t){return c(0,"collections_config->use_page_link_as_collection_id")},gt=function(t){return c(0,"collections_config->multi_carousel_enabled")},_t=function(t){return c(0,"collections_config->story_tile_size_factor")},wt=function(t){return c(0,"collections_config->story_tile_shape")},yt=function(t){return c(0,"collections_config->tile_margin_right")},bt=function(t){return c(0,"collections_config->remove_borders")},xt=function(t){return c(0,"collections_config->show_popup_out_of_view")},St=function(t){return c(0,"collections_config->homepage_collection_ids")},jt=function(t){return c(0,"collections_config->set_tile_width_auto")},Tt=function(t){return c(0,"product_config->product_image_fit_type")},Ct=function(t){return c(0,"product_config->font_price_multiplicator")},Et=function(t){return c(0,"product_config->enable_bulk_atc")},At=function(t){return c(0,"product_config->currency_code_to_symbol_map")},Pt=function(t){return c(0,"product_config->add_currency_query_param_in_product_url")},kt=function(t){return c(0,"product_config->variant_selection_tile_height_factor")},It=function(t){return c(0,"product_config->product_tile_discount_badge_color")},$t=function(t){return c(0,"product_config->show_shop_now_button_only")},Lt=function(t){return c(0,"product_config->show_product_price")},Ot=function(t){return c(0,"product_page_popup_config->show_product_page_popup")},Nt=function(t){return c(0,"collection_page_popup_config->show_collection_page_popup")},Wt=function(t){return c(0,"collection_product_sync")},Dt=function(t){return c(0,"product_page_popup_config->show_product_page_popup_in_preview")},Rt=function(t){return c(0,"product_page_popup_config->ultra_minimize_on_scroll")},Mt=function(t){return c(0,"product_page_popup_config->show_popup_on_scroll")},zt=function(t){return c(0,"product_page_popup_config->popUpZindex")},Ft=function(t){return c(0,"product_page_popup_config->auto_close_on_open")},Vt=function(t){return c(0,"product_page_popup_config->show_order_by_date_events")},qt=function(t){return c(0,"product_page_popup_config->show_all_events")},Bt=function(t){return c(0,"spotlight_config->size_factor")},Ht=function(t){return c(0,"spotlight_config->show_once_to_user")},Ut=function(t){return c(0,"spotlight_config->enable_in_homepage")},Jt=function(t){return c(0,"spotlight_config->enable_page_id_set")},Xt=function(t){return c(0,"spotlight_config->enable_all_pages")},Qt=function(t){return c(0,"spotlight_config->ultraminimize_on_scroll")},Gt=function(t){return c(0,"spotlight_config->position")},Kt=function(t){return c(0,"spotlight_config->horizontal_padding")},Yt=function(t){return c(0,"spotlight_config->vertical_padding")},Zt=function(t){return c(0,"spotlight_config->enable_spotlight")},te=function(t){return c(0,"thumbnail_overlay_image_url")},ee=function(t){return c(0,"thumbnail_overlay_position")},ne=function(t){return c(0,"thumbnail_overlay_width_percent")},oe=function(t){return c(0,"ga_tracking_id")},re=function(t){return c(0,"ga_config->is_ga_4")},ie=function(t){return c(0,"ga_config->is_ga_3")},ae=function(t){return c(0,"ga4_tracking_id")},ce=function(t){return c(0,"ga_config->use_existing_ga_id")},se=function(t){return c(0,"show_whatmore_label_in_landscape_view")},ue=function(t){return c(0,"buy_now_config->show_buy_now_button")},le=function(t){return c(0,"buy_now_config->show_custom_buy_now_button")},de=function(t){return c(0,"buy_now_config->show_add_to_cart_button")},pe=function(t){return c(0,"buy_now_config->show_view_more_inplace_of_buy_now")},he=function(t){return c(0,"buy_now_config->view_more_button_text")},me=function(t){return c(0,"buy_now_config->enable_shopflo_checkout")},fe=function(t){return c(0,"stories_config->show_stories_in_landscape_mode")},ve=function(t){return c(0,"stories_config->stories_border_colors")},ge=function(t){return c(0,"stories_config->stories_title_font_factor")},_e=function(t){return c(0,"stories_config->stories_title_font_color")},we=function(t){return c(0,"stories_config->show_stories_in_mobile_mode")},ye=function(t){return c(0,"stories_config->story_tiles_spacing_factor")},be=function(t){return c(0,"stories_config->story_show_navigation_arrows")},xe=function(t){return c(0,"backend_config->use_cdn_cache_endpoint")},Se=function(t){const e=c(0,"backend_config->use_instance_endpoint_for_product_events"),n=t&&"string"===typeof t&&t.includes("STR");return e||n},je=function(t){return c(0,"cdn_config->fallback_cdn")},Te=function(t){return c(0,"theme_config->event_tile_border_width")},Ce=function(t){return c(0,"theme_config->event_tile_border_color")},Ee=function(t){return c(0,"theme_config->event_view_count_bg_color")},Ae=function(t){return c(0,"theme_config->event_view_count_text_color")},Pe=function(t){return c(0,"theme_config->event_tile_product_desc_border_width")},ke=function(t){return c(0,"product_config->show_product_swiper_initially")},Ie=function(t){return c(0,"product_config->show_cta_icon")},$e=function(t){return c(0,"product_config->get_price_and_currency_details_from_api")},Le=function(t){return c(0,"product_config->product_tile_bottom_margin")},Oe=function(t){return c(0,"product_config->show_first_product_tile")},Ne=function(t){return c(0,"product_config->shop_now_text")},We=function(t){return c(0,"event_tile_config->view_count_template")},De=function(t){return c(0,"event_tile_config->show_views")},Re=function(t){return c(0,"event_tile_config->animate_on_focus")},Me=function(t){return c(0,"event_tile_config->space_between_tiles")},ze=function(t){return c(0,"event_tile_config->gap_between_tiles")},Fe=function(t){return c(0,"event_tile_config->playback_icon_color")},Ve=function(t){return c(0,"event_tile_config->shadow_config")},qe=function(t){return c(0,"event_tile_config->show_product_thumbnail")},Be=function(t){return c(0,"event_tile_config->show_product_tile")},He=function(t){return c(0,"event_tile_config->show_atc_on_hover_premium")},Ue=function(t){return c(0,"event_tile_config->bg_config")},Je=function(t){return c(0,"event_tile_config->show_heading_in_single_tile_carousel")},Xe=function(t){return c(0,"event_tile_config->event_thumbnail_b_title_font_multiplier")},Qe=function(t){return c(0,"event_tile_config->event_thumbnail_b_price_font_multiplier")},Ge=function(t){return c(0,"brand_metadata->domain_context")},Ke=function(t){return c(0,"social_sharing->activate_link_sharing")},Ye=function(t){return c(0,"social_sharing->link_sharing_title")},Ze=function(t){return c(0,"social_sharing->link_sharing_text")},tn=function(t){return c(0,"social_sharing->show_share_text_below_button")},en=function(t){return c(0,"social_sharing->show_whatmore_branding")},nn=function(t){return c(0,"social_sharing->social_icons_size_multiplier")},on=function(t){return"73596731648"===t?.7:1},rn=function(t){return c(0,"social_sharing->whatsapp_icon_active")},an=function(t){const e=c(0,"social_sharing->whatsapp_icon_redirect_url");return"Free"===l(t)?null:e},cn=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text")},sn=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text_font_multiplier")},un=function(t){return c(0,"social_sharing->show_liked_text_below_button")},ln=function(t){return c(0,"social_sharing->like_fill_color")},dn=function(t){return c(0,"social_sharing->activate_likes")},pn=function(t){return c(0,"social_sharing->share_text_threshold_count")},hn=function(t){return c(0,"social_sharing->like_text_threshold_count")},mn=function(t){return c(0,"social_sharing->share_product_url_link")},fn=function(t){return c(0,"navigation_config->enable_browser_navigation_on_click")},vn=function(t){return"video-shopping"},gn=function(t){return c(0,"shopnow_config->brand_color_option_border_radius")},_n=function(t){return c(0,"shopnow_config->brand_color_option_border_color")},wn=function(t){return c(0,"shopnow_config->brand_divider_color")},yn=function(t){return c(0,"shopnow_config->is_discount_label_percent")},bn=function(t){return c(0,"shopnow_config->discount_percent_bg_color")},xn=function(t){return c(0,"shopnow_config->discount_text_color")},Sn=function(t){return c(0,"shopnow_config->discount_label_border_radius")},jn=function(t){return c(0,"event_tile_with_product_info->landscape_font_multiplier")},Tn=function(t){return c(0,"event_tile_with_product_info->portrait_font_multiplier")},Cn=function(t){return c(0,"event_tile_with_product_info->show_discount_label")},En=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image")},An=function(t){return c(0,"event_tile_with_product_info->show_product_info")},Pn=function(t){return c(0,"event_tile_with_product_info->show_atc_button_outside_tile")},kn=function(t){return c(0,"event_tile_with_product_info->show_atc_on_hover")},In=function(t){return c(0,"event_tile_with_product_info->atc_button_color")},$n=function(t){return c(0,"event_tile_with_product_info->atc_button_text_color")},Ln=function(t){return c(0,"event_tile_with_product_info->show_atc_button_template_feed")},On=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image_template_feed")},Nn=function(t){return c(0,"event_tile_with_product_info->show_price_info")},Wn=function(t){return c(0,"event_tile_product_card->navigate_to_product")},Dn=function(t){return c(0,"meta_pixel_events->video_click_event")},Rn=function(t){return c(0,"meta_pixel_events->video_atc_event")},Mn=function(t){return c(0,"meta_pixel_events->video_like_event")},zn=function(t){return c(0,"meta_pixel_events->video_share_event")},Fn=function(t){return c(0,"meta_pixel_events->video_product_tile_click_event")},Vn=function(t){return c(0,"meta_pixel_events->video_watch_event")},qn=function(t){return c(0,"price_config->show_price_before_mrp")},Bn=function(t){return c(0,"price_config->price_text_color")},Hn=function(t){return c(0,"price_config->mrp_text_color")},Un=function(t){return c(0,"price_config->font_weight")},Jn=function(t){return c(0,"product_config->product_tile_custom_text")},Xn=function(t){return c(0,"product_config->product_tile_custom_text_color")},Qn=function(t){return c(0,"product_config->product_tile_shopnow_custom_font_style")},Gn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text_color")},Kn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text")},Yn=function(t){return c(0,"preview_config->product_tile_custom_text")},Zn=function(t){return c(0,"preview_config->video_player_bg_color")},to=function(t){return c(0,"preview_config->video_player_height")},eo=function(t){return c(0,"preview_config->event_tile_show_thumbnail_image")},no=function(t){return c(0,"carousel_config->width_multiplier")},oo=function(t){return c(0,"carousel_config->show_navigation_arrows_in_portrait")},ro=function(t){return c(0,"carousel_config->is_event_loop")},io=function(t){return 0},ao=function(t){return c(0,"carousel_config->play_partially_visible_slides_in_portrait")},co=function(t){return c(0,"video_player_config->pause_videos_after_delay_landscape")},so=function(t){return c(0,"video_player_config->video_player_bg_color")},uo=function(t){return c(0,"video_player_config->video_player_height")},lo=function(t){return c(0,"video_player_config->thumbnail_video_player_height")},po=function(t){return c(0,"video_player_config->play_video_on_hover")},ho=function(t){return c(0,"video_player_config->set_height_as_auto")},mo=function(t){return c(0,"show_homepage_videos_in_pdp")},fo=function(t){return c(0,"brand_s3_directory")},vo=function(t){return c(0,"quiz_config->is_active")},go=function(t){return c(0,"quiz_config->swipe_number_show_question")},_o=function(t){return c(0,"quiz_config->lead_gen_coupon_code")},wo=function(t){return c(0,"quiz_config->lead_gen_sub_heading")},yo=function(t){return c(0,"recommendation_config->show_recommended_events")},bo=function(t){return c(0,"recommendation_config->show_collection_events")},xo=function(t){return c(0,"event_tile_config->show_product_tile_thumbnail_template_a")},So=function(t){return c(0,"video_player_config->keep_videos_muted")},jo=function(t){return c(0,"brand_ui_theme")},To=function(t){return c(0,"brand_video_view_count")},Co=function(t){return c(0,"brand_theme_color")},Eo=function(t){return c(0,"brand_theme_font")},Ao=function(t){return c(0,"brand_text_color")},Po=function(t){return c(0,"homepage_carousel->carousel_title_font")},ko=function(t){return c(0,"product_info_text_color")},Io=function(t){return c(0,"product_config->show_product_type")},$o=function(t){return c(0,"oos_config->show_oos_videos")},Lo=function(t){return c(0,"event_config->show_only_tagged_events")},Oo=function(t){return c(0,"oos_config->show_oos_product_tile")},No=function(t){return c(0,"oos_config->show_sold_out_label_oos")},Wo=function(t){return c(0,"video_player_config->hide_mute_unmute_button")}},5568:function(t,e,n){var o=n(1477);function r(){return[window.innerHeight,window.innerWidth]}e.A=function(){var[t,e]=r();const[n,i]=(0,o.useState)([t>e?"portrait":"landscape",t,e]);return(0,o.useLayoutEffect)(()=>{function t(){var[t,e]=r();i(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}},[]),n}},5660:function(t,e,n){var o=n(1477);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:n="0px",threshold:r=0}={})=>{const[i,a]=(0,o.useState)(!1),[c,s]=(0,o.useState)(null),u=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const o=new IntersectionObserver((e,n)=>{e.forEach(e=>{s(e),e.isIntersecting?(a(!0),t&&n.disconnect()):t||a(!1)})},{root:e,rootMargin:n,threshold:r});return u.current&&o.observe(u.current),()=>{o.disconnect()}},[t,e,n,r]),[u,i,c]}},5677:function(t,e,n){n.d(e,{A:function(){return p}});var o=n(1214),r=n(1477);function i(t){if(!t)return{};var e={};return Array.from(t.attributes).forEach(t=>{var n;e[t.name]=(n=t.value,isNaN(+n)?n:+n)}),e}function a(...t){try{var e;const n=document.getElementById("whatmorePreviewMode");if(!n)return null;const o=null===t||void 0===t?void 0:t[0];if(!o)return!0;let r={};return r=o.includes("function")?{}:i(n),null!==(e=r)&&void 0!==e&&e[o]?r[o]:null}catch(n){return null}}var c=function({disablePreview:t=!1}={}){var e,n,o=t?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,i=t?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[c,s]=[o,i];const[u,l]=(0,r.useState)([c>s?"portrait":"landscape",c,s]);return(0,r.useLayoutEffect)(()=>{function e(){var e,n,o=t?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,r=t?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[i,c]=[o,r];l(i>c?["portrait",i,c]:["landscape",i,c])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}},[]),u},s=(n(5547),n(4234));const u=(0,o.Xd)("whatmoreShopId");(0,o.Xd)("whatmoreLoggingActive");function l(t){const e="true"==localStorage.getItem("whatmoreActivateLogs");if("51273072796"==u||"64967540952"==u)return[document.documentElement.clientHeight,document.documentElement.clientWidth];let n=null;if(t){const e=document.getElementById(t);e&&(n=e.closest(".whatmore-base"))}n||(n=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="carousel"])'),n||(n=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="collection"])')));let o=n;for(;o&&o!==document;)if(o=o.parentElement,o&&!o.classList.contains("whatmore-base")){e&&console.log("currentElement : ",o);break}let r=window.innerWidth;if(o){const t=o.getBoundingClientRect().width;if(e&&console.log("parentWidth : ",t),t>0){e&&console.log("good case");const n=window.getComputedStyle(o);r=t-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0)}o&&0==t&&(o.style.setProperty("width","100%","important"),e&&console.log("Set currElement width to 100% !important"))}return e&&console.log("final width : ",r),[window.innerHeight,r]}var d=function(){const{whatmoreRootId:t}=(0,r.useContext)(s.AppContext)||{};var[e,n]=l(t);const[o,i]=(0,r.useState)([e>n?"portrait":"landscape",e,n]);return(0,r.useLayoutEffect)(()=>{function e(){var[e,n]=l(t);i(e>n?["portrait",e,n]:["landscape",e,n])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}},[]),o};var p=function(t){var e;const n=(0,o.Xd)("isWhatmorePreviewMode"),r=d(),i=c({disablePreview:null!==(e=null===t||void 0===t?void 0:t.disablePreview)&&void 0!==e&&e});return(0,o.Xd)("whatmoreLoggingActive")&&console.log("mode : ",r),n?i:r}},5968:function(t,e,n){n.d(e,{PG:function(){return l},kz:function(){return d},N$:function(){return p},UM:function(){return m},DG:function(){return h}});var o=n(5547),r=n(7939),i=n(7156);function a(t,e,n={},o){var r;const a=l[t];if(!a)return;const c=a.isActionEnabled(),s=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[a.customAction];(c||s)&&"function"==typeof fbq&&(async()=>{const o={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===i.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,o),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,o)})},500)})()}var c=n(6694),s=n(9128),u=n(9383);const l={[i.O.EVENT_VIEW]:{isActionEnabled:o.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[i.O.VIDEO_PLAYBACK]:{isActionEnabled:o.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[i.O.VIDEO_LIKED]:{isActionEnabled:o.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[i.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:o.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[i.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[i.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}){var u,d,p,h;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}),t in l)&&(a(t,null!==(u=null===i||void 0===i?void 0:i[1])&&void 0!==u?u:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(d=null===i||void 0===i||null===(p=i[1])||void 0===p?void 0:p.title)&&void 0!==d?d:null===i||void 0===i||null===(h=i[0])||void 0===h?void 0:h.title}))}function p({widgetSourceDetails:t,event:e,product:n,userInteractionMetadata:o}){var r;if(!e)return;(0,u.lB)(e);const a=n?[n]:null!==(r=e.products)&&void 0!==r?r:[];d({userInteractionType:i.O.EVENT_VIEW,userInteractionMetadata:o,widgetSourceDetails:t,event:e,productList:a,ctaList:e.cta}),d({userInteractionType:i.O.PRODUCT_CTA_VIEW,userInteractionMetadata:o,widgetSourceDetails:t,event:e,productList:a,ctaList:e.cta})}function h({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:u}){var d,p,h,m;(0,s.i)(o)&&((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:u}),t in l&&(a(t,null!==(d=null===i||void 0===i?void 0:i[1])&&void 0!==d?d:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(p=null===i||void 0===i||null===(h=i[1])||void 0===h?void 0:h.title)&&void 0!==p?p:null===i||void 0===i||null===(m=i[0])||void 0===m?void 0:m.title})))}function m({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}){var s,u,d;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}),t in l)&&(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(s=null===i||void 0===i||null===(u=i[1])||void 0===u?void 0:u.title)&&void 0!==s?s:null===i||void 0===i||null===(d=i[0])||void 0===d?void 0:d.title})}},6126:function(t,e,n){n.d(e,{A:function(){return L}});var o=n(1477),r=n(5677),i=n(1214),a=(n(564),n(5277),n(4548),n(6376),n(2446),n(878),n(621),n(6374)),c=n(4234),s=(n(897),n(3358)),u=n(6884),l=n(5547),d=n(5660),p=n(4475),h=n(4018),m=n(6532),f=n(4338),v=n(7900),g=n(481);var _=function(t){var e;const[n]=(0,i.QN)("whatmoreShopId"),r=t.isMuted,{whatmoreWidgetSourceDetails:a}=(0,o.useContext)(c.AppContext),s=a.templateType,u=(0,v.l2)(s),d=null!==(e=t.iconSize)&&void 0!==e?e:30;function p(e){t.onToggle(e)}return!0===(0,l.GZ2)(n)?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:r?(0,g.jsx)(f.A,{sx:{color:"white",fontSize:u?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{p(t)}}):(0,g.jsx)(m.A,{sx:{color:"white",fontSize:u?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{p(t)}})})},w=n(6720),y=n(3168),b=n(7372),x=n(6431),S=n(2058),j=n(428),T=n(5968),C=n(7156),E=n(221),A=n(5405),P=n(6380),k=n(8762);function I(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,a=t.activeEventIndex,c=t.setActiveEventIndex,d=(0,i.Xd)("whatmoreShopId"),p="portrait"===t.mode;function h(o){o.stopPropagation(),n(!e),(0,y.MN)()&&((0,P._)()?(0,b.bo)():(0,k.bi)()),t.onMuteToggle()}const m=t.event;return(0,g.jsxs)("div",{style:{position:(0,l.D7t)(d)?"absolute":"relative",top:(0,l.D7t)(d)?0:"",zIndex:1,bottom:(0,l.D7t)(d)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:[(0,g.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",position:"relative",height:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:["video"==m.event_type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{style:{width:"100%"},onClick:t=>{(0,l.OC6)(d)||h(t)}}),(0,l.qLA)(d)&&(0,g.jsx)(_,{isMuted:e,onToggle:t=>{h(t)}})]}),r.length>1&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{classname:"banner-navigation-overlay-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(0===a?r.length-1:a-1)},children:(0,g.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,g.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,g.jsx)(s.A,{})})})}),(0,g.jsx)("div",{classname:"banner-navigation-overlay-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(a===r.length-1?0:a+1)},children:(0,g.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,g.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,g.jsx)(u.A,{})})})}),(0,l.JiT)(d)&&(0,g.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map((t,e)=>{const n=e===a;return(0,g.jsx)("button",{onClick:t=>{t.stopPropagation(),c(e)},style:{width:n?"25px":p?"12px":"14px",height:p?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,l.z1s)(d):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)})})]})]}),!(0,l.OC6)(d)&&(0,g.jsx)("div",{style:{width:"100%",height:"100%"},onClick:h})]})}var $=function(t){var e;const[n,a,s]=(0,r.A)(),[u,m]=(0,o.useState)(!0),f=(0,i.Xd)("whatmoreVideoTileSize"),[v,_,y]=(0,d.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:b,whatmoreWidgetIdentity:P}=(0,o.useContext)(c.AppContext),k=(0,i.Xd)("whatmoreShopId"),$=t.events,L=t.activeEventIndex,O=t.setActiveEventIndex,N=$[L],W=(0,h.lP)(N),D=(0,h.cb)(N),R=(0,h.tQ)(N,n);if((0,o.useEffect)(()=>{j.Sn.forEach(t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;t&&(t.style.minHeight="0px")})},[]),"portrait"===n&&!W)return(0,g.jsx)(g.Fragment,{});if("landscape"===n&&!D)return(0,g.jsx)(g.Fragment,{});const M=(0,p.s)("portrait"===n?W:D),z=f/100*(0,l.igk)(k),F=f/100*(0,l.Y_l)(k),V=(0,x.i)((0,l.gcj)(k),P,"portrait"===n),q=null!==V&&void 0!==V?V:"portrait"===n?(0,l.G0Q)(k):(0,l.ga9)(k),B="portrait"===n?s*z:s*F,H=(0,l.D7t)(k),U=H?s*q:B*q,J=(N.cta||[]).filter(t=>(null===t||void 0===t?void 0:t.cta_link)&&!/whatmore\.ai/i.test(t.cta_link)).sort((t,e)=>{var n,o;return(null!==(n=t.cta_id)&&void 0!==n?n:0)-(null!==(o=e.cta_id)&&void 0!==o?o:0)})[0]||null,X=null!=(null===J||void 0===J?void 0:J.cta_link);return(0,g.jsxs)("div",{ref:v,onClick:()=>{(0,T.kz)({userInteractionType:C.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:b,event:$[L]}),(0,l.OC6)(k)&&null!==J&&void 0!==J&&J.cta_link&&window.open(J.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:H?"100%":B,height:U,borderWidth:(0,l.YcK)(k),borderColor:(0,l.Fwt)(k),overflow:"hidden",cursor:"pointer"},children:["28273541192"===k?(0,g.jsx)(A.A,{height:"100%",width:"100%",url:M,isPlaying:_,event:{...N,poster_image:R},isVideoMuted:!_||u,source:E.N.BANNER}):(0,g.jsx)(w.A,{height:"100%",width:"100%",url:M,isPlaying:_,event:{...N,poster_image:R},isVideoMuted:!_||u,setDuration:t.setDuration,source:E.N.BANNER}),(0,g.jsx)(I,{isCTAPresent:X,events:$,activeEventIndex:L,setActiveEventIndex:O,event:N,mode:n,onMuteToggle:()=>m(!u),initialMuteState:u}),(0,l.XYM)(k)&&(null===N||void 0===N||null===(e=N.cta)||void 0===e?void 0:e.length)>1&&J&&(0,g.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(S.A,{isBanner:!0,event:N,cta:J,fontFactor:.6})})]})};var L=function(t){const{whatmoreRootId:e}=(0,o.useContext)(c.AppContext),[n,s]=(0,o.useState)(0),u=t.events,[l,d]=(0,o.useState)(-1),[p]=(0,i.QN)("whatmoreShopId"),[h]=(0,r.A)();let m;return(0,o.useEffect)(()=>{m&&clearInterval(m);const t="video"===u[n].event_type,e=t?1e3*l:6e3;return t?-1!=l&&(m=setInterval(()=>{s(t=>t===u.length-1?0:t+1)},e)):m=setInterval(()=>{s(t=>t===u.length-1?0:t+1)},e),()=>{clearInterval(m)}},[l,n]),(0,g.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===p&&"portrait"==h?"200px":void 0},children:(0,g.jsx)(a.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,g.jsx)($,{activeEventIndex:n,events:u,setActiveEventIndex:s,setDuration:d})})})}},6267:function(){},6374:function(t,e,n){n.d(e,{h:function(){return o}});const o=(0,n(1477).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},6376:function(){},6380:function(t,e,n){function o(){const t=navigator.userAgent||navigator.vendor||window.opera;if(!/iPhone/.test(t))return!1;const{width:e,height:n}=window.screen;return[{width:320,height:480},{width:320,height:568},{width:375,height:667},{width:414,height:736},{width:375,height:812},{width:414,height:896},{width:360,height:780},{width:390,height:844},{width:428,height:926},{width:393,height:852},{width:430,height:932},{width:402,height:874},{width:440,height:956},{width:402,height:874},{width:440,height:956}].some(t=>t.width===e&&t.height===n||t.width===n&&t.height===e)}n.d(e,{_:function(){return o}})},6441:function(t,e,n){n.d(e,{U:function(){return r}});var o=n(1214);function r(){const t=(0,o.Xd)("whatmoreShopId");return!!(void 0!=window.Shopify||window.location.href.includes("shopify")||window.location.href.includes("localhost:")||window.location.href.includes("dashboard.whatmore.live")||window.location.href.includes("app.whatmore.live")||window.location.href.includes("consumer.whatmore.live")||window.location.href.includes("trycloudflare.com"))&&!t.includes("STR")}},6720:function(t,e,n){n.d(e,{A:function(){return b}});var o=n(1477),r=n(9128),i=n(9795),a=n(3477),c=n(9258),s=n(4475),u=n(481);var l=function(t){var e,n,r;const[i,a]=(0,o.useState)(!1),l=o.useRef(0),d=(0,o.useRef)(null),p=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=(0,s.s)((null===t||void 0===t?void 0:t.posterImage)||t.url),m=null!==(n=t.height)&&void 0!==n?n:"100%",f=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)(()=>{l.current=0;const t=setInterval(()=>{l.current=l.current+.03,d.current&&p(l.current,5),l.current>=5&&(l.current=0)},30);return()=>{clearInterval(t)}},[t.isPlaying]),(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:f,height:"100%",overflow:"hidden"},children:[(0,u.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,u.jsx)("img",{ref:d,src:(0,s.s)(t.url),style:{objectFit:"cover",height:"100%",width:f,backgroundColor:"white"},alt:"image player",onLoad:()=>{a(!0)}})}),!i&&h?(0,u.jsx)("img",{src:h,style:{height:"100%",width:f,objectFit:"cover"},alt:"Loading preview"}):i?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)(c.A,{width:f,height:m})]})},d=n(1214),p=n(7372),h=n(221),m=n(5547),f=n(4040),v=(n(5497),n(4234)),g=n(4018);function _(t){var e,n,r;const[a,s]=(0,i.A)(),[l,_]=(0,o.useState)(o.useRef()),w=t.posterImage,[y,b]=(0,d.QN)("whatmoreVideoPlayerPoolBlessed"),[x,S]=(0,o.useState)(!0),[j,T]=(0,o.useState)(!1),C=t.timeUpdateCallback,{whatmoreIsPreviewMode:E}=(0,o.useContext)(v.AppContext),A=null!==(e=t.isVideoMuted)&&void 0!==e?e:a,P=null!==(n=t.height)&&void 0!==n?n:"100%",k=null!==(r=t.width)&&void 0!==r?r:"100%",I=(0,d.Xd)("whatmoreShopId");(0,o.useLayoutEffect)(()=>{if(l.current&&y)if(0==l.current.children.length){const n=(0,g.Cr)(t.url);(e=(0,p.Z4)(l.current,t.url,A||!t.isPlaying,t.isPlaying,n)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",()=>{S(!1)}),C&&e.addEventListener("timeupdate",t=>{if(!e)return;const n=e.currentTime,o=e.duration;C(Number.isFinite(n)?n:0,Number.isFinite(o)?o:0)})}else{var e;(e=l.current.children[0]).muted=A||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,m.fwF)(I)&&t.source==h.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout(()=>{!t.isPlaying&&e.pause()},(0,f.n)()?1900:800)))}},[A,t.isPlaying,y,x]),(0,o.useLayoutEffect)(()=>()=>{l.current&&0!=l.current.children.length&&(0,p.rq)(l.current)},[]);const $=(0,d.Xd)("whatmoreLandingLocationType");return(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:k,height:P,overflow:"hidden",backgroundColor:E?(0,m.KVz)(I):(0,m.QSX)(I),filter:t.showQuestion?"blur(24px)":""},children:[(0,u.jsx)("div",{ref:l,style:{width:x?"0px":"100%",height:x?"0px":E?(0,m.tbf)(I):(0,m.CBm)(I)&&"product"==$?"auto":(0,m.R7q)(I)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==I&&x&&j?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,u.jsx)("img",{src:w,style:{height:"100%",width:k,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):x&&!j&&(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,u.jsx)("img",{src:w,height:"100%",width:k,onLoad:()=>{T(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,u.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,u.jsx)(c.A,{width:k,height:P,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var w=function(t){var e;return(0,u.jsx)(_,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})};function y(t){var e,n,r;const[a,l]=(0,i.A)(),[p,_]=(0,o.useState)(!1),[w,y]=(0,o.useState)(!1),b=t.setDuration,x=(0,o.useRef)(null),S=(0,d.Xd)("whatmoreShopId"),j=t.timeUpdateCallback,{whatmoreIsPreviewMode:T}=(0,o.useContext)(v.AppContext),C=(0,d.Xd)("whatmoreLandingLocationType"),E=null!==(e=t.height)&&void 0!==e?e:"100%",A=null!==(n=t.width)&&void 0!==n?n:"100%",P=null!==(r=t.isVideoMuted)&&void 0!==r?r:a,k=null===t||void 0===t?void 0:t.posterImage;return(0,o.useEffect)(()=>{const e=x.current;if(e&&(t.isPlaying?e.paused&&e.play():e.pause(),j)){const t=()=>{if(!x.current)return;const t=x.current.currentTime,e=x.current.duration;j(Number.isFinite(t)?t:0,Number.isFinite(e)?e:0)};return e.addEventListener("timeupdate",t),()=>e.removeEventListener("timeupdate",t)}},[t.isPlaying,t.url]),(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:A,height:E,overflow:"hidden",backgroundColor:T?(0,m.KVz)(S):(0,m.QSX)(S),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,u.jsx)("div",{style:{width:p?"100%":"0px",height:p?T?(0,m.tbf)(S):(0,m.CBm)(S)&&"product"==C?"auto":(0,m.R7q)(S):"0px"},children:(0,u.jsxs)("video",{ref:x,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!P&&t.isPlaying),onLoadedData:()=>{_(!0),t.isPlaying&&x.current&&x.current.play(),(0,m.fwF)(S)&&t.source==h.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&x.current&&x.current.play(),setTimeout(()=>{!t.isPlaying&&x.current&&x.current.pause()},(0,f.n)()?1900:800))},onLoadedMetadata:()=>{x.current&&b&&b(x.current.duration)},poster:k,children:[(0,u.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,u.jsx)("source",{src:(0,s.s)(t.url),type:"video/mp4"}),(0,u.jsx)("source",{src:(0,g.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==S&&!p&&w?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,u.jsx)("img",{src:k,style:{height:"100%",width:A,objectFit:"cover",animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!p&&!w&&(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,u.jsx)("img",{src:k,height:"100%",width:A,onLoad:()=>{y(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,u.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,u.jsx)(c.A,{width:A,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var b=function(t){var e,n,i,c,s;return(0,r.I)(t.event)?(0,u.jsx)(l,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image}):1==(0,o.useContext)(a.p).isIOS&&1==(0,d.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,u.jsx)(w,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(c=t.isVideoMuted)&&void 0!==c?c:null,source:t.source,posterImage:null===(s=t.event)||void 0===s?void 0:s.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,u.jsx)(y,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(n=t.event)||void 0===n?void 0:n.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},6775:function(t,e,n){var o=n(1214),r=n(5677),i=n(3391),a=n(5547);e.A=function(t){const[e,n,c]=(0,r.A)(),[s]=(0,o.QN)("whatmoreLandscapePadding"),[u]=(0,o.QN)("whatmoreShopId"),[l]=(0,o.QN)("whatmoreVideoTileSize"),[d]=(0,o.QN)("whatmoreVideoTileSizePortrait"),p=c>n,h=c>=481,m=null!==t&&void 0!==t&&t.isEmbed?60:"portrait"==e?d:l,f=!("portrait"!=e||!h),v=m/100*1.3*.5,g=m/100;var _=Math.min(c,n),[w,y,b,x]=[.6*_*(16/9),.6*_,1.4,0];function S(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(p){const t=y*v,e=w*v;[w,y,b,x]=[e,t,(c-2*s-2*(0,a.$du)(u))/(1.1*t),s],j[i._]=i.$S,j[i.dl]=i.nN}else if(f){var T=.8*y,C=.8*w;"portrait"==e?(T*=g,C*=g,[w,y,b,x]=[C,T,S(c/(1.2*T)),0],j[i._]=i.vF,j[i.dl]=i.tn):([w,y,b,x]=[C,T,(c-2*s)/(1.1*T),s],j[i._]=i.vF,j[i.dl]=i.nN)}else{T=y,C=w;"portrait"==e?(T=T*g*.9,C=C*g*.9,[w,y,b,x]=[C,T,S(c/(1.15*T)),0],j[i._]=i.b4,j[i.dl]=i.tn):(T=.7*y,C=.7*w,[w,y,b,x]=[C,T,(c-2*s)/(1.1*T),s],j[i._]=i.b4,j[i.dl]=i.nN)}return[w,y,b,x,j]}},6984:function(t,e,n){function o(t,e){let n=0;let o=new MutationObserver(function(){document.querySelector("."+t)?(e(),o.disconnect()):0==n&&(n=1,setTimeout(()=>{e(),o.disconnect()},8e3))});o.observe(document.body,{childList:!0,subtree:!0})}n.d(e,{H:function(){return o}})},7066:function(t,e,n){n.d(e,{E2:function(){return r},YU:function(){return o}});const o=function(t,e){return t+e.toString(16)+e.toString(16)},r=function(t){return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16)]},i=(t,e,n,o)=>{let r,a,c,s,u,l,d,p=Math.round,h="string"==typeof n;return"number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||n&&!h?null:(d=e.length>9,d=h?n.length>9||"c"==n&&!d:d,u=i.pSBCr(e),s=t<0,l=n&&"c"!=n?i.pSBCr(n):s?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},s=1-(t=s?-1*t:t),u&&l?(o?(r=p(s*u.r+t*l.r),a=p(s*u.g+t*l.g),c=p(s*u.b+t*l.b)):(r=p((s*u.r**2+t*l.r**2)**.5),a=p((s*u.g**2+t*l.g**2)**.5),c=p((s*u.b**2+t*l.b**2)**.5)),h=u.a,l=l.a,u=h>=0||l>=0,h=u?h<0?l:l<0?h:h*s+l*t:0,d?"rgb"+(u?"a(":"(")+r+","+a+","+c+(u?","+p(1e3*h)/1e3:"")+")":"#"+(4294967296+16777216*r+65536*a+256*c+(u?p(255*h):0)).toString(16).slice(1,u?void 0:-2)):null)};i.pSBCr=t=>{const e=parseInt;let n=t.length,o={};if(n>9){const[r,i,a,c]=t=t.split(",");if(n=t.length,n<3||n>4)return null;o.r=e("a"==r[3]?r.slice(5):r.slice(4)),o.g=e(i),o.b=e(a),o.a=c?parseFloat(c):-1}else{if(8==n||6==n||n<4)return null;n<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(n>4?t[4]+t[4]:"")),t=e(t.slice(1),16),9==n||5==n?(o.r=t>>24&255,o.g=t>>16&255,o.b=t>>8&255,o.a=Math.round((255&t)/.255)/1e3):(o.r=t>>16,o.g=t>>8&255,o.b=255&t,o.a=-1)}return o},e.Ay=i},7372:function(t,e,n){n.d(e,{F5:function(){return r},Pc:function(){return a},Z4:function(){return c},bo:function(){return s},rq:function(){return u}});var o=n(1214);const r=6;function i(){const t=(0,o.Xd)("whatmoreVideoPlayerPool");var e=document.createElement("video");return e.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),e.setAttribute("width","100%"),e.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),e.muted=!0,e.setAttribute("height","100%"),e.setAttribute("preload","auto"),e.setAttribute("loop",""),e.setAttribute("playsinline",""),e.setAttribute("x-webkit-airplay","allow"),e.controls=!1,t.appendChild(e),e}const a=function(t){for(let e=1;e<=t;e++)i();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const c=function(t,e,n,r,i){(0,o.Xd)("whatmoreVideoPlayerPool");const a=function(t,e,n){var r=(i=(0,o.Xd)("whatmoreVideoPlayerPool").children,i.length>0?i[0]:null);var i;if(!r)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return t&&(t.includes(".m3u8")||t.includes("m3u8"))?r.canPlayType("application/vnd.apple.mpegurl")&&r.setAttribute("src",t):r.setAttribute("src",t),r.muted=e,n||r.pause(),r}(e,n,r);return t.innerHTML="",t.appendChild(a),a},s=async function(){const t=(0,o.Xd)("whatmoreVideoPlayerPool");(0,o.Xd)("whatmoreVideoPlayerPoolInitiated")||a(r);var e=[];for(let o=0;o<t.children.length;o++){let r=t.children[o];r.muted=!0,r.setAttribute("playsinline","true"),r.setAttribute("webkit-playsinline","true"),r.setAttribute("playsInline","true");var n=r.play().then(t=>(r.pause(),t)).catch(t=>(console.warn("Whatmore :: Blessing failed for video element, retrying...",t),r.volume=0,r.play().then(()=>{r.pause()}).catch(t=>{throw console.error("Whatmore :: Retry blessing failed",t),t})));e.push(n)}await Promise.all(e).then(t=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)}).catch(t=>{console.error("Whatmore :: Error while blessing "+t.message),(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)})},u=function(t){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),n=t.children[0];n.muted=!0,!n.paused&&n.pause(),e.appendChild(n)}},7462:function(t,e,n){var o=n(481);e.A=function(t){var e,n,r;const i=null!==(e=t.height)&&void 0!==e?e:"100%",a=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(r=t.borderRadius)&&void 0!==r?r:"10px";return(0,o.jsx)("div",{style:{height:i,width:i,borderRadius:c,overflow:"hidden",minHeight:i,minWidth:a,maxHeight:i,maxWidth:a},children:(0,o.jsx)("div",{style:{minHeight:i,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},7777:function(t,e,n){n.d(e,{A:function(){return j}});var o=n(4362),r=n(1477),i=n(9252),a=n(5405),c=n(3391),s=n(1214),u=n(6775);var l=function(t){const[e,n,o,r,i]=(0,u.A)({isEmbed:!0}),[a]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),d=i[c.dl]===c.nN?l/100:a/100*1.2;return[e*d,n*d,i]},d=n(1395),p=n.n(d),h=n(9611),m=(n(6376),n(2446),n(5547)),f=n(481);var v=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,f.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,f.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,f.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]}),g=n(2169);const _={67841720509:["button.add-to-cart","button[name='add']","#gokwik-buy-now",".shopify-payment-button",".product-dynamic-payment-button"]},w=["#pageheader","page-header",".navigation__tier-1-container",".navigation__tier-1"];function y(t){if(!t)return!1;const e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&0!==parseFloat(e.opacity||"1")&&(t.offsetWidth>0&&t.offsetHeight>0)}function b({whatmoreShopId:t,baseBottom:e,widgetWidth:n,widgetHeight:o,side:i,horizontalPadding:a}){const c=_[t],[s,u]=(0,r.useState)(e),l=(0,r.useRef)({});return l.current={baseBottom:e,widgetWidth:n,widgetHeight:o,side:i,horizontalPadding:a},(0,r.useEffect)(()=>{if(!c||"undefined"===typeof window)return void u(e);let t=null;const n=()=>{t=null;const{baseBottom:e,widgetWidth:n,widgetHeight:o,side:r,horizontalPadding:i}=l.current,a=window.innerWidth,s=window.innerHeight,d="left"===r?i:a-i-n,p=d+n,h=function(t,e){let n=0;for(const o of w)for(const r of document.querySelectorAll(o)){if(!y(r))continue;const o=r.getBoundingClientRect();o.top>.3*e||o.width<.5*t||o.bottom<=0||o.bottom>=.6*e||o.bottom>n&&(n=o.bottom)}return n}(a,s)+8,m=s-e-o,f=s-e;let v,g=null,_=!1;for(const t of c){const e=document.querySelectorAll(t);for(const t of e){if(!y(t))continue;const e=t.getBoundingClientRect();e.width<=0||e.height<=0||(e.right<=d||e.left>=p||e.bottom<=0||e.top>=s||(g=null===g?e.top:Math.min(g,e.top),e.top<f&&e.bottom>m&&(_=!0)))}}v=_&&null!==g&&g-12-o>=h?Math.max(e,s-g+12):e,u(t=>Math.round(t)===Math.round(v)?t:v)},o=()=>{null===t&&(t=window.requestAnimationFrame(n))};o(),window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o);const r=window.setInterval(o,300);return()=>{null!==t&&window.cancelAnimationFrame(t),window.removeEventListener("scroll",o),window.removeEventListener("resize",o),window.clearInterval(r)}},[c,e]),c?s:e}const x=["65972830359"];function S(){return 8e3+Math.floor(7001*Math.random())}var j=function(t){var e;const n=r.useRef(null);var[u,d,_]=l();(0,s.Xd)("whatmoreUITheme");const[w]=(0,s.QN)("whatmorePrimaryFont"),[y]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[j]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[T]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[C]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[A]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),k=(0,s.Xd)("whatmoreShopId"),I=(0,s.Xd)("isWhatmorePreviewMode");var $=j,L=T,O=C;_[c.dl]===c.nN&&($=E,L=A,O=P);const[N,W]=(0,r.useState)(["initial",window.pageYOffset]),[D,R]=(0,r.useState)(!1),[M]=(0,r.useState)(S),z=null!==(e=t.isSpotlight)&&void 0!==e&&e,F=_[c.dl]===c.nN?1.3*(0,m.O86)(k):1.1*(0,m.O86)(k),V=z?F:1.1;u*=V,d*=V;const q=z?(0,m.LrK)(k):$,B=z?(0,m._2D)(k):(0,m.GSq)(k),[H,U]=(0,r.useState)(!z&&(0,m.n8Q)(k)),J=!z&&(0,m.YE3)(k);function X(t,e){W(t),t[1]<=500?R(!1):e!=D&&(R(e),U(!1))}(0,r.useEffect)(()=>{if(!!(H&&!B))return;const e=requestAnimationFrame(()=>{var e;const o=n.current;if(!o)return;("function"===typeof o.checkVisibility?o.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):o.offsetWidth>0||o.offsetHeight>0)&&(null===(e=t.onImpression)||void 0===e||e.call(t))});return()=>cancelAnimationFrame(e)},[H]),(0,r.useEffect)(()=>{let t=window.pageYOffset,e=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-t)<500||(X([n>t?"scrolled-down":"scrolled-up",n],!0),t=n>0?n:0),e=!1},o=()=>{e||(window.requestAnimationFrame(n),e=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[N]),(0,o.j)({ref:n,handler:()=>{X(["scrolled-up",N[1]],!0)}});const Q=t.event,G=t.inVideoClick,K=t.closeClick,Y=.25*d,Z=.5*d,tt=x.includes(k),et=Math.max(10,.075*d),nt=1.2*et,ot=(M/1e3).toFixed(1).replace(/\.0$/,"")+"K",rt=.6*d,it="20px",at=(0,m.GvQ)(k),ct=Number(z?(0,m.pUQ)(k):O)||0,st=!(H&&!B)&&D&&B,ut=b({whatmoreShopId:k,baseBottom:ct,widgetWidth:st?rt:d,widgetHeight:st?rt*(16/9):u,side:q,horizontalPadding:st?16:Number(z?(0,m.D2A)(k):L)||0});var lt=!1,dt=0,pt=0;function ht(t){lt=t}const mt=(0,f.jsx)("div",{className:"73490825529"==k?"whatmore-root wht-popup":"wht-popup",children:H&&!B?(0,f.jsx)(f.Fragment,{}):D&&B?(0,f.jsx)("div",{style:"left"===q?{left:"16px",bottom:ut+"px",position:"fixed",zIndex:at}:{right:"16px",bottom:ut+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{onClick:()=>{X(["initial",N[1]],!1)},style:{width:rt+"px",height:rt*(16/9)+"px",borderRadius:it,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===q?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",borderRadius:it,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,f.jsx)(a.A,{url:Q.thumbnail_image,isPlaying:!1,event:Q})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),K()},children:(0,f.jsx)(v,{size:.8*Y})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(h.A,{sx:{color:"white",fontSize:2*Y+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:I?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var n,o;n=e.x,o=e.y,dt=n,pt=o},onDrag:(t,e)=>{ht(!0)},onStop:(t,e)=>{lt&&(Math.abs(e.x-dt)>5||Math.abs(e.y-pt)>5)?ht(!1):(J&&K(t),G(Q))},children:(0,f.jsx)("div",{ref:n,style:"left"===q?{left:z?(0,m.D2A)(k)+"px":L+"px",bottom:ut+"px",position:"fixed",zIndex:at}:{right:z?(0,m.D2A)(k)+"px":L+"px",bottom:ut+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==k?u+"px":d+"px",height:t.isSpotlight&&"60122562760"==k?d+"px":u+"px",borderRadius:it,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===q?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:it,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==k?16/9:9/16},children:(0,f.jsx)(a.A,{url:Q.thumbnail_image,isMuted:!0,isPlaying:!0,event:Q})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[tt&&(0,f.jsxs)("div",{style:{position:"absolute",left:"10px",bottom:"10px",zIndex:11,display:"flex",alignItems:"center",gap:"5px",padding:"4px 9px",borderRadius:"999px",background:"rgba(0,0,0,0.5)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:[(0,f.jsxs)("svg",{width:nt,height:nt,viewBox:"0 0 24 24",fill:"none",children:[(0,f.jsx)("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"#fff"})]}),(0,f.jsxs)("span",{style:{color:"#fff",fontSize:et+"px",fontWeight:600,fontFamily:w,lineHeight:1,whiteSpace:"nowrap",textShadow:"0 1px 2px rgba(0,0,0,0.4)"},children:[ot," views"]})]}),(0,f.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,f.jsx)("div",{className:"close-btn",onClick:K,children:(0,f.jsx)(v,{size:Y})})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,f.jsx)(g.A,{size:Z})}),(0,f.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:it,borderBottomRightRadius:it,background:y?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,f.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*Y+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:y})})]})})]})})})}),ft="73490825529"==k||"67211264052"==k;if(ft&&"undefined"!==typeof document){var vt;const t=null===(vt=document.querySelector('.whatmore-widget[data-wh="embed"]'))||void 0===vt?void 0:vt.closest(".whatmore-base");if(t&&"none"===getComputedStyle(t).display)return null}return ft&&"undefined"!==typeof document&&document.body?i.createPortal(mt,document.body):mt}},7939:function(t,e,n){n.d(e,{initializeGA:function(){return m},n:function(){return v},sendVideoViewEventToGA:function(){return f}});var o,r=n(3405),i=n(2385),a=n(5547),c=n(1214),s=n(7156);const u="Whatmore Video Shopping",l=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},h={homepage:"Home Page",product_page:"Product Page"};async function m(t){if((0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.initialize((0,a.xIo)(t)),l&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(t)&&null!==(0,a.jWS)(t)){const e=(0,a.Gc6)(t);r.Ay.initialize((0,a.jWS)(t),{useExistingGa:e}),l&&console.debug("Whatmore: initialized GA3")}}async function f(t,e,n){(0,a.B6P)(t)&&null!==(0,a.jWS)(t)&&(r.Ay.event({category:u,action:d.video_view,label:h[e]+":"+p[n]}),l&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.event({category:u,action:d.video_view+":"+h[e]+":"+p[n],value:1,nonInteraction:!1}),l&&console.debug("Whatmore: pushed view event to GA4"))}async function v(t){const e=(0,c.Xd)("whatmoreShopId");if(["56352899156"].includes(e)&&"object"==typeof window.dataLayer){var n,o,r,i;const e=(u=t.selection_type)==s.O.EVENT_VIEW?"whatmore_video_click_event":u==s.O.PRODUCT_TILE_ATC_CLICKED||u==s.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":u==s.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":u==s.O.VIDEO_LIKED?"whatmore_video_like_event":u==s.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":u==s.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!e)return;const c={event:"video_interaction",page_type:null!==(a=t.page_type,n=a.startsWith("index")?"home":a.startsWith("product")?"product_page":a.startsWith("collection")||a.startsWith("page")?"collection_page":void 0)&&void 0!==n?n:"NA",selection_type:e,video_name:null!==(o=t.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(r=t.video_percentage)&&void 0!==r?r:"NA",product_name:null!==(i=t.product_name)&&void 0!==i?i:"NA"};window.dataLayer.push(c),l&&console.debug("Whatmore: pushed event to dataLayer",c)}var a,u}},8060:function(t,e,n){n(1477);var o=n(9252),r=(n(8584),n(4475)),i=n(481);let a=null;e.A=function({posterUrl:t}){if(!t)return null;if(window.innerWidth>window.innerHeight)return null;t=(0,r.s)(t);const e=[];for(let n=0;n<8;n++){const t=45*n;e.push((0,i.jsx)("span",{style:{transform:`rotate(${t}deg) translate(0, -22px)`,animationDelay:`${(n/8-1).toFixed(3)}s`}},n))}return(0,o.createPortal)((0,i.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#000",zIndex:2147483648,pointerEvents:"none"},children:[(0,i.jsx)("img",{src:t,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),(0,i.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"},children:(0,i.jsx)("div",{className:"whatmore-sfp-spinner",children:e})})]}),(a&&document.documentElement.contains(a)||(a=document.createElement("div"),a.id="whatmore-suspense-portal-root",document.documentElement.appendChild(a)),a))}},8513:function(t,e,n){n.r(e),n.d(e,{addToCartShopify:function(){return h},addWhatmoreAttributeToCart:function(){return l},cartPageShopify:function(){return f},checkoutPageShopify:function(){return m},getCartDetailsShopify:function(){return s},getCartDetailsShopifyAsync:function(){return u},productDetailsShopifyJS:function(){return v},productDetailsShopifyJSON:function(){return g},shopfloCheckoutButtonFormInject:function(){return w},updateCartLineItemPropertiesDirect:function(){return _},updateCartLineProperties:function(){return d}});var o=n(1214),r=n(5547),i=n(6080),a=n(5616),c=n(5566);function s(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function u(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function l(t){var e;let n,s=(0,a.Ak)(),l=null,h=null,m={},f=null,v=null,g=null,_={};const w=(0,o.Xd)("whatmoreShopId");let y=(0,c.CK)(),b=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,x=y.length>0;y.forEach(t=>{_.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(_[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})});const S=localStorage.getItem("_whatmore_session_id"),j=localStorage.getItem("wht_user_group"),T=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,C=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,E=localStorage.getItem("_whatmore_user_id"),A=localStorage.getItem("_whatmore_last_video_view_session"),P=(()=>{try{var t;return JSON.parse(null!==(t=localStorage.getItem("_whatmore_add_to_cart_products"))&&void 0!==t?t:"[]")}catch(e){return[]}})(),k=new Set(P.map(t=>String(null===t||void 0===t?void 0:t.product_id))),I=(()=>{try{var t;return JSON.parse(null!==(t=localStorage.getItem("_whatmore_buynow_products"))&&void 0!==t?t:"[]")}catch(e){return[]}})(),$=new Set(I.map(t=>String(null===t||void 0===t?void 0:t.variant_id))),L={buynow:3,direct:2,indirect:1};await u().then(t=>t.json()).then(e=>{s=e.token,n=e.attributes;let o={};try{var a,u;const t=null===(a=n)||void 0===a?void 0:a._wtot;o="string"===typeof t?JSON.parse(t):null!==t&&void 0!==t?t:{};const r=new Set((null!==(u=e.items)&&void 0!==u?u:[]).map(t=>String(null===t||void 0===t?void 0:t.product_id)));o=Object.fromEntries(Object.entries(o).filter(([t])=>r.has(String(t))))}catch(O){o={}}let y=[];if(y=!0===t?e.items.map(t=>{const e=_[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}):e.items.map(t=>{const e=_[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}),0==y.length)return console.debug("Whatmore :: no cart items available for view products"),null;let P={},I={};if(null!=S){const t={wht_session_id:null!==A&&void 0!==A?A:S,wht_user_id:E,...j&&{wht_user_group:j},...T&&{wht_ab_test_id:T},...null!=C&&{wht_ab_test_version:C}};I={[i.Uv]:(0,i.dK)(w)?JSON.stringify(t):t,[i.Um]:""}}if(b||x){const t="1";I[x?i.Rm:i.AG]=t,I[x?i.bZ:i.SW]=""}!(0,r.tSy)(w)&&(I.hasOwnProperty(i.Uv)||I.hasOwnProperty(i.Rm)&&!n.hasOwnProperty(i.Rm)||I.hasOwnProperty(i.AG)&&!n.hasOwnProperty(i.AG))&&p(I),y.map((e,n)=>{if(l=e.key,h=e.quantity,m=e.properties,f=e.widget_info,v=e.location,g=e.userType,("63330517149"==w||"77604192550"==w||"64157352183"==w||"62758289602"==w||"65972830359"==w||"75310563627"==w||(0,r.CpV)(w))&&_.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){const t="65972830359"==w||"75310563627"==w||(0,r.CpV)(w),n=t?"_wtot":"wtot";let i=(0,c.wm)()+`#${f}`;if(t){var a;const t=$.has(String(null===e||void 0===e?void 0:e.variant_id))?"buynow":k.has(String(null===e||void 0===e?void 0:e.product_id))?"direct":"indirect",n=o[null===e||void 0===e?void 0:e.product_id];i=(null!==(a=L[("string"===typeof n?n:"").split(":")[1]])&&void 0!==a?a:0)>=L[t]?n:i+`:${t}`}P={...P,[null===e||void 0===e?void 0:e.product_id]:i};p({[n]:t?{...o,...P}:P})}null!==m&&i.B_ in m||!_.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))||d(l,h,m,f,v,g,!0,b,x)})}).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)})}async function d(t,e,n,a,s="default",u,l,d,p){const h=(0,o.Xd)("whatmoreShopId"),m=l?(0,c.wm)()+("72201044272"==h?`#${a}#${s}#${u?"olduser":"newuser"}`:`#${a}`):p?"_wt_vs":d?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==h||"64157352183"==h||"80856187185"==h||"86486974743"==h||"62758289602"==h||"63046287536"==h||"65972830359"==h||"75310563627"==h||"86968402213"==h||(0,r.CpV)(h))return;let f={id:t,quantity:e,properties:{...m?{[i.B_]:m}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties.",t)})}async function p(t){return await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:t})}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart attribute.",t)})}async function h(t,e,n,o,a="default",s){if("24366857"==n||"68234805419"==n||"86879863060"==n)return Promise.resolve({ok:!0,json:()=>{}});let u;if((0,r.dnh)(n)){const r=(0,c.wm)()+("72201044272"==n?`#${o}#${a}#${s?"olduser":"newuser"}:direct`:`#${o}:direct`);u={items:t.map(t=>({id:t,quantity:e,properties:{[i.B_]:r}}))}}else u={items:t.map(t=>({id:t,quantity:e}))};const l=localStorage.getItem("_whatmore_session_id"),d=localStorage.getItem("wht_user_group"),h=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,m=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,f=localStorage.getItem("_whatmore_user_id");if(null!=l&&!(0,r.tSy)(n)){const t={wht_session_id:l,wht_user_id:f,...d&&{wht_user_group:d},...h&&{wht_ab_test_id:h},...null!=m&&{wht_ab_test_version:m}},e={[i.Uv]:(0,i.dK)(n)?JSON.stringify(t):t,[i.Um]:""};await p(e)}return Promise.resolve({ok:!0,json:()=>{}})}function m(t,e,n,o,i="default",a){const c="https://"+window.location.hostname;var s;const u="72201044272"==n?`came-from-whatmore-live_${o}_${i}_${a?"olduser":"newuser"}`:`came-from-whatmore-live_${o}`;(0,r.BLb)(n)?(s=`${c}/cart/${t}:${e}?`+(0,r.VCz)(n)+"&"+(0,r.Spk)(n)+"&"+(0,r.KMo)(n),(0,r.dnh)(n)&&(s=`${s}&ref=`+u)):(s=`${c}/cart/${t}:${e}`,(0,r.dnh)(n)&&(s=`${s}?ref=`+u)),window.location.href=s}function f(t){const e="https://"+window.location.hostname+"/cart";(0,r.BLb)(t)?window.location.href=e+"?"+(0,r.VCz)(t)+"&"+(0,r.Spk)(t)+"&"+(0,r.yD5)(t):window.location.href=e}async function v(t,e=""){let n;if("27303477337"===e){var o,r;const e="https://"+window.location.hostname,i=window.location.pathname.split("/");n=e+"/"+(null!==i&&void 0!==i&&null!==(o=i[1])&&void 0!==o&&o.startsWith("en-")?(null===i||void 0===i?void 0:i[1])+"/":"")+(null===t||void 0===t||null===(r=t.product_link)||void 0===r?void 0:r.split(".co")[1])+".js"}else n=(null===t||void 0===t?void 0:t.product_link)+".js";const i=await fetch(n,{method:"GET"});if(!i.ok)throw new Error(`Error! status: ${i.status}`);return await i.json()}async function g(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}async function _(t,e,n,a,s="default",u,l,d,p){const h=(0,o.Xd)("whatmoreShopId"),m=l?(0,c.wm)()+("72201044272"==h?`#${a}#${s}#${u?"olduser":"newuser"}:direct`:`#${a}:direct`):p?"_wt_vs":d?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==h||"64157352183"==h||"80856187185"==h||"86486974743"==h||"62758289602"==h||"65972830359"==h||"75310563627"==h||"86968402213"==h||(0,r.CpV)(h))return;let f={id:t,quantity:e,properties:{...m?{[i.B_]:m}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties direct.",t)})}function w(t,e){const n=(0,c.wm)()+`#${e}:buynow`;try{var o;const n=JSON.parse(null!==(o=localStorage.getItem("_whatmore_buynow_products"))&&void 0!==o?o:"[]").filter(t=>{var e;return(null!==(e=null===t||void 0===t?void 0:t.timestamp)&&void 0!==e?e:0)+864e5>Date.now()});n.push({variant_id:String(t),widget_info:e,timestamp:Date.now()}),localStorage.setItem("_whatmore_buynow_products",JSON.stringify(n))}catch(u){console.error("Whatmore :: failed to record buy-now marker.",u)}const r=`\n <form method="post" action="/cart/add" accept-charset="UTF-8" class="form" enctype="multipart/form-data" is="product-form">\n <input type="hidden" name="form_type" value="product" />\n <input type="hidden" name="utf8" value="\u2713" />\n <input name=properties[${i.B_}] type="hidden" value=${n}></input>\n <input type="hidden" name="id" value="${t}" />\n </form> `,a=(new DOMParser).parseFromString(r,"text/html").querySelector('form[action*="/cart/add"]'),s=document.createElement("div");s.appendChild(a),document.body.prepend(s),"function"==typeof handleFloBuyNowBtn&&handleFloBuyNowBtn()}},8584:function(){},8762:function(t,e,n){n.d(e,{Ij:function(){return i},bi:function(){return a}});let o,r=!1;function i(){return o?o.play().then(()=>{r=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){o||(o=document.createElement("video"),o.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",o.muted=!0,o.playsInline=!0,o.style.display="none",document.body.appendChild(o));const t=()=>{r||i()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},8888:function(t,e,n){n.d(e,{B:function(){return i},f:function(){return a}});var o=n(5547),r=n(1637);function i(t){return`${(0,o.jpW)(t)?r.$$:r.MT}/v2/brand/${t}/product-events/recommendation/cdn`}function a(t){return`${(0,o.jpW)(t)?r.$$:r.MT}/v2/brand/${t}/product-events/collection/cdn`}},9128:function(t,e,n){n.d(e,{I:function(){return r},i:function(){return o}});const o=function(t){return"video"===t.event_type},r=function(t){return"image"===t.event_type}},9258:function(t,e,n){var o=n(2211),r=n(7462),i=n(481);e.A=function(t){var e,n;const a=null!==(e=t.height)&&void 0!==e?e:"100%",c=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,i.jsxs)("div",{style:{width:c,height:a,overflow:"hidden",minHeight:a,minWidth:c},children:[(0,i.jsx)(r.A,{height:a,width:c}),(0,i.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,i.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,i.jsx)(o.A,{})})})]})}},9263:function(t,e,n){var o=n(5568);e.A=function(t){const[e,n,r]=(0,o.A)();var i="landscape"==e?n*(9/16):r;if("landscape"==e){const t=.85;return[n,i,n*t,i*t]}return[n,i,n,i]}},9383:function(t,e,n){n.d(e,{$B:function(){return c},A9:function(){return u},Pb:function(){return l},TG:function(){return h},TJ:function(){return p},Zh:function(){return s},lB:function(){return a},tO:function(){return d}});var o,r=n(1637);const i=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(t){i&&console.debug("updating user view count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user view count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user view count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating user view count user for event : ",t)})}function c(t,e){i&&console.debug("updating like count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating like count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating like count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating like count user for event : ",t)})}function s(t){i&&console.debug("updating share count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating share count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating share count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating share count user for event : ",t)})}function u(t,e){i&&console.debug("updating wa click count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating whatsapp click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating whatsapp click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating whatsapp click count user for event : ",t)})}function l(t,e){i&&console.debug("updating event-product click count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product click count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product click count for event {} : ",t.event_id,e)})}function d(t,e,n){i&&console.debug("updating event-product add to cart count for event {} and product {}.",t.event_id,e.product_id);const o={event_id:t.event_id,product_id:e.product_id,increase_by:n};fetch(r.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>(i&&console.debug("updating user event-product add to cart count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product add to cart count for event {} : ",t.event_id,e)})}function p(t,e){i&&console.debug("updating event-product buy now count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product buy now count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product buy now count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product buy now count for event {} : ",t.event_id,e)})}function h(t){const e={event_id:t.event.event_id,cta_id:t.cta.cta_id,increase_by:1};fetch(r.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user cta click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user cta click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating cta click count : ",t)})}},9759:function(t,e,n){var o=n(1477),r=n(5677),i=n(1214),a=n(481);const c=o.memo(()=>{if(!(0,i.Xd)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[t]=(0,r.A)();return(0,a.jsxs)("div",{className:`shimmer-container ${t}`,children:["portrait"===t?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map((t,e)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===e?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},e)),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})});e.A=c},9795:function(t,e,n){var o=n(1477),r=n(1214);e.A=function(t){const[e,n]=(0,r.QN)("muted");return(0,o.useEffect)(()=>{},[]),[e,n]}}}]);