whatmore-react-assets 1.0.1928 → 1.0.1929
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-banner.3784783a.chunk.js → wht-neo-banner.48401a73.chunk.js} +1 -1
- package/static/js/wht-neo-video-answers.a00f932a.chunk.js +1 -0
- package/static/js/{wht-neo.23be4f1b.chunk.js → wht-neo.67e8f324.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/js/wht-neo-video-answers.f8ca9630.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5126],{1367:function(t,e,n){n.r(e),n.d(e,{REGISTRY:function(){return j},renderNeoBanner:function(){return N}});var a=n(7983),o=n(6387),r=n(1839),i=n(9439),s='.wht-neo-banner{--wht-neo-banner-fields:title text 128 "Headline",body textarea 600 "Body",cta button 40 "Button"}.wht-neo-banner-overlay{background:var(--wht-neo-banner-overlay,linear-gradient(to top,transparent 70%,rgba(0,0,0,.3)))}.wht-neo-banner[data-wht-mutebtn] .wht-neo-banner-mute{align-items:center;background:var(--wht-neo-banner-mute-bg,rgba(0,0,0,.4));border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;height:var(--wht-neo-banner-mute-size,39px);justify-content:center;padding:0;position:absolute;right:10px;top:10px;width:var(--wht-neo-banner-mute-size,39px);z-index:2}.wht-neo-banner[data-wht-mutebtn][data-wht-mutepos^=bottom] .wht-neo-banner-mute{bottom:10px;top:auto}.wht-neo-banner[data-wht-mutebtn][data-wht-mutepos$=left] .wht-neo-banner-mute{left:10px;right:auto}.wht-neo-banner-mute svg{height:55%;width:55%}.wht-neo-banner-nav{align-items:center;background:var(--wht-neo-banner-nav-bg,#fff);border:none;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--wht-neo-banner-nav-color,#090a0b);cursor:pointer;display:flex;height:var(--wht-neo-banner-nav-size,36px);justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wht-neo-banner-nav-size,36px);z-index:2}.wht-neo-banner-nav-prev{left:10px}.wht-neo-banner-nav-next{right:10px}.wht-neo-banner-nav svg{display:block;height:42%;width:42%}.wht-neo-banner[data-wht-dots] .wht-neo-banner-dots{align-items:center;bottom:7%;display:flex;gap:var(--wht-neo-banner-dot-gap,24px);justify-content:center;left:0;position:absolute;right:0;z-index:2}.wht-neo-banner-dot{background:var(--wht-neo-banner-dot,#f8eeec);border:none;border-radius:999px;cursor:pointer;height:12px;padding:0;transition:width .2s ease,background .2s ease;width:12px}.wht-neo-banner-dot[data-wht-active]{background:var(--wht-neo-banner-dot-active,#343434);width:25px}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta{background:var(--wht-neo-banner-cta-bg,#fff);border-radius:var(--wht-neo-banner-cta-radius,5px);bottom:10%;color:var(--wht-neo-banner-cta-color,#343434);display:inline-block;font-size:var(--wht-neo-banner-cta-size,15px);font-weight:700;left:50%;padding:10px 22px;position:absolute;text-decoration:none;transform:translateX(-50%);white-space:nowrap;z-index:2}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta[data-wht-empty],.wht-neo-banner[data-wht-type=image] .wht-neo-banner-mute{display:none}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{display:flex;flex-direction:column;gap:10px;padding:var(--wht-neo-banner-content-pad,20px)}.wht-neo-banner[data-wht-copy-x][data-wht-cta] .wht-neo-banner-cta{position:static;transform:none}.wht-neo-banner[data-wht-copy-x=left] .wht-neo-banner-content{align-items:flex-start;text-align:left}.wht-neo-banner[data-wht-copy-x=center] .wht-neo-banner-content{align-items:center;text-align:center}.wht-neo-banner[data-wht-copy-x=right] .wht-neo-banner-content{align-items:flex-end;text-align:right}.wht-neo-banner[data-wht-copy-y=top] .wht-neo-banner-content{justify-content:flex-start}.wht-neo-banner[data-wht-copy-y=center] .wht-neo-banner-content{justify-content:center}.wht-neo-banner[data-wht-copy-y=bottom] .wht-neo-banner-content{justify-content:flex-end}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{padding:var(--wht-neo-banner-content-pad-wide,40px 56px)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body,.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{color:var(--wht-neo-banner-copy-color,#fff);display:block;font-family:var(--wht-neo-banner-font,inherit);max-width:var(--wht-neo-banner-copy-max,34ch);overflow-wrap:anywhere;text-shadow:0 1px 8px rgba(0,0,0,.45)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size,22px);font-weight:700;line-height:1.15}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size,14px);line-height:1.45}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body[data-wht-empty],.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title[data-wht-empty]{display:none}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size-wide,36px)}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size-wide,16px)}',l=n(651);const d='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M11 5 6 9H2v6h4l5 4V5z" fill="currentColor"/><path d="M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path class="wht-neo-banner-mute-slash" d="M3.5 4.5l17 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',c=t=>'<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="'+("prev"===t?"M15 5l-7 7 7 7":"M9 5l7 7-7 7")+'" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',u=["left","center","right"],h=["top","center","bottom"];function p(t){const e=String(t||"").trim().toLowerCase();if(!e||"default"===e)return null;if("center"===e||"center-center"===e)return{x:"center",y:"center"};const n=e.split("-");let a=null,o=null;for(const r of n)if(h.includes(r)&&null===o)o=r;else{if(!u.includes(r)||null!==a)return null;a=r}return a||o?{x:a||"center",y:o||"center"}:null}const b='title text 128 "Headline", body textarea 600 "Body", cta button 40 "Button"',w=["text","textarea","button"],f=10,m={text:128,textarea:600,button:40};function v(t){const e=[],n={};return String(t||"").split(",").forEach(t=>{const a=t.match(/"[^"]*"|'[^']*'|[^\s]+/g)||[];if(!a.length)return;const o=a[0].toLowerCase().replace(/[^a-z0-9_-]/g,"");if(!o||n[o])return;const r={name:o,kind:"text",max:0,repeat:1,label:""};a.slice(1).forEach(t=>{const e=t.toLowerCase();/^["']/.test(t)?r.label=t.slice(1,-1).trim():w.indexOf(e)>=0?r.kind=e:/^x\d+$/.test(e)?r.repeat=Math.max(1,Math.min(f,parseInt(e.slice(1),10))):/^\d+$/.test(e)&&(r.max=Math.max(1,parseInt(e,10)))}),r.max||(r.max=m[r.kind]),r.label||(r.label=o.charAt(0).toUpperCase()+o.slice(1)),n[o]=!0,e.push(r)}),e}function y(t,e){const n=t.copy.ownerDocument;t.copy.textContent="",t.fields=(e&&e.length?e:v(b)).map(e=>{const a=[];for(let o=1;o<=e.repeat;o++){const r=n.createElement("button"===e.kind?"a":"div");r.className=("button"===e.kind&&"cta"!==e.name?"wht-neo-banner-cta ":"")+"wht-neo-banner-"+e.name,r.setAttribute("data-wht-field",e.name),r.setAttribute("data-wht-kind",e.kind),r.setAttribute("data-wht-i",String(o)),r.setAttribute("data-wht-ph",e.label+(e.repeat>1?" "+o:"")),r.setAttribute("data-wht-empty","1"),"button"===e.kind&&(r.dataset.role="ctaButton"),t.copy.appendChild(r),a.push(r)}return{def:e,els:a}});const a=e=>{const n=t.fields.filter(t=>t.def.name===e)[0];return n?n.els[0]:null};return t.title=a("title"),t.body=a("body"),t.cta=a("cta"),t.fields}const g=t=>(null==t?"":String(t)).trim();function x(t,e){return"button"!==t.kind?g("object"===typeof e&&null!==e?e.label||e.text:e):"string"===typeof e?{label:"",link:g(e)}:{label:g(e&&(null!=e.label?e.label:e.cta_title)),link:g(e&&(null!=e.link?e.link:e.cta_link))}}const _=["bottom-right","bottom-left","top-left"];function k(t,e,n){try{if(!t||!t.querySelector)return null;const a=t.querySelector("#whatmoreBannerDraft")||(t.ownerDocument||document).getElementById("whatmoreBannerDraft");if(!a)return null;const o=JSON.parse(a.textContent||"null");if(!o||"object"!==typeof o)return null;if(null!==e&&String(o.event_id)!==String(e))return null;if(n)return o;let r=o.fields&&"object"===typeof o.fields?o.fields:null;return r||(r={},void 0!==o.title&&(r.title=o.title),void 0!==o.description&&(r.body=o.description),void 0!==o.cta_link&&(r.cta={label:o.cta_title,link:o.cta_link})),{event_id:o.event_id,fields:r}}catch(a){return null}}function C(t){return(t&&t.cta||[]).filter(t=>t&&t.cta_link&&!/whatmore\.ai/i.test(t.cta_link)).sort((t,e)=>{var n,a;return(null!==(n=t.cta_id)&&void 0!==n?n:0)-(null!==(a=e.cta_id)&&void 0!==a?a:0)})[0]||null}const A="banner",S=6e3,E="wht-neo-banner-css",I="wht-neo-banner-critical",P=".wht-neo-banner-widget{width:100%;container-type:inline-size}.wht-neo-banner{position:relative;margin:0 auto;overflow:hidden;cursor:pointer;width:var(--wht-neo-banner-w,var(--wht-neo-banner-w-auto,100%));height:var(--wht-neo-banner-h,var(--wht-neo-banner-h-auto,220px))}.wht-neo-banner-media{position:absolute;inset:0;overflow:hidden}.wht-neo-banner-video,.wht-neo-banner-img{width:100%;height:100%;object-fit:cover;display:block;background:#ececec}.wht-neo-banner-overlay{position:absolute;inset:0}.wht-neo-banner-content{position:absolute;inset:0;pointer-events:none}.wht-neo-banner-cta{pointer-events:auto}.wht-neo-banner-title,.wht-neo-banner-body{display:none;margin:0}.wht-neo-banner-content>[data-wht-empty]{display:none}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content,.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{pointer-events:auto}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:not([data-wht-kind=button]){display:block}.wht-neo-banner[data-wht-edit][data-wht-cta] .wht-neo-banner-content>[data-wht-kind=button][data-wht-empty]{display:inline-block}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:empty::before{content:attr(data-wht-ph);opacity:.45}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{outline:1px dashed transparent;outline-offset:6px;cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' fill='%23fff' stroke='%230a0a0a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E\") 3 21, text;caret-color:#fa558f}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{cursor:text}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:hover{outline-color:rgba(250,85,143,.6)}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{outline:1.5px dashed #fa558f}.wht-neo-banner[data-wht-sound] .wht-neo-banner-mute-slash{display:none}.wht-neo-banner-mute,.wht-neo-banner-nav,.wht-neo-banner-dots,.wht-neo-banner-cta{display:none}";async function z(t){let e=null;try{e=new URLSearchParams(window.location.search).get("neoskin")}catch(c){}let n="";const a=e||t&&t.skin;a&&"default"!==a&&"a"!==a&&(n=await(0,o.P)(A,a));const i=a&&"default"!==a?a:"a",l=t&&t.customCss,d="string"===typeof l?l:l&&"object"===typeof l&&"string"===typeof l[i]?l[i]:"";return(0,r.fz)(E,s+"\n"+n+(t&&t.brandCss?"\n"+t.brandCss:"")+(d?"\n"+d:"")),i}const j={bannerMedia:{data:{source:"backend",field:"event.event_media_urls"},action:"bannerClick"},muteButton:{data:{source:"runtime",field:"video.muted"},action:"toggleMute"},navArrows:{data:{source:"runtime",field:"banner.activeIndex"},action:"step"},dots:{data:{source:"runtime",field:"banner.activeIndex"},action:"jump"},ctaButton:{data:{source:"backend",field:"event.cta"},action:"bannerClick"},bannerTitle:{data:{source:"backend",field:"event.title"},action:null},bannerBody:{data:{source:"backend",field:"event.description"},action:null},bannerField:{data:{source:"customizations",field:"neo.banner.widgets.*.slides.*"},action:null}};function O(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const L=(t,e=null)=>{const n=O(),a=t.split(".").reduce((t,e)=>null==t?void 0:t[e],n);return null==a?e:a};function M(t){try{const e=(t.closest(".whatmore-base")||document).querySelector("#whatmoreIsInDesignMode");return!!e&&"true"===String(e.getAttribute("data-wh"))}catch(e){return!1}}async function B({shopId:t,widgetIdentity:e,designMode:n}){const o=e&&"wgt_default"!==e?`${(0,l.y0)(O(),"/brand/{store_id}/eventset",t)}?widget_id=${e}&source_type=homepage&source_id=${t}&eventset_type=banner${n?"":"&status=active,active"}`:`${(0,l.y0)(O(),"/get_eventset/{store_id}",t)}?eventset_type=banner&source=homepage&source_id=${t}`,{events:r}=(0,a.Po)(await(0,l.Zq)(o).then(t=>t.json()),"banner");return r}const T=t=>"image"===t.event_type;function R(t,e,n,a){var o,r;const s=(0,i.vC)(void 0,e),l=null!==(o=(0,i.eG)(e))&&void 0!==o?o:s.w,d=s.h>l,c=function(t,e,n){var a;const o=t&&t.querySelector("#"+e),r=o&&(null!==(a=o.getAttribute("data-wh"))&&void 0!==a?a:o.getAttribute("data")),i=null!=r?parseFloat(r):NaN;return isFinite(i)?i:n}(document,"whatmoreVideoTileSize",60)/100*Number(L(d?"banner_config.portrait_multiplier":"banner_config.landscape_multiplier",1)),u=L("banner_config.widget_aspect_ratios"),h=null!==(r=u&&u[n]&&u[n][d?"portrait":"landscape"])&&void 0!==r?r:a&&a[d?"portrait":"landscape"],p=Number(null!==h&&void 0!==h?h:L(d?"banner_config.portrait_aspect_ratio":"banner_config.landscape_aspect_ratio",d?1:.5625)),b=!!L("banner_config.is_full_screen"),w=l,f=w*c;return t.style.setProperty("--wht-neo-banner-w-auto",b?"100%":Math.round(f)+"px"),t.style.setProperty("--wht-neo-banner-h-auto",Math.round((b?w:f)*p)+"px"),t.style.setProperty("--wht-neo-banner-ar-auto",String(p)),void 0!==h&&null!==h?t.style.setProperty("--wht-neo-banner-ar-set",String(p)):t.style.removeProperty("--wht-neo-banner-ar-set"),t.style.setProperty("--wht-neo-banner-vh-auto",Math.round(s.h)+"px"),(0,i.Vo)(t.parentNode&&1===t.parentNode.nodeType?t.parentNode:t,e),d}async function N(t){const{rootElement:e,widgetContainer:a,shopId:o,widgetIdentity:s,bannerArOverride:l,whatmoreRootId:u,onWidgetView:h,onBannerClick:w,onBannerCtaClick:f}=t;if((0,i.V2)(t.storeFlags&&t.storeFlags.viewportSizedTiles),!e||!o)return!1;(0,r.fz)(I,P);const m=[s&&"wgt_default"!==s?s:null,u],g=(0,r.RO)(t.neoJson,A,m);let E,j;try{[E,j]=await Promise.all([B({shopId:o,widgetIdentity:s,designMode:M(e)}),z(g)])}catch(Bt){return!1}let O=g&&g.copyPosition;try{O=new URLSearchParams(window.location.search).get("neocopy")||O}catch(Bt){}if(p(O)||(O=null),(!E||!E.length)&&t.showMockOnEmpty)try{const t=await fetch("https://api.whatmore.live/vs/mock-data").then(t=>t.json());E=t&&t.bannerData||[]}catch(Bt){E=[]}const N=()=>{const t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${u}"]`);t&&t.remove(),e.removeAttribute("data-shimmer-active"),a&&(a.style.minHeight="0px")};if(!E||!E.length)return N(),!0;const $=!!L("banner_config.is_banner_clickable"),D=function(t,e){const{shopId:n,widgetIdentity:a,eventCount:o,flags:r={},dotColor:i,copyPosition:s,fields:l}=e,u=(e,n)=>{const a=t.createElement(e);return a.className=n,a},h=u("div","wht-neo-banner-widget"),b=u("div","wht-neo-banner");b.dataset.role="bannerMedia",n&&b.setAttribute("data-wht-shop",n),a&&b.setAttribute("data-wht-widget",a),r.muteBtn&&b.setAttribute("data-wht-mutebtn","1"),r.muteBtn&&_.includes(r.mutePos)&&b.setAttribute("data-wht-mutepos",r.mutePos),r.dots&&b.setAttribute("data-wht-dots","1"),r.cta&&b.setAttribute("data-wht-cta","1"),i&&b.style.setProperty("--wht-neo-banner-dot-active",i);const w=p(s);w&&(b.setAttribute("data-wht-copy-x",w.x),b.setAttribute("data-wht-copy-y",w.y));const f=u("div","wht-neo-banner-media"),m=u("video","wht-neo-banner-video");m.muted=!0,m.loop=!0,m.playsInline=!0,m.preload="auto",m.setAttribute("muted",""),m.setAttribute("playsinline",""),m.setAttribute("webkit-playsinline","");const v=u("img","wht-neo-banner-img");v.alt="",f.appendChild(m),f.appendChild(v);const g=u("div","wht-neo-banner-overlay"),x=u("button","wht-neo-banner-mute");x.type="button",x.dataset.role="muteButton",x.setAttribute("aria-label","Toggle sound"),x.innerHTML=d;const k=t=>{const e=u("button","wht-neo-banner-nav wht-neo-banner-nav-"+t);return e.type="button",e.dataset.role="navArrows",e.setAttribute("aria-label","prev"===t?"Previous":"Next"),e.innerHTML=c(t),e},C=k("prev"),A=k("next"),S=u("div","wht-neo-banner-dots");S.dataset.role="dots";const E=[];for(let d=0;d<o;d++){const t=u("button","wht-neo-banner-dot");t.type="button",t.setAttribute("aria-label","Slide "+(d+1)),S.appendChild(t),E.push(t)}g.appendChild(x),o>1&&(g.appendChild(C),g.appendChild(A),g.appendChild(S)),f.appendChild(g);const I=u("div","wht-neo-banner-content");b.appendChild(f),b.appendChild(I),h.appendChild(b);const P={content:h,banner:b,media:f,video:m,img:v,overlay:g,mute:x,prev:C,next:A,dots:S,dotEls:E,copy:I,fields:[],title:null,body:null,cta:null};return y(P,l),P}(document,{shopId:o,widgetIdentity:s,eventCount:E.length,flags:{muteBtn:!!L("banner_config.show_mute_button"),mutePos:L("banner_config.mute_button_position"),dots:!!L("banner_config.show_navigation_dots"),cta:!!L("banner_config.show_cta")},dotColor:L("banner_config.selected_dot_color"),copyPosition:O}),{content:J,banner:q,video:F,img:H,mute:V,prev:U,next:G,dotEls:Y,copy:K}=D;e.innerHTML="",e.appendChild(J);const W=(()=>{let t="";try{t=getComputedStyle(q).getPropertyValue("--wht-neo-banner-fields")}catch(Bt){}const e=v(t);return e.length?e:v(b)})();y(D,W);let X=R(q,a,s,l);const Z=s&&"wgt_default"!==s?s:"wgt_default",Q=e=>{const n=t.neoJson&&t.neoJson.banner&&t.neoJson.banner.widgets||L("neo.banner.widgets"),a=n&&n[Z]&&n[Z].slides;return a&&e&&a[String(e.event_id)]||null};let tt=-1,et=null,nt=!0,at=!1,ot=!("IntersectionObserver"in window);let rt=!1;const it=()=>{F.muted=!at||!nt},st=()=>{if(nt){const t=F.play();t&&t.catch&&t.catch(()=>{})}},lt={bufferAhead:8},dt=!(!F.canPlayType||!F.canPlayType("application/vnd.apple.mpegurl"))&&/apple/i.test(navigator.vendor||"");let ct=null,ut=null;const ht=()=>st(),pt=t=>{F.removeEventListener("loadeddata",ht),F.addEventListener("loadeddata",ht,{once:!0});const e=e=>{e.attachSource(F,t,e.PRIORITY.ACTIVE,lt),nt||e.suspendSource(F),st()};if(ct)return void e(ct);if(!(a=t)||!a.toLowerCase().includes(".m3u8")||dt)return F.src=t,F.load(),void st();var a;const o=tt;(ct?Promise.resolve(ct):ut||(ut=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(ct=t,t)))).then(t=>{tt===o&&e(t)}).catch(()=>{})},bt=()=>{ct?ct.releaseSource(F):F.pause()},wt=C,ft=t=>t&&L("utm.activate_utm")?t+"?"+L("utm.utm_source","")+"&"+L("utm.utm_campaign","")+"&"+L("utm.utm_medium_cart_page",""):t;let mt=!1,vt=!1;const yt=t=>{clearTimeout(et),et=null,mt||(et=setTimeout(()=>{et=null,zt((tt+1)%E.length)},t))},gt=e.closest?e.closest(".whatmore-base"):null;let xt={};const _t=t=>{const e=E[t],n=wt(e),a=n&&n.cta_link&&(e.cta||[]).length>1?n:null,o=k(gt,e.event_id)||(vt?k(gt,null):null),r=o?Object.assign({},Q(e)||{},o.fields):Q(e);xt=function(t,e,n,a){const o={};return(t||[]).forEach(t=>{let r=e&&Object.prototype.hasOwnProperty.call(e,t.name)?e[t.name]:void 0;void 0!==r&&null!==r||("title"===t.name&&"button"!==t.kind?r=n&&n.title:"body"===t.name&&"button"!==t.kind?r=n&&n.description:"cta"===t.name&&"button"===t.kind&&(r=a?{label:a.cta_title,link:a.cta_link}:null));const i=(Array.isArray(r)?r:[r]).slice(0,t.repeat).map(e=>x(t,e));for(;i.length<t.repeat;)i.push(x(t,null));o[t.name]=i}),o}(D.fields.map(t=>t.def),r,e,a),q.setAttribute("data-wht-event",String(e.event_id)),function(t,{event:e,index:n,values:a,linkOf:o}){const{banner:r,dotEls:i}=t;i.forEach((t,e)=>t.toggleAttribute("data-wht-active",e===n)),r.setAttribute("data-wht-type",e&&"image"===e.event_type?"image":"video");const s=o||(t=>t),l=r.ownerDocument&&r.ownerDocument.activeElement;let d=!1,c=!1;(t.fields||[]).forEach(({def:t,els:e})=>{const n=a&&a[t.name]||[];e.forEach((e,a)=>{const o=n[a],r=l===e;if("button"===t.kind){const t=o&&o.link?s(o.link):"";t?(e.href=t,r||(e.textContent=o.label||"Shop now"),e.removeAttribute("data-wht-empty"),c=!0):(e.removeAttribute("href"),r||(e.textContent=""),e.setAttribute("data-wht-empty","1"))}else{const t=r?e.textContent.trim():"string"===typeof o?o:"";r||(e.textContent=t),e.toggleAttribute("data-wht-empty",!t),t&&(d=!0)}})}),r.toggleAttribute("data-wht-notext",!d),r.toggleAttribute("data-wht-nocontent",!d&&(!c||!r.hasAttribute("data-wht-cta"))&&!r.hasAttribute("data-wht-edit"))}(D,{event:e,index:t,values:xt,linkOf:ft})},kt=()=>{try{const t=gt?k(gt,null,!0):null;return t&&null!=t.event_id?String(t.event_id):null}catch(Bt){return null}},Ct=(()=>{let t=null;try{t=new URLSearchParams(window.location.search).get("neoskin")}catch(Bt){}const e=t||g&&g.skin,n=JSON.stringify(W)!==JSON.stringify(v(b));return(!e||"default"===e||"a"===e)&&!n})(),At=t=>{if(t){if(!Ct||q.hasAttribute("data-wht-copy-x"))return;q.setAttribute("data-wht-copy-x","left"),q.setAttribute("data-wht-copy-y","bottom"),q.setAttribute("data-wht-draftpos","1")}else q.hasAttribute("data-wht-draftpos")&&(q.removeAttribute("data-wht-copy-x"),q.removeAttribute("data-wht-copy-y"),q.removeAttribute("data-wht-draftpos"))},St=()=>{if(tt<0)return;const t=kt();if(null===t)return mt=!1,vt=!1,At(!1),_t(tt),void(et||yt(T(E[tt])?S:1e3*(isFinite(F.duration)&&F.duration>0?F.duration:S/1e3)));mt=!0,clearTimeout(et),et=null,At(!0);const e=E.findIndex(e=>String(e.event_id)===t);vt=e<0,e>=0&&e!==tt?zt(e):_t(tt)};gt&&(gt.addEventListener("whatmore-banner-draft",St),document.addEventListener("whatmore-banner-draft",St));const Et=q.querySelector(".wht-neo-banner-media"),It=()=>{if(X)return!0;let t=null;try{t=Et&&Et.getBoundingClientRect()}catch(Bt){return!1}return!!t&&t.width>0&&t.height>t.width};let Pt=null;const zt=t=>{tt=(t%E.length+E.length)%E.length,clearTimeout(et);const e=E[tt];Pt=It();const n=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape",o=e?"landscape":"portrait";if(n){if(T(t))return n.primary&&n.primary[a]&&n.primary[a].content_image_original||"";const r=(t,e)=>{const a=n[t]&&n[t][e];return a&&(a.content_video_1080p||a.content_video_original)||""},i=t=>n.secondary&&n.secondary[t]&&n.secondary[t].content_video_m3u8_original||"",s=!e&&(!r("primary",a)||r("primary",a)===r("primary",o)),l=i(a)||(e||s?i("portrait"):"");if(l)return l;const d=r("secondary",a);if(d)return d;const c=t.event_hls_url,u=c&&c.startsWith("https://cdn.shopify.com")&&c.includes(".mp4")?c:"";return!u||!e&&r("primary",a)&&r("primary",a)!==r("primary",o)?r("primary",a)||r("primary",o):u}return t.event_m3u8_url||t.event_hls_url||""}(e,Pt),a=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape";return n?n.secondary&&n.secondary[a]&&n.secondary[a].poster_image||n.primary&&n.primary[a]&&n.primary[a].poster_image||t.poster_image||"":t.poster_image||""}(e,Pt);if(_t(tt),!n)return bt(),F.style.display="none",void(H.style.display="none");if(T(e)){if(bt(),F.style.display="none",H.style.display="",!ot||!nt)return void(rt=!0);H.src=n,yt(S)}else{if(H.style.display="none",F.style.display="",!ot||!nt)return void(rt=!0);a&&(F.poster=a),it();const t=()=>{isFinite(F.duration)&&F.duration>0&&yt(1e3*F.duration)};F.removeEventListener("loadedmetadata",t),F.addEventListener("loadedmetadata",t,{once:!0}),pt(n)}};U.addEventListener("click",t=>{t.stopPropagation(),zt(tt-1)}),G.addEventListener("click",t=>{t.stopPropagation(),zt(tt+1)}),Y.forEach((t,e)=>t.addEventListener("click",t=>{t.stopPropagation(),zt(e)}));const jt=t=>{t.stopPropagation(),at=!at,it(),q.toggleAttribute("data-wht-sound",at)};if(V.addEventListener("click",jt),K.addEventListener("click",t=>{if(q.hasAttribute("data-wht-edit"))return t.stopPropagation(),void(t.target&&t.target.closest&&t.target.closest("a")&&t.preventDefault());const e=t.target&&t.target.closest?t.target.closest('a[data-wht-kind="button"]'):null;e&&K.contains(e)&&(t.stopPropagation(),null===w||void 0===w||w(E[tt]),null===f||void 0===f||f(E[tt],Object.assign({},wt(E[tt])||{},{cta_title:e.textContent,cta_link:e.getAttribute("href")})))}),q.addEventListener("click",t=>{null===w||void 0===w||w(E[tt]);const e=(()=>{for(let t=0;t<D.fields.length;t++){const e=D.fields[t];if("button"!==e.def.kind)continue;const n=(xt[e.def.name]||[]).filter(t=>t&&t.link)[0];if(n)return n.link}return""})();$&&e?window.open(e,"_self"):jt(t)}),"IntersectionObserver"in window){new IntersectionObserver(t=>{t.forEach(t=>{if(nt=t.isIntersecting,it(),nt&&rt&&ot)return rt=!1,void zt(tt);if(!T(E[tt]||{}))if(nt){ct&&ct.resumeSource(F);const t=F.play();t&&t.catch&&t.catch(()=>{})}else F.pause(),ct&&ct.suspendSource(F)})},{threshold:.01}).observe(q)}let Ot=!1;if(window.addEventListener("resize",()=>{Ot||(Ot=!0,requestAnimationFrame(()=>{Ot=!1;const t=X;X=R(q,a,s,l),(X!==t||null!==Pt&&It()!==Pt)&&zt(tt)}))},{passive:!0}),e.style.opacity="1",!ot){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(e.disconnect(),ot=!0,rt=!1,zt(tt))},{rootMargin:"200px 0px",threshold:0}).observe(q)}const Lt=kt(),Mt=null===Lt?-1:E.findIndex(t=>String(t.event_id)===Lt);null!==Lt&&(mt=!0,vt=Mt<0,At(!0)),zt(Mt>=0?Mt:0);try{const t=()=>new CustomEvent("whatmore-banner-ready",{detail:{skin:j,fields:W.map(t=>Object.assign({},t))}});gt&>.dispatchEvent(t()),document.dispatchEvent(t())}catch(Bt){}if(h)if("IntersectionObserver"in window){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(h(),e.disconnect())},{threshold:0}).observe(q)}else h();return N(),!0}},1839:function(t,e,n){function a(t,e){let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e}function o(t,e){if(!t||!e)return t||"";const n=document.createElement("style");n.media="not all",n.textContent=t,document.head.appendChild(n);let a=t;try{const t=n.sheet;t&&(r(t.cssRules,e),a=function(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].cssText+"\n";return e}(t.cssRules))}catch(o){}return n.remove(),a}function r(t,e){for(let n=0;n<t.length;n++){const a=t[n];void 0!==a.selectorText&&void 0!==a.style?a.selectorText=i(a.selectorText,e):!a.cssRules||"undefined"!==typeof CSSKeyframesRule&&a instanceof CSSKeyframesRule||r(a.cssRules,e)}}function i(t,e){return function(t){const e=[];let n=0,a="";for(let o=0;o<t.length;o++){const r=t[o];"("===r||"["===r?n++:")"!==r&&"]"!==r||n--,","===r&&0===n?(e.push(a),a=""):a+=r}return e.push(a),e}(t).map(t=>{const n=t.trim();return n?e+" "+n:n}).join(", ")}function s(t,e,n,a){if(!t)return null;const o=t[e];if(!o||"object"!==typeof o)return Object.assign({},t,{brandCss:""});const r="string"===typeof t.customCss?t.customCss:"",i=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],s=l(o.widgets,n)||l(i,n),d=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(a),c=d&&o[d]&&"object"===typeof o[d]?o[d]:null,u=s?Object.assign({},o,s):c?Object.assign({},o,c):o;return Object.assign({},u,{brandCss:r,perInstance:!!s,pageScoped:!!c})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const n=Array.isArray(e)?e:[e];for(let a=0;a<n.length;a++){const e=n[a];if(null==e||""===e)continue;const o=t[e];if(o&&"object"===typeof o)return o}return null}n.d(e,{GJ:function(){return o},RO:function(){return s},fz:function(){return a}})},7983:function(t,e,n){function a(t,e=!1){if(null==t)return{events:[],all_events:[]};if(e){return{events:t.events&&t.events[0]&&t.events[0].events||[],all_events:t.all_events||[]}}return{events:t.events||[],all_events:t.all_events||[]}}function o(t,e){if(null==t||!t.eventsets||!t.eventsets[e])return{events:[],all_events:[]};return{events:(Array.isArray(t.eventsets[e])?t.eventsets[e]:[]).reduce((t,e)=>t.concat(e&&e.events||[]),[]),all_events:[]}}function r(t){return!(void 0==t.products||0==t.products.length)}n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return o}})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5126],{1367:function(t,e,n){n.r(e),n.d(e,{REGISTRY:function(){return j},renderNeoBanner:function(){return N}});var a=n(7983),o=n(6387),r=n(1839),i=n(9439),s='.wht-neo-banner{--wht-neo-banner-fields:title text 128 "Headline",body textarea 600 "Body",cta button 40 "Button"}.wht-neo-banner-overlay{background:var(--wht-neo-banner-overlay,linear-gradient(to top,transparent 70%,rgba(0,0,0,.3)))}.wht-neo-banner[data-wht-mutebtn] .wht-neo-banner-mute{align-items:center;background:var(--wht-neo-banner-mute-bg,rgba(0,0,0,.4));border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;height:var(--wht-neo-banner-mute-size,39px);justify-content:center;padding:0;position:absolute;right:10px;top:10px;width:var(--wht-neo-banner-mute-size,39px);z-index:2}.wht-neo-banner[data-wht-mutebtn][data-wht-mutepos^=bottom] .wht-neo-banner-mute{bottom:10px;top:auto}.wht-neo-banner[data-wht-mutebtn][data-wht-mutepos$=left] .wht-neo-banner-mute{left:10px;right:auto}.wht-neo-banner-mute svg{height:55%;width:55%}.wht-neo-banner-nav{align-items:center;background:var(--wht-neo-banner-nav-bg,#fff);border:none;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--wht-neo-banner-nav-color,#090a0b);cursor:pointer;display:flex;height:var(--wht-neo-banner-nav-size,36px);justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wht-neo-banner-nav-size,36px);z-index:2}.wht-neo-banner-nav-prev{left:10px}.wht-neo-banner-nav-next{right:10px}.wht-neo-banner-nav svg{display:block;height:42%;width:42%}.wht-neo-banner[data-wht-dots] .wht-neo-banner-dots{align-items:center;bottom:7%;display:flex;gap:var(--wht-neo-banner-dot-gap,24px);justify-content:center;left:0;position:absolute;right:0;z-index:2}.wht-neo-banner-dot{background:var(--wht-neo-banner-dot,#f8eeec);border:none;border-radius:999px;cursor:pointer;height:12px;padding:0;transition:width .2s ease,background .2s ease;width:12px}.wht-neo-banner-dot[data-wht-active]{background:var(--wht-neo-banner-dot-active,#343434);width:25px}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta{background:var(--wht-neo-banner-cta-bg,#fff);border-radius:var(--wht-neo-banner-cta-radius,5px);bottom:10%;color:var(--wht-neo-banner-cta-color,#343434);display:inline-block;font-size:var(--wht-neo-banner-cta-size,15px);font-weight:700;left:50%;padding:10px 22px;position:absolute;text-decoration:none;transform:translateX(-50%);white-space:nowrap;z-index:2}.wht-neo-banner[data-wht-cta] .wht-neo-banner-cta[data-wht-empty],.wht-neo-banner[data-wht-type=image] .wht-neo-banner-mute{display:none}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{display:flex;flex-direction:column;gap:10px;padding:var(--wht-neo-banner-content-pad,20px)}.wht-neo-banner[data-wht-copy-x][data-wht-cta] .wht-neo-banner-cta{position:static;transform:none}.wht-neo-banner[data-wht-copy-x=left] .wht-neo-banner-content{align-items:flex-start;text-align:left}.wht-neo-banner[data-wht-copy-x=center] .wht-neo-banner-content{align-items:center;text-align:center}.wht-neo-banner[data-wht-copy-x=right] .wht-neo-banner-content{align-items:flex-end;text-align:right}.wht-neo-banner[data-wht-copy-y=top] .wht-neo-banner-content{justify-content:flex-start}.wht-neo-banner[data-wht-copy-y=center] .wht-neo-banner-content{justify-content:center}.wht-neo-banner[data-wht-copy-y=bottom] .wht-neo-banner-content{justify-content:flex-end}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-content{padding:var(--wht-neo-banner-content-pad-wide,40px 56px)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body,.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{color:var(--wht-neo-banner-copy-color,#fff);display:block;font-family:var(--wht-neo-banner-font,inherit);max-width:var(--wht-neo-banner-copy-max,34ch);overflow-wrap:anywhere;text-shadow:0 1px 8px rgba(0,0,0,.45)}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size,22px);font-weight:700;line-height:1.15}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size,14px);line-height:1.45}.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body[data-wht-empty],.wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title[data-wht-empty]{display:none}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-title{font-size:var(--wht-neo-banner-title-size-wide,36px)}:where([data-wht-vp=landscape]) .wht-neo-banner[data-wht-copy-x] .wht-neo-banner-body{font-size:var(--wht-neo-banner-body-size-wide,16px)}',l=n(651);const d='<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M11 5 6 9H2v6h4l5 4V5z" fill="currentColor"/><path d="M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path class="wht-neo-banner-mute-slash" d="M3.5 4.5l17 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',c=t=>'<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="'+("prev"===t?"M15 5l-7 7 7 7":"M9 5l7 7-7 7")+'" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>',u=["left","center","right"],h=["top","center","bottom"];function p(t){const e=String(t||"").trim().toLowerCase();if(!e||"default"===e)return null;if("center"===e||"center-center"===e)return{x:"center",y:"center"};const n=e.split("-");let a=null,o=null;for(const r of n)if(h.includes(r)&&null===o)o=r;else{if(!u.includes(r)||null!==a)return null;a=r}return a||o?{x:a||"center",y:o||"center"}:null}const b='title text 128 "Headline", body textarea 600 "Body", cta button 40 "Button"',w=["text","textarea","button"],f=10,m={text:128,textarea:600,button:40};function v(t){const e=[],n={};return String(t||"").split(",").forEach(t=>{const a=t.match(/"[^"]*"|'[^']*'|[^\s]+/g)||[];if(!a.length)return;const o=a[0].toLowerCase().replace(/[^a-z0-9_-]/g,"");if(!o||n[o])return;const r={name:o,kind:"text",max:0,repeat:1,label:""};a.slice(1).forEach(t=>{const e=t.toLowerCase();/^["']/.test(t)?r.label=t.slice(1,-1).trim():w.indexOf(e)>=0?r.kind=e:/^x\d+$/.test(e)?r.repeat=Math.max(1,Math.min(f,parseInt(e.slice(1),10))):/^\d+$/.test(e)&&(r.max=Math.max(1,parseInt(e,10)))}),r.max||(r.max=m[r.kind]),r.label||(r.label=o.charAt(0).toUpperCase()+o.slice(1)),n[o]=!0,e.push(r)}),e}function y(t,e){const n=t.copy.ownerDocument;t.copy.textContent="",t.fields=(e&&e.length?e:v(b)).map(e=>{const a=[];for(let o=1;o<=e.repeat;o++){const r=n.createElement("button"===e.kind?"a":"div");r.className=("button"===e.kind&&"cta"!==e.name?"wht-neo-banner-cta ":"")+"wht-neo-banner-"+e.name,r.setAttribute("data-wht-field",e.name),r.setAttribute("data-wht-kind",e.kind),r.setAttribute("data-wht-i",String(o)),r.setAttribute("data-wht-ph",e.label+(e.repeat>1?" "+o:"")),r.setAttribute("data-wht-empty","1"),"button"===e.kind&&(r.dataset.role="ctaButton"),t.copy.appendChild(r),a.push(r)}return{def:e,els:a}});const a=e=>{const n=t.fields.filter(t=>t.def.name===e)[0];return n?n.els[0]:null};return t.title=a("title"),t.body=a("body"),t.cta=a("cta"),t.fields}const g=t=>(null==t?"":String(t)).trim();function x(t,e){return"button"!==t.kind?g("object"===typeof e&&null!==e?e.label||e.text:e):"string"===typeof e?{label:"",link:g(e)}:{label:g(e&&(null!=e.label?e.label:e.cta_title)),link:g(e&&(null!=e.link?e.link:e.cta_link))}}const _=["bottom-right","bottom-left","top-left"];function k(t,e,n){try{if(!t||!t.querySelector)return null;const a=t.querySelector("#whatmoreBannerDraft")||(t.ownerDocument||document).getElementById("whatmoreBannerDraft");if(!a)return null;const o=JSON.parse(a.textContent||"null");if(!o||"object"!==typeof o)return null;if(null!==e&&String(o.event_id)!==String(e))return null;if(n)return o;let r=o.fields&&"object"===typeof o.fields?o.fields:null;return r||(r={},void 0!==o.title&&(r.title=o.title),void 0!==o.description&&(r.body=o.description),void 0!==o.cta_link&&(r.cta={label:o.cta_title,link:o.cta_link})),{event_id:o.event_id,fields:r}}catch(a){return null}}function C(t){return(t&&t.cta||[]).filter(t=>t&&t.cta_link&&!/whatmore\.ai/i.test(t.cta_link)).sort((t,e)=>{var n,a;return(null!==(n=t.cta_id)&&void 0!==n?n:0)-(null!==(a=e.cta_id)&&void 0!==a?a:0)})[0]||null}const A="banner",S=6e3,E="wht-neo-banner-css",I="wht-neo-banner-critical",P=".wht-neo-banner-widget{width:100%;container-type:inline-size}.wht-neo-banner{position:relative;margin:0 auto;overflow:hidden;cursor:pointer;width:var(--wht-neo-banner-w,var(--wht-neo-banner-w-auto,100%));height:var(--wht-neo-banner-h,var(--wht-neo-banner-h-auto,220px))}.wht-neo-banner-media{position:absolute;inset:0;overflow:hidden}.wht-neo-banner-video,.wht-neo-banner-img{width:100%;height:100%;object-fit:cover;display:block;background:#ececec}.wht-neo-banner-overlay{position:absolute;inset:0}.wht-neo-banner-content{position:absolute;inset:0;pointer-events:none}.wht-neo-banner-cta{pointer-events:auto}.wht-neo-banner-title,.wht-neo-banner-body{display:none;margin:0}.wht-neo-banner-content>[data-wht-empty]{display:none}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content,.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{pointer-events:auto}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:not([data-wht-kind=button]){display:block}.wht-neo-banner[data-wht-edit][data-wht-cta] .wht-neo-banner-content>[data-wht-kind=button][data-wht-empty]{display:inline-block}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>[data-wht-empty]:empty::before{content:attr(data-wht-ph);opacity:.45}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*{outline:1px dashed transparent;outline-offset:6px;cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' fill='%23fff' stroke='%230a0a0a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E\") 3 21, text;caret-color:#fa558f}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{cursor:text}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:hover{outline-color:rgba(250,85,143,.6)}.wht-neo-banner[data-wht-edit] .wht-neo-banner-content>*:focus{outline:1.5px dashed #fa558f}.wht-neo-banner[data-wht-sound] .wht-neo-banner-mute-slash{display:none}.wht-neo-banner-mute,.wht-neo-banner-nav,.wht-neo-banner-dots,.wht-neo-banner-cta{display:none}";async function z(t){let e=null;try{e=new URLSearchParams(window.location.search).get("neoskin")}catch(c){}let n="";const a=e||t&&t.skin;a&&"default"!==a&&"a"!==a&&(n=await(0,o.P)(A,a));const i=a&&"default"!==a?a:"a",l=t&&t.customCss,d="string"===typeof l?l:l&&"object"===typeof l&&"string"===typeof l[i]?l[i]:"";return(0,r.fz)(E,s+"\n"+n+(t&&t.brandCss?"\n"+t.brandCss:"")+(d?"\n"+d:"")),i}const j={bannerMedia:{data:{source:"backend",field:"event.event_media_urls"},action:"bannerClick"},muteButton:{data:{source:"runtime",field:"video.muted"},action:"toggleMute"},navArrows:{data:{source:"runtime",field:"banner.activeIndex"},action:"step"},dots:{data:{source:"runtime",field:"banner.activeIndex"},action:"jump"},ctaButton:{data:{source:"backend",field:"event.cta"},action:"bannerClick"},bannerTitle:{data:{source:"backend",field:"event.title"},action:null},bannerBody:{data:{source:"backend",field:"event.description"},action:null},bannerField:{data:{source:"customizations",field:"neo.banner.widgets.*.slides.*"},action:null}};function O(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const L=(t,e=null)=>{const n=O(),a=t.split(".").reduce((t,e)=>null==t?void 0:t[e],n);return null==a?e:a};function M(t){try{const e=(t.closest(".whatmore-base")||document).querySelector("#whatmoreIsInDesignMode");return!!e&&"true"===String(e.getAttribute("data-wh"))}catch(e){return!1}}async function B({shopId:t,widgetIdentity:e,designMode:n}){const o=e&&"wgt_default"!==e?`${(0,l.y0)(O(),"/brand/{store_id}/eventset",t)}?widget_id=${e}&source_type=homepage&source_id=${t}&eventset_type=banner${n?"":"&status=active,active"}`:`${(0,l.y0)(O(),"/get_eventset/{store_id}",t)}?eventset_type=banner&source=homepage&source_id=${t}`,{events:r}=(0,a.Po)(await(0,l.Zq)(o).then(t=>t.json()),"banner");return r}const T=t=>"image"===t.event_type;function R(t,e,n,a){var o,r;const s=(0,i.vC)(void 0,e),l=null!==(o=(0,i.eG)(e))&&void 0!==o?o:s.w,d=s.h>l,c=function(t,e,n){var a;const o=t&&t.querySelector("#"+e),r=o&&(null!==(a=o.getAttribute("data-wh"))&&void 0!==a?a:o.getAttribute("data")),i=null!=r?parseFloat(r):NaN;return isFinite(i)?i:n}(document,"whatmoreVideoTileSize",60)/100*Number(L(d?"banner_config.portrait_multiplier":"banner_config.landscape_multiplier",1)),u=L("banner_config.widget_aspect_ratios"),h=null!==(r=u&&u[n]&&u[n][d?"portrait":"landscape"])&&void 0!==r?r:a&&a[d?"portrait":"landscape"],p=Number(null!==h&&void 0!==h?h:L(d?"banner_config.portrait_aspect_ratio":"banner_config.landscape_aspect_ratio",d?1:.5625)),b=!!L("banner_config.is_full_screen"),w=l,f=w*c;return t.style.setProperty("--wht-neo-banner-w-auto",b?"100%":Math.round(f)+"px"),t.style.setProperty("--wht-neo-banner-h-auto",Math.round((b?w:f)*p)+"px"),t.style.setProperty("--wht-neo-banner-ar-auto",String(p)),void 0!==h&&null!==h?t.style.setProperty("--wht-neo-banner-ar-set",String(p)):t.style.removeProperty("--wht-neo-banner-ar-set"),t.style.setProperty("--wht-neo-banner-vh-auto",Math.round(s.h)+"px"),(0,i.Vo)(t.parentNode&&1===t.parentNode.nodeType?t.parentNode:t,e),d}async function N(t){const{rootElement:e,widgetContainer:a,shopId:o,widgetIdentity:s,bannerArOverride:l,whatmoreRootId:u,onWidgetView:h,onBannerClick:w,onBannerCtaClick:f}=t;if((0,i.V2)(t.storeFlags&&t.storeFlags.viewportSizedTiles),!e||!o)return!1;(0,r.fz)(I,P);const m=[s&&"wgt_default"!==s?s:null,u],g=(0,r.RO)(t.neoJson,A,m);let E,j;try{[E,j]=await Promise.all([B({shopId:o,widgetIdentity:s,designMode:M(e)}),z(g)])}catch(Bt){return!1}let O=g&&g.copyPosition;try{O=new URLSearchParams(window.location.search).get("neocopy")||O}catch(Bt){}if(p(O)||(O=null),(!E||!E.length)&&t.showMockOnEmpty)try{const t=await fetch("https://consumer.whatmore.live/vs/mock-data").then(t=>t.json());E=t&&t.bannerData||[]}catch(Bt){E=[]}const N=()=>{const t=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${u}"]`);t&&t.remove(),e.removeAttribute("data-shimmer-active"),a&&(a.style.minHeight="0px")};if(!E||!E.length)return N(),!0;const $=!!L("banner_config.is_banner_clickable"),D=function(t,e){const{shopId:n,widgetIdentity:a,eventCount:o,flags:r={},dotColor:i,copyPosition:s,fields:l}=e,u=(e,n)=>{const a=t.createElement(e);return a.className=n,a},h=u("div","wht-neo-banner-widget"),b=u("div","wht-neo-banner");b.dataset.role="bannerMedia",n&&b.setAttribute("data-wht-shop",n),a&&b.setAttribute("data-wht-widget",a),r.muteBtn&&b.setAttribute("data-wht-mutebtn","1"),r.muteBtn&&_.includes(r.mutePos)&&b.setAttribute("data-wht-mutepos",r.mutePos),r.dots&&b.setAttribute("data-wht-dots","1"),r.cta&&b.setAttribute("data-wht-cta","1"),i&&b.style.setProperty("--wht-neo-banner-dot-active",i);const w=p(s);w&&(b.setAttribute("data-wht-copy-x",w.x),b.setAttribute("data-wht-copy-y",w.y));const f=u("div","wht-neo-banner-media"),m=u("video","wht-neo-banner-video");m.muted=!0,m.loop=!0,m.playsInline=!0,m.preload="auto",m.setAttribute("muted",""),m.setAttribute("playsinline",""),m.setAttribute("webkit-playsinline","");const v=u("img","wht-neo-banner-img");v.alt="",f.appendChild(m),f.appendChild(v);const g=u("div","wht-neo-banner-overlay"),x=u("button","wht-neo-banner-mute");x.type="button",x.dataset.role="muteButton",x.setAttribute("aria-label","Toggle sound"),x.innerHTML=d;const k=t=>{const e=u("button","wht-neo-banner-nav wht-neo-banner-nav-"+t);return e.type="button",e.dataset.role="navArrows",e.setAttribute("aria-label","prev"===t?"Previous":"Next"),e.innerHTML=c(t),e},C=k("prev"),A=k("next"),S=u("div","wht-neo-banner-dots");S.dataset.role="dots";const E=[];for(let d=0;d<o;d++){const t=u("button","wht-neo-banner-dot");t.type="button",t.setAttribute("aria-label","Slide "+(d+1)),S.appendChild(t),E.push(t)}g.appendChild(x),o>1&&(g.appendChild(C),g.appendChild(A),g.appendChild(S)),f.appendChild(g);const I=u("div","wht-neo-banner-content");b.appendChild(f),b.appendChild(I),h.appendChild(b);const P={content:h,banner:b,media:f,video:m,img:v,overlay:g,mute:x,prev:C,next:A,dots:S,dotEls:E,copy:I,fields:[],title:null,body:null,cta:null};return y(P,l),P}(document,{shopId:o,widgetIdentity:s,eventCount:E.length,flags:{muteBtn:!!L("banner_config.show_mute_button"),mutePos:L("banner_config.mute_button_position"),dots:!!L("banner_config.show_navigation_dots"),cta:!!L("banner_config.show_cta")},dotColor:L("banner_config.selected_dot_color"),copyPosition:O}),{content:J,banner:q,video:F,img:H,mute:V,prev:U,next:G,dotEls:Y,copy:K}=D;e.innerHTML="",e.appendChild(J);const W=(()=>{let t="";try{t=getComputedStyle(q).getPropertyValue("--wht-neo-banner-fields")}catch(Bt){}const e=v(t);return e.length?e:v(b)})();y(D,W);let X=R(q,a,s,l);const Z=s&&"wgt_default"!==s?s:"wgt_default",Q=e=>{const n=t.neoJson&&t.neoJson.banner&&t.neoJson.banner.widgets||L("neo.banner.widgets"),a=n&&n[Z]&&n[Z].slides;return a&&e&&a[String(e.event_id)]||null};let tt=-1,et=null,nt=!0,at=!1,ot=!("IntersectionObserver"in window);let rt=!1;const it=()=>{F.muted=!at||!nt},st=()=>{if(nt){const t=F.play();t&&t.catch&&t.catch(()=>{})}},lt={bufferAhead:8},dt=!(!F.canPlayType||!F.canPlayType("application/vnd.apple.mpegurl"))&&/apple/i.test(navigator.vendor||"");let ct=null,ut=null;const ht=()=>st(),pt=t=>{F.removeEventListener("loadeddata",ht),F.addEventListener("loadeddata",ht,{once:!0});const e=e=>{e.attachSource(F,t,e.PRIORITY.ACTIVE,lt),nt||e.suspendSource(F),st()};if(ct)return void e(ct);if(!(a=t)||!a.toLowerCase().includes(".m3u8")||dt)return F.src=t,F.load(),void st();var a;const o=tt;(ct?Promise.resolve(ct):ut||(ut=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(ct=t,t)))).then(t=>{tt===o&&e(t)}).catch(()=>{})},bt=()=>{ct?ct.releaseSource(F):F.pause()},wt=C,ft=t=>t&&L("utm.activate_utm")?t+"?"+L("utm.utm_source","")+"&"+L("utm.utm_campaign","")+"&"+L("utm.utm_medium_cart_page",""):t;let mt=!1,vt=!1;const yt=t=>{clearTimeout(et),et=null,mt||(et=setTimeout(()=>{et=null,zt((tt+1)%E.length)},t))},gt=e.closest?e.closest(".whatmore-base"):null;let xt={};const _t=t=>{const e=E[t],n=wt(e),a=n&&n.cta_link&&(e.cta||[]).length>1?n:null,o=k(gt,e.event_id)||(vt?k(gt,null):null),r=o?Object.assign({},Q(e)||{},o.fields):Q(e);xt=function(t,e,n,a){const o={};return(t||[]).forEach(t=>{let r=e&&Object.prototype.hasOwnProperty.call(e,t.name)?e[t.name]:void 0;void 0!==r&&null!==r||("title"===t.name&&"button"!==t.kind?r=n&&n.title:"body"===t.name&&"button"!==t.kind?r=n&&n.description:"cta"===t.name&&"button"===t.kind&&(r=a?{label:a.cta_title,link:a.cta_link}:null));const i=(Array.isArray(r)?r:[r]).slice(0,t.repeat).map(e=>x(t,e));for(;i.length<t.repeat;)i.push(x(t,null));o[t.name]=i}),o}(D.fields.map(t=>t.def),r,e,a),q.setAttribute("data-wht-event",String(e.event_id)),function(t,{event:e,index:n,values:a,linkOf:o}){const{banner:r,dotEls:i}=t;i.forEach((t,e)=>t.toggleAttribute("data-wht-active",e===n)),r.setAttribute("data-wht-type",e&&"image"===e.event_type?"image":"video");const s=o||(t=>t),l=r.ownerDocument&&r.ownerDocument.activeElement;let d=!1,c=!1;(t.fields||[]).forEach(({def:t,els:e})=>{const n=a&&a[t.name]||[];e.forEach((e,a)=>{const o=n[a],r=l===e;if("button"===t.kind){const t=o&&o.link?s(o.link):"";t?(e.href=t,r||(e.textContent=o.label||"Shop now"),e.removeAttribute("data-wht-empty"),c=!0):(e.removeAttribute("href"),r||(e.textContent=""),e.setAttribute("data-wht-empty","1"))}else{const t=r?e.textContent.trim():"string"===typeof o?o:"";r||(e.textContent=t),e.toggleAttribute("data-wht-empty",!t),t&&(d=!0)}})}),r.toggleAttribute("data-wht-notext",!d),r.toggleAttribute("data-wht-nocontent",!d&&(!c||!r.hasAttribute("data-wht-cta"))&&!r.hasAttribute("data-wht-edit"))}(D,{event:e,index:t,values:xt,linkOf:ft})},kt=()=>{try{const t=gt?k(gt,null,!0):null;return t&&null!=t.event_id?String(t.event_id):null}catch(Bt){return null}},Ct=(()=>{let t=null;try{t=new URLSearchParams(window.location.search).get("neoskin")}catch(Bt){}const e=t||g&&g.skin,n=JSON.stringify(W)!==JSON.stringify(v(b));return(!e||"default"===e||"a"===e)&&!n})(),At=t=>{if(t){if(!Ct||q.hasAttribute("data-wht-copy-x"))return;q.setAttribute("data-wht-copy-x","left"),q.setAttribute("data-wht-copy-y","bottom"),q.setAttribute("data-wht-draftpos","1")}else q.hasAttribute("data-wht-draftpos")&&(q.removeAttribute("data-wht-copy-x"),q.removeAttribute("data-wht-copy-y"),q.removeAttribute("data-wht-draftpos"))},St=()=>{if(tt<0)return;const t=kt();if(null===t)return mt=!1,vt=!1,At(!1),_t(tt),void(et||yt(T(E[tt])?S:1e3*(isFinite(F.duration)&&F.duration>0?F.duration:S/1e3)));mt=!0,clearTimeout(et),et=null,At(!0);const e=E.findIndex(e=>String(e.event_id)===t);vt=e<0,e>=0&&e!==tt?zt(e):_t(tt)};gt&&(gt.addEventListener("whatmore-banner-draft",St),document.addEventListener("whatmore-banner-draft",St));const Et=q.querySelector(".wht-neo-banner-media"),It=()=>{if(X)return!0;let t=null;try{t=Et&&Et.getBoundingClientRect()}catch(Bt){return!1}return!!t&&t.width>0&&t.height>t.width};let Pt=null;const zt=t=>{tt=(t%E.length+E.length)%E.length,clearTimeout(et);const e=E[tt];Pt=It();const n=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape",o=e?"landscape":"portrait";if(n){if(T(t))return n.primary&&n.primary[a]&&n.primary[a].content_image_original||"";const r=(t,e)=>{const a=n[t]&&n[t][e];return a&&(a.content_video_1080p||a.content_video_original)||""},i=t=>n.secondary&&n.secondary[t]&&n.secondary[t].content_video_m3u8_original||"",s=!e&&(!r("primary",a)||r("primary",a)===r("primary",o)),l=i(a)||(e||s?i("portrait"):"");if(l)return l;const d=r("secondary",a);if(d)return d;const c=t.event_hls_url,u=c&&c.startsWith("https://cdn.shopify.com")&&c.includes(".mp4")?c:"";return!u||!e&&r("primary",a)&&r("primary",a)!==r("primary",o)?r("primary",a)||r("primary",o):u}return t.event_m3u8_url||t.event_hls_url||""}(e,Pt),a=function(t,e){const n=t.event_media_urls,a=e?"portrait":"landscape";return n?n.secondary&&n.secondary[a]&&n.secondary[a].poster_image||n.primary&&n.primary[a]&&n.primary[a].poster_image||t.poster_image||"":t.poster_image||""}(e,Pt);if(_t(tt),!n)return bt(),F.style.display="none",void(H.style.display="none");if(T(e)){if(bt(),F.style.display="none",H.style.display="",!ot||!nt)return void(rt=!0);H.src=n,yt(S)}else{if(H.style.display="none",F.style.display="",!ot||!nt)return void(rt=!0);a&&(F.poster=a),it();const t=()=>{isFinite(F.duration)&&F.duration>0&&yt(1e3*F.duration)};F.removeEventListener("loadedmetadata",t),F.addEventListener("loadedmetadata",t,{once:!0}),pt(n)}};U.addEventListener("click",t=>{t.stopPropagation(),zt(tt-1)}),G.addEventListener("click",t=>{t.stopPropagation(),zt(tt+1)}),Y.forEach((t,e)=>t.addEventListener("click",t=>{t.stopPropagation(),zt(e)}));const jt=t=>{t.stopPropagation(),at=!at,it(),q.toggleAttribute("data-wht-sound",at)};if(V.addEventListener("click",jt),K.addEventListener("click",t=>{if(q.hasAttribute("data-wht-edit"))return t.stopPropagation(),void(t.target&&t.target.closest&&t.target.closest("a")&&t.preventDefault());const e=t.target&&t.target.closest?t.target.closest('a[data-wht-kind="button"]'):null;e&&K.contains(e)&&(t.stopPropagation(),null===w||void 0===w||w(E[tt]),null===f||void 0===f||f(E[tt],Object.assign({},wt(E[tt])||{},{cta_title:e.textContent,cta_link:e.getAttribute("href")})))}),q.addEventListener("click",t=>{null===w||void 0===w||w(E[tt]);const e=(()=>{for(let t=0;t<D.fields.length;t++){const e=D.fields[t];if("button"!==e.def.kind)continue;const n=(xt[e.def.name]||[]).filter(t=>t&&t.link)[0];if(n)return n.link}return""})();$&&e?window.open(e,"_self"):jt(t)}),"IntersectionObserver"in window){new IntersectionObserver(t=>{t.forEach(t=>{if(nt=t.isIntersecting,it(),nt&&rt&&ot)return rt=!1,void zt(tt);if(!T(E[tt]||{}))if(nt){ct&&ct.resumeSource(F);const t=F.play();t&&t.catch&&t.catch(()=>{})}else F.pause(),ct&&ct.suspendSource(F)})},{threshold:.01}).observe(q)}let Ot=!1;if(window.addEventListener("resize",()=>{Ot||(Ot=!0,requestAnimationFrame(()=>{Ot=!1;const t=X;X=R(q,a,s,l),(X!==t||null!==Pt&&It()!==Pt)&&zt(tt)}))},{passive:!0}),e.style.opacity="1",!ot){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(e.disconnect(),ot=!0,rt=!1,zt(tt))},{rootMargin:"200px 0px",threshold:0}).observe(q)}const Lt=kt(),Mt=null===Lt?-1:E.findIndex(t=>String(t.event_id)===Lt);null!==Lt&&(mt=!0,vt=Mt<0,At(!0)),zt(Mt>=0?Mt:0);try{const t=()=>new CustomEvent("whatmore-banner-ready",{detail:{skin:j,fields:W.map(t=>Object.assign({},t))}});gt&>.dispatchEvent(t()),document.dispatchEvent(t())}catch(Bt){}if(h)if("IntersectionObserver"in window){new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(h(),e.disconnect())},{threshold:0}).observe(q)}else h();return N(),!0}},1839:function(t,e,n){function a(t,e){let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=e}function o(t,e){if(!t||!e)return t||"";const n=document.createElement("style");n.media="not all",n.textContent=t,document.head.appendChild(n);let a=t;try{const t=n.sheet;t&&(r(t.cssRules,e),a=function(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].cssText+"\n";return e}(t.cssRules))}catch(o){}return n.remove(),a}function r(t,e){for(let n=0;n<t.length;n++){const a=t[n];void 0!==a.selectorText&&void 0!==a.style?a.selectorText=i(a.selectorText,e):!a.cssRules||"undefined"!==typeof CSSKeyframesRule&&a instanceof CSSKeyframesRule||r(a.cssRules,e)}}function i(t,e){return function(t){const e=[];let n=0,a="";for(let o=0;o<t.length;o++){const r=t[o];"("===r||"["===r?n++:")"!==r&&"]"!==r||n--,","===r&&0===n?(e.push(a),a=""):a+=r}return e.push(a),e}(t).map(t=>{const n=t.trim();return n?e+" "+n:n}).join(", ")}function s(t,e,n,a){if(!t)return null;const o=t[e];if(!o||"object"!==typeof o)return Object.assign({},t,{brandCss:""});const r="string"===typeof t.customCss?t.customCss:"",i=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],s=l(o.widgets,n)||l(i,n),d=s?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(a),c=d&&o[d]&&"object"===typeof o[d]?o[d]:null,u=s?Object.assign({},o,s):c?Object.assign({},o,c):o;return Object.assign({},u,{brandCss:r,perInstance:!!s,pageScoped:!!c})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const n=Array.isArray(e)?e:[e];for(let a=0;a<n.length;a++){const e=n[a];if(null==e||""===e)continue;const o=t[e];if(o&&"object"===typeof o)return o}return null}n.d(e,{GJ:function(){return o},RO:function(){return s},fz:function(){return a}})},7983:function(t,e,n){function a(t,e=!1){if(null==t)return{events:[],all_events:[]};if(e){return{events:t.events&&t.events[0]&&t.events[0].events||[],all_events:t.all_events||[]}}return{events:t.events||[],all_events:t.all_events||[]}}function o(t,e){if(null==t||!t.eventsets||!t.eventsets[e])return{events:[],all_events:[]};return{events:(Array.isArray(t.eventsets[e])?t.eventsets[e]:[]).reduce((t,e)=>t.concat(e&&e.events||[]),[]),all_events:[]}}function r(t){return!(void 0==t.products||0==t.products.length)}n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return o}})}}]);
|
|
@@ -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 W},layoutOption:function(){return q},layoutVars:function(){return L},pdpUrl:function(){return N},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 b(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,e,n){if(e.textContent=n.handle.charAt(0).toUpperCase(),e.setAttribute("data-wht-avatar",n.avatar||""),!n.avatar)return;const a=t.createElement("img");a.alt="",a.decoding="async",a.addEventListener("load",()=>{e.getAttribute("data-wht-avatar")===n.avatar&&(e.textContent="",e.appendChild(a))}),a.src=n.avatar}function m(t){return p(t.start)+(null!=t.end?"\u2013"+p(t.end):"")}const y=new Set;if("undefined"!==typeof document&&document.addEventListener){const t=()=>y.forEach(t=>t());document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&t()}),"undefined"!==typeof window&&window.addEventListener("pagehide",t)}function x(t,e,a,c,p,v,w){const m=u(t,"div","wht-neo-va-stage"),x=u(t,"video","wht-neo-va-video");x.setAttribute("playsinline",""),x.setAttribute("muted",""),x.muted=!0,x.preload="none",e.length>1&&m.setAttribute("data-wht-multi","");let k=!1;const C=()=>{!k&&e[0]&&(k=!0,e[0].poster&&(x.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")||b(e,o.naturalWidth,o.naturalHeight,a)}),o.src=n}(t,m,e[0].poster,c)))};let A=null,_=null;x.addEventListener("loadedmetadata",()=>{m.setAttribute("data-wht-ar-media",""),b(m,x.videoWidth,x.videoHeight,c)});const z=u(t,"div","wht-neo-va-progress"),S=e.reduce((t,e)=>t+Math.max(1,(null!=e.end?e.end:e.start+6)-e.start),0),E=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)/S);const i=u(t,"i","");return r.appendChild(i),z.appendChild(r),r.addEventListener("click",t=>{t.stopPropagation(),nt(o)}),i}),I=u(t,"button","wht-neo-va-mute");I.type="button",I.setAttribute("aria-label",a.unmute),I.setAttribute("aria-pressed","false"),I.appendChild(g(t,i));const L=(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},M=L("prev",s,a.prev),j=L("next",l,a.next),q=u(t,"button","wht-neo-va-toggle");q.type="button",q.setAttribute("aria-label",a.pause),q.appendChild(g(t,d));const R=u(t,"span","wht-neo-va-who",""),P=u(t,"div","wht-neo-va-stage-by"),T=u(t,"span","wht-neo-va-stage-by-avatar",""),O=u(t,"span","wht-neo-va-stage-by-handle","");P.appendChild(T),P.appendChild(O);const V=e=>{R.textContent=e.source.handle?"@"+e.source.handle:"",P.hidden=!e.source.handle,O.textContent=e.source.handle?"@"+e.source.handle:"",f(t,T,e.source)};e[0]&&V(e[0]);const B=u(t,"button","wht-neo-va-stage-play");B.type="button",B.setAttribute("aria-label",a.play),B.appendChild(g(t,o)),m.appendChild(x),m.appendChild(z),m.appendChild(P),m.appendChild(R),e.length>1&&(m.appendChild(M),m.appendChild(j)),m.appendChild(q),m.appendChild(I),m.appendChild(B);let W=-1,F=null,D=!1,N=!1,K=!1,$=!1,H=!1,J="";const U="function"===typeof IntersectionObserver,Y=()=>{I.replaceChildren(g(t,x.muted?i:r)),I.setAttribute("aria-label",x.muted?a.unmute:a.mute),I.setAttribute("aria-pressed",x.muted?"false":"true")},G=()=>{w&&(x.muted=!w.on),Y()};w&&(w.listeners.push(G),G());let Z=0,X=null,Q=null;const tt=()=>{X&&Number.isFinite(x.duration)&&x.duration>0&&(Q=Math.round(10*x.duration)/10)};x.addEventListener("durationchange",tt);const et=()=>{if(!Z||!X)return;const t=(Date.now()-Z)/1e3,e=X,n=Q;Z=0,X=null,Q=null,t>=1&&v&&v.onWatched&&null!=e.eventId&&v.onWatched(e,{watchTime:Math.round(10*t)/10,duration:n,clipStart:e.start,clipEnd:null!=e.end?e.end:n})},nt=t=>{if(!e.length)return;D=!0,N=!1,K=!0,W=(t%e.length+e.length)%e.length;const a=F;if(F=e[W],X&&a&&a!==F){const t=!x.paused&&(F.stream||F.url)===J;et(),t&&(Z=Date.now(),X=F,tt())}V(F),m.setAttribute("data-wht-clip",String(W)),E.forEach((t,e)=>{t.style.width=e<W?"100%":"0"}),C();const o=F,r=o.stream||o.url,i=()=>{if(F===o)try{x.currentTime=o.start}catch(t){}},s=()=>{if(F!==o)return;const t=x.play();t&&t.catch&&t.catch(()=>{})},d=t=>{if(F===o){if(t||x.readyState<1)return x.addEventListener("loadedmetadata",()=>{i(),s()},{once:!0}),void(t||s());i(),s()}};if(r!==J){J=r;const t=(null!=o.end?o.end:o.start+12)-o.start;l=e=>{F===o&&(e.attachSource(x,r,e.PRIORITY.ACTIVE,{bufferAhead:Math.max(6,Math.min(15,t+4))}),d(!0))},A?l(A):(_||(_=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(A=t,t))),_.then(l).catch(()=>{}))}else d(!1);var l;p&&p(W)},at=()=>{const t=x.play();t&&t.catch&&t.catch(()=>{})},ot=()=>{N=!0;try{x.pause()}catch(t){}};U&&(new IntersectionObserver(t=>{H=t.some(t=>t.isIntersecting),H&&K&&C()},{rootMargin:"600px 0px"}).observe(m),new IntersectionObserver(t=>{$=t.some(t=>t.isIntersecting&&t.intersectionRatio>=.25),K&&(!$||N||h?$||(()=>{if(D&&!x.paused)try{x.pause()}catch(t){}})():D?at():nt(0))},{threshold:[0,.25,.5]}).observe(m));const rt=e=>{q.replaceChildren(g(t,e?d:o)),q.setAttribute("aria-label",e?a.pause:a.play)};y.add(()=>{const t=X&&!x.paused;et(),t&&(Z=Date.now(),X=F,tt())}),x.addEventListener("playing",()=>{m.setAttribute("data-wht-playing",""),rt(!0),F&&(X&&X!==F&&et(),Z||(Z=Date.now(),X=F,tt()),!v||!v.onView||null==F.eventId||v.viewed&&v.viewed.has(F.eventId)||(v.viewed&&v.viewed.add(F.eventId),v.onView(F)))}),x.addEventListener("pause",()=>{m.removeAttribute("data-wht-playing"),rt(!1),et()}),x.addEventListener("emptied",()=>{m.removeAttribute("data-wht-playing"),rt(!1),et()}),q.addEventListener("click",t=>{t.stopPropagation(),D?x.paused?(N=!1,at()):ot():nt(0)}),B.addEventListener("click",t=>{t.stopPropagation(),D?(N=!1,at()):nt(0)}),x.addEventListener("timeupdate",()=>{if(!F)return;const t=null!=F.end?F.end:x.duration||0,e=Math.max(.1,t-F.start);E[W].style.width=Math.max(0,Math.min(100,(x.currentTime-F.start)/e*100))+"%",null!=F.end&&x.currentTime>=F.end&&nt(W+1)}),x.addEventListener("ended",()=>nt(W+1));I.addEventListener("click",t=>{t.stopPropagation(),(()=>{if(!w)return x.muted=!x.muted,void Y();w.on=x.muted,w.listeners.forEach(t=>t())})()}),M.addEventListener("click",t=>{t.stopPropagation(),nt(W-1)}),j.addEventListener("click",t=>{t.stopPropagation(),nt(W+1)}),x.addEventListener("click",t=>{if(!D)return void nt(0);const n=x.getBoundingClientRect(),a=(t.clientX-n.left)/Math.max(1,n.width);e.length>1&&a<.22?nt(W-1):e.length>1&&a>.78?nt(W+1):x.paused?(N=!1,at()):ot()}),m.addEventListener("keydown",t=>{"ArrowRight"===t.key&&e.length>1?(t.preventDefault(),nt(W+1)):"ArrowLeft"===t.key&&e.length>1?(t.preventDefault(),nt(W-1)):" "===t.key&&D&&(t.preventDefault(),x.paused?(N=!1,at()):ot())});return{element:m,play:nt,prime:C,start:()=>{K=!0,N=!1,U||($=H=m.isConnected),H&&C(),!h&&$&&m.isConnected&&(D?at():nt(W<0?0:W))},pause:()=>{if(K=!1,D)try{x.pause()}catch(t){}},index:()=>W}}const k={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&&!1===e.headings||!0===n.hideSectionTitles;let l=(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(!l.length)return null;d&&(l=[{label:l[0].label,entries:l.reduce((t,e)=>t.concat(e.entries),[])}]);const h=Object.assign({},k,n.labels||{}),p="wht-va-"+(n.instanceKey||"r"),b=u(t,"section","wht-neo-va");b.setAttribute("data-wht-role","videoAnswers"),n.shopId&&b.setAttribute("data-wht-shop",String(n.shopId)),b.setAttribute("data-wht-widget",n.widgetKey||"wgt_default"),n.instanceKey&&b.setAttribute("data-wht-instance",n.instanceKey),b.setAttribute("data-wht-look",n.look||"a");const y=d||"stacked"===n.layout;b.setAttribute("data-wht-layout",y?"stacked":"tabs"),d&&b.setAttribute("data-wht-headings","off");const C=u(t,"header","wht-neo-va-head");h.eyebrow&&C.appendChild(u(t,"p","wht-neo-va-eyebrow",h.eyebrow)),h.title&&C.appendChild(u(t,"h3","wht-neo-va-title",h.title)),h.eyebrow||h.title||(C.hidden=!0),b.appendChild(C);const A=y?null:u(t,"div","wht-neo-va-tabs");A&&(A.setAttribute("role","tablist"),b.appendChild(A));const _=u(t,"div","wht-neo-va-sections");b.appendChild(_);const z=[],S=t=>z.forEach(e=>{e!==t&&e.pause()});let E=null;const I=[];if(l.forEach((e,n)=>{const l=u(t,"div","wht-neo-va-section");l.id=p+"-p"+n,l.setAttribute("data-wht-section",e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-"));let b=null;if(d)l.setAttribute("role","region"),l.setAttribute("aria-label",h.title||h.eyebrow||e.label);else if(y){const a=u(t,"h4","wht-neo-va-section-label");a.id=p+"-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))),l.setAttribute("role","region"),l.setAttribute("aria-labelledby",a.id),l.appendChild(a)}else l.setAttribute("role","tabpanel"),b=u(t,"button","wht-neo-va-tab"),b.type="button",b.id=p+"-t"+n,b.setAttribute("role","tab"),b.setAttribute("aria-controls",l.id),l.setAttribute("aria-labelledby",b.id),b.appendChild(u(t,"span","wht-neo-va-tab-label",e.label)),b.appendChild(u(t,"span","wht-neo-va-tab-n",String(e.entries.length))),A.appendChild(b);const k=[];e.entries.forEach((e,d)=>{const b=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,avatar:/^https:\/\//.test(String(d.avatar_url||""))?String(d.avatar_url):""}:{handle:"",type:"brand",paid:!1,views:r.total_views,likes:null,comments:null,posted:null,url:null,avatar:""}})}return a}(e,i,s),y=u(t,"div","wht-neo-va-entry"),C=p+"-"+n+"-"+d,A=u(t,"button","wht-neo-va-q");A.type="button",A.setAttribute("aria-controls",C),A.appendChild(u(t,"span","wht-neo-va-qtext",e.title)),b.length&&A.appendChild(u(t,"span","wht-neo-va-qmeta",h.clips(b.length))),A.appendChild(u(t,"span","wht-neo-va-chev",""));const _=u(t,"div","wht-neo-va-a");_.id=C;const I=u(t,"div","wht-neo-va-a-in");_.appendChild(I);const L=u(t,"div","wht-neo-va-text");e.body&&L.appendChild(u(t,"p","wht-neo-va-body",e.body)),I.appendChild(L);let M=null;if(b.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=r=>{const l=e[r];if(!l)return;const h=l.source,c=!h.handle;a.setAttribute("data-wht-uncredited",c?"true":"false"),a.setAttribute("data-wht-type",h.type),a.setAttribute("data-wht-paid",h.paid?"true":"false"),o.hidden=c,i.hidden=c,i.textContent=h.handle?"@"+h.handle:"",h.url?(i.href=h.url,i.target="_blank",i.rel="noopener",i.title=n.viewPost):(i.removeAttribute("href"),i.removeAttribute("target"),i.removeAttribute("title")),s.hidden=!h.paid,f(t,o,h);const p=v(h.views),w=v(h.likes);d.textContent=[p&&p+" "+n.views,w&&w+" "+n.likes].filter(Boolean).join(" \xb7 "),d.hidden=!d.textContent,a.hidden=c&&d.hidden};return l(0),{element:a,show:l}}(t,b,h),n=u(t,"div","wht-neo-va-clips");b.length<2&&(n.hidden=!0);const i=b.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",m(e))),r.title=m(e),r.setAttribute("aria-label",h.play+" "+(e.label||m(e))),r.addEventListener("click",()=>{S(M),M.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),M=x(t,b,h,t=>_.setAttribute("data-wht-ar",t),t=>{e.show(t),s(t)},a,r),z.push(M),I.appendChild(M.element),I.appendChild(n),I.appendChild(e.element)}const j=t=>{t?(E&&E.entry!==y&&E.close(),E={entry:y,close:()=>j(!1)},y.setAttribute("data-wht-open",""),M&&(S(M),M.start())):(E&&E.entry===y&&(E=null),y.removeAttribute("data-wht-open"),M&&M.pause()),A.setAttribute("aria-expanded",t?"true":"false")};A.addEventListener("click",()=>j(!y.hasAttribute("data-wht-open"))),j(!1),k.push(j),y.appendChild(A),y.appendChild(_),l.appendChild(y)}),_.appendChild(l),I.push({tab:b,sec:l,openFirst:()=>k[0](!0)})}),y)return I[0].openFirst(),b;const L=(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}),S(null),I[t].openFirst(),e&&I[t].tab.focus(),A.scrollTo&&A.scrollWidth>A.clientWidth&&A.scrollTo({left:I[t].tab.offsetLeft-(A.clientWidth-I[t].tab.offsetWidth)/2,behavior:"smooth"})};return I.forEach((t,e)=>t.tab.addEventListener("click",()=>{t.sec.hidden&&L(e,!1)})),A.addEventListener("keydown",t=>{const e=I.findIndex(t=>!t.sec.hidden),n="ArrowRight"===t.key?1:"ArrowLeft"===t.key?-1:0;n&&(t.preventDefault(),L((e+n+I.length)%I.length,!0))}),L(0,!1),b}var A=n(1839),_=n(9439),z=n(3959),S=n(6387),E=".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)}}",I=n(651);function L(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 M=["tabs","stacked"],j={k:"tabs"};function q(t,e){const n=String(e||j[t]||"stacked").toLowerCase();return M.includes(n)?n:"stacked"}function R(t,e){const n=t&&t[e];return"string"===typeof n&&n.trim()?n.trim():null}const P="wht-neo-va-critical",T="wht-neo-va-skin",O="videoAnswers",V=["a","c","g","k","l","m"],B=["a"],W='\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-avatar img,.wht-neo-va-stage-by-avatar img{display:block;width:100%;height:100%;object-fit:cover}\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%;overflow:hidden}\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 F(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}const D=t=>{const e=F();return t.split(".").reduce((t,e)=>null==t?void 0:t[e],e)};function N({shopId:t,productId:e,hostname:n}){const a=!0===D("product_page_popup_config.show_all_events")||!0===D("recommendation_config.show_all_events_with_pdp");return`${(0,I.y0)(F(),"/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,A.RO)(t,O,e)||{},o=String(n||a.skin||"a").toLowerCase(),r=V.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=B.includes(r)?"":await(0,S.P)(O,r);return{look:r,stack:E+(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,onClipStarted:h,onClipWatched:c,videoAnswersSample:p}=t;if(!e||!a||!o)return!1;const v={};e.__whtVaRender=v;const w=()=>e.__whtVaRender!==v;(0,A.fz)(P,W);let u=null,g=null;try{const t=new URLSearchParams(window.location.search);u=t.get("neoskin"),g=t.get("neolayout")}catch($){}const b=i||!r?"wgt_default":r,f=["wgt_default"!==b?b:null,s].filter(Boolean),{look:m,stack:y}=await K(d,f,u);if(w())return!0;let x;s?(0,A.fz)(T+"-"+s,(0,A.GJ)(y,':where([data-wht-instance="'+s+'"])')):(0,A.fz)(T,y);try{x=await(0,I.Zq)(N({shopId:a,productId:o,hostname:window.location.hostname})).then(t=>t.json())}catch($){x=null}if(w())return!0;let k=x&&x.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)&&(k=t)}}catch($){}let S=!1;if(!k&&p&&p.shopId&&p.productId){try{const t=await(0,I.Zq)(N({shopId:p.shopId,productId:p.productId,hostname:window.location.hostname})).then(t=>t.json());t&&t.video_sense&&(x=t,k=t.video_sense,S=!0)}catch($){}if(w())return!0}if(!k)return!1;const E={};for(const C of[].concat(x&&x.events||[],x&&x.related_events||[],x&&x.all_events||[]))C&&null!=C.event_id&&!E[String(C.event_id)]&&(E[String(C.event_id)]=C);const M=(0,A.RO)(d,O,f)||{},j=R(M,"title"),V=R(M,"eyebrow"),B=!(M&&!0===M.hideEyebrow),F=C(document,k,{track:S||!c&&!h?null:{onView:t=>{h&&h(t)},onWatched:(t,e)=>{c&&c(t,e)}},shopId:a,widgetKey:b,instanceKey:s,look:m,layout:q(m,g),hideSectionTitles:!0===M.hideSectionTitles,events:E,labels:{eyebrow:B?null!==V?V:(0,z.rB)("video_answers_eyebrow","Shopper questions"):"",title:null!==j?j:(0,z.rB)("video_answers_title","What the videos show"),unmute:(0,z.rB)("video_answers_unmute","Tap for sound"),mute:(0,z.rB)("video_answers_mute","Mute"),play:(0,z.rB)("video_answers_play","Play"),pause:(0,z.rB)("video_answers_pause","Pause"),paid:(0,z.rB)("video_answers_paid","Paid partnership"),viewPost:(0,z.rB)("video_answers_view_post","View the original post")}});if(!F)return!1;const D=L(M);if(Object.keys(D).forEach(t=>F.style.setProperty(t,D[t])),S){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,z.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."),F.insertBefore(t,F.firstChild),F.setAttribute("data-wht-sample","")}if(l&&!S)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(F)}else l();return s&&e.setAttribute("data-wht-instance",s),(0,_.Vo)(F,n||e),e.replaceChildren(F),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}})}}]);
|