whatmore-react-assets 1.0.1869 → 1.0.1871

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 ht},Xd:function(){return pt},t2:function(){return mt}});var o,r,i,a,c,s,u,l,d,h,p=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"),E=_("whatmoreEmbedAppVideoTitle",""),C=_("whatmoreEmbedAppPositionPortrait","left"),A=_("whatmoreEmbedAppHorizontalPaddingPortrait",10),P=_("whatmoreEmbedAppVerticalPaddingPortrait",10),I=_("whatmoreEmbedAppVideoPlayerSizePortrait",40),k=_("whatmoreEmbedAppPositionLandscape","left"),$=_("whatmoreEmbedAppHorizontalPaddingLandscape",20),L=_("whatmoreEmbedAppVerticalPaddingLandscape",20),N=_("whatmoreEmbedAppVideoPlayerSizeLandscape",60),O=_("whatmoreEmbedAppUseVariant","false");const W="22892183632"==y||"1546387531"==y?80:60;var D=_("whatmoreHeading",""),R=_("whatmoreCollection","invalid-url"),M=_("whatmoreCollectionHeading",""),q=_("whatmoreTitleFontSize","24"),V=_("whatmoreTitleFontSizePortrait",q),z=_("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}()),F=_("whatmoreTopBottomPadding",20),B=_("whatmoreStoriesTopBottomPadding",10),H=_("whatmoreStoryTileSize",40),X=_("whatmoreStoryTileSizeDesktop",40),U=_("whatmoreCollectionsTileSize",W),Q=_("whatmoreCollectionsTileSizePortrait",W),J=_("whatmoreVideoTileSize",U),G=_("whatmoreVideoTileSizePortrait",Q),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:ht,getGlobalState:pt,setGlobalState:mt}=(0,m.V)({isInDesignMode:Y,isDemoBrand:y===g.YZ,whatmoreShopId:y,whatmoreProductId:j,whatmoreCollectionId:S,whatmoreLandingLocationType:b,whatmoreEmbedAppPositionPortrait:C,whatmoreEmbedAppHorizontalPaddingPortrait:A,whatmoreEmbedAppVerticalPaddingPortrait:P,whatmoreEmbedAppVideoPlayerSizePortrait:I,whatmoreEmbedAppPositionLandscape:k,whatmoreEmbedAppHorizontalPaddingLandscape:$,whatmoreEmbedAppVerticalPaddingLandscape:L,whatmoreEmbedAppVideoPlayerSizeLandscape:N,whatmoreEmbedAppVideoTitle:E,whatmoreEmbedAppUseVariant:O,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:q,whatmoreTitleFontSizePortrait:V,whatmorePrimaryFont:null!==(l=(0,f.vvD)(y))&&void 0!==l?l:lt()[1],whatmoreLandscapePadding:z,whatmoreTopBottomPadding:F,whatmoreStoriesTopBottomPadding:B,whatmoreVideoTileSize:J,whatmoreVideoTileSizePortrait:G,whatmoreStoryTileSize:H,whatmoreStoryTileSizeDesktop:X,whatmoreCollectionsTilesSpacing:K,whatmoreShowViews:(0,f.RG3)(y),indicatorRenderSeconds:4,isFirstIndicatorRenderDone:!1,isProductSwiperCatalogOpen:(0,f.Mq2)(y),appCartData:{},whatmoreVideoPlayer:p.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!==(h=(0,f.hep)(y))&&void 0!==h?h:"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,n;const[u,l,d,h]=(0,o.A)(),p=(0,r.Xd)("isInDesignMode"),m=(0,r.Xd)("isDemoBrand"),f=(0,r.Xd)("whatmoreSecondaryColor"),v=(0,r.Xd)("whatmorePrimaryFont"),g=(0,r.Xd)("whatmoreShopId"),_=t.cta,w=.06*h,y=.03*h+"px",b=.06*h+"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:y,marginTop:y},children:(0,c.jsx)("a",{href:s(_.cta_link,g),style:{color:"white",textDecoration:"none"},onClick:()=>{p||m||(async()=>{(0,a.increaseCustomCtaCount)(t)})()},children:(0,c.jsxs)("span",{className:"whatmore-cta-tile-text",style:{fontSize:w*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",color:t.isBanner?f:"#fff",backgroundColor:t.isBanner?"#fff":f,borderRadius:"round"===(0,i.hep)(g)?"5px":"0",boxShadow:"1px 1px #0000001a",fontFamily:v,fontWeight:t.isBanner?"bold":void 0,padding:"10px",paddingLeft:b,paddingRight:b,display:"inline-block"},children:[(null!==(n=_.cta_title)&&void 0!==n?n:"").trim()||"Shop Now","\xa0",(0,c.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",transform:"translateY(-1px)"},children:"\u2197"})]})})})})}},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},NX:function(){return i},Np:function(){return c},Po:function(){return s},Z_:function(){return o},Zf:function(){return l},d8:function(){return u},zJ:function(){return a}});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){const e=null===t||void 0===t?void 0:t.product_link;return!!e&&-1===String(e).indexOf("/products/")},a=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})},c=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 s=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 u(t){if(null!=t){var e=0;return t.forEach(t=>{t.index=e++}),t}}function l(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.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="",h="",p="",m="",f=null){(0,o.Xd)("whatmoreLandingLocationType");const v=t=>{(0,r.js)().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.CP)(o,i,a,d,h,p,!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("27303477337"===t){async function T(t,e=1){var n,o;const r=document.querySelector("hdt-cart-drawer"),i=r&&r.getAttribute("section-id"),a=new FormData;a.append("id",t),a.append("quantity",e),i&&a.append("sections",i);const c=await fetch(`${(null===(n=window.Shopify)||void 0===n||null===(o=n.routes)||void 0===o?void 0:o.root)||"/"}cart/add.js`,{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:a});if(!c.ok)return console.error("[Whatmore] ATC 27303477337 failed:",c.status),!1;const s=await c.json();return setTimeout(()=>v(t),500),r?(document.dispatchEvent(new CustomEvent("cart:update",{bubbles:!0,detail:{cartData:s,source:"product-form-component",actionAfterATC:"open_cart_drawer"}})),!0):(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`},500),!0)}return T(u,1).catch(t=>{console.error("[Whatmore] ATC 27303477337 error:",t)}),void setTimeout(e,n)}if("38678331531"===t){const E="In stock \u2014 ship now";async function C(t,e=1){const n=[...document.querySelectorAll('form[action*="/cart/add"]')].find(e=>{var n;return String(null===(n=e.querySelector('[name="id"]'))||void 0===n?void 0:n.value)===String(t)});if(n)return n.requestSubmit(n.querySelector('[type="submit"]')),setTimeout(()=>v(t),1500),!0;const o=await fetch("/cart/add.js?app=upez",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:t,quantity:e,properties:{Fulfilment:E}}]}),_isAddon:!0});if(!o.ok)return console.error("[ATC] Add to cart failed:",o.status),!1;const r=document.querySelector("[data-upez-cart]");return r?r.click():window.location.href="/cart",setTimeout(()=>v(t),500),!0}return void C(u,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 38678331531 error:",t)})}if("75026858234"===t){try{const A=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:u,quantity:1}]})}),P=await A.json();A.ok?setTimeout(()=>{v(u),window.location.href="/cart"},500):console.error("[Whatmore] ATC 75026858234 failed:",P)}catch(S){console.error("[Whatmore] ATC 75026858234 error:",S)}return void setTimeout(e,n)}if("65606910124"===t){async function I(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}]})});if(!n.ok)return console.error("[ATC] Add to cart failed:",n.status),!1;document.dispatchEvent(new CustomEvent("cart:build"));const o=document.querySelector("cart-drawer");if(!o)return window.location.href="/cart",!0;const r=await(await fetch("/?section_id=cart-drawer")).text(),i=(new DOMParser).parseFromString(r,"text/html");return o.innerHTML=i.querySelector("cart-drawer").innerHTML,o.classList.remove("is-empty"),o.open(),setTimeout(()=>v(t),500),!0}return void I(u,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 65606910124 error:",t)})}if("17994587"===t||"68660855106"===t){async function k(t,e=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});if(!n.ok)return console.error("[ATC] Add to cart failed:",n.status),!1;document.dispatchEvent(new CustomEvent("cart:build"));const o=document.querySelector("cart-drawer");return o&&"function"===typeof o.open?o.open():document.dispatchEvent(new CustomEvent("cart:open")),setTimeout(()=>v(t),500),!0}return void k(u,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 17994587/68660855106 error:",t)})}if("57217876118"===t){async function L(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 L(u,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 57217876118 error:",t)})}if("75310563627"===t){async function N(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 N(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 O(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 O(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 W=new FormData;W.append("id",u),W.append("quantity","1"),f&&W.append("properties[Size]",f);try{const D=await fetch("/cart/add.js",{method:"POST",body:W}),R=await D.json();R.id?setTimeout(()=>{v(u),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",R)}catch(S){console.error("Afrozeh ATC error:",S)}return void setTimeout(e,n)}if("67083239728"===t){try{const M=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:u,quantity:1}]})});M.ok||console.error("[ATC] Add to cart failed:",M.status)}catch(S){console.error("[ATC] Error while adding to cart:",S)}return setTimeout(()=>{v(u)},1e3),void setTimeout(e,n)}if("61442818186"===t){async function q(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}]})});if(!n.ok)return void console.error("[ATC] Add to cart failed:",n.status);document.dispatchEvent(new CustomEvent("cart:build"));const o=document.querySelector(".js-drawer-open-cart");o&&o.click()}return q(u,1).then(()=>{setTimeout(()=>{v(u)},500)}).catch(t=>{console.error("[Whatmore] ATC 61442818186 error:",t)}),void setTimeout(e,n)}if("62226792677"===t){async function V(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 V(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60595503283"===t){async function z(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 z(u,1),void setTimeout(e,n)}if("72915616066"===t){function F(){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 B(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 H(t,e=1){return F()?B(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 H(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("44061622423"===t){async function X(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 X(u).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60183445561"===t){async function U(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 U(u).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("22907887"===t){async function Q(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 Q(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 J=document.querySelector('button[data-pf-type="ProductATC2"]');return J?(l&&J.setAttribute("data-product-id",l),J.click(),setTimeout(()=>{(0,r.js)().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.CP)(t,n,o,d,h,p,!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 G=u,K=1,Y=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(Y){let Z=Y.querySelector('input[name="id"]');Z||(Z=document.createElement("input"),Z.type="hidden",Z.name="id",Y.appendChild(Z)),Z.disabled=!1,Z.value=G;const tt=Y.querySelector('input[name="quantity"]');tt&&(tt.value=K);const et=Y.querySelector('button[data-add-to-cart], button[type="submit"]');return et?(et.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),et.click(),et.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(G)},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:G,quantity:K}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(G)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const nt=document.querySelector('form[action="/cart/add"]');if(!nt)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const ot=nt.querySelector('input[name="id"]');if(!ot)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);ot.value=u;const rt=nt.querySelector('button[type="submit"]');if(!rt)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);rt.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 it=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:u,quantity:1}]})});if(it.ok){const at=await it.json();document.dispatchEvent(new CustomEvent("cart:update",{detail:{cart:at}})),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:",it.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 ct(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 ct(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 st(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 st(u).catch(t=>{console.error("[Whatmore] ATC 12175954 error:",t)}),void setTimeout(e,n)}if("2754609263"===t){const ut=()=>{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 lt(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 h,p;(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)?(ut(),setTimeout(()=>{v(t)},500)):console.error("[Whatmore] ATC 2754609263 failed:",(null===(h=d)||void 0===h?void 0:h.description)||(null===(p=d)||void 0===p?void 0:p.message))}return lt(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 dt(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 dt(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 ht=w(b,u,l);y(ht),setTimeout(()=>{v(u)},500),ht.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 u},cb:function(){return c},lP:function(){return a},tQ:function(){return s},yD:function(){return l}});var o=n(5547);const r=(0,n(1214).Xd)("whatmoreShopId"),i=function(t){const e=t.event_hls_url;return e&&e.startsWith("https://cdn.shopify.com")&&e.includes(".mp4")?e:null},a=function(t){var e,n;if(!("event_media_urls"in t))return function(t){return null!=t.event_m3u8_url&&""!==t.event_m3u8_url?t.event_m3u8_url:t.event_hls_url}(t);if("image"===t.event_type)return t.event_media_urls.primary.portrait.content_image_original;if("secondary"in t.event_media_urls&&t.event_media_urls.secondary.portrait.content_video_1080p)return t.event_media_urls.secondary.portrait.content_video_1080p;const o=i(t);return o||(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)},c=function(t){var e,n;if(!("event_media_urls"in t))return t.event_hls_url;if("image"===t.event_type)return t.event_media_urls.primary.landscape.content_image_original;if("secondary"in t.event_media_urls&&t.event_media_urls.secondary.landscape.content_video_1080p)return t.event_media_urls.secondary.landscape.content_video_1080p;const o=null===(e=t.event_media_urls.primary.landscape)||void 0===e?void 0:e.content_video_1080p,r=null===(n=t.event_media_urls.primary.portrait)||void 0===n?void 0:n.content_video_1080p,a=i(t);return!a||o&&o!==r?null!==o&&void 0!==o?o:r:a},s=function(t,e="portrait"){var n,o,r,i;return"event_media_urls"in t?"landscape"===e?(null===(r=t.event_media_urls.secondary)||void 0===r||null===(i=r.landscape)||void 0===i?void 0:i.poster_image)||t.event_media_urls.primary.landscape.poster_image||t.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.event_media_urls.primary.portrait.poster_image||t.poster_image:t.poster_image},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-video-assets-720p.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t},l=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.d(e,{BR:function(){return ft},initializeReactApp:function(){return _t},mountNeoFullscreen:function(){return gt}});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 h=o.lazy(()=>Promise.all([n.e(69),n.e(12),n.e(760)]).then(n.bind(n,3269)));var p,m=()=>(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(h,{})});const f=null!==(p="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==p&&p;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),E=(n(3647),n(426)),C=n(3161),A=n(9128),P=n(9888),I=n(7156),k=n(6694),$=n(256),L=n(6984),N=n(6380),O=n(8762),W=n(8888),D=n(5534),R=n(8802),M=n(9759),q=n(8060);const V=(0,C.A)({key:"whatmore-css-ppv"});function z(t){return t.split(/[?#]/)[0]}var F=function(t){var e,n;const[r,c]=(0,o.useState)(),[s,l]=(0,o.useState)(),[h]=(0,i.QN)("isInDesignMode"),[p]=(0,i.QN)("isDemoBrand"),[m]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[f,v]=(0,o.useState)(-2),[g]=(0,i.QN)("whatmoreVariantId"),[C]=(0,i.QN)("whatmoreShopId");var[F]=(0,i.QN)("whatmoreProductId");const B=(0,i.Xd)("isLandingSharedLink"),H=(0,i.Xd)("whatmoreShareTemplateId"),X=(0,i.Xd)("whatmoreShareEventId"),U=B&&"template-embed"===(0,u.Mm)(H),[Q,J]=(0,o.useState)(U);F=(0,a.BcY)(C)?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?z(window.location.href).replace(/\/+$/,"").split("/").pop():z(window.location.href)}(C):F;const[G,K]=(0,o.useState)(()=>"true"===m?g:F),[Y,Z]=(0,o.useState)(!1);var tt=((0,a.jpW)(C)?_.$$:_.MT)+"/v2/brand/"+C+"/product-events",et="upcoming";const{whatmoreRootId:nt,whatmoreWidgetSourceDetails:ot}=(0,o.useContext)(ft),rt=(0,o.useRef)(!1),it=(0,o.useRef)(window.location.pathname);(0,o.useEffect)(()=>{(0,T.initializeGA)(C),(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,N._)()?(0,S.Pc)(S.F5):(0,O.bi)())},[r]),(0,o.useEffect)(()=>{if(!(0,a.fDZ)(C))return;v(-1);const t=!0===(0,a.WsK)(C)?"video":"video,image";if((0,a.TOK)(C)){const e=(0,W.f)(C);fetch(`${e}?client_product_id=${G}&limit=50&status=live,upcoming&event_type=${t}`).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)(C)||(n=(0,b.Zf)(n)),c(n)}).catch(t=>l(t.message))}else if((0,a.WH1)(C)){const e=(0,W.B)(C),n=(0,a.buK)(C);fetch(`${e}?client_product_id=${G}&limit=10&recommended=${!n}&origin=${window.location.hostname}&status=live,upcoming&event_type=${t}`).then(t=>t.json()).then(t=>{const e=null===t||void 0===t?void 0:t.events;if((null===e||void 0===e?void 0:e.length)>0){var o;const r=n?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=[...e,...r];(0,a.xku)(C)||(i=(0,b.Zf)(i)),c(i)}else c([])}).catch(t=>l(t.message))}else fetch(tt.toString()+"?client_product_id="+G.toString()+"&status="+et.toString()+"&event_type="+t).then(t=>t.json()).then(e=>{const n=e.events;if((null==n||0===n.length)&&"STROXKHHO98"===C){const e=z(window.location.href);if(e!==G)return fetch(tt.toString()+"?client_product_id="+encodeURIComponent(e)+"&status="+et.toString()+"&event_type="+t).then(t=>t.json()).then(t=>t.events)}return n}).then(t=>(null!=t&&0!=t.length&&(0,a.vfi)(C)&&(0,a.YOR)(t),(0,a.xku)(C)||(t=(0,b.Zf)(t)),c(t),t)).then(t=>((0,a.Uht)(C)&&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==z(window.location.href))return;const o={product_id:n.product_id,product_link:z(window.location.href)};fetch(_.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(t,G),t)).catch(t=>{l(t.message)})},[G]),(0,o.useEffect)(()=>{v(-2)},[r]),(0,o.useEffect)(()=>{const t=z(window.location.href);"8111554613"===C&&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"==C&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return K(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"80505864496"==C&&window.location.pathname!==it.current){const t=window.location.pathname;it.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&&K(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&&K(t)}})},[]),(0,o.useEffect)(()=>{if(null!=r&&0!==r.length&&!s&&U&&((0,L.H)("whatmore-video-player",()=>{J(!1)}),null!=X)){const t=r.find(t=>X==t.event_id);if(t)return void st(t,!0,r.indexOf(t))}},[r]);const at=ot.landingLocationType,ct=ot.templateType,st=async(t,e=!1,n=0)=>{if((0,j.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await((0,N._)()?(0,S.bo)():(0,O.bi)())}if((0,A.i)(t)||(0,A.I)(t))return h||p||(async()=>{const e=(0,u.Wd)(at)+(0,u.gf)(ct)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,w.increaseViewCount)(t),(0,T.sendVideoViewEventToGA)(C,_.DK,_.K1),(0,y.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,a.YE3)(C)&&Z(!0),void(t=>{if(_.LV&&"number"===typeof t&&t>=0){const e=(0,R.b)(nt);if(e)return J(!1),void e({events:r,eventIndex:t})}v(t)})(n)};function ut(){return(0,d.jsx)(d.Fragment,{})}return null==r||0==r.length||s||(0,u.Ig)(ot.templateType)||!(0,a.fDZ)(C)?(0,d.jsx)("div",{}):(0,d.jsxs)(E.C,{value:V,children:[Q&&(0,d.jsx)(M.A,{}),"no-product"===G||-1===f||0===r.length?(0,d.jsx)(ut,{}):-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:st,closeClick:t=>{var e;t.stopPropagation(),v(-1),(0,P.registerClickEvent)({userInteractionType:I.O.PDP_POPUP_CLOSED,widgetSourceDetails:ot,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;rt.current||h||p||(rt.current=!0,(0,k.trackWhatmoreAnalyticsEvent)({userInteractionType:I.O.PDP_POPUP_WIDGET_VIEW,widgetSourceDetails:ot,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)(q.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(Y?-1:-2),J(!1)},template:"template-product-page"})})})]})};const B=(0,C.A)({key:"whatmore-css-wsv"});var H=function(t){var e,n;const[r,c]=(0,o.useState)(),[s,l]=(0,o.useState)(),[h]=(0,i.QN)("isInDesignMode"),[p]=(0,i.QN)("isDemoBrand"),[m,f]=(0,o.useState)(-2),[v]=(0,i.QN)("whatmoreShopId"),g=(0,i.Xd)("isLandingSharedLink"),C=(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"),M=(0,i.Xd)("isWhatmorePreviewMode"),{whatmoreRootId:V,whatmoreWidgetSourceDetails:z}=(0,o.useContext)(ft),F=(0,o.useRef)(!1);var H=(0,a.SOt)(v)?_.aD+"/get_eventset/":_.$$+"/get_eventset/",X=(0,a.SOt)(v)?_.aD+"/get_eventset_v1/":_.$$+"/get_eventset_v1/",U=(0,a.SOt)(v)?_.aD+"/v2/collection":_.$$+"/v2/collection",Q=(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,N._)()?(0,S.Pc)(S.F5):(0,O.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)?`${Q.toString()}?store_id=${v}&client_collection_id=${o}&sync_products=true`:`${U.toString()}?store_id=${v}&client_collection_id=${o}`,s=n?r:"78232846646"===v.toString()?X.toString()+v.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+v:H.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(M&&(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)(C)&&null!=P&&r.forEach((t,e)=>{P==t.event_id&&K(t,!0,e)})},[r]);const J=z.landingLocationType,G=z.templateType,K=(t,e=!1,n=0)=>{if((0,j.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||((0,N._)()?(0,S.bo)():(0,O.Ij)())}if((0,A.i)(t)||(0,A.I)(t))return h||p||(async()=>{const e=(0,u.Wd)(J)+(0,u.gf)(G)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,w.increaseViewCount)(t),(0,T.sendVideoViewEventToGA)(v,_.DK,_.K1),(0,y.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void(t=>{if(_.LV&&"number"===typeof t&&t>=0){const e=(0,R.b)(V);if(e)return void e({events:r,eventIndex:t})}f(t)})(n)};function Y(){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)(E.C,{value:B,children:-1===m||0===r.length?(0,d.jsx)(Y,{}):-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:K,closeClick:t=>{t.stopPropagation(),f(-1)},isSpotlight:!0,onImpression:()=>{var t;F.current||h||p||(F.current=!0,(0,k.trackWhatmoreAnalyticsEvent)({userInteractionType:I.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)(q.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 X=function(){return(0,d.jsx)(d.Fragment,{})},U=n(4694),Q=n(428),J=n(6126);var G=function(){const[t,e]=(0,o.useState)(),[n,r]=(0,o.useState)(),[c,s]=(0,o.useState)(!1),[l]=(0,i.QN)("whatmoreShopId"),[h]=(0,i.QN)("isInDesignMode"),[p]=(0,i.QN)("isDemoBrand"),m=(0,i.Xd)("isWhatmorePreviewMode"),f=(0,i.Xd)("whatmoreLoggingActive"),{whatmoreRootId:v,whatmoreWidgetIdentity:g}=(0,o.useContext)(ft),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,N._)()&&(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((p||h||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&&Q.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)?(Q.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}`)),p||h||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:I.O.BANNER_WIDGET_VIEW,event:t[0],triggerFlag:!h&&!p,children:(0,d.jsx)(J.A,{events:t})})})},K=n(5677),Y=(n(8584),n(2446),n(6267),n(4475)),Z=n(4540),tt=n(5405);var et=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),h=t.mode,p=t.storyId,m=(0,Y.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),E=(0,o.useRef)(null),C=(0,o.useRef)(null);return(0,o.useEffect)(()=>{C.current&&C.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=E.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(p)},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:"none"},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,Z.B)(m)?(0,d.jsx)(tt.A,{height:"100%",width:"100%",url:m,isPlaying:!0,event:_||{event_type:"video"},borderRadius:y}):(0,d.jsx)("img",{ref:E,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,Y.s)(t.imageUrl);E.current.src="",E.current.src=e,T.current=T.current+1}else console.log("Failed to load image after several attempts"),E.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"===h?"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 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:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ot=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"})}),rt=(0,C.A)({key:"whatmore-stories-css"});var it=function(t){const[e,n,r]=(0,K.A)(),[c]=(0,i.QN)("whatmoreStoryTileSize"),[s]=(0,i.QN)("whatmoreStoryTileSizeDesktop"),[u]=(0,i.QN)("whatmoreShopId"),[l,h]=(0,o.useState)("portrait"===e?"flex-start":"center"),[p,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)(()=>{Q.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;h(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,C]=(0,o.useState)([]);(0,o.useEffect)(()=>{C(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)(E.C,{value:rt,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)(et,{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:[p&&(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)(nt,{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)(ot,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})};var at=function(){var t,e,r,c,s,l;const[h,p]=(0,o.useState)(),[m,f]=(0,o.useState)(),[v,g]=(0,o.useState)(),[x,E]=(0,o.useState)(!1),[C,A]=(0,o.useState)(-1),[P,k]=(0,o.useState)(null),[$]=(0,i.QN)("whatmoreShopId"),[L]=(0,i.QN)("isInDesignMode"),[O]=(0,i.QN)("isDemoBrand"),[W]=(0,i.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreRootId:M,whatmoreWidgetSourceDetails:V,whatmoreUserInfo:z}=((0,i.Xd)("isWhatmorePreviewMode"),(0,i.Xd)("whatmoreLoggingActive"),(0,o.useContext)(ft)),F=(0,i.Xd)("whatmoreLandingLocationType"),B=(null===V||void 0===V?void 0:V.templateType)||"template-stories-a";(0,o.useEffect)(()=>{(0,y.wm)()},[]),(0,o.useEffect)(()=>{(0,T.initializeGA)($)},[]),(0,o.useEffect)(()=>{null!=h&&0!=h.length&&!v&&(0,j.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,N._)()&&(0,S.Pc)(S.F5)},[h]),(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(F.startsWith("index")&&"object"==typeof o&&(null===o||void 0===o?void 0:o.length)>0)p(o),f(o),E(!0);else{let t;const e="live,upcoming",n="true";if(F.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),p(e),f(e),E(!0)}).catch(t=>{console.error("[WhatmoreStoriesView] API Error:",t),g(t),E(!0)})}},[]);const H=h?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}(h):[];return x&&(null==h||0===h.length||v)?(O||L||Q.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==h||0===h.length||v?(0,d.jsx)("div",{}):(0,d.jsxs)(d.Fragment,{children:[-1!==C&&null!==P&&(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(q.A,{posterUrl:(null===H||void 0===H||null===(t=H[P])||void 0===t||null===(e=t.events)||void 0===e||null===(r=e[C])||void 0===r?void 0:r.poster_image)||(null===H||void 0===H||null===(c=H[P])||void 0===c||null===(s=c.events)||void 0===s||null===(l=s[C])||void 0===l?void 0:l.thumbnail_image)}),children:(0,d.jsx)(D.A,{events:m,index:C,onBack:async function(){A(-1)},slideDirection:"horizontal",eventsStories:H,initialStoryIndex:P,template:B})}),(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:I.O.STORIES_WIDGET_VIEW,triggerFlag:!L&&!O,children:(0,d.jsx)(it,{eventsStories:H,onClick:async function(t,e=!1,o=null){if((0,j.MN)()&&(0,N._)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,S.bo)()}L||O||(async()=>{const{initializeGA:e,sendVideoViewEventToGA:o}=await Promise.resolve().then(n.bind(n,7939));e();const r=H[t].events[0],i=(null===V||void 0===V?void 0:V.landingLocationType)||"index",a=(null===V||void 0===V?void 0:V.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.increaseViewCount)(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===z||void 0===z?void 0:z.userType)})();var r=0;null!=o&&H[t].events.map((t,e)=>{t.event_id==o&&(r=e)}),((t,e)=>{if(_.LV&&"number"===typeof t&&t>=0){const n=(0,R.b)(M);if(n)return void n(Object.assign({events:m,eventIndex:t},e))}A(t)})(r,{eventsStories:H,storyIndex:t}),k(t)},template:B})})})})]})},ct=n(5e3),st=n(6287),ut=n(4018);var lt,dt=function({events:t,index:e,eventsStories:n,storyIndex:r,onClose:c}){const s=(0,i.Xd)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:u,whatmoreIsStoriesTemplate:l}=(0,o.useContext)(ft),h=(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,st.B)();const t=(0,ct.k5)();t&&(0,ct.YJ)()&&((0,i.t2)("whatmoreVideoPlayerPool",t),(0,i.t2)("whatmoreVideoPlayerPoolInitiated",!0),(0,i.t2)("whatmoreVideoPlayerPoolBlessed",!0))},[]),null==e||e<0||!h.length)return null;const p=l||"horizontal"===(0,a.br0)(s)?"horizontal":"vertical";return(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(q.A,{posterUrl:h[e]?(0,ut.tQ)(h[e]):void 0}),children:(0,d.jsx)(D.A,{events:h,index:e,onBack:c,slideDirection:p,template:u,eventsStories:n,initialStoryIndex:r})})};const ht=null!==(lt="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==lt&&lt;var pt=function(t){const{whatmoreEventsBrowsingTemplate:e,whatmoreIsStoriesTemplate:r,whatmoreIsCollectionsTemplate:h,whatmoreIsBannerTemplate:p,whatmoreCollectionId:f,whatmoreRootId:v,whatmoreWidgetSourceDetails:_,whatmoreIsPreviewMode:w,whatmoreUserInfo:y}=(0,o.useContext)(ft),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"),[E,C]=(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(!E)try{const t=localStorage.getItem("whatmore_brand_customizations");if(t){const{customizations:e}=JSON.parse(t);(0,a.Tzr)(e,x),C(!0),ht&&console.debug("Whatmore: Customizations loaded from cache in App.js")}}catch(t){console.error("Whatmore: Error loading customizations in App.js:",t)}},[E,x,C]),(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)(dt,{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(p)return ht&&console.debug(`Whatmore: Shopify, rendering banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(G,{})});if(r)return ht&&console.debug(`Whatmore: Shopify, rendering stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(at,{})});if(!(0,u.io)(e))return ht&&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 ht&&console.debug(`Whatmore: Shopify, rendering index/page spotlight: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(H,{})});if(b.startsWith("collection")&&(0,u.io)(e)&&!0===(0,a.Vwo)(x))return ht&&console.debug(`Whatmore: Shopify, rendering collection page floating popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(H,{})});if(b.startsWith("collection")&&(0,u.io)(e))return(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(X,{})})}var P,I,k,$,L,N;return b.startsWith("product")?p?(ht&&console.debug(`Whatmore: Shopify, rendering PDP-page banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(G,{})})):r?(ht&&console.debug(`Whatmore: Shopify, rendering PDP-page stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(at,{})})):(0,u.io)(e)||(0,u.Ig)(e)?null!==(P=window)&&void 0!==P&&null!==(I=P.Shopify)&&void 0!==I&&null!==(k=I.theme)&&void 0!==k&&k.role&&"main"===window.Shopify.theme.role||window.location.href.includes("localhost:")?(ht&&console.debug(`Whatmore: Shopify, rendering PDP-page popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(F,{})})):(null!==($=window)&&void 0!==$&&null!==(L=$.Shopify)&&void 0!==L&&null!==(N=L.theme)&&void 0!==N&&N.role&&"main"!==window.Shopify.theme.role||S)&&(0,a.C1J)(x)?(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(F,{})}):(ht&&console.debug("Whatmore: Shopify, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(ht&&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&&(ht&&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")?p?(ht&&console.debug(`Whatmore: External, rendering banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(G,{})})):r?(ht&&console.debug(`Whatmore: External, rendering stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(at,{})})):(0,u.io)(e)?(0,u.io)(e)&&A()&&!b.startsWith("collection")?(ht&&console.debug(`Whatmore: External, rendering index/page spotlight: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(H,{})})):b.startsWith("collection")&&(0,u.io)(e)&&!0===(0,a.Vwo)(x)?(ht&&console.debug(`Whatmore: External, rendering collection page floating popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(H,{})})):(ht&&console.debug(`Whatmore: External, rendering index/collection page popup: ${e}`),(0,d.jsx)(d.Fragment,{})):(ht&&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?p?(ht&&console.debug(`Whatmore: External, rendering PDP-page banner: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(G,{})})):r?(ht&&console.debug(`Whatmore: External, rendering PDP-page stories: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(at,{})})):(0,u.Ig)(e)||(0,u.io)(e)?(0,a.fDZ)(x)?(ht&&console.debug(`Whatmore: External, rendering PDP-page popup: ${e}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(F,{})})):(ht&&console.debug("Whatmore: External, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(ht&&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 mt=["80505864496","26077888559"],ft=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}});function vt(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 gt(t,e){const n=vt(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)(ft.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(e){}o.remove();try{t&&t.onFullscreenClose&&t.onFullscreenClose()}catch(e){}}}})}))}function _t(t){const{rootElement:e,templateType:n,whatmoreRootId:o}=t,a=vt(t),c=r.createRoot(e);c.render((0,d.jsx)(ft.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&&mt.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)(ft.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,[h,p,m]=(0,o.A)({triggerOnce:d,threshold:l}),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.BR);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)&&(p&&null!==(e=t.triggerFlag)&&void 0!==e&&e&&(0,a.trackWhatmoreAnalyticsEvent)({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:[]}))},[p,t.triggerFlag]),(0,s.jsx)("div",{style:{height:"100%"},ref:h,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;if(!function(){if("undefined"===typeof navigator||"undefined"===typeof document)return!1;const t=navigator.userAgent||"";return!(!/iPad|iPhone|iPod/.test(t)||window.MSStream)||/Macintosh/.test(t)&&"ontouchend"in 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),h=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},p=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&&h(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:p})]})}},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),h=n(481);var p=function(t){var e,n,i,c,s,p,m,f,v,g,_,w,y,b,x,S,j,T,E,C,A,P,I;const k=(0,o.useRef)(null),[$,L,N]=(0,r.A)({triggerOnce:!0}),O=(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(k.current)if(t.isPlaying){if("99423519085"===O){var e;const n=k.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)}}k.current.paused&&k.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"==O?(k.current.paused&&((0,u.n)()||(0,a.At)())&&k.current.play().catch(()=>{}),setTimeout(()=>{k.current&&k.current.pause()},300)):k.current.pause()},[t.isPlaying,L]),(0,h.jsx)("div",{ref:$,style:{width:W,height:D,overflow:"hidden",display:"flex",alignItems:"center"},children:L||"51394281658"==O||"8968077397"==O?(0,h.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:D,height:W},children:[(0,h.jsx)("meta",{itemprop:"name",content:null!==(i=null!==(c=null===t||void 0===t||null===(s=t.event)||void 0===s||null===(p=s.products)||void 0===p||null===(m=p[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,h.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,h.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,h.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,h.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,h.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,h.jsx)("meta",{itemprop:"embedUrl",content:null!==(E=null===t||void 0===t||null===(C=t.event)||void 0===C?void 0:C.thumbnail_image)&&void 0!==E?E:""}),(0,h.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,h.jsxs)("video",{ref:k,className:"whatmore-video-player-muted",width:D,height:W,preload:"metadata",loop:!0,playsInline:!0,poster:"57939755089"==O?"":t.poster,muted:null===(I=t.isVideoMuted)||void 0===I||I,style:{backgroundColor:"white",borderRadius:t.borderRadius,objectFit:"cover"},children:[(0,h.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,h.jsx)("source",{src:t.url,type:"video/mp4"}),(0,h.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,h.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,E,C,A,P,I,k,$,L,N;const[O,W,D]=(0,r.A)({triggerOnce:!0}),R=(0,l.Xd)("whatmoreShopId"),M=(0,o.useRef)(null),q=(0,o.useRef)(null);if((0,o.useEffect)(()=>{if(q.current&&clearTimeout(q.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(()=>{q.current=setTimeout(()=>{M.current&&t.isPlaying&&M.current.play().catch(()=>{})},500)})}}else M.current.play()}else M.current.pause();return()=>{q.current&&clearTimeout(q.current)}},[t.isPlaying,W,R]),(0,c.I)(t.event))return(0,h.jsx)(s.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});if("75649450207"===R)return(0,h.jsx)(s.A,{height:t.height,width:t.width,url:(0,d.tQ)(t.event),isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const V=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200,z=(0,i.s)(null!==t&&void 0!==t&&t.event?(0,d.tQ)(t.event):void 0);if((0,a.MN)())return(0,h.jsx)(p,{isVideoMuted:t.isVideoMuted,event:null===t||void 0===t?void 0:t.event,borderRadius:t.borderRadius,height:"100%",width:"100%",poster:z,url:(0,i.s)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:V});const F=null!==(n=t.height)&&void 0!==n?n:"100%",B=null!==(u=t.width)&&void 0!==u?u:"100%";return(0,h.jsx)("div",{ref:O,style:{width:F,height:B,overflow:"hidden",display:"flex",alignItems:"center"},children:W||t.eagerLoad||"51394281658"==R||"8968077397"==R?(0,h.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:F,height:B},children:[(0,h.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,h.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,h.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,h.jsx)("meta",{itemprop:"contentUrl",content:null!==(E=null===t||void 0===t||null===(C=t.event)||void 0===C?void 0:C.thumbnail_image)&&void 0!==E?E:""}),(0,h.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,h.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,h.jsx)("meta",{itemprop:"embedUrl",content:null!==(I=null===t||void 0===t||null===(k=t.event)||void 0===k?void 0:k.thumbnail_image)&&void 0!==I?I:""}),(0,h.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,h.jsxs)("video",{ref:M,className:"whatmore-video-player-muted",width:B,height:F,preload:"metadata",loop:!0,playsInline:!0,autoPlay:!0,muted:null===(N=t.isVideoMuted)||void 0===N||N,poster:"57939755089"==R?"":z,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,h.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,h.jsx)("source",{src:(0,i.s)(t.url),type:"video/mp4"}),(0,h.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,h.jsx)("div",{width:B,height:F,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(69),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(69),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 Po},$du:function(){return to},$lz:function(){return M},A5I:function(){return v},AFg:function(){return ve},AJI:function(){return S},ALN:function(){return Xt},AmR:function(){return Pn},B6P:function(){return ae},BLb:function(){return W},BRY:function(){return Sn},BcY:function(){return dt},Br1:function(){return Fn},C1J:function(){return Rt},CBm:function(){return co},Cf:function(){return Cn},CfJ:function(){return Te},CpV:function(){return L},D2A:function(){return Yt},D7t:function(){return J},DGu:function(){return So},DLl:function(){return Qe},DNc:function(){return E},DiI:function(){return ft},DmD:function(){return Be},E8r:function(){return Io},FKG:function(){return St},FVo:function(){return De},FZM:function(){return yt},FlI:function(){return ln},Fwt:function(){return Ce},FyB:function(){return N},G0Q:function(){return U},GSq:function(){return Mt},GX0:function(){return b},GZ2:function(){return ko},Gc6:function(){return se},GvQ:function(){return Vt},H$k:function(){return pt},H0Z:function(){return oe},HKH:function(){return Ct},HWj:function(){return En},Hfu:function(){return P},Idi:function(){return Qt},If9:function(){return Ve},JAc:function(){return m},JQp:function(){return jo},JSQ:function(){return Yn},JiT:function(){return G},JwJ:function(){return lo},KFN:function(){return ze},KMo:function(){return q},KPq:function(){return y},KVz:function(){return Qn},KZe:function(){return Tt},KnH:function(){return me},Kr7:function(){return Nn},L0y:function(){return et},LGx:function(){return mn},LOH:function(){return un},LPW:function(){return He},LrK:function(){return Kt},M$H:function(){return ie},M3_:function(){return gn},MJ6:function(){return dn},MPe:function(){return ht},MRv:function(){return Ie},MdM:function(){return hn},Mq2:function(){return ke},N0t:function(){return Pt},NCy:function(){return Ke},N_4:function(){return Tn},Nzx:function(){return Lt},O86:function(){return Ht},OC6:function(){return z},OSd:function(){return f},Odx:function(){return tt},Pjz:function(){return rt},PpQ:function(){return Je},Q$:function(){return go},QNr:function(){return Wn},QSX:function(){return oo},Qed:function(){return We},R2w:function(){return Ut},R6d:function(){return yn},R7q:function(){return ro},R8W:function(){return fe},RG3:function(){return yo},Rdb:function(){return C},SGs:function(){return ue},SK$:function(){return mt},SOt:function(){return Se},Spk:function(){return R},TH:function(){return po},TOK:function(){return vo},TYM:function(){return Oe},Tr1:function(){return Gn},Tzr:function(){return r},U74:function(){return bt},Uht:function(){return lt},UlM:function(){return $e},UmS:function(){return An},Usu:function(){return wn},VCz:function(){return D},VYo:function(){return Fe},VhI:function(){return kn},ViG:function(){return en},Vpi:function(){return at},Vwo:function(){return Wt},WDJ:function(){return Xe},WH1:function(){return fo},WRx:function(){return $n},Wc_:function(){return A},Woi:function(){return ct},WsK:function(){return Ot},XQu:function(){return It},XYM:function(){return F},YE3:function(){return zt},YOR:function(){return s},Y_l:function(){return B},YcK:function(){return Ee},YqT:function(){return xo},ZX9:function(){return nn},ZzM:function(){return $t},_2D:function(){return Gt},_W0:function(){return ee},_hU:function(){return jt},_zx:function(){return Hn},aEh:function(){return Ao},aO7:function(){return ao},aRV:function(){return mo},ath:function(){return uo},bQo:function(){return k},br0:function(){return g},buK:function(){return Bt},cQ7:function(){return eo},cYm:function(){return _e},cbh:function(){return Zn},dLE:function(){return Dt},dmA:function(){return tn},dnh:function(){return it},dzp:function(){return cn},ei:function(){return T},ek9:function(){return x},esc:function(){return _t},fDZ:function(){return Nt},fHt:function(){return Kn},fpt:function(){return kt},fwF:function(){return no},gZ6:function(){return Eo},ga9:function(){return X},gcj:function(){return Q},gld:function(){return qn},gq8:function(){return Dn},gvj:function(){return he},hbj:function(){return te},hep:function(){return wo},hpk:function(){return vn},i2h:function(){return zn},i6j:function(){return Vn},iQ5:function(){return Ye},igk:function(){return H},imx:function(){return ut},isL:function(){return Jt},ivI:function(){return w},ivR:function(){return Ue},jLA:function(){return gt},jWS:function(){return re},jpW:function(){return je},jsS:function(){return Ln},kZI:function(){return Ze},kb:function(){return _},kcl:function(){return qe},klK:function(){return Re},l3V:function(){return nt},lDJ:function(){return xe},m4S:function(){return j},m5c:function(){return To},mJ$:function(){return vt},mOK:function(){return bn},mRH:function(){return In},mlY:function(){return _o},moP:function(){return fn},n5O:function(){return Me},n8Q:function(){return qt},nP1:function(){return d},nWM:function(){return h},naM:function(){return pe},o9q:function(){return we},oB_:function(){return le},oZc:function(){return an},ogW:function(){return Bn},ol5:function(){return rn},p2R:function(){return st},p6A:function(){return Un},pUQ:function(){return Zt},pbJ:function(){return de},qAx:function(){return ge},qLA:function(){return Y},qw1:function(){return Ne},rC6:function(){return ye},rEM:function(){return I},rMH:function(){return be},rh$:function(){return Et},rsz:function(){return Xn},s0t:function(){return Pe},sIk:function(){return Ae},sa6:function(){return Z},tM2:function(){return _n},tSy:function(){return $},tbf:function(){return Jn},tik:function(){return ne},u06:function(){return io},u1b:function(){return p},uJl:function(){return u},uSp:function(){return ho},uXw:function(){return bo},ub$:function(){return xn},uoB:function(){return Mn},v8m:function(){return jn},vDV:function(){return pn},vfi:function(){return Ft},vvD:function(){return ot},vvU:function(){return so},vw2:function(){return Rn},w4b:function(){return Le},wQ2:function(){return xt},wtw:function(){return sn},xIo:function(){return ce},xkB:function(){return on},xku:function(){return Co},y3u:function(){return Ge},yD5:function(){return V},yW$:function(){return At},yt9:function(){return l},z00:function(){return O},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")},h=function(t){return c(0,"add_to_cart_button_type")},p=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")},E=function(t){return c(0,"show_swipe_indicator_in_landscape")},C=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")},I=function(t){return c(0,"order_tracking->initiate_order_tracking_event_after_atc")},k=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")},N=function(t){return c(0,"atc_config->brand_atc_button_padding_in_px")},O=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")},q=function(t){return c(0,"utm->utm_medium_checkout_page")},V=function(t){return c(0,"utm->utm_medium_cart_page")},z=function(t){return c(0,"banner_config->is_banner_clickable")},F=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")},X=function(t){return c(0,"banner_config->landscape_aspect_ratio")},U=function(t){return c(0,"banner_config->portrait_aspect_ratio")},Q=function(t){return c(0,"banner_config->widget_aspect_ratios")},J=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")},ht=function(t){return c(0,"product_config->navigate_to_cart_page")},pt=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")},Et=function(t){return c(0,"product_config->font_price_multiplicator")},Ct=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")},It=function(t){return c(0,"product_config->variant_selection_tile_height_factor")},kt=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")},Nt=function(t){return c(0,"product_page_popup_config->show_product_page_popup")},Ot=function(t){return c(0,"product_page_popup_config->exclude_image_events")},Wt=function(t){return c(0,"collection_page_popup_config->show_collection_page_popup")},Dt=function(t){return c(0,"collection_product_sync")},Rt=function(t){return c(0,"product_page_popup_config->show_product_page_popup_in_preview")},Mt=function(t){return c(0,"product_page_popup_config->ultra_minimize_on_scroll")},qt=function(t){return c(0,"product_page_popup_config->show_popup_on_scroll")},Vt=function(t){return c(0,"product_page_popup_config->popUpZindex")},zt=function(t){return c(0,"product_page_popup_config->auto_close_on_open")},Ft=function(t){return c(0,"product_page_popup_config->show_order_by_date_events")},Bt=function(t){return c(0,"product_page_popup_config->show_all_events")},Ht=function(t){return c(0,"spotlight_config->size_factor")},Xt=function(t){return c(0,"spotlight_config->show_once_to_user")},Ut=function(t){return c(0,"spotlight_config->enable_in_homepage")},Qt=function(t){return c(0,"spotlight_config->enable_page_id_set")},Jt=function(t){return c(0,"spotlight_config->enable_all_pages")},Gt=function(t){return c(0,"spotlight_config->ultraminimize_on_scroll")},Kt=function(t){return c(0,"spotlight_config->position")},Yt=function(t){return c(0,"spotlight_config->horizontal_padding")},Zt=function(t){return c(0,"spotlight_config->vertical_padding")},te=function(t){return c(0,"spotlight_config->enable_spotlight")},ee=function(t){return c(0,"thumbnail_overlay_image_url")},ne=function(t){return c(0,"thumbnail_overlay_position")},oe=function(t){return c(0,"thumbnail_overlay_width_percent")},re=function(t){return c(0,"ga_tracking_id")},ie=function(t){return c(0,"ga_config->is_ga_4")},ae=function(t){return c(0,"ga_config->is_ga_3")},ce=function(t){return c(0,"ga4_tracking_id")},se=function(t){return c(0,"ga_config->use_existing_ga_id")},ue=function(t){return c(0,"show_whatmore_label_in_landscape_view")},le=function(t){return c(0,"buy_now_config->show_buy_now_button")},de=function(t){return c(0,"buy_now_config->show_custom_buy_now_button")},he=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")},me=function(t){return c(0,"buy_now_config->view_more_button_text")},fe=function(t){return c(0,"buy_now_config->enable_shopflo_checkout")},ve=function(t){return c(0,"stories_config->show_stories_in_landscape_mode")},ge=function(t){return c(0,"stories_config->stories_border_colors")},_e=function(t){return c(0,"stories_config->stories_title_font_factor")},we=function(t){return c(0,"stories_config->stories_title_font_color")},ye=function(t){return c(0,"stories_config->show_stories_in_mobile_mode")},be=function(t){return c(0,"stories_config->story_tiles_spacing_factor")},xe=function(t){return c(0,"stories_config->story_show_navigation_arrows")},Se=function(t){return c(0,"backend_config->use_cdn_cache_endpoint")},je=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},Te=function(t){return c(0,"cdn_config->fallback_cdn")},Ee=function(t){return c(0,"theme_config->event_tile_border_width")},Ce=function(t){return c(0,"theme_config->event_tile_border_color")},Ae=function(t){return c(0,"theme_config->event_view_count_bg_color")},Pe=function(t){return c(0,"theme_config->event_view_count_text_color")},Ie=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")},$e=function(t){return c(0,"product_config->show_cta_icon")},Le=function(t){return c(0,"product_config->get_price_and_currency_details_from_api")},Ne=function(t){return c(0,"product_config->product_tile_bottom_margin")},Oe=function(t){return c(0,"product_config->show_first_product_tile")},We=function(t){return c(0,"product_config->shop_now_text")},De=function(t){return c(0,"event_tile_config->view_count_template")},Re=function(t){return c(0,"event_tile_config->show_views")},Me=function(t){return c(0,"event_tile_config->animate_on_focus")},qe=function(t){return c(0,"event_tile_config->space_between_tiles")},Ve=function(t){return c(0,"event_tile_config->gap_between_tiles")},ze=function(t){return c(0,"event_tile_config->playback_icon_color")},Fe=function(t){return c(0,"event_tile_config->shadow_config")},Be=function(t){return c(0,"event_tile_config->show_product_thumbnail")},He=function(t){return c(0,"event_tile_config->show_product_tile")},Xe=function(t){return c(0,"event_tile_config->show_atc_on_hover_premium")},Ue=function(t){return c(0,"event_tile_config->bg_config")},Qe=function(t){return c(0,"event_tile_config->show_heading_in_single_tile_carousel")},Je=function(t){return c(0,"event_tile_config->event_thumbnail_b_title_font_multiplier")},Ge=function(t){return c(0,"event_tile_config->event_thumbnail_b_price_font_multiplier")},Ke=function(t){return c(0,"brand_metadata->domain_context")},Ye=function(t){return c(0,"social_sharing->activate_link_sharing")},Ze=function(t){return c(0,"social_sharing->link_sharing_title")},tn=function(t){return c(0,"social_sharing->link_sharing_text")},en=function(t){return c(0,"social_sharing->show_share_text_below_button")},nn=function(t){return c(0,"social_sharing->show_whatmore_branding")},on=function(t){return c(0,"social_sharing->social_icons_size_multiplier")},rn=function(t){return"73596731648"===t?.7:1},an=function(t){return c(0,"social_sharing->whatsapp_icon_active")},cn=function(t){const e=c(0,"social_sharing->whatsapp_icon_redirect_url");return"Free"===l(t)?null:e},sn=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text")},un=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text_font_multiplier")},ln=function(t){return c(0,"social_sharing->show_liked_text_below_button")},dn=function(t){return c(0,"social_sharing->like_fill_color")},hn=function(t){return c(0,"social_sharing->activate_likes")},pn=function(t){return c(0,"social_sharing->share_text_threshold_count")},mn=function(t){return c(0,"social_sharing->like_text_threshold_count")},fn=function(t){return c(0,"social_sharing->share_product_url_link")},vn=function(t){return c(0,"navigation_config->enable_browser_navigation_on_click")},gn=function(t){return"video-shopping"},_n=function(t){return c(0,"shopnow_config->brand_color_option_border_radius")},wn=function(t){return c(0,"shopnow_config->brand_color_option_border_color")},yn=function(t){return c(0,"shopnow_config->brand_divider_color")},bn=function(t){return c(0,"shopnow_config->is_discount_label_percent")},xn=function(t){return c(0,"shopnow_config->discount_percent_bg_color")},Sn=function(t){return c(0,"shopnow_config->discount_text_color")},jn=function(t){return c(0,"shopnow_config->discount_label_border_radius")},Tn=function(t){return c(0,"event_tile_with_product_info->landscape_font_multiplier")},En=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")},An=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image")},Pn=function(t){return c(0,"event_tile_with_product_info->show_product_info")},In=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")},$n=function(t){return c(0,"event_tile_with_product_info->atc_button_color")},Ln=function(t){return c(0,"event_tile_with_product_info->atc_button_text_color")},Nn=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")},Wn=function(t){return c(0,"event_tile_with_product_info->show_price_info")},Dn=function(t){return c(0,"event_tile_product_card->navigate_to_product")},Rn=function(t){return c(0,"price_config->show_price_before_mrp")},Mn=function(t){return c(0,"price_config->price_text_color")},qn=function(t){return c(0,"price_config->mrp_text_color")},Vn=function(t){return c(0,"price_config->font_weight")},zn=function(t){return c(0,"product_config->product_tile_custom_text")},Fn=function(t){return c(0,"product_config->product_tile_custom_text_color")},Bn=function(t){return c(0,"product_config->product_tile_shopnow_custom_font_style")},Hn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text_color")},Xn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text")},Un=function(t){return c(0,"preview_config->product_tile_custom_text")},Qn=function(t){return c(0,"preview_config->video_player_bg_color")},Jn=function(t){return c(0,"preview_config->video_player_height")},Gn=function(t){return c(0,"preview_config->event_tile_show_thumbnail_image")},Kn=function(t){return c(0,"carousel_config->width_multiplier")},Yn=function(t){return c(0,"carousel_config->show_navigation_arrows_in_portrait")},Zn=function(t){return c(0,"carousel_config->is_event_loop")},to=function(t){return 0},eo=function(t){return c(0,"carousel_config->play_partially_visible_slides_in_portrait")},no=function(t){return c(0,"video_player_config->pause_videos_after_delay_landscape")},oo=function(t){return c(0,"video_player_config->video_player_bg_color")},ro=function(t){return c(0,"video_player_config->video_player_height")},io=function(t){return c(0,"video_player_config->thumbnail_video_player_height")},ao=function(t){return c(0,"video_player_config->play_video_on_hover")},co=function(t){return c(0,"video_player_config->set_height_as_auto")},so=function(t){return c(0,"show_homepage_videos_in_pdp")},uo=function(t){return c(0,"brand_s3_directory")},lo=function(t){return c(0,"quiz_config->is_active")},ho=function(t){return c(0,"quiz_config->swipe_number_show_question")},po=function(t){return c(0,"quiz_config->lead_gen_coupon_code")},mo=function(t){return c(0,"quiz_config->lead_gen_sub_heading")},fo=function(t){return c(0,"recommendation_config->show_recommended_events")},vo=function(t){return c(0,"recommendation_config->show_collection_events")},go=function(t){return c(0,"event_tile_config->show_product_tile_thumbnail_template_a")},_o=function(t){return c(0,"video_player_config->keep_videos_muted")},wo=function(t){return c(0,"brand_ui_theme")},yo=function(t){return c(0,"brand_video_view_count")},bo=function(t){return c(0,"brand_theme_color")},xo=function(t){return c(0,"brand_theme_font")},So=function(t){return c(0,"brand_text_color")},jo=function(t){return c(0,"homepage_carousel->carousel_title_font")},To=function(t){return c(0,"product_info_text_color")},Eo=function(t){return c(0,"product_config->show_product_type")},Co=function(t){return c(0,"oos_config->show_oos_videos")},Ao=function(t){return c(0,"event_config->show_only_tagged_events")},Po=function(t){return c(0,"oos_config->show_oos_product_tile")},Io=function(t){return c(0,"oos_config->show_sold_out_label_oos")},ko=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(3737),u=(n(5547),n(4234));const l=(0,o.Xd)("whatmoreShopId");(0,o.Xd)("whatmoreLoggingActive");function d(t){const e="true"==localStorage.getItem("whatmoreActivateLogs");if((0,s.l3)(l))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 h=function(){const{whatmoreRootId:t}=(0,r.useContext)(u.BR)||{};var[e,n]=d(t);const[o,i]=(0,r.useState)([e>n?"portrait":"landscape",e,n]);return(0,r.useLayoutEffect)(()=>{function e(){var[e,n]=d(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=h(),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}},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),h=n(4475),p=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.BR),s=a.templateType,u=(0,v.l2)(s),d=null!==(e=t.iconSize)&&void 0!==e?e:30;function h(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=>{h(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=>{h(t)}})})},w=n(6720),y=n(3168),b=n(7372),x=n(6431),S=n(2058),j=n(428),T=n(9888),E=n(7156),C=n(221),A=n(5405),P=n(6380),I=n(8762);function k(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,a=t.activeEventIndex,c=t.setActiveEventIndex,d=(0,i.Xd)("whatmoreShopId"),h="portrait"===t.mode;function p(o){o.stopPropagation(),n(!e),(0,y.MN)()&&((0,P._)()?(0,b.bo)():(0,I.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)||p(t)}}),(0,l.qLA)(d)&&(0,g.jsx)(_,{isMuted:e,onToggle:t=>{p(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":h?"12px":"14px",height:h?"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:p})]})}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.BR),I=(0,i.Xd)("whatmoreShopId"),$=t.events,L=t.activeEventIndex,N=t.setActiveEventIndex,O=$[L],W=(0,p.lP)(O),D=(0,p.cb)(O),R=(0,p.tQ)(O,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,h.s)("portrait"===n?W:D),q=f/100*(0,l.igk)(I),V=f/100*(0,l.Y_l)(I),z=(0,x.i)((0,l.gcj)(I),P,"portrait"===n),F=null!==z&&void 0!==z?z:"portrait"===n?(0,l.G0Q)(I):(0,l.ga9)(I),B="portrait"===n?s*q:s*V,H=(0,l.D7t)(I),X=H?s*F:B*F,U=(O.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,Q=null!=(null===U||void 0===U?void 0:U.cta_link);return(0,g.jsxs)("div",{ref:v,onClick:()=>{(0,T.registerClickEvent)({userInteractionType:E.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:b,event:$[L]}),(0,l.OC6)(I)&&null!==U&&void 0!==U&&U.cta_link&&window.open(U.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:H?"100%":B,height:X,borderWidth:(0,l.YcK)(I),borderColor:(0,l.Fwt)(I),overflow:"hidden",cursor:"pointer"},children:["28273541192"===I?(0,g.jsx)(A.A,{height:"100%",width:"100%",url:M,isPlaying:_,event:{...O,poster_image:R},isVideoMuted:!_||u,source:C.N.BANNER}):(0,g.jsx)(w.A,{height:"100%",width:"100%",url:M,isPlaying:_,event:{...O,poster_image:R},isVideoMuted:!_||u,setDuration:t.setDuration,source:C.N.BANNER}),(0,g.jsx)(k,{isCTAPresent:Q,events:$,activeEventIndex:L,setActiveEventIndex:N,event:O,mode:n,onMuteToggle:()=>m(!u),initialMuteState:u}),(0,l.XYM)(I)&&(null===O||void 0===O||null===(e=O.cta)||void 0===e?void 0:e.length)>1&&U&&(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:O,cta:U,fontFactor:.6})})]})};var L=function(t){const{whatmoreRootId:e}=(0,o.useContext)(c.BR),[n,s]=(0,o.useState)(0),u=t.events,[l,d]=(0,o.useState)(-1),[h]=(0,i.QN)("whatmoreShopId"),[p]=(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"===h&&"portrait"==p?"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),h=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},p=(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&&h(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&&p?(0,u.jsx)("img",{src:p,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),h=n(7372),p=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),E=t.timeUpdateCallback,{whatmoreIsPreviewMode:C}=(0,o.useContext)(v.BR),A=null!==(e=t.isVideoMuted)&&void 0!==e?e:a,P=null!==(n=t.height)&&void 0!==n?n:"100%",I=null!==(r=t.width)&&void 0!==r?r:"100%",k=(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,h.Z4)(l.current,t.url,A||!t.isPlaying,t.isPlaying,n)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",()=>{S(!1)}),E&&e.addEventListener("timeupdate",t=>{if(!e)return;const n=e.currentTime,o=e.duration;E(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)(k)&&t.source==p.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,h.rq)(l.current)},[]);const $=(0,d.Xd)("whatmoreLandingLocationType");return(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:I,height:P,overflow:"hidden",backgroundColor:C?(0,m.KVz)(k):(0,m.QSX)(k),filter:t.showQuestion?"blur(24px)":""},children:[(0,u.jsx)("div",{ref:l,style:{width:x?"0px":"100%",height:x?"0px":C?(0,m.tbf)(k):(0,m.CBm)(k)&&"product"==$?"auto":(0,m.R7q)(k)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==k&&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:I,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:I,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:I,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)(),[h,_]=(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.BR),E=(0,d.Xd)("whatmoreLandingLocationType"),C=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,I=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:C,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:h?"100%":"0px",height:h?T?(0,m.tbf)(S):(0,m.CBm)(S)&&"product"==E?"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==p.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:I,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&&!h&&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:I,style:{height:"100%",width:A,objectFit:"cover",animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!h&&!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:I,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:C,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"),h=c>n,p=c>=481,m=null!==t&&void 0!==t&&t.isEmbed?60:"portrait"==e?d:l,f=!("portrait"!=e||!p),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(h){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,E=.8*w;"portrait"==e?(T*=g,E*=g,[w,y,b,x]=[E,T,S(c/(1.2*T)),0],j[i._]=i.vF,j[i.dl]=i.tn):([w,y,b,x]=[E,T,(c-2*s)/(1.1*T),s],j[i._]=i.vF,j[i.dl]=i.nN)}else{T=y,E=w;"portrait"==e?(T=T*g*.9,E=E*g*.9,[w,y,b,x]=[E,T,S(c/(1.15*T)),0],j[i._]=i.b4,j[i.dl]=i.tn):(T=.7*y,E=.7*w,[w,y,b,x]=[E,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,h=Math.round,p="string"==typeof n;return"number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||n&&!p?null:(d=e.length>9,d=p?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=h(s*u.r+t*l.r),a=h(s*u.g+t*l.g),c=h(s*u.b+t*l.b)):(r=h((s*u.r**2+t*l.r**2)**.5),a=h((s*u.g**2+t*l.g**2)**.5),c=h((s*u.b**2+t*l.b**2)**.5)),p=u.a,l=l.a,u=p>=0||l>=0,p=u?p<0?l:l<0?p:p*s+l*t:0,d?"rgb"+(u?"a(":"(")+r+","+a+","+c+(u?","+h(1e3*p)/1e3:"")+")":"#"+(4294967296+16777216*r+65536*a+256*c+(u?h(255*p):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),h=n.n(d),p=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,h=d+n,p=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>=h||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>=p?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"),[E]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[C]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[A]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),I=(0,s.Xd)("whatmoreShopId"),k=(0,s.Xd)("isWhatmorePreviewMode");var $=j,L=T,N=E;_[c.dl]===c.nN&&($=C,L=A,N=P);const[O,W]=(0,r.useState)(["initial",window.pageYOffset]),[D,R]=(0,r.useState)(!1),[M]=(0,r.useState)(S),q=null!==(e=t.isSpotlight)&&void 0!==e&&e,V=_[c.dl]===c.nN?1.3*(0,m.O86)(I):1.1*(0,m.O86)(I),z=q?V:1.1;u*=z,d*=z;const F=q?(0,m.LrK)(I):$,B=q?(0,m._2D)(I):(0,m.GSq)(I),[H,X]=(0,r.useState)(!q&&(0,m.n8Q)(I)),U=!q&&(0,m.YE3)(I);function Q(t,e){W(t),t[1]<=500?R(!1):e!=D&&(R(e),X(!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||(Q([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)},[O]),(0,o.j)({ref:n,handler:()=>{Q(["scrolled-up",O[1]],!0)}});const J=t.event,G=t.inVideoClick,K=t.closeClick,Y=.25*d,Z=.5*d,tt=x.includes(I),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)(I),ct=Number(q?(0,m.pUQ)(I):N)||0,st=!(H&&!B)&&D&&B,ut=b({whatmoreShopId:I,baseBottom:ct,widgetWidth:st?rt:d,widgetHeight:st?rt*(16/9):u,side:F,horizontalPadding:st?16:Number(q?(0,m.D2A)(I):L)||0});var lt=!1,dt=0,ht=0;function pt(t){lt=t}const mt=(0,f.jsx)("div",{className:"73490825529"==I?"whatmore-root wht-popup":"wht-popup",children:H&&!B?(0,f.jsx)(f.Fragment,{}):D&&B?(0,f.jsx)("div",{style:"left"===F?{left:"16px",bottom:ut+"px",position:"fixed",zIndex:at}:{right:"16px",bottom:ut+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{onClick:()=>{Q(["initial",O[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"===F?"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:J.thumbnail_image,isPlaying:!1,event:J})})}),(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)(p.A,{sx:{color:"white",fontSize:2*Y+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(h(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:k?"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,ht=o},onDrag:(t,e)=>{pt(!0)},onStop:(t,e)=>{lt&&(Math.abs(e.x-dt)>5||Math.abs(e.y-ht)>5)?pt(!1):(U&&K(t),G(J))},children:(0,f.jsx)("div",{ref:n,style:"left"===F?{left:q?(0,m.D2A)(I)+"px":L+"px",bottom:ut+"px",position:"fixed",zIndex:at}:{right:q?(0,m.D2A)(I)+"px":L+"px",bottom:ut+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==I?u+"px":d+"px",height:t.isSpotlight&&"60122562760"==I?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"===F?"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"==I?16/9:9/16},children:(0,f.jsx)(a.A,{url:J.thumbnail_image,isMuted:!0,isPlaying:!0,event:J})})}),(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"==I||"67211264052"==I;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 h},sendVideoViewEventToGA:function(){return p}});var o,r=n(3405),i=n(2385),a=n(5547);const c="Whatmore Video Shopping",s=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,u={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},d={homepage:"Home Page",product_page:"Product Page"};async function h(t){if((0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.initialize((0,a.xIo)(t)),s&&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}),s&&console.debug("Whatmore: initialized GA3")}}async function p(t,e,n){(0,a.B6P)(t)&&null!==(0,a.jWS)(t)&&(r.Ay.event({category:c,action:u.video_view,label:d[e]+":"+l[n]}),s&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.event({category:c,action:u.video_view+":"+d[e]+":"+l[n],value:1,nonInteraction:!1}),s&&console.debug("Whatmore: pushed view event to GA4"))}},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.d(e,{CP:function(){return g},Lt:function(){return s},R3:function(){return _},RX:function(){return h},_N:function(){return v},addWhatmoreAttributeToCart:function(){return l},iL:function(){return m},js:function(){return u},oV:function(){return p},tN:function(){return f}});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,p={},m=null,f=null,v=null,g={};const _=(0,o.Xd)("whatmoreShopId");let w=(0,c.CK)(),y=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,b=w.length>0;w.forEach(t=>{g.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(g[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 x=localStorage.getItem("_whatmore_session_id"),S=localStorage.getItem("wht_user_group"),j=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,T=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,E=localStorage.getItem("_whatmore_user_id"),C=localStorage.getItem("_whatmore_last_video_view_session"),A=(()=>{try{var t;return JSON.parse(null!==(t=localStorage.getItem("_whatmore_add_to_cart_products"))&&void 0!==t?t:"[]")}catch(e){return[]}})(),P=new Set(A.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[]}})(),k=new Set(I.map(t=>String(null===t||void 0===t?void 0:t.variant_id))),$={buynow:3,direct:2,indirect:1};await u().then(t=>t.json()).then(e=>{s=e.token,n=e.attributes;let a={};try{var u,w;const t=null===(u=n)||void 0===u?void 0:u._wtot;a="string"===typeof t?JSON.parse(t):null!==t&&void 0!==t?t:{};const o=new Set((null!==(w=e.items)&&void 0!==w?w:[]).map(t=>String(null===t||void 0===t?void 0:t.product_id)));a=Object.fromEntries(Object.entries(a).filter(([t])=>o.has(String(t))))}catch(N){a={}}let A=[];if(A=!0===t?e.items.map(t=>{const e=g[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=g[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==A.length)return console.debug("Whatmore :: no cart items available for view products"),null;let I={},L={};if(null!=x){const t={wht_session_id:null!==C&&void 0!==C?C:x,wht_user_id:E,...S&&{wht_user_group:S},...j&&{wht_ab_test_id:j},...null!=T&&{wht_ab_test_version:T}};L={[i.Uv]:(0,i.dK)(_)?JSON.stringify(t):t,[i.Um]:""}}if(y||b){const t="1";L[b?i.Rm:i.AG]=t,L[b?i.bZ:i.SW]=""}!(0,r.tSy)(_)&&(L.hasOwnProperty(i.Uv)||L.hasOwnProperty(i.Rm)&&!n.hasOwnProperty(i.Rm)||L.hasOwnProperty(i.AG)&&!n.hasOwnProperty(i.AG))&&d(L),A.map((e,n)=>{if(l=e.key,h=e.quantity,p=e.properties,m=e.widget_info,f=e.location,v=e.userType,("63330517149"==_||"77604192550"==_||"64157352183"==_||"62758289602"==_||"65972830359"==_||"75310563627"==_||(0,r.CpV)(_))&&g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){const t="65972830359"==_||"75310563627"==_||(0,r.CpV)(_),n=t?"_wtot":"wtot";let o=(0,c.wm)()+`#${m}`;if(t){var s;const t=k.has(String(null===e||void 0===e?void 0:e.variant_id))?"buynow":P.has(String(null===e||void 0===e?void 0:e.product_id))?"direct":"indirect",n=a[null===e||void 0===e?void 0:e.product_id];o=(null!==(s=$[("string"===typeof n?n:"").split(":")[1]])&&void 0!==s?s:0)>=$[t]?n:o+`:${t}`}I={...I,[null===e||void 0===e?void 0:e.product_id]:o};d({[n]:t?{...a,...I}:I})}null!==p&&i.B_ in p||!g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))||async function(t,e,n,a,s="default",u,l,d,h){const p=(0,o.Xd)("whatmoreShopId"),m=l?(0,c.wm)()+("72201044272"==p?`#${a}#${s}#${u?"olduser":"newuser"}`:`#${a}`):h?"_wt_vs":d?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p||"63046287536"==p||"65972830359"==p||"75310563627"==p||"86968402213"==p||(0,r.CpV)(p))return;let f={id:t,quantity:e,properties:{...m?{[i.B_]:m}:{},...n}};const v=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)})}(l,h,p,m,f,v,!0,y,b)})}).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)})}async function d(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"),h=localStorage.getItem("wht_user_group"),p=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,...h&&{wht_user_group:h},...p&&{wht_ab_test_id:p},...null!=m&&{wht_ab_test_version:m}},e={[i.Uv]:(0,i.dK)(n)?JSON.stringify(t):t,[i.Um]:""};await d(e)}return Promise.resolve({ok:!0,json:()=>{}})}function p(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 m(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 f(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 v(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 g(t,e,n,a,s="default",u,l,d,h){const p=(0,o.Xd)("whatmoreShopId"),m=l?(0,c.wm)()+("72201044272"==p?`#${a}#${s}#${u?"olduser":"newuser"}:direct`:`#${a}:direct`):h?"_wt_vs":d?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p||"65972830359"==p||"75310563627"==p||"86968402213"==p||(0,r.CpV)(p))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 _(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]}},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]}},9888:function(t,e,n){n.r(e),n.d(e,{WHATMORE_EVENT_META_ACTION_MAP:function(){return y},registerClickEvent:function(){return b},registerOutsideAtcFunnel:function(){return x},registerSwipeEvent:function(){return j},trackPageVisit:function(){return T},videoPlayBackEvent:function(){return S}});var o,r=n(5443),i=n(2567),a=n(7156);const c=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;async function s(t){const e=(0,i.Ry)();if(["56352899156"].includes(e)&&"object"==typeof window.dataLayer){var n,o,r,s;const e=(l=t.selection_type)==a.O.EVENT_VIEW?"whatmore_video_click_event":l==a.O.PRODUCT_TILE_ATC_CLICKED||l==a.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":l==a.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":l==a.O.VIDEO_LIKED?"whatmore_video_like_event":l==a.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":l==a.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!e)return;const i={event:"video_interaction",page_type:null!==(u=t.page_type,n=u.startsWith("index")?"home":u.startsWith("product")?"product_page":u.startsWith("collection")||u.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!==(s=t.product_name)&&void 0!==s?s:"NA"};window.dataLayer.push(i),c&&console.debug("Whatmore: pushed event to dataLayer",i)}var u,l}function u(t,e,n={},o){var r;const i=y[t];if(!i)return;const c=i.isActionEnabled(),s=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[i.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===a.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",i.action,o),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,o)})},500)})()}var l=n(6694),d=n(9128),h=n(9383);const p=t=>()=>(0,r.hG)((0,r.VA)(),t),m=p("meta_pixel_events->video_click_event"),f=p("meta_pixel_events->video_watch_event"),v=p("meta_pixel_events->video_like_event"),g=p("meta_pixel_events->video_share_event"),_=p("meta_pixel_events->video_atc_event"),w=p("meta_pixel_events->video_product_tile_click_event"),y={[a.O.EVENT_VIEW]:{isActionEnabled:m,action:"whatmore_video_click_event",customAction:"video_clicked"},[a.O.VIDEO_PLAYBACK]:{isActionEnabled:f,action:"whatmore_video_watch_event",customAction:"video_watched"},[a.O.VIDEO_LIKED]:{isActionEnabled:v,action:"whatmore_video_like_event",customAction:"video_liked"},[a.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:g,action:"whatmore_video_share_event",customAction:"video_shared"},[a.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:_,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[a.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:_,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[a.O.SHOPNOW_CLICKED]:{isActionEnabled:w,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[a.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:w,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function b({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}){var a,c,d,h;((0,l.trackWhatmoreAnalyticsEvent)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}),t in y)&&(u(t,null!==(a=null===r||void 0===r?void 0:r[1])&&void 0!==a?a:null===r||void 0===r?void 0:r[0],e,o),s({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(c=null===r||void 0===r||null===(d=r[1])||void 0===d?void 0:d.title)&&void 0!==c?c:null===r||void 0===r||null===(h=r[0])||void 0===h?void 0:h.title}))}function x({widgetSourceDetails:t,event:e,product:n,userInteractionMetadata:o}){var r;if(!e)return;(0,h.increaseViewCount)(e);const i=n?[n]:null!==(r=e.products)&&void 0!==r?r:[];b({userInteractionType:a.O.EVENT_VIEW,userInteractionMetadata:o,widgetSourceDetails:t,event:e,productList:i,ctaList:e.cta}),b({userInteractionType:a.O.PRODUCT_CTA_VIEW,userInteractionMetadata:o,widgetSourceDetails:t,event:e,productList:i,ctaList:e.cta})}function S({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}){var a,c,h,p;(0,d.i)(o)&&((0,l.trackWhatmoreAnalyticsEvent)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}),t in y&&(u(t,null!==(a=null===r||void 0===r?void 0:r[1])&&void 0!==a?a:null===r||void 0===r?void 0:r[0],e,o),s({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!==(c=null===r||void 0===r||null===(h=r[1])||void 0===h?void 0:h.title)&&void 0!==c?c:null===r||void 0===r||null===(p=r[0])||void 0===p?void 0:p.title})))}function j({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}){var a,c,u;((0,l.trackWhatmoreAnalyticsEvent)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}),t in y)&&s({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(a=null===r||void 0===r||null===(c=r[1])||void 0===c?void 0:c.title)&&void 0!==a?a:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function T({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}){(0,l.trackWhatmoreAnalyticsEvent)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[126],{1839:function(e,t,n){function r(e,t){let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent=t}function a(e,t){if(!e||!t)return e||"";const n=document.createElement("style");n.media="not all",n.textContent=e,document.head.appendChild(n);let r=e;try{const e=n.sheet;e&&(o(e.cssRules,t),r=function(e){let t="";for(let n=0;n<e.length;n++)t+=e[n].cssText+"\n";return t}(e.cssRules))}catch(a){}return n.remove(),r}function o(e,t){for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.selectorText&&void 0!==r.style?r.selectorText=i(r.selectorText,t):!r.cssRules||"undefined"!==typeof CSSKeyframesRule&&r instanceof CSSKeyframesRule||o(r.cssRules,t)}}function i(e,t){return function(e){const t=[];let n=0,r="";for(let a=0;a<e.length;a++){const o=e[a];"("===o||"["===o?n++:")"!==o&&"]"!==o||n--,","===o&&0===n?(t.push(r),r=""):r+=o}return t.push(r),t}(e).map(e=>{const n=e.trim();return n?t+" "+n:n}).join(", ")}function s(e,t,n){if(!e)return null;const r=e[t];if(!r||"object"!==typeof r)return Object.assign({},e,{brandCss:""});const a="string"===typeof e.customCss?e.customCss:"",o=e.shopper&&e.shopper.widgets&&e.shopper.widgets[t],i=c(r.widgets,n)||c(o,n),s=i?Object.assign({},r,i):r;return Object.assign({},s,{brandCss:a,perInstance:!!i})}function c(e,t){if(!e||"object"!==typeof e||!t)return null;const n=Array.isArray(t)?t:[t];for(let r=0;r<n.length;r++){const t=n[r];if(null==t||""===t)continue;const a=e[t];if(a&&"object"===typeof a)return a}return null}n.d(t,{GJ:function(){return a},RO:function(){return s},fz:function(){return r}})},5348:function(e,t,n){n.d(t,{renderNeoBanner:function(){return g}});var r=n(7983),a=n(6387),o=n(1839),i=n(9439),s=".wht-neo-banner-overlay{background:var(--wht-neo-banner-overlay,linear-gradient(to top,transparent 70%,rgba(0,0,0,.3)))}.wht-neo-banner[data-wht-mutebtn] .wht-neo-banner-mute{align-items:center;background:var(--wht-neo-banner-mute-bg,rgba(0,0,0,.4));border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;height:var(--wht-neo-banner-mute-size,39px);justify-content:center;padding:0;position:absolute;right:10px;top:10px;width:var(--wht-neo-banner-mute-size,39px);z-index:2}.wht-neo-banner-mute svg{height:55%;width:55%}.wht-neo-banner[data-wht-sound] .wht-neo-banner-mute{opacity:.7}.wht-neo-banner-nav{align-items:center;background:var(--wht-neo-banner-nav-bg,#fff);border:none;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--wht-neo-banner-nav-color,#090a0b);cursor:pointer;display:flex;height:var(--wht-neo-banner-nav-size,36px);justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wht-neo-banner-nav-size,36px);z-index:2}.wht-neo-banner-nav-prev{left:10px}.wht-neo-banner-nav-next{right:10px}.wht-neo-banner-nav svg{display:block;height:42%;width:42%}.wht-neo-banner[data-wht-dots] .wht-neo-banner-dots{align-items:center;bottom:7%;display:flex;gap:var(--wht-neo-banner-dot-gap,24px);justify-content:center;left:0;position:absolute;right:0;z-index:2}.wht-neo-banner-dot{background:var(--wht-neo-banner-dot,#f8eeec);border:none;border-radius:999px;cursor:pointer;height:12px;padding:0;transition:width .2s ease,background .2s ease;width:12px}.wht-neo-banner-dot[data-wht-active]{background:var(--wht-neo-banner-dot-active,#343434);width:25px}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta{background:var(--wht-neo-banner-cta-bg,#fff);border-radius:var(--wht-neo-banner-cta-radius,5px);bottom:10%;color:var(--wht-neo-banner-cta-color,#343434);display:inline-block;font-size:var(--wht-neo-banner-cta-size,15px);font-weight:700;left:50%;padding:10px 22px;position:absolute;text-decoration:none;transform:translateX(-50%);white-space:nowrap;z-index:2}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta[data-wht-empty]{display:none}";const c="https://consumer.whatmore.live",d="banner",l=6e3,u="wht-neo-banner-css",h="wht-neo-banner-critical",p=".wht-neo-banner-widget{width:100%}.wht-neo-banner{position:relative;margin:0 auto;overflow:hidden;cursor:pointer;width:var(--wht-neo-banner-w,var(--wht-neo-banner-w-auto,100%));height:var(--wht-neo-banner-h,var(--wht-neo-banner-h-auto,220px))}.wht-neo-banner-video,.wht-neo-banner-img{width:100%;height:100%;object-fit:cover;display:block;background:#ececec}.wht-neo-banner-overlay{position:absolute;inset:0}.wht-neo-banner-mute,.wht-neo-banner-nav,.wht-neo-banner-dots,.wht-neo-banner-cta{display:none}";async function b(e){let t=null;try{t=new URLSearchParams(window.location.search).get("neoskin")}catch(h){}let n="";const r=t||e&&e.skin;r&&"default"!==r&&"a"!==r&&(n=await(0,a.P)(d,r));const i=r&&"default"!==r?r:"a",c=e&&e.customCss,l="string"===typeof c?c:c&&"object"===typeof c&&"string"===typeof c[i]?c[i]:"";return(0,o.fz)(u,s+"\n"+n+(e&&e.brandCss?"\n"+e.brandCss:"")+(l?"\n"+l:"")),!0}const m=(e,t=null)=>{const n=function(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(e){return null}}(),r=e.split(".").reduce((e,t)=>null==e?void 0:e[t],n);return null==r?t:r};async function v({shopId:e,widgetIdentity:t}){const n=t&&"wgt_default"!==t?`${c}/brand/${e}/eventset?widget_id=${t}&source_type=homepage&source_id=${e}&eventset_type=banner&status=active,active`:`${c}/get_eventset/${e}?eventset_type=banner&source=homepage&source_id=${e}`,{events:a}=(0,r.Po)(await fetch(n).then(e=>e.json()),"banner");return a}const w=e=>"image"===e.event_type;function f(e,t,n,r){var a,o;const s=(0,i.vC)(),c=null!==(a=(0,i.eG)(t))&&void 0!==a?a:s.w,d=s.h>c,l=function(e,t,n){var r;const a=e&&e.querySelector("#"+t),o=a&&(null!==(r=a.getAttribute("data-wh"))&&void 0!==r?r:a.getAttribute("data")),i=null!=o?parseFloat(o):NaN;return isFinite(i)?i:n}(document,"whatmoreVideoTileSize",60)/100*Number(m(d?"banner_config.portrait_multiplier":"banner_config.landscape_multiplier",1)),u=m("banner_config.widget_aspect_ratios"),h=null!==(o=u&&u[n]&&u[n][d?"portrait":"landscape"])&&void 0!==o?o:r&&r[d?"portrait":"landscape"],p=Number(null!==h&&void 0!==h?h:m(d?"banner_config.portrait_aspect_ratio":"banner_config.landscape_aspect_ratio",d?1:.5625)),b=!!m("banner_config.is_full_screen"),v=c,w=v*l;return e.style.setProperty("--wht-neo-banner-w-auto",b?"100%":Math.round(w)+"px"),e.style.setProperty("--wht-neo-banner-h-auto",Math.round((b?v:w)*p)+"px"),d}async function g(e){const{rootElement:t,widgetContainer:r,shopId:a,widgetIdentity:s,bannerArOverride:c,whatmoreRootId:u,onWidgetView:g,onBannerClick:y,onBannerCtaClick:_}=e;if((0,i.V2)(e.storeFlags&&e.storeFlags.viewportSizedTiles),!t||!a)return!1;let x;(0,o.fz)(h,p);try{[x]=await Promise.all([v({shopId:a,widgetIdentity:s}),b((0,o.RO)(e.neoJson,d))])}catch(ae){return!1}const k=()=>{const e=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${u}"]`);e&&e.remove(),t.removeAttribute("data-shimmer-active"),r&&(r.style.minHeight="0px")};if(!x||!x.length)return k(),!0;const C=document.createElement("div");C.className="wht-neo-banner-widget";const E=document.createElement("div");E.className="wht-neo-banner",E.dataset.role="bannerMedia",a&&E.setAttribute("data-wht-shop",a),s&&E.setAttribute("data-wht-widget",s),m("banner_config.show_mute_button")&&E.setAttribute("data-wht-mutebtn","1"),m("banner_config.show_navigation_dots")&&E.setAttribute("data-wht-dots","1"),m("banner_config.show_cta")&&E.setAttribute("data-wht-cta","1");const A=!!m("banner_config.is_banner_clickable"),I=m("banner_config.selected_dot_color");I&&E.style.setProperty("--wht-neo-banner-dot-active",I);let P=f(E,r,s,c);const z=document.createElement("video");z.className="wht-neo-banner-video",z.muted=!0,z.loop=!0,z.playsInline=!0,z.preload="auto",z.setAttribute("muted",""),z.setAttribute("playsinline",""),z.setAttribute("webkit-playsinline","");const T=document.createElement("img");T.className="wht-neo-banner-img",T.alt="",E.appendChild(z),E.appendChild(T);const L=document.createElement("div");L.className="wht-neo-banner-overlay";const N=document.createElement("button");N.type="button",N.className="wht-neo-banner-mute",N.dataset.role="muteButton",N.setAttribute("aria-label","Toggle sound"),N.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M11 5 6 9H2v6h4l5 4V5z" fill="currentColor"/><path d="M16 9l5 6M21 9l-5 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>';const S=e=>{const t=document.createElement("button");t.type="button",t.className="wht-neo-banner-nav wht-neo-banner-nav-"+e,t.dataset.role="navArrows",t.setAttribute("aria-label","prev"===e?"Previous":"Next");const n="prev"===e?"M15 5l-7 7 7 7":"M9 5l7 7-7 7";return t.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="'+n+'" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',t},O=S("prev"),j=S("next"),M=document.createElement("div");M.className="wht-neo-banner-dots",M.dataset.role="dots";const R=x.map((e,t)=>{const n=document.createElement("button");return n.type="button",n.className="wht-neo-banner-dot",n.setAttribute("aria-label","Slide "+(t+1)),M.appendChild(n),n}),B=document.createElement("a");B.className="wht-neo-banner-cta",B.dataset.role="ctaButton",L.appendChild(N),x.length>1&&(L.appendChild(O),L.appendChild(j),L.appendChild(M)),L.appendChild(B),E.appendChild(L),C.appendChild(E);let F=-1,$=null,H=!0,V=!1,J=!("IntersectionObserver"in window);const q=()=>{z.muted=!V||!H},Y=()=>{if(H){const e=z.play();e&&e.catch&&e.catch(()=>{})}},G={preferHlsJs:!0},K=!(!z.canPlayType||!z.canPlayType("application/vnd.apple.mpegurl"))&&/apple/i.test(navigator.vendor||"");let W=null,U=null;const X=()=>Y(),D=t=>{if(z.removeEventListener("loadeddata",X),z.addEventListener("loadeddata",X,{once:!0}),W)return W.attachSource(z,t,W.PRIORITY.ACTIVE,G),void Y();if(!(r=t)||!r.toLowerCase().includes(".m3u8")||K)return z.src=t,z.load(),void Y();var r;const a=F;(W?Promise.resolve(W):U||(U=n.e(296).then(n.bind(n,725)).then(t=>(W=t,t.setSlowLinkMedia(e.storeFlags&&e.storeFlags.slowLinkMedia),t)))).then(e=>{F===a&&(e.attachSource(z,t,e.PRIORITY.ACTIVE,G),Y())}).catch(()=>{})},Q=()=>{W?W.releaseSource(z):z.pause()},Z=e=>(e.cta||[]).filter(e=>e&&e.cta_link&&!/whatmore\.ai/i.test(e.cta_link)).sort((e,t)=>{var n,r;return(null!==(n=e.cta_id)&&void 0!==n?n:0)-(null!==(r=t.cta_id)&&void 0!==r?r:0)})[0]||null,ee=e=>{clearTimeout($),$=setTimeout(()=>te((F+1)%x.length),e)},te=e=>{F=(e%x.length+x.length)%x.length,clearTimeout($);const t=x[F],n=function(e,t){const n=e.event_media_urls,r=t?"portrait":"landscape",a=t?"landscape":"portrait";if(n){if(w(e))return n.primary&&n.primary[r]&&n.primary[r].content_image_original||"";const o=(e,t)=>{const r=n[e]&&n[e][t];return r&&(r.content_video_1080p||r.content_video_original)||""},i=e=>n.secondary&&n.secondary[e]&&n.secondary[e].content_video_m3u8_original||"",s=!t&&(!o("primary",r)||o("primary",r)===o("primary",a)),c=i(r)||(t||s?i("portrait"):"");if(c)return c;const d=o("secondary",r);if(d)return d;const l=e.event_hls_url,u=l&&l.startsWith("https://cdn.shopify.com")&&l.includes(".mp4")?l:"";return!u||!t&&o("primary",r)&&o("primary",r)!==o("primary",a)?o("primary",r)||o("primary",a):u}return e.event_m3u8_url||e.event_hls_url||""}(t,P),r=function(e,t){const n=e.event_media_urls,r=t?"portrait":"landscape";return n?n.secondary&&n.secondary[r]&&n.secondary[r].poster_image||n.primary&&n.primary[r]&&n.primary[r].poster_image||e.poster_image||"":e.poster_image||""}(t,P);R.forEach((e,t)=>e.toggleAttribute("data-wht-active",t===F));const a=Z(t);if(a&&a.cta_link&&(t.cta||[]).length>1?(B.href=(e=>e&&m("utm.activate_utm")?e+"?"+m("utm.utm_source","")+"&"+m("utm.utm_campaign","")+"&"+m("utm.utm_medium_cart_page",""):e)(a.cta_link),B.textContent=a.cta_title||"Shop now",B.removeAttribute("data-wht-empty")):B.setAttribute("data-wht-empty","1"),!n)return Q(),z.style.display="none",void(T.style.display="none");if(w(t)){if(Q(),z.style.display="none",T.style.display="",!J)return;T.src=n,ee(l)}else{if(T.style.display="none",z.style.display="",!J)return;r&&(z.poster=r),q();const e=()=>{isFinite(z.duration)&&z.duration>0&&ee(1e3*z.duration)};z.removeEventListener("loadedmetadata",e),z.addEventListener("loadedmetadata",e,{once:!0}),D(n)}};O.addEventListener("click",e=>{e.stopPropagation(),te(F-1)}),j.addEventListener("click",e=>{e.stopPropagation(),te(F+1)}),R.forEach((e,t)=>e.addEventListener("click",e=>{e.stopPropagation(),te(t)}));const ne=e=>{e.stopPropagation(),V=!V,q(),E.toggleAttribute("data-wht-sound",V)};if(N.addEventListener("click",ne),B.addEventListener("click",e=>{e.stopPropagation(),null===y||void 0===y||y(x[F]),null===_||void 0===_||_(x[F],Z(x[F]))}),E.addEventListener("click",e=>{null===y||void 0===y||y(x[F]);const t=Z(x[F]);A&&t&&t.cta_link?window.open(t.cta_link,"_self"):ne(e)}),"IntersectionObserver"in window){new IntersectionObserver(e=>{e.forEach(e=>{if(H=e.isIntersecting,q(),!w(x[F]||{}))if(H){const e=z.play();e&&e.catch&&e.catch(()=>{})}else z.pause()})},{threshold:.01}).observe(E)}let re=!1;if(window.addEventListener("resize",()=>{re||(re=!0,requestAnimationFrame(()=>{re=!1;const e=P;P=f(E,r,s,c),P!==e&&te(F)}))},{passive:!0}),t.innerHTML="",t.appendChild(C),t.style.opacity="1",!J){new IntersectionObserver((e,t)=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),J=!0,te(F))},{rootMargin:"200px 0px",threshold:0}).observe(E)}if(te(0),g)if("IntersectionObserver"in window){new IntersectionObserver((e,t)=>{e.some(e=>e.isIntersecting)&&(g(),t.disconnect())},{threshold:0}).observe(E)}else g();return k(),!0}},6387:function(e,t,n){n.d(t,{P:function(){return a}});const r={standard:()=>n.e(508).then(n.t.bind(n,5071,17)),card:()=>n.e(545).then(n.t.bind(n,9362,17)),"mosaic-ring":()=>n.e(457).then(n.t.bind(n,8171,17)),"mosaic-plain":()=>n.e(764).then(n.t.bind(n,5635,17)),hoverplay:()=>n.e(781).then(n.t.bind(n,787,17)),"info-strip":()=>n.e(94).then(n.t.bind(n,2109,17)),"text-overlay":()=>n.e(833).then(n.t.bind(n,3930,17)),focused:()=>n.e(506).then(n.t.bind(n,1987,17)),coverflow:()=>n.e(172).then(n.t.bind(n,9033,17)),minimal:()=>n.e(244).then(n.t.bind(n,6362,17)),feed:()=>n.e(315).then(n.t.bind(n,7456,17)),circle:()=>n.e(31).then(n.t.bind(n,5112,17)),viewmore:()=>n.e(343).then(n.t.bind(n,7672,17)),overlay:()=>n.e(936).then(n.t.bind(n,75,17)),"stories-b":()=>n.e(565).then(n.t.bind(n,1958,17)),"product-broad-no-cta":()=>n.e(838).then(n.t.bind(n,5955,17)),"product-broad-atc":()=>n.e(648).then(n.t.bind(n,2699,17)),"product-narrow":()=>n.e(594).then(n.t.bind(n,4859,17)),"product-premium":()=>n.e(566).then(n.t.bind(n,2529,17)),"product-navigation":()=>n.e(45).then(n.t.bind(n,4368,17)),"product-multi-product":()=>n.e(856).then(n.t.bind(n,6084,17)),"product-thumbnail-strip":()=>n.e(620).then(n.t.bind(n,4383,17)),"product-link-only":()=>n.e(750).then(n.t.bind(n,3365,17)),"product-minimal-atc":()=>n.e(685).then(n.t.bind(n,1890,17))};async function a(e,t){const n=r["carousel"===e||"collections"===e?t:e+"-"+t];if(!n)return"";try{return(await n()).default||""}catch(a){return""}}},7983:function(e,t,n){function r(e,t=!1){if(null==e)return{events:[],all_events:[]};if(t){return{events:e.events&&e.events[0]&&e.events[0].events||[],all_events:e.all_events||[]}}return{events:e.events||[],all_events:e.all_events||[]}}function a(e,t){if(null==e||!e.eventsets||!e.eventsets[t])return{events:[],all_events:[]};return{events:(Array.isArray(e.eventsets[t])?e.eventsets[t]:[]).reduce((e,t)=>e.concat(t&&t.events||[]),[]),all_events:[]}}function o(e){return!(void 0==e.products||0==e.products.length)}n.d(t,{Hl:function(){return o},Np:function(){return r},Po:function(){return a}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[296],{725:function(e,t,n){n.r(t),n.d(t,{PRIORITY:function(){return a},attachSource:function(){return g},priorityForSlot:function(){return L},releaseSource:function(){return A},setSlowLinkMedia:function(){return s}});let r=null;function o(e){const t=()=>{try{e.currentTime||(e.currentTime=.001)}catch(t){}};e.readyState>=1?t():e.addEventListener("loadedmetadata",t,{once:!0})}const a={ACTIVE:"active",NEXT:"next",NEAR:"near",IDLE:"idle"},i={active:30,next:4,near:2},c=30;let u=!1;function s(e){u=!!e}const l=3e6;function p(e,t){if(!u)return-1;if(t!==a.ACTIVE)return 0;const n=e&&e.levels||[];return n.length?function(e){let t=0;for(let n=0;n<e.length;n++)(e[n].bitrate||0)<=l&&(t=n);return t}(n):-1}const d=e=>!!e&&e.toLowerCase().includes(".m3u8"),f=()=>"undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported,E=e=>!(!e.canPlayType||!e.canPlayType("application/vnd.apple.mpegurl"));function h(){const e="undefined"!==typeof navigator&&navigator.connection;return!!e&&(!!e.saveData||(!!/(^|-)[23]g$/.test(e.effectiveType||"")||"number"===typeof e.downlink&&e.downlink>0&&e.downlink<2.5))}const y=new WeakMap;let v=0;const T=e=>{const t=e&&e.bandwidthEstimate;"number"===typeof t&&isFinite(t)&&t>0&&(v=Math.min(t,5e6))};function m(e,t,s){const l=y.get(e);if(l&&l.url===t&&l.hls)return l.hls.config.maxBufferLength=i[s]||i.near,l.priority=s,l.hls.autoLevelCapping=p(l.hls,s),void(l.stopped?s===a.ACTIVE&&(l.stopped=!1,l.hls.startLoad()):l.hls.startLoad());w(e);const d={hls:null,url:t,priority:s,stopped:!1};y.set(e,d),(r||(r=n.e(561).then(n.bind(n,4390)).then(e=>e.default)),r).then(n=>{if(y.get(e)!==d||!n.isSupported())return;const r=new n({enableWorker:!0,lowLatencyMode:!1,maxBufferLength:i[s]||i.near,maxMaxBufferLength:c,startLevel:-1,capLevelToPlayerSize:!0,maxDevicePixelRatio:1.5,...u&&v?{abrEwmaDefaultEstimate:v}:{}});d.hls=r,r.on(n.Events.MANIFEST_PARSED,()=>{r.autoLevelCapping=p(r,d.priority),d.priority!==a.ACTIVE&&o(e)}),u&&r.on(n.Events.FRAG_BUFFERED,()=>{d.priority===a.ACTIVE||d.stopped||(d.stopped=!0,r.stopLoad())}),r.on(n.Events.ERROR,(t,o)=>{o.fatal&&(o.type===n.ErrorTypes.NETWORK_ERROR?r.startLoad():o.type===n.ErrorTypes.MEDIA_ERROR?r.recoverMediaError():w(e))}),r.loadSource(t),r.attachMedia(e)}).catch(()=>{})}function w(e){const t=y.get(e);if(t&&(y.delete(e),t.hls)){u&&t.priority===a.ACTIVE&&T(t.hls);try{t.hls.destroy()}catch(n){}}}function g(e,t,n,r){e&&(t&&n!==a.IDLE?h()&&n!==a.ACTIVE?A(e):"hls"===function(e,t,n){if(!e)return null;if(!d(e))return"mp4";const r=E(t)&&(!n||"undefined"!==typeof navigator&&/apple/i.test(navigator.vendor||""));return f()&&!r?"hls":"mp4"}(t,e,!(!r||!r.preferHlsJs))?m(e,t,n):function(e,t,n){let r="metadata";n===a.ACTIVE?r="auto":n!==a.NEXT||u||h()||(r="auto"),e.getAttribute("src")!==t?(w(e),e.preload=r,e.src=t,n!==a.ACTIVE&&o(e)):e.preload!==r&&(e.preload=r)}(e,t,n):A(e))}function A(e){if(e){try{e.pause()}catch(t){}w(e),e.getAttribute("src")&&(e.removeAttribute("src"),e.load()),e.preload="none"}}function L(e,t){return 0===e?a.ACTIVE:e>0&&e<=t?a.NEXT:e<0&&-e<=t?a.NEAR:a.IDLE}}}]);