whatmore-react-assets 1.0.1847 → 1.0.1849

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.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[415],{1214:function(n,t,e){e.d(t,{QN:function(){return sn},Xd:function(){return pn},t2:function(){return gn}});var o,r,i,u,c,_,a,f,l,d,s=e(1477),p=e(4298),g=e(5547),h=e(7066),m=e(1637);function w(n,t){var e,o=document.getElementById(n);if(!o)return t;var r=null!==(e=o.getAttribute("data-wh"))&&void 0!==e?e:o.getAttribute("data");return r||t}function v(n,t=window.location.href){const e=new URL(t).searchParams.get(n);return e||null}var b=w("whatmoreShopId",m.YZ),y=w("whatmoreExtensionType","index"),A=w("whatmorePageId",null),S=w("whatmoreCollectionId",null!=A?A:"375196188919"),E=w("whatmoreProductId","6923315216522"),I=w("whatmoreVariantId","no-variant"),P=w("whatmoreEmbedAppVideoTitle",""),k=w("whatmoreEmbedAppPositionPortrait","left"),L=w("whatmoreEmbedAppHorizontalPaddingPortrait",10),T=w("whatmoreEmbedAppVerticalPaddingPortrait",10),C=w("whatmoreEmbedAppVideoPlayerSizePortrait",40),D=w("whatmoreEmbedAppPositionLandscape","left"),O=w("whatmoreEmbedAppHorizontalPaddingLandscape",20),V=w("whatmoreEmbedAppVerticalPaddingLandscape",20),z=w("whatmoreEmbedAppVideoPlayerSizeLandscape",60),x=w("whatmoreEmbedAppUseVariant","false");const M="22892183632"==b||"1546387531"==b?80:60;var W=w("whatmoreHeading",""),N=w("whatmoreCollection","invalid-url"),F=w("whatmoreCollectionHeading",""),R=w("whatmoreTitleFontSize","24"),H=w("whatmoreTitleFontSizePortrait",R),K=w("whatmoreLandscapePadding",function(){let n=!1;const t=document.querySelectorAll(".whatmore-widget");for(let e of t){const t=e.getAttribute("data-wh"),o=e.getAttribute("data"),r=t||o||null;if("string"===typeof r&&r.trim().toLowerCase().startsWith("collection")){n=!0;break}}if(n&&"68304765103"==b)return 0;return 40}()),B=w("whatmoreTopBottomPadding",20),q=w("whatmoreStoriesTopBottomPadding",10),U=w("whatmoreStoryTileSize",40),Y=w("whatmoreStoryTileSizeDesktop",40),J=w("whatmoreCollectionsTileSize",M),G=w("whatmoreCollectionsTileSizePortrait",M),Q=w("whatmoreVideoTileSize",J),Z=w("whatmoreVideoTileSizePortrait",G),X=w("whatmoreCollectionsTilesSpacing",3),j="true"===w("whatmoreIsInDesignMode","false"),$=w("whatmoreShopNowCTA","buy-now"),nn="true"===w("isWhatmoreWebsite","false"),tn=null!==(o=(0,g.DGu)(b))&&void 0!==o?o:"#343434",en=null!==(r=(0,g.uXw)(b))&&void 0!==r?r:"#343434";var on,rn=v("wtt"),un=v("wsid"),cn=v("weid");on=null!=rn&&null!=cn;var _n=null===(i=document)||void 0===i||null===(u=i.documentElement)||void 0===u?void 0:u.lang;!function(){const n=document.documentElement;new MutationObserver(t=>{for(const e of t)"attributes"===e.type&&"lang"===e.attributeName&&(console.log("Language changed to:",n.lang),gn("websiteLanguage",n.lang))}).observe(n,{attributes:!0,attributeFilter:["lang"]})}();var an=null!==(c=(0,g.JQp)(b))&&void 0!==c?c:"Poppins",fn=null!==(_=(0,g.YqT)(b))&&void 0!==_?_:"Poppins";function ln(){return"-apple-system"==an&&"-apple-system"==fn?(an="Poppins",fn="Poppins"):"-apple-system"==an?an=fn:"-apple-system"==fn&&(fn=an),[an,fn]}const{GlobalStateProvider:dn,useGlobalState:sn,getGlobalState:pn,setGlobalState:gn}=(0,p.V)({isInDesignMode:j,isDemoBrand:b===m.YZ,whatmoreShopId:b,whatmoreProductId:E,whatmoreCollectionId:S,whatmoreLandingLocationType:y,whatmoreEmbedAppPositionPortrait:k,whatmoreEmbedAppHorizontalPaddingPortrait:L,whatmoreEmbedAppVerticalPaddingPortrait:T,whatmoreEmbedAppVideoPlayerSizePortrait:C,whatmoreEmbedAppPositionLandscape:D,whatmoreEmbedAppHorizontalPaddingLandscape:O,whatmoreEmbedAppVerticalPaddingLandscape:V,whatmoreEmbedAppVideoPlayerSizeLandscape:z,whatmoreEmbedAppVideoTitle:P,whatmoreEmbedAppUseVariant:x,whatmoreVariantId:I,whatmoreHeading:W,whatmoreCollectionHeading:F,whatmorePrimaryColor:tn,whatmoreSecondaryColor:en,whatmoreSecondaryColorShade300:(0,h.Ay)(.1,en),whatmoreSecondaryColorShade600:(0,h.Ay)(.2,en),whatmoreSecondaryColorShade900:(0,h.Ay)(.5,en),whatmoreSecondaryColorShade1200:(0,h.Ay)(.8,en),whatmoreTitleFont:null!==(a=(0,g.sa6)(b))&&void 0!==a?a:ln()[0],whatmoreTitleFontSize:R,whatmoreTitleFontSizePortrait:H,whatmorePrimaryFont:null!==(f=(0,g.vvD)(b))&&void 0!==f?f:ln()[1],whatmoreLandscapePadding:K,whatmoreTopBottomPadding:B,whatmoreStoriesTopBottomPadding:q,whatmoreVideoTileSize:Q,whatmoreVideoTileSizePortrait:Z,whatmoreStoryTileSize:U,whatmoreStoryTileSizeDesktop:Y,whatmoreCollectionsTilesSpacing:X,whatmoreShowViews:(0,g.RG3)(b),indicatorRenderSeconds:4,isFirstIndicatorRenderDone:!1,isProductSwiperCatalogOpen:(0,g.Mq2)(b),appCartData:{},whatmoreVideoPlayer:s.createRef(),productRatings:null,whatmoreVideoPlayerPool:document.createDocumentFragment(),whatmoreVideoPlayerPoolInitiated:!1,whatmoreVideoPlayerPoolBlessed:!1,whatmoreAddedToCart:!1,whatmoreAllowAutoSlide:"STR0IIHZXKW"!==b&&"STRU4RO77D5"!==b,muted:(0,g.mlY)(b)||on||"32788742281"===b,is3DTemplateMuted:!0,isLandingSharedLink:on,whatmoreShareTemplateId:rn,whatmoreShareStoryId:un,whatmoreShareEventId:cn,whatmoreLikedEvents:{},whatmoreLoggingActive:null!==(l="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==l&&l,brandCustomizationsLoaded:!1,isCarouselDataLoading:!0,whatmoreShopNowCTA:$,websiteLanguage:_n,isWhatmoreWebsite:nn,whatmoreUITheme:null!==(d=(0,g.hep)(b))&&void 0!==d?d:"round",whatmoreCollectionUrl:N,isWhatmorePreviewMode:function(){try{const n=window.location.origin;if(n.includes("app.whatmore.live")||window.location.href.includes("consumer.whatmore.live")||n.includes("dashboard.whatmore.live")||n.includes("localhost")||n.includes("trycloudflare.com")){return!!document.getElementById("whatmorePreviewMode")}return!1}catch(n){return!1}}()})},5e3:function(n,t,e){e.d(t,{Au:function(){return c},YJ:function(){return a},k5:function(){return _}});const o=6,r="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i="whatmore-video-player whatmore-main-video-player-from-pool";function u(){return"undefined"===typeof window?{}:(window.__whatmoreNeoVideoPool||(window.__whatmoreNeoVideoPool={}),window.__whatmoreNeoVideoPool)}function c(){const n=u();if(n.armed||"undefined"===typeof document)return;if(!function(){if("undefined"===typeof navigator||"undefined"===typeof document)return!1;const n=navigator.userAgent||"";return!(!/iPad|iPhone|iPod/.test(n)||window.MSStream)||/Macintosh/.test(n)&&"ontouchend"in document}())return;n.armed=!0,function(){const n=u();if(n.pool||"undefined"===typeof document)return;const t=document.createDocumentFragment();for(let e=0;e<o;e++){const n=document.createElement("video");n.setAttribute("class",i),n.setAttribute("src",r),n.muted=!0,n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("preload","auto"),n.setAttribute("loop",""),n.setAttribute("playsinline",""),n.setAttribute("webkit-playsinline",""),n.setAttribute("x-webkit-airplay","allow"),n.controls=!1,t.appendChild(n)}n.pool=t}();const t=()=>{document.removeEventListener("click",t),document.removeEventListener("touchstart",t),function(){const n=u();if(n.blessed||!n.pool)return;const t=n.pool.childNodes;for(let e=0;e<t.length;e++){const n=t[e];n.muted=!0;const o=n.play();o&&o.then&&o.then(()=>n.pause()).catch(()=>{})}n.blessed=!0}()};document.addEventListener("click",t,{passive:!0}),document.addEventListener("touchstart",t,{passive:!0})}function _(){return u().pool||null}function a(){return!!u().blessed}},5547:function(n,t,e){e.d(t,{$7F:function(){return zo},$du:function(){return io},$lz:function(){return F},A5I:function(){return h},AFg:function(){return ht},AJI:function(){return S},ALN:function(){return Yn},AmR:function(){return Le},B6P:function(){return ut},BLb:function(){return M},BRY:function(){return Ae},BcY:function(){return dn},Br1:function(){return Ge},C1J:function(){return Nn},CBm:function(){return so},Cf:function(){return Pe},CfJ:function(){return It},CpV:function(){return V},D2A:function(){return jn},D7t:function(){return Q},DGu:function(){return Lo},DLl:function(){return Gt},DNc:function(){return P},DiI:function(){return hn},DmD:function(){return qt},E8r:function(){return xo},Eel:function(){return Ke},FKG:function(){return En},FVo:function(){return Wt},FZM:function(){return yn},FlI:function(){return ae},Fwt:function(){return kt},FyB:function(){return z},G0Q:function(){return J},GSq:function(){return Fn},GX0:function(){return y},GZ2:function(){return Mo},Gc6:function(){return _t},GvQ:function(){return Hn},H$k:function(){return pn},H0Z:function(){return ot},HKH:function(){return Ln},HWj:function(){return Ie},Hfu:function(){return T},Idi:function(){return Gn},If9:function(){return Ht},JAc:function(){return p},JQp:function(){return To},JSQ:function(){return oo},JiT:function(){return Z},JwJ:function(){return ho},KFN:function(){return Kt},KMo:function(){return R},KPq:function(){return b},KVz:function(){return $e},KZe:function(){return Pn},KnH:function(){return pt},Kr7:function(){return Ve},L0y:function(){return tn},LGx:function(){return se},LOH:function(){return _e},LPW:function(){return Ut},LrK:function(){return Xn},M$H:function(){return it},M3_:function(){return he},MJ6:function(){return fe},MPe:function(){return sn},MRv:function(){return Ct},MdM:function(){return le},Mq2:function(){return Dt},Mz3:function(){return Fe},N0t:function(){return Cn},NCy:function(){return Xt},NFF:function(){return We},N_4:function(){return Ee},Nzx:function(){return zn},O86:function(){return Un},OC6:function(){return K},OLZ:function(){return Re},OSd:function(){return g},Odx:function(){return nn},Pjz:function(){return rn},PpQ:function(){return Qt},Q$:function(){return Ao},QNr:function(){return xe},QSX:function(){return _o},Qed:function(){return Mt},R2w:function(){return Jn},R6d:function(){return ve},R7q:function(){return ao},R8W:function(){return gt},RG3:function(){return Io},Rdb:function(){return k},SGs:function(){return at},SK$:function(){return gn},SOt:function(){return St},Spk:function(){return N},T9r:function(){return Ne},TH:function(){return wo},TOK:function(){return yo},TYM:function(){return xt},Tr1:function(){return to},Tzr:function(){return r},U74:function(){return An},Uht:function(){return ln},UlM:function(){return Ot},UmS:function(){return ke},Usu:function(){return we},VCz:function(){return W},VYo:function(){return Bt},VhI:function(){return Ce},ViG:function(){return te},Vpi:function(){return cn},Vwo:function(){return Mn},WDJ:function(){return Yt},WH1:function(){return bo},WRx:function(){return De},Wc_:function(){return L},Woi:function(){return _n},XQu:function(){return Dn},XYM:function(){return B},YE3:function(){return Kn},YOR:function(){return _},Y_l:function(){return q},YcK:function(){return Pt},YqT:function(){return ko},ZX9:function(){return ee},ZzM:function(){return Vn},_2D:function(){return Zn},_W0:function(){return tt},_hU:function(){return In},_zx:function(){return Ze},aEh:function(){return Vo},aO7:function(){return lo},aRV:function(){return vo},ath:function(){return go},bQo:function(){return D},br0:function(){return m},buK:function(){return qn},cQ7:function(){return uo},cYm:function(){return wt},cbh:function(){return ro},dLE:function(){return Wn},dmA:function(){return ne},dnh:function(){return un},dzp:function(){return ue},ei:function(){return I},ek9:function(){return A},esc:function(){return vn},fDZ:function(){return xn},fHt:function(){return eo},fpt:function(){return On},fwF:function(){return co},gZ6:function(){return Do},ga9:function(){return Y},gcj:function(){return G},gld:function(){return Ue},gq8:function(){return Me},gvj:function(){return dt},hbj:function(){return nt},hep:function(){return Eo},hpk:function(){return ge},i2h:function(){return Je},i6j:function(){return Ye},iQ5:function(){return jt},igk:function(){return U},imx:function(){return fn},isL:function(){return Qn},ivI:function(){return v},ivR:function(){return Jt},jLA:function(){return wn},jWS:function(){return rt},jpW:function(){return Et},jsS:function(){return Oe},kZI:function(){return $t},kb:function(){return w},kcl:function(){return Rt},klK:function(){return Nt},l3V:function(){return en},lDJ:function(){return At},m4S:function(){return E},m5c:function(){return Co},mJ$:function(){return mn},mOK:function(){return be},mRH:function(){return Te},mlY:function(){return So},moP:function(){return pe},n5O:function(){return Ft},n8Q:function(){return Rn},nEf:function(){return He},nP1:function(){return l},nWM:function(){return d},naM:function(){return st},o9q:function(){return vt},oB_:function(){return ft},oZc:function(){return ie},ogW:function(){return Qe},ol5:function(){return re},p2R:function(){return an},p6A:function(){return je},pUQ:function(){return $n},pbJ:function(){return lt},qAx:function(){return mt},qLA:function(){return j},qw1:function(){return zt},rC6:function(){return bt},rEM:function(){return C},rMH:function(){return yt},rh$:function(){return kn},rsz:function(){return Xe},s0t:function(){return Tt},sIk:function(){return Lt},sa6:function(){return $},tM2:function(){return me},tSy:function(){return O},tbf:function(){return no},tik:function(){return et},u06:function(){return fo},u1b:function(){return s},uJl:function(){return a},uSp:function(){return mo},uXw:function(){return Po},ub$:function(){return ye},uoB:function(){return qe},v8m:function(){return Se},vDV:function(){return de},vfi:function(){return Bn},vvD:function(){return on},vvU:function(){return po},vw2:function(){return Be},w4b:function(){return Vt},wQ2:function(){return Sn},wtw:function(){return ce},xIo:function(){return ct},xkB:function(){return oe},xku:function(){return Oo},y3u:function(){return Zt},yD5:function(){return H},yW$:function(){return Tn},yt9:function(){return f},z00:function(){return x},z1s:function(){return X},zAb:function(){return ze},zC7:function(){return bn}});var o=e(1214);const r=function(n,t){!function(n){const t={customizations:n,timestamp:(new Date).getTime()};localStorage.setItem("whatmore_brand_customizations",JSON.stringify(t))}(n);!function(){var e,r,i,u,c,_;const a=(0,o.Xd)("whatmorePrimaryFont"),f=(0,o.Xd)("whatmoreTitleFont"),l=(0,o.Xd)("isProductSwiperCatalogOpen");(0,o.t2)("whatmorePrimaryFont",null!==(e=on(t))&&void 0!==e?e:a),(0,o.t2)("whatmoreTitleFont",null!==(r=$(t))&&void 0!==r?r:f),(0,o.t2)("isProductSwiperCatalogOpen",null!==(i=Dt(t))&&void 0!==i?i:l),(0,o.t2)("whatmorePrimaryFont",null===n||void 0===n?void 0:n.brand_theme_font),(0,o.t2)("whatmoreUITheme",null===n||void 0===n?void 0:n.brand_ui_theme),(0,o.t2)("whatmoreShowViews",null===n||void 0===n?void 0:n.brand_video_view_count),(0,o.t2)("whatmorePrimaryColor",null===n||void 0===n?void 0:n.brand_text_color),(0,o.t2)("whatmoreSecondaryColor",null===n||void 0===n?void 0:n.brand_theme_color),(0,o.t2)("whatmoreTitleFont",null!==(u=null===n||void 0===n||null===(c=n.brand_fonts)||void 0===c?void 0:c.carousel_title_font)&&void 0!==u?u:null===n||void 0===n||null===(_=n.homepage_carousel)||void 0===_?void 0:_.carousel_title_font)}()};function i(n,t,e){var o;if(!t.includes("->"))return t in e&&null!==(o=e[t])&&void 0!==o?o:null;const r=t.split("->")[0];return r in e?i(n,t.substring(t.indexOf("->")+2),e[r]):null}let u={};function c(n,t){if(t in u)return u[t];const e=function(){const n=localStorage.getItem("whatmore_brand_customizations");return n?JSON.parse(n).customizations:null}();if(!e)return null;const o=i(t,t,e);return u[t]=o,o}function _(n){n.sort((n,t)=>n.scheduled_date<t.scheduled_date?1:t.scheduled_date<n.scheduled_date?-1:0)}const a=function(n){return c(0,"show_single_product_tile")},f=function(n){return c(0,"brand_billing")},l=function(n){return c(0,"show_add_to_cart_on_card_template")},d=function(n){return c(0,"add_to_cart_button_type")},s=function(n){return c(0,"show_options_chart")},p=function(n){return c(0,"is_multi_size_chart")},g=function(n){return c(0,"options_chart_image_link")},h=function(n){return c(0,"options_chart_name")},m=function(n){return c(0,"default_swipe_direction")},w=function(n){return c(0,"add_navigation_buttons_for_swipe")},v=function(n){return c(0,"tertiary_color")},b=function(n){return c(0,"atc_button_text")},y=function(n){return c(0,"buy_now_button_text")},A=function(n){return c(0,"show_open_close_products_button")},S=function(n){return c(0,"add_to_cart_form_class_name")},E=function(n){return c(0,"cart_icon_button_click_action")},I=function(n){return c(0,"initiate_cart_slider_event_on_atc_click")},P=function(n){return c(0,"show_swipe_indicator_in_landscape")},k=function(n){return c(0,"coverflow_effect_landscape_view")},L=function(n){return c(0,"atc_config->brand_atc_button_color")},T=function(n){return c(0,"atc_config->brand_atc_button_text_color")},C=function(n){return c(0,"order_tracking->initiate_order_tracking_event_after_atc")},D=function(n){return c(0,"order_tracking->add_whatmore_attribute_on_cart_page")},O=function(n){return c(0,"order_tracking->disable_impression_order_tracking")},V=function(n){return c(0,"order_tracking->track_using_wtot")},z=function(n){return c(0,"atc_config->brand_atc_button_padding_in_px")},x=function(n){return c(0,"atc_config->atc_buy_now_alignment")},M=function(n){return c(0,"utm->activate_utm")},W=function(n){return c(0,"utm->utm_source")},N=function(n){return c(0,"utm->utm_campaign")},F=function(n){return c(0,"utm->utm_medium_product_page")},R=function(n){return c(0,"utm->utm_medium_checkout_page")},H=function(n){return c(0,"utm->utm_medium_cart_page")},K=function(n){return c(0,"banner_config->is_banner_clickable")},B=function(n){return c(0,"banner_config->show_cta")},q=function(n){return c(0,"banner_config->landscape_multiplier")},U=function(n){return c(0,"banner_config->portrait_multiplier")},Y=function(n){return c(0,"banner_config->landscape_aspect_ratio")},J=function(n){return c(0,"banner_config->portrait_aspect_ratio")},G=function(n){return c(0,"banner_config->widget_aspect_ratios")},Q=function(n){return c(0,"banner_config->is_full_screen")},Z=function(n){return c(0,"banner_config->show_navigation_dots")},X=function(n){return c(0,"banner_config->selected_dot_color")},j=function(n){return c(0,"banner_config->show_mute_button")},$=function(n){return c(0,"brand_fonts->carousel_title_font")},nn=function(n){return c(0,"brand_fonts->carousel_title_font_weight")},tn=function(n){return c(0,"brand_fonts->carousel_title_font_line_height")},en=function(n){return c(0,"brand_fonts->carousel_title_font_letter_spacing")},on=function(n){return c(0,"brand_fonts->brand_primary_font")},rn=function(n){return c(0,"brand_fonts->story_title_font")},un=function(n){return c(0,"order_tracking->add_whatmore_attribute")},cn=function(n){return c(0,"product_config->tile_type")},_n=function(n){return c(0,"product_config->show_cta")},an=function(n){return c(0,"product_config->tile_bg_opacity")},fn=function(n){return c(0,"product_config->details_api_available")},ln=function(n){return c(0,"product_config->update_product_details_on_product_page_load")},dn=function(n){return c(0,"product_config->use_product_page_link_as_client_product_id")},sn=function(n){return c(0,"product_config->navigate_to_cart_page")},pn=function(n){return c(0,"product_config->is_tile_width")},gn=function(n){return c(0,"product_config->show_view_product_text")},hn=function(n){return c(0,"product_config->show_go_to_cart_text")},mn=function(n){return c(0,"collections_config->use_page_link_as_collection_id")},wn=function(n){return c(0,"collections_config->multi_carousel_enabled")},vn=function(n){return c(0,"collections_config->story_tile_size_factor")},bn=function(n){return c(0,"collections_config->story_tile_shape")},yn=function(n){return c(0,"collections_config->tile_margin_right")},An=function(n){return c(0,"collections_config->remove_borders")},Sn=function(n){return c(0,"collections_config->show_popup_out_of_view")},En=function(n){return c(0,"collections_config->homepage_collection_ids")},In=function(n){return c(0,"collections_config->set_tile_width_auto")},Pn=function(n){return c(0,"product_config->product_image_fit_type")},kn=function(n){return c(0,"product_config->font_price_multiplicator")},Ln=function(n){return c(0,"product_config->enable_bulk_atc")},Tn=function(n){return c(0,"product_config->currency_code_to_symbol_map")},Cn=function(n){return c(0,"product_config->add_currency_query_param_in_product_url")},Dn=function(n){return c(0,"product_config->variant_selection_tile_height_factor")},On=function(n){return c(0,"product_config->product_tile_discount_badge_color")},Vn=function(n){return c(0,"product_config->show_shop_now_button_only")},zn=function(n){return c(0,"product_config->show_product_price")},xn=function(n){return c(0,"product_page_popup_config->show_product_page_popup")},Mn=function(n){return c(0,"collection_page_popup_config->show_collection_page_popup")},Wn=function(n){return c(0,"collection_product_sync")},Nn=function(n){return c(0,"product_page_popup_config->show_product_page_popup_in_preview")},Fn=function(n){return c(0,"product_page_popup_config->ultra_minimize_on_scroll")},Rn=function(n){return c(0,"product_page_popup_config->show_popup_on_scroll")},Hn=function(n){return c(0,"product_page_popup_config->popUpZindex")},Kn=function(n){return c(0,"product_page_popup_config->auto_close_on_open")},Bn=function(n){return c(0,"product_page_popup_config->show_order_by_date_events")},qn=function(n){return c(0,"product_page_popup_config->show_all_events")},Un=function(n){return c(0,"spotlight_config->size_factor")},Yn=function(n){return c(0,"spotlight_config->show_once_to_user")},Jn=function(n){return c(0,"spotlight_config->enable_in_homepage")},Gn=function(n){return c(0,"spotlight_config->enable_page_id_set")},Qn=function(n){return c(0,"spotlight_config->enable_all_pages")},Zn=function(n){return c(0,"spotlight_config->ultraminimize_on_scroll")},Xn=function(n){return c(0,"spotlight_config->position")},jn=function(n){return c(0,"spotlight_config->horizontal_padding")},$n=function(n){return c(0,"spotlight_config->vertical_padding")},nt=function(n){return c(0,"spotlight_config->enable_spotlight")},tt=function(n){return c(0,"thumbnail_overlay_image_url")},et=function(n){return c(0,"thumbnail_overlay_position")},ot=function(n){return c(0,"thumbnail_overlay_width_percent")},rt=function(n){return c(0,"ga_tracking_id")},it=function(n){return c(0,"ga_config->is_ga_4")},ut=function(n){return c(0,"ga_config->is_ga_3")},ct=function(n){return c(0,"ga4_tracking_id")},_t=function(n){return c(0,"ga_config->use_existing_ga_id")},at=function(n){return c(0,"show_whatmore_label_in_landscape_view")},ft=function(n){return c(0,"buy_now_config->show_buy_now_button")},lt=function(n){return c(0,"buy_now_config->show_custom_buy_now_button")},dt=function(n){return c(0,"buy_now_config->show_add_to_cart_button")},st=function(n){return c(0,"buy_now_config->show_view_more_inplace_of_buy_now")},pt=function(n){return c(0,"buy_now_config->view_more_button_text")},gt=function(n){return c(0,"buy_now_config->enable_shopflo_checkout")},ht=function(n){return c(0,"stories_config->show_stories_in_landscape_mode")},mt=function(n){return c(0,"stories_config->stories_border_colors")},wt=function(n){return c(0,"stories_config->stories_title_font_factor")},vt=function(n){return c(0,"stories_config->stories_title_font_color")},bt=function(n){return c(0,"stories_config->show_stories_in_mobile_mode")},yt=function(n){return c(0,"stories_config->story_tiles_spacing_factor")},At=function(n){return c(0,"stories_config->story_show_navigation_arrows")},St=function(n){return c(0,"backend_config->use_cdn_cache_endpoint")},Et=function(n){const t=c(0,"backend_config->use_instance_endpoint_for_product_events"),e=n&&"string"===typeof n&&n.includes("STR");return t||e},It=function(n){return c(0,"cdn_config->fallback_cdn")},Pt=function(n){return c(0,"theme_config->event_tile_border_width")},kt=function(n){return c(0,"theme_config->event_tile_border_color")},Lt=function(n){return c(0,"theme_config->event_view_count_bg_color")},Tt=function(n){return c(0,"theme_config->event_view_count_text_color")},Ct=function(n){return c(0,"theme_config->event_tile_product_desc_border_width")},Dt=function(n){return c(0,"product_config->show_product_swiper_initially")},Ot=function(n){return c(0,"product_config->show_cta_icon")},Vt=function(n){return c(0,"product_config->get_price_and_currency_details_from_api")},zt=function(n){return c(0,"product_config->product_tile_bottom_margin")},xt=function(n){return c(0,"product_config->show_first_product_tile")},Mt=function(n){return c(0,"product_config->shop_now_text")},Wt=function(n){return c(0,"event_tile_config->view_count_template")},Nt=function(n){return c(0,"event_tile_config->show_views")},Ft=function(n){return c(0,"event_tile_config->animate_on_focus")},Rt=function(n){return c(0,"event_tile_config->space_between_tiles")},Ht=function(n){return c(0,"event_tile_config->gap_between_tiles")},Kt=function(n){return c(0,"event_tile_config->playback_icon_color")},Bt=function(n){return c(0,"event_tile_config->shadow_config")},qt=function(n){return c(0,"event_tile_config->show_product_thumbnail")},Ut=function(n){return c(0,"event_tile_config->show_product_tile")},Yt=function(n){return c(0,"event_tile_config->show_atc_on_hover_premium")},Jt=function(n){return c(0,"event_tile_config->bg_config")},Gt=function(n){return c(0,"event_tile_config->show_heading_in_single_tile_carousel")},Qt=function(n){return c(0,"event_tile_config->event_thumbnail_b_title_font_multiplier")},Zt=function(n){return c(0,"event_tile_config->event_thumbnail_b_price_font_multiplier")},Xt=function(n){return c(0,"brand_metadata->domain_context")},jt=function(n){return c(0,"social_sharing->activate_link_sharing")},$t=function(n){return c(0,"social_sharing->link_sharing_title")},ne=function(n){return c(0,"social_sharing->link_sharing_text")},te=function(n){return c(0,"social_sharing->show_share_text_below_button")},ee=function(n){return c(0,"social_sharing->show_whatmore_branding")},oe=function(n){return c(0,"social_sharing->social_icons_size_multiplier")},re=function(n){return"73596731648"===n?.7:1},ie=function(n){return c(0,"social_sharing->whatsapp_icon_active")},ue=function(n){const t=c(0,"social_sharing->whatsapp_icon_redirect_url");return"Free"===f(n)?null:t},ce=function(n){return c(0,"social_sharing->whatsapp_icon_helper_text")},_e=function(n){return c(0,"social_sharing->whatsapp_icon_helper_text_font_multiplier")},ae=function(n){return c(0,"social_sharing->show_liked_text_below_button")},fe=function(n){return c(0,"social_sharing->like_fill_color")},le=function(n){return c(0,"social_sharing->activate_likes")},de=function(n){return c(0,"social_sharing->share_text_threshold_count")},se=function(n){return c(0,"social_sharing->like_text_threshold_count")},pe=function(n){return c(0,"social_sharing->share_product_url_link")},ge=function(n){return c(0,"navigation_config->enable_browser_navigation_on_click")},he=function(n){return"video-shopping"},me=function(n){return c(0,"shopnow_config->brand_color_option_border_radius")},we=function(n){return c(0,"shopnow_config->brand_color_option_border_color")},ve=function(n){return c(0,"shopnow_config->brand_divider_color")},be=function(n){return c(0,"shopnow_config->is_discount_label_percent")},ye=function(n){return c(0,"shopnow_config->discount_percent_bg_color")},Ae=function(n){return c(0,"shopnow_config->discount_text_color")},Se=function(n){return c(0,"shopnow_config->discount_label_border_radius")},Ee=function(n){return c(0,"event_tile_with_product_info->landscape_font_multiplier")},Ie=function(n){return c(0,"event_tile_with_product_info->portrait_font_multiplier")},Pe=function(n){return c(0,"event_tile_with_product_info->show_discount_label")},ke=function(n){return c(0,"event_tile_with_product_info->show_thumbnail_image")},Le=function(n){return c(0,"event_tile_with_product_info->show_product_info")},Te=function(n){return c(0,"event_tile_with_product_info->show_atc_button_outside_tile")},Ce=function(n){return c(0,"event_tile_with_product_info->show_atc_on_hover")},De=function(n){return c(0,"event_tile_with_product_info->atc_button_color")},Oe=function(n){return c(0,"event_tile_with_product_info->atc_button_text_color")},Ve=function(n){return c(0,"event_tile_with_product_info->show_atc_button_template_feed")},ze=function(n){return c(0,"event_tile_with_product_info->show_thumbnail_image_template_feed")},xe=function(n){return c(0,"event_tile_with_product_info->show_price_info")},Me=function(n){return c(0,"event_tile_product_card->navigate_to_product")},We=function(n){return c(0,"meta_pixel_events->video_click_event")},Ne=function(n){return c(0,"meta_pixel_events->video_atc_event")},Fe=function(n){return c(0,"meta_pixel_events->video_like_event")},Re=function(n){return c(0,"meta_pixel_events->video_share_event")},He=function(n){return c(0,"meta_pixel_events->video_product_tile_click_event")},Ke=function(n){return c(0,"meta_pixel_events->video_watch_event")},Be=function(n){return c(0,"price_config->show_price_before_mrp")},qe=function(n){return c(0,"price_config->price_text_color")},Ue=function(n){return c(0,"price_config->mrp_text_color")},Ye=function(n){return c(0,"price_config->font_weight")},Je=function(n){return c(0,"product_config->product_tile_custom_text")},Ge=function(n){return c(0,"product_config->product_tile_custom_text_color")},Qe=function(n){return c(0,"product_config->product_tile_shopnow_custom_font_style")},Ze=function(n){return c(0,"product_config->product_tile_shopnow_custom_text_color")},Xe=function(n){return c(0,"product_config->product_tile_shopnow_custom_text")},je=function(n){return c(0,"preview_config->product_tile_custom_text")},$e=function(n){return c(0,"preview_config->video_player_bg_color")},no=function(n){return c(0,"preview_config->video_player_height")},to=function(n){return c(0,"preview_config->event_tile_show_thumbnail_image")},eo=function(n){return c(0,"carousel_config->width_multiplier")},oo=function(n){return c(0,"carousel_config->show_navigation_arrows_in_portrait")},ro=function(n){return c(0,"carousel_config->is_event_loop")},io=function(n){return 0},uo=function(n){return c(0,"carousel_config->play_partially_visible_slides_in_portrait")},co=function(n){return c(0,"video_player_config->pause_videos_after_delay_landscape")},_o=function(n){return c(0,"video_player_config->video_player_bg_color")},ao=function(n){return c(0,"video_player_config->video_player_height")},fo=function(n){return c(0,"video_player_config->thumbnail_video_player_height")},lo=function(n){return c(0,"video_player_config->play_video_on_hover")},so=function(n){return c(0,"video_player_config->set_height_as_auto")},po=function(n){return c(0,"show_homepage_videos_in_pdp")},go=function(n){return c(0,"brand_s3_directory")},ho=function(n){return c(0,"quiz_config->is_active")},mo=function(n){return c(0,"quiz_config->swipe_number_show_question")},wo=function(n){return c(0,"quiz_config->lead_gen_coupon_code")},vo=function(n){return c(0,"quiz_config->lead_gen_sub_heading")},bo=function(n){return c(0,"recommendation_config->show_recommended_events")},yo=function(n){return c(0,"recommendation_config->show_collection_events")},Ao=function(n){return c(0,"event_tile_config->show_product_tile_thumbnail_template_a")},So=function(n){return c(0,"video_player_config->keep_videos_muted")},Eo=function(n){return c(0,"brand_ui_theme")},Io=function(n){return c(0,"brand_video_view_count")},Po=function(n){return c(0,"brand_theme_color")},ko=function(n){return c(0,"brand_theme_font")},Lo=function(n){return c(0,"brand_text_color")},To=function(n){return c(0,"homepage_carousel->carousel_title_font")},Co=function(n){return c(0,"product_info_text_color")},Do=function(n){return c(0,"product_config->show_product_type")},Oo=function(n){return c(0,"oos_config->show_oos_videos")},Vo=function(n){return c(0,"event_config->show_only_tagged_events")},zo=function(n){return c(0,"oos_config->show_oos_product_tile")},xo=function(n){return c(0,"oos_config->show_sold_out_label_oos")},Mo=function(n){return c(0,"video_player_config->hide_mute_unmute_button")}},7066:function(n,t,e){e.d(t,{E2:function(){return r},YU:function(){return o}});const o=function(n,t){return n+t.toString(16)+t.toString(16)},r=function(n){return[parseInt(n.slice(1,3),16),parseInt(n.slice(3,5),16),parseInt(n.slice(5,7),16)]},i=(n,t,e,o)=>{let r,u,c,_,a,f,l,d=Math.round,s="string"==typeof e;return"number"!=typeof n||n<-1||n>1||"string"!=typeof t||"r"!=t[0]&&"#"!=t[0]||e&&!s?null:(l=t.length>9,l=s?e.length>9||"c"==e&&!l:l,a=i.pSBCr(t),_=n<0,f=e&&"c"!=e?i.pSBCr(e):_?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},_=1-(n=_?-1*n:n),a&&f?(o?(r=d(_*a.r+n*f.r),u=d(_*a.g+n*f.g),c=d(_*a.b+n*f.b)):(r=d((_*a.r**2+n*f.r**2)**.5),u=d((_*a.g**2+n*f.g**2)**.5),c=d((_*a.b**2+n*f.b**2)**.5)),s=a.a,f=f.a,a=s>=0||f>=0,s=a?s<0?f:f<0?s:s*_+f*n:0,l?"rgb"+(a?"a(":"(")+r+","+u+","+c+(a?","+d(1e3*s)/1e3:"")+")":"#"+(4294967296+16777216*r+65536*u+256*c+(a?d(255*s):0)).toString(16).slice(1,a?void 0:-2)):null)};i.pSBCr=n=>{const t=parseInt;let e=n.length,o={};if(e>9){const[r,i,u,c]=n=n.split(",");if(e=n.length,e<3||e>4)return null;o.r=t("a"==r[3]?r.slice(5):r.slice(4)),o.g=t(i),o.b=t(u),o.a=c?parseFloat(c):-1}else{if(8==e||6==e||e<4)return null;e<6&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+(e>4?n[4]+n[4]:"")),n=t(n.slice(1),16),9==e||5==e?(o.r=n>>24&255,o.g=n>>16&255,o.b=n>>8&255,o.a=Math.round((255&n)/.255)/1e3):(o.r=n>>16,o.g=n>>8&255,o.b=255&n,o.a=-1)}return o},t.Ay=i},9128:function(n,t,e){e.d(t,{I:function(){return r},i:function(){return o}});const o=function(n){return"video"===n.event_type},r=function(n){return"image"===n.event_type}},9888:function(n,t,e){e.r(t),e.d(t,{WHATMORE_EVENT_META_ACTION_MAP:function(){return s},registerClickEvent:function(){return p},registerOutsideAtcFunnel:function(){return g},registerSwipeEvent:function(){return m},trackPageVisit:function(){return w},videoPlayBackEvent:function(){return h}});var o,r=e(5547),i=e(1214),u=e(7156);const c=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;async function _(n){const t=(0,i.Xd)("whatmoreShopId");if(["56352899156"].includes(t)&&"object"==typeof window.dataLayer){var e,o,r,_;const t=(f=n.selection_type)==u.O.EVENT_VIEW?"whatmore_video_click_event":f==u.O.PRODUCT_TILE_ATC_CLICKED||f==u.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":f==u.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":f==u.O.VIDEO_LIKED?"whatmore_video_like_event":f==u.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":f==u.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!t)return;const i={event:"video_interaction",page_type:null!==(a=n.page_type,e=a.startsWith("index")?"home":a.startsWith("product")?"product_page":a.startsWith("collection")||a.startsWith("page")?"collection_page":void 0)&&void 0!==e?e:"NA",selection_type:t,video_name:null!==(o=n.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(r=n.video_percentage)&&void 0!==r?r:"NA",product_name:null!==(_=n.product_name)&&void 0!==_?_:"NA"};window.dataLayer.push(i),c&&console.debug("Whatmore: pushed event to dataLayer",i)}var a,f}function a(n,t,e={},o){var r;const i=s[n];if(!i)return;const c=i.isActionEnabled(),_=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[i.customAction];(c||_)&&"function"==typeof fbq&&(async()=>{const o={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...n===u.O.VIDEO_PLAYBACK&&{watch_time:e.watch_time,video_duration:e.video_duration}};fbq("trackCustom",i.action,o),_&&setTimeout(()=>{null===_||void 0===_||_.forEach(n=>{fbq("trackCustom",n,o)})},500)})()}var f=e(6694),l=e(9128),d=e(9383);const s={[u.O.EVENT_VIEW]:{isActionEnabled:r.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[u.O.VIDEO_PLAYBACK]:{isActionEnabled:r.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[u.O.VIDEO_LIKED]:{isActionEnabled:r.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[u.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:r.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[u.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:r.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[u.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:r.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[u.O.SHOPNOW_CLICKED]:{isActionEnabled:r.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[u.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:r.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function p({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}){var u,c,l,d;((0,f.trackWhatmoreAnalyticsEvent)({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}),n in s)&&(a(n,null!==(u=null===r||void 0===r?void 0:r[1])&&void 0!==u?u:null===r||void 0===r?void 0:r[0],t,o),_({page_type:e.landingLocationType,selection_type:n,video_name:o.event_id,video_percentage:"NA",product_name:null!==(c=null===r||void 0===r||null===(l=r[1])||void 0===l?void 0:l.title)&&void 0!==c?c:null===r||void 0===r||null===(d=r[0])||void 0===d?void 0:d.title}))}function g({widgetSourceDetails:n,event:t,product:e,userInteractionMetadata:o}){var r;if(!t)return;(0,d.increaseViewCount)(t);const i=e?[e]:null!==(r=t.products)&&void 0!==r?r:[];p({userInteractionType:u.O.EVENT_VIEW,userInteractionMetadata:o,widgetSourceDetails:n,event:t,productList:i,ctaList:t.cta}),p({userInteractionType:u.O.PRODUCT_CTA_VIEW,userInteractionMetadata:o,widgetSourceDetails:n,event:t,productList:i,ctaList:t.cta})}function h({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}){var u,c,d,p;(0,l.i)(o)&&((0,f.trackWhatmoreAnalyticsEvent)({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}),n in s&&(a(n,null!==(u=null===r||void 0===r?void 0:r[1])&&void 0!==u?u:null===r||void 0===r?void 0:r[0],t,o),_({page_type:e.landingLocationType,selection_type:n,video_name:o.event_id,video_percentage:t.video_duration>0?Math.ceil(t.watch_time/t.video_duration*100):"NA",product_name:null!==(c=null===r||void 0===r||null===(d=r[1])||void 0===d?void 0:d.title)&&void 0!==c?c:null===r||void 0===r||null===(p=r[0])||void 0===p?void 0:p.title})))}function m({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}){var u,c,a;((0,f.trackWhatmoreAnalyticsEvent)({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}),n in s)&&_({page_type:e.landingLocationType,selection_type:n,video_name:o.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(c=r[1])||void 0===c?void 0:c.title)&&void 0!==u?u:null===r||void 0===r||null===(a=r[0])||void 0===a?void 0:a.title})}function w({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i}){(0,f.trackWhatmoreAnalyticsEvent)({userInteractionType:n,userInteractionMetadata:t,widgetSourceDetails:e,event:o,productList:r,ctaList:i})}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[799],{1839:function(e,r,n){"use strict";function o(e,r){let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent=r}function t(e,r){if(!e)return null;const n=e[r];if(!n||"object"!==typeof n)return Object.assign({},e,{brandCss:""});const o="string"===typeof e.customCss?e.customCss:"";return Object.assign({},n,{brandCss:o})}n.d(r,{R:function(){return t},f:function(){return o}})},1945:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},3959:function(e,r,n){"use strict";n.d(r,{Xv:function(){return h},rB:function(){return _},vC:function(){return l}});var o=n(6154),t=n.n(o),a=n(6433);function i(){try{return document.documentElement.lang||""}catch(e){return""}}function c(){try{const e=JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations,r=e&&e.product_config&&e.product_config.currency_code_to_symbol_map;return r&&"object"===typeof r?r:{}}catch(e){return{}}}function u(e,r){var n,o;return"STRI2XC0BMX"==r||"STRDG36BBP5"==r?null!==(o=c()[e])&&void 0!==o?o:e+" ":"73791930678"===r?"CHF ":null!==(n=c()[e])&&void 0!==n?n:t()(e)}function d(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function s(e){if(e%1>=.1){return e.toString().split(".")[0].length>=4?parseInt(e):e.toFixed(2)}return parseInt(e)}function l(e,r="",n="INR",o=""){if(!e||void 0==typeof e)return"";if(e="number"===typeof e?e:parseFloat(e),isNaN(e))return"";if(null==window.Shopify&&"undefined"==typeof window.Shopify){if("70993772860"==r||"72534294803"==r)return"$"+o+d(s(e));"STRY2V4XO5L"!=r&&"STRTFEDEDAP"!=r||(o="");const t="STRY2V4XO5L"==r||"STRTFEDEDAP"==r?e.toFixed(2):s(e);return u(null!==n&&void 0!==n?n:"INR",r)+o+d(t)}const t=e;if("57677938765"==r&&"object"==typeof window.Currency&&"INR"!==window.Currency.currentCurrency){var a;const e=null!==(a=u(window.Currency.currentCurrency,r))&&void 0!==a?a:"",n=window.Currency.convert(t,"INR",window.Currency.currentCurrency);return`${e}${o}${isNaN(n)?"":d(s(n))}`}if("1972174947"==r&&"object"==typeof window.DoublyGlobalCurrency&&"PKR"!==window.DoublyGlobalCurrency.currentCurrency){var c;const e=null!==(c=u(window.DoublyGlobalCurrency.currentCurrency,r))&&void 0!==c?c:"",n=window.DoublyGlobalCurrency.convert(t,"PKR",window.DoublyGlobalCurrency.currentCurrency);return`${e}${o}${isNaN(n)?"":d(s(n))}`}if("4392910921"==r&&"object"==typeof window.Currency&&"USD"!==window.Currency.currentCurrency){var l;const e=null!==(l=u(window.Currency.currentCurrency,r))&&void 0!==l?l:"",n=window.Currency.convert(t,"USD",window.Currency.currentCurrency);return`${e}${o}${isNaN(n)?"":d(s(n))}`}const _=window.Shopify.currency?window.Shopify.currency.active:null!==n&&void 0!==n?n:"INR";if("24638181"==r)return d(s(t))+o+u(_,r);let p=d(s(t));return"pt-BR"==i()&&(p=t.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})),u(_,r)+o+p}function _(e,r){var n;return null!==(n=(0,a.e)(i(),e))&&void 0!==n?n:r}const p={"shop now":"shop_now","buy now":"buy_now","add to cart":"add_to_cart","view product":"view_product","more info":"more_info","go to cart":"go_to_cart"};function h(e,r){const n=String(e||"").trim();if(!n)return r;const o=p[n.toLowerCase().replace(/\s+/g," ")];return o&&(0,a.e)(i(),o)||n}},6154:function(e,r,n){const o=n(1945);e.exports=function(e){if("string"!==typeof e)return;const r=e.toUpperCase();return Object.prototype.hasOwnProperty.call(o,r)?o[r]:void 0},e.exports.currencySymbolMap=o},6387:function(e,r,n){"use strict";n.d(r,{P:function(){return t}});const o={standard:()=>n.e(508).then(n.t.bind(n,5071,17)),card:()=>n.e(545).then(n.t.bind(n,9362,17)),"mosaic-ring":()=>n.e(457).then(n.t.bind(n,8171,17)),"mosaic-plain":()=>n.e(764).then(n.t.bind(n,5635,17)),hoverplay:()=>n.e(781).then(n.t.bind(n,787,17)),"info-strip":()=>n.e(94).then(n.t.bind(n,2109,17)),"text-overlay":()=>n.e(833).then(n.t.bind(n,3930,17)),focused:()=>n.e(506).then(n.t.bind(n,1987,17)),coverflow:()=>n.e(172).then(n.t.bind(n,9033,17)),minimal:()=>n.e(244).then(n.t.bind(n,6362,17)),feed:()=>n.e(315).then(n.t.bind(n,7456,17)),circle:()=>n.e(31).then(n.t.bind(n,5112,17)),viewmore:()=>n.e(343).then(n.t.bind(n,7672,17)),overlay:()=>n.e(936).then(n.t.bind(n,75,17)),"stories-b":()=>n.e(565).then(n.t.bind(n,1958,17)),"product-broad-no-cta":()=>n.e(838).then(n.t.bind(n,5955,17)),"product-broad-atc":()=>n.e(648).then(n.t.bind(n,2699,17)),"product-narrow":()=>n.e(594).then(n.t.bind(n,4859,17)),"product-premium":()=>n.e(566).then(n.t.bind(n,2529,17)),"product-navigation":()=>n.e(45).then(n.t.bind(n,4368,17)),"product-multi-product":()=>n.e(856).then(n.t.bind(n,6084,17)),"product-thumbnail-strip":()=>n.e(620).then(n.t.bind(n,4383,17)),"product-link-only":()=>n.e(750).then(n.t.bind(n,3365,17)),"product-minimal-atc":()=>n.e(685).then(n.t.bind(n,1890,17))};async function t(e,r){const n=o["carousel"===e||"collections"===e?r:e+"-"+r];if(!n)return"";try{return(await n()).default||""}catch(t){return""}}},6433:function(e,r,n){"use strict";n.d(r,{e:function(){return t}});const o={en:{add_to_cart:"ADD TO CART",buy_now:"BUY NOW",more_info:"MORE INFO",size:"Size",color:"Color",description:"Description",like:"Like",share:"Share",talk_to_us:"Talk to Us",done:"Done",cancel:"Cancel",view_product:"View Product",go_to_cart:"Go to Cart",shop_now:"SHOP NOW",off:"off",swipe_more:"swipe for more"},ar:{whatsapp_share:"\u0645\u0631\u062d\u0628\u064b\u0627\u060c \u0623\u0646\u0627 \u0645\u0647\u062a\u0645 \u0628\u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u062a\u062c \u0627\u0644\u0630\u064a \u0631\u0623\u064a\u062a\u0647 \u0641\u064a \u0645\u062a\u062c\u0631 {brand}: \n{url}. \u0647\u0644 \u064a\u0645\u0643\u0646\u0643 \u0645\u0633\u0627\u0639\u062f\u062a\u064a \u0641\u064a \u0628\u0639\u0636 \u0627\u0644\u0627\u0633\u062a\u0641\u0633\u0627\u0631\u0627\u062a\u061f",add_to_cart:"\u0623\u0636\u0641 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",buy_now:"\u0627\u0634\u062a\u0631\u0650 \u0627\u0644\u0622\u0646",more_info:"\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",size:"\u0627\u0644\u062d\u062c\u0645",color:"\u0627\u0644\u0644\u0648\u0646",description:"\u0627\u0644\u0648\u0635\u0641",like:"\u0623\u0639\u062c\u0628\u0646\u064a",share:"\u0645\u0634\u0627\u0631\u0643\u0629",talk_to_us:"\u062a\u062d\u062f\u062b \u0625\u0644\u064a\u0646\u0627",done:"\u062a\u0645",cancel:"\u0625\u0644\u063a\u0627\u0621",view_product:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u062a\u062c",go_to_cart:"\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u0627\u0644\u0633\u0644\u0629",watch_and_buy:"\u0634\u0627\u0647\u062f \u0648\u0627\u0634\u062a\u0631\u064a",off:"\u062e\u0635\u0645"},da:{whatsapp_share:"Hej, jeg er interesseret i dette produkt, som jeg s\xe5 i {brand}s butik: \n{url}. Kan du hj\xe6lpe mig med et par sp\xf8rgsm\xe5l?",add_to_cart:"L\xe6g i kurv",buy_now:"K\xf8b nu",more_info:"Mere info",size:"St\xf8rrelse",color:"Farve",description:"Beskrivelse",like:"Synes godt om",share:"Del",talk_to_us:"Tal med os",done:"F\xe6rdig",cancel:"Annuller",view_product:"Se produkt",go_to_cart:"G\xe5 til kurv",watch_and_buy:"Se og k\xf8b",off:"rabat"},de:{whatsapp_share:"Hallo, ich interessiere mich f\xfcr dieses Produkt, das ich im {brand}-Shop gesehen habe: \n{url}. K\xf6nnten Sie mir bitte bei einigen Fragen helfen?",add_to_cart:"In den Warenkorb",buy_now:"Jetzt kaufen",more_info:"Mehr Infos",size:"Gr\xf6\xdfe",color:"Farbe",description:"Beschreibung",like:"Gef\xe4llt mir",share:"Teilen",talk_to_us:"Sprechen Sie mit uns",done:"Fertig",cancel:"Abbrechen",view_product:"Produkt ansehen",go_to_cart:"Zum Warenkorb",watch_and_buy:"Ansehen und kaufen",off:"rabatt"},es:{whatsapp_share:"Hola, me interesa este producto que vi en la tienda de {brand}: \n{url}. \xbfPodr\xedas ayudarme con algunas consultas?",add_to_cart:"A\xf1adir al carrito",buy_now:"Comprar ahora",more_info:"M\xe1s informaci\xf3n",size:"Tama\xf1o",color:"Color",description:"Descripci\xf3n",like:"Me gusta",share:"Compartir",talk_to_us:"Habla con nosotros",done:"Hecho",cancel:"Cancelar",view_product:"Ver producto",go_to_cart:"Ir al carrito",watch_and_buy:"Ver y comprar",off:"descuento"},fr:{whatsapp_share:"Bonjour, je suis int\xe9ress\xe9(e) par ce produit que j'ai vu dans la boutique {brand} : \n{url}. Pourriez-vous m'aider avec quelques questions ?",add_to_cart:"Ajouter au panier",buy_now:"Acheter maintenant",more_info:"Plus d'infos",size:"Taille",color:"Couleur",description:"Description",like:"J'aime",share:"Partager",talk_to_us:"Parlez-nous",done:"Valider",cancel:"Annuler",view_product:"Voir le produit",go_to_cart:"Aller au panier",watch_and_buy:"Regarder et acheter",off:"remise"},ja:{whatsapp_share:"\u3053\u3093\u306b\u3061\u306f\u3001{brand}\u306e\u30b9\u30c8\u30a2\u3067\u898b\u305f\u3053\u306e\u5546\u54c1\u306b\u8208\u5473\u304c\u3042\u308a\u307e\u3059\uff1a\n{url}\u3002\u3044\u304f\u3064\u304b\u8cea\u554f\u3055\u305b\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u304b\uff1f",add_to_cart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",buy_now:"\u4eca\u3059\u3050\u8cfc\u5165",more_info:"\u8a73\u7d30\u60c5\u5831",size:"\u30b5\u30a4\u30ba",color:"\u8272",description:"\u8aac\u660e",like:"\u3044\u3044\u306d",share:"\u5171\u6709",talk_to_us:"\u304a\u554f\u3044\u5408\u308f\u305b",done:"\u5b8c\u4e86",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",view_product:"\u5546\u54c1\u3092\u898b\u308b",go_to_cart:"\u30ab\u30fc\u30c8\u306b\u9032\u3080",watch_and_buy:"\u8996\u8074\u3057\u3066\u8cfc\u5165",shop_now:"\u5546\u54c1\u3092\u898b\u308b",off:"\u30aa\u30d5"},nl:{whatsapp_share:"Hallo, ik ben ge\xefnteresseerd in dit product dat ik in de winkel van {brand} zag: \n{url}. Kunt u mij helpen met een paar vragen?",add_to_cart:"Aan winkelwagentje toevoegen",buy_now:"Nu kopen",more_info:"Meer informatie",size:"Maat",color:"Kleur",description:"Beschrijving",like:"Vind ik leuk",share:"Delen",talk_to_us:"Praat met ons",done:"Klaar",cancel:"Annuleren",view_product:"Bekijk product",go_to_cart:"Ga naar winkelwagentje",watch_and_buy:"Kijk en koop",off:"korting"},pt:{whatsapp_share:"Ol\xe1, tenho interesse neste produto que vi na loja da {brand}: \n{url}. Voc\xea poderia me ajudar com algumas d\xfavidas?",add_to_cart:"Adicionar ao carrinho",buy_now:"Comprar agora",more_info:"Mais informa\xe7\xf5es",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale conosco",done:"Conclu\xeddo",cancel:"Cancelar",view_product:"Ver produto",go_to_cart:"Ir para o carrinho",watch_and_buy:"Assistir e comprar",off:"de desconto"},zh:{whatsapp_share:"\u4f60\u597d\uff0c\u6211\u5bf9\u5728 {brand} \u5546\u5e97\u770b\u5230\u7684\u8fd9\u6b3e\u5546\u54c1\u5f88\u611f\u5174\u8da3\uff1a\n{url}\u3002\u60a8\u80fd\u5e2e\u6211\u89e3\u7b54\u4e00\u4e9b\u95ee\u9898\u5417\uff1f",add_to_cart:"\u52a0\u5165\u8d2d\u7269\u8f66",buy_now:"\u7acb\u5373\u8d2d\u4e70",more_info:"\u66f4\u591a\u4fe1\u606f",size:"\u5c3a\u5bf8",color:"\u989c\u8272",description:"\u63cf\u8ff0",like:"\u559c\u6b22",share:"\u5206\u4eab",talk_to_us:"\u8054\u7cfb\u6211\u4eec",done:"\u5b8c\u6210",cancel:"\u53d6\u6d88",view_product:"\u67e5\u770b\u5546\u54c1",go_to_cart:"\u524d\u5f80\u8d2d\u7269\u8f66",watch_and_buy:"\u89c2\u770b\u5e76\u8d2d\u4e70",off:"\u6298\u6263"},"pt-BR":{whatsapp_share:"Ol\xe1, tenho interesse neste produto que vi na loja da {brand}: \n{url}. Voc\xea poderia me ajudar com algumas d\xfavidas?",add_to_cart:"ADICIONAR AO CARRINHO",buy_now:"COMPRAR AGORA",more_info:"MAIS INFORMA\xc7\xd5ES",size:"Tamanho",color:"Cor",description:"Descri\xe7\xe3o",like:"Curtir",share:"Compartilhar",talk_to_us:"Fale Conosco",done:"Selecionar",cancel:"Voltar",view_product:"Ver Produto",go_to_cart:"Ir para o Carrinho",shop_now:"COMPRAR AGORA",off:"desconto",swipe_more:"Arraste para mais"},tr:{whatsapp_share:"Merhaba, {brand} ma\u011fazas\u0131nda g\xf6rd\xfc\u011f\xfcm bu \xfcr\xfcnle ilgileniyorum: \n{url}. Baz\u0131 sorular\u0131mda bana yard\u0131mc\u0131 olabilir misiniz?",add_to_cart:"Sepete ekle",buy_now:"\u015eimdi sat\u0131n al",more_info:"Daha fazla bilgi",size:"Beden",color:"Renk",description:"A\xe7\u0131klama",like:"Be\u011fen",share:"Payla\u015f",talk_to_us:"Bize ula\u015f\u0131n",done:"Tamam",cancel:"\u0130ptal",view_product:"\xdcr\xfcn\xfc g\xf6r\xfcnt\xfcle",go_to_cart:"Sepete git",watch_and_buy:"\u0130zle ve sat\u0131n al",off:"indirim",swipe_more:"Daha fazlas\u0131 i\xe7in kayd\u0131r\u0131n"}};function t(e,r){var n,t,a;const i=String(e||"").toLowerCase();if(i&&!i.startsWith("en"))return null!==(n=null===(t=o[i])||void 0===t?void 0:t[r])&&void 0!==n?n:null===(a=o[i.split("-")[0]])||void 0===a?void 0:a[r]}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[268],{221:function(e,t,n){n.d(t,{N:function(){return o}});const o={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},428:function(e,t,n){n.d(t,{Sn:function(){return o}});const o=Array.from(document.getElementsByClassName("whatmore-base"))},564:function(){},621:function(){},878:function(){},897:function(){},2058:function(e,t,n){n(1477);var o=n(9263),i=n(1214),r=n(5547),a=n(9383),s=n(481);const l=function(e,t){return(0,r.BLb)(t)?e+"?"+(0,r.VCz)(t)+"&"+(0,r.Spk)(t)+"&"+(0,r.yD5)(t):e};t.A=function(e){var t;const[n,d,c,u]=(0,o.A)(),h=(0,i.Xd)("isInDesignMode"),m=(0,i.Xd)("isDemoBrand"),p=(0,i.Xd)("whatmoreSecondaryColor"),v=(0,i.Xd)("whatmorePrimaryFont"),f=(0,i.Xd)("whatmoreShopId"),w=e.cta,g=.06*u,y=.03*u+"px",b=.06*u+"px";return(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",flexDirection:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:y,marginTop:y},children:(0,s.jsx)("a",{href:l(w.cta_link,f),style:{color:"white",textDecoration:"none"},onClick:()=>{h||m||(async()=>{(0,a.increaseCustomCtaCount)(e)})()},children:(0,s.jsx)("span",{className:"whatmore-cta-tile-text",style:{fontSize:g*(null!==(t=e.fontFactor)&&void 0!==t?t:1)+"px",color:e.isBanner?p:"#fff",backgroundColor:e.isBanner?"#fff":p,borderRadius:"round"===(0,r.hep)(f)?"5px":"0",boxShadow:"1px 1px #0000001a",fontFamily:v,fontWeight:e.isBanner?"bold":void 0,padding:"10px",paddingLeft:b,paddingRight:b,display:"inline-block"},children:w.cta_title})})})})}},2169:function(e,t,n){var o=n(481);t.A=({size:e,color:t="rgba(255, 255, 255, 0.95)",showBackground:n=!0})=>(0,o.jsxs)("svg",{width:.7*e,height:.7*e,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?t:"white",stroke:n?t:"white",strokeWidth:n?"5":"6",strokeLinejoin:"round",strokeLinecap:"round",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.35))"}}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,o.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,o.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,o.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,o.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,o.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,o.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; stroke: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]})},2211:function(e,t,n){var o=n(1477),i=(n(5497),n(1214)),r=n(7066),a=n(481);t.A=function(e){return(0,o.useEffect)(()=>{const e=(0,r.E2)((0,i.Xd)("whatmoreSecondaryColor"));!function(e,t,n,o){const i=`rgba(${e},${t},${n},${o})`,r=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=r,document.head.appendChild(a)}(e[0],e[1],e[2],.2)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},2446:function(){},3168:function(e,t,n){n.d(t,{At:function(){return o},MN:function(){return i}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),i=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},3299:function(e,t,n){n.d(t,{Hl:function(){return i},Np:function(){return a},Po:function(){return s},Z_:function(){return o},Zf:function(){return d},d8:function(){return l},zJ:function(){return r}});const o=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e){if(null!=e)return e.filter(e=>{var t;return null===(t=null===e||void 0===e?void 0:e.in_stock)||void 0===t||t})},a=function(e,t=!1){var n,o;if(null!=e)return t?{events:e.events[0].events,all_events:null!==(o=null===e||void 0===e?void 0:e.all_events)&&void 0!==o?o:[]}:{events:null===e||void 0===e?void 0:e.events,all_events:null!==(n=null===e||void 0===e?void 0:e.all_events)&&void 0!==n?n:[]}};const s=function(e,t){var n,o;let i=[];if(null==e)return[];if("eventsets"in e&&e.eventsets[t]){const n=function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach(e=>{t=t.concat(e.events)}),t}(e.eventsets[t]);i=[...n]}return{events:i,all_events:null!==(n=null===(o=i)||void 0===o?void 0:o.all_events)&&void 0!==n?n:[]}};function l(e){if(null!=e){var t=0;return e.forEach(e=>{e.index=t++}),e}}function d(e){if(null==e)return;let t=0;return e.reduce((e,n)=>{var o;return(null===(o=null===n||void 0===n?void 0:n.in_stock)||void 0===o||o)&&(n.index=t++,e.push(n)),e},[])}},3391:function(e,t,n){n.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return r},dl:function(){return i},nN:function(){return d},tn:function(){return l},vF:function(){return a}});const o="device_type",i="device_mode",r="mobile",a="tablet",s="desktop",l="portrait",d="landscape"},3477:function(e,t,n){n.d(t,{p:function(){return o}});const o=(0,n(1477).createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:e=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0,questionList:[]})},3647:function(e,t,n){n.d(t,{initiateCartSliderEvent:function(){return l}});var o=n(1214),i=n(8513),r=n(5566),a=n(6080),s=n(5547);const l=async function(e,t,n,l,d="",c="",u="",h="",m="",p="",v=null){(0,o.Xd)("whatmoreLandingLocationType");const f=e=>{(0,i.js)().then(e=>e.json()).then(t=>{const n=t.items.find(t=>t.id==e);if(!n)return;const o=n.key,r=n.quantity,a=n.properties;(0,i.CP)(o,r,a,u,h,m,!0,!0,!0)}).catch(e=>{console.error("[Whatmore] updateATCLineItemProperties error:",e)})};if("STRNV8MHJTF"==e||"STR6HU283UZ"==e||"STR9T3LLEJB"==e||"STRWJMIOJNX"==e||"STRUDQ36YAC"==e||"STR1D5ONOZX"==e){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("57217876118"===e){async function C(e,t=1){const n=new FormData;n.append("id",e),n.append("quantity",t),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(e=>e.json());o.status?console.error("atc failed",o.description):(window.ajaxCart.load(o),setTimeout(()=>{f(e)},500))}return void C(d,1).then(()=>{setTimeout(t,n)}).catch(e=>{console.error("[Whatmore] ATC 57217876118 error:",e)})}if("75310563627"===e){async function T(e,t=1){const n=new FormData;n.append("id",e),n.append("quantity",t),n.append("sections","cart-drawer,cart-icon-bubble");const o=await fetch("/cart/add.js",{method:"POST",body:n,headers:{Accept:"application/javascript"}}).then(e=>e.json());if(o.status)return void console.error("atc failed",o.description);const i=document.querySelector("cart-drawer");i&&(i.renderContents(o),i.classList.remove("is-empty"),i.open())}return T(d,1).then(()=>{setTimeout(()=>{f(d)},500)}).catch(e=>{console.error("[Whatmore] ATC 75310563627 error:",e)}),void setTimeout(t,n)}if("81308287252"===e)return(async()=>{const t={};(0,s.CpV)(e)||(t[a.B_]=`${(0,r.wm)()}#${u}:direct`);const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(d),quantity:1,properties:t})}).then(e=>e.json()).catch(()=>null);n&&!n.status?setTimeout(()=>{const e=document.querySelector(".iCartBtnToggle")||document.querySelector("#iCartBtnToggle");e?e.click():console.warn("[Whatmore] iCart toggle not found for 81308287252")},250):console.error("[Whatmore] ATC 81308287252 failed:",n&&n.description)})(),void setTimeout(t,n);if("67841720509"===e){async function E(e,t=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(e),quantity:t})});n.ok?(document.dispatchEvent(new CustomEvent("on:cart:change",{bubbles:!0,cancelable:!1})),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0}))):console.error("[Whatmore] ATC 67841720509 failed:",await n.text())}return E(d,1).then(()=>{setTimeout(()=>{f(d)},500)}).catch(e=>{console.error("[Whatmore] ATC 67841720509 error:",e)}),void setTimeout(t,n)}if("72603631788"===e||"5220302897"===e){const A=new FormData;A.append("id",d),A.append("quantity","1"),v&&A.append("properties[Size]",v);try{const I=await fetch("/cart/add.js",{method:"POST",body:A}),P=await I.json();P.id?setTimeout(()=>{f(d),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",P)}catch(j){console.error("Afrozeh ATC error:",j)}return void setTimeout(t,n)}if("67083239728"===e){try{const k=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:d,quantity:1}]})});k.ok||console.error("[ATC] Add to cart failed:",k.status)}catch(j){console.error("[ATC] Error while adding to cart:",j)}return setTimeout(()=>{f(d)},1e3),void setTimeout(t,n)}if("61442818186"===e){async function N(e,t=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});if(!n.ok)return void console.error("[ATC] Add to cart failed:",n.status);document.dispatchEvent(new CustomEvent("cart:build"));const o=document.querySelector(".js-drawer-open-cart");o&&o.click()}return N(d,1).then(()=>{setTimeout(()=>{f(d)},500)}).catch(e=>{console.error("[Whatmore] ATC 61442818186 error:",e)}),void setTimeout(t,n)}if("62226792677"===e){async function L(e,t=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});var o;n.ok?("function"===typeof(null===(o=window.cleverSopify)||void 0===o?void 0:o.onCartUpdate)&&window.cleverSopify.onCartUpdate(1,1,c),setTimeout(()=>{f(e)},500)):console.error("[ATC] Add to cart failed:",n.status)}return L(d).catch(e=>{console.error("[Whatmore] Error:",e)}),void setTimeout(t,n)}if("60595503283"===e){async function W(e,t=1){try{const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,quantity:t})});n.ok?setTimeout(()=>{f(e),window.location.href="/cart"},500):console.error("Failed to add item to cart:",n.status)}catch(j){console.error("Error adding to cart:",j)}}return W(d,1),void setTimeout(t,n)}if("72915616066"===e){function O(){var e,t;const n=window.customElements.get("cart-drawer")&&document.querySelector("cart-drawer");let o=[];const i=new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:o}});document.documentElement.dispatchEvent(i);const r=o.length>0,a="string"===typeof(null===(e=window.themeVariables)||void 0===e||null===(t=e.settings)||void 0===t?void 0:t.cartType);return(!a||"page"!==window.themeVariables.settings.cartType)&&(n&&r&&a)}async function R(e,t){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:e,quantity:t}],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 i=await o.json(),r=await(await fetch(`${window.Shopify.routes.root}cart.js`)).json();return r.sections=i.sections,document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{baseEvent:"variant:add",cart:r}})),setTimeout(()=>{f(e)},500),!0}async function D(e,t=1){return O()?R(e,t):async function(e,t,n){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});return o.ok?(setTimeout(()=>{n(e)},500),setTimeout(()=>{var e,t;window.location.href=`${(null===(e=window.Shopify)||void 0===e||null===(t=e.routes)||void 0===t?void 0:t.root)||"/"}cart`},1e3),!0):(console.error("[ATC Fallback] Add to cart failed:",o.status),!1)}(e,t,f)}return D(d).catch(e=>{console.error("[Whatmore] Error:",e)}),void setTimeout(t,n)}if("44061622423"===e){async function q(e,t=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});n.ok?window.cart&&"function"===typeof window.cart.getCart?(window.cart.getCart(),setTimeout(()=>{f(e)},500)):fetch("/cart?section_id=api-cart-items").then(e=>e.text()).then(t=>{const n=document.createElement("div");if(n.innerHTML=t,window.cart&&"function"===typeof window.cart.build){const e=n.querySelector("[data-api-content]");e&&window.cart.build(e)}document.dispatchEvent(new CustomEvent("theme:product:added",{bubbles:!0})),setTimeout(()=>{f(e)},500)}).catch(()=>{const t=document.querySelector('[href="/cart"], [data-cart-toggle], a[href*="/cart"]');t&&t.click(),setTimeout(()=>{f(e)},500)}):console.error("[ATC] Add to cart failed:",n.status)}return q(d).catch(e=>{console.error("[Whatmore] Error:",e)}),void setTimeout(t,n)}if("60183445561"===e){async function M(e,t=1,n="/cart"){const o=new URLSearchParams;o.append("id",e),o.append("quantity",t.toString()),o.append("return_to",n);const i=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString(),credentials:"include"}),r=await i.text();return i.ok&&setTimeout(()=>{f(e),window.location.href="https://tapee.in/cart"},500),r}return M(d).catch(e=>{console.error("Error:",e)}),void setTimeout(t,n)}if("22907887"===e){async function F(e,t=1){const n=new FormData;n.append("id",e),n.append("quantity",t.toString());const o=document.querySelector("cart-notification, cart-drawer");if(o){const e=o.getSectionsToRender();n.append("sections",e.map(e=>e.id).join(","))}n.append("sections_url",window.location.pathname);const i=await fetch("/cart/add.js",{method:"POST",body:n});if(!i.ok){const e=await i.text();throw new Error(`Failed to add to cart: ${e}`)}const r=await i.json();return o&&o.renderContents&&o.renderContents(r),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(e=>e.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:e,quantity:t,data:r}})),r}return F(d).then(e=>{setTimeout(()=>{f(d)},500)}).catch(e=>{console.error("Error:",e)}),void setTimeout(t,n)}if("28575536"===e||"64287408360"===e||"8473575520"===e||"65972830359"===e||"75000480020"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>{if(!e.ok)throw new Error("Add to cart failed");return e.json()}).then(e=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{f(d)},500)}).catch(e=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",e)),void setTimeout(t,n);if("58692075703"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>{if(!e.ok)throw new Error("Add to cart failed");return e.json()}).then(e=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(d)},500)}).catch(e=>console.error("[Whatmore] Lakshita ATC error:",e)),void setTimeout(t,n);if("22907887"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>e.json()).then(e=>{setTimeout(()=>{f(d)},500)}).catch(e=>console.error("Add to cart error:",e)),void setTimeout(t,n);if("56444977250"===e){const B=document.querySelector('button[data-pf-type="ProductATC2"]');return B?(c&&B.setAttribute("data-product-id",c),B.click(),setTimeout(()=>{(0,i.js)().then(e=>e.json()).then(e=>{const t=e.items.find(e=>String(e.id)===String(d));if(t){const e=t.key,n=t.quantity,o=t.properties;(0,i.CP)(e,n,o,u,h,m,!0,!0,!0)}})},500),void setTimeout(t,n)):(fetch(null===p||void 0===p||null===(w=p.split("?"))||void 0===w?void 0:w[0]).then(e=>e.text()).then(e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector('button[data-pf-type="ProductATC2"]');t&&c&&t.setAttribute("data-product-id",c)}),void setTimeout(t,n));var w}if("64379584700"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>e.json()).then(e=>fetch("/cart.js")).then(e=>e.json()).then(e=>{$(".paira-cart-item-count").text(e.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+e.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{f(d)},500)}).catch(e=>console.error("Add to cart error:",e)),void setTimeout(t,n);if("66947219508"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(d),quantity:1}]})}).then(async()=>{const e=document.getElementById("mini-cart");e&&"function"===typeof e._rerenderCart&&await e._rerenderCart({detail:{openMiniCart:!0}}),setTimeout(()=>{f(d)},500)}).catch(e=>console.error("[Whatmore] ATC 66947219508 error:",e)),void setTimeout(t,n);if("76767920441"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>e.json()).then(e=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(d)},500)}).catch(e=>console.error("Add to cart error:",e)),void setTimeout(t,n);if("70840582336"===e){const V=d,z=1,X=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(X){let Q=X.querySelector('input[name="id"]');Q||(Q=document.createElement("input"),Q.type="hidden",Q.name="id",X.appendChild(Q)),Q.disabled=!1,Q.value=V;const U=X.querySelector('input[name="quantity"]');U&&(U.value=z);const H=X.querySelector('button[data-add-to-cart], button[type="submit"]');return H?(H.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),H.click(),H.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{f(V)},500),void setTimeout(t,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:V,quantity:z}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{f(V)},500),setTimeout(t,n)}).catch(e=>{console.error("[ATC] error for 70840582336:",e),setTimeout(t,n)})}if("64683278550"===e){try{const J=document.querySelector('form[action="/cart/add"]');if(!J)return console.warn("[ATC 64683278550] form not found"),void setTimeout(t,n);const G=J.querySelector('input[name="id"]');if(!G)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(t,n);G.value=d;const Y=J.querySelector('button[type="submit"]');if(!Y)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(t,n);Y.click(),setTimeout(()=>{f(d)},500),setTimeout(t,n)}catch(_){console.error("[ATC 64683278550] error:",_),setTimeout(t,n)}return}if("95562924310"===e||"61810999367"===e){try{const Z=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:d,quantity:1}]})});if(Z.ok){const K=await Z.json();document.dispatchEvent(new CustomEvent("cart:update",{detail:{cart:K}})),document.dispatchEvent(new CustomEvent("theme:cart:refresh",{detail:{target:"product_flood_atc"},bubbles:!0})),setTimeout(()=>{f(d)},500)}else console.error("[ATC 95562924310] Add to cart failed:",Z.status)}catch(j){console.error("[ATC 95562924310] error:",j)}return void setTimeout(t,n)}if("45050691744"===e)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:d,quantity:1})}).then(e=>e.json()).then(e=>{jQuery.ajax({type:"GET",url:"/",dataType:"html",success:function(e){jQuery(".drawer__inner.cart-drawer-content").html(jQuery(e).find(".drawer__inner.cart-drawer-content").html()),jQuery(".custom_doscunt_bar").html(jQuery(e).find(".custom_doscunt_bar").html()),jQuery(".some_js_items").html(jQuery(e).find(".some_js_items").html()),jQuery(".header-cart-icon__count").html(jQuery(e).find(".header-cart-icon__count").html());try{jQuery("#FreeShippingText").slick({dots:!0,autoplay:!0,autoplaySpeed:2500,arrows:!0})}catch(t){}jQuery("div#HeaderCartIcon button").trigger("click"),setTimeout(()=>{f(d)},500)}})}).catch(e=>console.error("Add to cart error:",e)),void setTimeout(t,n);if("55337746621"===e){async function ee(e,t=1){var n;await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});const o=await fetch("/cart.js").then(e=>e.json());document.querySelectorAll("[data-cart-count]").forEach(e=>{const t=e.querySelector(":scope > span:last-of-type");t&&(t.textContent=o.item_count)});const i=document.querySelector("[data-cart-container]");if(!i)return;const r=((null===(n=i.parentElement)||void 0===n?void 0:n.id)||"").replace("shopify-section-","");let a=null;if(r){const e=await fetch(`/?sections=${encodeURIComponent(r)}`).then(e=>e.json()).catch(()=>null);if(null!==e&&void 0!==e&&e[r]){const t=document.createElement("div");t.innerHTML=e[r];const n=t.querySelector("[data-cart-container]");n&&(a=n.innerHTML)}}if(!a){const e=await fetch("/cart").then(e=>e.text()),t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-cart-container]");t&&(a=t.innerHTML)}if(!a)return;i.innerHTML=a,i.classList.add("is-drawer-open"),document.body.classList.add("is-scroll-disabled");const s=()=>{i.classList.remove("is-drawer-open"),document.body.classList.remove("is-scroll-disabled")};i.querySelectorAll("[data-cart-drawer-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),s()})}),document.addEventListener("keydown",e=>{"Escape"===e.key&&s()},{once:!0})}return ee(d,1).then(()=>{setTimeout(()=>{f(d)},500)}).catch(e=>{console.error("[Whatmore] ATC 55337746621 error:",e)}),void setTimeout(t,n)}if("12175954"===e){async function te(e,t=1){const n=await fetch(theme.routes.cart_add_url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});return n.ok?(document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0,cancelable:!1,detail:{openDrawer:!0}})),setTimeout(()=>{f(e)},500),!0):(console.error("[ATC] Add to cart failed:",n.status),!1)}return te(d).catch(e=>{console.error("[Whatmore] ATC 12175954 error:",e)}),void setTimeout(t,n)}if("2754609263"===e){const ne=()=>{const e=["cart:open","CartDrawer:open","drawerOpen"],t=[document,window];try{window.parent&&window.parent!==window&&window.parent.document&&t.push(window.parent.document)}catch(o){}const n=e=>t.forEach(t=>{try{t.dispatchEvent(new CustomEvent(e,{bubbles:!0}))}catch(o){console.error(`[Whatmore] ATC 2754609263 dispatch ${e} failed:`,o)}});["cart:refresh","cart:build","cart:updated"].forEach(n),setTimeout(()=>e.forEach(n),150)};async function oe(e,t=1){var n,o,i;const r=(null===(n=window.Shopify)||void 0===n||null===(o=n.routes)||void 0===o?void 0:o.root)||"/",a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/javascript"},s=Number(t)||1,l=()=>fetch(`${r}cart/add.js`,{method:"POST",headers:a,body:JSON.stringify({items:[{id:e,quantity:s}]})}).then(e=>e.json()),d=await fetch(`${r}cart.js`,{headers:{Accept:"application/json"},cache:"no-store"}).then(e=>e.json()).catch(()=>null),c=null===d||void 0===d||null===(i=d.items)||void 0===i?void 0:i.find(t=>t.id==e);let u;var h,m;(c?(u=await fetch(`${r}cart/change.js`,{method:"POST",headers:a,body:JSON.stringify({id:c.key,quantity:c.quantity+s})}).then(e=>e.json()).catch(()=>null),u&&!u.status||(console.warn("[Whatmore] ATC 2754609263 change.js rejected, falling back to add.js"),u=await l())):u=await l(),u&&!u.status)?(ne(),setTimeout(()=>{f(e)},500)):console.error("[Whatmore] ATC 2754609263 failed:",(null===(h=u)||void 0===h?void 0:h.description)||(null===(m=u)||void 0===m?void 0:m.message))}return oe(d).catch(e=>{console.error("[Whatmore] ATC 2754609263 error:",e)}),void setTimeout(t,n)}if("25786679341"===e)return(async(t,n)=>{const o={};(0,s.CpV)(e)||(o[a.B_]=`${(0,r.wm)()}#${u}:direct`);const i=await fetch(`${(null===(t=window.Shopify)||void 0===t||null===(n=t.routes)||void 0===n?void 0:n.root)||"/"}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(d),quantity:1,properties:o}]})}).then(e=>e.json()).catch(()=>null);if(i&&!i.status)if(document.dispatchEvent(new CustomEvent("vd:cart:added",{bubbles:!0,detail:{items:i.items||[i]}})),"function"===typeof window.vdOpenCart)window.vdOpenCart();else{const e=document.querySelector("a.vd-bag");e?e.click():console.warn("[Whatmore] vdOpenCart missing and no .vd-bag for 25786679341")}else console.error("[Whatmore] ATC 25786679341 failed:",i&&i.description)})().catch(e=>{console.error("[Whatmore] ATC 25786679341 error:",e)}),void setTimeout(t,n);if("8111554613"===e)return(async()=>{const e=()=>{const e=document.querySelector("cart-drawer#CartDrawer");e?(document.querySelectorAll(".add-to-cart-popup, .exit-intent-popup").forEach(e=>e.classList.add("hide")),e.removeAttribute("hidden"),e.removeAttribute("inert"),"function"!==typeof e.show||e.open?(e.setAttribute("open","true"),e.setAttribute("active","true")):e.show()):console.warn("[Whatmore] cart-drawer#CartDrawer not found for 8111554613")},t=()=>{const t=document.querySelector("cart-drawer#CartDrawer");let n=!1;const o=()=>{n||(n=!0,i.disconnect(),clearTimeout(r),e())},i=new MutationObserver(()=>{const e=document.querySelector("cart-drawer#CartDrawer");e&&e!==t&&o()});i.observe(document.body,{childList:!0,subtree:!0});const r=setTimeout(o,3e3)};if("function"!==typeof window.cartGiftUpdate){console.warn("[Whatmore] cartGiftUpdate missing for 8111554613, falling back to /cart/add.js");const t=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(d),quantity:1}]})}).then(e=>e.json()).catch(()=>null);return!t||t.status?void console.error("[Whatmore] ATC 8111554613 fallback failed:",t&&t.description):void setTimeout(()=>{f(d),document.dispatchEvent(new CustomEvent("cart:updated",{detail:{cart:t}})),e()},500)}const{price:n,productType:o}=await(async()=>{try{var e,t;const n=await fetch("/cart.js",{headers:{Accept:"application/json"},cache:"no-store"}).then(e=>e.json()),o=null===n||void 0===n||null===(e=n.items)||void 0===e?void 0:e.find(e=>String(e.variant_id)===String(d));if(o)return{price:o.price,productType:null!==(t=o.product_type)&&void 0!==t?t:""}}catch(i){}try{var n,o;const e=(p||window.location.href).split(/[?#]/)[0],t=await fetch(`${e}.js`,{headers:{Accept:"application/json"}}).then(e=>e.json()),i=null===t||void 0===t||null===(n=t.variants)||void 0===n?void 0:n.find(e=>String(e.id)===String(d));if(i)return{price:i.price,productType:null!==(o=t.product_type)&&void 0!==o?o:""}}catch(i){}return{price:0,productType:""}})(),i=()=>{document.removeEventListener("cart:updated",i),clearTimeout(r),f(d),t()},r=setTimeout(()=>{document.removeEventListener("cart:updated",i),f(d),t()},2500);document.addEventListener("cart:updated",i,{once:!1}),window.cartGiftUpdate(String(d),n,1,o,"ADD_TO_CART")})().catch(e=>{console.error("[Whatmore] ATC 8111554613 error:",e)}),void setTimeout(t,n);if("58501496967"===e){async function ie(e,t=1){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:e,quantity:t}]})});n.ok?(window.ajaxCart&&"function"===typeof window.ajaxCart.load&&window.ajaxCart.load(),window.jQuery&&window.jQuery("body").trigger("drawer.open"),setTimeout(()=>{f(e)},500)):console.error("[Whatmore] ATC 58501496967 failed:",n.status)}return ie(d,1).catch(e=>{console.error("[Whatmore] ATC 58501496967 error:",e)}),void setTimeout(t,n)}if("5801421"===e)return(async()=>{const t={};(0,s.CpV)(e)||(t[a.B_]=`${(0,r.wm)()}#${u}:direct`);const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(d),quantity:1,properties:t})}).then(e=>e.json()).catch(()=>null);if(!n||n.status)return void console.error("[Whatmore] ATC 5801421 failed:",n&&n.description);let o=!1;const i=()=>{if(o)return!0;const e=window.Rebuy&&window.Rebuy.SmartCart;if(!e||"function"!==typeof e.show)return!1;if("ready"!==e.status&&!e.hasBoundEvents&&!document.querySelector("#rebuy-cart"))return!1;o=!0;try{window.Rebuy.Cart&&window.Rebuy.Cart.fetchCart()}catch(t){}return e.show(),!0};document.addEventListener("rebuy:smartcart.ready",i,{once:!0});const l=(e=0)=>{if(i())return;if(e<40)return void setTimeout(()=>l(e+1),150);const t=window.Rebuy&&window.Rebuy.SmartCart;if(t&&"function"===typeof t.show)return o=!0,void t.show();const n=document.querySelector('[data-cart-open], a[href$="/cart"]:not([disable-rebuy], .disable-rebuy)');n?n.click():console.warn("[Whatmore] Rebuy SmartCart unavailable for 5801421")};l()})().catch(e=>{console.error("[Whatmore] ATC 5801421 error:",e)}),void setTimeout(t,n);const g=t=>{if("61126934766"==e){let e=t.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(e)return e}let n=Array.from(t.querySelectorAll("product-form")).find(e=>e.querySelector('form > input[name="id"]')&&e.querySelector('form button[type="submit"]'));return n||(n=Array.from(t.querySelectorAll('form[action*="/cart/add"]')).find(e=>e.querySelector('button[type="submit"]'))),n},y=(t,n,o)=>{const i=t.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",n),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",o);let t=i.querySelector('input[name="id"]');if(t)t.setAttribute("value",n),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const e=i.querySelector('select[name="id"]');if(e){const t=e.querySelector('option[selected="selected"]');t&&t.setAttribute("value",n)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",o);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(i),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===e&&((e,t,n)=>{var o;const i=null!==(o=e.matches)&&void 0!==o&&o.call(e,"form")?e:e.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(t),r.removeAttribute("disabled");const a=i.querySelector('select[name="id"]');a&&([...a.options].some(e=>e.value===String(t))?(a.value=String(t),[...a.options].forEach(e=>e.selected=e.value===String(t)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const s=i.querySelector('input[name="product-id"]');s&&(s.value=String(n))})(a,n,o),a}},b=e=>{const t=null===e||void 0===e?void 0:e.querySelector('button[type="submit"]');t&&t.click()},x=g(document);if(x||(null===x||void 0===x?void 0:x.length)>0){const re=y(x,d,c);b(re),setTimeout(()=>{f(d)},500),re.remove()}else{var S;fetch(null===p||void 0===p||null===(S=p.split("?"))||void 0===S?void 0:S[0]).then(e=>e.text()).then(e=>{const t=(new DOMParser).parseFromString(e,"text/html"),n=g(t);if(n||(null===n||void 0===n?void 0:n.length)>0){const e=y(n,d,c);b(e),setTimeout(()=>{f(d)},500),e.remove()}})}setTimeout(t,n)}},4018:function(e,t,n){n.d(t,{Cr:function(){return d},cb:function(){return s},lP:function(){return a},tQ:function(){return l},yD:function(){return c}});var o=n(5547);const i=(0,n(1214).Xd)("whatmoreShopId"),r=function(e){const t=e.event_hls_url;return t&&t.startsWith("https://cdn.shopify.com")&&t.includes(".mp4")?t:null},a=function(e){var t,n;if(!("event_media_urls"in e))return function(e){return null!=e.event_m3u8_url&&""!==e.event_m3u8_url?e.event_m3u8_url:e.event_hls_url}(e);if("image"===e.event_type)return e.event_media_urls.primary.portrait.content_image_original;if("secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p)return e.event_media_urls.secondary.portrait.content_video_1080p;const o=r(e);return o||(null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null===(n=e.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p)},s=function(e){var t,n;if(!("event_media_urls"in e))return e.event_hls_url;if("image"===e.event_type)return e.event_media_urls.primary.landscape.content_image_original;if("secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p)return e.event_media_urls.secondary.landscape.content_video_1080p;const o=null===(t=e.event_media_urls.primary.landscape)||void 0===t?void 0:t.content_video_1080p,i=null===(n=e.event_media_urls.primary.portrait)||void 0===n?void 0:n.content_video_1080p,a=r(e);return!a||o&&o!==i?null!==o&&void 0!==o?o:i:a},l=function(e,t="portrait"){var n,o,i,r;return"event_media_urls"in e?"landscape"===t?(null===(i=e.event_media_urls.secondary)||void 0===i||null===(r=i.landscape)||void 0===r?void 0:r.poster_image)||e.event_media_urls.primary.landscape.poster_image||e.poster_image:(null===(n=e.event_media_urls.secondary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||e.event_media_urls.primary.portrait.poster_image||e.poster_image:e.poster_image},d=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,o.ath)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},c=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,o.ath)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},4040:function(e,t,n){n.d(t,{n:function(){return o}});const o=()=>{if("undefined"!==typeof window){const e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")&&navigator.vendor.includes("Apple")}return!1}},4234:function(e,t,n){n.d(t,{BR:function(){return ve},initializeReactApp:function(){return ge},mountNeoFullscreen:function(){return we}});var o=n(1477),i=n(5741),r=n(1214),a=n(5547),s=n(6441),l=n(2873),d=n(7900),c=n(8513),u=n(481);const h=o.lazy(()=>Promise.all([n.e(252),n.e(12),n.e(760)]).then(n.bind(n,3269)));var m,p=()=>(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(h,{})});const v=null!==(m="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==m&&m;class f extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("[Chunk Loading Error]",e,t);const{whatmoreRootId:n}=this.props,o=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${n}"]`);o&&(o.remove(),v&&console.log(`[Chunk Error] Removed shimmer for widget ${n}`));const i=document.querySelector(`.whatmore-render-root[data-widget-id="${n}"]`);if(i){i.style.opacity="0",i.removeAttribute("data-shimmer-active");const e=i.closest(".whatmore-base");e&&(e.style.minHeight="0px",v&&console.log(`[Chunk Error] Reset minHeight to 0px for widget ${n}`))}}render(){return this.state.hasError?null:this.props.children}}var w=f,g=n(1637),y=n(9383),b=n(5566),x=n(3299),S=n(7777),j=n(7372),_=n(3168),C=n(7939),T=(n(3647),n(426)),E=n(3161),$=n(9128),A=n(9888),I=n(7156),P=n(6694),k=n(256),N=n(6984),L=n(6380),W=n(8762),O=n(8888),R=n(5534),D=n(8802),q=n(9759),M=n(8060);const F=(0,E.A)({key:"whatmore-css-ppv"});function B(e){return e.split(/[?#]/)[0]}var V=function(e){var t,n;const[i,s]=(0,o.useState)(),[l,c]=(0,o.useState)(),[h]=(0,r.QN)("isInDesignMode"),[m]=(0,r.QN)("isDemoBrand"),[p]=(0,r.QN)("whatmoreEmbedAppUseVariant"),[v,f]=(0,o.useState)(-2),[w]=(0,r.QN)("whatmoreVariantId"),[E]=(0,r.QN)("whatmoreShopId");var[V]=(0,r.QN)("whatmoreProductId");const z=(0,r.Xd)("isLandingSharedLink"),X=(0,r.Xd)("whatmoreShareTemplateId"),Q=(0,r.Xd)("whatmoreShareEventId"),U=z&&"template-embed"===(0,d.Mm)(X),[H,J]=(0,o.useState)(U);V=(0,a.BcY)(E)?function(e){if("STRR72TX6AT"==e){var t;const e=null===(t=window.location.pathname)||void 0===t?void 0:t.split("/");return e[e.length-1]}return"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e||"STROXKHHO98"==e?B(window.location.href).replace(/\/+$/,"").split("/").pop():B(window.location.href)}(E):V;const[G,Y]=(0,o.useState)(()=>"true"===p?w:V),[Z,K]=(0,o.useState)(!1);var ee=((0,a.jpW)(E)?g.$$:g.MT)+"/v2/brand/"+E+"/product-events",te="upcoming";const{whatmoreRootId:ne,whatmoreWidgetSourceDetails:oe}=(0,o.useContext)(ve),ie=(0,o.useRef)(!1),re=(0,o.useRef)(window.location.pathname);(0,o.useEffect)(()=>{(0,C.initializeGA)(E),(0,k.Fk)("Video shopping powered by Whatmore!"),(0,b.wm)()},[]),(0,o.useEffect)(()=>{null==i||0==i.length||l||!(0,_.MN)()||(0,r.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,L._)()?(0,j.Pc)(j.F5):(0,W.bi)())},[i]),(0,o.useEffect)(()=>{if((0,a.fDZ)(E))if(f(-1),(0,a.TOK)(E)){const e=(0,O.f)(E);fetch(`${e}?client_product_id=${G}&limit=50&status=live,upcoming&event_type=video,image`).then(e=>e.json()).then(e=>{var t;let n=null!==(t=null===e||void 0===e?void 0:e.events)&&void 0!==t?t:[];(0,a.xku)(E)||(n=(0,x.Zf)(n)),s(n)}).catch(e=>c(e.message))}else if((0,a.WH1)(E)){const e=(0,O.B)(E),t=(0,a.buK)(E);fetch(`${e}?client_product_id=${G}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video,image`).then(e=>e.json()).then(e=>{const n=null===e||void 0===e?void 0:e.events;if((null===n||void 0===n?void 0:n.length)>0){var o;const i=t?null===e||void 0===e?void 0:e.all_events:null===e||void 0===e||null===(o=e.related_events)||void 0===o?void 0:o.map(e=>({...e,isRelatedEvent:!0}));let r=[...n,...i];(0,a.xku)(E)||(r=(0,x.Zf)(r)),s(r)}else s([])}).catch(e=>c(e.message))}else fetch(ee.toString()+"?client_product_id="+G.toString()+"&status="+te.toString()+"&event_type=video,image").then(e=>e.json()).then(e=>{const t=e.events;if((null==t||0===t.length)&&"STROXKHHO98"===E){const e=B(window.location.href);if(e!==G)return fetch(ee.toString()+"?client_product_id="+encodeURIComponent(e)+"&status="+te.toString()+"&event_type=video,image").then(e=>e.json()).then(e=>e.events)}return t}).then(e=>(null!=e&&0!=e.length&&(0,a.vfi)(E)&&(0,a.YOR)(e),(0,a.xku)(E)||(e=(0,x.Zf)(e)),s(e),e)).then(e=>((0,a.Uht)(E)&&function(e,t){setTimeout(async()=>{const n=e.reduce((e,t)=>[...e,...t.products],[]).filter(e=>e.client_product_id==t)[0];if(!n||n.product_link==B(window.location.href))return;const o={product_id:n.product_id,product_link:B(window.location.href)};fetch(g.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(e,G),e)).catch(e=>{c(e.message)})},[G]),(0,o.useEffect)(()=>{f(-2)},[i]),(0,o.useEffect)(()=>{const e=B(window.location.href);"8111554613"===E&&setTimeout(()=>{const e=new Event("change",{bubbles:!0}),t=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");t&&t.dispatchEvent(e)},100);let t=history.pushState;history.pushState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};let n=history.replaceState;history.replaceState=function(){let e=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==E&&window.location.origin+window.location.pathname!=e&&fetch(window.location.origin+window.location.pathname+".json").then(e=>e.json()).then(e=>{var t;return Y(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.id)}),"80505864496"==E&&window.location.pathname!==re.current){const e=window.location.pathname;re.current=e,fetch(window.location.origin+e+".json").then(e=>e.json()).then(e=>{var t;null!==e&&void 0!==e&&null!==(t=e.product)&&void 0!==t&&t.id&&Y(e.product.id)}).catch(()=>{})}if("true"===p){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return!1}("variant");e&&""!==e&&Y(e)}})},[]),(0,o.useEffect)(()=>{if(null!=i&&0!==i.length&&!l&&U&&((0,N.H)("whatmore-video-player",()=>{J(!1)}),null!=Q)){const e=i.find(e=>Q==e.event_id);if(e)return void le(e,!0,i.indexOf(e))}},[i]);const ae=oe.landingLocationType,se=oe.templateType,le=async(e,t=!1,n=0)=>{if((0,_.MN)()&&!t){(0,r.Xd)("whatmoreVideoPlayerPoolBlessed")||await((0,L._)()?(0,j.bo)():(0,W.bi)())}if((0,$.i)(e)||(0,$.I)(e))return h||m||(async()=>{const t=(0,d.Wd)(ae)+(0,d.gf)(se)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,y.increaseViewCount)(e),(0,C.sendVideoViewEventToGA)(E,g.DK,g.K1),(0,b.Ch)(e.event_id,e.products,"product_page","video_popup",t)})(),(0,a.YE3)(E)&&K(!0),void(e=>{if(g.LV&&"number"===typeof e&&e>=0){const t=(0,D.b)(ne);if(t)return J(!1),void t({events:i,eventIndex:e})}f(e)})(n)};function de(){return(0,u.jsx)(u.Fragment,{})}return null==i||0==i.length||l||(0,d.Ig)(oe.templateType)||!(0,a.fDZ)(E)?(0,u.jsx)("div",{}):(0,u.jsxs)(T.C,{value:F,children:[H&&(0,u.jsx)(q.A,{}),"no-product"===G||-1===v||0===i.length?(0,u.jsx)(de,{}):-2===v&&i.length>0?(0,u.jsx)("div",{onMouseEnter:()=>(0,R.h)(),children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(S.A,{event:i[0],inVideoClick:le,closeClick:e=>{var t;e.stopPropagation(),f(-1),(0,A.registerClickEvent)({userInteractionType:I.O.PDP_POPUP_CLOSED,widgetSourceDetails:oe,event:null===i||void 0===i?void 0:i[0],productList:null===i||void 0===i||null===(t=i[0])||void 0===t?void 0:t.products})},onImpression:()=>{var e;ie.current||h||m||(ie.current=!0,(0,P.trackWhatmoreAnalyticsEvent)({userInteractionType:I.O.PDP_POPUP_WIDGET_VIEW,widgetSourceDetails:oe,event:i[0],productList:i[0].products,ctaList:null!==(e=i[0].cta)&&void 0!==e?e:[]}))}})})}):(0,u.jsx)("div",{children:(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(M.A,{posterUrl:(null===i||void 0===i||null===(t=i[v])||void 0===t?void 0:t.poster_image)||(null===i||void 0===i||null===(n=i[v])||void 0===n?void 0:n.thumbnail_image)}),children:(0,u.jsx)(R.A,{events:i,index:v,onBack:function(){f(Z?-1:-2),J(!1)},template:"template-product-page"})})})]})};const z=(0,E.A)({key:"whatmore-css-wsv"});var X=function(e){var t,n;const[i,s]=(0,o.useState)(),[l,c]=(0,o.useState)(),[h]=(0,r.QN)("isInDesignMode"),[m]=(0,r.QN)("isDemoBrand"),[p,v]=(0,o.useState)(-2),[f]=(0,r.QN)("whatmoreShopId"),w=(0,r.Xd)("isLandingSharedLink"),E=(0,r.Xd)("whatmoreShareTemplateId"),A=((0,r.Xd)("whatmoreShareStoryId"),(0,r.Xd)("whatmoreShareEventId")),N=((0,r.Xd)("whatmoreLandingLocationType")||"index").split(".")[0],O=(0,r.Xd)("whatmoreLoggingActive"),q=(0,r.Xd)("isWhatmorePreviewMode"),{whatmoreRootId:F,whatmoreWidgetSourceDetails:B}=(0,o.useContext)(ve),V=(0,o.useRef)(!1);var X=(0,a.SOt)(f)?g.aD+"/get_eventset/":g.$$+"/get_eventset/",Q=(0,a.SOt)(f)?g.aD+"/get_eventset_v1/":g.$$+"/get_eventset_v1/",U=(0,a.SOt)(f)?g.aD+"/v2/collection":g.$$+"/v2/collection",H=(0,a.SOt)(f)?g.aD+"/v5/collection":g.$$+"/v5/collection";(0,o.useEffect)(()=>{(0,b.wm)()},[]),(0,o.useEffect)(()=>{(0,C.initializeGA)(f)},[]),(0,o.useEffect)(()=>{null==i||0==i.length||l||!(0,_.MN)()||(0,r.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,L._)()?(0,j.Pc)(j.F5):(0,W.bi)())},[i]),(0,o.useEffect)(()=>{v(-1);const e=d.JA,t=(0,d.t6)(N),n=(N||"").startsWith("collection");let o=(0,r.Xd)("whatmoreCollectionId");null!=o&&"0"!==o&&o||(o=window.location.href.split(/[?#]/)[0]);const i=!0===(0,a.dLE)(f)?`${H.toString()}?store_id=${f}&client_collection_id=${o}&sync_products=true`:`${U.toString()}?store_id=${f}&client_collection_id=${o}`,l=n?i:"78232846646"===f.toString()?Q.toString()+f.toString()+"?eventset_type="+e+"&event_type=video&source="+t+"&source_id="+f:X.toString()+f.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+f;fetch(l).then(e=>e.json()).then(t=>n?(0,x.Np)(t,!0):(0,x.Po)(t,e)).then(async e=>{if(q&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const{pdpData:e}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return s(e),e}let t=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];return(0,a.xku)(f)||(t=(0,x.zJ)(t)),t=t.map(e=>{if(!e.poster_image&&e.event_media_urls){var t,n,o,i,r,a;const s=(null===(t=e.event_media_urls)||void 0===t||null===(n=t.primary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||(null===(i=e.event_media_urls)||void 0===i||null===(r=i.secondary)||void 0===r||null===(a=r.portrait)||void 0===a?void 0:a.poster_image)||"";return{...e,poster_image:s}}return e}),s(t),t}).catch(e=>{c(e.message)})},[]),(0,o.useEffect)(()=>{v(-2)},[i]),(0,o.useEffect)(()=>{null==i||0==i.length||l||w&&"template-embed"==(0,d.Mm)(E)&&null!=A&&i.forEach((e,t)=>{A==e.event_id&&Y(e,!0,t)})},[i]);const J=B.landingLocationType,G=B.templateType,Y=(e,t=!1,n=0)=>{if((0,_.MN)()&&!t){(0,r.Xd)("whatmoreVideoPlayerPoolBlessed")||((0,L._)()?(0,j.bo)():(0,W.Ij)())}if((0,$.i)(e)||(0,$.I)(e))return h||m||(async()=>{const t=(0,d.Wd)(J)+(0,d.gf)(G)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,y.increaseViewCount)(e),(0,C.sendVideoViewEventToGA)(f,g.DK,g.K1),(0,b.Ch)(e.event_id,e.products,"spotlight","video_popup",t)})(),void(e=>{if(g.LV&&"number"===typeof e&&e>=0){const t=(0,D.b)(F);if(t)return void t({events:i,eventIndex:e})}v(e)})(n)};function Z(){return(0,u.jsx)(u.Fragment,{})}return null==i||0==i.length||l?(0,u.jsx)("div",{}):(O&&(0,k.xv)(i),(0,a.ALN)(f)&&p<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,u.jsx)(u.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,u.jsx)(T.C,{value:z,children:-1===p||0===i.length?(0,u.jsx)(Z,{}):-2===p&&i.length>0?(0,u.jsx)("div",{onMouseEnter:()=>(0,R.h)(),children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(S.A,{event:i[0],inVideoClick:Y,closeClick:e=>{e.stopPropagation(),v(-1)},isSpotlight:!0,onImpression:()=>{var e;V.current||h||m||(V.current=!0,(0,P.trackWhatmoreAnalyticsEvent)({userInteractionType:I.O.SPOTLIGHT_WIDGET_VIEW,widgetSourceDetails:B,event:i[0],productList:i[0].products,ctaList:null!==(e=i[0].cta)&&void 0!==e?e:[]}))}})})}):(0,u.jsx)("div",{children:(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(M.A,{posterUrl:(null===i||void 0===i||null===(t=i[p])||void 0===t?void 0:t.poster_image)||(null===i||void 0===i||null===(n=i[p])||void 0===n?void 0:n.thumbnail_image)}),children:(0,u.jsx)(R.A,{events:i,index:p,onBack:function(){v(-2)},template:"template-embed",eventsStories:null})})})})))};var Q=function(){return(0,u.jsx)(u.Fragment,{})},U=n(4694),H=n(428),J=n(6126);var G=function(){const[e,t]=(0,o.useState)(),[n,i]=(0,o.useState)(),[s,l]=(0,o.useState)(!1),[c]=(0,r.QN)("whatmoreShopId"),[h]=(0,r.QN)("isInDesignMode"),[m]=(0,r.QN)("isDemoBrand"),p=(0,r.Xd)("isWhatmorePreviewMode"),v=(0,r.Xd)("whatmoreLoggingActive"),{whatmoreRootId:f,whatmoreWidgetIdentity:w}=(0,o.useContext)(ve),y=((0,r.Xd)("whatmoreLandingLocationType"),(0,a.SOt)(c)?g.aD+"/get_eventset/":g.$$+"/get_eventset/");return(0,o.useEffect)(()=>{(0,b.wm)()},[]),(0,o.useEffect)(()=>{(0,C.initializeGA)(c)},[]),(0,o.useEffect)(()=>{null!=e&&0!=e.length&&!n&&(0,_.MN)()&&!(0,r.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,L._)()&&(0,j.Pc)(j.F5)},[e]),(0,o.useEffect)(()=>{const e=d.Jh;let n;if(w&&"wgt_default"!==w){n=`${g.$$}/brand/${c}/eventset?widget_id=${w}&source_type=homepage&source_id=${c}&eventset_type=${e}&status=active,active`,v&&console.log("[Banner Widget System] Using new API:",n)}else n=y.toString()+c.toString()+"?eventset_type="+e+"&source=homepage&source_id="+c,v&&console.log("[Banner Default] Using old API:",n);fetch(n).then(e=>e.json()).then(t=>(0,x.Po)(t,e)).then(async e=>{var n,o;let i=[...null!==(n=null===e||void 0===e?void 0:e.events)&&void 0!==n?n:[],...null!==(o=null===e||void 0===e?void 0:e.all_events)&&void 0!==o?o:[]];if((m||h||p)&&0===i.length){const{bannerData:e}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return void t(e)}t(i),l(!0)}).catch(e=>{i(e.message),l(!0)})},[]),(0,o.useEffect)(()=>{e&&e.length>0&&H.Sn.forEach(e=>{const t=e.querySelector(`.whatmore-shimmer-container[data-widget-id="${f}"]`);t&&(t.remove(),v&&console.log(`[Banner Success] Removed shimmer for widget ${f}`));const n=e.querySelector(`.whatmore-render-root[data-widget-id="${f}"]`);n&&(n.style.opacity="1",n.style.pointerEvents="auto",n.removeAttribute("data-shimmer-active"),v&&console.log(`[Banner Success] Showing render root for widget ${f}`))})},[e]),s&&(null==e||0===e.length||n)?(H.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=e.querySelector(`.whatmore-shimmer-container[data-widget-id="${f}"]`);n&&(n.remove(),v&&console.log(`[Banner API Error] Removed shimmer for widget ${f}`));const o=e.querySelector(`.whatmore-render-root[data-widget-id="${f}"]`);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 ${f}`)),m||h||e.style.setProperty("min-height","0px","important")}),(0,u.jsx)("div",{})):null==e||0===e.length||n?(0,u.jsx)("div",{}):(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(U.S,{userInteractionType:I.O.BANNER_WIDGET_VIEW,event:e[0],triggerFlag:!h&&!m,children:(0,u.jsx)(J.A,{events:e})})})},Y=n(5677),Z=(n(8584),n(2446),n(6267),n(4475)),K=n(4540),ee=n(5405);var te=function(e){var t,n;const i=(0,r.Xd)("whatmorePrimaryFont"),s=(0,r.Xd)("whatmoreSecondaryColor"),l=(0,r.Xd)("whatmoreShopId"),[d,c]=(0,o.useState)(!1),h=e.mode,m=e.storyId,p=(0,Z.s)(e.imageUrl),v=e.title,f=e.onClick,w=e.template,g=e.event,y=(0,a.ivI)(l),b="template-stories-a"===w?"50%":"30%",x=e.tileSize,S=.12*x*(0,a.cYm)(l),j=null!==(t=(0,a.Pjz)(l))&&void 0!==t?t:i;let _=null!==(n=(0,a.qAx)(l))&&void 0!==n?n:[s,y,s,y,s];Array.isArray(_)||(_=Array(5).fill(_));const C=(0,o.useRef)(0),T=(0,o.useRef)(null),E=(0,o.useRef)(null);return(0,o.useEffect)(()=>{E.current&&E.current.play();const e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="stories"])');e&&function t(n=0){const o=e.querySelector("#storiesLoader");o?o.style.display="none":n<10&&setTimeout(()=>t(n+1),100)}()},[]),(0,o.useEffect)(()=>{const e=T.current,t=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){const n=e.target;n.src=n.dataset.src,t.unobserve(n)}})},{rootMargin:"0px 100px 0px 0px",threshold:0});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[p]),(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:x*(0,a.rMH)(l)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{c(!0),f(m)},className:[d?"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:b,boxShadow:"none"},children:(0,u.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:x+"px",width:x+"px",borderRadius:b,border:"87857266990"===l?"none":"3px solid white",backgroundColor:"#343434"===s?"#d3d3d3":s,overflow:"hidden"},children:"video"==(0,K.B)(p)?(0,u.jsx)(ee.A,{height:"100%",width:"100%",url:p,isPlaying:!0,event:g||{event_type:"video"},borderRadius:b}):(0,u.jsx)("img",{ref:T,className:"whatmore-story-thumbnail","data-src":p.startsWith("https://cdn.shopify.com")?p.split("?")[0]+"?width=400&height=400":p,loading:"lazy",style:{objectFit:"cover",width:"100%",height:"100%",backgroundColor:"white"},alt:"story",onError:function(){if(C.current<3){let t=(0,Z.s)(e.imageUrl);T.current.src="",T.current.src=t,C.current=C.current+1}else console.log("Failed to load image after several attempts"),T.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"===h?"wst-landscape":"wst-portrait"),style:{textAlign:"center",color:(0,a.o9q)(l),fontFamily:j,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto",fontSize:S+"px"},children:null===v||void 0===v?void 0:v.substring(0,24)})})]})};const ne=e=>(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:e.style,children:(0,u.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),oe=e=>(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",style:e.style,children:(0,u.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ie=(0,E.A)({key:"whatmore-stories-css"});var re=function(e){const[t,n,i]=(0,Y.A)(),[s]=(0,r.QN)("whatmoreStoryTileSize"),[l]=(0,r.QN)("whatmoreStoryTileSizeDesktop"),[d]=(0,r.QN)("whatmoreShopId"),[c,h]=(0,o.useState)("portrait"===t?"flex-start":"center"),[m,p]=(0,o.useState)(!1),[v,f]=(0,o.useState)(!1),w=(0,o.useRef)(null),g=(0,o.useRef)(null);var y=e.eventsStories;const b=e.onClick,x=e.template,S="landscape"===t&&(0,a.lDJ)(d);function j(){if(!S||!w.current)return;const{scrollLeft:e,scrollWidth:t,clientWidth:n}=w.current;p(e>0),f(e<t-n-1)}(0,o.useEffect)(()=>{H.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;e&&(e.style.minHeight="0px")})},[]);const _=e=>{if(w.current){const t="left"===e?4*-$:4*$;w.current.scrollBy({left:t,behavior:"smooth"})}};(0,o.useEffect)(()=>{!function(){if(w.current){const e=w.current.scrollWidth,t=w.current.offsetWidth;h(e>t?"flex-start":"center")}}()},[c,i]),(0,o.useEffect)(()=>{if(!S)return;const e=()=>{j()},t=()=>{j()},n=w.current;return n?(n.addEventListener("scroll",e),window.addEventListener("resize",t),j(),()=>{n.removeEventListener("scroll",e),window.removeEventListener("resize",t)}):void 0},[S]);const[C,E]=(0,o.useState)([]);(0,o.useEffect)(()=>{E(y.map(e=>e.storyset_dynamic_thumbnail?Math.floor(Math.random()*(e.events.length-1)):0))},[]);const $="landscape"===t?n*(l/340):i*(s/200);return(0,u.jsx)(T.C,{value:ie,children:"landscape"==t&&!(0,a.AFg)(d)||"portrait"==t&&!(0,a.rC6)(d)?(0,u.jsx)(u.Fragment,{}):(0,u.jsxs)("div",{ref:g,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-story-container",children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:c,height:"fit-content",width:"100%",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-story-horizontal-flex",ref:w,children:y.map((e,n)=>{var o,i,r,a,s;const l=e.storyset_dynamic_thumbnail?C[n]:0,d=null===(o=e.events)||void 0===o?void 0:o[l],c=e.storyset_dynamic_thumbnail?null!==(i=null===d||void 0===d?void 0:d.poster_image)&&void 0!==i?i:e.thumbnail_image:null!==(r=e.thumbnail_image)&&void 0!==r?r:null===e||void 0===e||null===(a=e.events)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.thumbnail_image;return(0,u.jsx)(te,{storyId:e.id,tileSize:$,onClick:e=>{b(n)},template:x,imageUrl:c,fallbackUrl:e.thumbnail_image,title:e.title,mode:t,event:d},"whatmore-story-"+e.id)})}),S&&(0,u.jsxs)(u.Fragment,{children:[m&&(0,u.jsx)("button",{onClick:()=>_("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:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,u.jsx)(ne,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})}),v&&(0,u.jsx)("button",{onClick:()=>_("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:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,u.jsx)(oe,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})};var ae=function(){var e,t,i,s,l,c;const[h,m]=(0,o.useState)(),[p,v]=(0,o.useState)(),[f,w]=(0,o.useState)(),[S,T]=(0,o.useState)(!1),[E,$]=(0,o.useState)(-1),[A,P]=(0,o.useState)(null),[k]=(0,r.QN)("whatmoreShopId"),[N]=(0,r.QN)("isInDesignMode"),[W]=(0,r.QN)("isDemoBrand"),[O]=(0,r.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreRootId:q,whatmoreWidgetSourceDetails:F,whatmoreUserInfo:B}=((0,r.Xd)("isWhatmorePreviewMode"),(0,r.Xd)("whatmoreLoggingActive"),(0,o.useContext)(ve)),V=(0,r.Xd)("whatmoreLandingLocationType"),z=(null===F||void 0===F?void 0:F.templateType)||"template-stories-a";(0,o.useEffect)(()=>{(0,b.wm)()},[]),(0,o.useEffect)(()=>{(0,C.initializeGA)(k)},[]),(0,o.useEffect)(()=>{null!=h&&0!=h.length&&!f&&(0,_.MN)()&&!(0,r.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,L._)()&&(0,j.Pc)(j.F5)},[h]),(0,o.useEffect)(()=>{var e,t,n;const o=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(n=t.storyEvents)||void 0===n?void 0:n.events;if(V.startsWith("index")&&"object"==typeof o&&(null===o||void 0===o?void 0:o.length)>0)m(o),v(o),T(!0);else{let e;const t="live,upcoming",n="true";if(V.startsWith("product")){const n=(0,r.Xd)("whatmoreProductId");e=g.$$+"/v2/brand/"+k+"/product-events"+"?client_product_id="+n+"&status="+t+"&event_type=video,image"}else{e=((0,a.SOt)(k)?g.aD+"/v2/events/":g.$$+"/v2/events/")+k+"?status="+t+"&is_active="+n+"&template_type=stories"}fetch(e).then(e=>e.json()).then(e=>(0,x.Np)(e,!1)).then(e=>{let t=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];t=(0,a.xku)(k)?(0,x.d8)(t):(0,x.Zf)(t),m(t),v(t),T(!0)}).catch(e=>{console.error("[WhatmoreStoriesView] API Error:",e),w(e),T(!0)})}},[]);const X=h?function(e){var t=e.reduce((e,t,n)=>{var o,i=t.storyset_id;i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(o=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==o&&o,events:[t]};return e},{}),n=Object.values(t);return n.sort((e,t)=>e.start_event_index-t.start_event_index),n}(h):[];return S&&(null==h||0===h.length||f)?(W||N||H.Sn.forEach(e=>{var t,n,o;(null!==(t=null!==(n=null!==(o=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data="template-stories-a"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data-wh="template-stories-b"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-b"]'))&&e.style.setProperty("min-height","0px","important")}),(0,u.jsx)("div",{})):null==h||0===h.length||f?(0,u.jsx)("div",{}):(0,u.jsxs)(u.Fragment,{children:[-1!==E&&null!==A&&(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(M.A,{posterUrl:(null===X||void 0===X||null===(e=X[A])||void 0===e||null===(t=e.events)||void 0===t||null===(i=t[E])||void 0===i?void 0:i.poster_image)||(null===X||void 0===X||null===(s=X[A])||void 0===s||null===(l=s.events)||void 0===l||null===(c=l[E])||void 0===c?void 0:c.thumbnail_image)}),children:(0,u.jsx)(R.A,{events:p,index:E,onBack:async function(){$(-1)},slideDirection:"horizontal",eventsStories:X,initialStoryIndex:A,template:z})}),(0,u.jsx)("div",{className:"whatmore-widget-container",onMouseEnter:()=>(0,R.h)(),style:{height:"100%",marginTop:O+"px",marginBottom:O+"px"},children:(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(U.S,{userInteractionType:I.O.STORIES_WIDGET_VIEW,triggerFlag:!N&&!W,children:(0,u.jsx)(re,{eventsStories:X,onClick:async function(e,t=!1,o=null){if((0,_.MN)()&&(0,L._)()&&!t){(0,r.Xd)("whatmoreVideoPlayerPoolBlessed")||await(0,j.bo)()}N||W||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:o}=await Promise.resolve().then(n.bind(n,7939));t();const i=X[e].events[0],r=(null===F||void 0===F?void 0:F.landingLocationType)||"index",a=(null===F||void 0===F?void 0:F.templateType)||"template-stories-a",s=(0,d.Wd)(r)+(0,d.gf)(a)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,y.increaseViewCount)(i),o(k,g.TB,g.OL),(0,b.Ch)(i.event_id,i.products,"homepage","stories",s,null===i||void 0===i?void 0:i.location,null===B||void 0===B?void 0:B.userType)})();var i=0;null!=o&&X[e].events.map((e,t)=>{e.event_id==o&&(i=t)}),((e,t)=>{if(g.LV&&"number"===typeof e&&e>=0){const n=(0,D.b)(q);if(n)return void n(Object.assign({events:p,eventIndex:e},t))}$(e)})(i,{eventsStories:X,storyIndex:e}),P(e)},template:z})})})})]})},se=n(5e3),le=n(6287),de=n(4018);var ce,ue=function({events:e,index:t,eventsStories:n,storyIndex:i,onClose:s}){const l=(0,r.Xd)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:d,whatmoreIsStoriesTemplate:c}=(0,o.useContext)(ve),h=(0,o.useMemo)(()=>(Array.isArray(e)?e:[]).map(e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.poster_image)&&void 0!==t&&t.startsWith("https://cdn.shopify.com")?{...e,poster_image:e.poster_image.split("?")[0]+"?width=400&height=400"}:e}),[e]);if((0,o.useEffect)(()=>{(0,le.B)();const e=(0,se.k5)();e&&(0,se.YJ)()&&((0,r.t2)("whatmoreVideoPlayerPool",e),(0,r.t2)("whatmoreVideoPlayerPoolInitiated",!0),(0,r.t2)("whatmoreVideoPlayerPoolBlessed",!0))},[]),null==t||t<0||!h.length)return null;const m=c||"horizontal"===(0,a.br0)(l)?"horizontal":"vertical";return(0,u.jsx)(o.Suspense,{fallback:(0,u.jsx)(M.A,{posterUrl:h[t]?(0,de.tQ)(h[t]):void 0}),children:(0,u.jsx)(R.A,{events:h,index:t,onBack:s,slideDirection:m,template:d,eventsStories:n,initialStoryIndex:i})})};const he=null!==(ce="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==ce&&ce;var me=function(e){const{whatmoreEventsBrowsingTemplate:t,whatmoreIsStoriesTemplate:i,whatmoreIsCollectionsTemplate:h,whatmoreIsBannerTemplate:m,whatmoreCollectionId:v,whatmoreRootId:f,whatmoreWidgetSourceDetails:g,whatmoreIsPreviewMode:y,whatmoreUserInfo:b}=(0,o.useContext)(ve),x=(null===g||void 0===g?void 0:g.landingLocationType)||"index",[S]=(0,r.QN)("whatmoreShopId"),[j]=(0,r.QN)("isInDesignMode"),[_]=(0,r.QN)("isDemoBrand"),[C]=(0,r.QN)("whatmoreEmbedAppUseVariant"),[T,E]=(0,r.QN)("brandCustomizationsLoaded");function $(){const e=v;return j||(0,l.W)({enableSpotlight:(0,a.hbj)(S),enableOnHP:(0,a.R2w)(S),pageIdSet:(0,a.Idi)(S),enableAllPages:(0,a.isL)(S)},x,e)}if((0,o.useEffect)(()=>{if(!T)try{const e=localStorage.getItem("whatmore_brand_customizations");if(e){const{customizations:t}=JSON.parse(e);(0,a.Tzr)(t,S),E(!0),he&&console.debug("Whatmore: Customizations loaded from cache in App.js")}}catch(e){console.error("Whatmore: Error loading customizations in App.js:",e)}},[T,S,E]),(0,o.useEffect)(()=>{null==localStorage.getItem("_user_wh_lc")&&"72201044272"==S&&n.e(259).then(n.bind(n,6027)).then(({getLocationDetails:e})=>e()).then(e=>{localStorage.setItem("_user_wh_lc",JSON.stringify(e))}).catch(e=>{localStorage.setItem("_user_wh_lc",JSON.stringify({latitude:"",longitude:""})),console.error(`Whatmore: Error fetching location: ${e}`)})},[S]),null!==e&&void 0!==e&&e.neoFullscreen)return(0,u.jsx)(ue,{events:e.neoFullscreen.events,index:e.neoFullscreen.index,eventsStories:e.neoFullscreen.eventsStories,storyIndex:e.neoFullscreen.storyIndex,onClose:e.neoFullscreen.onClose});if((0,s.U)()){if((0,d.S0)(t))return(0,u.jsx)(u.Fragment,{});if("index"===x||"collection"===x||x.startsWith("collection")||x.startsWith("page")||x.startsWith("blog")||x.startsWith("article")){if(m)return he&&console.debug(`Whatmore: Shopify, rendering banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(G,{})});if(i)return he&&console.debug(`Whatmore: Shopify, rendering stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ae,{})});if(!(0,d.io)(t))return he&&console.debug(`Whatmore: Shopify, rendering index/collection page carousels: ${t}`),(0,u.jsx)(w,{whatmoreRootId:f,children:(0,u.jsx)(p,{})});if($()&&!x.startsWith("collection"))return he&&console.debug(`Whatmore: Shopify, rendering index/page spotlight: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})});if(x.startsWith("collection")&&(0,d.io)(t)&&!0===(0,a.Vwo)(S))return he&&console.debug(`Whatmore: Shopify, rendering collection page floating popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})});if(x.startsWith("collection")&&(0,d.io)(t))return(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(Q,{})})}var A,I,P,k,N,L;return x.startsWith("product")?m?(he&&console.debug(`Whatmore: Shopify, rendering PDP-page banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(G,{})})):i?(he&&console.debug(`Whatmore: Shopify, rendering PDP-page stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ae,{})})):(0,d.io)(t)||(0,d.Ig)(t)?null!==(A=window)&&void 0!==A&&null!==(I=A.Shopify)&&void 0!==I&&null!==(P=I.theme)&&void 0!==P&&P.role&&"main"===window.Shopify.theme.role||window.location.href.includes("localhost:")?(he&&console.debug(`Whatmore: Shopify, rendering PDP-page popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(V,{})})):(null!==(k=window)&&void 0!==k&&null!==(N=k.Shopify)&&void 0!==N&&null!==(L=N.theme)&&void 0!==L&&L.role&&"main"!==window.Shopify.theme.role||j)&&(0,a.C1J)(S)?(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(V,{})}):(he&&console.debug("Whatmore: Shopify, PDP-page popup disabled."),(0,u.jsx)(u.Fragment,{})):(he&&console.debug(`Whatmore: Shopify, rendering PDP-page carousels: ${t}`),(0,u.jsx)(w,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):((0,a.dnh)(S)&&(0,a.bQo)(S)&&"cart"===x&&(he&&console.debug("Whatmore: initiating whatmore attribution from cart page."),(0,c.addWhatmoreAttributeToCart)("true"===C)),(0,u.jsx)(u.Fragment,{}))}return"index"===x||"collection"===x||x.startsWith("page")?m?(he&&console.debug(`Whatmore: External, rendering banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(G,{})})):i?(he&&console.debug(`Whatmore: External, rendering stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ae,{})})):(0,d.io)(t)?(0,d.io)(t)&&$()&&!x.startsWith("collection")?(he&&console.debug(`Whatmore: External, rendering index/page spotlight: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})})):x.startsWith("collection")&&(0,d.io)(t)&&!0===(0,a.Vwo)(S)?(he&&console.debug(`Whatmore: External, rendering collection page floating popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(X,{})})):(he&&console.debug(`Whatmore: External, rendering index/collection page popup: ${t}`),(0,u.jsx)(u.Fragment,{})):(he&&console.debug(`Whatmore: External, rendering index/collection page carousels: ${t}`),(0,u.jsx)(w,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):x.startsWith("product")||"embed"===x?m?(he&&console.debug(`Whatmore: External, rendering PDP-page banner: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(G,{})})):i?(he&&console.debug(`Whatmore: External, rendering PDP-page stories: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(ae,{})})):(0,d.Ig)(t)||(0,d.io)(t)?(0,a.fDZ)(S)?(he&&console.debug(`Whatmore: External, rendering PDP-page popup: ${t}`),(0,u.jsx)(o.Suspense,{fallback:null,children:(0,u.jsx)(V,{})})):(he&&console.debug("Whatmore: External, PDP-page popup disabled."),(0,u.jsx)(u.Fragment,{})):(he&&console.debug(`Whatmore: External, rendering PDP-page carousels: ${t}`),(0,u.jsx)(w,{whatmoreRootId:f,children:(0,u.jsx)(p,{})})):(0,u.jsx)(u.Fragment,{})};const pe=["80505864496","26077888559"],ve=o.createContext({whatmoreEventsBrowsingTemplate:"non-existent-template",whatmoreIsStoriesTemplate:!1,whatmoreIsCollectionsTemplate:!1,whatmoreCollectionId:"",whatmoreCollectionHeading:"",whatmoreHeadingCarousel:"",whatmoreWidgetIdentity:"wgt_default",whatmoreIsBannerTemplate:!1,whatmoreRootId:"whatmoreRoot-template-a",whatmoreWidgetSourceDetails:{landingLocationType:"index",templateType:"non-existent-template"},whatmoreIsPreviewMode:"invalid",whatmoreUserInfo:{userType:null}});function fe(e){return{whatmoreEventsBrowsingTemplate:e.templateType,whatmoreIsStoriesTemplate:e.isStoriesTemplate,whatmoreIsCollectionsTemplate:e.isCollectionsTemplate,whatmoreCollectionId:e.whatmoreCollectionId,whatmoreCollectionHeading:e.whatmoreCollectionHeading,whatmoreHeadingCarousel:e.whatmoreHeadingCarousel,whatmoreWidgetIdentity:e.whatmoreWidgetIdentity,whatmoreIsBannerTemplate:e._isTemplateTypeBanner,whatmoreRootId:e.whatmoreRootId,whatmoreWidgetSourceDetails:{landingLocationType:e.landingLocationType,templateType:e.templateType},whatmoreIsPreviewMode:e.isInPreviewMode,whatmoreUserInfo:{userType:e.userType}}}function we(e,t){const n=fe(e),o=document.createElement("div");o.className="whatmore-neo-fullscreen-root",document.body.appendChild(o);const r=i.createRoot(o);r.render((0,u.jsx)(ve.Provider,{value:n,children:(0,u.jsx)(me,{neoFullscreen:{events:t.events,index:t.eventIndex,eventsStories:t.eventsStories,storyIndex:t.storyIndex,onClose:()=>{try{r.unmount()}catch(t){}o.remove();try{e&&e.onFullscreenClose&&e.onFullscreenClose()}catch(t){}}}})}))}function ge(e){const{rootElement:t,templateType:n,whatmoreRootId:o}=e,a=fe(e),s=i.createRoot(t);s.render((0,u.jsx)(ve.Provider,{value:a,children:(0,u.jsx)("div",{style:{display:"block",height:"100%"},id:o,className:"whatmore-root",children:(0,u.jsx)(me,{})})})),"template-embed"!==n&&pe.includes(String((0,r.Xd)("whatmoreShopId")))&&function(e,t,n,o){var a;const s=(null===(a=e.closest)||void 0===a?void 0:a.call(e,".whatmore-base"))||e.parentElement;if(!s)return;const l=()=>{var e,t;const n=s.querySelector("#whatmoreProductId");return null!==(e=null!==(t=null===n||void 0===n?void 0:n.getAttribute("data-wh"))&&void 0!==t?t:null===n||void 0===n?void 0:n.getAttribute("data"))&&void 0!==e?e:null};let d=l(),c=t;new MutationObserver(()=>{const t=l();if(!t||t===d)return;if(d=t,(0,r.t2)("whatmoreProductId",t),c)try{c.unmount()}catch(s){}e.textContent="";const a=document.createElement("div");a.id=o,a.className="whatmore-root",a.style.display="block",a.style.height="100%",e.appendChild(a),c=i.createRoot(a),c.render((0,u.jsx)(ve.Provider,{value:n,children:(0,u.jsx)(me,{})}))}).observe(s,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-wh","data"]})}(t,s,a,o)}},4475:function(e,t,n){n.d(t,{s:function(){return s}});var o=n(5547),i=n(1214);const r={"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"},s=function(e){const t=(0,i.Xd)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,o.CfJ)(t))return e;if("AZURECDN"==(0,o.CfJ)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(r))if(e.includes(t))return e.replace(t,r[t]);return e}}if("BUNNYCDN"==(0,o.CfJ)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},4540:function(e,t,n){n.d(t,{B:function(){return a},b:function(){return r}});var o=n(5547),i=n(1214);function r(e,t=""){const n=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(n)?"STRNV8MHJTF"==n?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},4548:function(){},4694:function(e,t,n){n.d(t,{S:function(){return c}});var o=n(5660),i=n(4234),r=n(1477),a=n(6694),s=n(7156),l=n(481);const d=new Set([s.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,s.O.BANNER_WIDGET_VIEW,s.O.STORIES_WIDGET_VIEW,s.O.COLLECTION_WIDGET_VIEW,s.O.SPOTLIGHT_WIDGET_VIEW,s.O.PDP_POPUP_WIDGET_VIEW]),c=function(e){var t,n;const s=d.has(e.userInteractionType),c=null!==(t=e.threshold)&&void 0!==t?t:s?0:1,u=null!==(n=e.triggerOnce)&&void 0!==n?n:s,[h,m,p]=(0,o.A)({triggerOnce:u,threshold:c}),{whatmoreWidgetSourceDetails:v}=(0,r.useContext)(i.BR);return(0,r.useEffect)(()=>{var t;const n=null===p||void 0===p?void 0:p.boundingClientRect;var o,i,r;(u||!n||0!==n.width&&0!==n.height)&&(m&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,a.trackWhatmoreAnalyticsEvent)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(o=e.userInteractionMetadata)&&void 0!==o?o:{},widgetSourceDetails:v,event:e.event,productList:null!==(i=e.productList)&&void 0!==i?i:[],ctaList:null!==(r=e.ctaList)&&void 0!==r?r:[]}))},[m,e.triggerFlag]),(0,l.jsx)("div",{style:{height:"100%"},ref:h,children:e.children})}},5129:function(e,t,n){var o=n(1477),i=n(9258),r=n(4475),a=n(481);t.A=function(e){var t,n,s;const[l,d]=(0,o.useState)(!1),c=o.useRef(0),u=(0,o.useRef)(null),h=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},m=null!==(n=e.height)&&void 0!==n?n:"100%",p=null!==(s=e.width)&&void 0!==s?s:"100%";return(0,o.useEffect)(()=>{c.current=0;const e=setInterval(()=>{c.current=c.current+.03,u.current&&h(c.current,5),c.current>=5&&(c.current=0)},30);return()=>{clearInterval(e)}},[e.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:p,height:"100%",overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:l?"100%":"0px",height:l?"100%":"0px"},children:(0,a.jsx)("img",{ref:u,src:(0,r.s)(e.url),style:{objectFit:"cover",height:"100%",width:p,backgroundColor:"white"},alt:"image player",onLoad:()=>{d(!0)}})}),l?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(i.A,{width:p,height:m})]})}},5277:function(){},5405:function(e,t,n){n.d(t,{A:function(){return p}});var o=n(1477),i=n(5660),r=n(4475),a=n(3168),s=n(9128),l=n(5129),d=n(4040),c=n(1214),u=n(4018),h=n(481);var m=function(e){var t,n,r,s,l,m,p,v,f,w,g,y,b,x,S,j,_,C,T,E,$,A,I;const P=(0,o.useRef)(null),[k,N,L]=(0,i.A)({triggerOnce:!0}),W=(0,c.Xd)("whatmoreShopId"),O=null!==(t=e.height)&&void 0!==t?t:"100%",R=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.useEffect)(()=>{if(P.current)if(e.isPlaying){if("99423519085"===W){var t;const n=P.current;n.muted=null===(t=e.isVideoMuted)||void 0===t||t,n.playsInline=!0,n.autoplay=!0;const o=()=>{n.paused&&n.play().catch(()=>{})};return o(),n.addEventListener("loadeddata",o),n.addEventListener("canplay",o),()=>{n.removeEventListener("loadeddata",o),n.removeEventListener("canplay",o)}}P.current.paused&&P.current.play().catch(e=>{"NotAllowedError"!==e.name?console.error("Muted video play error:",e):console.warn("Muted play blocked by iOS autoplay policy")})}else"57939755089"==W?(P.current.paused&&((0,d.n)()||(0,a.At)())&&P.current.play().catch(()=>{}),setTimeout(()=>{P.current&&P.current.pause()},300)):P.current.pause()},[e.isPlaying,N]),(0,h.jsx)("div",{ref:k,style:{width:O,height:R,overflow:"hidden",display:"flex",alignItems:"center"},children:N||"51394281658"==W||"8968077397"==W?(0,h.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:R,height:O},children:[(0,h.jsx)("meta",{itemprop:"name",content:null!==(r=null!==(s=null===e||void 0===e||null===(l=e.event)||void 0===l||null===(m=l.products)||void 0===m||null===(p=m[0])||void 0===p?void 0:p.title)&&void 0!==s?s:null===e||void 0===e||null===(v=e.event)||void 0===v?void 0:v.event_id)&&void 0!==r?r:"0"}),(0,h.jsx)("meta",{itemprop:"description",content:null!==(f=null===e||void 0===e||null===(w=e.event)||void 0===w||null===(g=w.products)||void 0===g||null===(y=g[0])||void 0===y?void 0:y.title)&&void 0!==f?f:"whatmore-event"}),(0,h.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(b=null===e||void 0===e||null===(x=e.event)||void 0===x?void 0:x.poster_image)&&void 0!==b?b:""}),(0,h.jsx)("meta",{itemprop:"contentUrl",content:null!==(S=null===e||void 0===e||null===(j=e.event)||void 0===j?void 0:j.thumbnail_image)&&void 0!==S?S:""}),(0,h.jsx)("meta",{itemprop:"uploadDate",content:null!==(_=`${null===e||void 0===e||null===(C=e.event)||void 0===C?void 0:C.scheduled_date}T00:00:00Z`)&&void 0!==_?_:""}),(0,h.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,h.jsx)("meta",{itemprop:"embedUrl",content:null!==(T=null===e||void 0===e||null===(E=e.event)||void 0===E?void 0:E.thumbnail_image)&&void 0!==T?T:""}),(0,h.jsx)("meta",{itemprop:"interactionCount",content:null!==($=null===e||void 0===e||null===(A=e.event)||void 0===A?void 0:A.total_views)&&void 0!==$?$:0}),(0,h.jsxs)("video",{ref:P,className:"whatmore-video-player-muted",width:R,height:O,preload:"metadata",loop:!0,playsInline:!0,poster:"57939755089"==W?"":e.poster,muted:null===(I=e.isVideoMuted)||void 0===I||I,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,h.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,h.jsx)("source",{src:e.url,type:"video/mp4"}),(0,h.jsx)("source",{src:(0,u.yD)(e.url),type:"video/mp4"})]})]}):(0,h.jsx)("div",{width:R,height:O,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,n,d,p,v,f,w,g,y,b,x,S,j,_,C,T,E,$,A,I,P,k,N,L;const[W,O,R]=(0,i.A)({triggerOnce:!0}),D=(0,c.Xd)("whatmoreShopId"),q=(0,o.useRef)(null),M=(0,o.useRef)(null);if((0,o.useEffect)(()=>{if(M.current&&clearTimeout(M.current),q.current)if(e.isPlaying){if("99423519085"===D){var t;const n=q.current;n.muted=null===(t=e.isVideoMuted)||void 0===t||t,n.playsInline=!0,n.autoplay=!0;const o=()=>{n.paused&&n.play().catch(()=>{})};return o(),n.addEventListener("loadeddata",o),n.addEventListener("canplay",o),()=>{n.removeEventListener("loadeddata",o),n.removeEventListener("canplay",o)}}if("81308287252"===D){if(!navigator.getAutoplayPolicy||"disallowed"!==navigator.getAutoplayPolicy("mediaelement")){const t=q.current.play();void 0!==t&&t.catch(()=>{M.current=setTimeout(()=>{q.current&&e.isPlaying&&q.current.play().catch(()=>{})},500)})}}else q.current.play()}else q.current.pause();return()=>{M.current&&clearTimeout(M.current)}},[e.isPlaying,O,D]),(0,s.I)(e.event))return(0,h.jsx)(l.A,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});if("75649450207"===D)return(0,h.jsx)(l.A,{height:e.height,width:e.width,url:(0,u.tQ)(e.event),isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const F=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200,B=(0,r.s)(null!==e&&void 0!==e&&e.event?(0,u.tQ)(e.event):void 0);if((0,a.MN)())return(0,h.jsx)(m,{isVideoMuted:e.isVideoMuted,event:null===e||void 0===e?void 0:e.event,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:B,url:(0,r.s)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:F});const V=null!==(n=e.height)&&void 0!==n?n:"100%",z=null!==(d=e.width)&&void 0!==d?d:"100%";return(0,h.jsx)("div",{ref:W,style:{width:V,height:z,overflow:"hidden",display:"flex",alignItems:"center"},children:O||e.eagerLoad||"51394281658"==D||"8968077397"==D?(0,h.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:V,height:z},children:[(0,h.jsx)("meta",{itemprop:"name",content:null!==(p=null!==(v=null===e||void 0===e||null===(f=e.event)||void 0===f||null===(w=f.products)||void 0===w||null===(g=w[0])||void 0===g?void 0:g.title)&&void 0!==v?v:null===e||void 0===e||null===(y=e.event)||void 0===y?void 0:y.event_id)&&void 0!==p?p:"0"}),(0,h.jsx)("meta",{itemprop:"description",content:null!==(b=null===e||void 0===e||null===(x=e.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,h.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(_=null===e||void 0===e||null===(C=e.event)||void 0===C?void 0:C.poster_image)&&void 0!==_?_:""}),(0,h.jsx)("meta",{itemprop:"contentUrl",content:null!==(T=null===e||void 0===e||null===(E=e.event)||void 0===E?void 0:E.thumbnail_image)&&void 0!==T?T:""}),(0,h.jsx)("meta",{itemprop:"uploadDate",content:null!==($=`${null===e||void 0===e||null===(A=e.event)||void 0===A?void 0:A.scheduled_date}T00:00:00Z`)&&void 0!==$?$:""}),(0,h.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,h.jsx)("meta",{itemprop:"embedUrl",content:null!==(I=null===e||void 0===e||null===(P=e.event)||void 0===P?void 0:P.thumbnail_image)&&void 0!==I?I:""}),(0,h.jsx)("meta",{itemprop:"interactionCount",content:null!==(k=null===e||void 0===e||null===(N=e.event)||void 0===N?void 0:N.total_views)&&void 0!==k?k:0}),(0,h.jsxs)("video",{ref:q,className:"whatmore-video-player-muted",width:z,height:V,preload:"metadata",loop:!0,playsInline:!0,autoPlay:!0,muted:null===(L=e.isVideoMuted)||void 0===L||L,poster:"57939755089"==D?"":B,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,h.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,h.jsx)("source",{src:(0,r.s)(e.url),type:"video/mp4"}),(0,h.jsx)("source",{src:(0,u.yD)(e.url),type:"video/mp4"})]})]}):(0,h.jsx)("div",{width:z,height:V,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},5497:function(){},5534:function(e,t,n){n.d(t,{h:function(){return d}});var o,i=n(1477),r=n(481);const a=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,s=(0,i.lazy)(()=>(a&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83c\udfac EventClickComponent chunk loading...`),Promise.all([n.e(252),n.e(712),n.e(12),n.e(260)]).then(n.bind(n,8258))));let l=null;function d(){return l?a&&console.log(`[${(new Date).toLocaleTimeString()}] \u26a1 EventClickComponent already preloaded/preloading`):(a&&console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udd04 Preloading EventClickComponent on hover...`),l=Promise.all([n.e(252),n.e(712),n.e(12),n.e(260)]).then(n.bind(n,8258)).then(e=>(a&&console.log(`[${(new Date).toLocaleTimeString()}] \u2705 EventClickComponent preload complete`,e),e)).catch(e=>{throw console.error(`[${(new Date).toLocaleTimeString()}] \u274c EventClickComponent preload failed:`,e),e})),l}t.A=function(e){return(0,r.jsx)(s,{...e})}},5568:function(e,t,n){var o=n(1477);function i(){return[window.innerHeight,window.innerWidth]}t.A=function(){var[e,t]=i();const[n,r]=(0,o.useState)([e>t?"portrait":"landscape",e,t]);return(0,o.useLayoutEffect)(()=>{function e(){var[e,t]=i();r(e>t?["portrait",e,t]:["landscape",e,t])}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)}},[]),n}},5660:function(e,t,n){var o=n(1477);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:i=0}={})=>{const[r,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)(null),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const o=new IntersectionObserver((t,n)=>{t.forEach(t=>{l(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)})},{root:t,rootMargin:n,threshold:i});return d.current&&o.observe(d.current),()=>{o.disconnect()}},[e,t,n,i]),[d,r,s]}},5677:function(e,t,n){n.d(t,{A:function(){return h}});var o=n(1214),i=n(1477);function r(e){if(!e)return{};var t={};return Array.from(e.attributes).forEach(e=>{var n;t[e.name]=(n=e.value,isNaN(+n)?n:+n)}),t}function a(...e){try{var t;const n=document.getElementById("whatmorePreviewMode");if(!n)return null;const o=null===e||void 0===e?void 0:e[0];if(!o)return!0;let i={};return i=o.includes("function")?{}:r(n),null!==(t=i)&&void 0!==t&&t[o]?i[o]:null}catch(n){return null}}var s=function({disablePreview:e=!1}={}){var t,n,o=e?window.innerHeight:null!==(t=a("height-wh"))&&void 0!==t?t:window.innerHeight,r=e?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[s,l]=[o,r];const[d,c]=(0,i.useState)([s>l?"portrait":"landscape",s,l]);return(0,i.useLayoutEffect)(()=>{function t(){var t,n,o=e?window.innerHeight:null!==(t=a("height-wh"))&&void 0!==t?t:window.innerHeight,i=e?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[r,s]=[o,i];c(r>s?["portrait",r,s]:["landscape",r,s])}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)}},[]),d},l=(n(5547),n(4234));const d=(0,o.Xd)("whatmoreShopId");(0,o.Xd)("whatmoreLoggingActive");function c(e){const t="true"==localStorage.getItem("whatmoreActivateLogs");if("51273072796"==d||"64967540952"==d)return[document.documentElement.clientHeight,document.documentElement.clientWidth];let n=null;if(e){const t=document.getElementById(e);t&&(n=t.closest(".whatmore-base"))}n||(n=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="carousel"])'),n||(n=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="collection"])')));let o=n;for(;o&&o!==document;)if(o=o.parentElement,o&&!o.classList.contains("whatmore-base")){t&&console.log("currentElement : ",o);break}let i=window.innerWidth;if(o){const e=o.getBoundingClientRect().width;if(t&&console.log("parentWidth : ",e),e>0){t&&console.log("good case");const n=window.getComputedStyle(o);i=e-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0)}o&&0==e&&(o.style.setProperty("width","100%","important"),t&&console.log("Set currElement width to 100% !important"))}return t&&console.log("final width : ",i),[window.innerHeight,i]}var u=function(){const{whatmoreRootId:e}=(0,i.useContext)(l.BR)||{};var[t,n]=c(e);const[o,r]=(0,i.useState)([t>n?"portrait":"landscape",t,n]);return(0,i.useLayoutEffect)(()=>{function t(){var[t,n]=c(e);r(t>n?["portrait",t,n]:["landscape",t,n])}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)}},[]),o};var h=function(e){var t;const n=(0,o.Xd)("isWhatmorePreviewMode"),i=u(),r=s({disablePreview:null!==(t=null===e||void 0===e?void 0:e.disablePreview)&&void 0!==t&&t});return(0,o.Xd)("whatmoreLoggingActive")&&console.log("mode : ",i),n?r:i}},6126:function(e,t,n){n.d(t,{A:function(){return N}});var o=n(1477),i=n(5677),r=n(1214),a=(n(564),n(5277),n(4548),n(6376),n(2446),n(878),n(621),n(6374)),s=n(4234),l=(n(897),n(3358)),d=n(6884),c=n(5547),u=n(5660),h=n(4475),m=n(4018),p=n(6532),v=n(4338),f=n(7900),w=n(481);var g=function(e){var t;const[n]=(0,r.QN)("whatmoreShopId"),i=e.isMuted,{whatmoreWidgetSourceDetails:a}=(0,o.useContext)(s.BR),l=a.templateType,d=(0,f.l2)(l),u=null!==(t=e.iconSize)&&void 0!==t?t:30;function h(t){e.onToggle(t)}return!0===(0,c.GZ2)(n)?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:i?(0,w.jsx)(v.A,{sx:{color:"white",fontSize:d?1.3*u:u,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:e=>{h(e)}}):(0,w.jsx)(p.A,{sx:{color:"white",fontSize:d?1.3*u:u,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:e=>{h(e)}})})},y=n(6720),b=n(3168),x=n(7372),S=n(6431),j=n(2058),_=n(428),C=n(9888),T=n(7156),E=n(221),$=n(5405),A=n(6380),I=n(8762);function P(e){const[t,n]=(0,o.useState)(e.initialMuteState),i=e.events,a=e.activeEventIndex,s=e.setActiveEventIndex,u=(0,r.Xd)("whatmoreShopId"),h="portrait"===e.mode;function m(o){o.stopPropagation(),n(!t),(0,b.MN)()&&((0,A._)()?(0,x.bo)():(0,I.bi)()),e.onMuteToggle()}const p=e.event;return(0,w.jsxs)("div",{style:{position:(0,c.D7t)(u)?"absolute":"relative",top:(0,c.D7t)(u)?0:"",zIndex:1,bottom:(0,c.D7t)(u)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:[(0,w.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"==p.event_type&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{width:"100%"},onClick:e=>{(0,c.OC6)(u)||m(e)}}),(0,c.qLA)(u)&&(0,w.jsx)(g,{isMuted:t,onToggle:e=>{m(e)}})]}),i.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.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:e=>{e.stopPropagation(),s(0===a?i.length-1:a-1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,w.jsx)(l.A,{})})})}),(0,w.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:e=>{e.stopPropagation(),s(a===i.length-1?0:a+1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,w.jsx)(d.A,{})})})}),(0,c.JiT)(u)&&(0,w.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:i.map((e,t)=>{const n=t===a;return(0,w.jsx)("button",{onClick:e=>{e.stopPropagation(),s(t)},style:{width:n?"25px":h?"12px":"14px",height:h?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,c.z1s)(u):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},t)})})]})]}),!(0,c.OC6)(u)&&(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:m})]})}var k=function(e){var t;const[n,a,l]=(0,i.A)(),[d,p]=(0,o.useState)(!0),v=(0,r.Xd)("whatmoreVideoTileSize"),[f,g,b]=(0,u.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:x,whatmoreWidgetIdentity:A}=(0,o.useContext)(s.BR),I=(0,r.Xd)("whatmoreShopId"),k=e.events,N=e.activeEventIndex,L=e.setActiveEventIndex,W=k[N],O=(0,m.lP)(W),R=(0,m.cb)(W),D=(0,m.tQ)(W,n);if((0,o.useEffect)(()=>{_.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;e&&(e.style.minHeight="0px")})},[]),"portrait"===n&&!O)return(0,w.jsx)(w.Fragment,{});if("landscape"===n&&!R)return(0,w.jsx)(w.Fragment,{});const q=(0,h.s)("portrait"===n?O:R),M=v/100*(0,c.igk)(I),F=v/100*(0,c.Y_l)(I),B=(0,S.i)((0,c.gcj)(I),A,"portrait"===n),V=null!==B&&void 0!==B?B:"portrait"===n?(0,c.G0Q)(I):(0,c.ga9)(I),z="portrait"===n?l*M:l*F,X=(0,c.D7t)(I),Q=X?l*V:z*V,U=(W.cta||[]).filter(e=>(null===e||void 0===e?void 0:e.cta_link)&&!/whatmore\.ai/i.test(e.cta_link)).sort((e,t)=>{var n,o;return(null!==(n=e.cta_id)&&void 0!==n?n:0)-(null!==(o=t.cta_id)&&void 0!==o?o:0)})[0]||null,H=null!=(null===U||void 0===U?void 0:U.cta_link);return(0,w.jsxs)("div",{ref:f,onClick:()=>{(0,C.registerClickEvent)({userInteractionType:T.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:x,event:k[N]}),(0,c.OC6)(I)&&null!==U&&void 0!==U&&U.cta_link&&window.open(U.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:X?"100%":z,height:Q,borderWidth:(0,c.YcK)(I),borderColor:(0,c.Fwt)(I),overflow:"hidden",cursor:"pointer"},children:["28273541192"===I?(0,w.jsx)($.A,{height:"100%",width:"100%",url:q,isPlaying:g,event:{...W,poster_image:D},isVideoMuted:!g||d,source:E.N.BANNER}):(0,w.jsx)(y.A,{height:"100%",width:"100%",url:q,isPlaying:g,event:{...W,poster_image:D},isVideoMuted:!g||d,setDuration:e.setDuration,source:E.N.BANNER}),(0,w.jsx)(P,{isCTAPresent:H,events:k,activeEventIndex:N,setActiveEventIndex:L,event:W,mode:n,onMuteToggle:()=>p(!d),initialMuteState:d}),(0,c.XYM)(I)&&(null===W||void 0===W||null===(t=W.cta)||void 0===t?void 0:t.length)>1&&U&&(0,w.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)(j.A,{isBanner:!0,event:W,cta:U,fontFactor:.6})})]})};var N=function(e){const{whatmoreRootId:t}=(0,o.useContext)(s.BR),[n,l]=(0,o.useState)(0),d=e.events,[c,u]=(0,o.useState)(-1),[h]=(0,r.QN)("whatmoreShopId"),[m]=(0,i.A)();let p;return(0,o.useEffect)(()=>{p&&clearInterval(p);const e="video"===d[n].event_type,t=e?1e3*c:6e3;return e?-1!=c&&(p=setInterval(()=>{l(e=>e===d.length-1?0:e+1)},t)):p=setInterval(()=>{l(e=>e===d.length-1?0:e+1)},t),()=>{clearInterval(p)}},[c,n]),(0,w.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===h&&"portrait"==m?"200px":void 0},children:(0,w.jsx)(a.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(k,{activeEventIndex:n,events:d,setActiveEventIndex:l,setDuration:u})})})}},6267:function(){},6374:function(e,t,n){n.d(t,{h:function(){return o}});const o=(0,n(1477).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},6376:function(){},6380:function(e,t,n){function o(){const e=navigator.userAgent||navigator.vendor||window.opera;if(!/iPhone/.test(e))return!1;const{width:t,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(e=>e.width===t&&e.height===n||e.width===n&&e.height===t)}n.d(t,{_:function(){return o}})},6441:function(e,t,n){n.d(t,{U:function(){return i}});var o=n(1214);function i(){const e=(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"))&&!e.includes("STR")}},6720:function(e,t,n){n.d(t,{A:function(){return x}});var o=n(1477),i=n(9128),r=n(9795),a=n(3477),s=n(9258),l=n(4475),d=n(481);var c=function(e){var t,n,i;const[r,a]=(0,o.useState)(!1),c=o.useRef(0),u=(0,o.useRef)(null),h=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},m=(0,l.s)((null===e||void 0===e?void 0:e.posterImage)||e.url),p=null!==(n=e.height)&&void 0!==n?n:"100%",v=null!==(i=e.width)&&void 0!==i?i:"100%";return(0,o.useEffect)(()=>{c.current=0;const e=setInterval(()=>{c.current=c.current+.03,u.current&&h(c.current,5),c.current>=5&&(c.current=0)},30);return()=>{clearInterval(e)}},[e.isPlaying]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:v,height:"100%",overflow:"hidden"},children:[(0,d.jsx)("div",{style:{width:r?"100%":"0px",height:r?"100%":"0px"},children:(0,d.jsx)("img",{ref:u,src:(0,l.s)(e.url),style:{objectFit:"cover",height:"100%",width:v,backgroundColor:"white"},alt:"image player",onLoad:()=>{a(!0)}})}),!r&&m?(0,d.jsx)("img",{src:m,style:{height:"100%",width:v,objectFit:"cover"},alt:"Loading preview"}):r?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(s.A,{width:v,height:p})]})},u=n(1214),h=n(7372),m=n(221),p=n(5547),v=n(4040),f=(n(5497),n(4234)),w=n(4018);function g(e){var t,n,i;const[a,l]=(0,r.A)(),[c,g]=(0,o.useState)(o.useRef()),y=e.posterImage,[b,x]=(0,u.QN)("whatmoreVideoPlayerPoolBlessed"),[S,j]=(0,o.useState)(!0),[_,C]=(0,o.useState)(!1),T=e.timeUpdateCallback,{whatmoreIsPreviewMode:E}=(0,o.useContext)(f.BR),$=null!==(t=e.isVideoMuted)&&void 0!==t?t:a,A=null!==(n=e.height)&&void 0!==n?n:"100%",I=null!==(i=e.width)&&void 0!==i?i:"100%",P=(0,u.Xd)("whatmoreShopId");(0,o.useLayoutEffect)(()=>{if(c.current&&b)if(0==c.current.children.length){const n=(0,w.Cr)(e.url);(t=(0,h.Z4)(c.current,e.url,$||!e.isPlaying,e.isPlaying,n)).setAttribute("playsinline","true"),t.setAttribute("preload","auto"),t.addEventListener("loadeddata",()=>{j(!1)}),T&&t.addEventListener("timeupdate",e=>{if(!t)return;const n=t.currentTime,o=t.duration;T(Number.isFinite(n)?n:0,Number.isFinite(o)?o:0)})}else{var t;(t=c.current.children[0]).muted=$||!e.isPlaying,e.isPlaying?t.play():(t.pause(),(0,p.fwF)(P)&&e.source==m.N.CAROUSEL_EVENT_OPENED&&(!e.isPlaying&&t.play(),setTimeout(()=>{!e.isPlaying&&t.pause()},(0,v.n)()?1900:800)))}},[$,e.isPlaying,b,S]),(0,o.useLayoutEffect)(()=>()=>{c.current&&0!=c.current.children.length&&(0,h.rq)(c.current)},[]);const k=(0,u.Xd)("whatmoreLandingLocationType");return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:I,height:A,overflow:"hidden",backgroundColor:E?(0,p.KVz)(P):(0,p.QSX)(P),filter:e.showQuestion?"blur(24px)":""},children:[(0,d.jsx)("div",{ref:c,style:{width:S?"0px":"100%",height:S?"0px":E?(0,p.tbf)(P):(0,p.CBm)(P)&&"product"==k?"auto":(0,p.R7q)(P)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==P&&S&&_?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,d.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,d.jsx)("img",{src:y,style:{height:"100%",width:I,animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):S&&!_&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,d.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,d.jsx)("img",{src:y,height:"100%",width:I,onLoad:()=>{C(!0)},style:{animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,d.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,d.jsx)(s.A,{width:I,height:A,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var y=function(e){var t;return(0,d.jsx)(g,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(t=e.isVideoMuted)&&void 0!==t?t:null,source:e.source,posterImage:e.posterImage,showQuestion:e.showQuestion})};function b(e){var t,n,i;const[a,c]=(0,r.A)(),[h,g]=(0,o.useState)(!1),[y,b]=(0,o.useState)(!1),x=e.setDuration,S=(0,o.useRef)(null),j=(0,u.Xd)("whatmoreShopId"),_=e.timeUpdateCallback,{whatmoreIsPreviewMode:C}=(0,o.useContext)(f.BR),T=(0,u.Xd)("whatmoreLandingLocationType"),E=null!==(t=e.height)&&void 0!==t?t:"100%",$=null!==(n=e.width)&&void 0!==n?n:"100%",A=null!==(i=e.isVideoMuted)&&void 0!==i?i:a,I=null===e||void 0===e?void 0:e.posterImage;return(0,o.useEffect)(()=>{const t=S.current;if(t&&(e.isPlaying?t.paused&&t.play():t.pause(),_)){const e=()=>{if(!S.current)return;const e=S.current.currentTime,t=S.current.duration;_(Number.isFinite(e)?e:0,Number.isFinite(t)?t:0)};return t.addEventListener("timeupdate",e),()=>t.removeEventListener("timeupdate",e)}},[e.isPlaying,e.url]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:$,height:E,overflow:"hidden",backgroundColor:C?(0,p.KVz)(j):(0,p.QSX)(j),filter:null!==e&&void 0!==e&&e.showQuestion?"blur(24px)":""},children:[(0,d.jsx)("div",{style:{width:h?"100%":"0px",height:h?C?(0,p.tbf)(j):(0,p.CBm)(j)&&"product"==T?"auto":(0,p.R7q)(j):"0px"},children:(0,d.jsxs)("video",{ref:S,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==e.source?e.url:void 0,playsInline:!0,muted:!(!A&&e.isPlaying),onLoadedData:()=>{g(!0),e.isPlaying&&S.current&&S.current.play(),(0,p.fwF)(j)&&e.source==m.N.CAROUSEL_EVENT_OPENED&&(!e.isPlaying&&S.current&&S.current.play(),setTimeout(()=>{!e.isPlaying&&S.current&&S.current.pause()},(0,v.n)()?1900:800))},onLoadedMetadata:()=>{S.current&&x&&x(S.current.duration)},poster:I,children:[(0,d.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,d.jsx)("source",{src:(0,l.s)(e.url),type:"video/mp4"}),(0,d.jsx)("source",{src:(0,w.Cr)(e.url),type:"video/mp4"})]})}),"40273707171"!==j&&!h&&y?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,d.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,d.jsx)("img",{src:I,style:{height:"100%",width:$,objectFit:"cover",animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!h&&!y&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,d.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,d.jsx)("img",{src:I,height:"100%",width:$,onLoad:()=>{b(!0)},style:{animation:e.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,d.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,d.jsx)(s.A,{width:$,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var x=function(e){var t,n,r,s,l;return(0,i.I)(e.event)?(0,d.jsx)(c,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,posterImage:null===(r=e.event)||void 0===r?void 0:r.poster_image}):1==(0,o.useContext)(a.p).isIOS&&1==(0,u.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=e.source?(0,d.jsx)(y,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(s=e.isVideoMuted)&&void 0!==s?s:null,source:e.source,posterImage:null===(l=e.event)||void 0===l?void 0:l.poster_image,showQuestion:null===e||void 0===e?void 0:e.question}):(0,d.jsx)(b,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback,isVideoMuted:null!==(t=e.isVideoMuted)&&void 0!==t?t:null,setDuration:e.setDuration,source:e.source,posterImage:null===(n=e.event)||void 0===n?void 0:n.poster_image,showQuestion:null===e||void 0===e?void 0:e.question})}},6775:function(e,t,n){var o=n(1214),i=n(5677),r=n(3391),a=n(5547);t.A=function(e){const[t,n,s]=(0,i.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[u]=(0,o.QN)("whatmoreVideoTileSizePortrait"),h=s>n,m=s>=481,p=null!==e&&void 0!==e&&e.isEmbed?60:"portrait"==t?u:c,v=!("portrait"!=t||!m),f=p/100*1.3*.5,w=p/100;var g=Math.min(s,n),[y,b,x,S]=[.6*g*(16/9),.6*g,1.4,0];function j(e){return Math.round(10*e)/10}var _={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(h){const e=b*f,t=y*f;[y,b,x,S]=[t,e,(s-2*l-2*(0,a.$du)(d))/(1.1*e),l],_[r._]=r.$S,_[r.dl]=r.nN}else if(v){var C=.8*b,T=.8*y;"portrait"==t?(C*=w,T*=w,[y,b,x,S]=[T,C,j(s/(1.2*C)),0],_[r._]=r.vF,_[r.dl]=r.tn):([y,b,x,S]=[T,C,(s-2*l)/(1.1*C),l],_[r._]=r.vF,_[r.dl]=r.nN)}else{C=b,T=y;"portrait"==t?(C=C*w*.9,T=T*w*.9,[y,b,x,S]=[T,C,j(s/(1.15*C)),0],_[r._]=r.b4,_[r.dl]=r.tn):(C=.7*b,T=.7*y,[y,b,x,S]=[T,C,(s-2*l)/(1.1*C),l],_[r._]=r.b4,_[r.dl]=r.nN)}return[y,b,x,S,_]}},6984:function(e,t,n){function o(e,t){let n=0;let o=new MutationObserver(function(){document.querySelector("."+e)?(t(),o.disconnect()):0==n&&(n=1,setTimeout(()=>{t(),o.disconnect()},8e3))});o.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return o}})},7372:function(e,t,n){n.d(t,{F5:function(){return i},Pc:function(){return a},Z4:function(){return s},bo:function(){return l},rq:function(){return d}});var o=n(1214);const i=6;function r(){const e=(0,o.Xd)("whatmoreVideoPlayerPool");var t=document.createElement("video");return t.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),t.setAttribute("width","100%"),t.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),t.muted=!0,t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t),t}const a=function(e){for(let t=1;t<=e;t++)r();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const s=function(e,t,n,i,r){(0,o.Xd)("whatmoreVideoPlayerPool");const a=function(e,t,n){var i=(r=(0,o.Xd)("whatmoreVideoPlayerPool").children,r.length>0?r[0]:null);var r;if(!i)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return e&&(e.includes(".m3u8")||e.includes("m3u8"))?i.canPlayType("application/vnd.apple.mpegurl")&&i.setAttribute("src",e):i.setAttribute("src",e),i.muted=t,n||i.pause(),i}(t,n,i);return e.innerHTML="",e.appendChild(a),a},l=async function(){const e=(0,o.Xd)("whatmoreVideoPlayerPool");(0,o.Xd)("whatmoreVideoPlayerPoolInitiated")||a(i);var t=[];for(let o=0;o<e.children.length;o++){let i=e.children[o];i.muted=!0,i.setAttribute("playsinline","true"),i.setAttribute("webkit-playsinline","true"),i.setAttribute("playsInline","true");var n=i.play().then(e=>(i.pause(),e)).catch(e=>(console.warn("Whatmore :: Blessing failed for video element, retrying...",e),i.volume=0,i.play().then(()=>{i.pause()}).catch(e=>{throw console.error("Whatmore :: Retry blessing failed",e),e})));t.push(n)}await Promise.all(t).then(e=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)}).catch(e=>{console.error("Whatmore :: Error while blessing "+e.message),(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)})},d=function(e){const t=(0,o.Xd)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},7462:function(e,t,n){var o=n(481);t.A=function(e){var t,n,i;const r=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(n=e.width)&&void 0!==n?n:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,o.jsx)("div",{style:{height:r,width:r,borderRadius:s,overflow:"hidden",minHeight:r,minWidth:a,maxHeight:r,maxWidth:a},children:(0,o.jsx)("div",{style:{minHeight:r,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},7777:function(e,t,n){n.d(t,{A:function(){return _}});var o=n(4362),i=n(1477),r=n(9252),a=n(5405),s=n(3391),l=n(1214),d=n(6775);var c=function(e){const[t,n,o,i,r]=(0,d.A)({isEmbed:!0}),[a]=(0,l.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[s.dl]===s.nN?c/100:a/100*1.2;return[t*u,n*u,r]},u=n(1395),h=n.n(u),m=n(9611),p=(n(6376),n(2446),n(5547)),v=n(481);var f=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,v.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,v.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,v.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]}),w=n(2169);const g={67841720509:["button.add-to-cart","button[name='add']","#gokwik-buy-now",".shopify-payment-button",".product-dynamic-payment-button"]},y=["#pageheader","page-header",".navigation__tier-1-container",".navigation__tier-1"];function b(e){if(!e)return!1;const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&0!==parseFloat(t.opacity||"1")&&(e.offsetWidth>0&&e.offsetHeight>0)}function x({whatmoreShopId:e,baseBottom:t,widgetWidth:n,widgetHeight:o,side:r,horizontalPadding:a}){const s=g[e],[l,d]=(0,i.useState)(t),c=(0,i.useRef)({});return c.current={baseBottom:t,widgetWidth:n,widgetHeight:o,side:r,horizontalPadding:a},(0,i.useEffect)(()=>{if(!s||"undefined"===typeof window)return void d(t);let e=null;const n=()=>{e=null;const{baseBottom:t,widgetWidth:n,widgetHeight:o,side:i,horizontalPadding:r}=c.current,a=window.innerWidth,l=window.innerHeight,u="left"===i?r:a-r-n,h=u+n,m=function(e,t){let n=0;for(const o of y)for(const i of document.querySelectorAll(o)){if(!b(i))continue;const o=i.getBoundingClientRect();o.top>.3*t||o.width<.5*e||o.bottom<=0||o.bottom>=.6*t||o.bottom>n&&(n=o.bottom)}return n}(a,l)+8,p=l-t-o,v=l-t;let f,w=null,g=!1;for(const e of s){const t=document.querySelectorAll(e);for(const e of t){if(!b(e))continue;const t=e.getBoundingClientRect();t.width<=0||t.height<=0||(t.right<=u||t.left>=h||t.bottom<=0||t.top>=l||(w=null===w?t.top:Math.min(w,t.top),t.top<v&&t.bottom>p&&(g=!0)))}}f=g&&null!==w&&w-12-o>=m?Math.max(t,l-w+12):t,d(e=>Math.round(e)===Math.round(f)?e:f)},o=()=>{null===e&&(e=window.requestAnimationFrame(n))};o(),window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o);const i=window.setInterval(o,300);return()=>{null!==e&&window.cancelAnimationFrame(e),window.removeEventListener("scroll",o),window.removeEventListener("resize",o),window.clearInterval(i)}},[s,t]),s?l:t}const S=["65972830359"];function j(){return 8e3+Math.floor(7001*Math.random())}var _=function(e){var t;const n=i.useRef(null);var[d,u,g]=c();(0,l.Xd)("whatmoreUITheme");const[y]=(0,l.QN)("whatmorePrimaryFont"),[b]=(0,l.QN)("whatmoreEmbedAppVideoTitle"),[_]=(0,l.QN)("whatmoreEmbedAppPositionPortrait"),[C]=(0,l.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[T]=(0,l.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,l.QN)("whatmoreEmbedAppPositionLandscape"),[$]=(0,l.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[A]=(0,l.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),I=(0,l.Xd)("whatmoreShopId"),P=(0,l.Xd)("isWhatmorePreviewMode");var k=_,N=C,L=T;g[s.dl]===s.nN&&(k=E,N=$,L=A);const[W,O]=(0,i.useState)(["initial",window.pageYOffset]),[R,D]=(0,i.useState)(!1),[q]=(0,i.useState)(j),M=null!==(t=e.isSpotlight)&&void 0!==t&&t,F=g[s.dl]===s.nN?1.3*(0,p.O86)(I):1.1*(0,p.O86)(I),B=M?F:1.1;d*=B,u*=B;const V=M?(0,p.LrK)(I):k,z=M?(0,p._2D)(I):(0,p.GSq)(I),[X,Q]=(0,i.useState)(!M&&(0,p.n8Q)(I)),U=!M&&(0,p.YE3)(I);function H(e,t){O(e),e[1]<=500?D(!1):t!=R&&(D(t),Q(!1))}(0,i.useEffect)(()=>{if(!!(X&&!z))return;const t=requestAnimationFrame(()=>{var t;const o=n.current;if(!o)return;("function"===typeof o.checkVisibility?o.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):o.offsetWidth>0||o.offsetHeight>0)&&(null===(t=e.onImpression)||void 0===t||t.call(e))});return()=>cancelAnimationFrame(t)},[X]),(0,i.useEffect)(()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<500||(H([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},o=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[W]),(0,o.j)({ref:n,handler:()=>{H(["scrolled-up",W[1]],!0)}});const J=e.event,G=e.inVideoClick,Y=e.closeClick,Z=.25*u,K=.5*u,ee=S.includes(I),te=Math.max(10,.075*u),ne=1.2*te,oe=(q/1e3).toFixed(1).replace(/\.0$/,"")+"K",ie=.6*u,re="20px",ae=(0,p.GvQ)(I),se=Number(M?(0,p.pUQ)(I):L)||0,le=!(X&&!z)&&R&&z,de=x({whatmoreShopId:I,baseBottom:se,widgetWidth:le?ie:u,widgetHeight:le?ie*(16/9):d,side:V,horizontalPadding:le?16:Number(M?(0,p.D2A)(I):N)||0});var ce=!1,ue=0,he=0;function me(e){ce=e}const pe=(0,v.jsx)("div",{className:"73490825529"==I?"whatmore-root wht-popup":"wht-popup",children:X&&!z?(0,v.jsx)(v.Fragment,{}):R&&z?(0,v.jsx)("div",{style:"left"===V?{left:"16px",bottom:de+"px",position:"fixed",zIndex:ae}:{right:"16px",bottom:de+"px",position:"fixed",zIndex:ae},children:(0,v.jsxs)("div",{onClick:()=>{H(["initial",W[1]],!1)},style:{width:ie+"px",height:ie*(16/9)+"px",borderRadius:re,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"===V?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",borderRadius:re,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,v.jsx)(a.A,{url:J.thumbnail_image,isPlaying:!1,event:J})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,v.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,v.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),Y()},children:(0,v.jsx)(f,{size:.8*Z})})}),(0,v.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,v.jsx)(m.A,{sx:{color:"white",fontSize:2*Z+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,v.jsx)(h(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:P?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var n,o;n=t.x,o=t.y,ue=n,he=o},onDrag:(e,t)=>{me(!0)},onStop:(e,t)=>{ce&&(Math.abs(t.x-ue)>5||Math.abs(t.y-he)>5)?me(!1):(U&&Y(e),G(J))},children:(0,v.jsx)("div",{ref:n,style:"left"===V?{left:M?(0,p.D2A)(I)+"px":N+"px",bottom:de+"px",position:"fixed",zIndex:ae}:{right:M?(0,p.D2A)(I)+"px":N+"px",bottom:de+"px",position:"fixed",zIndex:ae},children:(0,v.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==I?d+"px":u+"px",height:e.isSpotlight&&"60122562760"==I?u+"px":d+"px",borderRadius:re,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"===V?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:re,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==I?16/9:9/16},children:(0,v.jsx)(a.A,{url:J.thumbnail_image,isMuted:!0,isPlaying:!0,event:J})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[ee&&(0,v.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,v.jsxs)("svg",{width:ne,height:ne,viewBox:"0 0 24 24",fill:"none",children:[(0,v.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,v.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"#fff"})]}),(0,v.jsxs)("span",{style:{color:"#fff",fontSize:te+"px",fontWeight:600,fontFamily:y,lineHeight:1,whiteSpace:"nowrap",textShadow:"0 1px 2px rgba(0,0,0,0.4)"},children:[oe," views"]})]}),(0,v.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,v.jsx)("div",{className:"close-btn",onClick:Y,children:(0,v.jsx)(f,{size:Z})})}),(0,v.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,v.jsx)(w.A,{size:K})}),(0,v.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:re,borderBottomRightRadius:re,background:b?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,v.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:y,fontWeight:"600",fontSize:.35*Z+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:b})})]})})]})})})}),ve="73490825529"==I||"67211264052"==I;if(ve&&"undefined"!==typeof document){var fe;const e=null===(fe=document.querySelector('.whatmore-widget[data-wh="embed"]'))||void 0===fe?void 0:fe.closest(".whatmore-base");if(e&&"none"===getComputedStyle(e).display)return null}return ve&&"undefined"!==typeof document&&document.body?r.createPortal(pe,document.body):pe}},7939:function(e,t,n){n.d(t,{initializeGA:function(){return h},sendVideoViewEventToGA:function(){return m}});var o,i=n(3405),r=n(2385),a=n(5547);const s="Whatmore Video Shopping",l=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},c={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},u={homepage:"Home Page",product_page:"Product Page"};async function h(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.initialize((0,a.xIo)(e)),l&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);i.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),l&&console.debug("Whatmore: initialized GA3")}}async function m(e,t,n){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(i.Ay.event({category:s,action:d.video_view,label:u[t]+":"+c[n]}),l&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.event({category:s,action:d.video_view+":"+u[t]+":"+c[n],value:1,nonInteraction:!1}),l&&console.debug("Whatmore: pushed view event to GA4"))}},8060:function(e,t,n){n(1477);var o=n(9252),i=(n(8584),n(4475)),r=n(481);let a=null;t.A=function({posterUrl:e}){if(!e)return null;if(window.innerWidth>window.innerHeight)return null;e=(0,i.s)(e);const t=[];for(let n=0;n<8;n++){const e=45*n;t.push((0,r.jsx)("span",{style:{transform:`rotate(${e}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:e,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:t})})]}),(a&&document.documentElement.contains(a)||(a=document.createElement("div"),a.id="whatmore-suspense-portal-root",document.documentElement.appendChild(a)),a))}},8513:function(e,t,n){n.d(t,{CP:function(){return w},Lt:function(){return l},R3:function(){return g},RX:function(){return h},_N:function(){return f},addWhatmoreAttributeToCart:function(){return c},iL:function(){return p},js:function(){return d},oV:function(){return m},tN:function(){return v}});var o=n(1214),i=n(5547),r=n(6080),a=n(5616),s=n(5566);function l(){const e="https://"+window.location.hostname+"/cart.json";return fetch(e,{method:"GET"})}async function d(){const e="https://"+window.location.hostname+"/cart.json";return await fetch(e,{method:"GET"})}async function c(e){var t;let n,l=(0,a.Ak)(),c=null,h=null,m={},p=null,v=null,f=null,w={};const g=(0,o.Xd)("whatmoreShopId");let y=(0,s.CK)(),b=null===(t=localStorage)||void 0===t?void 0:t.wht_is_impression,x=y.length>0;y.forEach(e=>{w.hasOwnProperty(null===e||void 0===e?void 0:e.product_id)||(w[null===e||void 0===e?void 0:e.product_id]={widgetInfo:null===e||void 0===e?void 0:e.widget_info,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.user_type})});const S=localStorage.getItem("_whatmore_session_id"),j=localStorage.getItem("wht_user_group"),_=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,C=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,T=localStorage.getItem("_whatmore_user_id"),E=localStorage.getItem("_whatmore_last_video_view_session"),$=(()=>{try{var e;return JSON.parse(null!==(e=localStorage.getItem("_whatmore_add_to_cart_products"))&&void 0!==e?e:"[]")}catch(t){return[]}})(),A=new Set($.map(e=>String(null===e||void 0===e?void 0:e.product_id))),I=(()=>{try{var e;return JSON.parse(null!==(e=localStorage.getItem("_whatmore_buynow_products"))&&void 0!==e?e:"[]")}catch(t){return[]}})(),P=new Set(I.map(e=>String(null===e||void 0===e?void 0:e.variant_id))),k={buynow:3,direct:2,indirect:1};await d().then(e=>e.json()).then(t=>{l=t.token,n=t.attributes;let a={};try{var d,y;const e=null===(d=n)||void 0===d?void 0:d._wtot;a="string"===typeof e?JSON.parse(e):null!==e&&void 0!==e?e:{};const o=new Set((null!==(y=t.items)&&void 0!==y?y:[]).map(e=>String(null===e||void 0===e?void 0:e.product_id)));a=Object.fromEntries(Object.entries(a).filter(([e])=>o.has(String(e))))}catch(L){a={}}let $=[];if($=!0===e?t.items.map(e=>{const t=w[null===e||void 0===e?void 0:e.variant_id];return{...e,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.userType,widget_info:null===t||void 0===t?void 0:t.widgetInfo}}):t.items.map(e=>{const t=w[null===e||void 0===e?void 0:e.product_id];return{...e,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.userType,widget_info:null===t||void 0===t?void 0:t.widgetInfo}}),0==$.length)return console.debug("Whatmore :: no cart items available for view products"),null;let I={},N={};if(null!=S){const e={wht_session_id:null!==E&&void 0!==E?E:S,wht_user_id:T,...j&&{wht_user_group:j},..._&&{wht_ab_test_id:_},...null!=C&&{wht_ab_test_version:C}};N={[r.Uv]:(0,r.dK)(g)?JSON.stringify(e):e,[r.Um]:""}}if(b||x){const e="1";N[x?r.Rm:r.AG]=e,N[x?r.bZ:r.SW]=""}!(0,i.tSy)(g)&&(N.hasOwnProperty(r.Uv)||N.hasOwnProperty(r.Rm)&&!n.hasOwnProperty(r.Rm)||N.hasOwnProperty(r.AG)&&!n.hasOwnProperty(r.AG))&&u(N),$.map((t,n)=>{if(c=t.key,h=t.quantity,m=t.properties,p=t.widget_info,v=t.location,f=t.userType,("63330517149"==g||"77604192550"==g||"64157352183"==g||"62758289602"==g||"65972830359"==g||"75310563627"==g||(0,i.CpV)(g))&&w.hasOwnProperty(JSON.stringify(!0===e?t.variant_id:t.product_id))){const e="65972830359"==g||"75310563627"==g||(0,i.CpV)(g),n=e?"_wtot":"wtot";let o=(0,s.wm)()+`#${p}`;if(e){var l;const e=P.has(String(null===t||void 0===t?void 0:t.variant_id))?"buynow":A.has(String(null===t||void 0===t?void 0:t.product_id))?"direct":"indirect",n=a[null===t||void 0===t?void 0:t.product_id];o=(null!==(l=k[("string"===typeof n?n:"").split(":")[1]])&&void 0!==l?l:0)>=k[e]?n:o+`:${e}`}I={...I,[null===t||void 0===t?void 0:t.product_id]:o};u({[n]:e?{...a,...I}:I})}null!==m&&r.B_ in m||!w.hasOwnProperty(JSON.stringify(!0===e?t.variant_id:t.product_id))||async function(e,t,n,a,l="default",d,c,u,h){const m=(0,o.Xd)("whatmoreShopId"),p=c?(0,s.wm)()+("72201044272"==m?`#${a}#${l}#${d?"olduser":"newuser"}`:`#${a}`):h?"_wt_vs":u?"_wt_vi":"";if(""==p||"_wt_vs"==p||"_wt_vi"==p||"77604192550"==m||"64157352183"==m||"80856187185"==m||"86486974743"==m||"62758289602"==m||"63046287536"==m||"65972830359"==m||"75310563627"==m||"86968402213"==m||(0,i.CpV)(m))return;let v={id:e,quantity:t,properties:{...p?{[r.B_]:p}:{},...n}};const f=await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(e=>e.json()).catch(e=>{console.error("Whatmore :: Error while updating cart line item properties.",e)})}(c,h,m,p,v,f,!0,b,x)})}).catch(e=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",e)})}async function u(e){return await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:e})}).then(e=>e.json()).catch(e=>{console.error("Whatmore :: Error while updating cart attribute.",e)})}async function h(e,t,n,o,a="default",l){if("24366857"==n||"68234805419"==n||"86879863060"==n)return Promise.resolve({ok:!0,json:()=>{}});let d;if((0,i.dnh)(n)){const i=(0,s.wm)()+("72201044272"==n?`#${o}#${a}#${l?"olduser":"newuser"}:direct`:`#${o}:direct`);d={items:e.map(e=>({id:e,quantity:t,properties:{[r.B_]:i}}))}}else d={items:e.map(e=>({id:e,quantity:t}))};const c=localStorage.getItem("_whatmore_session_id"),h=localStorage.getItem("wht_user_group"),m=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,p=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,v=localStorage.getItem("_whatmore_user_id");if(null!=c&&!(0,i.tSy)(n)){const e={wht_session_id:c,wht_user_id:v,...h&&{wht_user_group:h},...m&&{wht_ab_test_id:m},...null!=p&&{wht_ab_test_version:p}},t={[r.Uv]:(0,r.dK)(n)?JSON.stringify(e):e,[r.Um]:""};await u(t)}return Promise.resolve({ok:!0,json:()=>{}})}function m(e,t,n,o,r="default",a){const s="https://"+window.location.hostname;var l;const d="72201044272"==n?`came-from-whatmore-live_${o}_${r}_${a?"olduser":"newuser"}`:`came-from-whatmore-live_${o}`;(0,i.BLb)(n)?(l=`${s}/cart/${e}:${t}?`+(0,i.VCz)(n)+"&"+(0,i.Spk)(n)+"&"+(0,i.KMo)(n),(0,i.dnh)(n)&&(l=`${l}&ref=`+d)):(l=`${s}/cart/${e}:${t}`,(0,i.dnh)(n)&&(l=`${l}?ref=`+d)),window.location.href=l}function p(e){const t="https://"+window.location.hostname+"/cart";(0,i.BLb)(e)?window.location.href=t+"?"+(0,i.VCz)(e)+"&"+(0,i.Spk)(e)+"&"+(0,i.yD5)(e):window.location.href=t}async function v(e,t=""){let n;if("27303477337"===t){var o,i;const t="https://"+window.location.hostname,r=window.location.pathname.split("/");n=t+"/"+(null!==r&&void 0!==r&&null!==(o=r[1])&&void 0!==o&&o.startsWith("en-")?(null===r||void 0===r?void 0:r[1])+"/":"")+(null===e||void 0===e||null===(i=e.product_link)||void 0===i?void 0:i.split(".co")[1])+".js"}else n=(null===e||void 0===e?void 0:e.product_link)+".js";const r=await fetch(n,{method:"GET"});if(!r.ok)throw new Error(`Error! status: ${r.status}`);return await r.json()}async function f(e){const t=e.product_link+".json",n=await fetch(t,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}async function w(e,t,n,a,l="default",d,c,u,h){const m=(0,o.Xd)("whatmoreShopId"),p=c?(0,s.wm)()+("72201044272"==m?`#${a}#${l}#${d?"olduser":"newuser"}:direct`:`#${a}:direct`):h?"_wt_vs":u?"_wt_vi":"";if(""==p||"_wt_vs"==p||"_wt_vi"==p||"77604192550"==m||"64157352183"==m||"80856187185"==m||"86486974743"==m||"62758289602"==m||"65972830359"==m||"75310563627"==m||"86968402213"==m||(0,i.CpV)(m))return;let v={id:e,quantity:t,properties:{...p?{[r.B_]:p}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(e=>e.json()).catch(e=>{console.error("Whatmore :: Error while updating cart line item properties direct.",e)})}function g(e,t){const n=(0,s.wm)()+`#${t}:buynow`;try{var o;const n=JSON.parse(null!==(o=localStorage.getItem("_whatmore_buynow_products"))&&void 0!==o?o:"[]").filter(e=>{var t;return(null!==(t=null===e||void 0===e?void 0:e.timestamp)&&void 0!==t?t:0)+864e5>Date.now()});n.push({variant_id:String(e),widget_info:t,timestamp:Date.now()}),localStorage.setItem("_whatmore_buynow_products",JSON.stringify(n))}catch(d){console.error("Whatmore :: failed to record buy-now marker.",d)}const i=`\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[${r.B_}] type="hidden" value=${n}></input>\n <input type="hidden" name="id" value="${e}" />\n </form> `,a=(new DOMParser).parseFromString(i,"text/html").querySelector('form[action*="/cart/add"]'),l=document.createElement("div");l.appendChild(a),document.body.prepend(l),"function"==typeof handleFloBuyNowBtn&&handleFloBuyNowBtn()}},8584:function(){},8762:function(e,t,n){n.d(t,{Ij:function(){return r},bi:function(){return a}});let o,i=!1;function r(){return o?o.play().then(()=>{i=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(e=>{console.error("Failed to bless videos:",e.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 e=()=>{i||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},8888:function(e,t,n){n.d(t,{B:function(){return r},f:function(){return a}});var o=n(5547),i=n(1637);function r(e){return`${(0,o.jpW)(e)?i.$$:i.MT}/v2/brand/${e}/product-events/recommendation/cdn`}function a(e){return`${(0,o.jpW)(e)?i.$$:i.MT}/v2/brand/${e}/product-events/collection/cdn`}},9258:function(e,t,n){var o=n(2211),i=n(7462),r=n(481);t.A=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,r.jsx)(i.A,{height:a,width:s}),(0,r.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,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,r.jsx)(o.A,{})})})]})}},9263:function(e,t,n){var o=n(5568);t.A=function(e){const[t,n,i]=(0,o.A)();var r="landscape"==t?n*(9/16):i;if("landscape"==t){const e=.85;return[n,r,n*e,r*e]}return[n,r,n,r]}},9759:function(e,t,n){var o=n(1477),i=n(5677),r=n(1214),a=n(481);const s=o.memo(()=>{if(!(0,r.Xd)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,i.A)();return(0,a.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t)),(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 "})]})});t.A=s},9795:function(e,t,n){var o=n(1477),i=n(1214);t.A=function(e){const[t,n]=(0,i.QN)("muted");return(0,o.useEffect)(()=>{},[]),[t,n]}}}]);