whatmore-react-assets 1.0.1913 → 1.0.1915

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/static/js/4071.e568224e.chunk.js +1 -0
  3. package/static/js/hls-light.ddbd74e5.chunk.js +1 -0
  4. package/static/js/wht-neo-atc.897316fe.chunk.js +1 -0
  5. package/static/js/wht-neo-banner.af43a683.chunk.js +1 -0
  6. package/static/js/wht-neo-buying-guide.6dd94df2.chunk.js +1 -0
  7. package/static/js/wht-neo-floating.1911d487.chunk.js +1 -0
  8. package/static/js/wht-neo-link.e568224e.chunk.js +1 -0
  9. package/static/js/wht-neo-media.7149c427.chunk.js +1 -0
  10. package/static/js/wht-neo-shopper.1f6860c4.chunk.js +1 -0
  11. package/static/js/wht-neo-stories.bdcc7612.chunk.js +1 -0
  12. package/static/js/wht-neo-video-answers.3195f0d6.chunk.js +1 -0
  13. package/static/js/wht-neo.88ca60d8.chunk.js +1 -0
  14. package/static/js/wht-skin-buying-guide-b.6749c3b8.chunk.js +1 -0
  15. package/static/js/wht-skin-buying-guide-c.158ad3e6.chunk.js +1 -0
  16. package/static/js/wht-skin-buying-guide-d.bb919d40.chunk.js +1 -0
  17. package/static/js/wht-skin-buying-guide-e.f1566ca2.chunk.js +1 -0
  18. package/whatmore.js +2 -2
  19. package/static/js/4071.a337526d.chunk.js +0 -1
  20. package/static/js/hls-light.a58e7660.chunk.js +0 -1
  21. package/static/js/wht-neo-atc.e93808d9.chunk.js +0 -1
  22. package/static/js/wht-neo-banner.f0c541f6.chunk.js +0 -1
  23. package/static/js/wht-neo-buying-guide.ec2f121e.chunk.js +0 -1
  24. package/static/js/wht-neo-floating.cd6c92b2.chunk.js +0 -1
  25. package/static/js/wht-neo-link.a337526d.chunk.js +0 -1
  26. package/static/js/wht-neo-media.456f8310.chunk.js +0 -1
  27. package/static/js/wht-neo-shopper.1808f5d9.chunk.js +0 -1
  28. package/static/js/wht-neo-stories.1ffb83c6.chunk.js +0 -1
  29. package/static/js/wht-neo-video-answers.154c6ab4.chunk.js +0 -1
  30. package/static/js/wht-neo.e60cd638.chunk.js +0 -1
  31. package/static/js/wht-skin-buying-guide-b.1beb074a.chunk.js +0 -1
  32. package/static/js/wht-skin-buying-guide-c.517c6519.chunk.js +0 -1
  33. package/static/js/wht-skin-buying-guide-d.9eebaf88.chunk.js +0 -1
  34. package/static/js/wht-skin-buying-guide-e.c76ca19d.chunk.js +0 -1
  35. package/static/js/wht-skin-buying-guide-f.d93f8ee9.chunk.js +0 -1
  36. package/static/js/wht-skin-buying-guide-g.51ea5f9f.chunk.js +0 -1
  37. package/static/js/wht-skin-buying-guide-h.a1d4d8bf.chunk.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5866],{1518:function(t,e,o){o.r(e),o.d(e,{fireNeoAtcClick:function(){return n.fireNeoAtcClick},fireNeoBuyNowMetric:function(){return n.fireNeoBuyNowMetric},fireNeoOutsideAtcFunnel:function(){return n.fireNeoOutsideAtcFunnel},fireNeoProductClick:function(){return n.fireNeoProductClick},neoAddAllToCart:function(){return l},neoAddToCart:function(){return u}});var n=o(3297),r=o(5118),i=o(4563),a=o(5443),c=o(2567);function d(t){return(0,a.hG)(t,"brand_metadata->domain_context")}async function s(t,e,o){const{product:d,event:s,customizations:u,widget:l,userType:p,closeClickComponent:h,onState:m}=t,f=(0,c.Ry)(),y=(0,r.getVariantIdFromSelectedOption)(o,e);if(!y)return m&&m("init"),{status:"noop"};m&&m("atcApiCallInProgress");try{const t="55586586685"===f&&"function"===typeof h;await(0,i.initiateNeoCartSliderEvent)(f,t?h:()=>{},t?400:100,window.location.hostname,y,d.client_product_id,l,s&&s.location,p,d.product_link),(0,n.fireNeoAtcMetric)(s,d,1),(0,a.hG)(u,"product_config->navigate_to_cart_page")&&setTimeout(()=>{window.location.href=`${window.Shopify&&window.Shopify.routes&&window.Shopify.routes.root||"/"}cart`},500);const e=o.filter(t=>t&&"Default Title"!==t).join(" \xb7 ");return m&&m("added",e),{status:"added",variantId:y,variantLabel:e}}catch(w){return m&&m("errored"),console.error("Whatmore :: neo ATC add failed",w),{status:"errored"}}}async function u(t){const{product:e,event:o,customizations:n,mode:i="direct",selectedOptions:a,variants:u,onState:l}=t;if(!e||!o)return{status:"noop"};const p=(0,c.Ry)();if(a&&u)return s(t,u,a);let h;l&&l("productVariantDetailsApiCallInProgress");try{h=await(0,r.productDetailsDetailed)(e,d(n),p)}catch(y){return l&&l("errored"),{status:"errored"}}const m=h&&h.variants||[],f=(0,r.getVariantOptions)(h);if((0,r.isSingleVariantProduct)(f)||"direct"===i){if(!(0,r.atleastOneVariantAvailableInStock)(m))return l&&l("errored"),{status:"errored"};return s(t,m,[(0,r.getFirstAvailableOption)(f[0]),(0,r.getFirstAvailableOption)(f[1]),(0,r.getFirstAvailableOption)(f[2])])}return l&&l("awaitingVariantSelection"),{status:"needs_selection",variantOptions:f,variants:m}}async function l(t){const{products:e,event:o,customizations:a,widget:s,userType:u,onState:l}=t;if(!e||0===e.length||!o)return{status:"noop",added:0};const p=(0,c.Ry)();l&&l("productVariantDetailsApiCallInProgress");const h=(await Promise.all(e.map(async t=>{try{const e=await(0,r.productDetailsDetailed)(t,d(a),p),o=e&&e.variants||[],n=(0,r.getVariantOptions)(e);if(!(0,r.isSingleVariantProduct)(n))return null;if(!(0,r.atleastOneVariantAvailableInStock)(o))return null;const i=(0,r.getVariantIdFromSelectedOption)([(0,r.getFirstAvailableOption)(n[0]),(0,r.getFirstAvailableOption)(n[1]),(0,r.getFirstAvailableOption)(n[2])],o);return i?{product:t,variantId:i}:null}catch(e){return null}}))).filter(Boolean);if(0===h.length)return l&&l("init"),{status:"noop",added:0};l&&l("atcApiCallInProgress");try{const t=h.slice(0,-1),e=h[h.length-1];if(t.length){if(!await(0,i.addVariantsBatch)(t.map(t=>t.variantId),1))for(const{product:e,variantId:n}of t)await(0,i.initiateNeoCartSliderEvent)(p,()=>{},100,window.location.hostname,n,e.client_product_id,s,o&&o.location,u,e.product_link)}return await(0,i.initiateNeoCartSliderEvent)(p,()=>{},100,window.location.hostname,e.variantId,e.product.client_product_id,s,o&&o.location,u,e.product.product_link),h.forEach(({product:t})=>(0,n.fireNeoAtcMetric)(o,t,1)),l&&l("added"),{status:"added",added:h.length}}catch(m){return l&&l("errored"),console.error("Whatmore :: neo bulk ATC failed",m),{status:"errored",added:0}}}},3297:function(t,e,o){o.r(e),o.d(e,{fireNeoAtcClick:function(){return h},fireNeoAtcMetric:function(){return w},fireNeoBuyNowMetric:function(){return y},fireNeoOutsideAtcFunnel:function(){return m},fireNeoProductClick:function(){return f}});var n=o(6694),r=o(9383),i=o(5443),a=o(2567),c=o(1637),d=o(7156);const s=["56352899156"];function u(t){if(t)return t.startsWith("index")?"home":t.startsWith("product")?"product_page":t.startsWith("collection")||t.startsWith("page")?"collection_page":void 0}const l={[d.O.EVENT_VIEW]:{gate:"meta_pixel_events->video_click_event",action:"whatmore_video_click_event",custom:"video_clicked"},[d.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{gate:"meta_pixel_events->video_product_tile_click_event",action:"whatmore_product_tile_click_event",custom:"video_product_tile_clicked"}};function p(t,e,o,n,r){const c=l[t];if(c){if("function"===typeof fbq){var d;const t=!!(0,i.hG)(n,c.gate),r=null===o||void 0===o||null===(d=o.meta_actions)||void 0===d?void 0:d[c.custom];if(t||r){const t={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link};fbq("trackCustom",c.action,t),r&&setTimeout(()=>{r.forEach(e=>fbq("trackCustom",e,t))},500)}}var p,h,m;if(s.includes((0,a.Ry)())&&"object"===typeof window.dataLayer)window.dataLayer.push({event:"video_interaction",page_type:null!==(p=u(null===r||void 0===r?void 0:r.landingLocationType))&&void 0!==p?p:"NA",selection_type:c.action,video_name:null!==(h=null===o||void 0===o?void 0:o.event_id)&&void 0!==h?h:"NA",video_percentage:"NA",product_name:null!==(m=null===e||void 0===e?void 0:e.title)&&void 0!==m?m:"NA"})}}function h({event:t,productList:e,ctaList:o=[],customizations:r,widgetSourceDetails:c,interactionType:l}){var p;if(!t||!e||0===e.length)return;const h=(0,a.Ry)();(0,n.trackWhatmoreAnalyticsEvent)({userInteractionType:l||d.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:c,event:t,productList:e,ctaList:o}),function(t,e,o){var n;if("function"!==typeof fbq)return;const r=!!(0,i.hG)(o,"meta_pixel_events->video_atc_event"),a=null===e||void 0===e||null===(n=e.meta_actions)||void 0===n?void 0:n.video_atc_clicked;if(!r&&!a)return;const c={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link};fbq("trackCustom","whatmore_video_atc_event",c),a&&setTimeout(()=>{a.forEach(t=>fbq("trackCustom",t,c))},500)}(null!==(p=e[1])&&void 0!==p?p:e[0],t,r),function(t,e,o,n){var r,i,a,c,d,l;s.includes(t)&&"object"===typeof window.dataLayer&&window.dataLayer.push({event:"video_interaction",page_type:null!==(r=u(null===e||void 0===e?void 0:e.landingLocationType))&&void 0!==r?r:"NA",selection_type:"whatmore_video_atc_event",video_name:null!==(i=null===o||void 0===o?void 0:o.event_id)&&void 0!==i?i:"NA",video_percentage:"NA",product_name:null!==(a=null!==(c=null===n||void 0===n||null===(d=n[1])||void 0===d?void 0:d.title)&&void 0!==c?c:null===n||void 0===n||null===(l=n[0])||void 0===l?void 0:l.title)&&void 0!==a?a:"NA"})}(h,c,t,e)}function m({event:t,product:e,customizations:o,widgetSourceDetails:i}){var a,c;if(!t)return;(0,r.increaseViewCount)(t);const s=e?[e]:null!==(a=t.products)&&void 0!==a?a:[];(0,n.trackWhatmoreAnalyticsEvent)({userInteractionType:d.O.EVENT_VIEW,widgetSourceDetails:i,event:t,productList:s,ctaList:t.cta}),p(d.O.EVENT_VIEW,null!==(c=s[1])&&void 0!==c?c:s[0],t,o,i),(0,n.trackWhatmoreAnalyticsEvent)({userInteractionType:d.O.PRODUCT_CTA_VIEW,widgetSourceDetails:i,event:t,productList:s,ctaList:t.cta})}function f({event:t,product:e,kind:o,customizations:r,widgetSourceDetails:i}){if(!t||!e)return;const a="thumbnail"===o?d.O.VIDEO_TILE_PRODUCT_THUMBNAIL_CLICKED:d.O.PRODUCT_TILE_SHOPNOW_CLICKED;(0,n.trackWhatmoreAnalyticsEvent)({userInteractionType:a,widgetSourceDetails:i,event:t,productList:[e],ctaList:t.cta}),p(a,e,t,r,i)}function y(t,e){t&&e&&((0,a.U)()||(0,a.Ry)()===c.YZ||(0,r.increaseEventProductBuyNowCount)(t,e))}function w(t,e,o=1){t&&e&&((0,a.U)()||(0,a.Ry)()===c.YZ||(0,r.increaseEventProductAddToCartCount)(t,e,o))}},4563:function(t,e,o){o.r(e),o.d(e,{addVariantsBatch:function(){return s},getCartDetailsShopifyAsync:function(){return c},initiateNeoCartSliderEvent:function(){return f},openNeoCartDrawer:function(){return m},removeOneFromNeoCart:function(){return l},updateCartLineItemPropertiesDirect:function(){return d}});var n=o(5566),r=o(6080),i=o(2567),a=o(5443);async function c(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function d(t,e,o,c,d="default",s,u,l,p){const h=(0,i.Ry)(),m=u?(0,n.wm)()+("72201044272"==h?`#${c}#${d}#${s?"olduser":"newuser"}:direct`:`#${c}:direct`):p?"_wt_vs":l?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==h||"64157352183"==h||"80856187185"==h||"86486974743"==h||"62758289602"==h||"65972830359"==h||"75310563627"==h||"86968402213"==h||(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot"))return;let f={id:t,quantity:e,properties:{...m?{[r.B_]:m}:{},...o}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties direct.",t)})}async function s(t,e=1){if(!t||0===t.length)return!0;try{return(await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t.map(t=>({id:t,quantity:e}))})})).ok}catch(o){return!1}}async function u(t,e,o){const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return n.ok?(setTimeout(()=>{o(t)},500),setTimeout(()=>{var t,e;window.location.href=`${(null===(t=window.Shopify)||void 0===t||null===(e=t.routes)||void 0===e?void 0:e.root)||"/"}cart`},1e3),!0):(console.error("[ATC Fallback] Add to cart failed:",n.status),!1)}async function l(t){if(!t)return null;try{const o=await c().then(t=>t.ok?t.json():null),n=o&&Array.isArray(o.items)&&o.items.find(e=>String(e.id)===String(t));if(!n)return null;const r=Math.max(0,(n.quantity||0)-1);if(!(await fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:n.key,quantity:r})})).ok)return null;try{window.Rebuy&&window.Rebuy.Cart&&window.Rebuy.Cart.fetchCart()}catch(e){}return document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),r}catch(o){return console.error("[Whatmore] neo cart decrement failed:",o),null}}function p(){const t=document.querySelectorAll("[data-minicart-input]");for(let e=0;e<t.length;e++){const o=t[e],n=o.id&&document.querySelector('label.minicart__label[for="'+o.id+'"]');if(n&&n.clientHeight>0&&n.clientWidth>0)return o.checked=!0,!0}return!!t.length&&(t[0].checked=!0,!0)}function h(t){const e=window.gsCartDrawerCore||window.gsCartDrawerManager;return!!e&&(t&&t.length?(window.dispatchEvent(new CustomEvent("cart_changed_gs",{detail:{added:t}})),!0):"function"===typeof e.open&&(e.open(),!0))}async function m(t){const e=window.Rebuy&&window.Rebuy.SmartCart;if(e&&"function"===typeof e.show&&("ready"===e.status||e.hasBoundEvents||document.querySelector("#rebuy-cart"))){try{window.Rebuy.Cart&&window.Rebuy.Cart.fetchCart()}catch(n){}return e.show(),!0}if(h(null))return!0;const o=["[data-cart-open]",'[data-drawer-open="cart"]','[data-action="open-drawer"][data-drawer="cart"]','[data-action="open-drawer"][data-drawer-id="sidebar-cart"]',".js-drawer-open-cart",'a[href$="/cart"]:not([disable-rebuy]):not(.disable-rebuy)'];for(let r=0;r<o.length;r++){const t=document.querySelectorAll(o[r]);for(let e=0;e<t.length;e++)if(!t[e].closest('#CartDrawer, #sidebar-cart, cart-drawer, .gs_cart_drawer, .minicart__holder, .Drawer, .cart-drawer, [data-section-type="cart"]'))return t[e].click(),!0}return!!p()}async function f(t,e,o,s,l="",m="",f="",y="",w="",v="",T=null){(0,i.yI)();const b=t=>{c().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t);if(!o)return;d(o.key,o.quantity,o.properties,f,y,w,!0,!0,!0)}).catch(t=>{console.error("[Whatmore] updateATCLineItemProperties error:",t)})};if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("38678331531"===t){const q="In stock \u2014 ship now";async function k(t,e=1){const o=[...document.querySelectorAll('form[action*="/cart/add"]')].find(e=>{var o;return String(null===(o=e.querySelector('[name="id"]'))||void 0===o?void 0:o.value)===String(t)});if(o)return o.requestSubmit(o.querySelector('[type="submit"]')),setTimeout(()=>b(t),1500),!0;const n=await fetch("/cart/add.js?app=upez",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:t,quantity:e,properties:{Fulfilment:q}}]}),_isAddon:!0});if(!n.ok)return console.error("[ATC] Add to cart failed:",n.status),!1;const r=document.querySelector("[data-upez-cart]");return r?r.click():window.location.href="/cart",setTimeout(()=>b(t),500),!0}return void k(l,1).then(()=>{setTimeout(e,o)}).catch(t=>{console.error("[Whatmore] ATC 38678331531 error:",t)})}if("75026858234"===t){try{const N=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:l,quantity:1}]})}),P=await N.json();N.ok?setTimeout(()=>{b(l),window.location.href="/cart"},500):console.error("[Whatmore] ATC 75026858234 failed:",P)}catch(O){console.error("[Whatmore] ATC 75026858234 error:",O)}return void setTimeout(e,o)}if("52398751922"===t){async function W(){var t;const e=window.jQuery;if(!e||!v||"function"!==typeof(null===(t=window.theme)||void 0===t?void 0:t.initAjaxAddToCartForm))return u(l,1,b);const o=await(await fetch(v.split(/[?#]/)[0]+".js")).json();if(!document.querySelector(".ProductJson-"+o.id)){o.options=o.options.map(t=>t.name||t);const t=document.createElement("script");t.type="application/json",t.className="ProductJson-"+o.id,t.textContent=JSON.stringify(o),document.body.appendChild(t)}const n=document.createElement("div");n.style.display="none",n.innerHTML='<form class="ajax-product-form" action="/cart/add" method="post"><input type="hidden" name="id" value="'+l+'"><input type="hidden" name="quantity" value="1"><button type="submit"></button></form>',document.body.appendChild(n);const r=e(n.firstChild);return new Promise(t=>{r.one("cc:addToCart:success cc:addToCart:error",e=>{n.remove();const o="cc:addToCart:success"===e.type;o&&setTimeout(()=>b(l),500),t(o)}),window.theme.initAjaxAddToCartForm(r),r.trigger("submit")})}return void W().then(()=>{setTimeout(e,o)}).catch(t=>{console.error("[Whatmore] ATC 52398751922 error:",t)})}if("65606910124"===t){async function L(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});if(!o.ok)return console.error("[ATC] Add to cart failed:",o.status),!1;document.dispatchEvent(new CustomEvent("cart:build"));const n=document.querySelector("cart-drawer");if(!n)return window.location.href="/cart",!0;const r=await(await fetch("/?section_id=cart-drawer")).text(),i=(new DOMParser).parseFromString(r,"text/html");return n.innerHTML=i.querySelector("cart-drawer").innerHTML,n.classList.remove("is-empty"),n.open(),setTimeout(()=>b(t),500),!0}return void L(l,1).then(()=>{setTimeout(e,o)}).catch(t=>{console.error("[Whatmore] ATC 65606910124 error:",t)})}if("17994587"===t||"68660855106"===t){async function J(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});if(!o.ok)return console.error("[ATC] Add to cart failed:",o.status),!1;document.dispatchEvent(new CustomEvent("cart:build"));const n=document.querySelector("cart-drawer");return n&&"function"===typeof n.open?n.open():document.dispatchEvent(new CustomEvent("cart:open")),setTimeout(()=>b(t),500),!0}return void J(l,1).then(()=>{setTimeout(e,o)}).catch(t=>{console.error("[Whatmore] ATC 17994587/68660855106 error:",t)})}if("57217876118"===t){async function R(t,e=1){const o=new FormData;o.append("id",t),o.append("quantity",e),o.append("sections","side-cart");const n=await fetch("/cart/add.js",{method:"POST",body:o,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/javascript"}}).then(t=>t.json());n.status?console.error("atc failed",n.description):(window.ajaxCart.load(n),setTimeout(()=>{b(t)},500))}return void R(l,1).then(()=>{setTimeout(e,o)}).catch(t=>{console.error("[Whatmore] ATC 57217876118 error:",t)})}if("75310563627"===t){async function D(t,e=1){const o=new FormData;o.append("id",t),o.append("quantity",e),o.append("sections","cart-drawer,cart-icon-bubble");const n=await fetch("/cart/add.js",{method:"POST",body:o,headers:{Accept:"application/javascript"}}).then(t=>t.json());if(n.status)return void console.error("atc failed",n.description);const r=document.querySelector("cart-drawer");r&&(r.renderContents(n),r.classList.remove("is-empty"),r.open())}return D(l,1).then(()=>{setTimeout(()=>{b(l)},500)}).catch(t=>{console.error("[Whatmore] ATC 75310563627 error:",t)}),void setTimeout(e,o)}if("81308287252"===t)return(async()=>{const t={};(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot")||(t[r.B_]=`${(0,n.wm)()}#${f}:direct`);const e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(l),quantity:1,properties:t})}).then(t=>t.json()).catch(()=>null);e&&!e.status?setTimeout(()=>{const t=document.querySelector(".iCartBtnToggle")||document.querySelector("#iCartBtnToggle");t?t.click():console.warn("[Whatmore] iCart toggle not found for 81308287252")},250):console.error("[Whatmore] ATC 81308287252 failed:",e&&e.description)})(),void setTimeout(e,o);if("67841720509"===t){async function I(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(t),quantity:e})});o.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 o.text())}return I(l,1).then(()=>{setTimeout(()=>{b(l)},500)}).catch(t=>{console.error("[Whatmore] ATC 67841720509 error:",t)}),void setTimeout(e,o)}if("72603631788"===t||"5220302897"===t){const V=new FormData;V.append("id",l),V.append("quantity","1"),T&&V.append("properties[Size]",T);try{const x=await fetch("/cart/add.js",{method:"POST",body:V}),M=await x.json();M.id?setTimeout(()=>{b(l),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",M)}catch(O){console.error("Afrozeh ATC error:",O)}return void setTimeout(e,o)}if("67083239728"===t){try{const F=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:l,quantity:1}]})});F.ok||console.error("[ATC] Add to cart failed:",F.status)}catch(O){console.error("[ATC] Error while adding to cart:",O)}return setTimeout(()=>{b(l)},1e3),void setTimeout(e,o)}if("61442818186"===t){async function G(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});if(!o.ok)return void console.error("[ATC] Add to cart failed:",o.status);document.dispatchEvent(new CustomEvent("cart:build"));const n=document.querySelector(".js-drawer-open-cart");n&&n.click()}return G(l,1).then(()=>{setTimeout(()=>{b(l)},500)}).catch(t=>{console.error("[Whatmore] ATC 61442818186 error:",t)}),void setTimeout(e,o)}if("9311420495"===t){async function B(t){const e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:1}]})}),o=await e.json();if(!e.ok||o.status)return console.error("[Whatmore] ATC 9311420495 failed:",o);document.dispatchEvent(new CustomEvent("ajaxProduct:added",{detail:{product:o}})),setTimeout(()=>b(t),500)}return B(l).catch(t=>{console.error("[Whatmore] ATC 9311420495 error:",t)}),void setTimeout(e,o)}if("56352899156"===t){async function H(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})}),n=await o.json();if(!o.ok)throw new Error(n.description||n.message||"Could not add to cart");document.dispatchEvent(new CustomEvent("theme:cart:refresh",{bubbles:!0}));const r=Array.prototype.slice.call(document.querySelectorAll("[data-cart-drawer-toggle]")),i=r.filter(t=>null!==t.offsetParent)[0]||r[0];i?i.click():window.location.href="/cart",setTimeout(()=>b(t),500)}return H(l,1).catch(t=>{console.error("[Whatmore] ATC 56352899156 error:",t)}),void setTimeout(e,o)}if("62226792677"===t){async function U(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});var n;o.ok?("function"===typeof(null===(n=window.cleverSopify)||void 0===n?void 0:n.onCartUpdate)&&window.cleverSopify.onCartUpdate(1,1,m),setTimeout(()=>{b(t)},500)):console.error("[ATC] Add to cart failed:",o.status)}return U(l).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,o)}if("64655163636"===t){async function X(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(setTimeout(()=>b(t),500),document.getElementById("CartDrawer")?document.dispatchEvent(new CustomEvent("ajaxProduct:added")):setTimeout(()=>{window.location.href="/cart"},500),!0):(console.error("[Whatmore] ATC 64655163636 failed:",o.status),!1)}return X(l,1).catch(t=>{console.error("[Whatmore] ATC 64655163636 error:",t)}),void setTimeout(e,o)}if("3065315386"===t){async function Q(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(setTimeout(()=>b(t),500),h([{id:t,quantity:e}])||setTimeout(()=>{window.location.href="/cart"},500),!0):(console.error("[Whatmore] ATC 3065315386 failed:",o.status),!1)}return Q(l,1).catch(t=>{console.error("[Whatmore] ATC 3065315386 error:",t)}),void setTimeout(e,o)}if("78393540856"===t){async function z(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(setTimeout(()=>b(t),500),p()||setTimeout(()=>{window.location.href="/cart"},500),!0):(console.error("[Whatmore] ATC 78393540856 failed:",o.status),!1)}return z(l,1).catch(t=>{console.error("[Whatmore] ATC 78393540856 error:",t)}),void setTimeout(e,o)}if("60595503283"===t){async function K(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({items:[{id:t,quantity:e}]})});if(!o.ok)return console.error("[Whatmore] ATC 60595503283 failed:",o.status),!1;setTimeout(()=>b(t),500);return document.querySelector('#sidebar-cart[data-section-type="cart"]')?(document.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{quantity:e}})),!0):(setTimeout(()=>{window.location.href="/cart"},500),!0)}return K(l,1).catch(t=>{console.error("[Whatmore] ATC 60595503283 error:",t)}),void setTimeout(e,o)}if("47682683045"===t){async function Z(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(b(t),setTimeout(()=>{document.getElementById("CartDrawer")&&!document.body.classList.contains("template-cart")?document.dispatchEvent(new CustomEvent("ajaxProduct:added")):window.location.href="/cart"},1500),!0):(console.error("[ATC] Add to cart failed:",o.status),!1)}return Z(l,1).catch(t=>{console.error("[Whatmore] ATC 47682683045 error:",t)}),void setTimeout(e,o)}if("64188973306"===t){async function Y(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(b(t),setTimeout(async()=>{if(!document.querySelector("cart-drawer-component"))return void(window.location.href="/cart");const t=await(await fetch("/cart.js")).json();document.dispatchEvent(new CustomEvent("cart:update",{bubbles:!0,detail:{resource:t,sourceId:"whatmore",data:{itemCount:t.item_count,source:"whatmore"}}}))},1500),!0):(console.error("[ATC] Add to cart failed:",o.status),!1)}return Y(l,1).catch(t=>{console.error("[Whatmore] ATC 64188973306 error:",t)}),void setTimeout(e,o)}if("55586586685"===t){async function tt(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(b(t),setTimeout(()=>{const t=document.querySelector("cart-drawer");t?(document.dispatchEvent(new CustomEvent("cart:refresh")),t.show()):window.location.href="/cart"},1500),!0):(console.error("[ATC] Add to cart failed:",o.status),!1)}return tt(l,1).catch(t=>{console.error("[Whatmore] ATC 55586586685 error:",t)}),void setTimeout(e,o)}if("72915616066"===t||"84966080805"===t){function et(){var t,e;const o=window.customElements.get("cart-drawer")&&document.querySelector("cart-drawer");let n=[];const r=new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:n}});document.documentElement.dispatchEvent(r);const i=n.length>0,a="string"===typeof(null===(t=window.themeVariables)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.cartType);return(!a||"page"!==window.themeVariables.settings.cartType)&&(o&&i&&a)}async function ot(t,e){document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));let o=[];document.documentElement.dispatchEvent(new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:o}}));const n=await fetch(`${window.Shopify.routes.root}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}],sections:o.join(",")})});if(document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0})),!n.ok)return console.error("[ATC] Add to cart failed:",n.status),document.dispatchEvent(new CustomEvent("cart:refresh")),!1;const r=await n.json(),i=await(await fetch(`${window.Shopify.routes.root}cart.js`)).json();return i.sections=r.sections,document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{baseEvent:"variant:add",cart:i}})),setTimeout(()=>{b(t)},500),!0}async function nt(t,e=1){return et()?ot(t,e):u(t,e,b)}return nt(l).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,o)}if("44061622423"===t){async function rt(t,e=1){const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});o.ok?window.cart&&"function"===typeof window.cart.getCart?(window.cart.getCart(),setTimeout(()=>{b(t)},500)):fetch("/cart?section_id=api-cart-items").then(t=>t.text()).then(e=>{const o=document.createElement("div");if(o.innerHTML=e,window.cart&&"function"===typeof window.cart.build){const t=o.querySelector("[data-api-content]");t&&window.cart.build(t)}document.dispatchEvent(new CustomEvent("theme:product:added",{bubbles:!0})),setTimeout(()=>{b(t)},500)}).catch(()=>{const e=document.querySelector('[href="/cart"], [data-cart-toggle], a[href*="/cart"]');e&&e.click(),setTimeout(()=>{b(t)},500)}):console.error("[ATC] Add to cart failed:",o.status)}return rt(l).catch(t=>{console.error("[Whatmore] Error:",t)}),void setTimeout(e,o)}if("60183445561"===t){async function it(t,e=1,o="/cart"){const n=new URLSearchParams;n.append("id",t),n.append("quantity",e.toString()),n.append("return_to",o);const r=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString(),credentials:"include"}),i=await r.text();return r.ok&&setTimeout(()=>{b(t),window.location.href="https://tapee.in/cart"},500),i}return it(l).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("22907887"===t){async function at(t,e=1){const o=new FormData;o.append("id",t),o.append("quantity",e.toString());const n=document.querySelector("cart-notification, cart-drawer");if(n){const t=n.getSectionsToRender();o.append("sections",t.map(t=>t.id).join(","))}o.append("sections_url",window.location.pathname);const r=await fetch("/cart/add.js",{method:"POST",body:o});if(!r.ok){const t=await r.text();throw new Error(`Failed to add to cart: ${t}`)}const i=await r.json();return n&&n.renderContents&&n.renderContents(i),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:i}})),i}return at(l).then(t=>{setTimeout(()=>{b(l)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("28575536"===t||"64287408360"===t||"8473575520"===t||"65972830359"===t||"75000480020"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,o);if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{b(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("58501496967"===t)return(async()=>{const t=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:l,quantity:1}]})});t.ok?(window.ajaxCart&&"function"===typeof window.ajaxCart.load&&window.ajaxCart.load(),window.jQuery&&window.jQuery("body").trigger("drawer.open"),setTimeout(()=>{b(l)},500)):console.error("[Whatmore] ATC 58501496967 failed:",t.status)})().catch(t=>console.error("[Whatmore] ATC 58501496967 error:",t)),void setTimeout(e,o);if("56444977250"===t){const ct=document.querySelector('button[data-pf-type="ProductATC2"]');return ct?(m&&ct.setAttribute("data-product-id",m),ct.click(),setTimeout(()=>{c().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){d(e.key,e.quantity,e.properties,f,y,w,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===v||void 0===v||null===(C=v.split("?"))||void 0===C?void 0:C[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&m&&e.setAttribute("data-product-id",m)}),void setTimeout(e,o));var C}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("66947219508"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(l),quantity:1}]})}).then(async()=>{const t=document.getElementById("mini-cart");t&&"function"===typeof t._rerenderCart&&await t._rerenderCart({detail:{openMiniCart:!0}}),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("[Whatmore] ATC 66947219508 error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("26767687757"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{b(l)},500)}).catch(t=>console.error("[Whatmore] CHOSEN ATC error:",t)),void setTimeout(e,o);if("70840582336"===t){const dt=l,st=1,ut=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(ut){let lt=ut.querySelector('input[name="id"]');lt||(lt=document.createElement("input"),lt.type="hidden",lt.name="id",ut.appendChild(lt)),lt.disabled=!1,lt.value=dt;const pt=ut.querySelector('input[name="quantity"]');pt&&(pt.value=st);const ht=ut.querySelector('button[data-add-to-cart], button[type="submit"]');return ht?(ht.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),ht.click(),ht.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{b(dt)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:dt,quantity:st}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{b(dt)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const mt=document.querySelector('form[action="/cart/add"]');if(!mt)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const ft=mt.querySelector('input[name="id"]');if(!ft)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);ft.value=l;const yt=mt.querySelector('button[type="submit"]');if(!yt)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);yt.click(),setTimeout(()=>{b(l)},500),setTimeout(e,o)}catch(E){console.error("[ATC 64683278550] error:",E),setTimeout(e,o)}return}if("95562924310"===t||"61810999367"===t){try{const wt=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:l,quantity:1}]})});if(wt.ok){const vt=await wt.json();document.dispatchEvent(new CustomEvent("cart:update",{detail:{cart:vt}})),document.dispatchEvent(new CustomEvent("theme:cart:refresh",{detail:{target:"product_flood_atc"},bubbles:!0})),setTimeout(()=>{b(l)},500)}else console.error("[ATC 95562924310] Add to cart failed:",wt.status)}catch(O){console.error("[ATC 95562924310] error:",O)}return void setTimeout(e,o)}if("45050691744"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{jQuery.ajax({type:"GET",url:"/",dataType:"html",success:function(t){jQuery(".drawer__inner.cart-drawer-content").html(jQuery(t).find(".drawer__inner.cart-drawer-content").html()),jQuery(".custom_doscunt_bar").html(jQuery(t).find(".custom_doscunt_bar").html()),jQuery(".some_js_items").html(jQuery(t).find(".some_js_items").html()),jQuery(".header-cart-icon__count").html(jQuery(t).find(".header-cart-icon__count").html());try{jQuery("#FreeShippingText").slick({dots:!0,autoplay:!0,autoplaySpeed:2500,arrows:!0})}catch(e){}jQuery("div#HeaderCartIcon button").trigger("click"),setTimeout(()=>{b(l)},500)}})}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("55337746621"===t){async function Tt(t,e=1){var o;await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});const n=await fetch("/cart.js").then(t=>t.json());document.querySelectorAll("[data-cart-count]").forEach(t=>{const e=t.querySelector(":scope > span:last-of-type");e&&(e.textContent=n.item_count)});const r=document.querySelector("[data-cart-container]");if(!r)return;const i=((null===(o=r.parentElement)||void 0===o?void 0:o.id)||"").replace("shopify-section-","");let a=null;if(i){const t=await fetch(`/?sections=${encodeURIComponent(i)}`).then(t=>t.json()).catch(()=>null);if(null!==t&&void 0!==t&&t[i]){const e=document.createElement("div");e.innerHTML=t[i];const o=e.querySelector("[data-cart-container]");o&&(a=o.innerHTML)}}if(!a){const t=await fetch("/cart").then(t=>t.text()),e=(new DOMParser).parseFromString(t,"text/html").querySelector("[data-cart-container]");e&&(a=e.innerHTML)}if(!a)return;r.innerHTML=a,r.classList.add("is-drawer-open"),document.body.classList.add("is-scroll-disabled");const c=()=>{r.classList.remove("is-drawer-open"),document.body.classList.remove("is-scroll-disabled")};r.querySelectorAll("[data-cart-drawer-toggle]").forEach(t=>{t.addEventListener("click",t=>{t.preventDefault(),c()})}),document.addEventListener("keydown",t=>{"Escape"===t.key&&c()},{once:!0})}return Tt(l,1).then(()=>{setTimeout(()=>{b(l)},500)}).catch(t=>{console.error("[Whatmore] ATC 55337746621 error:",t)}),void setTimeout(e,o)}if("12175954"===t){async function bt(t,e=1){const o=await fetch(theme.routes.cart_add_url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:e}]})});return o.ok?(document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0,cancelable:!1,detail:{openDrawer:!0}})),setTimeout(()=>{b(t)},500),!0):(console.error("[ATC] Add to cart failed:",o.status),!1)}return bt(l).catch(t=>{console.error("[Whatmore] ATC 12175954 error:",t)}),void setTimeout(e,o)}if("2754609263"===t){const Ct=()=>{const t=["cart:open","CartDrawer:open","drawerOpen"],e=[document,window];try{window.parent&&window.parent!==window&&window.parent.document&&e.push(window.parent.document)}catch(n){}const o=t=>e.forEach(e=>{try{e.dispatchEvent(new CustomEvent(t,{bubbles:!0}))}catch(n){console.error(`[Whatmore] ATC 2754609263 dispatch ${t} failed:`,n)}});["cart:refresh","cart:build","cart:updated"].forEach(o),setTimeout(()=>t.forEach(o),150)};async function St(t,e=1){var o,n,r;const i=(null===(o=window.Shopify)||void 0===o||null===(n=o.routes)||void 0===n?void 0:n.root)||"/",a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/javascript"},c=Number(e)||1,d=()=>fetch(`${i}cart/add.js`,{method:"POST",headers:a,body:JSON.stringify({items:[{id:t,quantity:c}]})}).then(t=>t.json()),s=await fetch(`${i}cart.js`,{headers:{Accept:"application/json"},cache:"no-store"}).then(t=>t.json()).catch(()=>null),u=null===s||void 0===s||null===(r=s.items)||void 0===r?void 0:r.find(e=>e.id==t);let l;var p,h;(u?(l=await fetch(`${i}cart/change.js`,{method:"POST",headers:a,body:JSON.stringify({id:u.key,quantity:u.quantity+c})}).then(t=>t.json()).catch(()=>null),l&&!l.status||(console.warn("[Whatmore] ATC 2754609263 change.js rejected, falling back to add.js"),l=await d())):l=await d(),l&&!l.status)?(Ct(),setTimeout(()=>{b(t)},500)):console.error("[Whatmore] ATC 2754609263 failed:",(null===(p=l)||void 0===p?void 0:p.description)||(null===(h=l)||void 0===h?void 0:h.message))}return St(l).catch(t=>{console.error("[Whatmore] ATC 2754609263 error:",t)}),void setTimeout(e,o)}if("25786679341"===t)return(async(t,e)=>{const o={};(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot")||(o[r.B_]=`${(0,n.wm)()}#${f}:direct`);const i=await fetch(`${(null===(t=window.Shopify)||void 0===t||null===(e=t.routes)||void 0===e?void 0:e.root)||"/"}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(l),quantity:1,properties:o}]})}).then(t=>t.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 t=document.querySelector("a.vd-bag");t?t.click():console.warn("[Whatmore] vdOpenCart missing and no .vd-bag for 25786679341")}else console.error("[Whatmore] ATC 25786679341 failed:",i&&i.description)})().catch(t=>{console.error("[Whatmore] ATC 25786679341 error:",t)}),void setTimeout(e,o);if("8111554613"===t)return(async()=>{const t=()=>{const t=document.querySelector("cart-drawer#CartDrawer");t?(document.querySelectorAll(".add-to-cart-popup, .exit-intent-popup").forEach(t=>t.classList.add("hide")),t.removeAttribute("hidden"),t.removeAttribute("inert"),"function"!==typeof t.show||t.open?(t.setAttribute("open","true"),t.setAttribute("active","true")):t.show()):console.warn("[Whatmore] cart-drawer#CartDrawer not found for 8111554613")},e=()=>{const e=document.querySelector("cart-drawer#CartDrawer");let o=!1;const n=()=>{o||(o=!0,r.disconnect(),clearTimeout(i),t())},r=new MutationObserver(()=>{const t=document.querySelector("cart-drawer#CartDrawer");t&&t!==e&&n()});r.observe(document.body,{childList:!0,subtree:!0});const i=setTimeout(n,3e3)};if("function"!==typeof window.cartGiftUpdate){console.warn("[Whatmore] cartGiftUpdate missing for 8111554613, falling back to /cart/add.js");const e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(l),quantity:1}]})}).then(t=>t.json()).catch(()=>null);return!e||e.status?void console.error("[Whatmore] ATC 8111554613 fallback failed:",e&&e.description):void setTimeout(()=>{b(l),document.dispatchEvent(new CustomEvent("cart:updated",{detail:{cart:e}})),t()},500)}const{price:o,productType:n}=await(async()=>{try{var t,e;const o=await fetch("/cart.js",{headers:{Accept:"application/json"},cache:"no-store"}).then(t=>t.json()),n=null===o||void 0===o||null===(t=o.items)||void 0===t?void 0:t.find(t=>String(t.variant_id)===String(l));if(n)return{price:n.price,productType:null!==(e=n.product_type)&&void 0!==e?e:""}}catch(r){}try{var o,n;const t=(v||window.location.href).split(/[?#]/)[0],e=await fetch(`${t}.js`,{headers:{Accept:"application/json"}}).then(t=>t.json()),r=null===e||void 0===e||null===(o=e.variants)||void 0===o?void 0:o.find(t=>String(t.id)===String(l));if(r)return{price:r.price,productType:null!==(n=e.product_type)&&void 0!==n?n:""}}catch(r){}return{price:0,productType:""}})(),r=()=>{document.removeEventListener("cart:updated",r),clearTimeout(i),b(l),e()},i=setTimeout(()=>{document.removeEventListener("cart:updated",r),b(l),e()},2500);document.addEventListener("cart:updated",r,{once:!1}),window.cartGiftUpdate(String(l),o,1,n,"ADD_TO_CART")})().catch(t=>{console.error("[Whatmore] ATC 8111554613 error:",t)}),void setTimeout(e,o);if("5801421"===t)return(async()=>{const t={};(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot")||(t[r.B_]=`${(0,n.wm)()}#${f}:direct`);const e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:Number(l),quantity:1,properties:t})}).then(t=>t.json()).catch(()=>null);if(!e||e.status)return void console.error("[Whatmore] ATC 5801421 failed:",e&&e.description);let o=!1;const i=()=>{if(o)return!0;const t=window.Rebuy&&window.Rebuy.SmartCart;if(!t||"function"!==typeof t.show)return!1;if("ready"!==t.status&&!t.hasBoundEvents&&!document.querySelector("#rebuy-cart"))return!1;if(!0===t.isOpen||!0===t.isVisible)return o=!0,!0;o=!0;try{window.Rebuy.Cart&&window.Rebuy.Cart.fetchCart()}catch(e){}return t.show(),!0};document.addEventListener("rebuy:smartcart.ready",i,{once:!0});const c=(t=0)=>{if(i())return;if(t<40)return void setTimeout(()=>c(t+1),150);const e=window.Rebuy&&window.Rebuy.SmartCart;if(e&&"function"===typeof e.show)return o=!0,void e.show();const n=document.querySelector('[data-cart-open], a[href$="/cart"]:not([disable-rebuy], .disable-rebuy)');n?n.click():console.warn("[Whatmore] Rebuy SmartCart unavailable for 5801421")};c()})().catch(t=>{console.error("[Whatmore] ATC 5801421 error:",t)}),void setTimeout(e,o);const S=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},g=(e,o,n)=>{const r=e.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",o),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",n);let e=r.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(r),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"!==t&&"80261644574"!==t||((t,e,o)=>{var n;const r=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!r)return;let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=r.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const c=r.querySelector('input[name="product-id"]');c&&(c.value=String(o))})(a,o,n),a}},_=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},A=S(document);if(A||(null===A||void 0===A?void 0:A.length)>0){const gt=g(A,l,m);_(gt),setTimeout(()=>{b(l)},500),gt.remove()}else{var j;fetch(null===v||void 0===v||null===(j=v.split("?"))||void 0===j?void 0:j[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=S(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=g(o,l,m);_(t),setTimeout(()=>{b(l)},500),t.remove()}})}setTimeout(e,o)}},5118:function(t,e,o){async function n(t,e=""){let o;if("27303477337"===e){var n,r;const e="https://"+window.location.hostname,i=window.location.pathname.split("/");o=e+"/"+(null!==i&&void 0!==i&&null!==(n=i[1])&&void 0!==n&&n.startsWith("en-")?(null===i||void 0===i?void 0:i[1])+"/":"")+(null===t||void 0===t||null===(r=t.product_link)||void 0===r?void 0:r.split(".co")[1])+".js"}else o=(null===t||void 0===t?void 0:t.product_link)+".js";const i=await fetch(o,{method:"GET"});if(!i.ok)throw new Error(`Error! status: ${i.status}`);return await i.json()}async function r(t){if(!t||!t.product_link)return null;const e=await fetch(t.product_link+".json",{method:"GET"});if(!e.ok)throw new Error("Error! status: "+e.status);return e.json()}async function i(t,e,o){if(t)return n(t,o)}function a(t){var e=[],o=[],n=[];const r=t&&t.variants||[],i=t&&t.options||[];return r.forEach(t=>{var r,a,c;t.option1&&e.push({option:t.option1,available:null===(r=t.available)||void 0===r||r,type:i[0]&&i[0].name}),t.option2&&o.push({option:t.option2,available:null===(a=t.available)||void 0===a||a,type:i[1]&&i[1].name}),t.option3&&n.push({option:t.option3,available:null===(c=t.available)||void 0===c||c,type:i[2]&&i[2].name})}),e=e.reduce((t,e,o)=>{var n=t.filter(t=>t.option==e.option);return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)},[]),o=o.reduce((t,e,o)=>{var n=t.filter(t=>t.option==e.option);return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)},[]),n=n.reduce((t,e,o)=>{var n=t.filter(t=>t.option==e.option);return 0==n.length?[...t,e]:(n[0].available=n[0].available|e.available,t)},[]),[e,o,n]}function c(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}function d(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}function s(t,e){const o=e.filter(e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]);return 0==o.length?null:o[0].id}function u(t){if(t&&t.length>=1){return t.filter(t=>t.available).length>=1}return!1}o.r(e),o.d(e,{atleastOneVariantAvailableInStock:function(){return u},getFirstAvailableOption:function(){return c},getVariantIdFromSelectedOption:function(){return s},getVariantOptions:function(){return a},isSingleVariantProduct:function(){return d},productDetailsDetailed:function(){return i},productDetailsShopifyJS:function(){return n},productDetailsShopifyJSON:function(){return r}})},8847:function(t,e,o){o.r(e),o.d(e,{addWhatmoreAttributeToCart:function(){return u}});var n=o(5616),r=o(4563),i=o(2567),a=o(5443),c=o(5566),d=o(6080);async function s(t){return await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:t})}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart attribute.",t)})}async function u(t){var e;let o,u=(0,n.Ak)(),l=null,p=null,h={},m=null,f=null,y=null,w={};const v=(0,i.Ry)();let T=(0,c.CK)(),b=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,C=T.length>0;T.forEach(t=>{w.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(w[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})});const S=localStorage.getItem("_whatmore_session_id"),g=localStorage.getItem("wht_user_group"),_=window.whatmore&&window.whatmore.abTestConfig&&window.whatmore.abTestConfig.ab_test_id||null,A=window.whatmore&&window.whatmore.abTestConfig&&null!=window.whatmore.abTestConfig.version?window.whatmore.abTestConfig.version:null,j=localStorage.getItem("_whatmore_user_id"),O=localStorage.getItem("_whatmore_last_video_view_session"),E=(()=>{try{var t;return JSON.parse(null!==(t=localStorage.getItem("_whatmore_add_to_cart_products"))&&void 0!==t?t:"[]")}catch(e){return[]}})(),q=new Set(E.map(t=>String(null===t||void 0===t?void 0:t.product_id))),k=(()=>{try{var t;return JSON.parse(null!==(t=localStorage.getItem("_whatmore_buynow_products"))&&void 0!==t?t:"[]")}catch(e){return[]}})(),N=new Set(k.map(t=>String(null===t||void 0===t?void 0:t.variant_id))),P={buynow:3,direct:2,indirect:1};await(0,r.getCartDetailsShopifyAsync)().then(t=>t.json()).then(e=>{u=e.token,o=e.attributes;let n={};try{var r,T;const t=null===(r=o)||void 0===r?void 0:r._wtot;n="string"===typeof t?JSON.parse(t):null!==t&&void 0!==t?t:{};const i=new Set((null!==(T=e.items)&&void 0!==T?T:[]).map(t=>String(null===t||void 0===t?void 0:t.product_id)));n=Object.fromEntries(Object.entries(n).filter(([t])=>i.has(String(t))))}catch(L){n={}}let E=[];if(E=!0===t?e.items.map(t=>{const e=w[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}):e.items.map(t=>{const e=w[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}),0==E.length)return console.debug("Whatmore :: no cart items available for view products"),null;let k={},W={};if(null!=S){const t={wht_session_id:null!==O&&void 0!==O?O:S,wht_user_id:j,...g&&{wht_user_group:g},..._&&{wht_ab_test_id:_},...null!=A&&{wht_ab_test_version:A}};W={[d.Uv]:(0,d.dK)(v)?JSON.stringify(t):t,[d.Um]:""}}if(b||C){const t="1";W[C?d.Rm:d.AG]=t,W[C?d.bZ:d.SW]=""}!(0,a.hG)((0,a.VA)(),"order_tracking->disable_impression_order_tracking")&&(W.hasOwnProperty(d.Uv)||W.hasOwnProperty(d.Rm)&&!o.hasOwnProperty(d.Rm)||W.hasOwnProperty(d.AG)&&!o.hasOwnProperty(d.AG))&&s(W),E.map((e,o)=>{if(l=e.key,p=e.quantity,h=e.properties,m=e.widget_info,f=e.location,y=e.userType,("63330517149"==v||"77604192550"==v||"64157352183"==v||"62758289602"==v||"65972830359"==v||"75310563627"==v||(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot"))&&w.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){const t="65972830359"==v||"75310563627"==v||(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot"),o=t?"_wtot":"wtot";let i=(0,c.wm)()+`#${m}`;if(t){var r;const t=N.has(String(null===e||void 0===e?void 0:e.variant_id))?"buynow":q.has(String(null===e||void 0===e?void 0:e.product_id))?"direct":"indirect",o=n[null===e||void 0===e?void 0:e.product_id];i=(null!==(r=P[("string"===typeof o?o:"").split(":")[1]])&&void 0!==r?r:0)>=P[t]?o:i+`:${t}`}k={...k,[null===e||void 0===e?void 0:e.product_id]:i};s({[o]:t?{...n,...k}:k})}null!==h&&d.B_ in h||!w.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))||async function(t,e,o,n,r="default",s,u,l,p){const h=(0,i.Ry)(),m=u?(0,c.wm)()+("72201044272"==h?`#${n}#${r}#${s?"olduser":"newuser"}`:`#${n}`):p?"_wt_vs":l?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==h||"64157352183"==h||"80856187185"==h||"86486974743"==h||"62758289602"==h||"63046287536"==h||"65972830359"==h||"75310563627"==h||"86968402213"==h||(0,a.hG)((0,a.VA)(),"order_tracking->track_using_wtot"))return;let f={id:t,quantity:e,properties:{...m?{[d.B_]:m}:{},...o}};await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties.",t)})}(l,p,h,m,f,y,!0,b,C)})}).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5126],{1367:function(t,e,n){n.r(e),n.d(e,{REGISTRY:function(){return P},renderNeoBanner:function(){return R}});var a=n(7983),o=n(6387),r=n(1839),i=n(9439),s='.wht-neo-banner{--wht-neo-banner-fields:title text 128 "Headline",body textarea 600 "Body",cta button 40 "Button"}.wht-neo-banner-overlay{background:var(--wht-neo-banner-overlay,linear-gradient(to top,transparent 70%,rgba(0,0,0,.3)))}.wht-neo-banner[data-wht-mutebtn] .wht-neo-banner-mute{align-items:center;background:var(--wht-neo-banner-mute-bg,rgba(0,0,0,.4));border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;height:var(--wht-neo-banner-mute-size,39px);justify-content:center;padding:0;position:absolute;right:10px;top:10px;width:var(--wht-neo-banner-mute-size,39px);z-index:2}.wht-neo-banner-mute svg{height:55%;width:55%}.wht-neo-banner[data-wht-sound] .wht-neo-banner-mute{opacity:.7}.wht-neo-banner-nav{align-items:center;background:var(--wht-neo-banner-nav-bg,#fff);border:none;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--wht-neo-banner-nav-color,#090a0b);cursor:pointer;display:flex;height:var(--wht-neo-banner-nav-size,36px);justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wht-neo-banner-nav-size,36px);z-index:2}.wht-neo-banner-nav-prev{left:10px}.wht-neo-banner-nav-next{right:10px}.wht-neo-banner-nav svg{display:block;height:42%;width:42%}.wht-neo-banner[data-wht-dots] .wht-neo-banner-dots{align-items:center;bottom:7%;display:flex;gap:var(--wht-neo-banner-dot-gap,24px);justify-content:center;left:0;position:absolute;right:0;z-index:2}.wht-neo-banner-dot{background:var(--wht-neo-banner-dot,#f8eeec);border:none;border-radius:999px;cursor:pointer;height:12px;padding:0;transition:width .2s ease,background .2s ease;width:12px}.wht-neo-banner-dot[data-wht-active]{background:var(--wht-neo-banner-dot-active,#343434);width:25px}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta{background:var(--wht-neo-banner-cta-bg,#fff);border-radius:var(--wht-neo-banner-cta-radius,5px);bottom:10%;color:var(--wht-neo-banner-cta-color,#343434);display:inline-block;font-size:var(--wht-neo-banner-cta-size,15px);font-weight:700;left:50%;padding:10px 22px;position:absolute;text-decoration:none;transform:translateX(-50%);white-space:nowrap;z-index:2}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta[data-wht-empty],.wht-neo-banner[data-wht-type=image] .wht-neo-banner-mute{display:none}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{display:flex;flex-direction:column;gap:10px;padding:var(--wht-neo-banner-content-pad,20px)}.wht-neo-banner[data-wht-copy-x][data-wht-cta] .wht-neo-banner-cta{position:static;transform:none}.wht-neo-banner[data-wht-copy-x=left] .wht-neo-banner-content{align-items:flex-start;text-align:left}.wht-neo-banner[data-wht-copy-x=center] .wht-neo-banner-content{align-items:center;text-align:center}.wht-neo-banner[data-wht-copy-x=right] .wht-neo-banner-content{align-items:flex-end;text-align:right}.wht-neo-banner[data-wht-copy-y=top] .wht-neo-banner-content{justify-content:flex-start}.wht-neo-banner[data-wht-copy-y=center] .wht-neo-banner-content{justify-content:center}.wht-neo-banner[data-wht-copy-y=bottom] .wht-neo-banner-content{justify-content:flex-end}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{padding:var(--wht-neo-banner-content-pad-wide,40px 56px)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body,.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{color:var(--wht-neo-banner-copy-color,#fff);display:block;font-family:var(--wht-neo-banner-font,inherit);max-width:var(--wht-neo-banner-copy-max,34ch);overflow-wrap:anywhere;text-shadow:0 1px 8px rgba(0,0,0,.45)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size,22px);font-weight:700;line-height:1.15}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size,14px);line-height:1.45}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body[data-wht-empty],.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title[data-wht-empty]{display:none}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size-wide,36px)}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size-wide,16px)}',l=n(651);const d='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M11 5 6 9H2v6h4l5 4V5z" fill="currentColor"/><path d="M16 9l5 6M21 9l-5 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',c=t=>'<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="'+("prev"===t?"M15 5l-7 7 7 7":"M9 5l7 7-7 7")+'" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',u=["left","center","right"],h=["top","center","bottom"];function p(t){const e=String(t||"").trim().toLowerCase();if(!e||"default"===e)return null;if("center"===e||"center-center"===e)return{x:"center",y:"center"};const n=e.split("-");let a=null,o=null;for(const r of n)if(h.includes(r)&&null===o)o=r;else{if(!u.includes(r)||null!==a)return null;a=r}return a||o?{x:a||"center",y:o||"center"}:null}const b='title text 128 "Headline", body textarea 600 "Body", cta button 40 "Button"',w=["text","textarea","button"],f=10,v={text:128,textarea:600,button:40};function m(t){const e=[],n={};return String(t||"").split(",").forEach(t=>{const a=t.match(/"[^"]*"|'[^']*'|[^\s]+/g)||[];if(!a.length)return;const o=a[0].toLowerCase().replace(/[^a-z0-9_-]/g,"");if(!o||n[o])return;const r={name:o,kind:"text",max:0,repeat:1,label:""};a.slice(1).forEach(t=>{const e=t.toLowerCase();/^["']/.test(t)?r.label=t.slice(1,-1).trim():w.indexOf(e)>=0?r.kind=e:/^x\d+$/.test(e)?r.repeat=Math.max(1,Math.min(f,parseInt(e.slice(1),10))):/^\d+$/.test(e)&&(r.max=Math.max(1,parseInt(e,10)))}),r.max||(r.max=v[r.kind]),r.label||(r.label=o.charAt(0).toUpperCase()+o.slice(1)),n[o]=!0,e.push(r)}),e}function y(t,e){const n=t.copy.ownerDocument;t.copy.textContent="",t.fields=(e&&e.length?e:m(b)).map(e=>{const a=[];for(let o=1;o<=e.repeat;o++){const r=n.createElement("button"===e.kind?"a":"div");r.className=("button"===e.kind&&"cta"!==e.name?"wht-neo-banner-cta ":"")+"wht-neo-banner-"+e.name,r.setAttribute("data-wht-field",e.name),r.setAttribute("data-wht-kind",e.kind),r.setAttribute("data-wht-i",String(o)),r.setAttribute("data-wht-ph",e.label+(e.repeat>1?" "+o:"")),r.setAttribute("data-wht-empty","1"),"button"===e.kind&&(r.dataset.role="ctaButton"),t.copy.appendChild(r),a.push(r)}return{def:e,els:a}});const a=e=>{const n=t.fields.filter(t=>t.def.name===e)[0];return n?n.els[0]:null};return t.title=a("title"),t.body=a("body"),t.cta=a("cta"),t.fields}const g=t=>(null==t?"":String(t)).trim();function x(t,e){return"button"!==t.kind?g("object"===typeof e&&null!==e?e.label||e.text:e):"string"===typeof e?{label:"",link:g(e)}:{label:g(e&&(null!=e.label?e.label:e.cta_title)),link:g(e&&(null!=e.link?e.link:e.cta_link))}}function _(t,e,n){try{if(!t||!t.querySelector)return null;const a=t.querySelector("#whatmoreBannerDraft")||(t.ownerDocument||document).getElementById("whatmoreBannerDraft");if(!a)return null;const o=JSON.parse(a.textContent||"null");if(!o||"object"!==typeof o)return null;if(null!==e&&String(o.event_id)!==String(e))return null;if(n)return o;let r=o.fields&&"object"===typeof o.fields?o.fields:null;return r||(r={},void 0!==o.title&&(r.title=o.title),void 0!==o.description&&(r.body=o.description),void 0!==o.cta_link&&(r.cta={label:o.cta_title,link:o.cta_link})),{event_id:o.event_id,fields:r}}catch(a){return null}}function k(t){return(t&&t.cta||[]).filter(t=>t&&t.cta_link&&!/whatmore\.ai/i.test(t.cta_link)).sort((t,e)=>{var n,a;return(null!==(n=t.cta_id)&&void 0!==n?n:0)-(null!==(a=e.cta_id)&&void 0!==a?a:0)})[0]||null}const C="banner",A=6e3,S="wht-neo-banner-css",E="wht-neo-banner-critical",I=".wht-neo-banner-widget{width:100%;container-type:inline-size}.wht-neo-banner{position:relative;margin:0 auto;overflow:hidden;cursor:pointer;width:var(--wht-neo-banner-w,var(--wht-neo-banner-w-auto,100%));height:var(--wht-neo-banner-h,var(--wht-neo-banner-h-auto,220px))}.wht-neo-banner-media{position:absolute;inset:0;overflow:hidden}.wht-neo-banner-video,.wht-neo-banner-img{width:100%;height:100%;object-fit:cover;display:block;background:#ececec}.wht-neo-banner-overlay{position:absolute;inset:0}.wht-neo-banner-content{position:absolute;inset:0;pointer-events:none}.wht-neo-banner-cta{pointer-events:auto}.wht-neo-banner-title,.wht-neo-banner-body{display:none;margin:0}.wht-neo-banner-content>[data-wht-empty]{display:none}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content,.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{pointer-events:auto}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:not([data-wht-kind=button]){display:block}.wht-neo-banner[data-wht-edit][data-wht-cta] .wht-neo-banner-content>[data-wht-kind=button][data-wht-empty]{display:inline-block}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:empty::before{content:attr(data-wht-ph);opacity:.45}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{outline:1px dashed transparent;outline-offset:6px;cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' fill='%23fff' stroke='%230a0a0a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E\") 3 21, text;caret-color:#fa558f}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{cursor:text}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:hover{outline-color:rgba(250,85,143,.6)}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{outline:1.5px dashed #fa558f}.wht-neo-banner-mute,.wht-neo-banner-nav,.wht-neo-banner-dots,.wht-neo-banner-cta{display:none}";async function z(t){let e=null;try{e=new URLSearchParams(window.location.search).get("neoskin")}catch(c){}let n="";const a=e||t&&t.skin;a&&"default"!==a&&"a"!==a&&(n=await(0,o.P)(C,a));const i=a&&"default"!==a?a:"a",l=t&&t.customCss,d="string"===typeof l?l:l&&"object"===typeof l&&"string"===typeof l[i]?l[i]:"";return(0,r.fz)(S,s+"\n"+n+(t&&t.brandCss?"\n"+t.brandCss:"")+(d?"\n"+d:"")),i}const P={bannerMedia:{data:{source:"backend",field:"event.event_media_urls"},action:"bannerClick"},muteButton:{data:{source:"runtime",field:"video.muted"},action:"toggleMute"},navArrows:{data:{source:"runtime",field:"banner.activeIndex"},action:"step"},dots:{data:{source:"runtime",field:"banner.activeIndex"},action:"jump"},ctaButton:{data:{source:"backend",field:"event.cta"},action:"bannerClick"},bannerTitle:{data:{source:"backend",field:"event.title"},action:null},bannerBody:{data:{source:"backend",field:"event.description"},action:null},bannerField:{data:{source:"customizations",field:"neo.banner.widgets.*.slides.*"},action:null}};function j(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const O=(t,e=null)=>{const n=j(),a=t.split(".").reduce((t,e)=>null==t?void 0:t[e],n);return null==a?e:a};function L(t){try{const e=(t.closest(".whatmore-base")||document).querySelector("#whatmoreIsInDesignMode");return!!e&&"true"===String(e.getAttribute("data-wh"))}catch(e){return!1}}async function M({shopId:t,widgetIdentity:e,designMode:n}){const o=e&&"wgt_default"!==e?`${(0,l.y0)(j(),"/brand/{store_id}/eventset",t)}?widget_id=${e}&source_type=homepage&source_id=${t}&eventset_type=banner${n?"":"&status=active,active"}`:`${(0,l.y0)(j(),"/get_eventset/{store_id}",t)}?eventset_type=banner&source=homepage&source_id=${t}`,{events:r}=(0,a.Po)(await(0,l.Zq)(o).then(t=>t.json()),"banner");return r}const B=t=>"image"===t.event_type;function T(t,e,n,a){var o,r;const s=(0,i.vC)(void 0,e),l=null!==(o=(0,i.eG)(e))&&void 0!==o?o:s.w,d=s.h>l,c=function(t,e,n){var a;const o=t&&t.querySelector("#"+e),r=o&&(null!==(a=o.getAttribute("data-wh"))&&void 0!==a?a:o.getAttribute("data")),i=null!=r?parseFloat(r):NaN;return isFinite(i)?i:n}(document,"whatmoreVideoTileSize",60)/100*Number(O(d?"banner_config.portrait_multiplier":"banner_config.landscape_multiplier",1)),u=O("banner_config.widget_aspect_ratios"),h=null!==(r=u&&u[n]&&u[n][d?"portrait":"landscape"])&&void 0!==r?r:a&&a[d?"portrait":"landscape"],p=Number(null!==h&&void 0!==h?h:O(d?"banner_config.portrait_aspect_ratio":"banner_config.landscape_aspect_ratio",d?1:.5625)),b=!!O("banner_config.is_full_screen"),w=l,f=w*c;return t.style.setProperty("--wht-neo-banner-w-auto",b?"100%":Math.round(f)+"px"),t.style.setProperty("--wht-neo-banner-h-auto",Math.round((b?w:f)*p)+"px"),t.style.setProperty("--wht-neo-banner-ar-auto",String(p)),void 0!==h&&null!==h?t.style.setProperty("--wht-neo-banner-ar-set",String(p)):t.style.removeProperty("--wht-neo-banner-ar-set"),t.style.setProperty("--wht-neo-banner-vh-auto",Math.round(s.h)+"px"),(0,i.Vo)(t.parentNode&&1===t.parentNode.nodeType?t.parentNode:t,e),d}async function R(t){const{rootElement:e,widgetContainer:a,shopId:o,widgetIdentity:s,bannerArOverride:l,whatmoreRootId:u,onWidgetView:h,onBannerClick:w,onBannerCtaClick:f}=t;if((0,i.V2)(t.storeFlags&&t.storeFlags.viewportSizedTiles),!e||!o)return!1;(0,r.fz)(E,I);const v=[s&&"wgt_default"!==s?s:null,u],g=(0,r.RO)(t.neoJson,C,v);let S,P;try{[S,P]=await Promise.all([M({shopId:o,widgetIdentity:s,designMode:L(e)}),z(g)])}catch(Mt){return!1}let j=g&&g.copyPosition;try{j=new URLSearchParams(window.location.search).get("neocopy")||j}catch(Mt){}if(p(j)||(j=null),(!S||!S.length)&&t.showMockOnEmpty)try{const t=await fetch("https://api.whatmore.live/vs/mock-data").then(t=>t.json());S=t&&t.bannerData||[]}catch(Mt){S=[]}const R=()=>{const t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${u}"]`);t&&t.remove(),e.removeAttribute("data-shimmer-active"),a&&(a.style.minHeight="0px")};if(!S||!S.length)return R(),!0;const N=!!O("banner_config.is_banner_clickable"),D=function(t,e){const{shopId:n,widgetIdentity:a,eventCount:o,flags:r={},dotColor:i,copyPosition:s,fields:l}=e,u=(e,n)=>{const a=t.createElement(e);return a.className=n,a},h=u("div","wht-neo-banner-widget"),b=u("div","wht-neo-banner");b.dataset.role="bannerMedia",n&&b.setAttribute("data-wht-shop",n),a&&b.setAttribute("data-wht-widget",a),r.muteBtn&&b.setAttribute("data-wht-mutebtn","1"),r.dots&&b.setAttribute("data-wht-dots","1"),r.cta&&b.setAttribute("data-wht-cta","1"),i&&b.style.setProperty("--wht-neo-banner-dot-active",i);const w=p(s);w&&(b.setAttribute("data-wht-copy-x",w.x),b.setAttribute("data-wht-copy-y",w.y));const f=u("div","wht-neo-banner-media"),v=u("video","wht-neo-banner-video");v.muted=!0,v.loop=!0,v.playsInline=!0,v.preload="auto",v.setAttribute("muted",""),v.setAttribute("playsinline",""),v.setAttribute("webkit-playsinline","");const m=u("img","wht-neo-banner-img");m.alt="",f.appendChild(v),f.appendChild(m);const g=u("div","wht-neo-banner-overlay"),x=u("button","wht-neo-banner-mute");x.type="button",x.dataset.role="muteButton",x.setAttribute("aria-label","Toggle sound"),x.innerHTML=d;const _=t=>{const e=u("button","wht-neo-banner-nav wht-neo-banner-nav-"+t);return e.type="button",e.dataset.role="navArrows",e.setAttribute("aria-label","prev"===t?"Previous":"Next"),e.innerHTML=c(t),e},k=_("prev"),C=_("next"),A=u("div","wht-neo-banner-dots");A.dataset.role="dots";const S=[];for(let d=0;d<o;d++){const t=u("button","wht-neo-banner-dot");t.type="button",t.setAttribute("aria-label","Slide "+(d+1)),A.appendChild(t),S.push(t)}g.appendChild(x),o>1&&(g.appendChild(k),g.appendChild(C),g.appendChild(A)),f.appendChild(g);const E=u("div","wht-neo-banner-content");b.appendChild(f),b.appendChild(E),h.appendChild(b);const I={content:h,banner:b,media:f,video:v,img:m,overlay:g,mute:x,prev:k,next:C,dots:A,dotEls:S,copy:E,fields:[],title:null,body:null,cta:null};return y(I,l),I}(document,{shopId:o,widgetIdentity:s,eventCount:S.length,flags:{muteBtn:!!O("banner_config.show_mute_button"),dots:!!O("banner_config.show_navigation_dots"),cta:!!O("banner_config.show_cta")},dotColor:O("banner_config.selected_dot_color"),copyPosition:j}),{content:J,banner:$,video:q,img:F,mute:H,prev:V,next:U,dotEls:G,copy:Y}=D;e.innerHTML="",e.appendChild(J);const K=(()=>{let t="";try{t=getComputedStyle($).getPropertyValue("--wht-neo-banner-fields")}catch(Mt){}const e=m(t);return e.length?e:m(b)})();y(D,K);let W=T($,a,s,l);const X=s&&"wgt_default"!==s?s:"wgt_default",Z=e=>{const n=t.neoJson&&t.neoJson.banner&&t.neoJson.banner.widgets||O("neo.banner.widgets"),a=n&&n[X]&&n[X].slides;return a&&e&&a[String(e.event_id)]||null};let Q=-1,tt=null,et=!0,nt=!1,at=!("IntersectionObserver"in window);let ot=!1;const rt=()=>{q.muted=!nt||!et},it=()=>{if(et){const t=q.play();t&&t.catch&&t.catch(()=>{})}},st={bufferAhead:8},lt=!(!q.canPlayType||!q.canPlayType("application/vnd.apple.mpegurl"))&&/apple/i.test(navigator.vendor||"");let dt=null,ct=null;const ut=()=>it(),ht=t=>{q.removeEventListener("loadeddata",ut),q.addEventListener("loadeddata",ut,{once:!0});const e=e=>{e.attachSource(q,t,e.PRIORITY.ACTIVE,st),et||e.suspendSource(q),it()};if(dt)return void e(dt);if(!(a=t)||!a.toLowerCase().includes(".m3u8")||lt)return q.src=t,q.load(),void it();var a;const o=Q;(dt?Promise.resolve(dt):ct||(ct=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(dt=t,t)))).then(t=>{Q===o&&e(t)}).catch(()=>{})},pt=()=>{dt?dt.releaseSource(q):q.pause()},bt=k,wt=t=>t&&O("utm.activate_utm")?t+"?"+O("utm.utm_source","")+"&"+O("utm.utm_campaign","")+"&"+O("utm.utm_medium_cart_page",""):t;let ft=!1,vt=!1;const mt=t=>{clearTimeout(tt),tt=null,ft||(tt=setTimeout(()=>{tt=null,zt((Q+1)%S.length)},t))},yt=e.closest?e.closest(".whatmore-base"):null;let gt={};const xt=t=>{const e=S[t],n=bt(e),a=n&&n.cta_link&&(e.cta||[]).length>1?n:null,o=_(yt,e.event_id)||(vt?_(yt,null):null),r=o?Object.assign({},Z(e)||{},o.fields):Z(e);gt=function(t,e,n,a){const o={};return(t||[]).forEach(t=>{let r=e&&Object.prototype.hasOwnProperty.call(e,t.name)?e[t.name]:void 0;void 0!==r&&null!==r||("title"===t.name&&"button"!==t.kind?r=n&&n.title:"body"===t.name&&"button"!==t.kind?r=n&&n.description:"cta"===t.name&&"button"===t.kind&&(r=a?{label:a.cta_title,link:a.cta_link}:null));const i=(Array.isArray(r)?r:[r]).slice(0,t.repeat).map(e=>x(t,e));for(;i.length<t.repeat;)i.push(x(t,null));o[t.name]=i}),o}(D.fields.map(t=>t.def),r,e,a),$.setAttribute("data-wht-event",String(e.event_id)),function(t,{event:e,index:n,values:a,linkOf:o}){const{banner:r,dotEls:i}=t;i.forEach((t,e)=>t.toggleAttribute("data-wht-active",e===n)),r.setAttribute("data-wht-type",e&&"image"===e.event_type?"image":"video");const s=o||(t=>t),l=r.ownerDocument&&r.ownerDocument.activeElement;let d=!1,c=!1;(t.fields||[]).forEach(({def:t,els:e})=>{const n=a&&a[t.name]||[];e.forEach((e,a)=>{const o=n[a],r=l===e;if("button"===t.kind){const t=o&&o.link?s(o.link):"";t?(e.href=t,r||(e.textContent=o.label||"Shop now"),e.removeAttribute("data-wht-empty"),c=!0):(e.removeAttribute("href"),r||(e.textContent=""),e.setAttribute("data-wht-empty","1"))}else{const t=r?e.textContent.trim():"string"===typeof o?o:"";r||(e.textContent=t),e.toggleAttribute("data-wht-empty",!t),t&&(d=!0)}})}),r.toggleAttribute("data-wht-notext",!d),r.toggleAttribute("data-wht-nocontent",!d&&(!c||!r.hasAttribute("data-wht-cta"))&&!r.hasAttribute("data-wht-edit"))}(D,{event:e,index:t,values:gt,linkOf:wt})},_t=()=>{try{const t=yt?_(yt,null,!0):null;return t&&null!=t.event_id?String(t.event_id):null}catch(Mt){return null}},kt=(()=>{let t=null;try{t=new URLSearchParams(window.location.search).get("neoskin")}catch(Mt){}const e=t||g&&g.skin,n=JSON.stringify(K)!==JSON.stringify(m(b));return(!e||"default"===e||"a"===e)&&!n})(),Ct=t=>{if(t){if(!kt||$.hasAttribute("data-wht-copy-x"))return;$.setAttribute("data-wht-copy-x","left"),$.setAttribute("data-wht-copy-y","bottom"),$.setAttribute("data-wht-draftpos","1")}else $.hasAttribute("data-wht-draftpos")&&($.removeAttribute("data-wht-copy-x"),$.removeAttribute("data-wht-copy-y"),$.removeAttribute("data-wht-draftpos"))},At=()=>{if(Q<0)return;const t=_t();if(null===t)return ft=!1,vt=!1,Ct(!1),xt(Q),void(tt||mt(B(S[Q])?A:1e3*(isFinite(q.duration)&&q.duration>0?q.duration:A/1e3)));ft=!0,clearTimeout(tt),tt=null,Ct(!0);const e=S.findIndex(e=>String(e.event_id)===t);vt=e<0,e>=0&&e!==Q?zt(e):xt(Q)};yt&&(yt.addEventListener("whatmore-banner-draft",At),document.addEventListener("whatmore-banner-draft",At));const St=$.querySelector(".wht-neo-banner-media"),Et=()=>{if(W)return!0;let t=null;try{t=St&&St.getBoundingClientRect()}catch(Mt){return!1}return!!t&&t.width>0&&t.height>t.width};let It=null;const zt=t=>{Q=(t%S.length+S.length)%S.length,clearTimeout(tt);const e=S[Q];It=Et();const n=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape",o=e?"landscape":"portrait";if(n){if(B(t))return n.primary&&n.primary[a]&&n.primary[a].content_image_original||"";const r=(t,e)=>{const a=n[t]&&n[t][e];return a&&(a.content_video_1080p||a.content_video_original)||""},i=t=>n.secondary&&n.secondary[t]&&n.secondary[t].content_video_m3u8_original||"",s=!e&&(!r("primary",a)||r("primary",a)===r("primary",o)),l=i(a)||(e||s?i("portrait"):"");if(l)return l;const d=r("secondary",a);if(d)return d;const c=t.event_hls_url,u=c&&c.startsWith("https://cdn.shopify.com")&&c.includes(".mp4")?c:"";return!u||!e&&r("primary",a)&&r("primary",a)!==r("primary",o)?r("primary",a)||r("primary",o):u}return t.event_m3u8_url||t.event_hls_url||""}(e,It),a=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape";return n?n.secondary&&n.secondary[a]&&n.secondary[a].poster_image||n.primary&&n.primary[a]&&n.primary[a].poster_image||t.poster_image||"":t.poster_image||""}(e,It);if(xt(Q),!n)return pt(),q.style.display="none",void(F.style.display="none");if(B(e)){if(pt(),q.style.display="none",F.style.display="",!at||!et)return void(ot=!0);F.src=n,mt(A)}else{if(F.style.display="none",q.style.display="",!at||!et)return void(ot=!0);a&&(q.poster=a),rt();const t=()=>{isFinite(q.duration)&&q.duration>0&&mt(1e3*q.duration)};q.removeEventListener("loadedmetadata",t),q.addEventListener("loadedmetadata",t,{once:!0}),ht(n)}};V.addEventListener("click",t=>{t.stopPropagation(),zt(Q-1)}),U.addEventListener("click",t=>{t.stopPropagation(),zt(Q+1)}),G.forEach((t,e)=>t.addEventListener("click",t=>{t.stopPropagation(),zt(e)}));const Pt=t=>{t.stopPropagation(),nt=!nt,rt(),$.toggleAttribute("data-wht-sound",nt)};if(H.addEventListener("click",Pt),Y.addEventListener("click",t=>{if($.hasAttribute("data-wht-edit"))return t.stopPropagation(),void(t.target&&t.target.closest&&t.target.closest("a")&&t.preventDefault());const e=t.target&&t.target.closest?t.target.closest('a[data-wht-kind="button"]'):null;e&&Y.contains(e)&&(t.stopPropagation(),null===w||void 0===w||w(S[Q]),null===f||void 0===f||f(S[Q],Object.assign({},bt(S[Q])||{},{cta_title:e.textContent,cta_link:e.getAttribute("href")})))}),$.addEventListener("click",t=>{null===w||void 0===w||w(S[Q]);const e=(()=>{for(let t=0;t<D.fields.length;t++){const e=D.fields[t];if("button"!==e.def.kind)continue;const n=(gt[e.def.name]||[]).filter(t=>t&&t.link)[0];if(n)return n.link}return""})();N&&e?window.open(e,"_self"):Pt(t)}),"IntersectionObserver"in window){new IntersectionObserver(t=>{t.forEach(t=>{if(et=t.isIntersecting,rt(),et&&ot&&at)return ot=!1,void zt(Q);if(!B(S[Q]||{}))if(et){dt&&dt.resumeSource(q);const t=q.play();t&&t.catch&&t.catch(()=>{})}else q.pause(),dt&&dt.suspendSource(q)})},{threshold:.01}).observe($)}let jt=!1;if(window.addEventListener("resize",()=>{jt||(jt=!0,requestAnimationFrame(()=>{jt=!1;const t=W;W=T($,a,s,l),(W!==t||null!==It&&Et()!==It)&&zt(Q)}))},{passive:!0}),e.style.opacity="1",!at){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(e.disconnect(),at=!0,ot=!1,zt(Q))},{rootMargin:"200px 0px",threshold:0}).observe($)}const Ot=_t(),Lt=null===Ot?-1:S.findIndex(t=>String(t.event_id)===Ot);null!==Ot&&(ft=!0,vt=Lt<0,Ct(!0)),zt(Lt>=0?Lt:0);try{const t=()=>new CustomEvent("whatmore-banner-ready",{detail:{skin:P,fields:K.map(t=>Object.assign({},t))}});yt&&yt.dispatchEvent(t()),document.dispatchEvent(t())}catch(Mt){}if(h)if("IntersectionObserver"in window){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(h(),e.disconnect())},{threshold:0}).observe($)}else h();return R(),!0}},1839:function(t,e,n){function a(t,e){let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e}function o(t,e){if(!t||!e)return t||"";const n=document.createElement("style");n.media="not all",n.textContent=t,document.head.appendChild(n);let a=t;try{const t=n.sheet;t&&(r(t.cssRules,e),a=function(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].cssText+"\n";return e}(t.cssRules))}catch(o){}return n.remove(),a}function r(t,e){for(let n=0;n<t.length;n++){const a=t[n];void 0!==a.selectorText&&void 0!==a.style?a.selectorText=i(a.selectorText,e):!a.cssRules||"undefined"!==typeof CSSKeyframesRule&&a instanceof CSSKeyframesRule||r(a.cssRules,e)}}function i(t,e){return function(t){const e=[];let n=0,a="";for(let o=0;o<t.length;o++){const r=t[o];"("===r||"["===r?n++:")"!==r&&"]"!==r||n--,","===r&&0===n?(e.push(a),a=""):a+=r}return e.push(a),e}(t).map(t=>{const n=t.trim();return n?e+" "+n:n}).join(", ")}function s(t,e,n,a){if(!t)return null;const o=t[e];if(!o||"object"!==typeof o)return Object.assign({},t,{brandCss:""});const r="string"===typeof t.customCss?t.customCss:"",i=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],s=l(o.widgets,n)||l(i,n),d=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(a),c=d&&o[d]&&"object"===typeof o[d]?o[d]:null,u=s?Object.assign({},o,s):c?Object.assign({},o,c):o;return Object.assign({},u,{brandCss:r,perInstance:!!s,pageScoped:!!c})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const n=Array.isArray(e)?e:[e];for(let a=0;a<n.length;a++){const e=n[a];if(null==e||""===e)continue;const o=t[e];if(o&&"object"===typeof o)return o}return null}n.d(e,{GJ:function(){return o},RO:function(){return s},fz:function(){return a}})},7983:function(t,e,n){function a(t,e=!1){if(null==t)return{events:[],all_events:[]};if(e){return{events:t.events&&t.events[0]&&t.events[0].events||[],all_events:t.all_events||[]}}return{events:t.events||[],all_events:t.all_events||[]}}function o(t,e){if(null==t||!t.eventsets||!t.eventsets[e])return{events:[],all_events:[]};return{events:(Array.isArray(t.eventsets[e])?t.eventsets[e]:[]).reduce((t,e)=>t.concat(e&&e.events||[]),[]),all_events:[]}}function r(t){return!(void 0==t.products||0==t.products.length)}n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return o}})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5883],{1839:function(t,e,i){function n(t,e){let i=document.getElementById(t);i||(i=document.createElement("style"),i.id=t,document.head.appendChild(i)),i.textContent=e}function s(t,e){if(!t||!e)return t||"";const i=document.createElement("style");i.media="not all",i.textContent=t,document.head.appendChild(i);let n=t;try{const t=i.sheet;t&&(o(t.cssRules,e),n=function(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].cssText+"\n";return e}(t.cssRules))}catch(s){}return i.remove(),n}function o(t,e){for(let i=0;i<t.length;i++){const n=t[i];void 0!==n.selectorText&&void 0!==n.style?n.selectorText=r(n.selectorText,e):!n.cssRules||"undefined"!==typeof CSSKeyframesRule&&n instanceof CSSKeyframesRule||o(n.cssRules,e)}}function r(t,e){return function(t){const e=[];let i=0,n="";for(let s=0;s<t.length;s++){const o=t[s];"("===o||"["===o?i++:")"!==o&&"]"!==o||i--,","===o&&0===i?(e.push(n),n=""):n+=o}return e.push(n),e}(t).map(t=>{const i=t.trim();return i?e+" "+i:i}).join(", ")}function a(t,e,i,n){if(!t)return null;const s=t[e];if(!s||"object"!==typeof s)return Object.assign({},t,{brandCss:""});const o="string"===typeof t.customCss?t.customCss:"",r=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],a=l(s.widgets,i)||l(r,i),c=a?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(n),d=c&&s[c]&&"object"===typeof s[c]?s[c]:null,h=a?Object.assign({},s,a):d?Object.assign({},s,d):s;return Object.assign({},h,{brandCss:o,perInstance:!!a,pageScoped:!!d})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const i=Array.isArray(e)?e:[e];for(let n=0;n<i.length;n++){const e=i[n];if(null==e||""===e)continue;const s=t[e];if(s&&"object"===typeof s)return s}return null}i.d(e,{GJ:function(){return s},RO:function(){return a},fz:function(){return n}})},6563:function(t,e,i){i.r(e),i.d(e,{LOOKS:function(){return X},MAX_CARDS:function(){return G},ROUTE:function(){return U},guideIsOnFor:function(){return Z},guideUrl:function(){return et},layoutVars:function(){return st},pageRows:function(){return ot},parsePlacement:function(){return tt},renderNeoBuyingGuide:function(){return ht},resolveLook:function(){return it}});const n=8,s={tested:"Put to the test",compare:"Side by side",question:"Question",how_to:"How to",up_close:"Up close",style_it:"Style it"},o={products:t=>t+(1===t?" product":" products"),styles:t=>t+(1===t?" style":" styles"),readMore:"Read more",showLess:"Show less",view:"View",playing:"Playing",paused:"Paused",replaying:"Replaying",more:t=>t+" more",unavailable:"Clip unavailable",prev:"Previous product",next:"Next product",pause:"Pause",play:"Play",mute:"Mute",unmute:"Unmute",proof:"Who made this clip",list:"Products in these clips",watch:"Watch its clip",again:"Watch this one again",views:"views",likes:"likes"},r={pause:'<svg viewBox="0 0 16 16" fill="currentColor"><rect x="3.5" y="2.5" width="3" height="11" rx="1"/><rect x="9.5" y="2.5" width="3" height="11" rx="1"/></svg>',play:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M4 2.5v11l9-5.5z"/></svg>',muted:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M2 6h3l4-3v10l-4-3H2z"/><path d="M11 6l4 4m0-4l-4 4" stroke="currentColor" stroke-width="1.5"/></svg>',sound:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M2 6h3l4-3v10l-4-3H2z"/><path d="M11 5.5a3.5 3.5 0 010 5M12.8 3.8a6 6 0 010 8.4" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>',loop:'<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 8a5 5 0 018.5-3.5L13 6M13 2.5V6H9.5M13 8a5 5 0 01-8.5 3.5L3 10m0 3.5V10h3.5"/></svg>'},a=/\[([^\]]+)\]\(p:([^)\s]+)\)/g,l=t=>String(null==t?"":t).replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[t])),c=t=>String(null==t?0:t).split(":").reduce((t,e)=>60*t+(Number(e)||0),0),d=c,h=t=>null!=t&&""!==t&&Number.isFinite(Number(t))?Number(t)>=1e3?(Number(t)/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(t):"";function p(t){const e=new Set,i=[];for(const n of t.clips||[]){const s=String(n.product_id);e.has(s)||(e.add(s),i.push({...n,product_id:s,chip:t.chips&&t.chips[n.id]||n.shows||""}))}const s=[...String(t.body||"").matchAll(a)].map(t=>t[2]),o=t=>s.includes(t.product_id)?s.indexOf(t.product_id):1/0,r=i.map((t,e)=>[t,e]).sort((t,e)=>o(t[0])-o(e[0])||t[1]-e[1]).map(t=>t[0]).slice(0,n),l=Array.isArray(t.order)?t.order:[];if(!l.length)return r;const c=t=>l.indexOf(t.id)+1||1e9;return r.map((t,e)=>[t,e]).sort((t,e)=>c(t[0])-c(e[0])||t[1]-e[1]).map(t=>t[0])}function u(t,e,i,n,s,o){const r=n[t.product_id]||{};return`<div class="bg-tile" role="listitem" data-pid="${l(t.product_id)}">\n <button class="bg-tile-main" type="button" data-tile="${e}" aria-pressed="false" title="${l(s.again)}">\n <span class="bg-tile-img">${r.image?`<img loading="lazy" src="${l(r.image)}" alt="">`:""}${"how_to"===i?`<em>${e+1}</em>`:""}</span>\n <span class="bg-tile-info">\n <span class="bg-tile-state"></span>\n <span class="bg-tile-name">${l(r.style||r.title||"")}</span>\n <span class="bg-tile-print">${l(r.print||"")}</span>\n <span class="bg-tile-value" title="${l(t.answer||"")}">${l(t.chip)}</span>\n </span>\n </button>\n <div class="bg-tile-buy">\n <span class="bg-tile-price">${l(function(t,e){const i=Number(t);if(null==t||""===t||!Number.isFinite(i))return"";const n={style:"currency",currency:e||"USD",maximumFractionDigits:i%1?2:0};try{return new Intl.NumberFormat(void 0,{...n,currencyDisplay:"narrowSymbol"}).format(i)}catch(s){}try{return new Intl.NumberFormat(void 0,n).format(i)}catch(s){return String(t)}}(r.price,r.currency))}</span>\n ${r.link?`<a class="bg-tile-view" href="${l(r.link)}"${o} data-view="${l(t.product_id)}">${l(s.view)}</a>`:""}\n </div>\n <span class="bg-tile-bar"><b></b></span>\n </div>`}function g(t,e,i,n,c){const d=c||{},h=d.newTab?' target="_blank" rel="noopener"':"",p=i.products||{},g=t.format||"question",b=Object.keys(p).some(t=>p[t]&&p[t].print),f=new Set(e.map(t=>(p[t.product_id]||{}).style||t.product_id)).size,m=b?(n.styles||o.styles)(f):n.products(e.length),v="compare"===g&&Array.isArray(t.ends)&&2===t.ends.length?`<div class="bg-axis"><span>${l(t.ends[0])}</span><i></i><span>${l(t.ends[1])}</span></div>`:"",y=`<div class="bg-stage">\n <div class="bg-progress">${e.map(()=>"<i><b></b></i>").join("")}</div>\n <video class="wht-neo-video" muted playsinline preload="none"></video>\n <div class="bg-spinner" aria-hidden="true"></div>\n <button class="bg-nav prev" type="button" data-act="prev" aria-label="${l(n.prev)}"><i>\u2039</i></button>\n <button class="bg-nav next" type="button" data-act="next" aria-label="${l(n.next)}"><i>\u203a</i></button>\n <div class="bg-note" role="status" hidden></div>\n <div class="bg-proof" aria-label="${l(n.proof)}"></div>\n <div class="bg-ctl"><button class="bg-btn" type="button" data-act="play" aria-label="${l(n.pause)}">${r.pause}</button><button class="bg-btn" type="button" data-act="mute" aria-label="${l(n.unmute)}">${r.muted}</button></div>\n </div>`;return`<section class="bg-card fmt-${l(g)}" data-key="${l(t.key)}">\n <div class="bg-head">\n ${d.hideEyebrow?"":`<p class="bg-eyebrow">${l((n.formats||s)[g]||s.question)} \xb7 ${l(m)}</p>`}\n <h3 class="bg-title">${l(t.title)}</h3>\n ${v}\n </div>\n <div class="bg-a">\n <div class="bg-text">\n <div class="bg-body-wrap"><p class="bg-body">${function(t,e,i,n){const s=String(t||""),o=[];let r=0;for(const c of s.matchAll(a)){o.push(l(s.slice(r,c.index)));const t=e.has(c[2])?i[c[2]]:null;o.push(t?`<a class="bg-plink" href="${l(t.link||"#")}" data-pid="${l(c[2])}" title="${l(n.watch)}">${l(c[1])}</a>`:l(c[1])),r=c.index+c[0].length}return o.push(l(s.slice(r))),o.join("")}(t.body,new Set(e.map(t=>t.product_id)),p,n)}</p></div>\n <button class="bg-more" type="button" data-act="more" aria-expanded="false">${l(n.readMore)}</button>\n </div>\n <div class="bg-media">\n <div class="bg-videos">${e.map((t,e)=>function(t,e,i,n,s,o){const a=i[t.product_id]||{},c=((s||{})[t.video_key]||{}).poster||a.image||"";return`<div class="bg-vtile${0===e?" active":""}" data-tile="${e}" data-pid="${l(t.product_id)}" title="${l(n.again)}">${c?`<img loading="lazy" src="${l(c)}" alt="">`:""}<i class="bg-tile-play" aria-hidden="true">${r.play}</i>${o||""}</div>`}(t,e,p,n,i.videos,0===e?y:"")).join("")}</div>\n <div class="bg-rail" role="list" aria-label="${l(n.list)}">${e.map((t,e)=>u(t,e,g,p,n,h)).join("")}</div>\n </div>\n <button class="bg-slide-nav prev" type="button" data-act="prev" aria-label="${l(n.prev)}"><i>\u2039</i></button>\n <button class="bg-slide-nav next" type="button" data-act="next" aria-label="${l(n.next)}"><i>\u203a</i></button>\n </div>\n </section>`}const b=(t,e)=>e.querySelector(t),f=new Set;if("undefined"!==typeof document&&document.addEventListener){const t=()=>f.forEach(t=>t());document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&t()}),"undefined"!==typeof window&&window.addEventListener("pagehide",t)}class m{constructor(t,e,i){m.all.add(this),this.card=t,this.clips=e,this.opts=i||{},this.data=this.opts.data||{},this.labels=this.opts.labels||o,this.v=b("video",t),this.v.muted=!0,this.box=b(".bg-stage",t),this.rail=b(".bg-rail",t),this.tiles=Array.from(t.querySelectorAll(".bg-tile")),this.vtiles=Array.from(t.querySelectorAll(".bg-vtile")),this.bars=Array.from(t.querySelectorAll(".bg-progress b")),this.running=!1,this.started=!1,this.held=!!this.opts.reducedMotion,this.replays=0,this.userScrollAt=0,this.i=0,this.watchFrom=0,this.watchClip=null,this.watchDuration=null,this.startedClips=new Set;const n=this.v;n.addEventListener("playing",()=>this.startWatch()),n.addEventListener("durationchange",()=>this.noteDuration()),["pause","emptied"].forEach(t=>n.addEventListener(t,()=>this.flushWatch())),this.onPageHide=()=>{const t=!!this.watchClip&&!n.paused;this.flushWatch(),t&&this.startWatch()},f.add(this.onPageHide),n.addEventListener("loadedmetadata",()=>{this.fit(),this.seek(),this.running?this.tryPlay():this.setLoading(!1)}),n.addEventListener("timeupdate",()=>this.tick()),n.addEventListener("ended",()=>this.atEnd()),n.addEventListener("error",()=>{this.started&&n.getAttribute("data-src")&&this.fail()}),["waiting","seeking","stalled"].forEach(t=>n.addEventListener(t,()=>this.setLoading(this.running))),["playing","canplay","seeked"].forEach(t=>n.addEventListener(t,()=>this.setLoading(this.running&&n.readyState<3)));const s=b(".bg-media",t)||this.rail;["wheel","touchstart","pointerdown"].forEach(t=>s.addEventListener(t,()=>{this.userScrollAt=Date.now()},{passive:!0})),this.held&&this.setPlayIcon(!1),this.point(0),this.seat(),this.paint(!1)}seat(){const t=this.vtiles[this.i];if(!t||this.box.parentNode===t)return;const e=this.running&&!this.v.paused;t.appendChild(this.box),e&&this.tryPlay()}video(t){return(this.data.videos||{})[this.clips[t].video_key]||{}}tryPlay(){const t=this.v.play();t&&t.catch&&t.catch(()=>{})}seek(){try{this.v.currentTime=this.s}catch(t){}}setPlayIcon(t){const e=b('[data-act="play"]',this.card);e.innerHTML=t?r.pause:r.play,e.setAttribute("aria-label",t?this.labels.pause:this.labels.play)}point(t){const e=this.clips[t];this.i=t,this.s=c(e.start),this.e=Math.max(c(e.end),this.s+5)}noteDuration(){const t=this.v.duration;this.watchClip&&Number.isFinite(t)&&t>0&&(this.watchDuration=Math.round(10*t)/10)}startWatch(){this.watchFrom||(this.watchFrom=Date.now(),this.watchClip=this.clips[this.i],this.noteDuration(),this.startedClips.has(this.watchClip)||(this.startedClips.add(this.watchClip),this.opts.track&&this.opts.track.onClipStarted&&this.opts.track.onClipStarted(this.watchClip)))}flushWatch(){if(!this.watchFrom||!this.watchClip)return;const t=(Date.now()-this.watchFrom)/1e3,e=this.watchClip,i=this.watchDuration;this.watchFrom=0,this.watchClip=null,this.watchDuration=null,t>=1&&this.opts.track&&this.opts.track.onClipWatched&&this.opts.track.onClipWatched(e,{watchTime:Math.round(10*t)/10,duration:i,clipStart:d(e.start),clipEnd:d(e.end)})}go(t){this.flushWatch(),this.point(t),this.seat(),this.started=!0;const e=this.video(t);if(b(".bg-note",this.card).hidden=!0,this.v.getAttribute("data-src")!==(e.url||"")){if(this.v.setAttribute("data-src",e.url||""),e.poster&&(this.v.poster=e.poster),!e.url)return void this.fail();this.opts.setSource?this.opts.setSource(this.v,e.url):this.v.src=e.url,this.setLoading(this.running),this.running&&this.tryPlay()}else this.fit(),this.seek(),this.running&&this.tryPlay(),this.running&&!this.v.paused&&this.startWatch();this.warmNext(),this.paint(!0)}warmNext(){if(!this.running||this.replays>1||!this.opts.warm)return;const t=this.video(this.next()).url;t&&t!==this.v.getAttribute("data-src")&&t!==this.warmed&&(this.warmed=t,this.opts.warm(t))}fit(){const t=this.v.duration;!Number.isFinite(t)||t<=0||this.e<=t||(this.e=t,this.s=Math.max(0,Math.min(this.s,t-5)))}next(t){const e=t||1,i=this.clips.length;for(let n=1;n<=i;n++){const t=((this.i+e*n)%i+i)%i;if(!this.tiles[t].classList.contains("unavailable"))return t}return this.i}tick(){const t=this.v.currentTime;if(!this.started||t<this.s-.5)return;if(t>=this.e)return void this.atEnd();const e=Math.min(100,Math.max(0,100*(t-this.s)/(this.e-this.s)));this.bars.forEach((t,i)=>{t.style.width=i<this.i?"100%":i>this.i?"0":e+"%"});const i=this.tiles[this.i]&&this.tiles[this.i].querySelector(".bg-tile-bar b");i&&(i.style.width=e+"%")}atEnd(){const t=Date.now();if(!(t-(this.endedAt||0)<400)){if(this.endedAt=t,this.replays>1)return this.replays-=1,this.seek(),this.running&&this.tryPlay(),this.paint(!1),void this.warmNext();this.replays=0,this.go(this.next())}}setLoading(t){this.box.classList.toggle("loading",!!t),[this.tiles[this.i],this.vtiles[this.i]].forEach(e=>{e&&e.classList.toggle("loading",!!t)})}paint(t){const e=this.labels;this.tiles.forEach((t,i)=>{const n=i===this.i,s=n&&this.replays>0;t.classList.toggle("active",n),t.classList.toggle("looping",s),t.classList.toggle("paused",n&&!this.running),t.querySelector(".bg-tile-main").setAttribute("aria-pressed",String(s)),n?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current"),n||(t.querySelector(".bg-tile-bar b").style.width="0",t.classList.remove("loading")),t.querySelector(".bg-tile-state").innerHTML=t.classList.contains("unavailable")?l(e.unavailable):s?r.loop+" "+l(e.replaying)+(this.replays>1?" \xb7 "+l(e.more(this.replays-1)):""):n&&this.started?'<i class="eq"><b></b><b></b><b></b></i> '+l(this.running?e.playing:e.paused):""}),this.vtiles.forEach((t,e)=>{const i=e===this.i;t.classList.toggle("active",i),t.classList.toggle("paused",i&&!this.running),t.classList.toggle("unavailable",!!this.tiles[e]&&this.tiles[e].classList.contains("unavailable")),i||t.classList.remove("loading")});const i=this.clips[this.i].product_id;this.card.querySelectorAll(".bg-plink").forEach(t=>t.classList.toggle("watching",this.replays>0&&t.getAttribute("data-pid")===i));const n=this.video(this.i),s=n.handle?"@"+n.handle:this.opts.storeName||"",o=[null!=n.views&&""!==n.views&&h(n.views)+" "+e.views,null!=n.likes&&""!==n.likes&&h(n.likes)+" "+e.likes].filter(Boolean).join(" \xb7 ");b(".bg-proof",this.card).innerHTML=s?`<span class="pf-avatar">${l((n.handle||s)[0].toUpperCase())}</span><span class="pf-text"><b>${l(s)}</b>${o?`<em>${l(o)}</em>`:""}</span>`:"",t&&this.reveal()}reveal(){Date.now()-this.userScrollAt<2500||(this.bringIntoView(this.tiles[this.i]),this.bringIntoView(this.vtiles[this.i]))}bringIntoView(t){if(!t||"function"!==typeof getComputedStyle)return;const e=t.getBoundingClientRect();if(e.width||e.height)for(let i=t.parentElement;i&&i!==this.card;i=i.parentElement){const t=getComputedStyle(i),n=i.scrollWidth>i.clientWidth+1&&/auto|scroll/.test(t.overflowX),s=i.scrollHeight>i.clientHeight+1&&/auto|scroll/.test(t.overflowY);if((n||s)&&"function"===typeof i.scrollTo){const t=i.getBoundingClientRect();return void i.scrollTo({left:n?i.scrollLeft+(e.left-t.left)-(i.clientWidth-e.width)/2:i.scrollLeft,top:s?i.scrollTop+(e.top-t.top)-(i.clientHeight-e.height)/2:i.scrollTop,behavior:"smooth"})}}}watch(t){this.replay(t);const e=this.box.getBoundingClientRect(),i="undefined"!==typeof window&&window.innerHeight||0;(e.top<0||e.bottom>i)&&this.box.scrollIntoView&&this.box.scrollIntoView({block:"nearest",behavior:"smooth"})}replay(t){this.userScrollAt=0,this.replays=3,this.held=!1,this.setPlayIcon(!0),this.running=!0,this.go(t)}step(t){this.userScrollAt=0,this.replays=0,this.held=!1,this.setPlayIcon(!0),this.running=!0,this.go(this.next(t))}fail(){this.tiles[this.i].classList.add("unavailable"),this.vtiles[this.i]&&this.vtiles[this.i].classList.add("unavailable"),this.setLoading(!1);const t=b(".bg-note",this.card);t.textContent=this.labels.unavailable,t.hidden=!1,this.paint(!1),clearTimeout(this.failTimer),this.replays=0,this.failTimer=setTimeout(()=>{this.next()!==this.i&&this.go(this.next())},900)}play(){this.running=!this.held,this.running?this.started?(this.tryPlay(),this.warmNext(),this.paint(!1)):this.go(this.i):this.paint(!1)}pause(){this.running=!1,this.v.pause(),this.flushWatch(),this.setLoading(!1),this.paint(!1)}leave(){this.replays=0,this.pause()}toggle(){this.held=!this.held,this.setPlayIcon(!this.held),this.held?this.pause():this.play()}setMuted(t){this.v.muted=t;const e=b('[data-act="mute"]',this.card);e.innerHTML=t?r.muted:r.sound,e.setAttribute("aria-label",t?this.labels.unmute:this.labels.mute)}mute(){const t=this.v.muted;if(t&&m.all.forEach(t=>{t!==this&&t.setMuted(!0)}),this.setMuted(!t),!t||!this.running)return;const e=this.v.play();e&&e.catch&&e.catch(()=>{this.setMuted(!0),this.running&&this.tryPlay()})}destroy(){m.all.delete(this),clearTimeout(this.failTimer),this.running=!1;try{this.v.pause()}catch(t){}if(this.flushWatch(),f.delete(this.onPageHide),this.opts.releaseSource)this.opts.releaseSource(this.v);else{this.v.removeAttribute("src");try{this.v.load()}catch(t){}}}}m.all=new Set;const v=/recent|recommend|upsell|cross-sell|related/i,y=new Set(["SCRIPT","TEMPLATE","STYLE","LINK","NOSCRIPT"]),x=4,w="data-wht-bg-card",k="data-wht-bg-pad",S=2,E=12,C=1e4,A=[700,2500];function L(t){const e=/\/products\/([^/?#]+)/.exec(String(t||""));if(!e)return"";try{return decodeURIComponent(e[1]).toLowerCase()}catch(i){return e[1].toLowerCase()}}function $(t){const e=new Set;return t.forEach(t=>{(t.matches&&t.matches(M)?[t]:Array.from(t.querySelectorAll(M))).forEach(t=>{const i=L(t.getAttribute("href"));i&&e.add(i)})}),e}const _=t=>!y.has(t.tagName)&&!t.hasAttribute(w)&&"none"!==getComputedStyle(t).display,T=t=>{const e=getComputedStyle(t);return e.float&&"none"!==e.float||"inline-block"===e.display},M='a[href*="/products/"]',R=t=>t.matches&&t.matches(M)||!!t.querySelector(M);function z(t){return t.some(t=>t.offsetHeight>0)?t.filter(t=>R(t)||t.offsetHeight>0&&t.offsetWidth>0):t}function P(t){const e=t||document,i=e.querySelector('main, #MainContent, [role="main"]')||e.body||e,n=e.body||e;if(!i)return null;const s=new Set;let o=null;return i.querySelectorAll('a[href*="/products/"]').forEach(t=>{for(let r=t.parentElement,a=0;r&&r!==i&&a<18;r=r.parentElement,a++){if(s.has(r))continue;s.add(r);const t=Array.from(r.children).filter(_),i=t.filter(R);if(i.length<4||i.length/t.length<.6)continue;if(e.body&&$(i.slice(0,12)).size<4)continue;const a=getComputedStyle(r),l=a.display.includes("grid")||a.display.includes("flex")&&"wrap"===a.flexWrap,c=!l&&/^(block|flow-root|list-item)$/.test(a.display)&&T(i[0])&&T(i[1]);if(!l&&!c)continue;const d=r.scrollWidth-r.clientWidth;if(d>4&&/auto|scroll/.test(a.overflowX)||d>.5*r.clientWidth)continue;if(l&&a.display.includes("grid")&&String(a.gridAutoFlow||"").includes("column"))continue;let h=!1;for(let e=r;e&&e!==n;e=e.parentElement)if(v.test(e.id+" "+("string"===typeof e.className?e.className:"")+" "+e.tagName)){h=!0;break}h||o&&!(i.length>o.items.length)||(o={grid:r,items:i,tiles:z(t),flow:c})}}),o}function I(t){if(!t.length)return[];const e=t.some(e=>e.offsetTop!==t[0].offsetTop),i=t=>e?t.offsetTop:t.getBoundingClientRect().top,n=[0];let s=i(t[0]);for(let o=1;o<t.length;o++){const e=i(t[o]);Math.abs(e-s)>=4&&(n.push(o),s=e)}return n}const N=t=>parseFloat(t)||0,B={marginTop:"0px",marginBottom:"0px",padding:"0px"};function O(t,e,i){const n=(t||document).createElement(e);return n.setAttribute(w,i||""),Object.assign(n.style,{display:"block",gridColumn:"1 / -1",gridRow:"auto",gridTemplateRows:"none",flex:"0 0 100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",listStyle:"none",margin:"0",padding:"0",float:"none",clear:"both"}),n}function j({slots:t,anchor:e=null,mode:i="grid",firstRows:n=2,everyRows:s=3,minBefore:o=x,doc:r,slotProducts:a=null,isFiltered:l=null,onSwap:c=null}){const d=r||document,h=d.ownerDocument||d;let p="none",u=null,g=null,b=!1;const f="function"===typeof ResizeObserver?new ResizeObserver(()=>H()):null,m=t.map(t=>t.firstElementChild),v=t.map(t=>t.getAttribute(w)||"");const y=t=>{const e=[];for(let i=t.nextElementSibling;i&&i.hasAttribute(k);i=i.nextElementSibling)e.push(i);return e},L=t=>{let e=t.nextElementSibling;for(;e&&e.hasAttribute(k);)e=e.nextElementSibling;return e},_=t=>{y(t).forEach(t=>t.remove()),t.remove()};let T=[],M=!1,R=[];const z=h.defaultView||("undefined"!==typeof window?window:null),j=d===h&&z&&"function"===typeof z.scrollBy;function q(t,e){if(!j)return null;const i=function(t){for(let e=t.parentElement;e&&e!==h.body&&e!==h.documentElement;e=e.parentElement){const t=getComputedStyle(e).overflowY;if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight+1)return e}return null}(e);if(!((i?i.scrollTop:z.pageYOffset)>0))return null;const n=i?i.getBoundingClientRect().top:0,s=t.find(t=>t.getBoundingClientRect().top>=n);return s?{el:s,top:s.getBoundingClientRect().top,box:i}:null}function W(){const r="grid"!==i||M?null:P(d);if(!r)return R=[],void function(){if(!e)return t.forEach(_),void(p="none");t.forEach((t,i)=>{Object.assign(t.style,B),y(t).forEach(t=>t.remove()),t.parentElement===e&&e.children[i]===t||e.insertBefore(t,e.children[i]||null)}),p="anchor"}();const c=a&&l&&l()?$(r.items):null,g=c?t.filter((t,e)=>(a[e]||[]).filter(t=>c.has(t)).length>=S):t,b=q(r.items,r.grid);t.forEach(t=>{g.includes(t)||_(t)});const m=t.filter(t=>t.parentElement===r.grid);m.forEach(t=>{t.style.position="absolute"});const v=I(r.tiles),x=function(t){const e=I(t);return e.reduce((i,n,s)=>Math.max(i,(s+1<e.length?e[s+1]:t.length)-n),1)}(r.tiles);m.forEach(t=>{t.style.position=""});const w=v.length>1?r.tiles[v[1]]:null,E=function(t){const e=getComputedStyle(t),i=N(e.borderTopWidth)+N(e.borderBottomWidth)>0||!/^(|transparent|rgba\(0, 0, 0, 0\))$/.test(e.backgroundColor||"")||!/^(|none)$/.test(e.boxShadow||""),n=t=>Math.min(120,Math.max(0,Math.round(N(t))))+"px";return{marginTop:n(e.marginTop),marginBottom:n(e.marginBottom),padding:i?"0px":[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft].map(n).join(" ")}}(w&&r.items.includes(w)?w:r.items[0]);let C=Math.min(n,v.length);for(;C<v.length&&v[C]<o;)C++;R=[],g.forEach((t,e)=>{Object.assign(t.style,E);const i=C+e*s,n=i<v.length?r.tiles[v[i]]:null,o=t.parentElement===r.grid;if(n)o&&L(t)===n||(y(t).forEach(t=>t.remove()),r.grid.insertBefore(t,n));else{if(0!==e)return void _(t);o&&!L(t)||(y(t).forEach(t=>t.remove()),r.grid.appendChild(t))}!function(t,e){const i=y(t);i.slice(e).forEach(t=>t.remove());for(let n=i.length;n<e;n++){const e=h.createElement(t.tagName.toLowerCase());e.setAttribute(k,""),e.setAttribute("aria-hidden","true"),e.hidden=!0,e.style.setProperty("display","none","important"),t.parentElement.insertBefore(e,t.nextSibling)}}(t,x-1),R.push(t)}),function(t){if(!t||!t.el.isConnected)return;const e=t.el.getBoundingClientRect().top-t.top;Math.abs(e)<=1||(t.box?t.box.scrollTop+=e:z.scrollBy(0,e))}(b),f&&u!==r.items[0]&&(f.disconnect(),f.observe(r.items[0]),u=r.items[0]),p="grid"}function D(){if(b)return;if(function(){let e=0;return t.forEach((i,n)=>{const s=m[n];if(!s||i.hasAttribute(w)&&s.parentElement===i)return;const o=O(h,i.tagName.toLowerCase(),v[n]);if(o.appendChild(s),i.hasAttribute(w)&&i.remove(),t[n]=o,e++,c)try{c(i,o)}catch(r){}}),e}()+R.filter(e=>t.includes(e)&&!e.isConnected).length){const t=Date.now();T=T.filter(e=>t-e<C),T.push(t),T.length>E&&(M=!0)}W(),G&&(G.takeRecords(),U&&!U.isConnected&&(G.disconnect(),U=V(),G.observe(U,{childList:!0,subtree:!0})))}let F=[];function H(){clearTimeout(g),F.forEach(clearTimeout),g=setTimeout(()=>{D(),F=A.map(t=>setTimeout(D,t))},120)}const V=()=>d.querySelector("main")||d.body||d;let U=null;const G="function"===typeof MutationObserver?new MutationObserver(()=>H()):null;return G&&(U=V(),G.observe(U,{childList:!0,subtree:!0})),z&&z.addEventListener("resize",H),h.addEventListener("shopify:section:load",H),h.addEventListener("shopify:section:unload",H),D(),F=A.map(t=>setTimeout(D,t)),{placedIn:()=>p,stop(){b=!0,clearTimeout(g),F.forEach(clearTimeout),t.forEach(t=>y(t).forEach(t=>t.remove())),G&&G.disconnect(),f&&f.disconnect(),z&&z.removeEventListener("resize",H),h.removeEventListener("shopify:section:load",H),h.removeEventListener("shopify:section:unload",H)}}}var q=i(1839),W=i(3959),D=i(651),F=i(6387),H=':host{--ink:var(--wht-neo-bg-ink,#1f2421);--ink-2:var(--wht-neo-bg-ink-2,#4a524c);--muted:var(--wht-neo-bg-muted,#7e867f);--accent:var(--wht-neo-bg-accent,#1f2421);--accent-ink:var(--wht-neo-bg-accent-ink,#5b645d);--line:var(--wht-neo-bg-line,#e4e6e3);--soft:var(--wht-neo-bg-soft,#f1f3f0);--card:var(--wht-neo-bg-card,#fff);--radius:var(--wht-neo-bg-radius,14px);--slide:var(--wht-neo-bg-slide,clamp(150px,15cqw,192px));--text-col:var(--wht-neo-bg-text-col,minmax(240px,32%));--list-col:var(--wht-neo-bg-list-col,clamp(232px,23cqw,280px));color:var(--ink);display:block!important;font-size:var(--wht-neo-bg-font-size,15px);line-height:1.4;text-align:left}*{box-sizing:border-box}button{color:inherit;cursor:pointer;font:inherit}[hidden]{display:none!important}.wm-frame{container-type:inline-size;margin:var(--wht-neo-bg-margin,8px auto);max-width:var(--wht-neo-bg-maxw,none)}.bg-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow-anchor:none}.bg-head{padding:24px 28px 18px}.bg-eyebrow{color:var(--accent-ink);font-size:10.8px;font-weight:500;letter-spacing:1.94px;margin:0 0 8px;text-transform:uppercase}.bg-title{color:var(--ink);font-family:var(--wht-neo-bg-title-font,inherit);font-size:18px;font-weight:var(--wht-neo-bg-title-weight,500);letter-spacing:-.18px;line-height:1.35;margin:0}.bg-axis{align-items:center;color:var(--muted);display:flex;font-size:12px;gap:10px;margin-top:12px;max-width:420px}.bg-axis i{background:linear-gradient(90deg,var(--soft),var(--accent));border-radius:2px;flex:1;height:2px}.bg-a{align-items:start;display:grid;gap:24px;grid-template-columns:minmax(0,1fr) 220px 300px;padding:0 28px 26px}.bg-media{display:contents}.bg-text{align-self:stretch;display:flex;flex-direction:column;gap:12px;min-width:0}.bg-body{color:var(--ink-2);font-size:15px;letter-spacing:.2px;line-height:1.7;margin:-6px 0 0}.bg-plink{border-radius:3px;color:var(--ink);cursor:pointer;font-weight:500;text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1.5px;text-underline-offset:3px;transition:background .15s}.bg-plink.watching,.bg-plink:focus-visible,.bg-plink:hover{background:var(--soft);outline:none;text-decoration-color:var(--accent)}.bg-more{align-self:flex-start;background:none;border:0;color:var(--ink);display:none;font-size:13px;font-weight:600;padding:0}.bg-more:after{content:" \u25be"}.bg-text.open .bg-more:after{content:" \u25b4"}.bg-videos{align-self:start;min-width:0;position:relative}.bg-vtile{aspect-ratio:9/16;background:#111;border-radius:12px;cursor:pointer;display:none;overflow:hidden;position:relative}.bg-vtile.active{display:block}.bg-vtile>img{display:block;height:100%;object-fit:cover;width:100%}.bg-vtile.unavailable>img{opacity:.5}.bg-tile-play{background:hsla(0,0%,8%,.55);border-radius:50%;color:#fff;display:grid;height:40px;left:50%;place-items:center;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:40px}.bg-tile-play svg{height:16px;margin-left:2px;width:16px}.bg-stage{background:#111;cursor:default;inset:0;position:absolute}.bg-stage video{display:block;height:100%;object-fit:cover;width:100%}.bg-stage:before{background:linear-gradient(rgba(0,0,0,.5),transparent);content:"";height:84px;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.bg-progress{display:flex;gap:4px;left:8px;position:absolute;right:8px;top:8px;z-index:2}.bg-progress i{background:hsla(0,0%,100%,.35);border-radius:2px;flex:1;height:3px;overflow:hidden}.bg-progress b{background:#fff;display:block;height:100%;width:0}.bg-proof{align-items:center;color:#fff;display:flex;gap:7px;left:10px;pointer-events:none;position:absolute;right:10px;text-shadow:0 1px 2px rgba(0,0,0,.5);top:20px;z-index:2}.bg-proof:empty{display:none}.pf-avatar{background:hsla(0,0%,100%,.92);border-radius:50%;color:#333;display:grid;flex:none;font-size:11px;font-weight:700;height:24px;place-items:center;text-shadow:none;width:24px}.pf-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}.pf-text b{font-size:12px;font-weight:600}.pf-text b,.pf-text em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pf-text em{font-size:11px;font-style:normal;opacity:.9}.bg-nav{align-items:center;background:transparent;border:0;bottom:60px;display:flex;padding:0 8px;position:absolute;top:28px;width:34%;z-index:2}.bg-nav.prev{justify-content:flex-start;left:0}.bg-nav.next{justify-content:flex-end;right:0}.bg-nav i{background:hsla(0,0%,8%,.45);border-radius:50%;color:#fff;display:grid;font-size:20px;font-style:normal;height:30px;line-height:1;opacity:0;place-items:center;transition:opacity .15s;width:30px}.bg-nav:focus-visible i,.bg-stage:hover .bg-nav i{opacity:1}@media (hover:none){.bg-nav i{opacity:.55}}.bg-spinner{animation:bg-spin .8s linear infinite;border:3px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:34px;inset:0;margin:auto;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s;width:34px;z-index:2}.bg-stage.loading .bg-spinner{opacity:1}.bg-note{background:rgba(0,0,0,.65);border-radius:8px;bottom:58px;color:#fff;font-size:12px;left:10px;padding:6px;text-align:center}.bg-ctl,.bg-note{position:absolute;right:10px;z-index:3}.bg-ctl{bottom:10px;display:flex;gap:8px}.bg-btn{background:hsla(0,0%,8%,.7);border:0;border-radius:50%;color:#fff;display:grid;height:34px;padding:0;place-items:center;width:34px}.bg-btn svg{height:14px;width:14px}.bg-rail{display:flex;flex-direction:column;max-height:391.11111px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scroll-snap-type:y proximity;scrollbar-width:thin}.bg-rail,.bg-tile{gap:8px;position:relative}.bg-tile{align-items:center;background:var(--card);border:1px solid var(--line);border-radius:12px;display:grid;flex:none;grid-template-columns:minmax(0,1fr) auto;overflow:hidden;padding:8px 10px 10px 8px;scroll-snap-align:start;transition:border-color .15s,background .15s,box-shadow .15s,opacity .15s}.bg-tile:hover{border-color:var(--muted)}.bg-tile-main{align-items:center;background:none;border:0;display:grid;gap:10px;grid-template-columns:48px minmax(0,1fr);min-width:0;padding:0;text-align:left}.bg-tile-main:focus-visible{border-radius:8px;outline:2px solid var(--accent);outline-offset:3px}.bg-tile-img{background:var(--soft);border-radius:8px;height:62px;overflow:hidden;position:relative;width:48px}.bg-tile-img img{display:block;height:100%;object-fit:cover;width:100%}.bg-tile-img em{background:var(--accent);border-radius:50%;color:#fff;display:grid;font-size:10.5px;font-style:normal;font-weight:600;height:18px;left:4px;place-items:center;position:absolute;top:4px;width:18px}.bg-tile-info{display:flex;flex-direction:column;gap:1px;min-width:0}.bg-tile-state{align-items:center;color:var(--accent-ink);display:inline-flex;font-size:10px;font-weight:600;gap:5px;letter-spacing:.8px;text-transform:uppercase}.bg-tile-state:empty{display:none}.bg-tile-state svg{height:11px;width:11px}.bg-tile-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--ink);display:-webkit-box;font-size:13.5px;font-weight:500;line-height:1.3;overflow:hidden}.bg-tile-print{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-tile-print:empty{display:none}.bg-tile-value{color:var(--ink-2);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-tile-buy{align-items:flex-end;display:flex;flex-direction:column;gap:6px}.bg-tile-price{color:var(--ink);font-size:13px}.bg-tile-price,.bg-tile-view{font-weight:500;white-space:nowrap}.bg-tile-view{background:var(--wht-neo-bg-cta,var(--accent));border-radius:999px;color:var(--wht-neo-bg-cta-ink,#fff);font-size:12px;padding:5px 12px;text-decoration:none}.bg-tile-view:hover{opacity:.85}.bg-tile-bar{bottom:0;height:3px;left:0;overflow:hidden;position:absolute;right:0}.bg-tile-bar b{background:var(--accent);display:block;height:100%;width:0}.bg-tile.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.bg-tile.active .bg-tile-bar,.bg-tile.hl,.bg-tile.looping{background:var(--soft)}.bg-tile.hl{border-color:var(--accent)}.bg-tile.loading .bg-tile-bar b{animation:bg-shimmer 1.1s linear infinite;width:30%!important}.bg-tile.unavailable{opacity:.5}.eq{align-items:flex-end;display:inline-flex;gap:1.5px;height:9px}.eq b{animation:bg-eq .9s ease-in-out infinite;background:currentColor;width:2px}.eq b:nth-child(2){animation-delay:.2s}.eq b:nth-child(3){animation-delay:.4s}.paused .eq b{animation:none;height:4px}.bg-slide-nav{display:none}@keyframes bg-spin{to{transform:rotate(1turn)}}@keyframes bg-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(340%)}}@keyframes bg-eq{0%,to{height:3px}50%{height:9px}}@media (prefers-reduced-motion:reduce){.bg-tile.loading .bg-tile-bar b,.eq b{animation:none}}@container (min-width: 901px){.bg-a{grid-template-columns:var(--text-col) minmax(0,1fr) var(--list-col)}.bg-text{grid-column:1;grid-row:1}.bg-videos{display:flex;gap:12px;grid-column:2;grid-row:1;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:2px;scroll-snap-type:x proximity;scrollbar-width:thin}.bg-vtile{display:block;flex:0 0 var(--slide);scroll-snap-align:start}.bg-vtile.active{outline:2px solid var(--accent);outline-offset:0}.bg-stage .bg-nav,.bg-stage .bg-progress{display:none}.bg-stage .bg-proof{top:10px}.bg-rail{grid-column:3;grid-row:1;max-height:calc(var(--slide)*16/9 + 4px)}.bg-slide-nav{align-self:start;background:var(--card);border:1px solid var(--line);border-radius:50%;color:var(--ink);display:grid;grid-column:2;grid-row:1;height:34px;margin-top:calc(var(--slide)*8/9 - 15px);padding:0;place-items:center;transition:border-color .15s;width:34px;z-index:3}.bg-slide-nav:focus-visible,.bg-slide-nav:hover{border-color:var(--ink);outline:none}.bg-slide-nav i{font-size:20px;font-style:normal;line-height:1;margin-top:-2px}.bg-slide-nav.prev{justify-self:start;margin-left:-14px}.bg-slide-nav.next{justify-self:end;margin-right:-14px}}@media (hover:none){.bg-slide-nav{display:none!important}}@container (max-width: 900px){.bg-a{grid-template-columns:220px minmax(0,1fr)}.bg-text{grid-column:1/-1}}@container (max-width: 640px){.bg-head{padding:18px 18px 14px}.bg-title{font-size:16px}.bg-a{gap:14px;grid-template-columns:minmax(0,1fr);padding:0 18px 20px}.bg-videos{justify-self:center;max-width:240px;width:100%}.bg-body-wrap{font-size:15px;-webkit-mask-image:linear-gradient(#000 calc(100% - 2.2em),transparent);mask-image:linear-gradient(#000 calc(100% - 2.2em),transparent);max-height:7.2em;overflow:hidden;position:relative;transition:max-height .35s ease}.bg-text.open .bg-body-wrap{-webkit-mask-image:none;mask-image:none;max-height:60em}.bg-more{display:inline-block}.bg-text{gap:8px}.bg-rail{flex-direction:row;margin:0 -18px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 18px;scroll-snap-type:x mandatory}.bg-tile{flex:0 0 82%;scroll-snap-align:center}}';const V="buyingGuide",U="/v1/brand/{store_id}/buying-guide",G=5,K=3,X=["a","b","c","d","e","f","g","h"],Y="[data-wht-bg-page]",J="whatmoreBuyingGuideDraft";function Q(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}function Z(t,e){const i=t&&t[V];if(!i||!0!==i.enabled)return!1;return(Array.isArray(i.collections)?i.collections.map(String):[]).includes(String(e))}function tt(t){const e=/^after_row_([1-9])$/.exec(String(t||""));return e?{mode:"grid",firstRows:Number(e[1])}:"above"===t||"below"===t?{mode:t,firstRows:2}:{mode:"grid",firstRows:2}}function et(t,e){return(0,D.y0)(Q(),U,t)+"?client_collection_id="+encodeURIComponent(e)}async function it(t,e){const i=(0,q.RO)(t,V)||{},n=String(e||i.skin||"a").toLowerCase(),s=X.includes(n)?n:"a",o=i.customCss,r="string"===typeof o?o:o&&"object"===typeof o&&"string"===typeof o[s]?o[s]:"",a="a"===s?"":await(0,F.P)(V,s);return{look:s,css:H+(a?"\n"+a:"")+("string"===typeof i.brandCss&&i.brandCss?"\n"+i.brandCss:"")+(r?"\n"+r:"")}}const nt=(t,e,i)=>{const n=Number(t);return null!==t&&void 0!==t&&""!==t&&Number.isFinite(n)?Math.min(i,Math.max(e,Math.round(n))):null};function st(t){const e=nt(t&&t.spaceAbove,0,200),i=nt(t&&t.spaceBelow,0,200),n=nt(t&&t.maxWidth,320,2e3),s={};return null===e&&null===i||(s["--wht-neo-bg-margin"]=(null===e?8:e)+"px auto "+(null===i?8:i)+"px"),null!==n&&(s["--wht-neo-bg-maxw"]=n+"px"),s}function ot(t){const e=/^\s*(\d)\s*,\s*(\d)\s*$/.exec(t&&t.getAttribute&&t.getAttribute("data-wht-bg-rows")||"");return e&&Number(e[2])>0?{first:Number(e[1]),every:Number(e[2])}:null}let rt=null;function at(t,e){rt||(rt=Promise.all([i.e(1296,"high"),i.e(4071,"high")]).then(i.bind(i,725))),rt.then(i=>{t.getAttribute("data-src")===e&&i.attachSource(t,e,i.PRIORITY.ACTIVE,{bufferAhead:12})}).catch(()=>{t.src=e})}let lt=null;function ct(t){rt&&rt.then(e=>{lt||(lt=document.createElement("video"),lt.muted=!0,lt.playsInline=!0),e.attachSource(lt,t,e.PRIORITY.NEXT)}).catch(()=>{})}function dt(t){if(rt)rt.then(e=>e.releaseSource(t)).catch(()=>{});else{t.removeAttribute("src");try{t.load()}catch(e){}}}async function ht(t){const{rootElement:e,widgetContainer:i,shopId:n,collectionId:r,neoJson:a,mode:l="embed",preview:c=!1,designMode:d=!1,onWidgetView:h,onClipStarted:u,onClipWatched:b,onProductView:f}=t;if(!n||!r||"0"===String(r))return!1;const v=i&&i.closest&&i.closest(Y)||null,y=!v&&(void 0!==t.pinned?t.pinned:"block"===l),w=v||document,k=ot(v),S=window.__whtBuyingGuide;if("embed"===l&&S&&"block"===S.mode&&S.collectionId===String(r))return!0;if("embed"===l&&!c&&!Z(a,r))return!1;let E=function(t){const e=t&&t.querySelector("#"+J);if(!e)return null;try{const t=JSON.parse(e.textContent||"");return t&&Array.isArray(t.cards)?t:null}catch(i){return null}}(i);if(!E)try{E=await fetch(et(n,r)).then(t=>t.ok?t.json():null)}catch(mt){E=null}const C=(E&&E.cards||[]).slice(0,v?G+1:G);if(!C.length)return!1;let A=null;try{A=new URLSearchParams(window.location.search).get("neoskin")}catch(mt){}const{look:$,css:_}=await it(a,A),T=(0,q.RO)(a,V)||{},M=st(T),R={hideEyebrow:!0===T.hideEyebrow,newTab:!!d||!!v};if("embed"===l&&window.__whtBuyingGuide&&"block"===window.__whtBuyingGuide.mode)return!0;!function(){const t=window.__whtBuyingGuide;if(t){try{t.placer&&t.placer.stop()}catch(mt){}try{t.io&&t.io.disconnect()}catch(mt){}(t.stages||[]).forEach(t=>{try{t.destroy()}catch(mt){}}),(t.slots||[]).forEach(t=>t.remove()),lt&&(dt(lt),lt=null),t.around&&t.around.remove(),window.__whtBuyingGuide=null}}();try{const t=window.Shopify&&window.Shopify.currency&&window.Shopify.currency.active;t&&Object.values(E.products||{}).forEach(e=>{e.currency=t})}catch(mt){}const z=function(){const t=Object.assign({},o),e=(t,e)=>(0,W.rB)("buying_guide_"+t,e);return["readMore","showLess","view","playing","paused","replaying","unavailable","prev","next","pause","play","mute","unmute","views","likes"].forEach(i=>{t[i]=e(i.replace(/[A-Z]/g,t=>"_"+t.toLowerCase()),o[i])}),t.formats=Object.fromEntries(Object.keys(s).map(t=>[t,e("format_"+t,s[t])])),t}(),I=Q(),N=E.store_name||(I&&"string"===typeof I.brand_name?I.brand_name:"")||"",B=C.map(t=>p(t).map(t=>L(((E.products||{})[t.product_id]||{}).link)).filter(Boolean)),D=!(!window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches),F=t=>(E.products||{})[t.product_id]||null,H={onClipStarted:u?t=>u(t,F(t)):null,onClipWatched:b?(t,e)=>b(t,e,F(t)):null,onProductView:f?t=>f(t,F(t)):null},U=y?{mode:"pinned",firstRows:2}:tt(E.placement),X=P(w),nt="grid"===U.mode&&X&&"LI"===X.items[0].tagName?"li":"div",rt=[],ht=C.map(t=>{const e=O(document,nt,t.key),i=document.createElement("div");i.className="wht-neo-bg",i.setAttribute("data-wht-look",$),i.style.setProperty("display","block","important"),Object.keys(M).forEach(t=>i.style.setProperty(t,M[t])),e.appendChild(i);const n=i.attachShadow({mode:"open"}),s=p(t);n.innerHTML="<style>"+_+'</style><div class="wm-frame" data-wht-look="'+$+'">'+g(t,s,E,z,R)+"</div>";const o=n.querySelector(".bg-card");return o._stage=new m(o,s,{data:E,labels:z,storeName:N,setSource:at,releaseSource:dt,warm:ct,track:H,reducedMotion:D}),rt.push(o._stage),function(t){const e=t=>{const e=t&&t.closest(".bg-card");return e?e._stage:null};t.addEventListener("click",t=>{const i=t.target,n=i.closest&&i.closest(".bg-plink");if(n){if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const i=e(n),s=i?i.clips.findIndex(t=>t.product_id===n.getAttribute("data-pid")):-1;if(s<0)return;return t.preventDefault(),void i.watch(s)}const s=i.closest&&i.closest("[data-view]");if(s){const t=e(s),i=t&&t.clips.find(t=>t.product_id===s.getAttribute("data-view"));return void(i&&t.opts.track&&t.opts.track.onProductView&&t.opts.track.onProductView(i))}const o=i.closest&&i.closest("[data-tile],[data-act]"),r=e(o);if(!r)return;if(o.hasAttribute("data-tile")&&i.closest(".bg-stage"))return;const a=o.getAttribute("data-act");if(o.hasAttribute("data-tile"))r.replay(Number(o.getAttribute("data-tile")));else if("play"===a)r.toggle();else if("mute"===a)r.mute();else if("prev"===a)r.step(-1);else if("next"===a)r.step(1);else if("more"===a){const t=o.closest(".bg-text").classList.toggle("open");o.textContent=t?r.labels.showLess:r.labels.readMore,o.setAttribute("aria-expanded",String(t))}}),t.addEventListener("keydown",t=>{const e=t.target.closest&&t.target.closest(".bg-tile-main"),i={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1}[t.key];if(!e||!i)return;t.preventDefault();const n=Array.from(e.closest(".bg-rail").querySelectorAll(".bg-tile-main"));n[(n.indexOf(e)+i+n.length)%n.length].focus()}),[["mouseover",!0],["mouseout",!1],["focusin",!0],["focusout",!1]].forEach(([e,i])=>{t.addEventListener(e,t=>{const e=t.target.closest&&t.target.closest(".bg-plink");e&&e.closest(".bg-card").querySelectorAll(".bg-tile").forEach(t=>{t.getAttribute("data-pid")===e.getAttribute("data-pid")&&t.classList.toggle("hl",i)})})})}(n),e});let pt="block"===l?e:null,ut=null;"above"!==U.mode&&"below"!==U.mode||y||!X||(ut=document.createElement("div"),ut.setAttribute("data-wht-bg-around",U.mode),X.grid.parentElement.insertBefore(ut,"above"===U.mode?X.grid:X.grid.nextSibling),pt=ut);let gt=!1,bt=null;const ft=j({slots:ht,anchor:pt,mode:"grid"===U.mode?"grid":"anchor",firstRows:k?k.first:U.firstRows,everyRows:k?k.every:K,minBefore:k?0:x,doc:w,slotProducts:v?null:B,isFiltered:v?null:()=>function(t){try{return Array.from(new URLSearchParams(t||"").entries()).some(([t,e])=>0===t.indexOf("filter.")&&""!==e)}catch(mt){return!1}}(window.location.search),onSwap:(t,e)=>{bt&&(bt.unobserve(t),bt.observe(e))}});return"none"===ft.placedIn()?(ft.stop(),rt.forEach(t=>t.destroy()),!1):("function"===typeof IntersectionObserver?(bt=new IntersectionObserver(t=>t.forEach(t=>{const e=rt[ht.indexOf(t.target)];e&&(t.isIntersecting&&t.intersectionRatio>=.25&&!gt&&(gt=!0,h&&h()),t.isIntersecting&&t.intersectionRatio>=.5?e.play():e.leave())}),{threshold:[0,.25,.5]}),ht.forEach(t=>bt.observe(t))):(h&&h(),rt.forEach(t=>t.play())),window.__whtBuyingGuide={mode:l,look:$,collectionId:String(r),placer:ft,io:bt,stages:rt,slots:ht,around:ut,placedIn:()=>ft.placedIn()},"block"===l&&e&&(e.style.opacity="1",e.removeAttribute("data-shimmer-active")),!0)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[2310],{1839:function(t,e,n){function o(t,e){let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e}function i(t,e){if(!t||!e)return t||"";const n=document.createElement("style");n.media="not all",n.textContent=t,document.head.appendChild(n);let o=t;try{const t=n.sheet;t&&(a(t.cssRules,e),o=function(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].cssText+"\n";return e}(t.cssRules))}catch(i){}return n.remove(),o}function a(t,e){for(let n=0;n<t.length;n++){const o=t[n];void 0!==o.selectorText&&void 0!==o.style?o.selectorText=r(o.selectorText,e):!o.cssRules||"undefined"!==typeof CSSKeyframesRule&&o instanceof CSSKeyframesRule||a(o.cssRules,e)}}function r(t,e){return function(t){const e=[];let n=0,o="";for(let i=0;i<t.length;i++){const a=t[i];"("===a||"["===a?n++:")"!==a&&"]"!==a||n--,","===a&&0===n?(e.push(o),o=""):o+=a}return e.push(o),e}(t).map(t=>{const n=t.trim();return n?e+" "+n:n}).join(", ")}function s(t,e,n,o){if(!t)return null;const i=t[e];if(!i||"object"!==typeof i)return Object.assign({},t,{brandCss:""});const a="string"===typeof t.customCss?t.customCss:"",r=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],s=l(i.widgets,n)||l(r,n),c=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(o),d=c&&i[c]&&"object"===typeof i[c]?i[c]:null,u=s?Object.assign({},i,s):d?Object.assign({},i,d):i;return Object.assign({},u,{brandCss:a,perInstance:!!s,pageScoped:!!d})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const n=Array.isArray(e)?e:[e];for(let o=0;o<n.length;o++){const e=n[o];if(null==e||""===e)continue;const i=t[e];if(i&&"object"===typeof i)return i}return null}n.d(e,{GJ:function(){return i},RO:function(){return s},fz:function(){return o}})},3502:function(t,e,n){function o(t,e){const n=t||{};if(!0!==n.collection_product_sync&&!0!==n.collection_product_sync_pro)return!1;const o=n.collection_product_sync_excluded;return!(Array.isArray(o)&&o.map(String).includes(String(e)))}n.d(e,{b:function(){return o}})},5e3:function(t,e,n){n.d(e,{Au:function(){return s},YJ:function(){return c},k5:function(){return l}});const o=6,i="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",a="whatmore-video-player whatmore-main-video-player-from-pool";function r(){return"undefined"===typeof window?{}:(window.__whatmoreNeoVideoPool||(window.__whatmoreNeoVideoPool={}),window.__whatmoreNeoVideoPool)}function s(){const t=r();if(t.armed||"undefined"===typeof document)return;if(!function(){if("undefined"===typeof navigator||"undefined"===typeof document)return!1;const t=navigator.userAgent||"";return!(!/iPad|iPhone|iPod/.test(t)||window.MSStream)||/Macintosh/.test(t)&&"ontouchend"in document}())return;t.armed=!0,function(){const t=r();if(t.pool||"undefined"===typeof document)return;const e=document.createDocumentFragment();for(let n=0;n<o;n++){const t=document.createElement("video");t.setAttribute("class",a),t.setAttribute("src",i),t.muted=!0,t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t)}t.pool=e}();const e=()=>{document.removeEventListener("click",e),document.removeEventListener("touchstart",e),function(){const t=r();if(t.blessed||!t.pool)return;const e=t.pool.childNodes;for(let n=0;n<e.length;n++){const t=e[n];t.muted=!0;const o=t.play();o&&o.then&&o.then(()=>t.pause()).catch(()=>{})}t.blessed=!0}()};document.addEventListener("click",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})}function l(){return r().pool||null}function c(){return!!r().blessed}},7119:function(t,e,n){n.r(e),n.d(e,{REGISTRY:function(){return g},renderNeoFloating:function(){return N}});var o=n(7983),i=n(6287),a=n(5e3),r=n(6387),s=n(1839),l=n(9439),c=".wht-neo-float-frame{animation:wht-neo-float-pop .4s cubic-bezier(.06,.92,.59,1.32) both;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(145deg,rgba(0,0,0,.1),rgba(0,0,0,.3));box-shadow:var(--wht-neo-float-shadow,0 20px 40px rgba(0,0,0,.3),0 8px 16px rgba(0,0,0,.2));transition:all .3s ease}@keyframes wht-neo-float-pop{0%{transform:scale(0)}to{transform:scale(1)}}.wht-neo-float-close svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}.wht-neo-float-play svg{filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}.wht-neo-float-title{background:linear-gradient(180deg,transparent,rgba(0,0,0,.8));bottom:0;display:block;left:0;padding:16px;position:absolute;right:0}.wht-neo-float-title p{color:#fff;font-size:calc(var(--wht-neo-float-w, 140px)*.25*.35);font-weight:600;letter-spacing:.3px;line-height:125%;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.5)}",d=n(651),u=n(3502);const p="floating",h="wht-neo-floating-css",f="wht-neo-floating-critical",m='.wht-neo-float{position:fixed;z-index:var(--wht-neo-float-z,2147482000);bottom:var(--wht-neo-float-vpad,10px);touch-action:none;user-select:none;-webkit-user-select:none}.wht-neo-float[data-wht-pos="left"]{left:var(--wht-neo-float-hpad,10px)}.wht-neo-float[data-wht-pos="right"]{right:var(--wht-neo-float-hpad,10px)}.wht-neo-float-frame{position:relative;width:var(--wht-neo-float-w,140px);height:var(--wht-neo-float-h,249px);border-radius:var(--wht-neo-float-radius,20px);overflow:hidden;background:transparent;cursor:pointer}.wht-neo-float-video{width:100%;height:100%;object-fit:cover;display:block;background:#fff}.wht-neo-float-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.wht-neo-float-close{position:absolute;top:2px;right:2px;z-index:10;display:flex;border:none;padding:4px;background:transparent;cursor:pointer;color:#fff}.wht-neo-float-close svg{width:calc(var(--wht-neo-float-w,140px) * 0.25);height:calc(var(--wht-neo-float-w,140px) * 0.25)}.wht-neo-float-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;color:#fff}.wht-neo-float-play svg{width:calc(var(--wht-neo-float-w,140px) * 0.35);height:calc(var(--wht-neo-float-w,140px) * 0.35)}.wht-neo-float-title{display:none}.wht-neo-float[data-wht-hidden]{display:none}.wht-neo-float[data-wht-fs]{display:none}.wht-neo-float[data-wht-ultra] .wht-neo-float-frame{width:0 !important;height:0 !important;opacity:0;pointer-events:none}';async function w(t){let e=null;try{e=new URLSearchParams(window.location.search).get("neoskin")}catch(d){}let n="";const o=e||t&&t.skin;o&&"default"!==o&&"a"!==o&&(n=await(0,r.P)(p,o));const i=o&&"default"!==o?o:"a",a=t&&t.customCss,l="string"===typeof a?a:a&&"object"===typeof a&&"string"===typeof a[i]?a[i]:"";return(0,s.fz)(h,c+"\n"+n+(t&&t.brandCss?"\n"+t.brandCss:"")+(l?"\n"+l:"")),!0}const g={floatVideo:{data:{source:"backend",field:"event.thumbnail_image"},action:"openFullscreen"},closeButton:{data:{source:"runtime",field:"bubble.visible"},action:"close"},playIcon:{data:{source:"runtime",field:"video.paused"},action:null},titleStrip:{data:{source:"embed",field:"whatmoreEmbedAppVideoTitle"},action:null}};function v(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const _=(t,e=null)=>{const n=v(),o=t.split(".").reduce((t,e)=>null==t?void 0:t[e],n);return null==o?e:o};function b(t,e,n){var o;const i=t&&t.querySelector("#"+e),a=i&&(null!==(o=i.getAttribute("data-wh"))&&void 0!==o?o:i.getAttribute("data"));return null!=a&&""!==a?a:n}function y(t,e,n){const o=parseFloat(b(t,e,NaN));return isFinite(o)?o:n}async function x({mode:t,shopId:e,landingLocationType:n,widgetContainer:i,storeFlags:a}){let r;if("pdp"===t){const t=function(t,e){let n=b(t,"whatmoreProductId","");if(!0===_("product_config.use_product_page_link_as_client_product_id")){const t=window.location.href.split(/[?#]/)[0],o=e&&e.clientProductIdMode;if("pathLastSeg"===o){const t=window.location.pathname.split("/");n=t[t.length-1]}else n="hrefLastSeg"===o?t.replace(/\/+$/,"").split("/").pop():t}return"true"===String(b(t,"whatmoreEmbedAppUseVariant","false"))?b(t,"whatmoreVariantId",n):n}(i,a),n=v(),s=!0===_("product_page_popup_config.exclude_image_events")?"video":"video,image";if(!0===_("recommendation_config.show_recommended_events")&&!0!==_("recommendation_config.show_collection_events")){const o=!0===_("product_page_popup_config.show_all_events")||!0===_("recommendation_config.show_all_events_with_pdp"),i=`${(0,d.y0)(n,"/v2/brand/{store_id}/product-events/recommendation/cdn",e)}?client_product_id=${encodeURIComponent(t)}&limit=10&recommended=${!o}&origin=${window.location.hostname}&status=live,upcoming&event_type=${s}`,a=await(0,d.Zq)(i).then(t=>t.json()),l=a&&a.events||[],c=o?a&&a.all_events||[]:(a&&a.related_events||[]).map(t=>Object.assign({},t,{isRelatedEvent:!0})),u=o&&!0===_("recommendation_config.show_all_events_when_untagged");r=l.length?l.concat(c):u?c.map(t=>Object.assign({},t,{isRelatedEvent:!0})):[]}else{const i=!0===_("recommendation_config.show_collection_events")?`${(0,d.y0)(n,"/v2/brand/{store_id}/product-events/collection/cdn",e)}?client_product_id=${encodeURIComponent(t)}&limit=50&status=live,upcoming&event_type=${s}`:`${(0,d.y0)(n,"/v2/brand/{store_id}/product-events",e)}?client_product_id=${encodeURIComponent(t)}&status=upcoming&event_type=${s}`,{events:a,all_events:l}=(0,o.Np)(await(0,d.Zq)(i).then(t=>t.json()),!1);r=[...a,...l]}}else if(n.startsWith("collection")){let t=b(i,"whatmoreCollectionId","");t&&"0"!==t||(t=window.location.href.split(/[?#]/)[0]);const n=v(),a=(0,u.b)(n,t)?`${(0,d.y0)(n,"/v5/collection",e)}?store_id=${e}&client_collection_id=${t}&sync_products=true`:`${(0,d.y0)(n,"/v2/collection",e)}?store_id=${e}&client_collection_id=${t}`,{events:s,all_events:l}=(0,o.Np)(await(0,d.Zq)(a).then(t=>t.json()),!0);r=[...s,...l||[]]}else{const t=v(),n=a&&a.spotlightInfiniteEvents?`${(0,d.y0)(t,"/get_eventset_v1/{store_id}",e)}?eventset_type=spotlight&event_type=video&source=homepage&source_id=${e}`:`${(0,d.y0)(t,"/get_eventset/{store_id}",e)}?eventset_type=spotlight&source=homepage&source_id=${e}`,{events:i,all_events:s}=(0,o.Po)(await(0,d.Zq)(n).then(t=>t.json()),"spotlight");r=[...i,...s||[]]}return _("oos_config.show_oos_videos")||(r=r.filter(t=>t&&!1!==t.in_stock)),r}const A=t=>!!t&&"image"===t.event_type;function C(t){const e=t&&t.event_media_urls;if(!e)return t&&t.thumbnail_image||"";const n=t=>{var n,o,i,a;return(null===(n=e.secondary)||void 0===n||null===(o=n[t])||void 0===o?void 0:o.content_image_original)||(null===(i=e.primary)||void 0===i||null===(a=i[t])||void 0===a?void 0:a.content_image_original)||""};return n("portrait")||n("landscape")||t.thumbnail_image||""}function E(t){var e,n,o,i;const a=t.event_media_urls;let r=a?(null===(e=a.primary)||void 0===e||null===(n=e.portrait)||void 0===n?void 0:n.poster_image)||(null===(o=a.secondary)||void 0===o||null===(i=o.portrait)||void 0===i?void 0:i.poster_image)||t.poster_image||"":t.poster_image||"";return!r&&A(t)?C(t):(r&&r.startsWith("https://cdn.shopify.com")&&(r=r.split("?")[0]+"?width=400&height=400"),r)}function k(t,e,n){const o=(0,l.vC)(),i=o.h>=o.w,a=i?"Portrait":"Landscape",r=function(t,e){const{w:n,h:o}=(0,l.vC)(),i=Math.min(n,o),a=o>=n,r=.6*i,s=a?n>=481?.48:.54:i<500?.7:.39,c=a?y(t,"whatmoreEmbedAppVideoPlayerSizePortrait",40)/100*1.2:y(t,"whatmoreEmbedAppVideoPlayerSizeLandscape",60)/100,d="spotlight"===e?Number(_("spotlight_config.size_factor",1))*(a?1.1:1.3):1.1;return Math.round(r*s*c*d)}(e,n);t.style.setProperty("--wht-neo-float-w",r+"px"),t.style.setProperty("--wht-neo-float-h",Math.round(16*r/9)+"px");const s=b(e,"whatmoreEmbedAppPosition"+a,"left"),c=y(e,"whatmoreEmbedAppHorizontalPadding"+a,i?10:20),d=y(e,"whatmoreEmbedAppVerticalPadding"+a,i?10:20),u="spotlight"===n?_("spotlight_config.position",s):s,p="spotlight"===n?Number(_("spotlight_config.horizontal_padding",c)):c,h="spotlight"===n?Number(_("spotlight_config.vertical_padding",d)):d;t.setAttribute("data-wht-pos","right"===u?"right":"left"),t.style.setProperty("--wht-neo-float-hpad",p+"px"),t.style.setProperty("--wht-neo-float-vpad",h+"px");const f=_("product_page_popup_config.popUpZindex");return null!=f&&t.style.setProperty("--wht-neo-float-z",String(f)),h}const P=250,S=12,L=8,M=300,$=["#pageheader","page-header",".navigation__tier-1-container",".navigation__tier-1"];function I(t){if(!t)return!1;const e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&0!==parseFloat(e.opacity||"1")&&(t.offsetWidth>0&&t.offsetHeight>0)}function z(t,e,n){let o=null;const i=()=>{o=null;const{w:i,h:a}=(0,l.vC)(),r=t.getBoundingClientRect();if(!r.width||!r.height)return;const s=n(),c=r.left,d=r.right,u=function(t,e){let n=0;for(const o of $)for(const i of document.querySelectorAll(o)){if(!I(i))continue;const o=i.getBoundingClientRect();o.top>.3*e||o.width<.5*t||o.bottom<=0||o.bottom>=.6*e||o.bottom>n&&(n=o.bottom)}return n}(i,a)+L,p=a-s-r.height,h=a-s;let f,m=null,w=!1;for(const t of e)for(const e of document.querySelectorAll(t)){if(!I(e))continue;const t=e.getBoundingClientRect();t.width<=0||t.height<=0||(t.right<=c||t.left>=d||t.bottom<=0||t.top>=a||(m=null===m?t.top:Math.min(m,t.top),t.top<h&&t.bottom>p&&(w=!0)))}f=w&&null!==m&&m-S-r.height>=u?Math.max(s,a-m+S):s;const g=parseFloat(t.style.bottom||"")||s;Math.round(g)!==Math.round(f)&&(t.style.bottom=Math.round(f)===Math.round(s)?"":f+"px")},a=()=>{null===o&&(o=window.requestAnimationFrame(i))};a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),window.setInterval(a,M)}async function N(t){const{widgetContainer:e,shopId:n,landingLocationType:o="index",floatingMode:r,onWidgetView:c,onClose:d,onOpenEvent:u}=t;if(!n)return!1;const h=r||(o.startsWith("product")||"embed"===o?"pdp":"spotlight");if("spotlight"===h&&_("spotlight_config.show_once_to_user"))try{if(window.localStorage.getItem("_whatmore_spotlight_viewed"))return!0;window.localStorage.setItem("_whatmore_spotlight_viewed","true")}catch(G){}let g;(0,s.fz)(f,m);try{[g]=await Promise.all([x({mode:h,shopId:n,landingLocationType:o,widgetContainer:e,storeFlags:t.storeFlags}),w((0,s.RO)(t.neoJson,p))])}catch(G){return!1}if(!g||!g.length)return!0;const v=g[0],y="pdp"===h,S=!!_(y?"product_page_popup_config.ultra_minimize_on_scroll":"spotlight_config.ultraminimize_on_scroll"),L=y&&!S&&!!_("product_page_popup_config.show_popup_on_scroll"),M=y&&!!_("product_page_popup_config.auto_close_on_open"),$=_((y?"product_page_popup_config":"spotlight_config")+".atc_aware_selectors"),I=document.createElement("div");I.className="wht-neo-float",I.dataset.role="floatVideo",I.setAttribute("data-wht-mode",h),n&&I.setAttribute("data-wht-shop",n),I.setAttribute("data-wht-widget","spotlight"===h?"wgt_spotlight":"wgt_embed");const N={vPad:k(I,e,h)};L&&I.setAttribute("data-wht-hidden","");const R=document.createElement("div");R.className="wht-neo-float-frame";const F=A(v),j=document.createElement(F?"img":"video");j.className="wht-neo-float-video";const V=E(v);if(F){j.alt="",j.decoding="async";const t=C(v)||V;t&&(j.src=t)}else if(j.muted=!0,j.loop=!0,j.playsInline=!0,j.autoplay=!0,j.preload="metadata",j.setAttribute("muted",""),j.setAttribute("playsinline",""),j.setAttribute("webkit-playsinline",""),V&&(j.poster=V),v.thumbnail_image){const t=document.createElement("source");t.src=v.thumbnail_image,t.type="video/mp4",j.appendChild(t)}R.appendChild(j);const O=document.createElement("div");O.className="wht-neo-float-overlay";const T=document.createElement("button");T.type="button",T.className="wht-neo-float-close",T.dataset.role="closeButton",T.setAttribute("aria-label","Close video"),T.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="rgba(0,0,0,0.6)" stroke="rgba(255,255,255,0.3)" stroke-width="1.5"/><path d="M9 9l6 6M15 9l-6 6" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/></svg>',T.addEventListener("click",t=>{t.stopPropagation(),I.remove(),null===d||void 0===d||d(v)}),O.appendChild(T);const q=document.createElement("span");q.className="wht-neo-float-play",q.dataset.role="playIcon",q.innerHTML='<svg viewBox="0 0 64 64" aria-hidden="true"><circle cx="32" cy="32" r="28" fill="rgba(255,255,255,0.25)" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><path d="M26 21l18 11-18 11z" fill="#fff"/></svg>',O.appendChild(q);const B=b(e,"whatmoreEmbedAppVideoTitle","");if(B){const t=document.createElement("div");t.className="wht-neo-float-title",t.dataset.role="titleStrip";const n=document.createElement("p");n.textContent=B;const o=b(e,"whatmorePrimaryFont","");o&&(n.style.fontFamily=o),t.appendChild(n),O.appendChild(t)}R.appendChild(O),I.appendChild(R),document.body.appendChild(I);const H=!F&&j.play&&j.play();H&&H.catch&&H.catch(()=>{}),(0,a.Au)();const U=t=>{if(t!==I.hasAttribute("data-wht-ultra"))if(t){I.setAttribute("data-wht-ultra","");try{F||j.pause()}catch(G){}}else{I.removeAttribute("data-wht-ultra");const t=!F&&j.play&&j.play();t&&t.catch&&t.catch(()=>{})}};!function(t,e){let n=0,o=0,i=0,a=0,r=!1,s=!1,c=null;t.addEventListener("pointerdown",e=>{if(e.target.closest(".wht-neo-float-close"))return;s=!0,r=!1,n=e.clientX,o=e.clientY;const l=/translate\((-?[\d.]+)px,\s*(-?[\d.]+)px\)/.exec(t.style.transform||"");i=l?parseFloat(l[1]):0,a=l?parseFloat(l[2]):0,c=t.getBoundingClientRect(),t.setPointerCapture(e.pointerId)}),t.addEventListener("pointermove",e=>{if(!s)return;let d=e.clientX-n,u=e.clientY-o;if((Math.abs(d)>5||Math.abs(u)>5)&&(r=!0),r){if(c){const{w:t,h:e}=(0,l.vC)();d=Math.max(-c.left,Math.min(d,t-c.right)),u=Math.max(-c.top,Math.min(u,e-c.bottom))}t.style.transform=`translate(${i+d}px, ${a+u}px)`}}),t.addEventListener("pointerup",n=>{if(s){s=!1;try{t.releasePointerCapture(n.pointerId)}catch(o){}r||e()}}),t.addEventListener("pointercancel",()=>{s=!1})}(I,()=>{I.hasAttribute("data-wht-ultra")?U(!1):(M?(I.remove(),null===d||void 0===d||d(v)):I.setAttribute("data-wht-fs",""),(0,i.w)(E(v)),null===u||void 0===u||u(v,0,g,{onFullscreenClose:()=>I.removeAttribute("data-wht-fs")}))});let W=!1;const Y=()=>{W||(W=!0,requestAnimationFrame(()=>{W=!1,N.vPad=k(I,e,h)}))};window.addEventListener("resize",Y,{passive:!0}),window.addEventListener("orientationchange",Y,{passive:!0}),window.visualViewport&&window.visualViewport.addEventListener("resize",Y,{passive:!0}),"complete"===document.readyState?setTimeout(Y,300):window.addEventListener("load",()=>setTimeout(Y,300),{once:!0});let Z=!1;const J=()=>{!Z&&c&&(Z=!0,requestAnimationFrame(()=>{(I.checkVisibility?I.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):I.offsetWidth>0&&I.offsetHeight>0)&&c(v)}))};if(L||J(),S||L){let t=!1;window.addEventListener("scroll",()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1;window.pageYOffset<=P?U(!1):(L&&I.hasAttribute("data-wht-hidden")&&(I.removeAttribute("data-wht-hidden"),J()),S&&U(!0))}))},{passive:!0}),S&&document.addEventListener("pointerdown",t=>{!I.contains(t.target)&&I.isConnected&&window.pageYOffset>P&&U(!0)},{capture:!0,passive:!0})}return Array.isArray($)&&$.length&&z(I,$,()=>N.vPad),!0}},7983:function(t,e,n){function o(t,e=!1){if(null==t)return{events:[],all_events:[]};if(e){return{events:t.events&&t.events[0]&&t.events[0].events||[],all_events:t.all_events||[]}}return{events:t.events||[],all_events:t.all_events||[]}}function i(t,e){if(null==t||!t.eventsets||!t.eventsets[e])return{events:[],all_events:[]};return{events:(Array.isArray(t.eventsets[e])?t.eventsets[e]:[]).reduce((t,e)=>t.concat(e&&e.events||[]),[]),all_events:[]}}function a(t){return!(void 0==t.products||0==t.products.length)}n.d(e,{Hl:function(){return a},Np:function(){return o},Po:function(){return i}})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[4071,5940],{4071:function(t,e,n){n.r(e),n.d(e,{readBwEstimate:function(){return i},warmPlaylists:function(){return u},writeBwEstimate:function(){return c}});const r="wht_neo_bw";function i(){try{const t=Number(window.sessionStorage.getItem(r));return t>0&&isFinite(t)?t:0}catch(t){return 0}}function c(t){if("number"===typeof t&&isFinite(t)&&!(t<=0))try{window.sessionStorage.setItem(r,String(Math.round(t)))}catch(e){}}const o=t=>!!t&&t.toLowerCase().includes(".m3u8"),s=new Set;function u(t){if(!o(t)||s.has(t)||"function"!==typeof fetch)return;s.add(t);const e={mode:"cors",credentials:"omit"};fetch(t,e).then(t=>t.ok?t.text():"").then(n=>{if(!n)return;const r=n.split(/\r?\n/);for(let i=0;i<r.length-1;i++){if(!/^#EXT-X-STREAM-INF:/.test(r[i]))continue;const n=(r[i+1]||"").trim();n&&"#"!==n[0]&&fetch(new URL(n,t).href,e).catch(()=>{})}}).catch(()=>{})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[1296],{725:function(e,t,n){n.r(t),n.d(t,{PRIORITY:function(){return a},SEGMENT_S:function(){return E},attachSource:function(){return C},hasSegment:function(){return L},holdReadAhead:function(){return b},isFetching:function(){return w},isHlsCard:function(){return T},priorityForSlot:function(){return x},releaseSource:function(){return N},resumeSource:function(){return D},runwaySeconds:function(){return A},suspendSource:function(){return M}});var r=n(4071);let o=null;function i(e){const t=()=>{try{e.currentTime||(e.currentTime=.001)}catch(t){}};e.readyState>=1?t():e.addEventListener("loadedmetadata",t,{once:!0})}const a={ACTIVE:"active",NEXT:"next",NEAR:"near",IDLE:"idle"},s=(e,t,n)=>{if(t!==a.ACTIVE)return{maxBufferLength:1,maxBufferSize:1,maxMaxBufferLength:20};return{maxBufferLength:n>0?Math.min(15,n):15,maxBufferSize:e.DefaultConfig.maxBufferSize,maxMaxBufferLength:n>0?Math.min(20,n):20}},d=e=>!!e&&e.toLowerCase().includes(".m3u8"),u=()=>"undefined"!==typeof window&&"MediaSource"in window&&"function"===typeof window.MediaSource.isTypeSupported,f=e=>!(!e.canPlayType||!e.canPlayType("application/vnd.apple.mpegurl"));function c(){const e="undefined"!==typeof navigator&&navigator.connection;return!!e&&(!!e.saveData||(!!/(^|-)[23]g$/.test(e.effectiveType||"")||"number"===typeof e.downlink&&e.downlink>0&&e.downlink<2.5))}const l=new WeakMap;let h=(0,r.readBwEstimate)();const p=e=>{const t=e&&e.bandwidthEstimate;"number"!==typeof t||!isFinite(t)||t<=0||(h=t,(0,r.writeBwEstimate)(t))},E=3,g=new Set;if("undefined"!==typeof PerformanceObserver)try{new PerformanceObserver(e=>e.getEntries().forEach(e=>{0===e.transferSize&&e.encodedBodySize>0&&g.add(e.name)})).observe({type:"resource",buffered:!0})}catch(F){}const m=e=>{if(g.has(e))return!0;const t="undefined"!==typeof performance&&performance.getEntriesByName&&performance.getEntriesByName(e).pop();return!!t&&0===t.transferSize&&t.encodedBodySize>0};function v(e,t){const n=e.levels||[],r=Math.min(e.maxAutoLevel,n.length-1);if(!t)return Math.min(1,r);const o=e.config.abrBandWidthUpFactor*t;let i=0;for(let a=1;a<=r;a++)n[a].bitrate<=o&&(i=a);return i}function y(e){e.hls.loadLevel=v(e.hls,h),e.pinned=!0}function A(e){const t=e&&l.get(e),n=t&&t.hls,r=h,o=n&&n.levels;if(!r||!o||!o.length)return null;const i=o[Math.max(0,n.loadLevel)]||o[0],a=(i.details&&i.details.averagetargetduration||E)/(n.config.abrBandWidthFactor*r),s=(n.ttfbEstimate||0)/1e3;return o[v(n,r)].bitrate*a+s}function b(e,t){const n=e&&l.get(e);n&&n.hls&&n.priority===a.ACTIVE&&Object.assign(n.hls.config,s(n.Hls,t?a.NEXT:a.ACTIVE,n.bufferAhead))}const T=e=>!(!e||!l.has(e)),w=e=>{const t=e&&l.get(e);return!(!t||!t.fetching)};function L(e){const t=e&&l.get(e);return t?!!t.fragBuffered:!!(e&&e.buffered&&e.buffered.length)}const R=[1e3,3e3],S=e=>{const t=e&&e.response&&e.response.code;return"number"===typeof t&&t>=400&&t<500},B=(e,t)=>{t.needsReload=!1;const n=t.hls;if(!n)return;if(n.levels&&n.levels.length)return void n.startLoad();const r=t.reloads||0;t.dead||r>=R.length?O(e):(t.reloads=r+1,t.reloadTimer=setTimeout(()=>{t.reloadTimer=null,l.get(e)!==t||t.suspended||n.loadSource(t.url)},R[r]))};function I(e,t,r,d){const u=l.get(e);if(u&&u.url===t&&u.hls)return Object.assign(u.hls.config,s(u.Hls,r,u.bufferAhead)),u.priority=r,void(r===a.ACTIVE&&function(e){const{hls:t}=e,n=h;t&&n&&t.levels&&t.levels.length&&(e.fetching?e.reseedOnLoaded=!0:(t.bandwidthEstimate=n,y(e)))}(u));O(e);const f={hls:null,Hls:null,url:t,priority:r,bufferAhead:d,suspended:!1,fragBuffered:!1};l.set(e,f),(o||(o=n.e(561,"high").then(n.bind(n,4390)).then(e=>e.default)),o).then(n=>{if(l.get(e)!==f||!n.isSupported())return;const o=h,u=new n({enableWorker:!0,lowLatencyMode:!1,...s(n,r,d),capLevelToPlayerSize:!0,maxDevicePixelRatio:1.5,testBandwidth:!1,...o?{abrEwmaDefaultEstimate:o}:{},autoStartLoad:!1});f.hls=u,f.Hls=n,u.on(n.Events.MANIFEST_PARSED,()=>{u.startLevel=v(u,o),f.suspended||u.startLoad(),f.priority!==a.ACTIVE&&i(e)}),u.on(n.Events.FRAG_LOADING,()=>{f.fetching=!0}),u.on(n.Events.FRAG_LOAD_EMERGENCY_ABORTED,()=>{f.fetching=!1}),u.on(n.Events.FRAG_LOADED,(e,t)=>{f.fetching=!1,f.pinned&&(f.pinned=!1,u.loadLevel=-1),f.priority===a.ACTIVE?(f.reseedOnLoaded||m(t.frag.url))&&(f.reseedOnLoaded=!1,f.reseed=!0,h&&y(f)):f.reseedOnLoaded=!1}),u.on(n.Events.FRAG_BUFFERED,()=>{if(f.fragBuffered=!0,f.priority===a.ACTIVE)return f.reseed?(f.reseed=!1,void(h&&(u.bandwidthEstimate=h))):void p(u);f.reseed=!1}),u.on(n.Events.ERROR,(t,r)=>{if(r.fatal)if(r.type===n.ErrorTypes.NETWORK_ERROR){if(S(r)&&(f.dead=!0),f.suspended)return void(f.needsReload=!0);B(e,f)}else r.type===n.ErrorTypes.MEDIA_ERROR?u.recoverMediaError():O(e)}),u.loadSource(t),u.attachMedia(e)}).catch(()=>{})}function O(e){const t=l.get(e);if(t&&(l.delete(e),t.reloadTimer&&clearTimeout(t.reloadTimer),t.hls))try{t.hls.destroy()}catch(F){}}function C(e,t,n,r){if(!e)return;if(!t||n===a.IDLE)return void N(e);if(c()&&n!==a.ACTIVE)return void N(e);const o=Number(r&&r.bufferAhead)||0;"hls"===function(e,t){if(!e)return null;if(!d(e))return"mp4";const n=f(t)&&"undefined"!==typeof navigator&&/apple/i.test(navigator.vendor||"");return u()&&!n?"hls":"mp4"}(t,e)?I(e,t,n,o):function(e,t,n){let r="metadata";n===a.ACTIVE?r="auto":n!==a.NEXT||c()||(r="auto"),e.getAttribute("src")!==t?(O(e),e.preload=r,e.src=t,n!==a.ACTIVE&&i(e)):e.preload!==r&&(e.preload=r)}(e,t,n)}function M(e){const t=e&&l.get(e);if(t&&!t.suspended&&(t.suspended=!0,t.hls)){Object.assign(t.hls.config,s(t.Hls,a.NEAR,0));try{t.hls.stopLoad()}catch(F){}}}function D(e){const t=e&&l.get(e);if(t&&t.suspended&&(t.suspended=!1,t.hls))if(t.dead)O(e);else{if(t.needsReload||!t.fragBuffered)return O(e),void I(e,t.url,t.priority,t.bufferAhead);Object.assign(t.hls.config,s(t.Hls,t.priority,t.bufferAhead));try{t.hls.startLoad()}catch(F){}}}function N(e){if(e){try{e.pause()}catch(F){}O(e),e.getAttribute("src")&&(e.removeAttribute("src"),e.load()),e.preload="none"}}function x(e,t){return 0===e?a.ACTIVE:e>0&&e<=t?a.NEXT:e<0&&-e<=t?a.NEAR:a.IDLE}}}]);