whatmore-react-assets 1.0.1830 → 1.0.1832
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/react-main-app.ab25aace.chunk.css +2 -0
- package/static/js/254.8f875a40.chunk.js +41 -0
- package/static/js/{atc-with-form.63aa381a.chunk.js → atc-with-form.2bfaec5c.chunk.js} +1 -1
- package/static/js/event-click-component.1f2eaea7.chunk.js +76 -0
- package/static/js/homepage-carousel-view.4fc9dda6.chunk.js +15 -0
- package/static/js/react-main-app.cc28aec5.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/css/react-main-app.f2c2ed61.chunk.css +0 -2
- package/static/js/254.dac254f0.chunk.js +0 -41
- package/static/js/event-click-component.2930df22.chunk.js +0 -76
- package/static/js/homepage-carousel-view.c5d22c24.chunk.js +0 -15
- package/static/js/react-main-app.eed8743b.chunk.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[268],{22: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 l},tn:function(){return s},vF:function(){return a}});const o="device_type",r="device_mode",i="mobile",a="tablet",c="desktop",s="portrait",l="landscape"},69: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})}},140:function(t,e,n){n.d(e,{$B:function(){return c},A9:function(){return l},Pb:function(){return u},TG:function(){return h},TJ:function(){return p},Zh:function(){return s},lB:function(){return a},tO:function(){return d}});var o,r=n(964);const i=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(t){i&&console.debug("updating user view count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user view count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user view count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating user view count user for event : ",t)})}function c(t,e){i&&console.debug("updating like count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating like count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating like count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating like count user for event : ",t)})}function s(t){i&&console.debug("updating share count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating share count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating share count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating share count user for event : ",t)})}function l(t,e){i&&console.debug("updating wa click count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating whatsapp click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating whatsapp click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating whatsapp click count user for event : ",t)})}function u(t,e){i&&console.debug("updating event-product click count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product click count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product click count for event {} : ",t.event_id,e)})}function d(t,e,n){i&&console.debug("updating event-product add to cart count for event {} and product {}.",t.event_id,e.product_id);const o={event_id:t.event_id,product_id:e.product_id,increase_by:n};fetch(r.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>(i&&console.debug("updating user event-product add to cart count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product add to cart count for event {} : ",t.event_id,e)})}function p(t,e){i&&console.debug("updating event-product buy now count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product buy now count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product buy now count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product buy now count for event {} : ",t.event_id,e)})}function h(t){const e={event_id:t.event.event_id,cta_id:t.cta.cta_id,increase_by:1};fetch(r.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user cta click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user cta click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating cta click count : ",t)})}},314:function(t,e,n){n.d(e,{p:function(){return o}});const o=(0,n(9950).createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]})},605:function(t,e,n){n(9950);var o=n(7119),r=(n(6125),n(4414));let i=null;e.A=function({posterUrl:t}){if(!t)return null;if(window.innerWidth>window.innerHeight)return null;const e=[];for(let n=0;n<8;n++){const t=45*n;e.push((0,r.jsx)("span",{style:{transform:`rotate(${t}deg) translate(0, -22px)`,animationDelay:`${(n/8-1).toFixed(3)}s`}},n))}return(0,o.createPortal)((0,r.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#000",zIndex:2147483648,pointerEvents:"none"},children:[(0,r.jsx)("img",{src:t,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),(0,r.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"},children:(0,r.jsx)("div",{className:"whatmore-sfp-spinner",children:e})})]}),(i&&document.documentElement.contains(i)||(i=document.createElement("div"),i.id="whatmore-suspense-portal-root",document.documentElement.appendChild(i)),i))}},932:function(t,e,n){var o=n(7483),r=n(1941),i=n(22),a=n(1348);e.A=function(t){const[e,n,c]=(0,r.A)(),[s]=(0,o.QN)("whatmoreLandscapePadding"),[l]=(0,o.QN)("whatmoreShopId"),[u]=(0,o.QN)("whatmoreVideoTileSize"),[d]=(0,o.QN)("whatmoreVideoTileSizePortrait"),p=c>n,h=c>=481,m=null!==t&&void 0!==t&&t.isEmbed?60:"portrait"==e?d:u,f=!("portrait"!=e||!h),v=m/100*1.3*.5,g=m/100;var _=Math.min(c,n),[w,y,b,x]=[.6*_*(16/9),.6*_,1.4,0];function S(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(p){const t=y*v,e=w*v;[w,y,b,x]=[e,t,(c-2*s-2*(0,a.$du)(l))/(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]}},1019:function(t,e,n){n.d(e,{B:function(){return i}});var o=n(1348),r=n(964);function i(t){return`${(0,o.jpW)(t)?r.$$:r.MT}/v2/brand/${t}/product-events/recommendation/cdn`}},1079:function(t,e,n){n(9950);var o=n(3080),r=n(7483),i=n(1348),a=n(140),c=n(4414);const s=function(t,e){return(0,i.BLb)(e)?t+"?"+(0,i.VCz)(e)+"&"+(0,i.Spk)(e)+"&"+(0,i.yD5)(e):t};e.A=function(t){var e;const[n,l,u,d]=(0,o.A)(),p=(0,r.Xd)("isInDesignMode"),h=(0,r.Xd)("isDemoBrand"),m=(0,r.Xd)("whatmoreSecondaryColor"),f=(0,r.Xd)("whatmorePrimaryFont"),v=(0,r.Xd)("whatmoreShopId"),g=t.cta,_=.06*d,w=.03*d+"px",y=.06*d+"px";return(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:w,marginTop:w},children:(0,c.jsx)("a",{href:s(g.cta_link,v),style:{color:"white",textDecoration:"none"},onClick:()=>{p||h||(async()=>{(0,a.TG)(t)})()},children:(0,c.jsx)("span",{className:"whatmore-cta-tile-text",style:{fontSize:_*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",color:t.isBanner?m:"#fff",backgroundColor:t.isBanner?"#fff":m,borderRadius:"round"===(0,i.hep)(v)?"5px":"0",boxShadow:"1px 1px #0000001a",fontFamily:f,fontWeight:t.isBanner?"bold":void 0,padding:"10px",paddingLeft:y,paddingRight:y,display:"inline-block"},children:g.cta_title})})})})}},1085: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 l}});var o=n(7483);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)})},l=function(t){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),n=t.children[0];n.muted=!0,!n.paused&&n.pause(),e.appendChild(n)}},1348:function(t,e,n){n.d(e,{$7F:function(){return Po},$du:function(){return no},$lz:function(){return M},A5I:function(){return v},AFg:function(){return pe},AJI:function(){return S},ALN:function(){return Ft},AmR:function(){return Tn},B6P:function(){return ne},BLb:function(){return N},BRY:function(){return wn},BcY:function(){return lt},Br1:function(){return Hn},C1J:function(){return Lt},CBm:function(){return lo},Cf:function(){return Sn},CfJ:function(){return be},D2A:function(){return Ut},D7t:function(){return Q},DGu:function(){return jo},DLl:function(){return Be},DNc:function(){return E},DiI:function(){return ht},DmD:function(){return Re},E8r:function(){return Io},Eel:function(){return zn},FKG:function(){return bt},FVo:function(){return Le},FZM:function(){return _t},FlI:function(){return an},Fwt:function(){return Se},FyB:function(){return L},G0Q:function(){return X},GSq:function(){return Ot},GX0:function(){return b},GZ2:function(){return ko},Gc6:function(){return re},GvQ:function(){return Dt},H$k:function(){return dt},H0Z:function(){return Zt},HKH:function(){return Tt},HWj:function(){return xn},Hfu:function(){return P},Idi:function(){return qt},If9:function(){return We},JAc:function(){return m},JQp:function(){return To},JSQ:function(){return to},JiT:function(){return U},JwJ:function(){return ho},KFN:function(){return Me},KMo:function(){return z},KPq:function(){return y},KVz:function(){return Gn},KZe:function(){return St},KnH:function(){return ue},Kr7:function(){return In},L0y:function(){return Z},LGx:function(){return un},LOH:function(){return rn},LPW:function(){return Fe},LrK:function(){return Qt},M$H:function(){return ee},M3_:function(){return hn},MJ6:function(){return cn},MPe:function(){return ut},MRv:function(){return Ee},MdM:function(){return sn},Mq2:function(){return Ce},Mz3:function(){return Dn},N0t:function(){return Ct},NCy:function(){return Qe},NFF:function(){return On},N_4:function(){return bn},Nzx:function(){return kt},O86:function(){return Rt},OC6:function(){return F},OLZ:function(){return Wn},OSd:function(){return f},Odx:function(){return Y},Pjz:function(){return nt},PpQ:function(){return He},Q$:function(){return _o},QNr:function(){return $n},QSX:function(){return io},Qed:function(){return $e},R2w:function(){return Vt},R6d:function(){return vn},R7q:function(){return ao},R8W:function(){return de},RG3:function(){return bo},Rdb:function(){return C},SGs:function(){return ie},SK$:function(){return pt},SOt:function(){return we},Spk:function(){return W},T9r:function(){return Nn},TH:function(){return fo},TYM:function(){return ke},Tr1:function(){return Yn},Tzr:function(){return r},U74:function(){return wt},Uht:function(){return st},UlM:function(){return Ae},UmS:function(){return jn},Usu:function(){return fn},VCz:function(){return D},VYo:function(){return ze},VhI:function(){return Cn},ViG:function(){return Ke},Vpi:function(){return rt},WDJ:function(){return Ve},WH1:function(){return go},WRx:function(){return An},Wc_:function(){return A},Woi:function(){return it},XQu:function(){return At},XYM:function(){return V},YE3:function(){return Wt},YOR:function(){return s},Y_l:function(){return q},YcK:function(){return xe},YqT:function(){return So},ZX9:function(){return Ye},ZzM:function(){return It},_2D:function(){return Xt},_W0:function(){return Kt},_hU:function(){return xt},_zx:function(){return Qn},aO7:function(){return so},aRV:function(){return vo},ath:function(){return po},bQo:function(){return k},br0:function(){return g},buK:function(){return zt},cQ7:function(){return oo},cYm:function(){return me},cbh:function(){return eo},dmA:function(){return Ge},dnh:function(){return ot},dzp:function(){return nn},ei:function(){return T},ek9:function(){return x},esc:function(){return vt},fDZ:function(){return $t},fHt:function(){return Zn},fpt:function(){return Pt},fwF:function(){return ro},gZ6:function(){return Co},ga9:function(){return H},gld:function(){return Vn},gq8:function(){return Ln},gvj:function(){return se},hbj:function(){return Gt},hep:function(){return yo},hpk:function(){return pn},i2h:function(){return Bn},i6j:function(){return qn},iQ5:function(){return Ue},igk:function(){return B},imx:function(){return ct},isL:function(){return Bt},ivI:function(){return w},ivR:function(){return qe},jLA:function(){return ft},jWS:function(){return te},jpW:function(){return ye},jsS:function(){return Pn},kZI:function(){return Je},kb:function(){return _},kcl:function(){return De},klK:function(){return Oe},l3V:function(){return tt},lDJ:function(){return _e},m4S:function(){return j},m5c:function(){return Eo},mJ$:function(){return mt},mOK:function(){return gn},mRH:function(){return En},mlY:function(){return wo},moP:function(){return dn},n5O:function(){return Ne},n8Q:function(){return Nt},nEf:function(){return Mn},nP1:function(){return d},nWM:function(){return p},naM:function(){return le},o9q:function(){return fe},oB_:function(){return ae},oZc:function(){return en},ogW:function(){return Xn},ol5:function(){return tn},p2R:function(){return at},p6A:function(){return Jn},pUQ:function(){return Jt},pbJ:function(){return ce},qAx:function(){return he},qLA:function(){return G},qw1:function(){return Ie},rC6:function(){return ve},rEM:function(){return I},rMH:function(){return ge},rh$:function(){return jt},rkx:function(){return Ht},rsz:function(){return Un},s0t:function(){return Te},sIk:function(){return je},sa6:function(){return K},tM2:function(){return mn},tSy:function(){return $},tbf:function(){return Kn},tik:function(){return Yt},u06:function(){return co},u1b:function(){return h},uJl:function(){return l},uSp:function(){return mo},uXw:function(){return xo},ub$:function(){return _n},uoB:function(){return Fn},v8m:function(){return yn},vDV:function(){return ln},vfi:function(){return Mt},vvD:function(){return et},vvU:function(){return uo},vw2:function(){return Rn},w4b:function(){return Pe},wQ2:function(){return yt},wtw:function(){return on},xIo:function(){return oe},xkB:function(){return Ze},xku:function(){return Ao},y3u:function(){return Xe},yD5:function(){return R},yW$:function(){return Et},yt9:function(){return u},z00:function(){return O},z1s:function(){return J},zAb:function(){return kn},zC7:function(){return gt}});var o=n(7483);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 l=(0,o.Xd)("whatmorePrimaryFont"),u=(0,o.Xd)("whatmoreTitleFont"),d=(0,o.Xd)("isProductSwiperCatalogOpen");(0,o.t2)("whatmorePrimaryFont",null!==(n=et(e))&&void 0!==n?n:l),(0,o.t2)("whatmoreTitleFont",null!==(r=K(e))&&void 0!==r?r:u),(0,o.t2)("isProductSwiperCatalogOpen",null!==(i=Ce(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 l=function(t){return c(0,"show_single_product_tile")},u=function(t){return c(0,"brand_billing")},d=function(t){return c(0,"show_add_to_cart_on_card_template")},p=function(t){return c(0,"add_to_cart_button_type")},h=function(t){return c(0,"show_options_chart")},m=function(t){return c(0,"is_multi_size_chart")},f=function(t){return c(0,"options_chart_image_link")},v=function(t){return c(0,"options_chart_name")},g=function(t){return c(0,"default_swipe_direction")},_=function(t){return c(0,"add_navigation_buttons_for_swipe")},w=function(t){return c(0,"tertiary_color")},y=function(t){return c(0,"atc_button_text")},b=function(t){return c(0,"buy_now_button_text")},x=function(t){return c(0,"show_open_close_products_button")},S=function(t){return c(0,"add_to_cart_form_class_name")},j=function(t){return c(0,"cart_icon_button_click_action")},T=function(t){return c(0,"initiate_cart_slider_event_on_atc_click")},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,"atc_config->brand_atc_button_padding_in_px")},O=function(t){return c(0,"atc_config->atc_buy_now_alignment")},N=function(t){return c(0,"utm->activate_utm")},D=function(t){return c(0,"utm->utm_source")},W=function(t){return c(0,"utm->utm_campaign")},M=function(t){return c(0,"utm->utm_medium_product_page")},z=function(t){return c(0,"utm->utm_medium_checkout_page")},R=function(t){return c(0,"utm->utm_medium_cart_page")},F=function(t){return c(0,"banner_config->is_banner_clickable")},V=function(t){return c(0,"banner_config->show_cta")},q=function(t){return c(0,"banner_config->landscape_multiplier")},B=function(t){return c(0,"banner_config->portrait_multiplier")},H=function(t){return c(0,"banner_config->landscape_aspect_ratio")},X=function(t){return c(0,"banner_config->portrait_aspect_ratio")},Q=function(t){return c(0,"banner_config->is_full_screen")},U=function(t){return c(0,"banner_config->show_navigation_dots")},J=function(t){return c(0,"banner_config->selected_dot_color")},G=function(t){return c(0,"banner_config->show_mute_button")},K=function(t){return c(0,"brand_fonts->carousel_title_font")},Y=function(t){return c(0,"brand_fonts->carousel_title_font_weight")},Z=function(t){return c(0,"brand_fonts->carousel_title_font_line_height")},tt=function(t){return c(0,"brand_fonts->carousel_title_font_letter_spacing")},et=function(t){return c(0,"brand_fonts->brand_primary_font")},nt=function(t){return c(0,"brand_fonts->story_title_font")},ot=function(t){return c(0,"order_tracking->add_whatmore_attribute")},rt=function(t){return c(0,"product_config->tile_type")},it=function(t){return c(0,"product_config->show_cta")},at=function(t){return c(0,"product_config->tile_bg_opacity")},ct=function(t){return c(0,"product_config->details_api_available")},st=function(t){return c(0,"product_config->update_product_details_on_product_page_load")},lt=function(t){return c(0,"product_config->use_product_page_link_as_client_product_id")},ut=function(t){return c(0,"product_config->navigate_to_cart_page")},dt=function(t){return c(0,"product_config->is_tile_width")},pt=function(t){return c(0,"product_config->show_view_product_text")},ht=function(t){return c(0,"product_config->show_go_to_cart_text")},mt=function(t){return c(0,"collections_config->use_page_link_as_collection_id")},ft=function(t){return c(0,"collections_config->multi_carousel_enabled")},vt=function(t){return c(0,"collections_config->story_tile_size_factor")},gt=function(t){return c(0,"collections_config->story_tile_shape")},_t=function(t){return c(0,"collections_config->tile_margin_right")},wt=function(t){return c(0,"collections_config->remove_borders")},yt=function(t){return c(0,"collections_config->show_popup_out_of_view")},bt=function(t){return c(0,"collections_config->homepage_collection_ids")},xt=function(t){return c(0,"collections_config->set_tile_width_auto")},St=function(t){return c(0,"product_config->product_image_fit_type")},jt=function(t){return c(0,"product_config->font_price_multiplicator")},Tt=function(t){return c(0,"product_config->enable_bulk_atc")},Et=function(t){return c(0,"product_config->currency_code_to_symbol_map")},Ct=function(t){return c(0,"product_config->add_currency_query_param_in_product_url")},At=function(t){return c(0,"product_config->variant_selection_tile_height_factor")},Pt=function(t){return c(0,"product_config->product_tile_discount_badge_color")},It=function(t){return c(0,"product_config->show_shop_now_button_only")},kt=function(t){return c(0,"product_config->show_product_price")},$t=function(t){return c(0,"product_page_popup_config->show_product_page_popup")},Lt=function(t){return c(0,"product_page_popup_config->show_product_page_popup_in_preview")},Ot=function(t){return c(0,"product_page_popup_config->ultra_minimize_on_scroll")},Nt=function(t){return c(0,"product_page_popup_config->show_popup_on_scroll")},Dt=function(t){return c(0,"product_page_popup_config->popUpZindex")},Wt=function(t){return c(0,"product_page_popup_config->auto_close_on_open")},Mt=function(t){return c(0,"product_page_popup_config->show_order_by_date_events")},zt=function(t){return c(0,"product_page_popup_config->show_all_events")},Rt=function(t){return c(0,"spotlight_config->size_factor")},Ft=function(t){return c(0,"spotlight_config->show_once_to_user")},Vt=function(t){return c(0,"spotlight_config->enable_in_homepage")},qt=function(t){return c(0,"spotlight_config->enable_page_id_set")},Bt=function(t){return c(0,"spotlight_config->enable_all_pages")},Ht=function(t){return c(0,"event_tracking->is_enabled")},Xt=function(t){return c(0,"spotlight_config->ultraminimize_on_scroll")},Qt=function(t){return c(0,"spotlight_config->position")},Ut=function(t){return c(0,"spotlight_config->horizontal_padding")},Jt=function(t){return c(0,"spotlight_config->vertical_padding")},Gt=function(t){return c(0,"spotlight_config->enable_spotlight")},Kt=function(t){return c(0,"thumbnail_overlay_image_url")},Yt=function(t){return c(0,"thumbnail_overlay_position")},Zt=function(t){return c(0,"thumbnail_overlay_width_percent")},te=function(t){return c(0,"ga_tracking_id")},ee=function(t){return c(0,"ga_config->is_ga_4")},ne=function(t){return c(0,"ga_config->is_ga_3")},oe=function(t){return c(0,"ga4_tracking_id")},re=function(t){return c(0,"ga_config->use_existing_ga_id")},ie=function(t){return c(0,"show_whatmore_label_in_landscape_view")},ae=function(t){return c(0,"buy_now_config->show_buy_now_button")},ce=function(t){return c(0,"buy_now_config->show_custom_buy_now_button")},se=function(t){return c(0,"buy_now_config->show_add_to_cart_button")},le=function(t){return c(0,"buy_now_config->show_view_more_inplace_of_buy_now")},ue=function(t){return c(0,"buy_now_config->view_more_button_text")},de=function(t){return c(0,"buy_now_config->enable_shopflo_checkout")},pe=function(t){return c(0,"stories_config->show_stories_in_landscape_mode")},he=function(t){return c(0,"stories_config->stories_border_colors")},me=function(t){return c(0,"stories_config->stories_title_font_factor")},fe=function(t){return c(0,"stories_config->stories_title_font_color")},ve=function(t){return c(0,"stories_config->show_stories_in_mobile_mode")},ge=function(t){return c(0,"stories_config->story_tiles_spacing_factor")},_e=function(t){return c(0,"stories_config->story_show_navigation_arrows")},we=function(t){return c(0,"backend_config->use_cdn_cache_endpoint")},ye=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},be=function(t){return c(0,"cdn_config->fallback_cdn")},xe=function(t){return c(0,"theme_config->event_tile_border_width")},Se=function(t){return c(0,"theme_config->event_tile_border_color")},je=function(t){return c(0,"theme_config->event_view_count_bg_color")},Te=function(t){return c(0,"theme_config->event_view_count_text_color")},Ee=function(t){return c(0,"theme_config->event_tile_product_desc_border_width")},Ce=function(t){return c(0,"product_config->show_product_swiper_initially")},Ae=function(t){return c(0,"product_config->show_cta_icon")},Pe=function(t){return c(0,"product_config->get_price_and_currency_details_from_api")},Ie=function(t){return c(0,"product_config->product_tile_bottom_margin")},ke=function(t){return c(0,"product_config->show_first_product_tile")},$e=function(t){return c(0,"product_config->shop_now_text")},Le=function(t){return c(0,"event_tile_config->view_count_template")},Oe=function(t){return c(0,"event_tile_config->show_views")},Ne=function(t){return c(0,"event_tile_config->animate_on_focus")},De=function(t){return c(0,"event_tile_config->space_between_tiles")},We=function(t){return c(0,"event_tile_config->gap_between_tiles")},Me=function(t){return c(0,"event_tile_config->playback_icon_color")},ze=function(t){return c(0,"event_tile_config->shadow_config")},Re=function(t){return c(0,"event_tile_config->show_product_thumbnail")},Fe=function(t){return c(0,"event_tile_config->show_product_tile")},Ve=function(t){return c(0,"event_tile_config->show_atc_on_hover_premium")},qe=function(t){return c(0,"event_tile_config->bg_config")},Be=function(t){return c(0,"event_tile_config->show_heading_in_single_tile_carousel")},He=function(t){return c(0,"event_tile_config->event_thumbnail_b_title_font_multiplier")},Xe=function(t){return c(0,"event_tile_config->event_thumbnail_b_price_font_multiplier")},Qe=function(t){return c(0,"brand_metadata->domain_context")},Ue=function(t){return c(0,"social_sharing->activate_link_sharing")},Je=function(t){return c(0,"social_sharing->link_sharing_title")},Ge=function(t){return c(0,"social_sharing->link_sharing_text")},Ke=function(t){return c(0,"social_sharing->show_share_text_below_button")},Ye=function(t){return c(0,"social_sharing->show_whatmore_branding")},Ze=function(t){return c(0,"social_sharing->social_icons_size_multiplier")},tn=function(t){return"73596731648"===t?.7:1},en=function(t){return c(0,"social_sharing->whatsapp_icon_active")},nn=function(t){const e=c(0,"social_sharing->whatsapp_icon_redirect_url");return"Free"===u(t)?null:e},on=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text")},rn=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text_font_multiplier")},an=function(t){return c(0,"social_sharing->show_liked_text_below_button")},cn=function(t){return c(0,"social_sharing->like_fill_color")},sn=function(t){return c(0,"social_sharing->activate_likes")},ln=function(t){return c(0,"social_sharing->share_text_threshold_count")},un=function(t){return c(0,"social_sharing->like_text_threshold_count")},dn=function(t){return c(0,"social_sharing->share_product_url_link")},pn=function(t){return c(0,"navigation_config->enable_browser_navigation_on_click")},hn=function(t){return"video-shopping"},mn=function(t){return c(0,"shopnow_config->brand_color_option_border_radius")},fn=function(t){return c(0,"shopnow_config->brand_color_option_border_color")},vn=function(t){return c(0,"shopnow_config->brand_divider_color")},gn=function(t){return c(0,"shopnow_config->is_discount_label_percent")},_n=function(t){return c(0,"shopnow_config->discount_percent_bg_color")},wn=function(t){return c(0,"shopnow_config->discount_text_color")},yn=function(t){return c(0,"shopnow_config->discount_label_border_radius")},bn=function(t){return c(0,"event_tile_with_product_info->landscape_font_multiplier")},xn=function(t){return c(0,"event_tile_with_product_info->portrait_font_multiplier")},Sn=function(t){return c(0,"event_tile_with_product_info->show_discount_label")},jn=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image")},Tn=function(t){return c(0,"event_tile_with_product_info->show_product_info")},En=function(t){return c(0,"event_tile_with_product_info->show_atc_button_outside_tile")},Cn=function(t){return c(0,"event_tile_with_product_info->show_atc_on_hover")},An=function(t){return c(0,"event_tile_with_product_info->atc_button_color")},Pn=function(t){return c(0,"event_tile_with_product_info->atc_button_text_color")},In=function(t){return c(0,"event_tile_with_product_info->show_atc_button_template_feed")},kn=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image_template_feed")},$n=function(t){return c(0,"event_tile_with_product_info->show_price_info")},Ln=function(t){return c(0,"event_tile_product_card->navigate_to_product")},On=function(t){return c(0,"meta_pixel_events->video_click_event")},Nn=function(t){return c(0,"meta_pixel_events->video_atc_event")},Dn=function(t){return c(0,"meta_pixel_events->video_like_event")},Wn=function(t){return c(0,"meta_pixel_events->video_share_event")},Mn=function(t){return c(0,"meta_pixel_events->video_product_tile_click_event")},zn=function(t){return c(0,"meta_pixel_events->video_watch_event")},Rn=function(t){return c(0,"price_config->show_price_before_mrp")},Fn=function(t){return c(0,"price_config->price_text_color")},Vn=function(t){return c(0,"price_config->mrp_text_color")},qn=function(t){return c(0,"price_config->font_weight")},Bn=function(t){return c(0,"product_config->product_tile_custom_text")},Hn=function(t){return c(0,"product_config->product_tile_custom_text_color")},Xn=function(t){return c(0,"product_config->product_tile_shopnow_custom_font_style")},Qn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text_color")},Un=function(t){return c(0,"product_config->product_tile_shopnow_custom_text")},Jn=function(t){return c(0,"preview_config->product_tile_custom_text")},Gn=function(t){return c(0,"preview_config->video_player_bg_color")},Kn=function(t){return c(0,"preview_config->video_player_height")},Yn=function(t){return c(0,"preview_config->event_tile_show_thumbnail_image")},Zn=function(t){return c(0,"carousel_config->width_multiplier")},to=function(t){return c(0,"carousel_config->show_navigation_arrows_in_portrait")},eo=function(t){return c(0,"carousel_config->is_event_loop")},no=function(t){return 0},oo=function(t){return c(0,"carousel_config->play_partially_visible_slides_in_portrait")},ro=function(t){return c(0,"video_player_config->pause_videos_after_delay_landscape")},io=function(t){return c(0,"video_player_config->video_player_bg_color")},ao=function(t){return c(0,"video_player_config->video_player_height")},co=function(t){return c(0,"video_player_config->thumbnail_video_player_height")},so=function(t){return c(0,"video_player_config->play_video_on_hover")},lo=function(t){return c(0,"video_player_config->set_height_as_auto")},uo=function(t){return c(0,"show_homepage_videos_in_pdp")},po=function(t){return c(0,"brand_s3_directory")},ho=function(t){return c(0,"quiz_config->is_active")},mo=function(t){return c(0,"quiz_config->swipe_number_show_question")},fo=function(t){return c(0,"quiz_config->lead_gen_coupon_code")},vo=function(t){return c(0,"quiz_config->lead_gen_sub_heading")},go=function(t){return c(0,"recommendation_config->show_recommended_events")},_o=function(t){return c(0,"event_tile_config->show_product_tile_thumbnail_template_a")},wo=function(t){return c(0,"video_player_config->keep_videos_muted")},yo=function(t){return c(0,"brand_ui_theme")},bo=function(t){return c(0,"brand_video_view_count")},xo=function(t){return c(0,"brand_theme_color")},So=function(t){return c(0,"brand_theme_font")},jo=function(t){return c(0,"brand_text_color")},To=function(t){return c(0,"homepage_carousel->carousel_title_font")},Eo=function(t){return c(0,"product_info_text_color")},Co=function(t){return c(0,"product_config->show_product_type")},Ao=function(t){return c(0,"oos_config->show_oos_videos")},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")}},1351:function(t,e,n){n.d(e,{PG:function(){return l},kz:function(){return u},UM:function(){return p},DG:function(){return d}});var o=n(1348),r=n(3330),i=n(6157);function a(t,e,n={},o){var r;const a=l[t];if(!a)return;const c=a.isActionEnabled(),s=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[a.customAction];(c||s)&&"function"==typeof fbq&&(async()=>{const o={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===i.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,o),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,o)})},500)})()}var c=n(9541),s=n(2039);const l={[i.O.EVENT_VIEW]:{isActionEnabled:o.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[i.O.VIDEO_PLAYBACK]:{isActionEnabled:o.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[i.O.VIDEO_LIKED]:{isActionEnabled:o.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[i.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:o.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[i.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[i.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}){var u,d,p,h;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}),t in l)&&(a(t,null!==(u=null===i||void 0===i?void 0:i[1])&&void 0!==u?u:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(d=null===i||void 0===i||null===(p=i[1])||void 0===p?void 0:p.title)&&void 0!==d?d:null===i||void 0===i||null===(h=i[0])||void 0===h?void 0:h.title}))}function d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:u}){var d,p,h,m;(0,s.i)(o)&&((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:u}),t in l&&(a(t,null!==(d=null===i||void 0===i?void 0:i[1])&&void 0!==d?d:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(p=null===i||void 0===i||null===(h=i[1])||void 0===h?void 0:h.title)&&void 0!==p?p:null===i||void 0===i||null===(m=i[0])||void 0===m?void 0:m.title})))}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}){var s,u,d;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}),t in l)&&(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(s=null===i||void 0===i||null===(u=i[1])||void 0===u?void 0:u.title)&&void 0!==s?s:null===i||void 0===i||null===(d=i[0])||void 0===d?void 0:d.title})}},1745:function(t,e,n){n.r(e),n.d(e,{addToCartShopify:function(){return h},addWhatmoreAttributeToCart:function(){return u},cartPageShopify:function(){return f},checkoutPageShopify:function(){return m},getCartDetailsShopify:function(){return s},getCartDetailsShopifyAsync:function(){return l},productDetailsShopifyJS:function(){return v},productDetailsShopifyJSON:function(){return g},shopfloCheckoutButtonFormInject:function(){return w},updateCartLineItemPropertiesDirect:function(){return _},updateCartLineProperties:function(){return d}});var o=n(7483),r=n(1348);const i="_whatmore-tracking-id";var a=n(2089),c=n(4533);function s(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function l(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function u(t){var e;let n,s=(0,a.Ak)(),u=null,h=null,m={},f=null,v=null,g=null,_={};const w=(0,o.Xd)("whatmoreShopId");let y=(0,c.CK)(),b=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,x=y.length>0;y.forEach(t=>{_.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(_[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})});const S=localStorage.getItem("_whatmore_session_id"),j=localStorage.getItem("wht_user_group"),T=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,E=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,C=localStorage.getItem("_whatmore_user_id"),A=localStorage.getItem("_whatmore_last_video_view_session");await l().then(t=>t.json()).then(e=>{s=e.token,n=e.attributes;let o=[];if(o=!0===t?e.items.map(t=>{const e=_[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}):e.items.map(t=>{const e=_[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}),0==o.length)return console.debug("Whatmore :: no cart items available for view products"),null;let a={},l={};if(null!=S&&(l={wht_user_attributes:{wht_session_id:null!==A&&void 0!==A?A:S,wht_user_id:C,...j&&{wht_user_group:j},...T&&{wht_ab_test_id:T},...null!=E&&{wht_ab_test_version:E}}}),b||x){const t="1";l[x?"wvs":"wvi"]=t}!(0,r.tSy)(w)&&(l.hasOwnProperty("wht_user_attributes")||l.hasOwnProperty("wvs")&&!n.hasOwnProperty("wvs")||l.hasOwnProperty("wvi")&&!n.hasOwnProperty("wvi"))&&p(l),o.map((e,n)=>{if(u=e.key,h=e.quantity,m=e.properties,f=e.widget_info,v=e.location,g=e.userType,("63330517149"==w||"77604192550"==w||"64157352183"==w||"62758289602"==w)&&_.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){const t="wtot";a={...a,[null===e||void 0===e?void 0:e.product_id]:(0,c.wm)()+`#${f}`};p({[t]:a})}null!==m&&i in m||!_.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))||d(u,h,m,f,v,g,!0,b,x)})}).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)})}async function d(t,e,n,r,a="default",s,l,u,d){const p=(0,o.Xd)("whatmoreShopId"),h=l?(0,c.wm)()+("72201044272"==p?`#${r}#${a}#${s?"olduser":"newuser"}`:`#${r}`):d?"_wt_vs":u?"_wt_vi":"";if(""==h||"_wt_vs"==h||"_wt_vi"==h||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p||"63046287536"==p||"65972830359"==p)return;let m={id:t,quantity:e,properties:{...h?{[i]:h}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties.",t)})}async function p(t){return await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:t})}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart attribute.",t)})}async function h(t,e,n,o,a="default",s){if("24366857"==n||"68234805419"==n||"86879863060"==n)return Promise.resolve({ok:!0,json:()=>{}});let l;if((0,r.dnh)(n)){const r=(0,c.wm)()+("72201044272"==n?`#${o}#${a}#${s?"olduser":"newuser"}:direct`:`#${o}:direct`);l={items:t.map(t=>({id:t,quantity:e,properties:{[i]:r}}))}}else l={items:t.map(t=>({id:t,quantity:e}))};const u=localStorage.getItem("_whatmore_session_id"),d=localStorage.getItem("wht_user_group"),h=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,m=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,f=localStorage.getItem("_whatmore_user_id");if(null!=u&&!(0,r.tSy)(n)){const t={wht_user_attributes:{wht_session_id:u,wht_user_id:f,...d&&{wht_user_group:d},...h&&{wht_ab_test_id:h},...null!=m&&{wht_ab_test_version:m}}};await p(t)}return Promise.resolve({ok:!0,json:()=>{}})}function m(t,e,n,o,i="default",a){const c="https://"+window.location.hostname;var s;const l="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=`+l)):(s=`${c}/cart/${t}:${e}`,(0,r.dnh)(n)&&(s=`${s}?ref=`+l)),window.location.href=s}function f(t){const e="https://"+window.location.hostname+"/cart";(0,r.BLb)(t)?window.location.href=e+"?"+(0,r.VCz)(t)+"&"+(0,r.Spk)(t)+"&"+(0,r.yD5)(t):window.location.href=e}async function v(t,e=""){let n;if("27303477337"===e){var o,r;const e="https://"+window.location.hostname,i=window.location.pathname.split("/");n=e+"/"+(null!==i&&void 0!==i&&null!==(o=i[1])&&void 0!==o&&o.startsWith("en-")?(null===i||void 0===i?void 0:i[1])+"/":"")+(null===t||void 0===t||null===(r=t.product_link)||void 0===r?void 0:r.split(".co")[1])+".js"}else n=(null===t||void 0===t?void 0:t.product_link)+".js";const i=await fetch(n,{method:"GET"});if(!i.ok)throw new Error(`Error! status: ${i.status}`);return await i.json()}async function g(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}async function _(t,e,n,r,a="default",s,l,u,d){const p=(0,o.Xd)("whatmoreShopId"),h=l?(0,c.wm)()+("72201044272"==p?`#${r}#${a}#${s?"olduser":"newuser"}:direct`:`#${r}:direct`):d?"_wt_vs":u?"_wt_vi":"";if(""==h||"_wt_vs"==h||"_wt_vi"==h||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p||"65972830359"==p)return;let m={id:t,quantity:e,properties:{...h?{[i]:h}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties direct.",t)})}function w(t,e){const n=(0,c.wm)()+`#${e}:buynow`,o=`\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}] type="hidden" value=${n}></input>\n <input type="hidden" name="id" value="${t}" />\n </form> `,r=(new DOMParser).parseFromString(o,"text/html").querySelector('form[action*="/cart/add"]'),a=document.createElement("div");a.appendChild(r),document.body.prepend(a),"function"==typeof handleFloBuyNowBtn&&handleFloBuyNowBtn()}},1941:function(t,e,n){n.d(e,{A:function(){return h}});var o=n(7483),r=n(9950);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[l,u]=(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];u(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)}},[]),l},s=(n(1348),n(8784));const l=(0,o.Xd)("whatmoreShopId"),u=(0,o.Xd)("whatmoreLoggingActive");function d(t){if("51273072796"==l||"64967540952"==l)return[document.documentElement.clientHeight,document.documentElement.clientWidth];let e=null;if(t){const n=document.getElementById(t);n&&(e=n.closest(".whatmore-base"))}e||(e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="carousel"])'),e||(e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="collection"])')));let n=e;for(;n&&n!==document;)if(n=n.parentElement,n&&!n.classList.contains("whatmore-base")){u&&console.log("currentElement : ",n);break}let o=window.innerWidth;if(n){const t=n.getBoundingClientRect().width;if(u&&console.log("parentWidth : ",t),t>0){u&&console.log("good case");const e=window.getComputedStyle(n);o=t-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}n&&0==t&&(n.style.setProperty("width","100%","important"),u&&console.log("Set currElement width to 100% !important"))}return u&&console.log("final width : ",o),[window.innerHeight,o]}var p=function(){const{whatmoreRootId:t}=(0,r.useContext)(s.AppContext)||{};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 h=function(t){var e;const n=(0,o.Xd)("isWhatmorePreviewMode"),r=p(),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}},2039: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}},2979:function(t,e,n){n.d(e,{S:function(){return u}});var o=n(6649),r=n(8784),i=n(9950),a=n(9541),c=n(6157),s=n(4414);const l=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]),u=function(t){var e,n;const c=l.has(t.userInteractionType),u=null!==(e=t.threshold)&&void 0!==e?e:c?0:1,d=null!==(n=t.triggerOnce)&&void 0!==n?n:c,[p,h,m]=(0,o.A)({triggerOnce:d,threshold:u}),{whatmoreWidgetSourceDetails:f}=(0,i.useContext)(r.AppContext);return(0,i.useEffect)(()=>{var e,n,o,r;h&&null!==(e=t.triggerFlag)&&void 0!==e&&e&&(0,a.B)({userInteractionType:t.userInteractionType,userInteractionMetadata:null!==(n=t.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:f,event:t.event,productList:null!==(o=t.productList)&&void 0!==o?o:[],ctaList:null!==(r=t.ctaList)&&void 0!==r?r:[]})},[h]),(0,s.jsx)("div",{style:{height:"100%"},ref:p,children:t.children})}},3080:function(t,e,n){var o=n(3305);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]}},3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return i}});var o=n(7483),r=n(1745);const i=async function(t,e,n,i,a="",c="",s="",l="",u="",d="",p=null){(0,o.Xd)("whatmoreLandingLocationType");const h=t=>{(0,r.getCartDetailsShopifyAsync)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t);if(!n)return;const o=n.key,i=n.quantity,a=n.properties;(0,r.updateCartLineItemPropertiesDirect)(o,i,a,s,l,u,!0,!0,!0)}).catch(t=>{console.error("[Whatmore] updateATCLineItemProperties error:",t)})};if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("57217876118"===t){async function x(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(()=>{h(t)},500))}return void x(a,1).then(()=>{setTimeout(e,n)}).catch(t=>{console.error("[Whatmore] ATC 57217876118 error:",t)})}if("75310563627"===t){async function S(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 S(a,1).then(()=>{setTimeout(()=>{h(a)},500)}).catch(t=>{console.error("[Whatmore] ATC 75310563627 error:",t)}),void setTimeout(e,n)}if("67841720509"===t){async function j(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 j(a,1).then(()=>{setTimeout(()=>{h(a)},500)}).catch(t=>{console.error("[Whatmore] ATC 67841720509 error:",t)}),void setTimeout(e,n)}if("72603631788"===t||"5220302897"===t){const T=new FormData;T.append("id",a),T.append("quantity","1"),p&&T.append("properties[Size]",p);try{const E=await fetch("/cart/add.js",{method:"POST",body:T}),C=await E.json();C.id?setTimeout(()=>{h(a),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",C)}catch(y){console.error("Afrozeh ATC error:",y)}return void setTimeout(e,n)}if("67083239728"===t){try{const A=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:a,quantity:1}]})});A.ok||console.error("[ATC] Add to cart failed:",A.status)}catch(y){console.error("[ATC] Error while adding to cart:",y)}return setTimeout(()=>{h(a)},1e3),void setTimeout(e,n)}if("62226792677"===t){async function P(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,c),setTimeout(()=>{h(t)},500)):console.error("[ATC] Add to cart failed:",n.status)}return P(a).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60595503283"===t){async function I(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(()=>{h(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",n.status)}catch(y){console.error("Error adding to cart:",y)}}return I(a,1),void setTimeout(e,n)}if("72915616066"===t){function k(){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 L(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(()=>{h(t)},500),!0}async function O(t,e=1){return k()?L(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,h)}return O(a).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("44061622423"===t){async function N(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(()=>{h(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(()=>{h(t)},500)}).catch(()=>{const e=document.querySelector('[href="/cart"], [data-cart-toggle], a[href*="/cart"]');e&&e.click(),setTimeout(()=>{h(t)},500)}):console.error("[ATC] Add to cart failed:",n.status)}return N(a).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,n)}if("60183445561"===t){async function D(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(()=>{h(t),window.location.href="https://tapee.in/cart"},500),i}return D(a).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("22907887"===t){async function W(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 W(a).then(t=>{setTimeout(()=>{h(a)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("28575536"===t||"64287408360"===t||"8473575520"===t||"65972830359"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{h(a)},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:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{h(a)},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:a,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{h(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("56444977250"===t){const M=document.querySelector('button[data-pf-type="ProductATC2"]');return M?(c&&M.setAttribute("data-product-id",c),M.click(),setTimeout(()=>{(0,r.getCartDetailsShopifyAsync)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,o=e.properties;(0,r.updateCartLineItemPropertiesDirect)(t,n,o,s,l,u,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===d||void 0===d||null===(m=d.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,n));var m}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{h(a)},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(a),quantity:1}]})}).then(async()=>{const t=document.getElementById("mini-cart");t&&"function"===typeof t._rerenderCart&&await t._rerenderCart({detail:{openMiniCart:!0}}),setTimeout(()=>{h(a)},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:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{h(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const z=a,R=1,F=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(F){let V=F.querySelector('input[name="id"]');V||(V=document.createElement("input"),V.type="hidden",V.name="id",F.appendChild(V)),V.disabled=!1,V.value=z;const q=F.querySelector('input[name="quantity"]');q&&(q.value=R);const B=F.querySelector('button[data-add-to-cart], button[type="submit"]');return B?(B.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),B.click(),B.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{h(z)},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:z,quantity:R}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{h(z)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const H=document.querySelector('form[action="/cart/add"]');if(!H)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const X=H.querySelector('input[name="id"]');if(!X)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);X.value=a;const Q=H.querySelector('button[type="submit"]');if(!Q)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);Q.click(),setTimeout(()=>{h(a)},500),setTimeout(e,n)}catch(b){console.error("[ATC 64683278550] error:",b),setTimeout(e,n)}return}if("95562924310"===t||"61810999367"===t){try{const U=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:a,quantity:1}]})});if(U.ok){const J=await U.json();document.dispatchEvent(new CustomEvent("cart:update",{detail:{cart:J}})),document.dispatchEvent(new CustomEvent("theme:cart:refresh",{detail:{target:"product_flood_atc"},bubbles:!0})),setTimeout(()=>{h(a)},500)}else console.error("[ATC 95562924310] Add to cart failed:",U.status)}catch(y){console.error("[ATC 95562924310] error:",y)}return void setTimeout(e,n)}if("45050691744"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{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(()=>{h(a)},500)}})}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("55337746621"===t){async function G(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 G(a,1).then(()=>{setTimeout(()=>{h(a)},500)}).catch(t=>{console.error("[Whatmore] ATC 55337746621 error:",t)}),void setTimeout(e,n)}if("12175954"===t){async function K(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(()=>{h(t)},500),!0):(console.error("[ATC] Add to cart failed:",n.status),!1)}return K(a).catch(t=>{console.error("[Whatmore] ATC 12175954 error:",t)}),void setTimeout(e,n)}const f=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},v=(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}},g=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},_=f(document);if(_||(null===_||void 0===_?void 0:_.length)>0){const Y=v(_,a,c);g(Y),setTimeout(()=>{h(a)},500),Y.remove()}else{var w;fetch(null===d||void 0===d||null===(w=d.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=f(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=v(n,a,c);g(t),setTimeout(()=>{h(a)},500),t.remove()}})}setTimeout(e,n)}},3278:function(t,e,n){n.d(e,{A:function(){return $}});var o=n(9950),r=n(1941),i=n(7483),a=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(7509)),c=n(8784),s=(n(4826),n(7575)),l=n(2257),u=n(1348),d=n(6649),p=n(3788),h=n(6493),m=n(4895),f=n(5375),v=n(4833),g=n(4414);var _=function(t){var e;const[n]=(0,i.QN)("whatmoreShopId"),r=t.isMuted,{whatmoreWidgetSourceDetails:a}=(0,o.useContext)(c.AppContext),s=a.templateType,l=(0,v.l2)(s),d=null!==(e=t.iconSize)&&void 0!==e?e:30;function p(e){t.onToggle(e)}return!0===(0,u.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:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{p(t)}}):(0,g.jsx)(m.A,{sx:{color:"white",fontSize:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{p(t)}})})},w=n(8295),y=n(6613),b=n(1085),x=n(1079),S=n(5873),j=n(1351),T=n(6157),E=n(3294),C=n(9879),A=n(9821),P=n(69);function I(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,a=t.activeEventIndex,c=t.setActiveEventIndex,d=(0,i.Xd)("whatmoreShopId"),p="portrait"===t.mode;function h(o){o.stopPropagation(),n(!e),(0,y.MN)()&&((0,A._)()?(0,b.bo)():(0,P.bi)()),t.onMuteToggle()}const m=t.event;return(0,g.jsxs)("div",{style:{position:(0,u.D7t)(d)?"absolute":"relative",top:(0,u.D7t)(d)?0:"",zIndex:1,bottom:(0,u.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,u.OC6)(d)||h(t)}}),(0,u.qLA)(d)&&(0,g.jsx)(_,{isMuted:e,onToggle:t=>{h(t)}})]}),r.length>1&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{classname:"banner-navigation-overlay-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(0===a?r.length-1:a-1)},children:(0,g.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,g.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,g.jsx)(s.A,{})})})}),(0,g.jsx)("div",{classname:"banner-navigation-overlay-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(a===r.length-1?0:a+1)},children:(0,g.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,g.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,g.jsx)(l.A,{})})})}),(0,u.JiT)(d)&&(0,g.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map((t,e)=>{const n=e===a;return(0,g.jsx)("button",{onClick:t=>{t.stopPropagation(),c(e)},style:{width:n?"25px":p?"12px":"14px",height:p?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,u.z1s)(d):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)})})]})]}),!(0,u.OC6)(d)&&(0,g.jsx)("div",{style:{width:"100%",height:"100%"},onClick:h})]})}var k=function(t){var e,n,a,s;const[l,m,f]=(0,r.A)(),[v,_]=(0,o.useState)(!0),y=(0,i.Xd)("whatmoreVideoTileSize"),[b,A,P]=(0,d.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(c.AppContext),$=(0,i.Xd)("whatmoreShopId"),L=t.events,O=t.activeEventIndex,N=t.setActiveEventIndex,D=L[O],W=(0,h.lP)(D),M=(0,h.cb)(D),z=(0,h.tQ)(D,l);if((0,o.useEffect)(()=>{S.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"===l&&!W)return(0,g.jsx)(g.Fragment,{});if("landscape"===l&&!M)return(0,g.jsx)(g.Fragment,{});const R=(0,p.s)("portrait"===l?W:M),F=y/100*(0,u.igk)($),V=y/100*(0,u.Y_l)($),q="portrait"===l?(0,u.G0Q)($):(0,u.ga9)($),B="portrait"===l?f*F:f*V,H=(0,u.D7t)($),X=H?f*q:B*q,Q=null!=(null===(e=D.cta)||void 0===e||null===(n=e[1])||void 0===n?void 0:n.cta_link);return(0,g.jsxs)("div",{ref:b,onClick:()=>{var t,e;(0,j.kz)({userInteractionType:T.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:k,event:L[O]}),(0,u.OC6)($)&&window.open(null===(t=D.cta)||void 0===t||null===(e=t[1])||void 0===e?void 0:e.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:H?"100%":B,height:X,borderWidth:(0,u.YcK)($),borderColor:(0,u.Fwt)($),overflow:"hidden",cursor:"pointer"},children:["28273541192"===$?(0,g.jsx)(C.A,{height:"100%",width:"100%",url:R,isPlaying:A,event:{...D,poster_image:z},isVideoMuted:!A||v,source:E.N.BANNER}):(0,g.jsx)(w.A,{height:"100%",width:"100%",url:R,isPlaying:A,event:{...D,poster_image:z},isVideoMuted:!A||v,setDuration:t.setDuration,source:E.N.BANNER}),(0,g.jsx)(I,{isCTAPresent:Q,events:L,activeEventIndex:O,setActiveEventIndex:N,event:D,mode:l,onMuteToggle:()=>_(!v),initialMuteState:v}),(0,u.XYM)($)&&(null===D||void 0===D||null===(a=D.cta)||void 0===a?void 0:a.length)>1&&(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)(x.A,{isBanner:!0,event:D,cta:null===D||void 0===D||null===(s=D.cta)||void 0===s?void 0:s[1],fontFactor:.6})})]})};var $=function(t){const{whatmoreRootId:e}=(0,o.useContext)(c.AppContext),[n,s]=(0,o.useState)(0),l=t.events,[u,d]=(0,o.useState)(-1),[p]=(0,i.QN)("whatmoreShopId"),[h]=(0,r.A)();let m;return(0,o.useEffect)(()=>{m&&clearInterval(m);const t="video"===l[n].event_type,e=t?1e3*u:6e3;return t?-1!=u&&(m=setInterval(()=>{s(t=>t===l.length-1?0:t+1)},e)):m=setInterval(()=>{s(t=>t===l.length-1?0:t+1)},e),()=>{clearInterval(m)}},[u,n]),(0,g.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===p&&"portrait"==h?"200px":void 0},children:(0,g.jsx)(a.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,g.jsx)(k,{activeEventIndex:n,events:l,setActiveEventIndex:s,setDuration:d})})})}},3294: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"}},3305:function(t,e,n){var o=n(9950);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}},3330:function(t,e,n){n.d(e,{initializeGA:function(){return m},n:function(){return v},sendVideoViewEventToGA:function(){return f}});var o,r=n(2595),i=n(7732),a=n(1348),c=n(7483),s=n(6157);const l="Whatmore Video Shopping",u=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},h={homepage:"Home Page",product_page:"Product Page"};async function m(t){if((0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.initialize((0,a.xIo)(t)),u&&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}),u&&console.debug("Whatmore: initialized GA3")}}async function f(t,e,n){(0,a.B6P)(t)&&null!==(0,a.jWS)(t)&&(r.Ay.event({category:l,action:d.video_view,label:h[e]+":"+p[n]}),u&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.event({category:l,action:d.video_view+":"+h[e]+":"+p[n],value:1,nonInteraction:!1}),u&&console.debug("Whatmore: pushed view event to GA4"))}async function v(t){const e=(0,c.Xd)("whatmoreShopId");if(["56352899156"].includes(e)&&"object"==typeof window.dataLayer){var n,o,r,i;const e=(l=t.selection_type)==s.O.EVENT_VIEW?"whatmore_video_click_event":l==s.O.PRODUCT_TILE_ATC_CLICKED||l==s.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":l==s.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":l==s.O.VIDEO_LIKED?"whatmore_video_like_event":l==s.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":l==s.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!e)return;const c={event:"video_interaction",page_type:null!==(a=t.page_type,n=a.startsWith("index")?"home":a.startsWith("product")?"product_page":a.startsWith("collection")||a.startsWith("page")?"collection_page":void 0)&&void 0!==n?n:"NA",selection_type:e,video_name:null!==(o=t.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(r=t.video_percentage)&&void 0!==r?r:"NA",product_name:null!==(i=t.product_name)&&void 0!==i?i:"NA"};window.dataLayer.push(c),u&&console.debug("Whatmore: pushed event to dataLayer",c)}var a,l}},3788:function(t,e,n){n.d(e,{s:function(){return c}});var o=n(1348),r=n(7483);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}},3887:function(t,e,n){var o=n(4958),r=n(8781),i=n(4414);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,{})})})]})}},3997:function(){},4033: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}},4365:function(){},4459: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,l,u,d,p=Math.round,h="string"==typeof n;return"number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||n&&!h?null:(d=e.length>9,d=h?n.length>9||"c"==n&&!d:d,l=i.pSBCr(e),s=t<0,u=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),l&&u?(o?(r=p(s*l.r+t*u.r),a=p(s*l.g+t*u.g),c=p(s*l.b+t*u.b)):(r=p((s*l.r**2+t*u.r**2)**.5),a=p((s*l.g**2+t*u.g**2)**.5),c=p((s*l.b**2+t*u.b**2)**.5)),h=l.a,u=u.a,l=h>=0||u>=0,h=l?h<0?u:u<0?h:h*s+u*t:0,d?"rgb"+(l?"a(":"(")+r+","+a+","+c+(l?","+p(1e3*h)/1e3:"")+")":"#"+(4294967296+16777216*r+65536*a+256*c+(l?p(255*h):0)).toString(16).slice(1,l?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},4669:function(){},4826:function(){},4833:function(t,e,n){n.d(e,{Gy:function(){return s},Ig:function(){return h},JA:function(){return g},Jh:function(){return v},Mm:function(){return c},S0:function(){return p},Wd:function(){return u},Yt:function(){return m},gf:function(){return l},io:function(){return d},l2:function(){return f},t6:function(){return _}});const o={ta:"template-a",ta1:"template-a-1",tb:"template-b",tc:"template-c",td:"template-d",te:"template-e",tf:"template-f",tg:"template-g",th:"template-h",ti:"template-i","template-j":"tj",ts:"template-stories",tba:"template-banner-a",tem:"template-embed",tsa:"template-stories-a",tsb:"template-stories-b",tfa:"template-feed-a",tca:"template-collections-a",tcb:"template-collections-b",tcc:"template-collections-c",tcd:"template-collections-d",tce:"template-collections-e",tcs:"template-collections-stories",tcf:"template-collections-f",tcg:"template-collections-g",tch:"template-collections-h","template-collections-j":"tcj"},r={"template-a":"ta","template-a-1":"ta1","template-c":"tc","template-d":"td","template-e":"te","template-b":"tb","template-f":"tf","template-g":"tg","template-h":"th","template-i":"ti","template-j":"tj","template-stories":"ts","template-banner-a":"tba","template-embed":"tem","template-stories-a":"tsa","template-stories-b":"tsb","template-feed-a":"tfa","template-collections-a":"tca","template-collections-b":"tcb","template-collections-c":"tcc","template-collections-d":"tcd","template-collections-e":"tce","template-collections-stories":"tcs","template-collections-f":"tcf","template-collections-g":"tcg","template-collections-h":"tch","template-collections-j":"tcj"},i={"template-embed":"0","template-stories-a":"1","template-stories-b":"2","template-a":"3","template-a-1":"4","template-c":"5","template-d":"6","template-e":"7","template-b":"8","template-f":"9","template-stories":"10","template-feed-a":"11","template-collections-a":"12","template-collections-b":"13","template-collections-c":"14","template-collections-d":"15","template-collections-e":"16","template-collections-stories":"17","template-collections-f":"18","template-banner-a":"19","template-g":"20","template-h":"21","template-collections-g":"22","template-collections-h":"23","template-i":"24","template-collections-i":"25","template-j":"26","template-collections-j":"27"},a={index:"h",collection:"c",product:"p",page:"l"},c=function(t){return o[t]},s=function(t){return r[t]},l=function(t){return i[t]},u=function(t){var e;const n=null===(e=t.split("."))||void 0===e?void 0:e[0];return a[n]},d=function(t){return"template-embed"===t},p=function(t){return"non-existent-template"===t||!t},h=function(t){return"invalid-template"===t||!t},m=function(t){return"template-stories-a"===t||"template-stories-b"===t},f=function(t){return"template-banner-a"===t},v="banner",g="spotlight",_=function(t){return"index"===t?"homepage":"collection"===t?"collection":"product"===t||"embed"===t?"product":"homepage"}},4925:function(t,e,n){n.d(e,{h:function(){return c}});var o=n(9950),r=n(4414);const i=(0,o.lazy)(()=>(console.log(`[${(new Date).toLocaleTimeString()}] \ud83c\udfac EventClickComponent chunk loading...`),Promise.all([n.e(942),n.e(323),n.e(254),n.e(260)]).then(n.bind(n,4936))));let a=null;function c(){return a?console.log(`[${(new Date).toLocaleTimeString()}] \u26a1 EventClickComponent already preloaded/preloading`):(console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udd04 Preloading EventClickComponent on hover...`),a=Promise.all([n.e(942),n.e(323),n.e(254),n.e(260)]).then(n.bind(n,4936)).then(t=>(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})),a}e.A=function(t){return(0,r.jsx)(i,{...t})}},4958:function(t,e,n){var o=n(9950),r=(n(5410),n(7483)),i=n(4459),a=n(4414);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"})})}},5100:function(t,e,n){var o=n(9950),r=n(1941),i=n(7483),a=n(4414);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},5119:function(t,e,n){n.d(e,{A:function(){return j}});var o=n(1005),r=n(9950),i=n(7119),a=n(9879),c=n(22),s=n(7483),l=n(932);var u=function(t){const[e,n,o,r,i]=(0,l.A)({isEmbed:!0}),[a]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[u]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),d=i[c.dl]===c.nN?u/100:a/100*1.2;return[e*d,n*d,i]},d=n(1628),p=n.n(d),h=n(6702),m=(n(9733),n(4365),n(1348)),f=n(4414);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(8436);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,l]=(0,r.useState)(e),u=(0,r.useRef)({});return u.current={baseBottom:e,widgetWidth:n,widgetHeight:o,side:i,horizontalPadding:a},(0,r.useEffect)(()=>{if(!c||"undefined"===typeof window)return void l(e);let t=null;const n=()=>{t=null;const{baseBottom:e,widgetWidth:n,widgetHeight:o,side:r,horizontalPadding:i}=u.current,a=window.innerWidth,s=window.innerHeight,d="left"===r?i:a-i-n,p=d+n,h=function(t,e){let n=0;for(const o of w)for(const r of document.querySelectorAll(o)){if(!y(r))continue;const o=r.getBoundingClientRect();o.top>.3*e||o.width<.5*t||o.bottom<=0||o.bottom>=.6*e||o.bottom>n&&(n=o.bottom)}return n}(a,s)+8,m=s-e-o,f=s-e;let v,g=null,_=!1;for(const t of c){const e=document.querySelectorAll(t);for(const t of e){if(!y(t))continue;const e=t.getBoundingClientRect();e.width<=0||e.height<=0||(e.right<=d||e.left>=p||e.bottom<=0||e.top>=s||(g=null===g?e.top:Math.min(g,e.top),e.top<f&&e.bottom>m&&(_=!0)))}}v=_&&null!==g&&g-12-o>=h?Math.max(e,s-g+12):e,l(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[l,d,_]=u();(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,O=E;_[c.dl]===c.nN&&($=C,L=A,O=P);const[N,D]=(0,r.useState)(["initial",window.pageYOffset]),[W,M]=(0,r.useState)(!1),[z]=(0,r.useState)(S),R=null!==(e=t.isSpotlight)&&void 0!==e&&e,F=_[c.dl]===c.nN?.8*(0,m.O86)(I):1.2*(0,m.O86)(I),V=R?F:1.2;l*=V,d*=V;const q=R?(0,m.LrK)(I):$,B=R?(0,m._2D)(I):(0,m.GSq)(I),[H,X]=(0,r.useState)(!R&&(0,m.n8Q)(I)),Q=!R&&(0,m.YE3)(I);function U(t,e){D(t),t[1]<=500?M(!1):e!=W&&(M(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||(U([n>t?"scrolled-down":"scrolled-up",n],!0),t=n>0?n:0),e=!1},o=()=>{e||(window.requestAnimationFrame(n),e=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[N]),(0,o.j)({ref:n,handler:()=>{U(["scrolled-up",N[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=(z/1e3).toFixed(1).replace(/\.0$/,"")+"K",rt=.6*d,it="20px",at=(0,m.GvQ)(I),ct=Number(R?(0,m.pUQ)(I):O)||0,st=!(H&&!B)&&W&&B,lt=b({whatmoreShopId:I,baseBottom:ct,widgetWidth:st?rt:d,widgetHeight:st?rt*(16/9):l,side:q,horizontalPadding:st?16:Number(R?(0,m.D2A)(I):L)||0});var ut=!1,dt=0,pt=0;function ht(t){ut=t}const mt=(0,f.jsx)("div",{className:"73490825529"==I?"whatmore-root wht-popup":"wht-popup",children:H&&!B?(0,f.jsx)(f.Fragment,{}):W&&B?(0,f.jsx)("div",{style:"left"===q?{left:"16px",bottom:lt+"px",position:"fixed",zIndex:at}:{right:"16px",bottom:lt+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{onClick:()=>{U(["initial",N[1]],!1)},style:{width:rt+"px",height:rt*(16/9)+"px",borderRadius:it,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===q?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",borderRadius:it,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,f.jsx)(a.A,{url: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)(h.A,{sx:{color:"white",fontSize:2*Y+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds: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,pt=o},onDrag:(t,e)=>{ht(!0)},onStop:(t,e)=>{ut&&(Math.abs(e.x-dt)>5||Math.abs(e.y-pt)>5)?ht(!1):(Q&&K(t),G(J))},children:(0,f.jsx)("div",{ref:n,style:"left"===q?{left:R?(0,m.D2A)(I)+"px":L+"px",bottom:lt+"px",position:"fixed",zIndex:at}:{right:R?(0,m.D2A)(I)+"px":L+"px",bottom:lt+"px",position:"fixed",zIndex:at},children:(0,f.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==I?l+"px":d+"px",height:t.isSpotlight&&"60122562760"==I?d+"px":l+"px",borderRadius:it,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===q?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:it,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==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})})]})})]})})})});return"73490825529"==I&&"undefined"!==typeof document&&document.body?i.createPortal(mt,document.body):mt}},5410:function(){},5873:function(t,e,n){n.d(e,{Sn:function(){return o}});const o=Array.from(document.getElementsByClassName("whatmore-base"))},6042:function(){},6125:function(){},6493:function(t,e,n){n.d(e,{Cr:function(){return s},cb:function(){return a},lP:function(){return i},tQ:function(){return c},yD:function(){return l}});var o=n(1348);const r=(0,n(7483).Xd)("whatmoreShopId"),i=function(t){var e,n;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.portrait.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.portrait.content_video_1080p?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null===(n=t.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p:function(t){return null!=t.event_m3u8_url&&""!==t.event_m3u8_url?t.event_m3u8_url:t.event_hls_url}(t)},a=function(t){var e;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.landscape.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.landscape.content_video_1080p?t.event_media_urls.secondary.landscape.content_video_1080p:null!==(e=t.event_media_urls.primary.landscape.content_video_1080p)&&void 0!==e?e:t.event_media_urls.primary.portrait.content_video_1080p:t.event_hls_url},c=function(t,e="portrait"){var n,o,r,i;return"event_media_urls"in t?"landscape"===e?t.event_media_urls.primary.landscape.poster_image||(null===(r=t.event_media_urls.secondary)||void 0===r||null===(i=r.landscape)||void 0===i?void 0:i.poster_image)||t.poster_image:t.event_media_urls.primary.portrait.poster_image||(null===(n=t.event_media_urls.secondary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||t.poster_image:t.poster_image},s=function(t){if(t.startsWith("https://cdn.shopify.com")&&t.includes("whatmore_")){const e=(0,o.ath)(r);if(!e)return t;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t},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}},6613: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)},6614:function(){},6649:function(t,e,n){var o=n(9950);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),l=(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 l.current&&o.observe(l.current),()=>{o.disconnect()}},[t,e,n,r]),[l,i,c]}},6670:function(t,e,n){var o=n(9950),r=n(7483);e.A=function(t){const[e,n]=(0,r.QN)("muted");return(0,o.useEffect)(()=>{},[]),[e,n]}},7229:function(){},7483:function(t,e,n){n.d(e,{QN:function(){return pt},Xd:function(){return ht},t2:function(){return mt}});var o,r,i,a,c,s,l,u,d,p,h=n(9950),m=n(8453),f=n(1348),v=n(4459),g=n(964);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),O=_("whatmoreEmbedAppVideoPlayerSizeLandscape",60),N=_("whatmoreEmbedAppUseVariant","false");const D="22892183632"==y||"1546387531"==y?80:60;var W=_("whatmoreHeading",""),M=_("whatmoreCollection","invalid-url"),z=_("whatmoreCollectionHeading",""),R=_("whatmoreTitleFontSize","24"),F=_("whatmoreTitleFontSizePortrait",R),V=_("whatmoreLandscapePadding",function(){let t=!1;const e=document.querySelectorAll(".whatmore-widget");for(let n of e){const e=n.getAttribute("data-wh"),o=n.getAttribute("data"),r=e||o||null;if("string"===typeof r&&r.trim().toLowerCase().startsWith("collection")){t=!0;break}}if(t&&"68304765103"==y)return 0;return 40}()),q=_("whatmoreTopBottomPadding",20),B=_("whatmoreStoriesTopBottomPadding",10),H=_("whatmoreStoryTileSize",40),X=_("whatmoreStoryTileSizeDesktop",40),Q=_("whatmoreCollectionsTileSize",D),U=_("whatmoreCollectionsTileSizePortrait",D),J=_("whatmoreVideoTileSize",Q),G=_("whatmoreVideoTileSizePortrait",U),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",lt=null!==(s=(0,f.YqT)(y))&&void 0!==s?s:"Poppins";function ut(){return"-apple-system"==st&&"-apple-system"==lt?(st="Poppins",lt="Poppins"):"-apple-system"==st?st=lt:"-apple-system"==lt&&(lt=st),[st,lt]}const{GlobalStateProvider:dt,useGlobalState:pt,getGlobalState:ht,setGlobalState:mt}=(0,m.V)({isInDesignMode:Y,isDemoBrand:y===g.YZ,whatmoreShopId:y,whatmoreProductId:j,whatmoreCollectionId:S,whatmoreLandingLocationType:b,whatmoreEmbedAppPositionPortrait:C,whatmoreEmbedAppHorizontalPaddingPortrait:A,whatmoreEmbedAppVerticalPaddingPortrait:P,whatmoreEmbedAppVideoPlayerSizePortrait:I,whatmoreEmbedAppPositionLandscape:k,whatmoreEmbedAppHorizontalPaddingLandscape:$,whatmoreEmbedAppVerticalPaddingLandscape:L,whatmoreEmbedAppVideoPlayerSizeLandscape:O,whatmoreEmbedAppVideoTitle:E,whatmoreEmbedAppUseVariant:N,whatmoreVariantId:T,whatmoreHeading:W,whatmoreCollectionHeading:z,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!==(l=(0,f.sa6)(y))&&void 0!==l?l:ut()[0],whatmoreTitleFontSize:R,whatmoreTitleFontSizePortrait:F,whatmorePrimaryFont:null!==(u=(0,f.vvD)(y))&&void 0!==u?u:ut()[1],whatmoreLandscapePadding:V,whatmoreTopBottomPadding:q,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:h.createRef(),productRatings:null,whatmoreVideoPlayerPool:document.createDocumentFragment(),whatmoreVideoPlayerPoolInitiated:!1,whatmoreVideoPlayerPoolBlessed:!1,whatmoreAddedToCart:!1,whatmoreAllowAutoSlide:"STR0IIHZXKW"!==y&&"STRU4RO77D5"!==y,muted:(0,f.mlY)(y)||ot||"32788742281"===y,is3DTemplateMuted:!0,isLandingSharedLink:ot,whatmoreShareTemplateId:rt,whatmoreShareStoryId:it,whatmoreShareEventId:at,whatmoreLikedEvents:{},whatmoreLoggingActive:null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d,brandCustomizationsLoaded:!1,isCarouselDataLoading:!0,whatmoreShopNowCTA:Z,websiteLanguage:ct,isWhatmoreWebsite:tt,whatmoreUITheme:null!==(p=(0,f.hep)(y))&&void 0!==p?p:"round",whatmoreCollectionUrl:M,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}}()})},7509:function(t,e,n){n.d(e,{h:function(){return o}});const o=(0,n(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7740:function(t,e,n){n.d(e,{U:function(){return r}});var o=n(7483);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")}},7802:function(t,e,n){n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return c},Z_:function(){return o},Zf:function(){return l},d8:function(){return s},zJ:function(){return i}});const o=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},r=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t){if(null!=t)return t.filter(t=>{var e;return null===(e=null===t||void 0===t?void 0:t.in_stock)||void 0===e||e})},a=function(t,e=!1){var n,o;if(null!=t)return e?{events:t.events[0].events,all_events:null!==(o=null===t||void 0===t?void 0:t.all_events)&&void 0!==o?o:[]}:{events:null===t||void 0===t?void 0:t.events,all_events:null!==(n=null===t||void 0===t?void 0:t.all_events)&&void 0!==n?n:[]}};const c=function(t,e){var n,o;let r=[];if(null==t)return[];if("eventsets"in t&&t.eventsets[e]){const n=function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach(t=>{e=e.concat(t.events)}),e}(t.eventsets[e]);r=[...n]}return{events:r,all_events:null!==(n=null===(o=r)||void 0===o?void 0:o.all_events)&&void 0!==n?n:[]}};function s(t){if(null!=t){var e=0;return t.forEach(t=>{t.index=e++}),t}}function 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},[])}},7973:function(t,e,n){n.d(e,{B:function(){return a},b:function(){return i}});var o=n(1348),r=n(7483);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}},8295:function(t,e,n){n.d(e,{A:function(){return b}});var o=n(9950),r=n(2039),i=n(6670),a=n(314),c=n(3887),s=n(4414);var l=function(t){var e,n,r;const[i,a]=(0,o.useState)(!1),l=o.useRef(0),u=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},p=(null===t||void 0===t?void 0:t.posterImage)||t.url;console.log("[AppImagePlayerV2] posterImage:",p,"canplayVideo:",i,"url:",t.url);const h=null!==(n=t.height)&&void 0!==n?n:"100%",m=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)(()=>{l.current=0;const t=setInterval(()=>{l.current=l.current+.03,u.current&&d(l.current,5),l.current>=5&&(l.current=0)},30);return()=>{clearInterval(t)}},[t.isPlaying]),(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:m,height:"100%",overflow:"hidden"},children:[(0,s.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,s.jsx)("img",{ref:u,src:t.url,style:{objectFit:"cover",height:"100%",width:m,backgroundColor:"white"},alt:"image player",onLoad:()=>{a(!0)}})}),!i&&p?(0,s.jsx)("img",{src:p,style:{height:"100%",width:m,objectFit:"cover"},alt:"Loading preview"}):i?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(c.A,{width:m,height:h})]})},u=n(7483),d=n(1085),p=n(3294),h=n(1348),m=n(4033),f=(n(5410),n(8784)),v=n(6493);function g(t){var e,n,r;const[a,l]=(0,i.A)(),[g,_]=(0,o.useState)(o.useRef()),w=t.posterImage,[y,b]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),[x,S]=(0,o.useState)(!0),[j,T]=(0,o.useState)(!1),E=t.timeUpdateCallback,{whatmoreIsPreviewMode:C}=(0,o.useContext)(f.AppContext),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,u.Xd)("whatmoreShopId");(0,o.useLayoutEffect)(()=>{if(g.current&&y)if(0==g.current.children.length){const n=(0,v.Cr)(t.url);(e=(0,d.Z4)(g.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=g.current.children[0]).muted=A||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(k)&&t.source==p.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout(()=>{!t.isPlaying&&e.pause()},(0,m.n)()?1900:800)))}},[A,t.isPlaying,y,x]),(0,o.useLayoutEffect)(()=>()=>{g.current&&0!=g.current.children.length&&(0,d.rq)(g.current)},[]);const $=(0,u.Xd)("whatmoreLandingLocationType");return(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:I,height:P,overflow:"hidden",backgroundColor:C?(0,h.KVz)(k):(0,h.QSX)(k),filter:t.showQuestion?"blur(24px)":""},children:[(0,s.jsx)("div",{ref:g,style:{width:x?"0px":"100%",height:x?"0px":C?(0,h.tbf)(k):(0,h.CBm)(k)&&"product"==$?"auto":(0,h.R7q)(k)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==k&&x&&j?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,s.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,s.jsx)("img",{src:w,style:{height:"100%",width:I,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):x&&!j&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,s.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,s.jsx)("img",{src:w,height:"100%",width:I,onLoad:()=>{T(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,s.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,s.jsx)(c.A,{width:I,height:P,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var _=function(t){var e;return(0,s.jsx)(g,{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})},w=n(3788);function y(t){var e,n,r;const[a,l]=(0,i.A)(),[d,g]=(0,o.useState)(!1),[_,y]=(0,o.useState)(!1),b=t.setDuration,x=(0,o.useRef)(null),S=(0,u.Xd)("whatmoreShopId"),j=t.timeUpdateCallback,{whatmoreIsPreviewMode:T}=(0,o.useContext)(f.AppContext),E=(0,u.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,s.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:A,height:C,overflow:"hidden",backgroundColor:T?(0,h.KVz)(S):(0,h.QSX)(S),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,s.jsx)("div",{style:{width:d?"100%":"0px",height:d?T?(0,h.tbf)(S):(0,h.CBm)(S)&&"product"==E?"auto":(0,h.R7q)(S):"0px"},children:(0,s.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:()=>{g(!0),t.isPlaying&&x.current&&x.current.play(),(0,h.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,m.n)()?1900:800))},onLoadedMetadata:()=>{x.current&&b&&b(x.current.duration)},poster:I,children:[(0,s.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,s.jsx)("source",{src:(0,w.s)(t.url),type:"video/mp4"}),(0,s.jsx)("source",{src:(0,v.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==S&&!d&&_?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,s.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,s.jsx)("img",{src:I,style:{height:"100%",width:A,objectFit:"cover",animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!d&&!_&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,s.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,s.jsx)("img",{src:I,height:"100%",width:A,onLoad:()=>{y(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,s.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,s.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,d;return(0,r.I)(t.event)?(0,s.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,u.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,s.jsx)(_,{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===(d=t.event)||void 0===d?void 0:d.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,s.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})}},8436:function(t,e,n){var o=n(4414);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 "})]})},8781:function(t,e,n){var o=n(4414);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"})})}},8784:function(t,e,n){n.r(e),n.d(e,{AppContext:function(){return at},initializeReactApp:function(){return ut},isTemplateTypeBanner:function(){return ct},isTemplateTypeCollections:function(){return st},isTemplateTypeStories:function(){return lt}});var o=n(9950),r=n(1352),i=n(7483),a=n(1348),c=n(7740),s=n(4833),l=n(1745),u=n(4414);const d=o.lazy(()=>Promise.all([n.e(942),n.e(254),n.e(760)]).then(n.bind(n,1013)));var p=()=>(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(d,{})});class h 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(),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",console.log(`[Chunk Error] Reset minHeight to 0px for widget ${n}`))}}render(){return this.state.hasError?null:this.props.children}}var m=h,f=n(964),v=n(140),g=n(4533),_=n(7802),w=n(5119),y=n(1085),b=n(6613),x=n(3330),S=(n(3262),n(572)),j=n(8603),T=n(2039),E=n(1351),C=n(6157),A=n(2979),P=n(9541),I=n(6641),k=n(8945),$=n(9821),L=n(69),O=n(1019),N=n(4925),D=n(5100),W=n(605);const M=(0,j.A)({key:"whatmore-css-ppv"});function z(t){return t.split(/[?#]/)[0]}var R=function(t){var e,n;const[r,c]=(0,o.useState)(),[l,d]=(0,o.useState)(),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),[m]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[j,R]=(0,o.useState)(-2),[F]=(0,i.QN)("whatmoreVariantId"),[V]=(0,i.QN)("whatmoreShopId");var[q]=(0,i.QN)("whatmoreProductId");const B=(0,i.Xd)("isLandingSharedLink"),H=(0,i.Xd)("whatmoreShareTemplateId"),X=(0,i.Xd)("whatmoreShareEventId"),Q=B&&"template-embed"===(0,s.Mm)(H),[U,J]=(0,o.useState)(Q);q=(0,a.BcY)(V)?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)}(V):q;const[G,K]=(0,o.useState)(()=>"true"===m?F:q),[Y,Z]=(0,o.useState)(!1);var tt=((0,a.jpW)(V)?f.$$:f.MT)+"/v2/brand/"+V+"/product-events",et="upcoming";const{whatmoreWidgetSourceDetails:nt}=(0,o.useContext)(at),ot=(0,o.useRef)(!1);(0,o.useEffect)(()=>{(0,x.initializeGA)(V),(0,I.Fk)("Video shopping powered by Whatmore!"),(0,g.wm)()},[]),(0,o.useEffect)(()=>{null==r||0==r.length||l||!(0,b.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,$._)()?(0,y.Pc)(y.F5):(0,L.bi)())},[r]),(0,o.useEffect)(()=>{if((0,a.fDZ)(V))if(R(-1),(0,a.WH1)(V)){const t=(0,O.B)(V),e=(0,a.buK)(V);fetch(`${t}?client_product_id=${G}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(t=>t.json()).then(t=>{const n=null===t||void 0===t?void 0:t.events;if((null===n||void 0===n?void 0:n.length)>0){var o;const r=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(o=t.related_events)||void 0===o?void 0:o.map(t=>({...t,isRelatedEvent:!0}));let i=[...n,...r];(0,a.xku)(V)||(i=(0,_.Zf)(i)),c(i)}else c([])}).catch(t=>d(t.message))}else fetch(tt.toString()+"?client_product_id="+G.toString()+"&status="+et.toString()+"&event_type=video").then(t=>t.json()).then(t=>{const e=t.events;if((null==e||0===e.length)&&"STROXKHHO98"===V){const t=z(window.location.href);if(t!==G)return fetch(tt.toString()+"?client_product_id="+encodeURIComponent(t)+"&status="+et.toString()+"&event_type=video").then(t=>t.json()).then(t=>t.events)}return e}).then(t=>(null!=t&&0!=t.length&&(0,a.vfi)(V)&&(0,a.YOR)(t),(0,a.xku)(V)||(t=(0,_.Zf)(t)),c(t),t)).then(t=>((0,a.Uht)(V)&&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(f.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(t,G),t)).catch(t=>{d(t.message)})},[G]),(0,o.useEffect)(()=>{R(-2)},[r]),(0,o.useEffect)(()=>{const t=z(window.location.href);"8111554613"===V&&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"==V&&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)}),"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&&!l&&Q&&((0,k.H)("whatmore-video-player",()=>{J(!1)}),null!=X)){const t=r.find(t=>X==t.event_id);if(t)return void ct(t,!0,r.indexOf(t))}},[r]);const rt=nt.landingLocationType,it=nt.templateType,ct=async(t,e=!1,n=0)=>{if((0,b.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await((0,$._)()?(0,y.bo)():(0,L.bi)())}if((0,T.i)(t)||(0,T.I)(t))return p||h||(async()=>{const e=(0,s.Wd)(rt)+(0,s.gf)(it)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,v.lB)(t),(0,x.sendVideoViewEventToGA)(V,f.DK,f.K1),(0,g.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,a.YE3)(V)&&Z(!0),void R(n)};function st(){return(0,u.jsx)(u.Fragment,{})}return null==r||0==r.length||l||(0,s.Ig)(nt.templateType)||!(0,a.fDZ)(V)?(0,u.jsx)("div",{}):(0,u.jsxs)(S.C,{value:M,children:[U&&(0,u.jsx)(D.A,{}),"no-product"===G||-1===j||0===r.length?(0,u.jsx)(st,{}):-2===j&&r.length>0?(0,u.jsx)("div",{onMouseEnter:()=>(0,N.h)(),children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(w.A,{event:r[0],inVideoClick:ct,closeClick:t=>{var e;t.stopPropagation(),R(-1),(0,E.kz)({userInteractionType:C.O.PDP_POPUP_CLOSED,widgetSourceDetails:nt,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;ot.current||p||h||(ot.current=!0,(0,P.B)({userInteractionType:C.O.PDP_POPUP_WIDGET_VIEW,widgetSourceDetails:nt,event:r[0],productList:r[0].products,ctaList:null!==(t=r[0].cta)&&void 0!==t?t:[]}))}})})}):(0,u.jsx)("div",{children:(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(W.A,{posterUrl:(null===r||void 0===r||null===(e=r[j])||void 0===e?void 0:e.poster_image)||(null===r||void 0===r||null===(n=r[j])||void 0===n?void 0:n.thumbnail_image)}),children:(0,u.jsx)(A.S,{userInteractionType:C.O.EVENT_VIEW,event:r[0],productList:r[0].products,cta:r[0].cta,triggerFlag:!p&&!h,children:(0,u.jsx)(N.A,{events:r,index:j,onBack:function(){R(Y?-1:-2),J(!1)},template:"template-product-page"})})})})]})};const F=(0,j.A)({key:"whatmore-css-wsv"});var V=function(t){var e,n;const[r,c]=(0,o.useState)(),[l,d]=(0,o.useState)(),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),[m,j]=(0,o.useState)(-2),[E]=(0,i.QN)("whatmoreShopId"),k=(0,i.Xd)("isLandingSharedLink"),O=(0,i.Xd)("whatmoreShareTemplateId"),D=((0,i.Xd)("whatmoreShareStoryId"),(0,i.Xd)("whatmoreShareEventId")),M=(0,i.Xd)("whatmoreLandingLocationType"),z=(0,i.Xd)("whatmoreLoggingActive"),R=(0,i.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:V}=(0,o.useContext)(at),q=(0,o.useRef)(!1);var B=(0,a.SOt)(E)?f.aD+"/get_eventset/":f.$$+"/get_eventset/",H=(0,a.SOt)(E)?f.aD+"/get_eventset_v1/":f.$$+"/get_eventset_v1/";(0,o.useEffect)(()=>{(0,g.wm)()},[]),(0,o.useEffect)(()=>{(0,x.initializeGA)(E)},[]),(0,o.useEffect)(()=>{null==r||0==r.length||l||!(0,b.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,$._)()?(0,y.Pc)(y.F5):(0,L.bi)())},[r]),(0,o.useEffect)(()=>{j(-1);const t=s.JA,e=(0,s.t6)(M),n="78232846646"===E.toString()?H.toString()+E.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+E:B.toString()+E.toString()+"?eventset_type="+t+"&source="+e+"&source_id="+E;fetch(n).then(t=>t.json()).then(e=>(0,_.Po)(e,t)).then(async t=>{if(R&&(null==t||t&&0==(null===t||void 0===t?void 0:t.length))){const{pdpData:t}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return c(t),t}let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];return(0,a.xku)(E)||(e=(0,_.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=>{d(t.message)})},[]),(0,o.useEffect)(()=>{j(-2)},[r]),(0,o.useEffect)(()=>{null==r||0==r.length||l||k&&"template-embed"==(0,s.Mm)(O)&&null!=D&&r.forEach((t,e)=>{D==t.event_id&&U(t,!0,e)})},[r]);const X=V.landingLocationType,Q=V.templateType,U=(t,e=!1,n=0)=>{if((0,b.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||((0,$._)()?(0,y.bo)():(0,L.Ij)())}if((0,T.i)(t)||(0,T.I)(t))return p||h||(async()=>{const e=(0,s.Wd)(X)+(0,s.gf)(Q)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,v.lB)(t),(0,x.sendVideoViewEventToGA)(E,f.DK,f.K1),(0,g.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void j(n)};function J(){return(0,u.jsx)(u.Fragment,{})}return null==r||0==r.length||l?(0,u.jsx)("div",{}):(z&&(0,I.xv)(r),(0,a.ALN)(E)&&m<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,u.jsx)(u.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,u.jsx)(S.C,{value:F,children:-1===m||0===r.length?(0,u.jsx)(J,{}):-2===m&&r.length>0?(0,u.jsx)("div",{onMouseEnter:()=>(0,N.h)(),children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(w.A,{event:r[0],inVideoClick:U,closeClick:t=>{t.stopPropagation(),j(-1)},isSpotlight:!0,onImpression:()=>{var t;q.current||p||h||(q.current=!0,(0,P.B)({userInteractionType:C.O.SPOTLIGHT_WIDGET_VIEW,widgetSourceDetails:V,event:r[0],productList:r[0].products,ctaList:null!==(t=r[0].cta)&&void 0!==t?t:[]}))}})})}):(0,u.jsx)("div",{children:(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(W.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,u.jsx)(A.S,{userInteractionType:C.O.EVENT_VIEW,event:r[0],productList:r[0].products,cta:r[0].cta,triggerFlag:!p&&!h,children:(0,u.jsx)(N.A,{events:r,index:m,onBack:function(){j(-2)},template:"template-embed",eventsStories:null})})})})})))};var q=function(){return(0,u.jsx)(u.Fragment,{})},B=n(5873),H=n(3278);var X=function(){const[t,e]=(0,o.useState)(),[n,r]=(0,o.useState)(),[c,l]=(0,o.useState)(!1),[d]=(0,i.QN)("whatmoreShopId"),[p]=(0,i.QN)("isInDesignMode"),[h]=(0,i.QN)("isDemoBrand"),m=(0,i.Xd)("isWhatmorePreviewMode"),v=(0,i.Xd)("whatmoreLoggingActive"),{whatmoreRootId:w,whatmoreWidgetIdentity:S}=(0,o.useContext)(at),j=((0,i.Xd)("whatmoreLandingLocationType"),(0,a.SOt)(d)?f.aD+"/get_eventset/":f.$$+"/get_eventset/");return(0,o.useEffect)(()=>{(0,g.wm)()},[]),(0,o.useEffect)(()=>{(0,x.initializeGA)(d)},[]),(0,o.useEffect)(()=>{null!=t&&0!=t.length&&!n&&(0,b.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,$._)()&&(0,y.Pc)(y.F5)},[t]),(0,o.useEffect)(()=>{const t=s.Jh;let n;if(S&&"wgt_default"!==S){n=`${f.$$}/brand/${d}/eventset?widget_id=${S}&source_type=homepage&source_id=${d}&eventset_type=${t}&status=active,active`,v&&console.log("[Banner Widget System] Using new API:",n)}else n=j.toString()+d.toString()+"?eventset_type="+t+"&source=homepage&source_id="+d,v&&console.log("[Banner Default] Using old API:",n);fetch(n).then(t=>t.json()).then(e=>(0,_.Po)(e,t)).then(async t=>{var n,o;let r=[...null!==(n=null===t||void 0===t?void 0:t.events)&&void 0!==n?n:[],...null!==(o=null===t||void 0===t?void 0:t.all_events)&&void 0!==o?o:[]];if((h||p||m)&&0===r.length){const{bannerData:t}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return void e(t)}e(r),l(!0)}).catch(t=>{r(t.message),l(!0)})},[]),(0,o.useEffect)(()=>{t&&t.length>0&&B.Sn.forEach(t=>{const e=t.querySelector(`.whatmore-shimmer-container[data-widget-id="${w}"]`);e&&(e.remove(),v&&console.log(`[Banner Success] Removed shimmer for widget ${w}`));const n=t.querySelector(`.whatmore-render-root[data-widget-id="${w}"]`);n&&(n.style.opacity="1",n.style.pointerEvents="auto",n.removeAttribute("data-shimmer-active"),v&&console.log(`[Banner Success] Showing render root for widget ${w}`))})},[t]),c&&(null==t||0===t.length||n)?(B.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="${w}"]`);n&&(n.remove(),v&&console.log(`[Banner API Error] Removed shimmer for widget ${w}`));const o=t.querySelector(`.whatmore-render-root[data-widget-id="${w}"]`);o&&(o.style.opacity="1",o.style.pointerEvents="auto",o.removeAttribute("data-shimmer-active"),v&&console.log(`[Banner API Error] Reset render root for widget ${w}`)),h||p||t.style.setProperty("min-height","0px","important")}),(0,u.jsx)("div",{})):null==t||0===t.length||n?(0,u.jsx)("div",{}):(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(A.S,{userInteractionType:C.O.BANNER_WIDGET_VIEW,event:t[0],triggerFlag:!p&&!h,children:(0,u.jsx)(H.A,{events:t})})})},Q=n(1941),U=(n(6125),n(4365),n(6614),n(3788)),J=n(7973),G=n(9879);var K=function(t){var e,n;const r=(0,i.Xd)("whatmorePrimaryFont"),c=(0,i.Xd)("whatmoreSecondaryColor"),s=(0,i.Xd)("whatmoreShopId"),[l,d]=(0,o.useState)(!1),p=t.mode,h=t.storyId,m=(0,U.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,u.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:()=>{d(!0),v(h)},className:[l?"whatmore-scale-on-tap":""].join(" "),children:[(0,u.jsx)("div",{style:{display:"flex",boxSizing:"border-box",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:y,boxShadow:"87857266990"===s?"none":"0px 2px 1px 0px "+j[0]+"50, 0px -2px 1px 0px "+j[1]+"50, 2px 0px 1px 0px "+j[2]+"50, -2px 0px 1px 0px "+j[3]+"80, 2px -2px 1px 0px "+j[4]+"80, -2px 2px 1px 0px "+j[0]+"DA, 2px 2px 1px 0px "+j[1]+"DA, -2px -2px 1px 0px "+j[2]+"DA"},children:(0,u.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,J.B)(m)?(0,u.jsx)(G.A,{height:"100%",width:"100%",url:m,isPlaying:!0,event:_||{event_type:"video"},borderRadius:y}):(0,u.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,U.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,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,u.jsx)("p",{className:"wht-story-title "+("landscape"===p?"wst-landscape":"wst-portrait"),style:{textAlign:"center",color:(0,a.o9q)(s),fontFamily:S,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto",fontSize:x+"px"},children:null===f||void 0===f?void 0:f.substring(0,24)})})]})};const Y=t=>(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:t.style,children:(0,u.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Z=t=>(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:t.style,children:(0,u.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),tt=(0,j.A)({key:"whatmore-stories-css"});var et=function(t){const[e,n,r]=(0,Q.A)(),[c]=(0,i.QN)("whatmoreStoryTileSize"),[s]=(0,i.QN)("whatmoreStoryTileSizeDesktop"),[l]=(0,i.QN)("whatmoreShopId"),[d,p]=(0,o.useState)("portrait"===e?"flex-start":"center"),[h,m]=(0,o.useState)(!1),[f,v]=(0,o.useState)(!1),g=(0,o.useRef)(null),_=(0,o.useRef)(null);var w=t.eventsStories;const y=t.onClick,b=t.template,x="landscape"===e&&(0,a.lDJ)(l);function j(){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)(()=>{B.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 T=t=>{if(g.current){const e="left"===t?4*-A:4*A;g.current.scrollBy({left:e,behavior:"smooth"})}};(0,o.useEffect)(()=>{!function(){if(g.current){const t=g.current.scrollWidth,e=g.current.offsetWidth;p(t>e?"flex-start":"center")}}()},[d,r]),(0,o.useEffect)(()=>{if(!x)return;const t=()=>{j()},e=()=>{j()},n=g.current;return n?(n.addEventListener("scroll",t),window.addEventListener("resize",e),j(),()=>{n.removeEventListener("scroll",t),window.removeEventListener("resize",e)}):void 0},[x]);const[E,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,u.jsx)(S.C,{value:tt,children:"landscape"==e&&!(0,a.AFg)(l)||"portrait"==e&&!(0,a.rC6)(l)?(0,u.jsx)(u.Fragment,{}):(0,u.jsxs)("div",{ref:_,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-story-container",children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:d,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?E[n]:0,l=null===(o=t.events)||void 0===o?void 0:o[s],d=t.storyset_dynamic_thumbnail?null!==(r=null===l||void 0===l?void 0:l.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,u.jsx)(K,{storyId:t.id,tileSize:A,onClick:t=>{y(n)},template:b,imageUrl:d,fallbackUrl:t.thumbnail_image,title:t.title,mode:e,event:l},"whatmore-story-"+t.id)})}),x&&(0,u.jsxs)(u.Fragment,{children:[h&&(0,u.jsx)("button",{onClick:()=>T("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,u.jsx)(Y,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})}),f&&(0,u.jsx)("button",{onClick:()=>T("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,u.jsx)(Z,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})};var nt,ot=function(){var t,e,r,c,l,d;const[p,h]=(0,o.useState)(),[m,w]=(0,o.useState)(),[S,j]=(0,o.useState)(),[T,E]=(0,o.useState)(!1),[P,I]=(0,o.useState)(-1),[k,L]=(0,o.useState)(null),[O]=(0,i.QN)("whatmoreShopId"),[D]=(0,i.QN)("isInDesignMode"),[M]=(0,i.QN)("isDemoBrand"),[z]=(0,i.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreRootId:R,whatmoreWidgetSourceDetails:F,whatmoreUserInfo:V}=((0,i.Xd)("isWhatmorePreviewMode"),(0,i.Xd)("whatmoreLoggingActive"),(0,o.useContext)(at)),q=(0,i.Xd)("whatmoreLandingLocationType"),H=(null===F||void 0===F?void 0:F.templateType)||"template-stories-a";(0,o.useEffect)(()=>{(0,g.wm)()},[]),(0,o.useEffect)(()=>{(0,x.initializeGA)(O)},[]),(0,o.useEffect)(()=>{null!=p&&0!=p.length&&!S&&(0,b.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,$._)()&&(0,y.Pc)(y.F5)},[p]),(0,o.useEffect)(()=>{var t,e,n;const o=null===(t=window)||void 0===t||null===(e=t.whatmore)||void 0===e||null===(n=e.storyEvents)||void 0===n?void 0:n.events;if(q.startsWith("index")&&"object"==typeof o&&(null===o||void 0===o?void 0:o.length)>0)h(o),w(o),E(!0);else{let t;const e="live,upcoming",n="true";if(q.startsWith("product")){const n=(0,i.Xd)("whatmoreProductId");t=f.$$+"/v2/brand/"+O+"/product-events"+"?client_product_id="+n+"&status="+e+"&event_type=video"}else{t=((0,a.SOt)(O)?f.aD+"/v2/events/":f.$$+"/v2/events/")+O+"?status="+e+"&is_active="+n+"&template_type=stories"}fetch(t).then(t=>t.json()).then(t=>(0,_.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)(O)?(0,_.d8)(e):(0,_.Zf)(e),h(e),w(e),E(!0)}).catch(t=>{console.error("[WhatmoreStoriesView] API Error:",t),j(t),E(!0)})}},[]);const X=p?function(t){var e=t.reduce((t,e,n)=>{var o,r=e.storyset_id;r in t?(t[r].total_events=t[r].total_events+1,t[r].events.push(e)):t[r]={id:e.storyset_id,title:e.storyset_name,thumbnail_image:e.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(o=null===e||void 0===e?void 0:e.storyset_dynamic_thumbnail)&&void 0!==o&&o,events:[e]};return t},{}),n=Object.values(e);return n.sort((t,e)=>t.start_event_index-e.start_event_index),n}(p):[];return T&&(null==p||0===p.length||S)?(M||D||B.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,u.jsx)("div",{})):null==p||0===p.length||S?(0,u.jsx)("div",{}):(0,u.jsxs)(u.Fragment,{children:[-1!==P&&null!==k&&(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(W.A,{posterUrl:(null===X||void 0===X||null===(t=X[k])||void 0===t||null===(e=t.events)||void 0===e||null===(r=e[P])||void 0===r?void 0:r.poster_image)||(null===X||void 0===X||null===(c=X[k])||void 0===c||null===(l=c.events)||void 0===l||null===(d=l[P])||void 0===d?void 0:d.thumbnail_image)}),children:(0,u.jsx)(N.A,{events:m,index:P,onBack:async function(){I(-1)},slideDirection:"horizontal",eventsStories:X,initialStoryIndex:k,template:H})}),(0,u.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,N.h)(),style:{height:"100%",marginTop:z+"px",marginBottom:z+"px"},children:(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(A.S,{userInteractionType:C.O.STORIES_WIDGET_VIEW,triggerFlag:!D&&!M,children:(0,u.jsx)(et,{eventsStories:X,onClick:async function(t,e=!1,o=null){if((0,b.MN)()&&(0,$._)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,y.bo)()}D||M||(async()=>{const{initializeGA:e,sendVideoViewEventToGA:o}=await Promise.resolve().then(n.bind(n,3330));e();const r=X[t].events[0],i=(null===F||void 0===F?void 0:F.landingLocationType)||"index",a=(null===F||void 0===F?void 0:F.templateType)||"template-stories-a",c=(0,s.Wd)(i)+(0,s.gf)(a)+(null!==r&&void 0!==r&&r.isRelatedEvent?"R":"E")+"_"+(null===r||void 0===r?void 0:r.event_id);(0,v.lB)(r),o(O,f.TB,f.OL),(0,g.Ch)(r.event_id,r.products,"homepage","stories",c,null===r||void 0===r?void 0:r.location,null===V||void 0===V?void 0:V.userType)})();var r=0;null!=o&&X[t].events.map((t,e)=>{t.event_id==o&&(r=e)}),I(r),L(t)},template:H})})})})]})};const rt=null!==(nt="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==nt&&nt;var it=function(){const{whatmoreEventsBrowsingTemplate:t,whatmoreIsStoriesTemplate:e,whatmoreIsCollectionsTemplate:r,whatmoreIsBannerTemplate:d,whatmoreCollectionId:h,whatmoreRootId:f,whatmoreWidgetSourceDetails:v,whatmoreIsPreviewMode:g,whatmoreUserInfo:_}=(0,o.useContext)(at),w=(null===v||void 0===v?void 0:v.landingLocationType)||"index",[y]=(0,i.QN)("whatmoreShopId"),[b]=(0,i.QN)("isInDesignMode"),[x]=(0,i.QN)("isDemoBrand"),[S]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[j,T]=(0,i.QN)("brandCustomizationsLoaded");function E(){const t=h;return b||(0,a.hbj)(y)&&((0,a.R2w)(y)&&w.includes("index")||t&&(0,a.Idi)(y).includes(t)||(0,a.isL)(y))}if((0,o.useEffect)(()=>{if(!j)try{const t=localStorage.getItem("whatmore_brand_customizations");if(t){const{customizations:e}=JSON.parse(t);(0,a.Tzr)(e,y),T(!0),rt&&console.debug("Whatmore: Customizations loaded from cache in App.js")}}catch(t){console.error("Whatmore: Error loading customizations in App.js:",t)}},[j,y,T]),(0,o.useEffect)(()=>{null==localStorage.getItem("_user_wh_lc")&&"72201044272"==y&&n.e(259).then(n.bind(n,3446)).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}`)})},[y]),(0,c.U)()){if((0,s.S0)(t))return(0,u.jsx)(u.Fragment,{});if("index"===w||"collection"===w||w.startsWith("collection")||w.startsWith("page")||w.startsWith("blog")||w.startsWith("article")){if(d)return rt&&console.debug(`Whatmore: Shopify, rendering banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})});if(e)return rt&&console.debug(`Whatmore: Shopify, rendering stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ot,{})});if(!(0,s.io)(t))return rt&&console.debug(`Whatmore: Shopify, rendering index/collection page carousels: ${t}`),(0,u.jsx)(m,{whatmoreRootId:f,children:(0,u.jsx)(p,{})});if(E())return rt&&console.debug(`Whatmore: Shopify, rendering index/collection page spotlight: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(V,{})});if(w.startsWith("collection")&&(0,s.io)(t))return(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(q,{})})}var C,A,P,I,k,$;return w.startsWith("product")?d?(rt&&console.debug(`Whatmore: Shopify, rendering PDP-page banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})})):e?(rt&&console.debug(`Whatmore: Shopify, rendering PDP-page stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ot,{})})):(0,s.io)(t)||(0,s.Ig)(t)?null!==(C=window)&&void 0!==C&&null!==(A=C.Shopify)&&void 0!==A&&null!==(P=A.theme)&&void 0!==P&&P.role&&"main"===window.Shopify.theme.role||window.location.href.includes("localhost:")?(rt&&console.debug(`Whatmore: Shopify, rendering PDP-page popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(R,{})})):(null!==(I=window)&&void 0!==I&&null!==(k=I.Shopify)&&void 0!==k&&null!==($=k.theme)&&void 0!==$&&$.role&&"main"!==window.Shopify.theme.role||b)&&(0,a.C1J)(y)?(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(R,{})}):(rt&&console.debug("Whatmore: Shopify, PDP-page popup disabled."),(0,u.jsx)(u.Fragment,{})):(rt&&console.debug(`Whatmore: Shopify, rendering PDP-page carousels: ${t}`),(0,u.jsx)(m,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):((0,a.dnh)(y)&&(0,a.bQo)(y)&&"cart"===w&&(rt&&console.debug("Whatmore: initiating whatmore attribution from cart page."),(0,l.addWhatmoreAttributeToCart)("true"===S)),(0,u.jsx)(u.Fragment,{}))}return"index"===w||"collection"===w||w.startsWith("page")?d?(rt&&console.debug(`Whatmore: External, rendering banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})})):e?(rt&&console.debug(`Whatmore: External, rendering stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ot,{})})):(0,s.io)(t)?(0,s.io)(t)&&E()?(rt&&console.debug(`Whatmore: External, rendering index/collection/page spotlight: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(V,{})})):(rt&&console.debug(`Whatmore: External, rendering index/collection page popup: ${t}`),(0,u.jsx)(u.Fragment,{})):(rt&&console.debug(`Whatmore: External, rendering index/collection page carousels: ${t}`),(0,u.jsx)(m,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):w.startsWith("product")||"embed"===w?d?(rt&&console.debug(`Whatmore: External, rendering PDP-page banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})})):e?(rt&&console.debug(`Whatmore: External, rendering PDP-page stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ot,{})})):(0,s.Ig)(t)||(0,s.io)(t)?(0,a.fDZ)(y)?(rt&&console.debug(`Whatmore: External, rendering PDP-page popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(R,{})})):(rt&&console.debug("Whatmore: External, PDP-page popup disabled."),(0,u.jsx)(u.Fragment,{})):(rt&&console.debug(`Whatmore: External, rendering PDP-page carousels: ${t}`),(0,u.jsx)(m,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):(0,u.jsx)(u.Fragment,{})};const at=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}}),ct=function(t){return"template-banner-a"===t},st=function(t){return"template-collections-a"==t||"template-collections-b"==t||"template-collections-c"==t||"template-collections-d"==t||"template-collections-e"==t||"template-collections-stories"==t||"template-collections-f"==t||"template-collections-g"==t||"template-collections-h"==t||"template-collections-i"==t||"template-collections-feed-a"==t||"template-collections-j"==t||"template-collections-a-1"==t},lt=function(t){return"template-stories-a"===t||"template-stories-b"===t};function ut(t){const{rootElement:e,templateType:n,isStoriesTemplate:o,isCollectionsTemplate:i,_isTemplateTypeBanner:a,whatmoreCollectionId:c,whatmoreCollectionHeading:s,whatmoreHeadingCarousel:l,whatmoreWidgetIdentity:d,whatmoreRootId:p,landingLocationType:h,isInPreviewMode:m,userType:f}=t;r.createRoot(e).render((0,u.jsx)(at.Provider,{value:{whatmoreEventsBrowsingTemplate:n,whatmoreIsStoriesTemplate:o,whatmoreIsCollectionsTemplate:i,whatmoreCollectionId:c,whatmoreCollectionHeading:s,whatmoreHeadingCarousel:l,whatmoreWidgetIdentity:d,whatmoreIsBannerTemplate:a,whatmoreRootId:p,whatmoreWidgetSourceDetails:{landingLocationType:h,templateType:n},whatmoreIsPreviewMode:m,whatmoreUserInfo:{userType:f}},children:(0,u.jsx)("div",{style:{display:"block",height:"100%"},id:p,className:"whatmore-root",children:(0,u.jsx)(it,{})})}))}},8945: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}})},9098:function(t,e,n){var o=n(9950),r=n(3887),i=n(4414);e.A=function(t){var e,n,a;const[c,s]=(0,o.useState)(!1),l=o.useRef(0),u=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},p=null!==(n=t.height)&&void 0!==n?n:"100%",h=null!==(a=t.width)&&void 0!==a?a:"100%";return(0,o.useEffect)(()=>{l.current=0;const t=setInterval(()=>{l.current=l.current+.03,u.current&&d(l.current,5),l.current>=5&&(l.current=0)},30);return()=>{clearInterval(t)}},[t.isPlaying]),(0,i.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,i.jsx)("div",{style:{width:c?"100%":"0px",height:c?"100%":"0px"},children:(0,i.jsx)("img",{ref:u,src:t.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),c?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(r.A,{width:h,height:p})]})}},9130:function(){},9541:function(t,e,n){n.d(e,{B:function(){return u}});var o=n(6641),r=n(1348),i=n(7483),a=n(3924),c=n(6005),s=n(6157),l=n(1578);const u=function({userInteractionType:t="",userInteractionMetadata:e={},widgetSourceDetails:n={},event:u="",productList:d=[],ctaList:p=[]}={}){var h;const m=(0,i.Xd)("isInDesignMode"),f=(0,i.Xd)("isDemoBrand"),v=(0,i.Xd)("whatmoreShopId"),g="72201044272"==v&&"event-view"==t?null!==(h=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==h?h:{latitude:"",longitude:""}:{};if(e={...e,...g,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,r.rkx)(v)||f||m)return;t!=s.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&t!=s.O.STORIES_WIDGET_VIEW&&t!=s.O.COLLECTION_WIDGET_VIEW&&t!=s.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const _={...(0,l.S)(),interaction_data:(0,s.l)(t,e),data:(0,c.A)(u,n,d,p)};(0,i.Xd)("whatmoreLoggingActive")&&(0,o.xv)(_),(0,a.Z)(_)}},9733:function(){},9821: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}})},9879:function(t,e,n){n.d(e,{A:function(){return m}});var o=n(9950),r=n(6649),i=n(3788),a=n(6613),c=n(2039),s=n(9098),l=n(4033),u=n(7483),d=n(6493),p=n(4414);var h=function(t){var e,n,i,c,s,h,m,f,v,g,_,w,y,b,x,S,j,T,E,C,A,P,I;const k=(0,o.useRef)(null),[$,L,O]=(0,r.A)({triggerOnce:!0}),N=(0,u.Xd)("whatmoreShopId"),D=null!==(e=t.height)&&void 0!==e?e:"100%",W=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)(()=>{k.current&&(t.isPlaying?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")}):"57939755089"==N?(k.current.paused&&((0,l.n)()||(0,a.At)())&&k.current.play().catch(()=>{}),setTimeout(()=>{k.current&&k.current.pause()},300)):k.current.pause())},[t.isPlaying,L]),(0,p.jsx)("div",{ref:$,style:{width:D,height:W,overflow:"hidden",display:"flex",alignItems:"center"},children:L||"51394281658"==N||"8968077397"==N?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:W,height:D},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(i=null!==(c=null===t||void 0===t||null===(s=t.event)||void 0===s||null===(h=s.products)||void 0===h||null===(m=h[0])||void 0===m?void 0:m.title)&&void 0!==c?c:null===t||void 0===t||null===(f=t.event)||void 0===f?void 0:f.event_id)&&void 0!==i?i:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(v=null===t||void 0===t||null===(g=t.event)||void 0===g||null===(_=g.products)||void 0===_||null===(w=_[0])||void 0===w?void 0:w.title)&&void 0!==v?v:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(y=null===t||void 0===t||null===(b=t.event)||void 0===b?void 0:b.poster_image)&&void 0!==y?y:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(x=null===t||void 0===t||null===(S=t.event)||void 0===S?void 0:S.thumbnail_image)&&void 0!==x?x:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==(j=`${null===t||void 0===t||null===(T=t.event)||void 0===T?void 0:T.scheduled_date}T00:00:00Z`)&&void 0!==j?j:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(E=null===t||void 0===t||null===(C=t.event)||void 0===C?void 0:C.thumbnail_image)&&void 0!==E?E:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==(A=null===t||void 0===t||null===(P=t.event)||void 0===P?void 0:P.total_views)&&void 0!==A?A:0}),(0,p.jsxs)("video",{ref:k,className:"whatmore-video-player-muted",width:W,height:D,preload:"metadata",loop:!0,playsInline:!0,poster:"57939755089"==N?"":t.poster,muted:null===(I=t.isVideoMuted)||void 0===I||I,style:{backgroundColor:"white",borderRadius:t.borderRadius,objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:t.url,type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:W,height:D,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var m=function(t){var e,n,l,m,f,v,g,_,w,y,b,x,S,j,T,E,C,A,P,I,k,$,L,O,N;const[D,W,M]=(0,r.A)({triggerOnce:!0}),z=(0,u.Xd)("whatmoreShopId"),R=(0,o.useRef)(null),F=(0,o.useRef)(null);if((0,o.useEffect)(()=>{if(F.current&&clearTimeout(F.current),R.current)if(t.isPlaying)if("81308287252"===z){if(!navigator.getAutoplayPolicy||"disallowed"!==navigator.getAutoplayPolicy("mediaelement")){const e=R.current.play();void 0!==e&&e.catch(()=>{F.current=setTimeout(()=>{R.current&&t.isPlaying&&R.current.play().catch(()=>{})},500)})}}else R.current.play();else R.current.pause();return()=>{F.current&&clearTimeout(F.current)}},[t.isPlaying,W,z]),(0,c.I)(t.event))return(0,p.jsx)(s.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const V=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200,q=null===t||void 0===t||null===(n=t.event)||void 0===n?void 0:n.poster_image;if((0,a.MN)())return(0,p.jsx)(h,{isVideoMuted:t.isVideoMuted,event:null===t||void 0===t?void 0:t.event,borderRadius:t.borderRadius,height:"100%",width:"100%",poster:q,url:(0,i.s)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:V});const B=null!==(l=t.height)&&void 0!==l?l:"100%",H=null!==(m=t.width)&&void 0!==m?m:"100%";return(0,p.jsx)("div",{ref:D,style:{width:B,height:H,overflow:"hidden",display:"flex",alignItems:"center"},children:W||t.eagerLoad||"51394281658"==z||"8968077397"==z?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:B,height:H},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(f=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:null===t||void 0===t||null===(y=t.event)||void 0===y?void 0:y.event_id)&&void 0!==f?f:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(b=null===t||void 0===t||null===(x=t.event)||void 0===x||null===(S=x.products)||void 0===S||null===(j=S[0])||void 0===j?void 0:j.title)&&void 0!==b?b:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(T=null===t||void 0===t||null===(E=t.event)||void 0===E?void 0:E.poster_image)&&void 0!==T?T:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(C=null===t||void 0===t||null===(A=t.event)||void 0===A?void 0:A.thumbnail_image)&&void 0!==C?C:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==(P=`${null===t||void 0===t||null===(I=t.event)||void 0===I?void 0:I.scheduled_date}T00:00:00Z`)&&void 0!==P?P:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(k=null===t||void 0===t||null===($=t.event)||void 0===$?void 0:$.thumbnail_image)&&void 0!==k?k:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==(L=null===t||void 0===t||null===(O=t.event)||void 0===O?void 0:O.total_views)&&void 0!==L?L:0}),(0,p.jsxs)("video",{ref:R,className:"whatmore-video-player-muted",width:H,height:B,preload:"metadata",loop:!0,playsInline:!0,autoPlay:!0,muted:null===(N=t.isVideoMuted)||void 0===N||N,poster:"57939755089"==z?"":q,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:(0,i.s)(t.url),type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:H,height:B,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}}}]);
|