whatmore-react-assets 1.0.1426 → 1.0.1428

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1426",
3
+ "version": "1.0.1428",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[461],{852:function(e,t,n){n.d(t,{H:function(){return r}});const o=function(){fetch("/cart.json").then((e=>e.json())).then((e=>{fetch("/cart?view=item").then((e=>e.text())).then((t=>{const n=(new DOMParser).parseFromString(t,"text/html"),o=n.getElementById("CartDrawer"),r=document.getElementById("CartDrawer");o&&r&&(r.innerHTML=o.innerHTML);n.querySelector("#CartDrawer .totals__subtotal-value");const c=document.querySelector("cart-drawer");c&&c.classList.remove("is-empty");const a=document.querySelector("cart-drawer-items");a&&a.classList.remove("is-empty");const i=document.getElementById("cart-icon-bubble");if(i.querySelector(".cart-count-bubble")){i.querySelectorAll('.cart-count-bubble span[aria-hidden="true"]').forEach((t=>{t.textContent=e.item_count}))}else{const t=document.createElement("div");t.className="cart-count-bubble",t.innerHTML=`\n <span aria-hidden="true">${e.item_count}</span>\n <span class="visually-hidden">${e.item_count} items</span>\n `,i.appendChild(t)}i.click();document.getElementById("CartDrawer-Overlay").addEventListener("click",(()=>{const e=document.querySelector("cart-drawer");e&&e.classList.remove("active"),document.body.classList.remove("overflow-hidden")}))}))}))},r=async function(e,t,n,r){let c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"cart-icon";if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){var a=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if("57939755089"==e||"27358003275"==e||"63748341981"==e||"68237558034"==e||"63046287536"==e||"9734029408"==e||"83411075365"==e||"36300750986"==e||"16957273"==e||"9483952"==e||"57265094752"==e||"58538459329"==e||"80266658086"==e||"46784020646"==e||"52982579389"==e||"76291703063"==e||"68546691304"==e||"27951333450"==e&&"cart-icon"==c)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:a,openMiniCart:!0}}));else if("19506115"==e)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==e||"41096085665"==e)refreshCart(a),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==e||"4243849314"==e||"57708314789"==e||"86986621247"==e||"58745159727"==e){(new theme.CartDrawer).open()}else if("62602182872"==e||"57362710572"==e)CartJS.getCart(),$(".block-cart").addClass("active");else if("55820812447"==e||"83096174866"==e||"63791857821"==e||"70963003672"==e||"20157815"==e||"60492578980"==e||"12183765088"==e||"58546946211"==e||"42070737058"==e||"71321583919"==e||"68492624171"==e||"74541891876"==e||"21187677"==e||"74021110038"==e||"58193838255"==e||"25151799349"==e||"72651899165"==e||"52022313149"==e||"64983957725"==e||"69610111257"==e||"61209641060"==e||"87043703105"==e||"69699436842"==e)document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}));else if("2665447536"==e||"51364757670"==e||"45740720296"==e||"66229010609"==e)fetch("/?section_id=cart-drawer").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").getElementById("cart-drawer").innerHTML;$("#cart-drawer").html(t),$('[aria-controls="cart-drawer"]')[0].click(),$(".header__cart-count .count-bubble ").html(cart.item_count).css("opacity",1)}));else if("57824805033"==e||"59504656436"==e||"58112966749"==e||"9989358"==e||"26958037078"==e)o();else if("80856187185"==e||"71256211737"==e)fetch("/cart?section_id=mini-cart").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector(".mini-cart__inner").innerHTML;$(".mini-cart__inner").html(t).addClass("active__drawer")})).catch((e=>{console.error(e)})),o();else if("61094723750"==e||"45034766485"==e)SLIDECART&&(SLIDECART_UPDATE(),SLIDECART_OPEN());else if("10272035"==e){const e=document.querySelector(".cart-drawer"),t=e.parentNode;t.classList.add("menu-opening"),t.setAttribute("open","open"),e.style.visibility="visible",e.style.transform="translate(0)"}else if("1972174947"==e||"55194878152"==e||"49198989466"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}}));else if("64463667449"==e||"63897370681"==e||"81998840121"==e||"70964478228"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.documentElement.dispatchEvent(new CustomEvent("cart:updated",{bubbles:!0,detail:{cart:a}})),document.getElementById("mini-cart").open=!0;else if("81545986363"==e)document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0})),document.dispatchEvent(new CustomEvent("theme:open-cart-drawer",{bubbles:!0}));else if("41346334884"==e||"74448077083"==e||"26562420"==e||"26759856318"==e)document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh")),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"));else if("6873415750"==e)document.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{cart:a}})),document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}));else if("59547517063"==e||"59612954814"==e)(()=>{var e=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents&&fetch(t+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){var n=document.querySelector("cart-drawer.drawer.is-empty");null!==n&&n.classList.remove("is-empty");try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(o){console.error(o)}}))})();else if("61086662810"==e)(()=>{try{var e=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents){var n=e.getSectionsToRender().map((e=>e.id));fetch(t+"cart?sections="+n.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(n){console.error(n)}}))}}catch(o){console.error(o)}})();else if("5827756145"==e){let e=document.getElementById("cart-config");e=JSON.parse(e.innerHTML||"{}"),"undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&(Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},a),Shopify.theme.ajaxCart.showDrawer(e))}else if("73454354741"==e)0!==Object.keys(a).length&&(e=>{const t=document.querySelector("#halo-cart-sidebar .halo-sidebar-wrapper .previewCart-wrapper"),n="is-loading";t.classList.add(n),t.insertAdjacentHTML("afterbegin",'\n <div class="loading-overlay loading-overlay--custom">\n <div class="loading-overlay__spinner">\n <svg aria-hidden="true" focusable="false" role="presentation" class="spinner" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n </div>\n '),fetch(window.routes.root+"/cart?view=ajax_side_cart",{method:"GET",cache:"no-cache"}).then((e=>e.text())).then((e=>{const o=(new DOMParser).parseFromString(e,"text/html");t.innerHTML=o.body.innerHTML,t.classList.remove(n)})).finally((()=>{document.body.querySelector("[data-cart-count]").textContent=cart.item_count,document.dispatchEvent(new CustomEvent("cart-update",{detail:e})),document.getElementById("cart-icon-bubble").click()}))})(a);else if("71830962487"==e)"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(a,!0);else if("81516986679"==e||"1293622"==e||"73143124251"==e)document.documentElement.dispatchEvent(new CustomEvent("apps:product-added-to-cart",{bubbles:!0}));else if("78232846646"==e){const e=await fetch("/?section_id=cart-drawer"),t=await e.text(),n=document.createElement("div");n.innerHTML=t;const o=n.querySelector(".cart-drawer").innerHTML;document.querySelector(".cart-drawer").innerHTML=o,document.querySelector(".cart-drawer").classList.add("cart-drawer--active")}else{if("58273038492"==e&&$("#cart-drawer").toggleClass("active"),"62335516854"==e)(new theme.CartDrawer).open();"59993653290"==e&&$("body").toggleClass("show-cart-summary").hasClass("show-cart-summary"),document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}})),function(e){var t,n;try{var o=e.item_count;if($("[data-cart-item-count]").html(o),$(".header__cart-count").html(o),$(".site-header__cart-count span[data-cart-count]").html(o),$("#CartCount [data-cart-count]").length>0?$("#CartCount [data-cart-count]").html(o):$("#CartCount").length>0&&$("#CartCount").html($("#CartCount").html().replace(/(\d+)/,e.item_count)),$("#CartCount.hide").length>0&&$("#CartCount.hide").removeClass("hide"),$("#site-cart-handle .count-holder .count").length>0&&$("#site-cart-handle .count-holder .count").html($("#site-cart-handle .count-holder .count").html().replace(/(\d+)/,e.item_count)),$("#minicart .count.cart-target").length>0&&$("#minicart .count.cart-target").html($("#minicart .count.cart-target").html().replace(/(\d+)/,e.item_count)),$("#sidebar #meta .count").length>0&&$("#sidebar #meta .count").html($("#sidebar #meta .count").html().replace(/(\d+)/,e.item_count)),$(".site-header__cart .site-header__cart-indicator").length>0&&($(".site-header__cart .site-header__cart-indicator").html($(".site-header__cart .site-header__cart-indicator").html().replace(/(\d+)/,e.item_count)),e.item_count>0&&$(".site-header__cart .site-header__cart-indicator").removeClass("hide")),$(".cart-count").length>0&&$(".cart-count").html($(".cart-count").html().replace(/(\d+)/,e.item_count)),$(".cartCount[data-cart-count]").length>0&&$(".cartCount[data-cart-count]").html($(".cartCount[data-cart-count]").html().replace(/(\d+)/,e.item_count)),$("[data-js-cart-count-desktop]").length>0&&($("[data-js-cart-count-desktop]").html(e.item_count),$("[data-js-cart-count-desktop]").attr("data-js-cart-count-desktop",e.item_count)),$(".cart-item-count-header").length>0){var r=$(".cart-item-count-header").first();!0===r.hasClass("cart-item-count-header--total")?r.find(".money").length&&(r=r.find(".money").first()).html(bndlr.formatPrice(e.items_subtotal_price)):r.html(r.html().replace(/(\d+)/,e.item_count))}if($("#CartCost").length>0&&"undefined"!==typeof theme&&"undefined"!==typeof theme.moneyFormat){var c=utils.formatMoney(e.items_subtotal_price,theme.moneyFormat);$("#CartCost").html(c)}if("function"==typeof refreshCart&&refreshCart(e),"undefined"!==typeof slate&&"undefined"!==typeof slate.cart&&"function"==typeof slate.cart.updateCart&&slate.cart.updateCart(),"undefined"!==typeof ajaxCart&&"function"===typeof ajaxCart.load&&ajaxCart.load(),$(".mega-nav-count.nav-main-cart-amount.count-items").length>0&&($(".mega-nav-count.nav-main-cart-amount.count-items").html($(".mega-nav-count.nav-main-cart-amount.count-items").html().replace(/(\d+)/,e.item_count)),$(".mega-nav-count.nav-main-cart-amount.count-items.hidden").removeClass("hidden")),$("#cart-icon-bubble").length>0){var a='#cart-icon-bubble .cart-count-bubble span[aria-hidden="true"]';$(a).length>0?$(a).html($(a).html().replace(/(\d+)/,e.item_count)):$("#cart-icon-bubble").append('<div class="cart-count-bubble"><span aria-hidden="true">'+e.item_count+"</span></div>")}"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateQuickCart&&Shopify.updateQuickCart(e),"undefined"!==typeof bcActionList&&"function"===typeof bcActionList.atcBuildMiniCartSlideTemplate&&(bcActionList.atcBuildMiniCartSlideTemplate(e),"function"===typeof openMiniCart&&openMiniCart()),$(".custom-cart-eye-txt").length>0&&$(".custom-cart-eye-txt").html($(".custom-cart-eye-txt").html().replace(/(\d+)/,e.item_count)),$(".cart_count").length>0&&$(".cart_count").each((function(t,n){$(n).html($(n).html().replace(/(\d+)/,e.item_count))})),$(".cart-count-bubble [data-cart-count]").length>0&&$(".cart-count-bubble [data-cart-count]").html($(".cart-count-bubble [data-cart-count]").html().replace(/(\d+)/,e.item_count)),$(".cart-count-bubble span.visually-hidden").length>0&&$(".cart-count-bubble span.visually-hidden").html($(".cart-count-bubble span.visually-hidden").html().replace(/(\d+)/,e.item_count)),$(".header-cart-count .cart_count_val").length>0&&($(".header-cart-count .cart_count_val").html(e.item_count),$(".header-cart-count").removeClass("empty_cart_count")),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateCartInfo&&$(".top-cart-holder .cart-target form .cart-info .cart-content").length>0&&Shopify.updateCartInfo(e,".top-cart-holder .cart-target form .cart-info .cart-content");var i=new CustomEvent("wetheme-toggle-right-drawer",{detail:{type:"cart",forceOpen:void 0,params:{cart:e}}});document.documentElement.dispatchEvent(i),"undefined"!==typeof window.vndHlp&&"function"===typeof window.vndHlp.refreshCart&&window.vndHlp.refreshCart(e);try{"function"===typeof window.renderCart&&(window.renderCart(e),e.items.length>0&&$(".mini-cart.is-empty").removeClass("is-empty"))}catch(w){}try{"undefined"!==typeof window.SATCB&&"undefined"!==typeof window.SATCB.Helpers&&"function"===typeof window.SATCB.Helpers.openCartSlider&&window.SATCB.Helpers.openCartSlider()}catch(w){}try{document.dispatchEvent(new CustomEvent("theme:cart:change",{detail:{cart:e,cartCount:e.item_count},bubbles:!0}))}catch(w){}if("undefined"!==typeof window.cartStore&&"function"===typeof window.cartStore.setState&&window.cartStore.setState({justAdded:{},popupActive:!0,item_count:e.item_count,items:e.items,cart:e}),"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(e,!0),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.setCurrentData&&theme.Cart.setCurrentData(e),"undefined"!==typeof window.halo&&"function"===typeof window.halo.updateSidebarCart){window.halo.updateSidebarCart(e);var d=$("[data-cart-sidebar]");d.length>0&&d[0].click()}if("undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},e),"undefined"!==typeof window.theme&&"undefined"!==typeof window.theme.cart&&"function"===typeof window.theme.cart.updateAllHtml)try{window.theme.cart.updateAllHtml(),window.theme.cart.updateTotals(e),document.querySelector(".header--cart-toggle").click()}catch(w){}if("function"===typeof monster_setCartItems)try{monster_setCartItems(e.items)}catch(w){console.error(w)}try{"undefined"!==typeof window.refreshCartContents&&window.refreshCartContents(e)}catch(w){}$(".header-actions [data-header-cart-count]").length>0&&$(".header-actions [data-header-cart-count]").html(e.item_count),window.dispatchEvent(new Event("update_cart")),"undefined"!==typeof clientSpecifics&&"undefined"!==typeof clientSpecifics.update_cart&&clientSpecifics.update_cart.trigger(e)}catch(w){console.log(w)}try{var s=document.querySelector(".minicart__outerbox"),u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==s&&"function"===typeof window.cartContentUpdate&&(sectionsToRender=s.dataset.section,fetch(u+"cart?sections="+sectionsToRender,{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){e.sections=t,window.cartContentUpdate(e,s,sectionsToRender)}))}catch(w){console.error(w)}})))}catch(w){console.error(w)}if("undefined"!==typeof window.SLIDECART_UPDATE)try{window.SLIDECART_UPDATE()}catch(w){console.log(w)}if("undefined"!==typeof window.SLIDECART_OPEN&&setTimeout((function(){try{window.SLIDECART_OPEN()}catch(w){console.log(w)}}),500),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.theme&&"undefined"!==typeof Shopify.theme.jsAjaxCart&&"function"===typeof Shopify.theme.jsAjaxCart.updateView&&Shopify.theme.jsAjaxCart.updateView(),"undefined"!==typeof CartJS&&"function"===typeof CartJS.getCart)try{CartJS.getCart()}catch(w){console.log(w)}try{$(".sp-cart .sp-dropdown-toggle").length&&"undefined"!==typeof Shopify&&"function"===typeof Shopify.getCart&&Shopify.getCart(),$("form.cart-drawer").length>0&&($(".cart-drawer input").first().trigger("blur"),setTimeout((function(){$(".cart-drawer input").first().trigger("input")}),350))}catch(w){console.log(w)}try{var l=document.querySelector("m-cart-drawer");null!==l&&"function"===typeof l.onCartDrawerUpdate&&(l.onCartDrawerUpdate(),"function"===typeof l.open&&l.open())}catch(w){console.log(w)}try{document.dispatchEvent(new CustomEvent("cart:refresh"))}catch(w){}try{document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}catch(w){}if("undefined"!==typeof window.HsCartDrawer&&"function"===typeof window.HsCartDrawer.updateSlideCart&&debounce("hscartdrawer",(function(){try{HsCartDrawer.updateSlideCart()}catch(w){console.log(w)}}),100),"function"===typeof window.HS_SLIDE_CART_UPDATE&&debounce("hscartdrawer2",(function(){try{window.HS_SLIDE_CART_UPDATE()}catch(w){console.log(w)}}),100),"undefined"!==typeof window.HS_SLIDE_CART_OPEN&&"function"===typeof window.HS_SLIDE_CART_OPEN&&debounce("hscartdraweropen",(function(){try{window.HS_SLIDE_CART_OPEN()}catch(w){console.log(w)}}),100),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.updateCart&&theme.Cart.updateCart(),"undefined"!==typeof window.cart&&"function"===typeof window.cart.getCart&&window.cart.getCart(),"function"===typeof window.updateMiniCartContents)try{window.updateMiniCartContents()}catch(w){}if("function"===typeof window.loadEgCartDrawer)try{window.loadEgCartDrawer()}catch(w){}try{document.dispatchEvent(new CustomEvent("cart:build"))}catch(w){}try{document.dispatchEvent(new CustomEvent("obsidian:upsell:refresh")),document.dispatchEvent(new CustomEvent("obsidian:upsell:open"))}catch(w){}var h=document.getElementById("site-cart");if(null!==h)try{h.show()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.updateCartSummaries)try{window.theme.updateCartSummaries()}catch(w){}if("undefined"!==typeof window.CD_REFRESHCART)try{window.CD_REFRESHCART()}catch(w){console.log(w)}if("undefined"!==typeof window.CD_OPENCART&&setTimeout((function(){try{window.CD_OPENCART()}catch(w){console.log(w)}}),500),"function"===typeof window.buildCart)try{window.buildCart()}catch(w){console.log(w)}if("undefined"!==typeof window.PXUTheme&&"undefined"!==typeof window.PXUTheme.jsAjaxCart&&"function"===typeof window.PXUTheme.jsAjaxCart.updateView)try{window.PXUTheme.jsAjaxCart.updateView()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.addedToCartHandler)try{window.theme.addedToCartHandler({})}catch(w){}try{i=new Event("tcustomizer-event-cart-change"),document.dispatchEvent(i)}catch(w){}try{document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0})),setTimeout((function(){document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"))}),500)}catch(w){}try{var p=document.querySelector("cart-notification")||document.querySelector("cart-drawer");u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==p&&"function"===typeof p.renderContents&&fetch(u+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){var t=document.querySelector("cart-drawer.drawer.is-empty");null!==t&&t.classList.remove("is-empty");try{return e.clone().json().then((function(e){try{var t={sections:e};p.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}catch(w){console.error(w)}try{var m=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form");if(u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==m&&"function"===typeof m.renderContents){var f=m.getSectionsToRender().map((e=>e.id));fetch(u+"cart?sections="+f.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};m.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}}catch(w){console.error(w)}try{m=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",null!==m&&"function"===typeof m.renderContents&&(f=m.getSectionsToRender().map((e=>null===e||void 0===e?void 0:e.section)),fetch(u+"cart?sections="+f.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};m.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}})))}catch(w){console.error(w)}null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n||n.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}})),console.log("entered")}(a)}setTimeout(t,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},9821: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}].some((e=>e.width===t&&e.height===n||e.width===n&&e.height===t))}n.d(t,{_:function(){return o}})},1085:function(e,t,n){n.d(t,{F5:function(){return r},Pc:function(){return a},Z4:function(){return i},bo:function(){return d},rq:function(){return s}});var o=n(664);const r=6;function c(){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++)c();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const i=function(e,t,n,r,c){(0,o.Xd)("whatmoreVideoPlayerPool");const a=function(e,t,n){var r=(c=(0,o.Xd)("whatmoreVideoPlayerPool").children,c.length>0?c[0]:null);var c;if(!r)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return r.setAttribute("src",e),r.muted=t,r.play().then((()=>{!n&&r.pause()})).catch((e=>{})),r}(t,n,r);return e.innerHTML="",e.appendChild(a),a},d=async function(){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),t=(0,o.Xd)("whatmoreVideoPlayerPoolInitiated");t||a(r);var n=[];for(let o of e.children){o.muted=!0;var c=o.play().then((e=>(!t&&o.pause(),e)));n.push(c)}await Promise.all(n).then((e=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)})).catch((e=>{console.error("Whatmore :: Error while blessing "+e.message)}))},s=function(e){const t=(0,o.Xd)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},6613:function(e,t,n){n.d(t,{At:function(){return o},MN:function(){return r}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),r=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},2039:function(e,t,n){n.d(t,{Il:function(){return r},Th:function(){return c},ij:function(){return o}});const o=function(e){return"video"===e.event_type},r=function(e){return"image"===e.event_type},c=function(e){return"livestream"===e.event_type}},7300:function(e,t,n){var o=n(9950);function r(){return[window.innerHeight,window.innerWidth]}t.A=function(e){var[t,n]=r();const[c,a]=(0,o.useState)([t>n?"portrait":"landscape",t,n]);return(0,o.useLayoutEffect)((()=>{function e(){var[e,t]=r();a(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)}}),[]),c}},6649:function(e,t,n){var o=n(9950);t.A=function(){let{triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[c,a]=(0,o.useState)(!1),[i,d]=(0,o.useState)(null),s=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const o=new IntersectionObserver(((t,n)=>{t.forEach((t=>{d(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)}))}),{root:t,rootMargin:n,threshold:r});return s.current&&o.observe(s.current),()=>{o.disconnect()}}),[e,t,n,r]),[s,c,i]}},140:function(e,t,n){n.d(t,{$B:function(){return i},A9:function(){return s},Pb:function(){return u},TG:function(){return p},TJ:function(){return h},Zh:function(){return d},lB:function(){return a},tO:function(){return l}});var o,r=n(964);const c=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(e){c&&console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user view count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user view count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating user view count user for event : ",e)}))}function i(e,t){c&&console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating like count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating like count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating like count user for event : ",e)}))}function d(e){c&&console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating share count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating share count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating share count user for event : ",e)}))}function s(e,t){c&&console.debug("updating wa click count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating whatsapp click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating whatsapp click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating whatsapp click count user for event : ",e)}))}function u(e,t){c&&console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product click count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)}))}function l(e,t,n){c&&console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const o={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(r.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then((e=>(c&&console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)}))}function h(e,t){c&&console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product buy now count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)}))}function p(e){const t={event_id:e.event.event_id,cta_id:e.cta.cta_id,increase_by:1};fetch(r.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user cta click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user cta click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating cta click count : ",e)}))}},3330:function(e,t,n){n.d(t,{Si:function(){return p},hr:function(){return h}});var o,r=n(2595),c=n(7732),a=n(1348);const i="Whatmore Video Shopping",d=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},u={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},l={homepage:"Home Page",product_page:"Product Page"};async function h(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(c.Ay.initialize((0,a.xIo)(e)),d&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);r.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),d&&console.debug("Whatmore: initialized GA3")}}async function p(e,t,n){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(r.Ay.event({category:i,action:s.video_view,label:l[t]+":"+u[n]}),d&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(c.Ay.event({category:i,action:s.video_view+":"+l[t]+":"+u[n],value:1,nonInteraction:!1}),d&&console.debug("Whatmore: pushed view event to GA4"))}},7145:function(e,t,n){n.d(t,{B:function(){return u}});var o=n(6641),r=n(1348),c=n(664),a=n(4820);var i=n(6157),d=n(2089),s=n(4533);const u=function(){var e;let{userInteractionType:t="",userInteractionMetadata:n={},widgetSourceDetails:u={},event:l="",productList:h=[],ctaList:p=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const m=(0,c.Xd)("isInDesignMode"),f=(0,c.Xd)("isDemoBrand"),w=(0,c.Xd)("whatmoreShopId"),y="72201044272"==w&&"event-view"==t?null!==(e=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==e?e:{latitude:"",longitude:""}:{};if(n={...n,...y,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,r.rkx)(w)||f||m)return;t!=i.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&t!=i.O.STORIES_WIDGET_VIEW&&t!=i.O.COLLECTION_WIDGET_VIEW&&t!=i.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const v="_whatmore_bulk_events",g={user_id:(0,s.wm)(),session_id:(0,s.zv)(),user_group:"group-a",user_agent:navigator.userAgent,store_id:(0,c.Xd)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,d.Ak)(),event_timestamp:Math.round((new Date).getTime()/1e3)},_=(0,i.l)(t,n),C=function(e,t,n,o){var r;return{landing_location_type:t.landingLocationType,template_type:t.templateType,whatmore_event:{id:e.event_id,eventset_id:null!==(r=e.eventset_id)&&void 0!==r?r:null,cta_list:o.map((e=>e.cta_id)),product_list:n.map((e=>e.product_id))}}}(l,u,h,p),b=(0,c.Xd)("whatmoreLoggingActive"),S={...g,interaction_data:_,data:C},E=JSON.parse(localStorage.getItem(v))||[];if(E.push(S),localStorage.setItem(v,JSON.stringify(E)),b&&(0,o.xv)(S),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),E.length>=10)(0,a.u)(E),localStorage.removeItem(v);else if(E.length>0){let e=setTimeout((()=>{(0,a.u)(E),localStorage.removeItem(v)}),14e3);localStorage.setItem("_whatmore_bulk_timer_id",e)}}},6157:function(e,t,n){n.d(t,{O:function(){return o},l:function(){return r}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",PDP_POPUP_CLOSED:"pdp-popup-closed",VIDEO_PLAYBACK:"video-watched",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed"}),r=function(e,t){return{name:e,metadata:t}}},2979:function(e,t,n){n.d(t,{S:function(){return d}});var o=n(6649),r=n(4737),c=n(9950),a=n(7145),i=n(4414);const d=function(e){var t;const[n,d,s]=(0,o.A)({triggerOnce:!1,threshold:null!==(t=e.threshold)&&void 0!==t?t:1}),{whatmoreWidgetSourceDetails:u}=(0,c.useContext)(r.B);return(0,c.useEffect)((()=>{var t,n,o,r;d&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,a.B)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(n=e.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:u,event:e.event,productList:null!==(o=e.productList)&&void 0!==o?o:[],ctaList:null!==(r=e.ctaList)&&void 0!==r?r:[]})}),[d]),(0,i.jsx)("div",{style:{height:"100%"},ref:n,children:e.children})}}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[461],{852:function(e,t,n){n.d(t,{H:function(){return r}});const o=function(){fetch("/cart.json").then((e=>e.json())).then((e=>{fetch("/cart?view=item").then((e=>e.text())).then((t=>{const n=(new DOMParser).parseFromString(t,"text/html"),o=n.getElementById("CartDrawer"),r=document.getElementById("CartDrawer");o&&r&&(r.innerHTML=o.innerHTML);n.querySelector("#CartDrawer .totals__subtotal-value");const c=document.querySelector("cart-drawer");c&&c.classList.remove("is-empty");const a=document.querySelector("cart-drawer-items");a&&a.classList.remove("is-empty");const i=document.getElementById("cart-icon-bubble");if(i.querySelector(".cart-count-bubble")){i.querySelectorAll('.cart-count-bubble span[aria-hidden="true"]').forEach((t=>{t.textContent=e.item_count}))}else{const t=document.createElement("div");t.className="cart-count-bubble",t.innerHTML=`\n <span aria-hidden="true">${e.item_count}</span>\n <span class="visually-hidden">${e.item_count} items</span>\n `,i.appendChild(t)}i.click();document.getElementById("CartDrawer-Overlay").addEventListener("click",(()=>{const e=document.querySelector("cart-drawer");e&&e.classList.remove("active"),document.body.classList.remove("overflow-hidden")}))}))}))},r=async function(e,t,n,r){let c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"cart-icon";if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){var a=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if("57939755089"==e||"27358003275"==e||"63748341981"==e||"68237558034"==e||"63046287536"==e||"9734029408"==e||"83411075365"==e||"36300750986"==e||"16957273"==e||"9483952"==e||"57265094752"==e||"58538459329"==e||"80266658086"==e||"46784020646"==e||"52982579389"==e||"76291703063"==e||"68546691304"==e||"27951333450"==e&&"cart-icon"==c)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:a,openMiniCart:!0}}));else if("19506115"==e)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==e||"41096085665"==e)refreshCart(a),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==e||"4243849314"==e||"57708314789"==e||"86986621247"==e||"58745159727"==e){(new theme.CartDrawer).open()}else if("62602182872"==e||"57362710572"==e)CartJS.getCart(),$(".block-cart").addClass("active");else if("55820812447"==e||"83096174866"==e||"63791857821"==e||"70963003672"==e||"20157815"==e||"60492578980"==e||"12183765088"==e||"58546946211"==e||"42070737058"==e||"71321583919"==e||"68492624171"==e||"74541891876"==e||"21187677"==e||"74021110038"==e||"58193838255"==e||"25151799349"==e||"72651899165"==e||"52022313149"==e||"64983957725"==e||"69610111257"==e||"61209641060"==e||"87043703105"==e||"69699436842"==e)document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}));else if("2665447536"==e||"51364757670"==e||"45740720296"==e||"66229010609"==e)fetch("/?section_id=cart-drawer").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").getElementById("cart-drawer").innerHTML;$("#cart-drawer").html(t),$('[aria-controls="cart-drawer"]')[0].click(),$(".header__cart-count .count-bubble ").html(cart.item_count).css("opacity",1)}));else if("57824805033"==e||"59504656436"==e||"58112966749"==e||"9989358"==e||"26958037078"==e)o();else if("80856187185"==e||"71256211737"==e)fetch("/cart?section_id=mini-cart").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector(".mini-cart__inner").innerHTML;$(".mini-cart__inner").html(t).addClass("active__drawer")})).catch((e=>{console.error(e)})),o();else if("61094723750"==e||"45034766485"==e)SLIDECART&&(SLIDECART_UPDATE(),SLIDECART_OPEN());else if("10272035"==e){const e=document.querySelector(".cart-drawer"),t=e.parentNode;t.classList.add("menu-opening"),t.setAttribute("open","open"),e.style.visibility="visible",e.style.transform="translate(0)"}else if("1972174947"==e||"55194878152"==e||"49198989466"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}}));else if("64463667449"==e||"63897370681"==e||"81998840121"==e||"70964478228"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.documentElement.dispatchEvent(new CustomEvent("cart:updated",{bubbles:!0,detail:{cart:a}})),document.getElementById("mini-cart").open=!0;else if("81545986363"==e)document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0})),document.dispatchEvent(new CustomEvent("theme:open-cart-drawer",{bubbles:!0}));else if("41346334884"==e||"74448077083"==e||"26562420"==e||"26759856318"==e)document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh")),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"));else if("6873415750"==e)document.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{cart:a}})),document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}));else if("59547517063"==e||"59612954814"==e)(()=>{var e=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents&&fetch(t+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){var n=document.querySelector("cart-drawer.drawer.is-empty");null!==n&&n.classList.remove("is-empty");try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(o){console.error(o)}}))})();else if("61086662810"==e)(()=>{try{var e=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),t=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(t+=Shopify.locale+"/"),null!==e&&"function"===typeof e.renderContents){var n=e.getSectionsToRender().map((e=>e.id));fetch(t+"cart?sections="+n.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){try{var n={sections:t};e.renderContents(n)}catch(o){console.error(o)}}))}catch(n){console.error(n)}}))}}catch(o){console.error(o)}})();else if("5827756145"==e){let e=document.getElementById("cart-config");e=JSON.parse(e.innerHTML||"{}"),"undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&(Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},a),Shopify.theme.ajaxCart.showDrawer(e))}else if("73454354741"==e)0!==Object.keys(a).length&&(e=>{const t=document.querySelector("#halo-cart-sidebar .halo-sidebar-wrapper .previewCart-wrapper"),n="is-loading";t.classList.add(n),t.insertAdjacentHTML("afterbegin",'\n <div class="loading-overlay loading-overlay--custom">\n <div class="loading-overlay__spinner">\n <svg aria-hidden="true" focusable="false" role="presentation" class="spinner" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n </div>\n '),fetch(window.routes.root+"/cart?view=ajax_side_cart",{method:"GET",cache:"no-cache"}).then((e=>e.text())).then((e=>{const o=(new DOMParser).parseFromString(e,"text/html");t.innerHTML=o.body.innerHTML,t.classList.remove(n)})).finally((()=>{document.body.querySelector("[data-cart-count]").textContent=cart.item_count,document.dispatchEvent(new CustomEvent("cart-update",{detail:e})),document.getElementById("cart-icon-bubble").click()}))})(a);else if("71830962487"==e)"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(a,!0);else if("81516986679"==e||"1293622"==e||"73143124251"==e)document.documentElement.dispatchEvent(new CustomEvent("apps:product-added-to-cart",{bubbles:!0}));else if("78232846646"==e){const e=await fetch("/?section_id=cart-drawer"),t=await e.text(),n=document.createElement("div");n.innerHTML=t;const o=n.querySelector(".cart-drawer").innerHTML;document.querySelector(".cart-drawer").innerHTML=o,document.querySelector(".cart-drawer").classList.add("cart-drawer--active")}else{if("58273038492"==e&&$("#cart-drawer").toggleClass("active"),"62335516854"==e)(new theme.CartDrawer).open();"59993653290"==e&&$("body").toggleClass("show-cart-summary").hasClass("show-cart-summary"),document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}})),function(e){var t,n;try{var o=e.item_count;if($("[data-cart-item-count]").html(o),$(".header__cart-count").html(o),$(".site-header__cart-count span[data-cart-count]").html(o),$("#CartCount [data-cart-count]").length>0?$("#CartCount [data-cart-count]").html(o):$("#CartCount").length>0&&$("#CartCount").html($("#CartCount").html().replace(/(\d+)/,e.item_count)),$("#CartCount.hide").length>0&&$("#CartCount.hide").removeClass("hide"),$("#site-cart-handle .count-holder .count").length>0&&$("#site-cart-handle .count-holder .count").html($("#site-cart-handle .count-holder .count").html().replace(/(\d+)/,e.item_count)),$("#minicart .count.cart-target").length>0&&$("#minicart .count.cart-target").html($("#minicart .count.cart-target").html().replace(/(\d+)/,e.item_count)),$("#sidebar #meta .count").length>0&&$("#sidebar #meta .count").html($("#sidebar #meta .count").html().replace(/(\d+)/,e.item_count)),$(".site-header__cart .site-header__cart-indicator").length>0&&($(".site-header__cart .site-header__cart-indicator").html($(".site-header__cart .site-header__cart-indicator").html().replace(/(\d+)/,e.item_count)),e.item_count>0&&$(".site-header__cart .site-header__cart-indicator").removeClass("hide")),$(".cart-count").length>0&&$(".cart-count").html($(".cart-count").html().replace(/(\d+)/,e.item_count)),$(".cartCount[data-cart-count]").length>0&&$(".cartCount[data-cart-count]").html($(".cartCount[data-cart-count]").html().replace(/(\d+)/,e.item_count)),$("[data-js-cart-count-desktop]").length>0&&($("[data-js-cart-count-desktop]").html(e.item_count),$("[data-js-cart-count-desktop]").attr("data-js-cart-count-desktop",e.item_count)),$(".cart-item-count-header").length>0){var r=$(".cart-item-count-header").first();!0===r.hasClass("cart-item-count-header--total")?r.find(".money").length&&(r=r.find(".money").first()).html(bndlr.formatPrice(e.items_subtotal_price)):r.html(r.html().replace(/(\d+)/,e.item_count))}if($("#CartCost").length>0&&"undefined"!==typeof theme&&"undefined"!==typeof theme.moneyFormat){var c=utils.formatMoney(e.items_subtotal_price,theme.moneyFormat);$("#CartCost").html(c)}if("function"==typeof refreshCart&&refreshCart(e),"undefined"!==typeof slate&&"undefined"!==typeof slate.cart&&"function"==typeof slate.cart.updateCart&&slate.cart.updateCart(),"undefined"!==typeof ajaxCart&&"function"===typeof ajaxCart.load&&ajaxCart.load(),$(".mega-nav-count.nav-main-cart-amount.count-items").length>0&&($(".mega-nav-count.nav-main-cart-amount.count-items").html($(".mega-nav-count.nav-main-cart-amount.count-items").html().replace(/(\d+)/,e.item_count)),$(".mega-nav-count.nav-main-cart-amount.count-items.hidden").removeClass("hidden")),$("#cart-icon-bubble").length>0){var a='#cart-icon-bubble .cart-count-bubble span[aria-hidden="true"]';$(a).length>0?$(a).html($(a).html().replace(/(\d+)/,e.item_count)):$("#cart-icon-bubble").append('<div class="cart-count-bubble"><span aria-hidden="true">'+e.item_count+"</span></div>")}"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateQuickCart&&Shopify.updateQuickCart(e),"undefined"!==typeof bcActionList&&"function"===typeof bcActionList.atcBuildMiniCartSlideTemplate&&(bcActionList.atcBuildMiniCartSlideTemplate(e),"function"===typeof openMiniCart&&openMiniCart()),$(".custom-cart-eye-txt").length>0&&$(".custom-cart-eye-txt").html($(".custom-cart-eye-txt").html().replace(/(\d+)/,e.item_count)),$(".cart_count").length>0&&$(".cart_count").each((function(t,n){$(n).html($(n).html().replace(/(\d+)/,e.item_count))})),$(".cart-count-bubble [data-cart-count]").length>0&&$(".cart-count-bubble [data-cart-count]").html($(".cart-count-bubble [data-cart-count]").html().replace(/(\d+)/,e.item_count)),$(".cart-count-bubble span.visually-hidden").length>0&&$(".cart-count-bubble span.visually-hidden").html($(".cart-count-bubble span.visually-hidden").html().replace(/(\d+)/,e.item_count)),$(".header-cart-count .cart_count_val").length>0&&($(".header-cart-count .cart_count_val").html(e.item_count),$(".header-cart-count").removeClass("empty_cart_count")),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateCartInfo&&$(".top-cart-holder .cart-target form .cart-info .cart-content").length>0&&Shopify.updateCartInfo(e,".top-cart-holder .cart-target form .cart-info .cart-content");var i=new CustomEvent("wetheme-toggle-right-drawer",{detail:{type:"cart",forceOpen:void 0,params:{cart:e}}});document.documentElement.dispatchEvent(i),"undefined"!==typeof window.vndHlp&&"function"===typeof window.vndHlp.refreshCart&&window.vndHlp.refreshCart(e);try{"function"===typeof window.renderCart&&(window.renderCart(e),e.items.length>0&&$(".mini-cart.is-empty").removeClass("is-empty"))}catch(w){}try{"undefined"!==typeof window.SATCB&&"undefined"!==typeof window.SATCB.Helpers&&"function"===typeof window.SATCB.Helpers.openCartSlider&&window.SATCB.Helpers.openCartSlider()}catch(w){}try{document.dispatchEvent(new CustomEvent("theme:cart:change",{detail:{cart:e,cartCount:e.item_count},bubbles:!0}))}catch(w){}if("undefined"!==typeof window.cartStore&&"function"===typeof window.cartStore.setState&&window.cartStore.setState({justAdded:{},popupActive:!0,item_count:e.item_count,items:e.items,cart:e}),"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(e,!0),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.setCurrentData&&theme.Cart.setCurrentData(e),"undefined"!==typeof window.halo&&"function"===typeof window.halo.updateSidebarCart){window.halo.updateSidebarCart(e);var d=$("[data-cart-sidebar]");d.length>0&&d[0].click()}if("undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},e),"undefined"!==typeof window.theme&&"undefined"!==typeof window.theme.cart&&"function"===typeof window.theme.cart.updateAllHtml)try{window.theme.cart.updateAllHtml(),window.theme.cart.updateTotals(e),document.querySelector(".header--cart-toggle").click()}catch(w){}if("function"===typeof monster_setCartItems)try{monster_setCartItems(e.items)}catch(w){console.error(w)}try{"undefined"!==typeof window.refreshCartContents&&window.refreshCartContents(e)}catch(w){}$(".header-actions [data-header-cart-count]").length>0&&$(".header-actions [data-header-cart-count]").html(e.item_count),window.dispatchEvent(new Event("update_cart")),"undefined"!==typeof clientSpecifics&&"undefined"!==typeof clientSpecifics.update_cart&&clientSpecifics.update_cart.trigger(e)}catch(w){console.log(w)}try{var s=document.querySelector(".minicart__outerbox"),u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==s&&"function"===typeof window.cartContentUpdate&&(sectionsToRender=s.dataset.section,fetch(u+"cart?sections="+sectionsToRender,{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){e.sections=t,window.cartContentUpdate(e,s,sectionsToRender)}))}catch(w){console.error(w)}})))}catch(w){console.error(w)}if("undefined"!==typeof window.SLIDECART_UPDATE)try{window.SLIDECART_UPDATE()}catch(w){console.log(w)}if("undefined"!==typeof window.SLIDECART_OPEN&&setTimeout((function(){try{window.SLIDECART_OPEN()}catch(w){console.log(w)}}),500),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.theme&&"undefined"!==typeof Shopify.theme.jsAjaxCart&&"function"===typeof Shopify.theme.jsAjaxCart.updateView&&Shopify.theme.jsAjaxCart.updateView(),"undefined"!==typeof CartJS&&"function"===typeof CartJS.getCart)try{CartJS.getCart()}catch(w){console.log(w)}try{$(".sp-cart .sp-dropdown-toggle").length&&"undefined"!==typeof Shopify&&"function"===typeof Shopify.getCart&&Shopify.getCart(),$("form.cart-drawer").length>0&&($(".cart-drawer input").first().trigger("blur"),setTimeout((function(){$(".cart-drawer input").first().trigger("input")}),350))}catch(w){console.log(w)}try{var l=document.querySelector("m-cart-drawer");null!==l&&"function"===typeof l.onCartDrawerUpdate&&(l.onCartDrawerUpdate(),"function"===typeof l.open&&l.open())}catch(w){console.log(w)}try{document.dispatchEvent(new CustomEvent("cart:refresh"))}catch(w){}try{document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}catch(w){}if("undefined"!==typeof window.HsCartDrawer&&"function"===typeof window.HsCartDrawer.updateSlideCart&&debounce("hscartdrawer",(function(){try{HsCartDrawer.updateSlideCart()}catch(w){console.log(w)}}),100),"function"===typeof window.HS_SLIDE_CART_UPDATE&&debounce("hscartdrawer2",(function(){try{window.HS_SLIDE_CART_UPDATE()}catch(w){console.log(w)}}),100),"undefined"!==typeof window.HS_SLIDE_CART_OPEN&&"function"===typeof window.HS_SLIDE_CART_OPEN&&debounce("hscartdraweropen",(function(){try{window.HS_SLIDE_CART_OPEN()}catch(w){console.log(w)}}),100),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.updateCart&&theme.Cart.updateCart(),"undefined"!==typeof window.cart&&"function"===typeof window.cart.getCart&&window.cart.getCart(),"function"===typeof window.updateMiniCartContents)try{window.updateMiniCartContents()}catch(w){}if("function"===typeof window.loadEgCartDrawer)try{window.loadEgCartDrawer()}catch(w){}try{document.dispatchEvent(new CustomEvent("cart:build"))}catch(w){}try{document.dispatchEvent(new CustomEvent("obsidian:upsell:refresh")),document.dispatchEvent(new CustomEvent("obsidian:upsell:open"))}catch(w){}var h=document.getElementById("site-cart");if(null!==h)try{h.show()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.updateCartSummaries)try{window.theme.updateCartSummaries()}catch(w){}if("undefined"!==typeof window.CD_REFRESHCART)try{window.CD_REFRESHCART()}catch(w){console.log(w)}if("undefined"!==typeof window.CD_OPENCART&&setTimeout((function(){try{window.CD_OPENCART()}catch(w){console.log(w)}}),500),"function"===typeof window.buildCart)try{window.buildCart()}catch(w){console.log(w)}if("undefined"!==typeof window.PXUTheme&&"undefined"!==typeof window.PXUTheme.jsAjaxCart&&"function"===typeof window.PXUTheme.jsAjaxCart.updateView)try{window.PXUTheme.jsAjaxCart.updateView()}catch(w){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.addedToCartHandler)try{window.theme.addedToCartHandler({})}catch(w){}try{i=new Event("tcustomizer-event-cart-change"),document.dispatchEvent(i)}catch(w){}try{document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0})),setTimeout((function(){document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"))}),500)}catch(w){}try{var p=document.querySelector("cart-notification")||document.querySelector("cart-drawer");u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==p&&"function"===typeof p.renderContents&&fetch(u+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){var t=document.querySelector("cart-drawer.drawer.is-empty");null!==t&&t.classList.remove("is-empty");try{return e.clone().json().then((function(e){try{var t={sections:e};p.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}catch(w){console.error(w)}try{var m=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form");if(u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(u+=Shopify.locale+"/"),null!==m&&"function"===typeof m.renderContents){var f=m.getSectionsToRender().map((e=>e.id));fetch(u+"cart?sections="+f.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};m.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}}))}}catch(w){console.error(w)}try{m=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),u=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",null!==m&&"function"===typeof m.renderContents&&(f=m.getSectionsToRender().map((e=>null===e||void 0===e?void 0:e.section)),fetch(u+"cart?sections="+f.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var t={sections:e};m.renderContents(t)}catch(w){console.error(w)}}))}catch(w){console.error(w)}})))}catch(w){console.error(w)}null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n||n.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}})),console.log("entered")}(a)}setTimeout(t,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},9821: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}].some((e=>e.width===t&&e.height===n||e.width===n&&e.height===t))}n.d(t,{_:function(){return o}})},1085:function(e,t,n){n.d(t,{F5:function(){return r},Pc:function(){return a},Z4:function(){return i},bo:function(){return d},rq:function(){return s}});var o=n(664);const r=6;function c(){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++)c();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const i=function(e,t,n,r,c){(0,o.Xd)("whatmoreVideoPlayerPool");const a=function(e,t,n){var r=(c=(0,o.Xd)("whatmoreVideoPlayerPool").children,c.length>0?c[0]:null);var c;if(!r)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return r.setAttribute("src",e),r.muted=t,r.play().then((()=>{!n&&r.pause()})).catch((e=>{})),r}(t,n,r);return e.innerHTML="",e.appendChild(a),a},d=async function(){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),t=(0,o.Xd)("whatmoreVideoPlayerPoolInitiated");t||a(r);var n=[];for(let o of e.children){o.muted=!0;var c=o.play().then((e=>(!t&&o.pause(),e)));n.push(c)}await Promise.all(n).then((e=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)})).catch((e=>{console.error("Whatmore :: Error while blessing "+e.message)}))},s=function(e){const t=(0,o.Xd)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},6613:function(e,t,n){n.d(t,{At:function(){return o},MN:function(){return r}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),r=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},2039:function(e,t,n){n.d(t,{Il:function(){return r},Th:function(){return c},ij:function(){return o}});const o=function(e){return"video"===e.event_type},r=function(e){return"image"===e.event_type},c=function(e){return"livestream"===e.event_type}},7300:function(e,t,n){var o=n(9950);function r(){return[window.innerHeight,window.innerWidth]}t.A=function(e){var[t,n]=r();const[c,a]=(0,o.useState)([t>n?"portrait":"landscape",t,n]);return(0,o.useLayoutEffect)((()=>{function e(){var[e,t]=r();a(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)}}),[]),c}},6649:function(e,t,n){var o=n(9950);t.A=function(){let{triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[c,a]=(0,o.useState)(!1),[i,d]=(0,o.useState)(null),s=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const o=new IntersectionObserver(((t,n)=>{t.forEach((t=>{d(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)}))}),{root:t,rootMargin:n,threshold:r});return s.current&&o.observe(s.current),()=>{o.disconnect()}}),[e,t,n,r]),[s,c,i]}},140:function(e,t,n){n.d(t,{$B:function(){return i},A9:function(){return s},Pb:function(){return u},TG:function(){return p},TJ:function(){return h},Zh:function(){return d},lB:function(){return a},tO:function(){return l}});var o,r=n(964);const c=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(e){c&&console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user view count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user view count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating user view count user for event : ",e)}))}function i(e,t){c&&console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating like count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating like count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating like count user for event : ",e)}))}function d(e){c&&console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(r.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating share count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating share count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating share count user for event : ",e)}))}function s(e,t){c&&console.debug("updating wa click count for event.");const n={event_id:e.event_id,increase_by:t};fetch(r.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating whatsapp click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating whatsapp click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating whatsapp click count user for event : ",e)}))}function u(e,t){c&&console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product click count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)}))}function l(e,t,n){c&&console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const o={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(r.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then((e=>(c&&console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)}))}function h(e,t){c&&console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(r.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(c&&console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user event-product buy now count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)}))}function p(e){const t={event_id:e.event.event_id,cta_id:e.cta.cta_id,increase_by:1};fetch(r.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(c&&console.debug("updating user cta click count response : HTTP "+e.status),e.json()))).then((e=>{c&&console.debug("updating user cta click count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating cta click count : ",e)}))}},3330:function(e,t,n){n.d(t,{Si:function(){return p},hr:function(){return h}});var o,r=n(2595),c=n(7732),a=n(1348);const i="Whatmore Video Shopping",d=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},u={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},l={homepage:"Home Page",product_page:"Product Page"};async function h(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(c.Ay.initialize((0,a.xIo)(e)),d&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);r.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),d&&console.debug("Whatmore: initialized GA3")}}async function p(e,t,n){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(r.Ay.event({category:i,action:s.video_view,label:l[t]+":"+u[n]}),d&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(c.Ay.event({category:i,action:s.video_view+":"+l[t]+":"+u[n],value:1,nonInteraction:!1}),d&&console.debug("Whatmore: pushed view event to GA4"))}},7145:function(e,t,n){n.d(t,{B:function(){return u}});var o=n(6641),r=n(1348),c=n(664),a=n(4820);var i=n(6157),d=n(2089),s=n(4533);const u=function(){var e;let{userInteractionType:t="",userInteractionMetadata:n={},widgetSourceDetails:u={},event:l="",productList:h=[],ctaList:p=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const m=(0,c.Xd)("isInDesignMode"),f=(0,c.Xd)("isDemoBrand"),w=(0,c.Xd)("whatmoreShopId"),y="72201044272"==w&&"event-view"==t?null!==(e=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==e?e:{latitude:"",longitude:""}:{};if(n={...n,...y,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,r.rkx)(w)||f||m)return;t!=i.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&t!=i.O.STORIES_WIDGET_VIEW&&t!=i.O.COLLECTION_WIDGET_VIEW&&t!=i.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const v="_whatmore_bulk_events",g={user_id:(0,s.wm)(),session_id:(0,s.zv)(),user_group:"group-a",user_agent:navigator.userAgent,store_id:(0,c.Xd)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,d.Ak)(),event_timestamp:Math.round((new Date).getTime()/1e3)},_=(0,i.l)(t,n),C=function(e,t,n,o){var r;return{landing_location_type:t.landingLocationType,template_type:t.templateType,whatmore_event:{id:e.event_id,eventset_id:null!==(r=e.eventset_id)&&void 0!==r?r:null,cta_list:o.map((e=>e.cta_id)),product_list:n.map((e=>e.product_id))}}}(l,u,h,p),b=(0,c.Xd)("whatmoreLoggingActive"),S={...g,interaction_data:_,data:C},E=JSON.parse(localStorage.getItem(v))||[];if(E.push(S),localStorage.setItem(v,JSON.stringify(E)),b&&(0,o.xv)(S),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),E.length>=10)(0,a.u)(E),localStorage.removeItem(v);else if(E.length>0){let e=setTimeout((()=>{(0,a.u)(E),localStorage.removeItem(v)}),14e3);localStorage.setItem("_whatmore_bulk_timer_id",e)}}},6157:function(e,t,n){n.d(t,{O:function(){return o},l:function(){return r}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",PDP_POPUP_CLOSED:"pdp-popup-closed",VIDEO_PLAYBACK:"video-watched",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed"}),r=function(e,t){return{name:e,metadata:t}}},2979:function(e,t,n){n.d(t,{S:function(){return d}});var o=n(6649),r=n(4737),c=n(9950),a=n(7145),i=n(4414);const d=function(e){var t;const[n,d,s]=(0,o.A)({triggerOnce:!1,threshold:null!==(t=e.threshold)&&void 0!==t?t:1}),{whatmoreWidgetSourceDetails:u}=(0,c.useContext)(r.B);return(0,c.useEffect)((()=>{var t,n,o,r;d&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,a.B)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(n=e.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:u,event:e.event,productList:null!==(o=e.productList)&&void 0!==o?o:[],ctaList:null!==(r=e.ctaList)&&void 0!==r?r:[]})}),[d]),(0,i.jsx)("div",{style:{height:"100%"},ref:n,children:e.children})}}}]);