whatmore-react-assets 1.0.1905 → 1.0.1907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/wht-neo-atc.e93808d9.chunk.js +1 -0
- package/static/js/wht-neo-buying-guide.cfcd47b6.chunk.js +1 -0
- package/static/js/wht-neo-video-answers.93681327.chunk.js +1 -0
- package/static/js/wht-neo.e60cd638.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-b.5a657ecb.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-c.f8245222.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-d.9eebaf88.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-e.c76ca19d.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-f.c6e42a2e.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-g.3fe8e25e.chunk.js +1 -0
- package/static/js/wht-skin-buying-guide-h.61dddaa0.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/wht-neo-atc.50b40965.chunk.js +0 -1
- package/static/js/wht-neo-video-answers.e050340d.chunk.js +0 -1
- package/static/js/wht-neo.e4be0583.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
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)})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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 o(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&&(r(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(o){}return i.remove(),n}function r(t,e){for(let i=0;i<t.length;i++){const n=t[i];void 0!==n.selectorText&&void 0!==n.style?n.selectorText=s(n.selectorText,e):!n.cssRules||"undefined"!==typeof CSSKeyframesRule&&n instanceof CSSKeyframesRule||r(n.cssRules,e)}}function s(t,e){return function(t){const e=[];let i=0,n="";for(let o=0;o<t.length;o++){const r=t[o];"("===r||"["===r?i++:")"!==r&&"]"!==r||i--,","===r&&0===i?(e.push(n),n=""):n+=r}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 o=t[e];if(!o||"object"!==typeof o)return Object.assign({},t,{brandCss:""});const r="string"===typeof t.customCss?t.customCss:"",s=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],a=l(o.widgets,i)||l(s,i),c=a?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(n),d=c&&o[c]&&"object"===typeof o[c]?o[c]:null,u=a?Object.assign({},o,a):d?Object.assign({},o,d):o;return Object.assign({},u,{brandCss:r,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 o=t[e];if(o&&"object"===typeof o)return o}return null}i.d(e,{GJ:function(){return o},RO:function(){return a},fz:function(){return n}})},6563:function(t,e,i){i.r(e),i.d(e,{LOOKS:function(){return G},MAX_CARDS:function(){return V},ROUTE:function(){return F},guideIsOnFor:function(){return J},guideUrl:function(){return Z},layoutVars:function(){return it},pageRows:function(){return nt},parsePlacement:function(){return Q},renderNeoBuyingGuide:function(){return ct},resolveLook:function(){return tt}});const n=8,o={tested:"Put to the test",compare:"Side by side",question:"Question",how_to:"How to",up_close:"Up close",style_it:"Style it"},r={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"},s={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=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t])),c=t=>String(null==t?0:t).split(":").reduce((t,e)=>60*t+(Number(e)||0),0),d=t=>null!=t&&""!==t&&Number.isFinite(Number(t))?Number(t)>=1e3?(Number(t)/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(t):"";function u(t){const e=new Set,i=[];for(const n of t.clips||[]){const o=String(n.product_id);e.has(o)||(e.add(o),i.push({...n,product_id:o,chip:t.chips&&t.chips[n.id]||n.shows||""}))}const o=[...String(t.body||"").matchAll(a)].map(t=>t[2]),r=t=>o.includes(t.product_id)?o.indexOf(t.product_id):1/0,s=i.map((t,e)=>[t,e]).sort((t,e)=>r(t[0])-r(e[0])||t[1]-e[1]).map(t=>t[0]).slice(0,n),l=Array.isArray(t.order)?t.order:[];if(!l.length)return s;const c=t=>l.indexOf(t.id)+1||1e9;return s.map((t,e)=>[t,e]).sort((t,e)=>c(t[0])-c(e[0])||t[1]-e[1]).map(t=>t[0])}function p(t,e,i,n,o,r){const s=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(o.again)}">\n <span class="bg-tile-img">${s.image?`<img loading="lazy" src="${l(s.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(s.style||s.title||"")}</span>\n <span class="bg-tile-print">${l(s.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(o){}try{return new Intl.NumberFormat(void 0,n).format(i)}catch(o){return String(t)}}(s.price,s.currency))}</span>\n ${s.link?`<a class="bg-tile-view" href="${l(s.link)}"${r} data-view="${l(t.product_id)}">${l(o.view)}</a>`:""}\n </div>\n <span class="bg-tile-bar"><b></b></span>\n </div>`}function h(t,e,i,n,c){const d=c||{},u=d.newTab?' target="_blank" rel="noopener"':"",h=i.products||{},g=t.format||"question",b=Object.keys(h).some(t=>h[t]&&h[t].print),f=new Set(e.map(t=>(h[t.product_id]||{}).style||t.product_id)).size,m=b?(n.styles||r.styles)(f):n.products(e.length),y="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>`:"";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||o)[g]||o.question)} \xb7 ${l(m)}</p>`}\n <h3 class="bg-title">${l(t.title)}</h3>\n ${y}\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 o=String(t||""),r=[];let s=0;for(const c of o.matchAll(a)){r.push(l(o.slice(s,c.index)));const t=e.has(c[2])?i[c[2]]:null;r.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])),s=c.index+c[0].length}return r.push(l(o.slice(s))),r.join("")}(t.body,new Set(e.map(t=>t.product_id)),h,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-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)}">${s.pause}</button><button class="bg-btn" type="button" data-act="mute" aria-label="${l(n.unmute)}">${s.muted}</button></div>\n </div>\n <div class="bg-rail" role="list" aria-label="${l(n.list)}">${e.map((t,e)=>p(t,e,g,h,n,u)).join("")}</div>\n </div>\n </section>`}const g=(t,e)=>e.querySelector(t);class b{constructor(t,e,i){b.all.add(this),this.card=t,this.clips=e,this.opts=i||{},this.data=this.opts.data||{},this.labels=this.opts.labels||r,this.v=g("video",t),this.v.muted=!0,this.box=g(".bg-stage",t),this.rail=g(".bg-rail",t),this.tiles=Array.from(t.querySelectorAll(".bg-tile")),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.reported=new Set;const n=this.v;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))),["wheel","touchstart","pointerdown"].forEach(t=>this.rail.addEventListener(t,()=>{this.userScrollAt=Date.now()},{passive:!0})),this.held&&this.setPlayIcon(!1),this.point(0),this.paint(!1)}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=g('[data-act="play"]',this.card);e.innerHTML=t?s.pause:s.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)}go(t){this.point(t),this.started=!0;const e=this.video(t);if(g(".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.warmNext(),this.paint(!0),this.running&&this.opts.track&&this.opts.track.onClipPlay&&!this.reported.has(this.clips[t])&&(this.reported.add(this.clips[t]),this.opts.track.onClipPlay(this.clips[t]))}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.tiles[this.i].classList.toggle("loading",!!t)}paint(t){const e=this.labels;this.tiles.forEach((t,i)=>{const n=i===this.i,o=n&&this.replays>0;t.classList.toggle("active",n),t.classList.toggle("looping",o),t.classList.toggle("paused",n&&!this.running),t.querySelector(".bg-tile-main").setAttribute("aria-pressed",String(o)),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):o?s.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):""});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),o=n.handle?"@"+n.handle:this.opts.storeName||"",r=[null!=n.views&&""!==n.views&&d(n.views)+" "+e.views,null!=n.likes&&""!==n.likes&&d(n.likes)+" "+e.likes].filter(Boolean).join(" \xb7 ");g(".bg-proof",this.card).innerHTML=o?`<span class="pf-avatar">${l((n.handle||o)[0].toUpperCase())}</span><span class="pf-text"><b>${l(o)}</b>${r?`<em>${l(r)}</em>`:""}</span>`:"",t&&this.reveal()}reveal(){if(Date.now()-this.userScrollAt<2500)return;const t=this.tiles[this.i],e=this.rail;if(!t||"function"!==typeof e.scrollTo)return;"function"===typeof getComputedStyle&&"row"===getComputedStyle(e).flexDirection?e.scrollTo({left:t.offsetLeft-(e.clientWidth-t.offsetWidth)/2,behavior:"smooth"}):e.scrollTo({top:t.offsetTop-(e.clientHeight-t.offsetHeight)/2,behavior:"smooth"})}watch(t){this.userScrollAt=0,this.replay(t,"link");const e=this.box.getBoundingClientRect(),i=this.rail.getBoundingClientRect(),n="undefined"!==typeof window&&window.innerHeight||0;(e.top<0||Math.max(e.bottom,i.bottom)>n)&&this.box.scrollIntoView&&this.box.scrollIntoView({block:"start",behavior:"smooth"})}replay(t,e){this.replays=3,this.held=!1,this.setPlayIcon(!0),this.running=!0,this.opts.track&&this.opts.track.onProductPick&&this.opts.track.onProductPick(this.clips[t],e||"tile"),this.go(t)}step(t){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.setLoading(!1);const t=g(".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.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=g('[data-act="mute"]',this.card);e.innerHTML=t?s.muted:s.sound,e.setAttribute("aria-label",t?this.labels.unmute:this.labels.mute)}mute(){const t=this.v.muted;if(t&&b.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(){b.all.delete(this),clearTimeout(this.failTimer),this.running=!1;try{this.v.pause()}catch(t){}if(this.opts.releaseSource)this.opts.releaseSource(this.v);else{this.v.removeAttribute("src");try{this.v.load()}catch(t){}}}}b.all=new Set;const f=/recent|recommend|upsell|cross-sell|related/i,m=new Set(["SCRIPT","TEMPLATE","STYLE","LINK","NOSCRIPT"]),y=4,x="data-wht-bg-card",v="data-wht-bg-pad",w=2,k=12,S=1e4,E=[700,2500];function A(t){const e=/\/products\/([^/?#]+)/.exec(String(t||""));if(!e)return"";try{return decodeURIComponent(e[1]).toLowerCase()}catch(i){return e[1].toLowerCase()}}function C(t){const e=new Set;return t.forEach(t=>{(t.matches&&t.matches(_)?[t]:Array.from(t.querySelectorAll(_))).forEach(t=>{const i=A(t.getAttribute("href"));i&&e.add(i)})}),e}const L=t=>!m.has(t.tagName)&&!t.hasAttribute(x)&&"none"!==getComputedStyle(t).display,$=t=>{const e=getComputedStyle(t);return e.float&&"none"!==e.float||"inline-block"===e.display},_='a[href*="/products/"]',T=t=>t.matches&&t.matches(_)||!!t.querySelector(_);function P(t){return t.some(t=>t.offsetHeight>0)?t.filter(t=>T(t)||t.offsetHeight>0&&t.offsetWidth>0):t}function M(t){const e=t||document,i=e.querySelector('main, #MainContent, [role="main"]')||e.body||e,n=e.body||e;if(!i)return null;const o=new Set;let r=null;return i.querySelectorAll('a[href*="/products/"]').forEach(t=>{for(let s=t.parentElement,a=0;s&&s!==i&&a<18;s=s.parentElement,a++){if(o.has(s))continue;o.add(s);const t=Array.from(s.children).filter(L),i=t.filter(T);if(i.length<4||i.length/t.length<.6)continue;if(e.body&&C(i.slice(0,12)).size<4)continue;const a=getComputedStyle(s),l=a.display.includes("grid")||a.display.includes("flex")&&"wrap"===a.flexWrap,c=!l&&/^(block|flow-root|list-item)$/.test(a.display)&&$(i[0])&&$(i[1]);if(!l&&!c)continue;const d=s.scrollWidth-s.clientWidth;if(d>4&&/auto|scroll/.test(a.overflowX)||d>.5*s.clientWidth)continue;if(l&&a.display.includes("grid")&&String(a.gridAutoFlow||"").includes("column"))continue;let u=!1;for(let e=s;e&&e!==n;e=e.parentElement)if(f.test(e.id+" "+("string"===typeof e.className?e.className:"")+" "+e.tagName)){u=!0;break}u||r&&!(i.length>r.items.length)||(r={grid:s,items:i,tiles:P(t),flow:c})}}),r}function R(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 o=i(t[0]);for(let r=1;r<t.length;r++){const e=i(t[r]);Math.abs(e-o)>=4&&(n.push(r),o=e)}return n}const z=t=>parseFloat(t)||0,B={marginTop:"0px",marginBottom:"0px",padding:"0px"};function I(t,e,i){const n=(t||document).createElement(e);return n.setAttribute(x,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 N({slots:t,anchor:e=null,mode:i="grid",firstRows:n=2,everyRows:o=3,minBefore:r=y,doc:s,slotProducts:a=null,isFiltered:l=null,onSwap:c=null}){const d=s||document,u=d.ownerDocument||d;let p="none",h=null,g=null,b=!1;const f="function"===typeof ResizeObserver?new ResizeObserver(()=>F()):null,m=t.map(t=>t.firstElementChild),A=t.map(t=>t.getAttribute(x)||"");const L=t=>{const e=[];for(let i=t.nextElementSibling;i&&i.hasAttribute(v);i=i.nextElementSibling)e.push(i);return e},$=t=>{let e=t.nextElementSibling;for(;e&&e.hasAttribute(v);)e=e.nextElementSibling;return e},_=t=>{L(t).forEach(t=>t.remove()),t.remove()};let T=[],P=!1,N=[];const O=u.defaultView||("undefined"!==typeof window?window:null),j=d===u&&O&&"function"===typeof O.scrollBy;function q(t,e){if(!j)return null;const i=function(t){for(let e=t.parentElement;e&&e!==u.body&&e!==u.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:O.pageYOffset)>0))return null;const n=i?i.getBoundingClientRect().top:0,o=t.find(t=>t.getBoundingClientRect().top>=n);return o?{el:o,top:o.getBoundingClientRect().top,box:i}:null}function H(){const s="grid"!==i||P?null:M(d);if(!s)return N=[],void function(){if(!e)return t.forEach(_),void(p="none");t.forEach((t,i)=>{Object.assign(t.style,B),L(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()?C(s.items):null,g=c?t.filter((t,e)=>(a[e]||[]).filter(t=>c.has(t)).length>=w):t,b=q(s.items,s.grid);t.forEach(t=>{g.includes(t)||_(t)});const m=t.filter(t=>t.parentElement===s.grid);m.forEach(t=>{t.style.position="absolute"});const y=R(s.tiles),x=function(t){const e=R(t);return e.reduce((i,n,o)=>Math.max(i,(o+1<e.length?e[o+1]:t.length)-n),1)}(s.tiles);m.forEach(t=>{t.style.position=""});const k=y.length>1?s.tiles[y[1]]:null,S=function(t){const e=getComputedStyle(t),i=z(e.borderTopWidth)+z(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(z(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(" ")}}(k&&s.items.includes(k)?k:s.items[0]);let E=Math.min(n,y.length);for(;E<y.length&&y[E]<r;)E++;N=[],g.forEach((t,e)=>{Object.assign(t.style,S);const i=E+e*o,n=i<y.length?s.tiles[y[i]]:null,r=t.parentElement===s.grid;if(n)r&&$(t)===n||(L(t).forEach(t=>t.remove()),s.grid.insertBefore(t,n));else{if(0!==e)return void _(t);r&&!$(t)||(L(t).forEach(t=>t.remove()),s.grid.appendChild(t))}!function(t,e){const i=L(t);i.slice(e).forEach(t=>t.remove());for(let n=i.length;n<e;n++){const e=u.createElement(t.tagName.toLowerCase());e.setAttribute(v,""),e.setAttribute("aria-hidden","true"),e.hidden=!0,e.style.setProperty("display","none","important"),t.parentElement.insertBefore(e,t.nextSibling)}}(t,x-1),N.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:O.scrollBy(0,e))}(b),f&&h!==s.items[0]&&(f.disconnect(),f.observe(s.items[0]),h=s.items[0]),p="grid"}function W(){if(b)return;if(function(){let e=0;return t.forEach((i,n)=>{const o=m[n];if(!o||i.hasAttribute(x)&&o.parentElement===i)return;const r=I(u,i.tagName.toLowerCase(),A[n]);if(r.appendChild(o),i.hasAttribute(x)&&i.remove(),t[n]=r,e++,c)try{c(i,r)}catch(s){}}),e}()+N.filter(e=>t.includes(e)&&!e.isConnected).length){const t=Date.now();T=T.filter(e=>t-e<S),T.push(t),T.length>k&&(P=!0)}H(),G&&(G.takeRecords(),U&&!U.isConnected&&(G.disconnect(),U=V(),G.observe(U,{childList:!0,subtree:!0})))}let D=[];function F(){clearTimeout(g),D.forEach(clearTimeout),g=setTimeout(()=>{W(),D=E.map(t=>setTimeout(W,t))},120)}const V=()=>d.querySelector("main")||d.body||d;let U=null;const G="function"===typeof MutationObserver?new MutationObserver(()=>F()):null;return G&&(U=V(),G.observe(U,{childList:!0,subtree:!0})),O&&O.addEventListener("resize",F),u.addEventListener("shopify:section:load",F),u.addEventListener("shopify:section:unload",F),W(),D=E.map(t=>setTimeout(W,t)),{placedIn:()=>p,stop(){b=!0,clearTimeout(g),D.forEach(clearTimeout),t.forEach(t=>L(t).forEach(t=>t.remove())),G&&G.disconnect(),f&&f.disconnect(),O&&O.removeEventListener("resize",F),u.removeEventListener("shopify:section:load",F),u.removeEventListener("shopify:section:unload",F)}}}var O=i(1839),j=i(3959),q=i(651),H=i(6387),W=':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);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-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-stage{align-self:start;aspect-ratio:9/16;background:#111;border-radius:12px;overflow:hidden;position:relative}.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}@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 (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-stage{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 D="buyingGuide",F="/v1/brand/{store_id}/buying-guide",V=3,U=3,G=["a","b","c","d","e","f","g","h"],K="[data-wht-bg-page]",X="whatmoreBuyingGuideDraft";function Y(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}function J(t,e){const i=t&&t[D];if(!i||!0!==i.enabled)return!1;return(Array.isArray(i.collections)?i.collections.map(String):[]).includes(String(e))}function Q(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 Z(t,e){return(0,q.y0)(Y(),F,t)+"?client_collection_id="+encodeURIComponent(e)}async function tt(t,e){const i=(0,O.RO)(t,D)||{},n=String(e||i.skin||"a").toLowerCase(),o=G.includes(n)?n:"a",r=i.customCss,s="string"===typeof r?r:r&&"object"===typeof r&&"string"===typeof r[o]?r[o]:"",a="a"===o?"":await(0,H.P)(D,o);return{look:o,css:W+(a?"\n"+a:"")+("string"===typeof i.brandCss&&i.brandCss?"\n"+i.brandCss:"")+(s?"\n"+s:"")}}const et=(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 it(t){const e=et(t&&t.spaceAbove,0,200),i=et(t&&t.spaceBelow,0,200),n=et(t&&t.maxWidth,320,2e3),o={};return null===e&&null===i||(o["--wht-neo-bg-margin"]=(null===e?8:e)+"px auto "+(null===i?8:i)+"px"),null!==n&&(o["--wht-neo-bg-maxw"]=n+"px"),o}function nt(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 ot=null;function rt(t,e){ot||(ot=Promise.all([i.e(1296,"high"),i.e(4071,"high")]).then(i.bind(i,725))),ot.then(i=>{t.getAttribute("data-src")===e&&i.attachSource(t,e,i.PRIORITY.ACTIVE,{bufferAhead:12})}).catch(()=>{t.src=e})}let st=null;function at(t){ot&&ot.then(e=>{st||(st=document.createElement("video"),st.muted=!0,st.playsInline=!0),e.attachSource(st,t,e.PRIORITY.NEXT)}).catch(()=>{})}function lt(t){if(ot)ot.then(e=>e.releaseSource(t)).catch(()=>{});else{t.removeAttribute("src");try{t.load()}catch(e){}}}async function ct(t){const{rootElement:e,widgetContainer:i,shopId:n,collectionId:s,neoJson:a,mode:l="embed",preview:c=!1,designMode:d=!1,onWidgetView:p,onClipPlay:g,onProductPick:f,onProductView:m}=t;if(!n||!s||"0"===String(s))return!1;const x=i&&i.closest&&i.closest(K)||null,v=!x&&(void 0!==t.pinned?t.pinned:"block"===l),w=x||document,k=nt(x),S=window.__whtBuyingGuide;if("embed"===l&&S&&"block"===S.mode&&S.collectionId===String(s))return!0;if("embed"===l&&!c&&!J(a,s))return!1;let E=function(t){const e=t&&t.querySelector("#"+X);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(Z(n,s)).then(t=>t.ok?t.json():null)}catch(ft){E=null}const C=(E&&E.cards||[]).slice(0,x?V+1:V);if(!C.length)return!1;let L=null;try{L=new URLSearchParams(window.location.search).get("neoskin")}catch(ft){}const{look:$,css:_}=await tt(a,L),T=(0,O.RO)(a,D)||{},P=it(T),R={hideEyebrow:!0===T.hideEyebrow,newTab:!!d||!!x};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(ft){}try{t.io&&t.io.disconnect()}catch(ft){}(t.stages||[]).forEach(t=>{try{t.destroy()}catch(ft){}}),(t.slots||[]).forEach(t=>t.remove()),st&&(lt(st),st=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(ft){}const z=function(){const t=Object.assign({},r),e=(t,e)=>(0,j.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()),r[i])}),t.formats=Object.fromEntries(Object.keys(o).map(t=>[t,e("format_"+t,o[t])])),t}(),B=Y(),q=E.store_name||(B&&"string"===typeof B.brand_name?B.brand_name:"")||"",H=C.map(t=>u(t).map(t=>A(((E.products||{})[t.product_id]||{}).link)).filter(Boolean)),W=!(!window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches),F={onClipPlay:g,onProductPick:f,onProductView:m},G=v?{mode:"pinned",firstRows:2}:Q(E.placement),et=M(w),ot="grid"===G.mode&&et&&"LI"===et.items[0].tagName?"li":"div",ct=[],dt=C.map(t=>{const e=I(document,ot,t.key),i=document.createElement("div");i.className="wht-neo-bg",i.setAttribute("data-wht-look",$),i.style.setProperty("display","block","important"),Object.keys(P).forEach(t=>i.style.setProperty(t,P[t])),e.appendChild(i);const n=i.attachShadow({mode:"open"}),o=u(t);n.innerHTML="<style>"+_+'</style><div class="wm-frame" data-wht-look="'+$+'">'+h(t,o,E,z,R)+"</div>";const r=n.querySelector(".bg-card");return r._stage=new b(r,o,{data:E,labels:z,storeName:q,setSource:rt,releaseSource:lt,warm:at,track:F,reducedMotion:W}),ct.push(r._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),o=i?i.clips.findIndex(t=>t.product_id===n.getAttribute("data-pid")):-1;if(o<0)return;return t.preventDefault(),void i.watch(o)}const o=i.closest&&i.closest("[data-view]");if(o){const t=e(o),i=t&&t.clips.find(t=>t.product_id===o.getAttribute("data-view"));return void(i&&t.opts.track&&t.opts.track.onProductView&&t.opts.track.onProductView(i))}const r=i.closest&&i.closest("[data-tile],[data-act]"),s=e(r);if(!s)return;const a=r.getAttribute("data-act");if(r.hasAttribute("data-tile"))s.replay(Number(r.getAttribute("data-tile")),"tile");else if("play"===a)s.toggle();else if("mute"===a)s.mute();else if("prev"===a)s.step(-1);else if("next"===a)s.step(1);else if("more"===a){const t=r.closest(".bg-text").classList.toggle("open");r.textContent=t?s.labels.showLess:s.labels.readMore,r.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 ut="block"===l?e:null,pt=null;"above"!==G.mode&&"below"!==G.mode||v||!et||(pt=document.createElement("div"),pt.setAttribute("data-wht-bg-around",G.mode),et.grid.parentElement.insertBefore(pt,"above"===G.mode?et.grid:et.grid.nextSibling),ut=pt);let ht=!1,gt=null;const bt=N({slots:dt,anchor:ut,mode:"grid"===G.mode?"grid":"anchor",firstRows:k?k.first:G.firstRows,everyRows:k?k.every:U,minBefore:k?0:y,doc:w,slotProducts:x?null:H,isFiltered:x?null:()=>function(t){try{return Array.from(new URLSearchParams(t||"").entries()).some(([t,e])=>0===t.indexOf("filter.")&&""!==e)}catch(ft){return!1}}(window.location.search),onSwap:(t,e)=>{gt&&(gt.unobserve(t),gt.observe(e))}});return"none"===bt.placedIn()?(bt.stop(),ct.forEach(t=>t.destroy()),!1):("function"===typeof IntersectionObserver?(gt=new IntersectionObserver(t=>t.forEach(t=>{const e=ct[dt.indexOf(t.target)];e&&(t.isIntersecting&&t.intersectionRatio>=.25&&!ht&&(ht=!0,p&&p()),t.isIntersecting&&t.intersectionRatio>=.5?e.play():e.leave())}),{threshold:[0,.25,.5]}),dt.forEach(t=>gt.observe(t))):(p&&p(),ct.forEach(t=>t.play())),window.__whtBuyingGuide={mode:l,look:$,collectionId:String(s),placer:bt,io:gt,stages:ct,slots:dt,around:pt,placedIn:()=>bt.placedIn()},"block"===l&&e&&(e.style.opacity="1",e.removeAttribute("data-shimmer-active")),!0)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[9507],{1752:function(t,e,n){n.r(e),n.d(e,{CRITICAL_CSS:function(){return F},layoutOption:function(){return j},layoutVars:function(){return S},pdpUrl:function(){return D},renderNeoVideoAnswers:function(){return $},resolveLook:function(){return K}});const a="http://www.w3.org/2000/svg",o="M8 5.5v13l11-6.5z",r="M4 9v6h4l5 4V5L8 9H4zm11.5 3a3.5 3.5 0 0 0-2-3.2v6.4a3.5 3.5 0 0 0 2-3.2zm-2-7.6v2.1a6 6 0 0 1 0 11v2.1a8 8 0 0 0 0-15.2z",i="M4 9v6h4l5 4V5L8 9H4zm12.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4 2.7-2.7 2.7 2.7 1.4-1.4z",s="M15.4 7.4 14 6l-6 6 6 6 1.4-1.4L10.8 12z",d="M7 5h3.5v14H7zm6.5 0H17v14h-3.5z",l="M8.6 16.6 10 18l6-6-6-6-1.4 1.4 4.6 4.6z",h="undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function c(t){if(null==t)return null;if("number"===typeof t&&isFinite(t))return t;const e=String(t).trim().split(":").map(t=>parseInt(t,10));return!e.length||e.some(t=>!isFinite(t))?null:e.reduce((t,e)=>60*t+e,0)}function p(t){const e=Math.max(0,Math.round(t||0));return Math.floor(e/60)+":"+String(e%60).padStart(2,"0")}function v(t){const e="string"===typeof t?parseFloat(t):t;return"number"===typeof e&&isFinite(e)&&e>0?e>=1e6?(e/1e6).toFixed(e>=1e7?0:1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(e>=1e4?0:1).replace(/\.0$/,"")+"K":String(Math.round(e)):null}function w(t){const e=t&&t.event_media_urls&&t.event_media_urls.secondary,n=e&&e.portrait&&e.portrait.content_video_m3u8_original||t&&t.event_m3u8_url||"";return/\.m3u8(\?|$)/i.test(n)?n:""}function u(t,e,n,a){const o=t.createElement(e);return n&&(o.className=n),null!=a&&(o.textContent=a),o}function g(t,e,n){const o=t.createElementNS(a,"svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("aria-hidden","true"),o.setAttribute("focusable","false"),n&&o.setAttribute("class",n);const r=t.createElementNS(a,"path");return r.setAttribute("d",e),r.setAttribute("fill","currentColor"),o.appendChild(r),o}function m(t,e,n,a){if(!(e>0&&n>0))return;const o=Math.min(16/9,Math.max(9/16,e/n));t.style.aspectRatio=String(o);const r=o>1.05?"wide":o>.7?"tall":"portrait";t.setAttribute("data-wht-ar",r),a&&a(r)}function f(t){return p(t.start)+(null!=t.end?"\u2013"+p(t.end):"")}const b=new Set;if("undefined"!==typeof document&&document.addEventListener){const t=()=>b.forEach(t=>t());document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&t()}),"undefined"!==typeof window&&window.addEventListener("pagehide",t)}function y(t,e,a,c,p,v,w){const f=u(t,"div","wht-neo-va-stage"),y=u(t,"video","wht-neo-va-video");y.setAttribute("playsinline",""),y.setAttribute("muted",""),y.muted=!0,y.preload="none",e.length>1&&f.setAttribute("data-wht-multi","");let x=!1;const C=()=>{!x&&e[0]&&(x=!0,e[0].poster&&(y.setAttribute("poster",e[0].poster),function(t,e,n,a){const o=u(t,"img");o.decoding="async",o.addEventListener("load",()=>{e.hasAttribute("data-wht-ar-media")||m(e,o.naturalWidth,o.naturalHeight,a)}),o.src=n}(t,f,e[0].poster,c)))};let k=null,A=null;y.addEventListener("loadedmetadata",()=>{f.setAttribute("data-wht-ar-media",""),m(f,y.videoWidth,y.videoHeight,c)});const _=u(t,"div","wht-neo-va-progress"),z=e.reduce((t,e)=>t+Math.max(1,(null!=e.end?e.end:e.start+6)-e.start),0),I=e.map((n,o)=>{const r=u(t,"button","wht-neo-va-seg");r.type="button",r.tabIndex=-1,r.setAttribute("aria-label",a.moment(o+1,e.length)),r.style.flexGrow=String(Math.max(1,(null!=n.end?n.end:n.start+6)-n.start)/z);const i=u(t,"i","");return r.appendChild(i),_.appendChild(r),r.addEventListener("click",t=>{t.stopPropagation(),Y(o)}),i}),E=u(t,"button","wht-neo-va-mute");E.type="button",E.setAttribute("aria-label",a.unmute),E.setAttribute("aria-pressed","false"),E.appendChild(g(t,i));const S=(e,n,a)=>{const o=u(t,"button","wht-neo-va-nav");return o.type="button",o.setAttribute("data-wht-dir",e),o.setAttribute("aria-label",a),o.appendChild(g(t,n)),o},L=S("prev",s,a.prev),M=S("next",l,a.next),j=u(t,"button","wht-neo-va-toggle");j.type="button",j.setAttribute("aria-label",a.pause),j.appendChild(g(t,d));const q=u(t,"span","wht-neo-va-who",""),R=u(t,"div","wht-neo-va-stage-by"),P=u(t,"span","wht-neo-va-stage-by-avatar",""),B=u(t,"span","wht-neo-va-stage-by-handle","");R.appendChild(P),R.appendChild(B);const O=t=>{q.textContent=t.source.handle?"@"+t.source.handle:"",R.hidden=!t.source.handle,B.textContent=t.source.handle?"@"+t.source.handle:"",P.textContent=t.source.handle.charAt(0).toUpperCase()};e[0]&&O(e[0]);const V=u(t,"button","wht-neo-va-stage-play");V.type="button",V.setAttribute("aria-label",a.play),V.appendChild(g(t,o)),f.appendChild(y),f.appendChild(_),f.appendChild(R),f.appendChild(q),e.length>1&&(f.appendChild(L),f.appendChild(M)),f.appendChild(j),f.appendChild(E),f.appendChild(V);let T=-1,F=null,W=!1,N=!1,D=!1,K=!1,$=!1,H="";const U="function"===typeof IntersectionObserver,J=()=>{E.replaceChildren(g(t,y.muted?i:r)),E.setAttribute("aria-label",y.muted?a.unmute:a.mute),E.setAttribute("aria-pressed",y.muted?"false":"true")},G=()=>{w&&(y.muted=!w.on),J()};w&&(w.listeners.push(G),G());const Y=t=>{if(!e.length)return;W=!0,N=!1,D=!0,T=(t%e.length+e.length)%e.length,F=e[T],O(F),f.setAttribute("data-wht-clip",String(T)),I.forEach((t,e)=>{t.style.width=e<T?"100%":"0"}),C();const a=F,o=a.stream||a.url,r=()=>{if(F===a)try{y.currentTime=a.start}catch(t){}},i=()=>{if(F!==a)return;const t=y.play();t&&t.catch&&t.catch(()=>{})},s=t=>{if(F===a){if(t||y.readyState<1)return y.addEventListener("loadedmetadata",()=>{r(),i()},{once:!0}),void(t||i());r(),i()}};if(o!==H){H=o;const t=(null!=a.end?a.end:a.start+12)-a.start;d=e=>{F===a&&(e.attachSource(y,o,e.PRIORITY.ACTIVE,{bufferAhead:Math.max(6,Math.min(15,t+4))}),s(!0))},k?d(k):(A||(A=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(k=t,t))),A.then(d).catch(()=>{}))}else s(!1);var d;p&&p(T)},Z=()=>{const t=y.play();t&&t.catch&&t.catch(()=>{})},X=()=>{N=!0;try{y.pause()}catch(t){}};U&&(new IntersectionObserver(t=>{$=t.some(t=>t.isIntersecting),$&&D&&C()},{rootMargin:"600px 0px"}).observe(f),new IntersectionObserver(t=>{K=t.some(t=>t.isIntersecting&&t.intersectionRatio>=.25),D&&(!K||N||h?K||(()=>{if(W&&!y.paused)try{y.pause()}catch(t){}})():W?Z():Y(0))},{threshold:[0,.25,.5]}).observe(f));const Q=e=>{j.replaceChildren(g(t,e?d:o)),j.setAttribute("aria-label",e?a.pause:a.play)};let tt=0,et=null,nt=null;const at=()=>{et&&Number.isFinite(y.duration)&&y.duration>0&&(nt=Math.round(10*y.duration)/10)};y.addEventListener("durationchange",at);const ot=()=>{if(!tt||!et)return;const t=(Date.now()-tt)/1e3,e=et,n=nt;tt=0,et=null,nt=null,t>=1&&v&&v.onWatched&&e.event&&v.onWatched(e,{watchTime:Math.round(10*t)/10,duration:n})};b.add(()=>{const t=et&&!y.paused;ot(),t&&(tt=Date.now(),et=F,at())}),y.addEventListener("playing",()=>{f.setAttribute("data-wht-playing",""),Q(!0),F&&(et&&et.eventId!==F.eventId&&ot(),tt||(tt=Date.now(),et=F,at()),!v||!v.onView||null==F.eventId||v.viewed&&v.viewed.has(F.eventId)||(v.viewed&&v.viewed.add(F.eventId),v.onView(F)))}),y.addEventListener("pause",()=>{f.removeAttribute("data-wht-playing"),Q(!1),ot()}),y.addEventListener("emptied",()=>{f.removeAttribute("data-wht-playing"),Q(!1),ot()}),j.addEventListener("click",t=>{t.stopPropagation(),W?y.paused?(N=!1,Z()):X():Y(0)}),V.addEventListener("click",t=>{t.stopPropagation(),W?(N=!1,Z()):Y(0)}),y.addEventListener("timeupdate",()=>{if(!F)return;const t=null!=F.end?F.end:y.duration||0,e=Math.max(.1,t-F.start);I[T].style.width=Math.max(0,Math.min(100,(y.currentTime-F.start)/e*100))+"%",null!=F.end&&y.currentTime>=F.end&&Y(T+1)}),y.addEventListener("ended",()=>Y(T+1));E.addEventListener("click",t=>{t.stopPropagation(),(()=>{if(!w)return y.muted=!y.muted,void J();w.on=y.muted,w.listeners.forEach(t=>t())})()}),L.addEventListener("click",t=>{t.stopPropagation(),Y(T-1)}),M.addEventListener("click",t=>{t.stopPropagation(),Y(T+1)}),y.addEventListener("click",t=>{if(!W)return void Y(0);const n=y.getBoundingClientRect(),a=(t.clientX-n.left)/Math.max(1,n.width);e.length>1&&a<.22?Y(T-1):e.length>1&&a>.78?Y(T+1):y.paused?(N=!1,Z()):X()}),f.addEventListener("keydown",t=>{"ArrowRight"===t.key&&e.length>1?(t.preventDefault(),Y(T+1)):"ArrowLeft"===t.key&&e.length>1?(t.preventDefault(),Y(T-1)):" "===t.key&&W&&(t.preventDefault(),y.paused?(N=!1,Z()):X())});return{element:f,play:Y,prime:C,start:()=>{D=!0,N=!1,U||(K=$=f.isConnected),$&&C(),!h&&K&&f.isConnected&&(W?Z():Y(T<0?0:T))},pause:()=>{if(D=!1,W)try{y.pause()}catch(t){}},index:()=>T}}const x={eyebrow:"Shopper questions",title:"What the videos show",clips:t=>1===t?"1 clip":t+" clips",unmute:"Tap for sound",mute:"Mute",play:"Play",pause:"Pause",prev:"Previous moment",next:"Next moment",paid:"Paid partnership",views:"views",likes:"likes",viewPost:"View the original post",moment:(t,e)=>"Moment "+t+" of "+e};function C(t,e,n={}){const a=n.track?{onView:n.track.onView,onWatched:n.track.onWatched,viewed:new Set}:null,r={on:!1,listeners:[]},i=n.events||{},s=e&&e.sources||{},d=(e&&Array.isArray(e.sections)?e.sections:[]).map(t=>({label:String(t&&(t.label||t.context)||"").trim(),entries:(t&&t.entries||[]).filter(t=>t&&t.title)})).filter(t=>t.label&&t.entries.length);if(!d.length)return null;const l=Object.assign({},x,n.labels||{}),h="wht-va-"+(n.instanceKey||"r"),p=u(t,"section","wht-neo-va");p.setAttribute("data-wht-role","videoAnswers"),n.shopId&&p.setAttribute("data-wht-shop",String(n.shopId)),p.setAttribute("data-wht-widget",n.widgetKey||"wgt_default"),n.instanceKey&&p.setAttribute("data-wht-instance",n.instanceKey),p.setAttribute("data-wht-look",n.look||"a");const m="stacked"===n.layout;p.setAttribute("data-wht-layout",m?"stacked":"tabs");const b=u(t,"header","wht-neo-va-head");l.eyebrow&&b.appendChild(u(t,"p","wht-neo-va-eyebrow",l.eyebrow)),l.title&&b.appendChild(u(t,"h3","wht-neo-va-title",l.title)),l.eyebrow||l.title||(b.hidden=!0),p.appendChild(b);const C=m?null:u(t,"div","wht-neo-va-tabs");C&&(C.setAttribute("role","tablist"),p.appendChild(C));const k=u(t,"div","wht-neo-va-sections");p.appendChild(k);const A=[],_=t=>A.forEach(e=>{e!==t&&e.pause()});let z=null;const I=[];if(d.forEach((e,n)=>{const d=u(t,"div","wht-neo-va-section");d.id=h+"-p"+n,d.setAttribute("data-wht-section",e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-"));let p=null;if(m){const a=u(t,"h4","wht-neo-va-section-label");a.id=h+"-t"+n,a.appendChild(u(t,"span","wht-neo-va-section-name",e.label)),a.appendChild(u(t,"span","wht-neo-va-section-n",String(e.entries.length))),d.setAttribute("role","region"),d.setAttribute("aria-labelledby",a.id),d.appendChild(a)}else d.setAttribute("role","tabpanel"),p=u(t,"button","wht-neo-va-tab"),p.type="button",p.id=h+"-t"+n,p.setAttribute("role","tab"),p.setAttribute("aria-controls",d.id),d.setAttribute("aria-labelledby",p.id),p.appendChild(u(t,"span","wht-neo-va-tab-label",e.label)),p.appendChild(u(t,"span","wht-neo-va-tab-n",String(e.entries.length))),C.appendChild(p);const b=[];e.entries.forEach((e,p)=>{const m=function(t,e,n){const a=[];for(const o of t&&t.evidence||[]){if(!o||!o.video_url)continue;const t=String(o.event_id),r=e&&e[t]||{},i=c(o.start),s=c(o.end),d=n&&n[t]||null;a.push({url:o.video_url,stream:w(r),eventId:t,event:e&&e[t]?e[t]:null,start:null==i?0:i,end:null!=s&&null!=i&&s>i?s:null,label:String(o.label||"").trim(),poster:r.poster_image||"",source:d?{handle:String(d.handle||"").replace(/^@/,""),type:"creator"===d.type?"creator":"brand",paid:!!d.paid,views:d.views,likes:d.likes,comments:d.comments,posted:d.posted||null,url:d.post_url||null}:{handle:"",type:"brand",paid:!1,views:r.total_views,likes:null,comments:null,posted:null,url:null}})}return a}(e,i,s),x=u(t,"div","wht-neo-va-entry"),C=h+"-"+n+"-"+p,k=u(t,"button","wht-neo-va-q");k.type="button",k.setAttribute("aria-controls",C),k.appendChild(u(t,"span","wht-neo-va-qtext",e.title)),m.length&&k.appendChild(u(t,"span","wht-neo-va-qmeta",l.clips(m.length))),k.appendChild(u(t,"span","wht-neo-va-chev",""));const I=u(t,"div","wht-neo-va-a");I.id=C;const E=u(t,"div","wht-neo-va-a-in");I.appendChild(E);const S=u(t,"div","wht-neo-va-text");e.body&&S.appendChild(u(t,"p","wht-neo-va-body",e.body)),E.appendChild(S);let L=null;if(m.length){const e=function(t,e,n){const a=u(t,"div","wht-neo-va-source"),o=u(t,"span","wht-neo-va-avatar",""),r=u(t,"div","wht-neo-va-source-main"),i=u(t,"a","wht-neo-va-handle",""),s=u(t,"span","wht-neo-va-tag",n.paid),d=u(t,"span","wht-neo-va-stats","");r.appendChild(i),r.appendChild(s),r.appendChild(d),a.appendChild(o),a.appendChild(r);const l=t=>{const r=e[t];if(!r)return;const l=r.source,h=!l.handle;a.setAttribute("data-wht-uncredited",h?"true":"false"),a.setAttribute("data-wht-type",l.type),a.setAttribute("data-wht-paid",l.paid?"true":"false"),o.hidden=h,i.hidden=h,i.textContent=l.handle?"@"+l.handle:"",l.url?(i.href=l.url,i.target="_blank",i.rel="noopener",i.title=n.viewPost):(i.removeAttribute("href"),i.removeAttribute("target"),i.removeAttribute("title")),s.hidden=!l.paid,o.textContent=l.handle.charAt(0).toUpperCase();const c=v(l.views),p=v(l.likes);d.textContent=[c&&c+" "+n.views,p&&p+" "+n.likes].filter(Boolean).join(" \xb7 "),d.hidden=!d.textContent,a.hidden=h&&d.hidden};return l(0),{element:a,show:l}}(t,m,l),n=u(t,"div","wht-neo-va-clips");m.length<2&&(n.hidden=!0);const i=m.map((e,a)=>{const r=u(t,"button","wht-neo-va-clip");return r.type="button",r.appendChild(g(t,o,"wht-neo-va-clip-icon")),e.label?r.appendChild(u(t,"span","wht-neo-va-clip-label",e.label)):r.appendChild(u(t,"span","wht-neo-va-clip-time",f(e))),r.title=f(e),r.setAttribute("aria-label",l.play+" "+(e.label||f(e))),r.addEventListener("click",()=>{_(L),L.play(a)}),n.appendChild(r),r}),s=t=>i.forEach((e,n)=>{n===t?e.setAttribute("data-wht-current",""):e.removeAttribute("data-wht-current")});s(0),L=y(t,m,l,t=>I.setAttribute("data-wht-ar",t),t=>{e.show(t),s(t)},a,r),A.push(L),E.appendChild(L.element),E.appendChild(n),E.appendChild(e.element)}const M=t=>{t?(z&&z.entry!==x&&z.close(),z={entry:x,close:()=>M(!1)},x.setAttribute("data-wht-open",""),L&&(_(L),L.start())):(z&&z.entry===x&&(z=null),x.removeAttribute("data-wht-open"),L&&L.pause()),k.setAttribute("aria-expanded",t?"true":"false")};k.addEventListener("click",()=>M(!x.hasAttribute("data-wht-open"))),M(!1),b.push(M),x.appendChild(k),x.appendChild(I),d.appendChild(x)}),k.appendChild(d),I.push({tab:p,sec:d,openFirst:()=>b[0](!0)})}),m)return I[0].openFirst(),p;const E=(t,e)=>{I.forEach((e,n)=>{const a=n===t;e.tab.setAttribute("aria-selected",a?"true":"false"),e.tab.tabIndex=a?0:-1,a?e.tab.setAttribute("data-wht-current",""):e.tab.removeAttribute("data-wht-current"),e.sec.hidden=!a}),_(null),I[t].openFirst(),e&&I[t].tab.focus(),C.scrollTo&&C.scrollWidth>C.clientWidth&&C.scrollTo({left:I[t].tab.offsetLeft-(C.clientWidth-I[t].tab.offsetWidth)/2,behavior:"smooth"})};return I.forEach((t,e)=>t.tab.addEventListener("click",()=>{t.sec.hidden&&E(e,!1)})),C.addEventListener("keydown",t=>{const e=I.findIndex(t=>!t.sec.hidden),n="ArrowRight"===t.key?1:"ArrowLeft"===t.key?-1:0;n&&(t.preventDefault(),E((e+n+I.length)%I.length,!0))}),E(0,!1),p}var k=n(1839),A=n(9439),_=n(3959),z=n(6387),I=".wht-neo-va{background:var(--wht-neo-va-bg,transparent);border-radius:var(--wht-neo-va-radius,0);color:var(--wht-neo-va-fg,#1a1a1a);padding:var(--wht-neo-va-pad,0)}.wht-neo-va-eyebrow{color:var(--wht-neo-va-eyebrow-fg,var(--wht-neo-va-muted,rgba(0,0,0,.55)));font-size:.72em;font-weight:500;letter-spacing:.18em;text-transform:uppercase}.wht-neo-va-title{font-family:var(--wht-neo-va-title-font,var(--font-heading-family,inherit));font-weight:var(--wht-neo-va-title-weight,400);letter-spacing:-.02em;line-height:1.15}.wht-neo-va-tab{background:var(--wht-neo-va-surface,#fff);border:1px solid var(--wht-neo-va-line,rgba(0,0,0,.14));border-radius:999px;color:var(--wht-neo-va-tab-fg,var(--wht-neo-va-fg,#1a1a1a));font-size:.95em;font-weight:500;padding:.6em 1.05em;transition:background .15s ease,color .15s ease,border-color .15s ease}.wht-neo-va-tab-n{color:var(--wht-neo-va-tab-n-fg,var(--wht-neo-va-muted,rgba(0,0,0,.5)));height:auto;min-width:0;padding:0}.wht-neo-va-tab[data-wht-current]{background:var(--wht-neo-va-tab-bg-current,var(--wht-neo-va-fg,#1a1a1a));border-color:var(--wht-neo-va-tab-bg-current,var(--wht-neo-va-fg,#1a1a1a));color:var(--wht-neo-va-tab-fg-current,#fff)}.wht-neo-va-tab[data-wht-current] .wht-neo-va-tab-n{color:inherit;opacity:.7}.wht-neo-va-tab:focus-visible{outline:2px solid var(--wht-neo-va-accent,var(--wht-neo-va-fg,#1a1a1a));outline-offset:2px}.wht-neo-va-section-label{color:var(--wht-neo-va-section-label-fg,var(--wht-neo-va-fg,#1a1a1a));font-family:var(--wht-neo-va-section-label-font,var(--wht-neo-va-title-font,var(--font-heading-family,inherit)));font-size:var(--wht-neo-va-section-label-size,1.2em);font-weight:var(--wht-neo-va-section-label-weight,500);letter-spacing:-.01em}.wht-neo-va-section-n{color:var(--wht-neo-va-section-n-fg,var(--wht-neo-va-muted,rgba(0,0,0,.5)));font-weight:400}.wht-neo-va-entry{background:var(--wht-neo-va-surface,#fff);border:1px solid var(--wht-neo-va-card-line,var(--wht-neo-va-line,rgba(0,0,0,.12)));border-radius:var(--wht-neo-va-card-radius,12px);transition:border-color .2s ease}.wht-neo-va-entry:not([data-wht-open]):hover{border-color:var(--wht-neo-va-muted,rgba(0,0,0,.3))}.wht-neo-va-q{border-radius:var(--wht-neo-va-card-radius,12px);font-size:var(--wht-neo-va-q-size,1.05em);font-weight:var(--wht-neo-va-q-weight,500);letter-spacing:-.01em;line-height:1.35}.wht-neo-va-q:focus-visible{outline:2px solid var(--wht-neo-va-accent,var(--wht-neo-va-fg,#1a1a1a));outline-offset:2px}.wht-neo-va-qmeta{color:var(--wht-neo-va-muted,rgba(0,0,0,.5));font-size:.8em;font-weight:400;letter-spacing:0}.wht-neo-va-chev{color:var(--wht-neo-va-muted,rgba(0,0,0,.55))}.wht-neo-va-body{color:var(--wht-neo-va-body-fg,var(--wht-neo-va-fg,#1a1a1a));font-size:var(--wht-neo-va-body-size,1em);line-height:1.65;opacity:var(--wht-neo-va-body-opacity,.88)}.wht-neo-va-clip{background:var(--wht-neo-va-chip-bg,transparent);border:1px solid var(--wht-neo-va-chip-line,var(--wht-neo-va-line,rgba(0,0,0,.2)));border-radius:999px;color:var(--wht-neo-va-chip-fg,var(--wht-neo-va-fg,#1a1a1a));font-size:.9em;padding:.55em 1em;transition:background .15s ease,color .15s ease,border-color .15s ease}.wht-neo-va-clip:hover{border-color:var(--wht-neo-va-chip-bg-current,var(--wht-neo-va-fg,#1a1a1a))}.wht-neo-va-clip-icon{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}.wht-neo-va-clip-icon path{fill:none}.wht-neo-va-clip-label{color:inherit}.wht-neo-va-clip[data-wht-current]{background:var(--wht-neo-va-chip-bg-current,var(--wht-neo-va-fg,#1a1a1a));border-color:var(--wht-neo-va-chip-bg-current,var(--wht-neo-va-fg,#1a1a1a));color:var(--wht-neo-va-chip-fg-current,#fff)}.wht-neo-va-clip[data-wht-current] .wht-neo-va-clip-icon path{fill:currentColor}.wht-neo-va-clip[data-wht-current] .wht-neo-va-clip-label{color:inherit}.wht-neo-va-clip:focus-visible{outline:2px solid var(--wht-neo-va-accent,var(--wht-neo-va-fg,#1a1a1a));outline-offset:2px}.wht-neo-va-avatar{background:var(--wht-neo-va-avatar-bg,rgba(0,0,0,.07));color:var(--wht-neo-va-avatar-fg,var(--wht-neo-va-fg,#1a1a1a));font-size:.85em;font-weight:600}.wht-neo-va-handle{font-size:.95em;font-weight:500}.wht-neo-va-handle[href]:hover{text-decoration:underline;text-underline-offset:.15em}.wht-neo-va-tag{background:var(--wht-neo-va-tag-bg-paid,rgba(29,95,191,.1));border-radius:999px;color:var(--wht-neo-va-tag-fg-paid,#1d5fbf);font-size:.62em;font-weight:700;letter-spacing:.08em;padding:.2em .6em;text-transform:uppercase}.wht-neo-va-stats{color:var(--wht-neo-va-muted,rgba(0,0,0,.5));font-size:.85em}.wht-neo-va-stage{background:var(--wht-neo-va-stage-bg,#111);border-radius:var(--wht-neo-va-stage-radius,12px)}.wht-neo-va-seg{background:var(--wht-neo-va-seg-bg,hsla(0,0%,100%,.35))}.wht-neo-va-seg i{background:var(--wht-neo-va-seg-fill,#fff)}.wht-neo-va-mute{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:var(--wht-neo-va-control-bg,rgba(0,0,0,.5))}.wht-neo-va-mute:hover{background:var(--wht-neo-va-control-bg-hover,rgba(0,0,0,.75))}.wht-neo-va-nav,.wht-neo-va-toggle{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:var(--wht-neo-va-control-bg,rgba(0,0,0,.5))}.wht-neo-va-nav:hover,.wht-neo-va-toggle:hover{background:var(--wht-neo-va-control-bg-hover,rgba(0,0,0,.75))}.wht-neo-va-stage-play{background:var(--wht-neo-va-play-bg,hsla(0,0%,100%,.92));color:var(--wht-neo-va-play-fg,#111);transition:transform .15s ease}.wht-neo-va-stage-play:hover{transform:translate(-50%,-50%) scale(1.06)}.wht-neo-va-who{color:#fff;font-size:.82em;font-variant-numeric:tabular-nums;font-weight:500;text-shadow:0 1px 2px rgba(0,0,0,.5)}@container (min-width: 560px){.wht-neo-va-tabs{background:var(--wht-neo-va-tabs-bg,rgba(0,0,0,.055));border-radius:999px;padding:5px}.wht-neo-va-tab{background:transparent;border:0;color:var(--wht-neo-va-tab-fg,var(--wht-neo-va-muted,rgba(0,0,0,.6)));font-size:1em;padding:.7em 1.4em}.wht-neo-va-tab:hover{color:var(--wht-neo-va-fg,#1a1a1a)}.wht-neo-va-tab-n{background:var(--wht-neo-va-tab-n-bg,rgba(0,0,0,.07));height:1.55em;min-width:1.55em;padding:0 .4em}.wht-neo-va-tab[data-wht-current]{background:var(--wht-neo-va-tab-bg-current,var(--wht-neo-va-surface,#fff));box-shadow:0 1px 2px rgba(0,0,0,.08);color:var(--wht-neo-va-tab-fg-current,var(--wht-neo-va-fg,#1a1a1a))}.wht-neo-va-tab[data-wht-current] .wht-neo-va-tab-n{background:var(--wht-neo-va-tab-n-bg-current,var(--wht-neo-va-fg,#1a1a1a));color:var(--wht-neo-va-tab-n-fg-current,#fff);opacity:1}.wht-neo-va-q{font-size:var(--wht-neo-va-q-size,1.2em);font-weight:var(--wht-neo-va-q-weight,400)}.wht-neo-va-body{font-size:var(--wht-neo-va-body-size,1.07em)}}",E=n(651);function S(t){const e=(t,e,n)=>{const a=Number(t);return Number.isFinite(a)&&""!==t&&null!==t?Math.min(n,Math.max(e,Math.round(a))):null},n=e(t&&t.spaceAbove,0,200),a=e(t&&t.spaceBelow,0,200),o=e(t&&t.maxWidth,320,2e3),r={};return null===n&&null===a||(r["--wht-neo-va-margin"]=(null!==n?n:24)+"px auto "+(null!==a?a:24)+"px"),null!==o&&(r["--wht-neo-va-maxw"]=o+"px"),r}const L=["tabs","stacked"],M={j:"tabs"};function j(t,e){const n=String(e||M[t]||"stacked").toLowerCase();return L.includes(n)?n:"stacked"}function q(t,e){const n=t&&t[e];return"string"===typeof n&&n.trim()?n.trim():null}const R="wht-neo-va-critical",P="wht-neo-va-skin",B="videoAnswers",O=["a","b","c","d","e","f","g","h","i","j"],V=["a","j"],T={b:"family=Instrument+Serif",c:"family=Geist:wght@400;500;600",d:"family=Barlow+Condensed:wght@500;600;700"};const F='\n.wht-neo-va{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:var(--wht-neo-va-maxw,1000px);margin:var(--wht-neo-va-margin,24px auto);container-type:inline-size;font-family:var(--wht-neo-va-font,inherit);font-size:var(--wht-neo-va-font-size,14px);line-height:1.5}\n.wht-neo-va *,.wht-neo-va *::before,.wht-neo-va *::after{box-sizing:inherit}\n.wht-neo-va [hidden]{display:none!important}\n.wht-neo-va-head{text-align:center;margin-bottom:1.2em}\n.wht-neo-va-eyebrow{margin:0 0 .6em}\n.wht-neo-va-title{margin:0;font-size:var(--wht-neo-va-title-size,1.75em)}\n.wht-neo-va-tabs{display:flex;gap:.5em;width:max-content;max-width:100%;margin:0 auto 1.2em;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.wht-neo-va-tabs::-webkit-scrollbar{display:none}\n.wht-neo-va-tab{display:inline-flex;align-items:center;gap:.5em;flex:0 0 auto;margin:0;font:inherit;line-height:1.2;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}\n.wht-neo-va-tab-n{display:inline-flex;align-items:center;justify-content:center;min-width:1.55em;height:1.55em;padding:0 .4em;border-radius:999px;font-size:.78em;font-variant-numeric:tabular-nums}\n.wht-neo-va-sections,.wht-neo-va-section,.wht-neo-va-entry{display:block}\n.wht-neo-va-section-label{display:flex;align-items:baseline;gap:.5em;margin:0 0 .8em;font:inherit;line-height:1.2}\n.wht-neo-va-section-n{font-size:.78em;font-variant-numeric:tabular-nums}\n.wht-neo-va[data-wht-layout="stacked"] .wht-neo-va-section+.wht-neo-va-section{margin-top:var(--wht-neo-va-section-gap,2.4em)}\n.wht-neo-va-entry+.wht-neo-va-entry{margin-top:var(--wht-neo-va-card-gap,10px)}\n.wht-neo-va-q{display:flex;align-items:center;gap:.75em;width:100%;margin:0;padding:var(--wht-neo-va-card-pad-y,16px) var(--wht-neo-va-card-pad-x,16px);border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}\n.wht-neo-va-qtext{flex:1 1 auto;min-width:0}\n.wht-neo-va-qmeta{display:none;flex:0 0 auto;white-space:nowrap}\n.wht-neo-va-chev{display:grid;place-items:center;flex:0 0 auto;width:1.2em;height:1.2em}\n.wht-neo-va-chev::before{content:"";display:block;width:.5em;height:.5em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-25%) rotate(45deg);transition:transform .25s ease}\n.wht-neo-va-entry[data-wht-open] .wht-neo-va-chev::before{transform:translateY(25%) rotate(225deg)}\n.wht-neo-va-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease}\n.wht-neo-va-a-in{min-height:0;overflow:hidden;visibility:hidden;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "stage" "clips" "source";column-gap:var(--wht-neo-va-cols-gap,36px);align-items:start;padding:0 var(--wht-neo-va-card-pad-x,16px);transition:visibility 0s .3s}\n.wht-neo-va-entry[data-wht-open] .wht-neo-va-a{grid-template-rows:1fr}\n.wht-neo-va-entry[data-wht-open] .wht-neo-va-a-in{visibility:visible;transition:none;padding-bottom:var(--wht-neo-va-card-pad-y,16px)}\n.wht-neo-va-text{grid-area:text;min-width:0}\n.wht-neo-va-body{margin:0}\n.wht-neo-va-clips{grid-area:clips;display:flex;flex-wrap:wrap;gap:.5em;margin-top:1em}\n.wht-neo-va-clip{display:inline-flex;align-items:center;gap:.55em;margin:0;font:inherit;line-height:1.2;white-space:nowrap;cursor:pointer}\n.wht-neo-va-clip-icon{width:.85em;height:.85em;flex:0 0 auto}\n.wht-neo-va-clip-time{font-variant-numeric:tabular-nums}\n.wht-neo-va-clip-label{display:inline}\n.wht-neo-va-source{grid-area:source;display:flex;align-items:center;gap:.75em;margin-top:1.1em;min-width:0}\n.wht-neo-va-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.2em;height:2.2em;border-radius:50%;overflow:hidden}\n.wht-neo-va-source-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0}\n.wht-neo-va-handle{text-decoration:none;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}\n.wht-neo-va-handle[href]{cursor:pointer}\n.wht-neo-va-tag{display:inline-block;white-space:nowrap}\n.wht-neo-va-stats{white-space:nowrap;font-variant-numeric:tabular-nums}\n.wht-neo-va-stage{grid-area:stage;position:relative;width:100%;margin-top:1em;aspect-ratio:9/16;overflow:hidden;background:#111}\n.wht-neo-va-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;pointer-events:none;background:var(--wht-neo-va-stage-scrim,linear-gradient(180deg,transparent,rgba(0,0,0,.5)))}\n.wht-neo-va-video{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}\n.wht-neo-va-progress{position:absolute;left:8px;right:8px;top:8px;z-index:2;display:flex;gap:3px;opacity:0;transition:opacity .2s}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-progress{opacity:1}\n.wht-neo-va-seg{position:relative;display:block;flex:1 1 0;height:3px;padding:0;margin:0;border:0;border-radius:2px;overflow:hidden;cursor:pointer}\n.wht-neo-va-seg i{display:block;height:100%;width:0}\n.wht-neo-va-mute{position:absolute;right:10px;bottom:10px;z-index:2;display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-mute{display:inline-flex}\n.wht-neo-va-mute svg{width:18px;height:18px}\n.wht-neo-va-toggle{position:absolute;right:52px;bottom:10px;z-index:2;display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-toggle{display:inline-flex}\n.wht-neo-va-toggle svg{width:16px;height:16px}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-who{max-width:calc(100% - 110px)}\n.wht-neo-va-nav{position:absolute;top:50%;z-index:2;display:none;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;transform:translateY(-50%);cursor:pointer;color:#fff;opacity:0;transition:opacity .2s}\n.wht-neo-va-nav svg{width:18px;height:18px}\n.wht-neo-va-nav[data-wht-dir="prev"]{left:8px}\n.wht-neo-va-nav[data-wht-dir="next"]{right:8px}\n.wht-neo-va-stage[data-wht-multi][data-wht-clip] .wht-neo-va-nav{display:inline-flex}\n.wht-neo-va-stage:hover .wht-neo-va-nav,.wht-neo-va-stage:focus-within .wht-neo-va-nav{opacity:1}\n@media (hover:none){.wht-neo-va-stage[data-wht-multi][data-wht-clip] .wht-neo-va-nav{opacity:.85}}\n.wht-neo-va-who{position:absolute;left:12px;bottom:12px;z-index:2;max-width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}\n.wht-neo-va-stage-play{position:absolute;left:50%;top:50%;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer}\n.wht-neo-va-stage-play svg{width:22px;height:22px;margin-left:2px}\n.wht-neo-va-stage[data-wht-playing] .wht-neo-va-stage-play{display:none}\n.wht-neo-va-stage-by{position:absolute;left:12px;right:12px;top:22px;z-index:2;display:none;align-items:center;gap:8px;min-width:0;pointer-events:none}\n.wht-neo-va-stage-by-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%}\n.wht-neo-va-stage-by-handle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n@container (max-width:559.98px){.wht-neo-va-head,.wht-neo-va-tabs,.wht-neo-va-sections{padding-inline:var(--wht-neo-va-gutter,16px)}.wht-neo-va-entry+.wht-neo-va-entry{margin-top:var(--wht-neo-va-card-gap,12px)}.wht-neo-va-q{padding:var(--wht-neo-va-card-pad-y,18px) var(--wht-neo-va-card-pad-x,18px)}.wht-neo-va-a-in{padding:0 var(--wht-neo-va-card-pad-x,18px)}.wht-neo-va-entry[data-wht-open] .wht-neo-va-a-in{padding-bottom:var(--wht-neo-va-card-pad-y,18px)}.wht-neo-va-stage{margin-top:1.25em}.wht-neo-va-a:not([data-wht-ar="wide"]) .wht-neo-va-stage{aspect-ratio:9/16!important;width:min(100%,calc(var(--wht-neo-va-stage-h-max,560px) * 9 / 16));margin-inline:auto}.wht-neo-va-clips{margin-top:1.25em}.wht-neo-va-source{margin-top:1.25em}}\n@container (min-width:560px){.wht-neo-va-head,.wht-neo-va-tabs,.wht-neo-va-sections{font-size:var(--wht-neo-va-font-size-wide,1.07em)}.wht-neo-va-entry+.wht-neo-va-entry{margin-top:var(--wht-neo-va-card-gap,12px)}.wht-neo-va-q{padding:var(--wht-neo-va-card-pad-y,24px) var(--wht-neo-va-card-pad-x,28px)}.wht-neo-va-a-in{padding:0 var(--wht-neo-va-card-pad-x,28px)}.wht-neo-va-entry[data-wht-open] .wht-neo-va-a-in{padding-bottom:var(--wht-neo-va-card-pad-y,28px)}.wht-neo-va-title{font-size:var(--wht-neo-va-title-size-wide,2.4em)}.wht-neo-va-head{margin-bottom:1.6em}.wht-neo-va-tabs{gap:2px;margin-bottom:2.4em}.wht-neo-va-qmeta{display:inline}.wht-neo-va-entry[data-wht-open] .wht-neo-va-qmeta{display:none}.wht-neo-va-source-main{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:.2em .8em}.wht-neo-va-a-in{grid-template-columns:minmax(0,1fr) var(--wht-neo-va-stage-w,250px);grid-template-rows:auto auto 1fr;grid-template-areas:"text stage" "clips stage" "source stage"}.wht-neo-va-a-in:not(:has(.wht-neo-va-stage)){grid-template-columns:minmax(0,1fr)}.wht-neo-va-stage{margin-top:0}.wht-neo-va-text{max-width:var(--wht-neo-va-measure,62ch)}.wht-neo-va-a[data-wht-ar="wide"] .wht-neo-va-a-in{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"text" "stage" "clips" "source"}.wht-neo-va-a[data-wht-ar="wide"] .wht-neo-va-stage{width:min(100%,var(--wht-neo-va-stage-w-max,560px));margin-top:1.1em}}\n@media (prefers-reduced-motion:reduce){.wht-neo-va-chev::before,.wht-neo-va-progress,.wht-neo-va-a,.wht-neo-va-a-in{transition:none}}\n';function W(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const N=t=>{const e=W();return t.split(".").reduce((t,e)=>null==t?void 0:t[e],e)};function D({shopId:t,productId:e,hostname:n}){const a=!0===N("product_page_popup_config.show_all_events")||!0===N("recommendation_config.show_all_events_with_pdp");return`${(0,E.y0)(W(),"/v2/brand/{store_id}/product-events/recommendation/cdn",t)}?client_product_id=${encodeURIComponent(e)}&limit=10&recommended=${!a}&origin=${n}&status=live,upcoming&event_type=video,image`}async function K(t,e,n){const a=(0,k.RO)(t,B,e)||{},o=String(n||a.skin||"a").toLowerCase(),r=O.includes(o)?o:"a",i=a.customCss;let s="";"string"===typeof i?s=i:i&&"object"===typeof i&&"string"===typeof i[r]&&(s=i[r]);const d=V.includes(r)?"":await(0,z.P)(B,r);return{look:r,stack:I+(d?"\n"+d:"")+("string"===typeof a.brandCss&&a.brandCss?"\n"+a.brandCss:"")+(s?"\n"+s:"")}}async function $(t){const{rootElement:e,widgetContainer:n,shopId:a,productId:o,widgetIdentity:r,isDefaultIdentity:i,whatmoreRootId:s,neoJson:d,onWidgetView:l,onClipPlay:h,videoAnswersSample:c}=t;if(!e||!a||!o)return!1;const p={};e.__whtVaRender=p;const v=()=>e.__whtVaRender!==p;(0,k.fz)(R,F);let w=null,u=null;try{const t=new URLSearchParams(window.location.search);w=t.get("neoskin"),u=t.get("neolayout")}catch($){}const g=i||!r?"wgt_default":r,m=["wgt_default"!==g?g:null,s].filter(Boolean),{look:f,stack:b}=await K(d,m,w);if(v())return!0;let y;!function(t){const e=T[t];if(!e||document.getElementById("wht-neo-va-font-"+t))return;const n=document.createElement("link");n.id="wht-neo-va-font-"+t,n.rel="stylesheet",n.href="https://fonts.googleapis.com/css2?"+e+"&display=swap",document.head.appendChild(n)}(f),s?(0,k.fz)(P+"-"+s,(0,k.GJ)(b,':where([data-wht-instance="'+s+'"])')):(0,k.fz)(P,b);try{y=await(0,E.Zq)(D({shopId:a,productId:o,hostname:window.location.hostname})).then(t=>t.json())}catch($){y=null}if(v())return!0;let x=y&&y.video_sense;try{const t=e.closest?e.closest(".whatmore-base"):null,n=t&&t.querySelector("#whatmoreVideoAnswersDraft");if(n){const t=JSON.parse(n.textContent||"null");t&&Array.isArray(t.sections)&&(x=t)}}catch($){}let z=!1;if(!x&&c&&c.shopId&&c.productId){try{const t=await(0,E.Zq)(D({shopId:c.shopId,productId:c.productId,hostname:window.location.hostname})).then(t=>t.json());t&&t.video_sense&&(y=t,x=t.video_sense,z=!0)}catch($){}if(v())return!0}if(!x)return!1;const I={};for(const C of[].concat(y&&y.events||[],y&&y.related_events||[],y&&y.all_events||[]))C&&null!=C.event_id&&!I[String(C.event_id)]&&(I[String(C.event_id)]=C);const L=(0,k.RO)(d,B,m)||{},M=q(L,"title"),O=q(L,"eyebrow"),V=!(L&&!0===L.hideEyebrow),W=C(document,x,{track:!z&&h?{onView:t=>h(t)}:null,shopId:a,widgetKey:g,instanceKey:s,look:f,layout:j(f,u),events:I,labels:{eyebrow:V?null!==O?O:(0,_.rB)("video_answers_eyebrow","Shopper questions"):"",title:null!==M?M:(0,_.rB)("video_answers_title","What the videos show"),unmute:(0,_.rB)("video_answers_unmute","Tap for sound"),mute:(0,_.rB)("video_answers_mute","Mute"),play:(0,_.rB)("video_answers_play","Play"),pause:(0,_.rB)("video_answers_pause","Pause"),paid:(0,_.rB)("video_answers_paid","Paid partnership"),viewPost:(0,_.rB)("video_answers_view_post","View the original post")}});if(!W)return!1;const N=S(L);if(Object.keys(N).forEach(t=>W.style.setProperty(t,N[t])),z){const t=document.createElement("div");t.className="wht-neo-va-sample-note",t.setAttribute("role","note"),t.style.cssText="margin:0 0 16px;padding:10px 14px;border:1px solid #F2D675;border-radius:8px;background:#FFF8E1;color:#5F4B00;font:500 13px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left",t.textContent=(0,_.rB)("video_answers_sample_note","Sample preview. This product has no Video Answers to show yet, so these questions and clips are from the Whatmore demo store. Shoppers only see this block on products that have their own answers."),W.insertBefore(t,W.firstChild),W.setAttribute("data-wht-sample","")}if(l&&!z)if("function"===typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(t=>t.isIntersecting&&t.intersectionRatio>=.25)&&(t.disconnect(),l())},{threshold:[0,.25]});t.observe(W)}else l();return s&&e.setAttribute("data-wht-instance",s),(0,A.Vo)(W,n||e),e.replaceChildren(W),e.style.opacity="1",e.removeAttribute("data-shimmer-active"),!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=d(o.widgets,n)||d(i,n),l=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(a),h=l&&o[l]&&"object"===typeof o[l]?o[l]:null,c=s?Object.assign({},o,s):h?Object.assign({},o,h):o;return Object.assign({},c,{brandCss:r,perInstance:!!s,pageScoped:!!h})}function d(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}})}}]);
|