whatmore-react-assets 1.0.1897 → 1.0.1899

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1897",
3
+ "version": "1.0.1899",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[126],{1839:function(e,t,n){function r(e,t){let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent=t}function a(e,t){if(!e||!t)return e||"";const n=document.createElement("style");n.media="not all",n.textContent=e,document.head.appendChild(n);let r=e;try{const e=n.sheet;e&&(o(e.cssRules,t),r=function(e){let t="";for(let n=0;n<e.length;n++)t+=e[n].cssText+"\n";return t}(e.cssRules))}catch(a){}return n.remove(),r}function o(e,t){for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.selectorText&&void 0!==r.style?r.selectorText=i(r.selectorText,t):!r.cssRules||"undefined"!==typeof CSSKeyframesRule&&r instanceof CSSKeyframesRule||o(r.cssRules,t)}}function i(e,t){return function(e){const t=[];let n=0,r="";for(let a=0;a<e.length;a++){const o=e[a];"("===o||"["===o?n++:")"!==o&&"]"!==o||n--,","===o&&0===n?(t.push(r),r=""):r+=o}return t.push(r),t}(e).map(e=>{const n=e.trim();return n?t+" "+n:n}).join(", ")}function s(e,t,n,r){if(!e)return null;const a=e[t];if(!a||"object"!==typeof a)return Object.assign({},e,{brandCss:""});const o="string"===typeof e.customCss?e.customCss:"",i=e.shopper&&e.shopper.widgets&&e.shopper.widgets[t],s=c(a.widgets,n)||c(i,n),l=s?null:function(e){return 0===String(e||"").indexOf("product")?"product":null}(r),d=l&&a[l]&&"object"===typeof a[l]?a[l]:null,u=s?Object.assign({},a,s):d?Object.assign({},a,d):a;return Object.assign({},u,{brandCss:o,perInstance:!!s,pageScoped:!!d})}function c(e,t){if(!e||"object"!==typeof e||!t)return null;const n=Array.isArray(t)?t:[t];for(let r=0;r<n.length;r++){const t=n[r];if(null==t||""===t)continue;const a=e[t];if(a&&"object"===typeof a)return a}return null}n.d(t,{GJ:function(){return a},RO:function(){return s},fz:function(){return r}})},5348:function(e,t,n){n.d(t,{renderNeoBanner:function(){return y}});var r=n(7983),a=n(6387),o=n(1839),i=n(9439),s=".wht-neo-banner-overlay{background:var(--wht-neo-banner-overlay,linear-gradient(to top,transparent 70%,rgba(0,0,0,.3)))}.wht-neo-banner[data-wht-mutebtn] .wht-neo-banner-mute{align-items:center;background:var(--wht-neo-banner-mute-bg,rgba(0,0,0,.4));border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;height:var(--wht-neo-banner-mute-size,39px);justify-content:center;padding:0;position:absolute;right:10px;top:10px;width:var(--wht-neo-banner-mute-size,39px);z-index:2}.wht-neo-banner-mute svg{height:55%;width:55%}.wht-neo-banner[data-wht-sound] .wht-neo-banner-mute{opacity:.7}.wht-neo-banner-nav{align-items:center;background:var(--wht-neo-banner-nav-bg,#fff);border:none;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--wht-neo-banner-nav-color,#090a0b);cursor:pointer;display:flex;height:var(--wht-neo-banner-nav-size,36px);justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wht-neo-banner-nav-size,36px);z-index:2}.wht-neo-banner-nav-prev{left:10px}.wht-neo-banner-nav-next{right:10px}.wht-neo-banner-nav svg{display:block;height:42%;width:42%}.wht-neo-banner[data-wht-dots] .wht-neo-banner-dots{align-items:center;bottom:7%;display:flex;gap:var(--wht-neo-banner-dot-gap,24px);justify-content:center;left:0;position:absolute;right:0;z-index:2}.wht-neo-banner-dot{background:var(--wht-neo-banner-dot,#f8eeec);border:none;border-radius:999px;cursor:pointer;height:12px;padding:0;transition:width .2s ease,background .2s ease;width:12px}.wht-neo-banner-dot[data-wht-active]{background:var(--wht-neo-banner-dot-active,#343434);width:25px}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta{background:var(--wht-neo-banner-cta-bg,#fff);border-radius:var(--wht-neo-banner-cta-radius,5px);bottom:10%;color:var(--wht-neo-banner-cta-color,#343434);display:inline-block;font-size:var(--wht-neo-banner-cta-size,15px);font-weight:700;left:50%;padding:10px 22px;position:absolute;text-decoration:none;transform:translateX(-50%);white-space:nowrap;z-index:2}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta[data-wht-empty]{display:none}",c=n(651);const l="banner",d=6e3,u="wht-neo-banner-css",p="wht-neo-banner-critical",h=".wht-neo-banner-widget{width:100%}.wht-neo-banner{position:relative;margin:0 auto;overflow:hidden;cursor:pointer;width:var(--wht-neo-banner-w,var(--wht-neo-banner-w-auto,100%));height:var(--wht-neo-banner-h,var(--wht-neo-banner-h-auto,220px))}.wht-neo-banner-video,.wht-neo-banner-img{width:100%;height:100%;object-fit:cover;display:block;background:#ececec}.wht-neo-banner-overlay{position:absolute;inset:0}.wht-neo-banner-mute,.wht-neo-banner-nav,.wht-neo-banner-dots,.wht-neo-banner-cta{display:none}";async function b(e){let t=null;try{t=new URLSearchParams(window.location.search).get("neoskin")}catch(p){}let n="";const r=t||e&&e.skin;r&&"default"!==r&&"a"!==r&&(n=await(0,a.P)(l,r));const i=r&&"default"!==r?r:"a",c=e&&e.customCss,d="string"===typeof c?c:c&&"object"===typeof c&&"string"===typeof c[i]?c[i]:"";return(0,o.fz)(u,s+"\n"+n+(e&&e.brandCss?"\n"+e.brandCss:"")+(d?"\n"+d:"")),!0}function v(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(e){return null}}const m=(e,t=null)=>{const n=v(),r=e.split(".").reduce((e,t)=>null==e?void 0:e[t],n);return null==r?t:r};async function w({shopId:e,widgetIdentity:t}){const n=t&&"wgt_default"!==t?`${(0,c.y0)(v(),"/brand/{store_id}/eventset",e)}?widget_id=${t}&source_type=homepage&source_id=${e}&eventset_type=banner&status=active,active`:`${(0,c.y0)(v(),"/get_eventset/{store_id}",e)}?eventset_type=banner&source=homepage&source_id=${e}`,{events:a}=(0,r.Po)(await fetch(n).then(e=>e.json()),"banner");return a}const f=e=>"image"===e.event_type;function g(e,t,n,r){var a,o;const s=(0,i.vC)(),c=null!==(a=(0,i.eG)(t))&&void 0!==a?a:s.w,l=s.h>c,d=function(e,t,n){var r;const a=e&&e.querySelector("#"+t),o=a&&(null!==(r=a.getAttribute("data-wh"))&&void 0!==r?r:a.getAttribute("data")),i=null!=o?parseFloat(o):NaN;return isFinite(i)?i:n}(document,"whatmoreVideoTileSize",60)/100*Number(m(l?"banner_config.portrait_multiplier":"banner_config.landscape_multiplier",1)),u=m("banner_config.widget_aspect_ratios"),p=null!==(o=u&&u[n]&&u[n][l?"portrait":"landscape"])&&void 0!==o?o:r&&r[l?"portrait":"landscape"],h=Number(null!==p&&void 0!==p?p:m(l?"banner_config.portrait_aspect_ratio":"banner_config.landscape_aspect_ratio",l?1:.5625)),b=!!m("banner_config.is_full_screen"),v=c,w=v*d;return e.style.setProperty("--wht-neo-banner-w-auto",b?"100%":Math.round(w)+"px"),e.style.setProperty("--wht-neo-banner-h-auto",Math.round((b?v:w)*h)+"px"),l}async function y(e){const{rootElement:t,widgetContainer:r,shopId:a,widgetIdentity:s,bannerArOverride:c,whatmoreRootId:u,onWidgetView:v,onBannerClick:y,onBannerCtaClick:_}=e;if((0,i.V2)(e.storeFlags&&e.storeFlags.viewportSizedTiles),!t||!a)return!1;let x;(0,o.fz)(p,h);try{[x]=await Promise.all([w({shopId:a,widgetIdentity:s}),b((0,o.RO)(e.neoJson,l))])}catch(oe){return!1}const k=()=>{const e=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${u}"]`);e&&e.remove(),t.removeAttribute("data-shimmer-active"),r&&(r.style.minHeight="0px")};if(!x||!x.length)return k(),!0;const C=document.createElement("div");C.className="wht-neo-banner-widget";const E=document.createElement("div");E.className="wht-neo-banner",E.dataset.role="bannerMedia",a&&E.setAttribute("data-wht-shop",a),s&&E.setAttribute("data-wht-widget",s),m("banner_config.show_mute_button")&&E.setAttribute("data-wht-mutebtn","1"),m("banner_config.show_navigation_dots")&&E.setAttribute("data-wht-dots","1"),m("banner_config.show_cta")&&E.setAttribute("data-wht-cta","1");const A=!!m("banner_config.is_banner_clickable"),I=m("banner_config.selected_dot_color");I&&E.style.setProperty("--wht-neo-banner-dot-active",I);let S=g(E,r,s,c);const z=document.createElement("video");z.className="wht-neo-banner-video",z.muted=!0,z.loop=!0,z.playsInline=!0,z.preload="auto",z.setAttribute("muted",""),z.setAttribute("playsinline",""),z.setAttribute("webkit-playsinline","");const P=document.createElement("img");P.className="wht-neo-banner-img",P.alt="",E.appendChild(z),E.appendChild(P);const N=document.createElement("div");N.className="wht-neo-banner-overlay";const T=document.createElement("button");T.type="button",T.className="wht-neo-banner-mute",T.dataset.role="muteButton",T.setAttribute("aria-label","Toggle sound"),T.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M11 5 6 9H2v6h4l5 4V5z" fill="currentColor"/><path d="M16 9l5 6M21 9l-5 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>';const j=e=>{const t=document.createElement("button");t.type="button",t.className="wht-neo-banner-nav wht-neo-banner-nav-"+e,t.dataset.role="navArrows",t.setAttribute("aria-label","prev"===e?"Previous":"Next");const n="prev"===e?"M15 5l-7 7 7 7":"M9 5l7 7-7 7";return t.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="'+n+'" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',t},L=j("prev"),O=j("next"),M=document.createElement("div");M.className="wht-neo-banner-dots",M.dataset.role="dots";const R=x.map((e,t)=>{const n=document.createElement("button");return n.type="button",n.className="wht-neo-banner-dot",n.setAttribute("aria-label","Slide "+(t+1)),M.appendChild(n),n}),B=document.createElement("a");B.className="wht-neo-banner-cta",B.dataset.role="ctaButton",N.appendChild(T),x.length>1&&(N.appendChild(L),N.appendChild(O),N.appendChild(M)),N.appendChild(B),E.appendChild(N),C.appendChild(E);let F=-1,H=null,$=!0,V=!1,q=!("IntersectionObserver"in window);let J=!1;const G=()=>{z.muted=!V||!$},K=()=>{if($){const e=z.play();e&&e.catch&&e.catch(()=>{})}},W={bufferAhead:8},Y=!(!z.canPlayType||!z.canPlayType("application/vnd.apple.mpegurl"))&&/apple/i.test(navigator.vendor||"");let U=null,X=null;const D=()=>K(),Q=e=>{z.removeEventListener("loadeddata",D),z.addEventListener("loadeddata",D,{once:!0});const t=t=>{t.attachSource(z,e,t.PRIORITY.ACTIVE,W),$||t.suspendSource(z),K()};if(U)return void t(U);if(!(r=e)||!r.toLowerCase().includes(".m3u8")||Y)return z.src=e,z.load(),void K();var r;const a=F;(U?Promise.resolve(U):X||(X=Promise.all([n.e(296,"high"),n.e(71,"high")]).then(n.bind(n,725)).then(e=>(U=e,e)))).then(e=>{F===a&&t(e)}).catch(()=>{})},Z=()=>{U?U.releaseSource(z):z.pause()},ee=e=>(e.cta||[]).filter(e=>e&&e.cta_link&&!/whatmore\.ai/i.test(e.cta_link)).sort((e,t)=>{var n,r;return(null!==(n=e.cta_id)&&void 0!==n?n:0)-(null!==(r=t.cta_id)&&void 0!==r?r:0)})[0]||null,te=e=>{clearTimeout(H),H=setTimeout(()=>ne((F+1)%x.length),e)},ne=e=>{F=(e%x.length+x.length)%x.length,clearTimeout(H);const t=x[F],n=function(e,t){const n=e.event_media_urls,r=t?"portrait":"landscape",a=t?"landscape":"portrait";if(n){if(f(e))return n.primary&&n.primary[r]&&n.primary[r].content_image_original||"";const o=(e,t)=>{const r=n[e]&&n[e][t];return r&&(r.content_video_1080p||r.content_video_original)||""},i=e=>n.secondary&&n.secondary[e]&&n.secondary[e].content_video_m3u8_original||"",s=!t&&(!o("primary",r)||o("primary",r)===o("primary",a)),c=i(r)||(t||s?i("portrait"):"");if(c)return c;const l=o("secondary",r);if(l)return l;const d=e.event_hls_url,u=d&&d.startsWith("https://cdn.shopify.com")&&d.includes(".mp4")?d:"";return!u||!t&&o("primary",r)&&o("primary",r)!==o("primary",a)?o("primary",r)||o("primary",a):u}return e.event_m3u8_url||e.event_hls_url||""}(t,S),r=function(e,t){const n=e.event_media_urls,r=t?"portrait":"landscape";return n?n.secondary&&n.secondary[r]&&n.secondary[r].poster_image||n.primary&&n.primary[r]&&n.primary[r].poster_image||e.poster_image||"":e.poster_image||""}(t,S);R.forEach((e,t)=>e.toggleAttribute("data-wht-active",t===F));const a=ee(t);if(a&&a.cta_link&&(t.cta||[]).length>1?(B.href=(e=>e&&m("utm.activate_utm")?e+"?"+m("utm.utm_source","")+"&"+m("utm.utm_campaign","")+"&"+m("utm.utm_medium_cart_page",""):e)(a.cta_link),B.textContent=a.cta_title||"Shop now",B.removeAttribute("data-wht-empty")):B.setAttribute("data-wht-empty","1"),!n)return Z(),z.style.display="none",void(P.style.display="none");if(f(t)){if(Z(),z.style.display="none",P.style.display="",!q||!$)return void(J=!0);P.src=n,te(d)}else{if(P.style.display="none",z.style.display="",!q||!$)return void(J=!0);r&&(z.poster=r),G();const e=()=>{isFinite(z.duration)&&z.duration>0&&te(1e3*z.duration)};z.removeEventListener("loadedmetadata",e),z.addEventListener("loadedmetadata",e,{once:!0}),Q(n)}};L.addEventListener("click",e=>{e.stopPropagation(),ne(F-1)}),O.addEventListener("click",e=>{e.stopPropagation(),ne(F+1)}),R.forEach((e,t)=>e.addEventListener("click",e=>{e.stopPropagation(),ne(t)}));const re=e=>{e.stopPropagation(),V=!V,G(),E.toggleAttribute("data-wht-sound",V)};if(T.addEventListener("click",re),B.addEventListener("click",e=>{e.stopPropagation(),null===y||void 0===y||y(x[F]),null===_||void 0===_||_(x[F],ee(x[F]))}),E.addEventListener("click",e=>{null===y||void 0===y||y(x[F]);const t=ee(x[F]);A&&t&&t.cta_link?window.open(t.cta_link,"_self"):re(e)}),"IntersectionObserver"in window){new IntersectionObserver(e=>{e.forEach(e=>{if($=e.isIntersecting,G(),$&&J&&q)return J=!1,void ne(F);if(!f(x[F]||{}))if($){U&&U.resumeSource(z);const e=z.play();e&&e.catch&&e.catch(()=>{})}else z.pause(),U&&U.suspendSource(z)})},{threshold:.01}).observe(E)}let ae=!1;if(window.addEventListener("resize",()=>{ae||(ae=!0,requestAnimationFrame(()=>{ae=!1;const e=S;S=g(E,r,s,c),S!==e&&ne(F)}))},{passive:!0}),t.innerHTML="",t.appendChild(C),t.style.opacity="1",!q){new IntersectionObserver((e,t)=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),q=!0,J=!1,ne(F))},{rootMargin:"200px 0px",threshold:0}).observe(E)}if(ne(0),v)if("IntersectionObserver"in window){new IntersectionObserver((e,t)=>{e.some(e=>e.isIntersecting)&&(v(),t.disconnect())},{threshold:0}).observe(E)}else v();return k(),!0}},7983:function(e,t,n){function r(e,t=!1){if(null==e)return{events:[],all_events:[]};if(t){return{events:e.events&&e.events[0]&&e.events[0].events||[],all_events:e.all_events||[]}}return{events:e.events||[],all_events:e.all_events||[]}}function a(e,t){if(null==e||!e.eventsets||!e.eventsets[t])return{events:[],all_events:[]};return{events:(Array.isArray(e.eventsets[t])?e.eventsets[t]:[]).reduce((e,t)=>e.concat(t&&t.events||[]),[]),all_events:[]}}function o(e){return!(void 0==e.products||0==e.products.length)}n.d(t,{Hl:function(){return o},Np:function(){return r},Po:function(){return a}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[310],{1839:function(t,e,o){function n(t,e){let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,document.head.appendChild(o)),o.textContent=e}function i(t,e){if(!t||!e)return t||"";const o=document.createElement("style");o.media="not all",o.textContent=t,document.head.appendChild(o);let n=t;try{const t=o.sheet;t&&(a(t.cssRules,e),n=function(t){let e="";for(let o=0;o<t.length;o++)e+=t[o].cssText+"\n";return e}(t.cssRules))}catch(i){}return o.remove(),n}function a(t,e){for(let o=0;o<t.length;o++){const n=t[o];void 0!==n.selectorText&&void 0!==n.style?n.selectorText=r(n.selectorText,e):!n.cssRules||"undefined"!==typeof CSSKeyframesRule&&n instanceof CSSKeyframesRule||a(n.cssRules,e)}}function r(t,e){return function(t){const e=[];let o=0,n="";for(let i=0;i<t.length;i++){const a=t[i];"("===a||"["===a?o++:")"!==a&&"]"!==a||o--,","===a&&0===o?(e.push(n),n=""):n+=a}return e.push(n),e}(t).map(t=>{const o=t.trim();return o?e+" "+o:o}).join(", ")}function s(t,e,o,n){if(!t)return null;const i=t[e];if(!i||"object"!==typeof i)return Object.assign({},t,{brandCss:""});const a="string"===typeof t.customCss?t.customCss:"",r=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],s=l(i.widgets,o)||l(r,o),c=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(n),d=c&&i[c]&&"object"===typeof i[c]?i[c]:null,p=s?Object.assign({},i,s):d?Object.assign({},i,d):i;return Object.assign({},p,{brandCss:a,perInstance:!!s,pageScoped:!!d})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const o=Array.isArray(e)?e:[e];for(let n=0;n<o.length;n++){const e=o[n];if(null==e||""===e)continue;const i=t[e];if(i&&"object"===typeof i)return i}return null}o.d(e,{GJ:function(){return i},RO:function(){return s},fz:function(){return n}})},5e3:function(t,e,o){o.d(e,{Au:function(){return s},YJ:function(){return c},k5:function(){return l}});const n=6,i="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",a="whatmore-video-player whatmore-main-video-player-from-pool";function r(){return"undefined"===typeof window?{}:(window.__whatmoreNeoVideoPool||(window.__whatmoreNeoVideoPool={}),window.__whatmoreNeoVideoPool)}function s(){const t=r();if(t.armed||"undefined"===typeof document)return;if(!function(){if("undefined"===typeof navigator||"undefined"===typeof document)return!1;const t=navigator.userAgent||"";return!(!/iPad|iPhone|iPod/.test(t)||window.MSStream)||/Macintosh/.test(t)&&"ontouchend"in document}())return;t.armed=!0,function(){const t=r();if(t.pool||"undefined"===typeof document)return;const e=document.createDocumentFragment();for(let o=0;o<n;o++){const t=document.createElement("video");t.setAttribute("class",a),t.setAttribute("src",i),t.muted=!0,t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t)}t.pool=e}();const e=()=>{document.removeEventListener("click",e),document.removeEventListener("touchstart",e),function(){const t=r();if(t.blessed||!t.pool)return;const e=t.pool.childNodes;for(let o=0;o<e.length;o++){const t=e[o];t.muted=!0;const n=t.play();n&&n.then&&n.then(()=>t.pause()).catch(()=>{})}t.blessed=!0}()};document.addEventListener("click",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})}function l(){return r().pool||null}function c(){return!!r().blessed}},7119:function(t,e,o){o.d(e,{renderNeoFloating:function(){return z}});var n=o(7983),i=o(6287),a=o(5e3),r=o(6387),s=o(1839),l=o(9439),c=".wht-neo-float-frame{animation:wht-neo-float-pop .4s cubic-bezier(.06,.92,.59,1.32) both;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(145deg,rgba(0,0,0,.1),rgba(0,0,0,.3));box-shadow:var(--wht-neo-float-shadow,0 20px 40px rgba(0,0,0,.3),0 8px 16px rgba(0,0,0,.2));transition:all .3s ease}@keyframes wht-neo-float-pop{0%{transform:scale(0)}to{transform:scale(1)}}.wht-neo-float-close svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}.wht-neo-float-play svg{filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}.wht-neo-float-title{background:linear-gradient(180deg,transparent,rgba(0,0,0,.8));bottom:0;display:block;left:0;padding:16px;position:absolute;right:0}.wht-neo-float-title p{color:#fff;font-size:calc(var(--wht-neo-float-w, 140px)*.25*.35);font-weight:600;letter-spacing:.3px;line-height:125%;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.5)}",d=o(651);const p="floating",u="wht-neo-floating-css",h="wht-neo-floating-critical",f='.wht-neo-float{position:fixed;z-index:var(--wht-neo-float-z,2147482000);bottom:var(--wht-neo-float-vpad,10px);touch-action:none;user-select:none;-webkit-user-select:none}.wht-neo-float[data-wht-pos="left"]{left:var(--wht-neo-float-hpad,10px)}.wht-neo-float[data-wht-pos="right"]{right:var(--wht-neo-float-hpad,10px)}.wht-neo-float-frame{position:relative;width:var(--wht-neo-float-w,140px);height:var(--wht-neo-float-h,249px);border-radius:var(--wht-neo-float-radius,20px);overflow:hidden;background:transparent;cursor:pointer}.wht-neo-float-video{width:100%;height:100%;object-fit:cover;display:block;background:#fff}.wht-neo-float-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.wht-neo-float-close{position:absolute;top:2px;right:2px;z-index:10;display:flex;border:none;padding:4px;background:transparent;cursor:pointer;color:#fff}.wht-neo-float-close svg{width:calc(var(--wht-neo-float-w,140px) * 0.25);height:calc(var(--wht-neo-float-w,140px) * 0.25)}.wht-neo-float-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;color:#fff}.wht-neo-float-play svg{width:calc(var(--wht-neo-float-w,140px) * 0.35);height:calc(var(--wht-neo-float-w,140px) * 0.35)}.wht-neo-float-title{display:none}.wht-neo-float[data-wht-hidden]{display:none}.wht-neo-float[data-wht-fs]{display:none}.wht-neo-float[data-wht-ultra] .wht-neo-float-frame{width:0 !important;height:0 !important;opacity:0;pointer-events:none}';async function m(t){let e=null;try{e=new URLSearchParams(window.location.search).get("neoskin")}catch(d){}let o="";const n=e||t&&t.skin;n&&"default"!==n&&"a"!==n&&(o=await(0,r.P)(p,n));const i=n&&"default"!==n?n:"a",a=t&&t.customCss,l="string"===typeof a?a:a&&"object"===typeof a&&"string"===typeof a[i]?a[i]:"";return(0,s.fz)(u,c+"\n"+o+(t&&t.brandCss?"\n"+t.brandCss:"")+(l?"\n"+l:"")),!0}function w(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const g=(t,e=null)=>{const o=w(),n=t.split(".").reduce((t,e)=>null==t?void 0:t[e],o);return null==n?e:n};function v(t,e,o){var n;const i=t&&t.querySelector("#"+e),a=i&&(null!==(n=i.getAttribute("data-wh"))&&void 0!==n?n:i.getAttribute("data"));return null!=a&&""!==a?a:o}function _(t,e,o){const n=parseFloat(v(t,e,NaN));return isFinite(n)?n:o}async function b({mode:t,shopId:e,landingLocationType:o,widgetContainer:i,storeFlags:a}){let r;if("pdp"===t){const t=function(t,e){let o=v(t,"whatmoreProductId","");if(!0===g("product_config.use_product_page_link_as_client_product_id")){const t=window.location.href.split(/[?#]/)[0],n=e&&e.clientProductIdMode;if("pathLastSeg"===n){const t=window.location.pathname.split("/");o=t[t.length-1]}else o="hrefLastSeg"===n?t.replace(/\/+$/,"").split("/").pop():t}return"true"===String(v(t,"whatmoreEmbedAppUseVariant","false"))?v(t,"whatmoreVariantId",o):o}(i,a),o=w(),s=!0===g("product_page_popup_config.exclude_image_events")?"video":"video,image";if(!0===g("recommendation_config.show_recommended_events")&&!0!==g("recommendation_config.show_collection_events")){const n=!0===g("product_page_popup_config.show_all_events")||!0===g("recommendation_config.show_all_events_with_pdp"),i=`${(0,d.y0)(o,"/v2/brand/{store_id}/product-events/recommendation/cdn",e)}?client_product_id=${encodeURIComponent(t)}&limit=10&recommended=${!n}&origin=${window.location.hostname}&status=live,upcoming&event_type=${s}`,a=await fetch(i).then(t=>t.json()),l=a&&a.events||[],c=n?a&&a.all_events||[]:(a&&a.related_events||[]).map(t=>Object.assign({},t,{isRelatedEvent:!0})),p=n&&!0===g("recommendation_config.show_all_events_when_untagged");r=l.length?l.concat(c):p?c.map(t=>Object.assign({},t,{isRelatedEvent:!0})):[]}else{const i=!0===g("recommendation_config.show_collection_events")?`${(0,d.y0)(o,"/v2/brand/{store_id}/product-events/collection/cdn",e)}?client_product_id=${encodeURIComponent(t)}&limit=50&status=live,upcoming&event_type=${s}`:`${(0,d.y0)(o,"/v2/brand/{store_id}/product-events",e)}?client_product_id=${encodeURIComponent(t)}&status=upcoming&event_type=${s}`,{events:a,all_events:l}=(0,n.Np)(await fetch(i).then(t=>t.json()),!1);r=[...a,...l]}}else if(o.startsWith("collection")){let t=v(i,"whatmoreCollectionId","");t&&"0"!==t||(t=window.location.href.split(/[?#]/)[0]);const o=w(),a=!0===g("collection_product_sync")||!0===g("collection_product_sync_pro")?`${(0,d.y0)(o,"/v5/collection",e)}?store_id=${e}&client_collection_id=${t}&sync_products=true`:`${(0,d.y0)(o,"/v2/collection",e)}?store_id=${e}&client_collection_id=${t}`,{events:s,all_events:l}=(0,n.Np)(await fetch(a).then(t=>t.json()),!0);r=[...s,...l||[]]}else{const t=w(),o=a&&a.spotlightInfiniteEvents?`${(0,d.y0)(t,"/get_eventset_v1/{store_id}",e)}?eventset_type=spotlight&event_type=video&source=homepage&source_id=${e}`:`${(0,d.y0)(t,"/get_eventset/{store_id}",e)}?eventset_type=spotlight&source=homepage&source_id=${e}`,{events:i,all_events:s}=(0,n.Po)(await fetch(o).then(t=>t.json()),"spotlight");r=[...i,...s||[]]}return g("oos_config.show_oos_videos")||(r=r.filter(t=>t&&!1!==t.in_stock)),r}const y=t=>!!t&&"image"===t.event_type;function x(t){const e=t&&t.event_media_urls;if(!e)return t&&t.thumbnail_image||"";const o=t=>{var o,n,i,a;return(null===(o=e.secondary)||void 0===o||null===(n=o[t])||void 0===n?void 0:n.content_image_original)||(null===(i=e.primary)||void 0===i||null===(a=i[t])||void 0===a?void 0:a.content_image_original)||""};return o("portrait")||o("landscape")||t.thumbnail_image||""}function A(t){var e,o,n,i;const a=t.event_media_urls;let r=a?(null===(e=a.primary)||void 0===e||null===(o=e.portrait)||void 0===o?void 0:o.poster_image)||(null===(n=a.secondary)||void 0===n||null===(i=n.portrait)||void 0===i?void 0:i.poster_image)||t.poster_image||"":t.poster_image||"";return!r&&y(t)?x(t):(r&&r.startsWith("https://cdn.shopify.com")&&(r=r.split("?")[0]+"?width=400&height=400"),r)}function C(t,e,o){const n=(0,l.vC)(),i=n.h>=n.w,a=i?"Portrait":"Landscape",r=function(t,e){const{w:o,h:n}=(0,l.vC)(),i=Math.min(o,n),a=n>=o,r=.6*i,s=a?o>=481?.48:.54:i<500?.7:.39,c=a?_(t,"whatmoreEmbedAppVideoPlayerSizePortrait",40)/100*1.2:_(t,"whatmoreEmbedAppVideoPlayerSizeLandscape",60)/100,d="spotlight"===e?Number(g("spotlight_config.size_factor",1))*(a?1.1:1.3):1.1;return Math.round(r*s*c*d)}(e,o);t.style.setProperty("--wht-neo-float-w",r+"px"),t.style.setProperty("--wht-neo-float-h",Math.round(16*r/9)+"px");const s=v(e,"whatmoreEmbedAppPosition"+a,"left"),c=_(e,"whatmoreEmbedAppHorizontalPadding"+a,i?10:20),d=_(e,"whatmoreEmbedAppVerticalPadding"+a,i?10:20),p="spotlight"===o?g("spotlight_config.position",s):s,u="spotlight"===o?Number(g("spotlight_config.horizontal_padding",c)):c,h="spotlight"===o?Number(g("spotlight_config.vertical_padding",d)):d;t.setAttribute("data-wht-pos","right"===p?"right":"left"),t.style.setProperty("--wht-neo-float-hpad",u+"px"),t.style.setProperty("--wht-neo-float-vpad",h+"px");const f=g("product_page_popup_config.popUpZindex");return null!=f&&t.style.setProperty("--wht-neo-float-z",String(f)),h}const E=250,k=12,P=8,L=300,S=["#pageheader","page-header",".navigation__tier-1-container",".navigation__tier-1"];function M(t){if(!t)return!1;const e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&0!==parseFloat(e.opacity||"1")&&(t.offsetWidth>0&&t.offsetHeight>0)}function $(t,e,o){let n=null;const i=()=>{n=null;const{w:i,h:a}=(0,l.vC)(),r=t.getBoundingClientRect();if(!r.width||!r.height)return;const s=o(),c=r.left,d=r.right,p=function(t,e){let o=0;for(const n of S)for(const i of document.querySelectorAll(n)){if(!M(i))continue;const n=i.getBoundingClientRect();n.top>.3*e||n.width<.5*t||n.bottom<=0||n.bottom>=.6*e||n.bottom>o&&(o=n.bottom)}return o}(i,a)+P,u=a-s-r.height,h=a-s;let f,m=null,w=!1;for(const t of e)for(const e of document.querySelectorAll(t)){if(!M(e))continue;const t=e.getBoundingClientRect();t.width<=0||t.height<=0||(t.right<=c||t.left>=d||t.bottom<=0||t.top>=a||(m=null===m?t.top:Math.min(m,t.top),t.top<h&&t.bottom>u&&(w=!0)))}f=w&&null!==m&&m-k-r.height>=p?Math.max(s,a-m+k):s;const g=parseFloat(t.style.bottom||"")||s;Math.round(g)!==Math.round(f)&&(t.style.bottom=Math.round(f)===Math.round(s)?"":f+"px")},a=()=>{null===n&&(n=window.requestAnimationFrame(i))};a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),window.setInterval(a,L)}async function z(t){const{widgetContainer:e,shopId:o,landingLocationType:n="index",floatingMode:r,onWidgetView:c,onClose:d,onOpenEvent:u}=t;if(!o)return!1;const w=r||(n.startsWith("product")||"embed"===n?"pdp":"spotlight");if("spotlight"===w&&g("spotlight_config.show_once_to_user"))try{if(window.localStorage.getItem("_whatmore_spotlight_viewed"))return!0;window.localStorage.setItem("_whatmore_spotlight_viewed","true")}catch(X){}let _;(0,s.fz)(h,f);try{[_]=await Promise.all([b({mode:w,shopId:o,landingLocationType:n,widgetContainer:e,storeFlags:t.storeFlags}),m((0,s.RO)(t.neoJson,p))])}catch(X){return!1}if(!_||!_.length)return!0;const k=_[0],P="pdp"===w,L=!!g(P?"product_page_popup_config.ultra_minimize_on_scroll":"spotlight_config.ultraminimize_on_scroll"),S=P&&!L&&!!g("product_page_popup_config.show_popup_on_scroll"),M=P&&!!g("product_page_popup_config.auto_close_on_open"),z=g((P?"product_page_popup_config":"spotlight_config")+".atc_aware_selectors"),I=document.createElement("div");I.className="wht-neo-float",I.dataset.role="floatVideo",I.setAttribute("data-wht-mode",w),o&&I.setAttribute("data-wht-shop",o),I.setAttribute("data-wht-widget","spotlight"===w?"wgt_spotlight":"wgt_embed");const N={vPad:C(I,e,w)};S&&I.setAttribute("data-wht-hidden","");const j=document.createElement("div");j.className="wht-neo-float-frame";const F=y(k),R=document.createElement(F?"img":"video");R.className="wht-neo-float-video";const V=A(k);if(F){R.alt="",R.decoding="async";const t=x(k)||V;t&&(R.src=t)}else if(R.muted=!0,R.loop=!0,R.playsInline=!0,R.autoplay=!0,R.preload="metadata",R.setAttribute("muted",""),R.setAttribute("playsinline",""),R.setAttribute("webkit-playsinline",""),V&&(R.poster=V),k.thumbnail_image){const t=document.createElement("source");t.src=k.thumbnail_image,t.type="video/mp4",R.appendChild(t)}j.appendChild(R);const O=document.createElement("div");O.className="wht-neo-float-overlay";const T=document.createElement("button");T.type="button",T.className="wht-neo-float-close",T.dataset.role="closeButton",T.setAttribute("aria-label","Close video"),T.innerHTML='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="rgba(0,0,0,0.6)" stroke="rgba(255,255,255,0.3)" stroke-width="1.5"/><path d="M9 9l6 6M15 9l-6 6" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/></svg>',T.addEventListener("click",t=>{t.stopPropagation(),I.remove(),null===d||void 0===d||d(k)}),O.appendChild(T);const B=document.createElement("span");B.className="wht-neo-float-play",B.dataset.role="playIcon",B.innerHTML='<svg viewBox="0 0 64 64" aria-hidden="true"><circle cx="32" cy="32" r="28" fill="rgba(255,255,255,0.25)" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><path d="M26 21l18 11-18 11z" fill="#fff"/></svg>',O.appendChild(B);const q=v(e,"whatmoreEmbedAppVideoTitle","");if(q){const t=document.createElement("div");t.className="wht-neo-float-title",t.dataset.role="titleStrip";const o=document.createElement("p");o.textContent=q;const n=v(e,"whatmorePrimaryFont","");n&&(o.style.fontFamily=n),t.appendChild(o),O.appendChild(t)}j.appendChild(O),I.appendChild(j),document.body.appendChild(I);const H=!F&&R.play&&R.play();H&&H.catch&&H.catch(()=>{}),(0,a.Au)();const U=t=>{if(t!==I.hasAttribute("data-wht-ultra"))if(t){I.setAttribute("data-wht-ultra","");try{F||R.pause()}catch(X){}}else{I.removeAttribute("data-wht-ultra");const t=!F&&R.play&&R.play();t&&t.catch&&t.catch(()=>{})}};!function(t,e){let o=0,n=0,i=0,a=0,r=!1,s=!1,c=null;t.addEventListener("pointerdown",e=>{if(e.target.closest(".wht-neo-float-close"))return;s=!0,r=!1,o=e.clientX,n=e.clientY;const l=/translate\((-?[\d.]+)px,\s*(-?[\d.]+)px\)/.exec(t.style.transform||"");i=l?parseFloat(l[1]):0,a=l?parseFloat(l[2]):0,c=t.getBoundingClientRect(),t.setPointerCapture(e.pointerId)}),t.addEventListener("pointermove",e=>{if(!s)return;let d=e.clientX-o,p=e.clientY-n;if((Math.abs(d)>5||Math.abs(p)>5)&&(r=!0),r){if(c){const{w:t,h:e}=(0,l.vC)();d=Math.max(-c.left,Math.min(d,t-c.right)),p=Math.max(-c.top,Math.min(p,e-c.bottom))}t.style.transform=`translate(${i+d}px, ${a+p}px)`}}),t.addEventListener("pointerup",o=>{if(s){s=!1;try{t.releasePointerCapture(o.pointerId)}catch(n){}r||e()}}),t.addEventListener("pointercancel",()=>{s=!1})}(I,()=>{I.hasAttribute("data-wht-ultra")?U(!1):(M?(I.remove(),null===d||void 0===d||d(k)):I.setAttribute("data-wht-fs",""),(0,i.w)(A(k)),null===u||void 0===u||u(k,0,_,{onFullscreenClose:()=>I.removeAttribute("data-wht-fs")}))});let W=!1;const Y=()=>{W||(W=!0,requestAnimationFrame(()=>{W=!1,N.vPad=C(I,e,w)}))};window.addEventListener("resize",Y,{passive:!0}),window.addEventListener("orientationchange",Y,{passive:!0}),window.visualViewport&&window.visualViewport.addEventListener("resize",Y,{passive:!0}),"complete"===document.readyState?setTimeout(Y,300):window.addEventListener("load",()=>setTimeout(Y,300),{once:!0});let J=!1;const K=()=>{!J&&c&&(J=!0,requestAnimationFrame(()=>{(I.checkVisibility?I.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):I.offsetWidth>0&&I.offsetHeight>0)&&c(k)}))};if(S||K(),L||S){let t=!1;window.addEventListener("scroll",()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1;window.pageYOffset<=E?U(!1):(S&&I.hasAttribute("data-wht-hidden")&&(I.removeAttribute("data-wht-hidden"),K()),L&&U(!0))}))},{passive:!0}),L&&document.addEventListener("pointerdown",t=>{!I.contains(t.target)&&I.isConnected&&window.pageYOffset>E&&U(!0)},{capture:!0,passive:!0})}return Array.isArray(z)&&z.length&&$(I,z,()=>N.vPad),!0}},7983:function(t,e,o){function n(t,e=!1){if(null==t)return{events:[],all_events:[]};if(e){return{events:t.events&&t.events[0]&&t.events[0].events||[],all_events:t.all_events||[]}}return{events:t.events||[],all_events:t.all_events||[]}}function i(t,e){if(null==t||!t.eventsets||!t.eventsets[e])return{events:[],all_events:[]};return{events:(Array.isArray(t.eventsets[e])?t.eventsets[e]:[]).reduce((t,e)=>t.concat(e&&e.events||[]),[]),all_events:[]}}function a(t){return!(void 0==t.products||0==t.products.length)}o.d(e,{Hl:function(){return a},Np:function(){return n},Po:function(){return i}})}}]);