whatmore-react-assets 1.0.1907 → 1.0.1909
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-buying-guide.b0082ed2.chunk.js +1 -0
- package/static/js/wht-neo-video-answers.154c6ab4.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/wht-neo-buying-guide.cfcd47b6.chunk.js +0 -1
- package/static/js/wht-neo-video-answers.93681327.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[5883],{1839:function(t,e,i){function n(t,e){let i=document.getElementById(t);i||(i=document.createElement("style"),i.id=t,document.head.appendChild(i)),i.textContent=e}function a(t,e){if(!t||!e)return t||"";const i=document.createElement("style");i.media="not all",i.textContent=t,document.head.appendChild(i);let n=t;try{const t=i.sheet;t&&(o(t.cssRules,e),n=function(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].cssText+"\n";return e}(t.cssRules))}catch(a){}return i.remove(),n}function o(t,e){for(let i=0;i<t.length;i++){const n=t[i];void 0!==n.selectorText&&void 0!==n.style?n.selectorText=s(n.selectorText,e):!n.cssRules||"undefined"!==typeof CSSKeyframesRule&&n instanceof CSSKeyframesRule||o(n.cssRules,e)}}function s(t,e){return function(t){const e=[];let i=0,n="";for(let a=0;a<t.length;a++){const o=t[a];"("===o||"["===o?i++:")"!==o&&"]"!==o||i--,","===o&&0===i?(e.push(n),n=""):n+=o}return e.push(n),e}(t).map(t=>{const i=t.trim();return i?e+" "+i:i}).join(", ")}function r(t,e,i,n){if(!t)return null;const a=t[e];if(!a||"object"!==typeof a)return Object.assign({},t,{brandCss:""});const o="string"===typeof t.customCss?t.customCss:"",s=t.shopper&&t.shopper.widgets&&t.shopper.widgets[e],r=l(a.widgets,i)||l(s,i),c=r?null:function(t){return 0===String(t||"").indexOf("product")?"product":null}(n),d=c&&a[c]&&"object"===typeof a[c]?a[c]:null,h=r?Object.assign({},a,r):d?Object.assign({},a,d):a;return Object.assign({},h,{brandCss:o,perInstance:!!r,pageScoped:!!d})}function l(t,e){if(!t||"object"!==typeof t||!e)return null;const i=Array.isArray(e)?e:[e];for(let n=0;n<i.length;n++){const e=i[n];if(null==e||""===e)continue;const a=t[e];if(a&&"object"===typeof a)return a}return null}i.d(e,{GJ:function(){return a},RO:function(){return r},fz:function(){return n}})},6563:function(t,e,i){i.r(e),i.d(e,{LOOKS:function(){return X},MAX_CARDS:function(){return G},ROUTE:function(){return U},guideIsOnFor:function(){return Z},guideUrl:function(){return et},layoutAttrs:function(){return ot},layoutVars:function(){return at},pageRows:function(){return st},parsePlacement:function(){return tt},renderNeoBuyingGuide:function(){return pt},resolveLook:function(){return it}});const n=8,a={tested:"Put to the test",compare:"Side by side",question:"Question",how_to:"How to",up_close:"Up close",style_it:"Style it"},o={products:t=>t+(1===t?" product":" products"),styles:t=>t+(1===t?" style":" styles"),readMore:"Read more",showLess:"Show less",view:"View",playing:"Playing",paused:"Paused",replaying:"Replaying",more:t=>t+" more",unavailable:"Clip unavailable",prev:"Previous product",next:"Next product",pause:"Pause",play:"Play",mute:"Mute",unmute:"Unmute",proof:"Who made this clip",list:"Products in these clips",watch:"Watch its clip",again:"Watch this one again",views:"views",likes:"likes"},s={pause:'<svg viewBox="0 0 16 16" fill="currentColor"><rect x="3.5" y="2.5" width="3" height="11" rx="1"/><rect x="9.5" y="2.5" width="3" height="11" rx="1"/></svg>',play:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M4 2.5v11l9-5.5z"/></svg>',muted:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M2 6h3l4-3v10l-4-3H2z"/><path d="M11 6l4 4m0-4l-4 4" stroke="currentColor" stroke-width="1.5"/></svg>',sound:'<svg viewBox="0 0 16 16" fill="currentColor"><path d="M2 6h3l4-3v10l-4-3H2z"/><path d="M11 5.5a3.5 3.5 0 010 5M12.8 3.8a6 6 0 010 8.4" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>',loop:'<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 8a5 5 0 018.5-3.5L13 6M13 2.5V6H9.5M13 8a5 5 0 01-8.5 3.5L3 10m0 3.5V10h3.5"/></svg>'},r=/\[([^\]]+)\]\(p:([^)\s]+)\)/g,l=t=>String(null==t?"":t).replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t])),c=t=>String(null==t?0:t).split(":").reduce((t,e)=>60*t+(Number(e)||0),0),d=c,h=t=>null!=t&&""!==t&&Number.isFinite(Number(t))?Number(t)>=1e3?(Number(t)/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(t):"";function p(t){const e=new Set,i=[];for(const n of t.clips||[]){const a=String(n.product_id);e.has(a)||(e.add(a),i.push({...n,product_id:a,chip:t.chips&&t.chips[n.id]||n.shows||""}))}const a=[...String(t.body||"").matchAll(r)].map(t=>t[2]),o=t=>a.includes(t.product_id)?a.indexOf(t.product_id):1/0,s=i.map((t,e)=>[t,e]).sort((t,e)=>o(t[0])-o(e[0])||t[1]-e[1]).map(t=>t[0]).slice(0,n),l=Array.isArray(t.order)?t.order:[];if(!l.length)return s;const c=t=>l.indexOf(t.id)+1||1e9;return s.map((t,e)=>[t,e]).sort((t,e)=>c(t[0])-c(e[0])||t[1]-e[1]).map(t=>t[0])}function u(t,e,i,n,a,o,r){const c=n[t.product_id]||{},d=((r||{})[t.video_key]||{}).poster||c.image||"";return`<div class="bg-tile" role="listitem" data-pid="${l(t.product_id)}">\n <div class="bg-tile-media" data-tile="${e}" title="${l(a.again)}">${d?`<img loading="lazy" src="${l(d)}" alt="">`:""}<i class="bg-tile-play" aria-hidden="true">${s.play}</i></div>\n <button class="bg-tile-main" type="button" data-tile="${e}" aria-pressed="false" title="${l(a.again)}">\n <span class="bg-tile-img">${c.image?`<img loading="lazy" src="${l(c.image)}" alt="">`:""}${"how_to"===i?`<em>${e+1}</em>`:""}</span>\n <span class="bg-tile-info">\n <span class="bg-tile-state"></span>\n <span class="bg-tile-name">${l(c.style||c.title||"")}</span>\n <span class="bg-tile-print">${l(c.print||"")}</span>\n <span class="bg-tile-value" title="${l(t.answer||"")}">${l(t.chip)}</span>\n </span>\n </button>\n <div class="bg-tile-buy">\n <span class="bg-tile-price">${l(function(t,e){const i=Number(t);if(null==t||""===t||!Number.isFinite(i))return"";const n={style:"currency",currency:e||"USD",maximumFractionDigits:i%1?2:0};try{return new Intl.NumberFormat(void 0,{...n,currencyDisplay:"narrowSymbol"}).format(i)}catch(a){}try{return new Intl.NumberFormat(void 0,n).format(i)}catch(a){return String(t)}}(c.price,c.currency))}</span>\n ${c.link?`<a class="bg-tile-view" href="${l(c.link)}"${o} data-view="${l(t.product_id)}">${l(a.view)}</a>`:""}\n </div>\n <span class="bg-tile-bar"><b></b></span>\n </div>`}function g(t,e,i,n,c){const d=c||{},h=d.newTab?' target="_blank" rel="noopener"':"",p=i.products||{},g=t.format||"question",b=Object.keys(p).some(t=>p[t]&&p[t].print),f=new Set(e.map(t=>(p[t.product_id]||{}).style||t.product_id)).size,m=b?(n.styles||o.styles)(f):n.products(e.length),y="compare"===g&&Array.isArray(t.ends)&&2===t.ends.length?`<div class="bg-axis"><span>${l(t.ends[0])}</span><i></i><span>${l(t.ends[1])}</span></div>`:"";return`<section class="bg-card fmt-${l(g)}" data-key="${l(t.key)}">\n <div class="bg-head">\n ${d.hideEyebrow?"":`<p class="bg-eyebrow">${l((n.formats||a)[g]||a.question)} \xb7 ${l(m)}</p>`}\n <h3 class="bg-title">${l(t.title)}</h3>\n ${y}\n </div>\n <div class="bg-a">\n <div class="bg-text">\n <div class="bg-body-wrap"><p class="bg-body">${function(t,e,i,n){const a=String(t||""),o=[];let s=0;for(const c of a.matchAll(r)){o.push(l(a.slice(s,c.index)));const t=e.has(c[2])?i[c[2]]:null;o.push(t?`<a class="bg-plink" href="${l(t.link||"#")}" data-pid="${l(c[2])}" title="${l(n.watch)}">${l(c[1])}</a>`:l(c[1])),s=c.index+c[0].length}return o.push(l(a.slice(s))),o.join("")}(t.body,new Set(e.map(t=>t.product_id)),p,n)}</p></div>\n <button class="bg-more" type="button" data-act="more" aria-expanded="false">${l(n.readMore)}</button>\n </div>\n <div class="bg-stage">\n <div class="bg-progress">${e.map(()=>"<i><b></b></i>").join("")}</div>\n <video class="wht-neo-video" muted playsinline preload="none"></video>\n <div class="bg-spinner" aria-hidden="true"></div>\n <button class="bg-nav prev" type="button" data-act="prev" aria-label="${l(n.prev)}"><i>\u2039</i></button>\n <button class="bg-nav next" type="button" data-act="next" aria-label="${l(n.next)}"><i>\u203a</i></button>\n <div class="bg-note" role="status" hidden></div>\n <div class="bg-proof" aria-label="${l(n.proof)}"></div>\n <div class="bg-ctl"><button class="bg-btn" type="button" data-act="play" aria-label="${l(n.pause)}">${s.pause}</button><button class="bg-btn" type="button" data-act="mute" aria-label="${l(n.unmute)}">${s.muted}</button></div>\n </div>\n <div class="bg-rail" role="list" aria-label="${l(n.list)}">${e.map((t,e)=>u(t,e,g,p,n,h,i.videos)).join("")}</div>\n </div>\n </section>`}const b=(t,e)=>e.querySelector(t),f=new Set;if("undefined"!==typeof document&&document.addEventListener){const t=()=>f.forEach(t=>t());document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&t()}),"undefined"!==typeof window&&window.addEventListener("pagehide",t)}class m{constructor(t,e,i){m.all.add(this),this.card=t,this.clips=e,this.opts=i||{},this.data=this.opts.data||{},this.labels=this.opts.labels||o,this.v=b("video",t),this.v.muted=!0,this.box=b(".bg-stage",t),this.rail=b(".bg-rail",t),this.tiles=Array.from(t.querySelectorAll(".bg-tile")),this.bars=Array.from(t.querySelectorAll(".bg-progress b")),this.running=!1,this.started=!1,this.held=!!this.opts.reducedMotion,this.replays=0,this.userScrollAt=0,this.i=0,this.watchFrom=0,this.watchClip=null,this.watchDuration=null,this.startedClips=new Set,this.layout="stage",this.home=this.box.parentNode;const n=this.v;n.addEventListener("playing",()=>this.startWatch()),n.addEventListener("durationchange",()=>this.noteDuration()),["pause","emptied"].forEach(t=>n.addEventListener(t,()=>this.flushWatch())),this.onPageHide=()=>{const t=!!this.watchClip&&!n.paused;this.flushWatch(),t&&this.startWatch()},f.add(this.onPageHide),n.addEventListener("loadedmetadata",()=>{this.fit(),this.seek(),this.running?this.tryPlay():this.setLoading(!1)}),n.addEventListener("timeupdate",()=>this.tick()),n.addEventListener("ended",()=>this.atEnd()),n.addEventListener("error",()=>{this.started&&n.getAttribute("data-src")&&this.fail()}),["waiting","seeking","stalled"].forEach(t=>n.addEventListener(t,()=>this.setLoading(this.running))),["playing","canplay","seeked"].forEach(t=>n.addEventListener(t,()=>this.setLoading(this.running&&n.readyState<3))),["wheel","touchstart","pointerdown"].forEach(t=>this.rail.addEventListener(t,()=>{this.userScrollAt=Date.now()},{passive:!0})),this.held&&this.setPlayIcon(!1),this.point(0),this.syncLayout(),"function"===typeof ResizeObserver&&(this.sizeWatch=new ResizeObserver(()=>this.syncLayout()),this.sizeWatch.observe(t)),this.paint(!1)}wantedLayout(){const t=b(".bg-a",this.card);if(!t)return"stage";let e="";try{e="function"===typeof getComputedStyle?getComputedStyle(t).getPropertyValue("--bg-lay"):""}catch(i){e=""}return!e&&t.style&&(e=t.style.getPropertyValue("--bg-lay")),"carousel"===String(e||"").trim().replace(/["']/g,"")?"carousel":"stage"}syncLayout(){const t=this.wantedLayout();t===this.layout&&this.card.getAttribute("data-lay")===t||(this.layout=t,this.card.setAttribute("data-lay",t)),this.seat()}seat(){const t="carousel"===this.layout&&this.tiles[this.i]?this.tiles[this.i].querySelector(".bg-tile-media"):null,e=t||this.home;if(!e||this.box.parentNode===e)return;const i=this.running&&!this.v.paused;t?t.appendChild(this.box):this.home.insertBefore(this.box,this.rail),i&&this.tryPlay()}video(t){return(this.data.videos||{})[this.clips[t].video_key]||{}}tryPlay(){const t=this.v.play();t&&t.catch&&t.catch(()=>{})}seek(){try{this.v.currentTime=this.s}catch(t){}}setPlayIcon(t){const e=b('[data-act="play"]',this.card);e.innerHTML=t?s.pause:s.play,e.setAttribute("aria-label",t?this.labels.pause:this.labels.play)}point(t){const e=this.clips[t];this.i=t,this.s=c(e.start),this.e=Math.max(c(e.end),this.s+5)}noteDuration(){const t=this.v.duration;this.watchClip&&Number.isFinite(t)&&t>0&&(this.watchDuration=Math.round(10*t)/10)}startWatch(){this.watchFrom||(this.watchFrom=Date.now(),this.watchClip=this.clips[this.i],this.noteDuration(),this.startedClips.has(this.watchClip)||(this.startedClips.add(this.watchClip),this.opts.track&&this.opts.track.onClipStarted&&this.opts.track.onClipStarted(this.watchClip)))}flushWatch(){if(!this.watchFrom||!this.watchClip)return;const t=(Date.now()-this.watchFrom)/1e3,e=this.watchClip,i=this.watchDuration;this.watchFrom=0,this.watchClip=null,this.watchDuration=null,t>=1&&this.opts.track&&this.opts.track.onClipWatched&&this.opts.track.onClipWatched(e,{watchTime:Math.round(10*t)/10,duration:i,clipStart:d(e.start),clipEnd:d(e.end)})}go(t){this.flushWatch(),this.point(t),this.seat(),this.started=!0;const e=this.video(t);if(b(".bg-note",this.card).hidden=!0,this.v.getAttribute("data-src")!==(e.url||"")){if(this.v.setAttribute("data-src",e.url||""),e.poster&&(this.v.poster=e.poster),!e.url)return void this.fail();this.opts.setSource?this.opts.setSource(this.v,e.url):this.v.src=e.url,this.setLoading(this.running),this.running&&this.tryPlay()}else this.fit(),this.seek(),this.running&&this.tryPlay(),this.running&&!this.v.paused&&this.startWatch();this.warmNext(),this.paint(!0)}warmNext(){if(!this.running||this.replays>1||!this.opts.warm)return;const t=this.video(this.next()).url;t&&t!==this.v.getAttribute("data-src")&&t!==this.warmed&&(this.warmed=t,this.opts.warm(t))}fit(){const t=this.v.duration;!Number.isFinite(t)||t<=0||this.e<=t||(this.e=t,this.s=Math.max(0,Math.min(this.s,t-5)))}next(t){const e=t||1,i=this.clips.length;for(let n=1;n<=i;n++){const t=((this.i+e*n)%i+i)%i;if(!this.tiles[t].classList.contains("unavailable"))return t}return this.i}tick(){const t=this.v.currentTime;if(!this.started||t<this.s-.5)return;if(t>=this.e)return void this.atEnd();const e=Math.min(100,Math.max(0,100*(t-this.s)/(this.e-this.s)));this.bars.forEach((t,i)=>{t.style.width=i<this.i?"100%":i>this.i?"0":e+"%"});const i=this.tiles[this.i]&&this.tiles[this.i].querySelector(".bg-tile-bar b");i&&(i.style.width=e+"%")}atEnd(){const t=Date.now();if(!(t-(this.endedAt||0)<400)){if(this.endedAt=t,this.replays>1)return this.replays-=1,this.seek(),this.running&&this.tryPlay(),this.paint(!1),void this.warmNext();this.replays=0,this.go(this.next())}}setLoading(t){this.box.classList.toggle("loading",!!t),this.tiles[this.i]&&this.tiles[this.i].classList.toggle("loading",!!t)}paint(t){const e=this.labels;this.tiles.forEach((t,i)=>{const n=i===this.i,a=n&&this.replays>0;t.classList.toggle("active",n),t.classList.toggle("looping",a),t.classList.toggle("paused",n&&!this.running),t.querySelector(".bg-tile-main").setAttribute("aria-pressed",String(a)),n?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current"),n||(t.querySelector(".bg-tile-bar b").style.width="0",t.classList.remove("loading")),t.querySelector(".bg-tile-state").innerHTML=t.classList.contains("unavailable")?l(e.unavailable):a?s.loop+" "+l(e.replaying)+(this.replays>1?" \xb7 "+l(e.more(this.replays-1)):""):n&&this.started?'<i class="eq"><b></b><b></b><b></b></i> '+l(this.running?e.playing:e.paused):""});const i=this.clips[this.i].product_id;this.card.querySelectorAll(".bg-plink").forEach(t=>t.classList.toggle("watching",this.replays>0&&t.getAttribute("data-pid")===i));const n=this.video(this.i),a=n.handle?"@"+n.handle:this.opts.storeName||"",o=[null!=n.views&&""!==n.views&&h(n.views)+" "+e.views,null!=n.likes&&""!==n.likes&&h(n.likes)+" "+e.likes].filter(Boolean).join(" \xb7 ");b(".bg-proof",this.card).innerHTML=a?`<span class="pf-avatar">${l((n.handle||a)[0].toUpperCase())}</span><span class="pf-text"><b>${l(a)}</b>${o?`<em>${l(o)}</em>`:""}</span>`:"",t&&this.reveal()}reveal(){if(Date.now()-this.userScrollAt<2500)return;const t=this.tiles[this.i],e=this.rail;if(!t||"function"!==typeof e.scrollTo)return;"function"===typeof getComputedStyle&&"row"===getComputedStyle(e).flexDirection?e.scrollTo({left:t.offsetLeft-(e.clientWidth-t.offsetWidth)/2,behavior:"smooth"}):e.scrollTo({top:t.offsetTop-(e.clientHeight-t.offsetHeight)/2,behavior:"smooth"})}watch(t){this.userScrollAt=0,this.replay(t);const e=this.box.getBoundingClientRect(),i=this.rail.getBoundingClientRect(),n="undefined"!==typeof window&&window.innerHeight||0;(e.top<0||Math.max(e.bottom,i.bottom)>n)&&this.box.scrollIntoView&&this.box.scrollIntoView({block:"start",behavior:"smooth"})}replay(t){this.replays=3,this.held=!1,this.setPlayIcon(!0),this.running=!0,this.go(t)}step(t){this.replays=0,this.held=!1,this.setPlayIcon(!0),this.running=!0,this.go(this.next(t))}fail(){this.tiles[this.i].classList.add("unavailable"),this.setLoading(!1);const t=b(".bg-note",this.card);t.textContent=this.labels.unavailable,t.hidden=!1,this.paint(!1),clearTimeout(this.failTimer),this.replays=0,this.failTimer=setTimeout(()=>{this.next()!==this.i&&this.go(this.next())},900)}play(){this.running=!this.held,this.running?this.started?(this.tryPlay(),this.warmNext(),this.paint(!1)):this.go(this.i):this.paint(!1)}pause(){this.running=!1,this.v.pause(),this.flushWatch(),this.setLoading(!1),this.paint(!1)}leave(){this.replays=0,this.pause()}toggle(){this.held=!this.held,this.setPlayIcon(!this.held),this.held?this.pause():this.play()}setMuted(t){this.v.muted=t;const e=b('[data-act="mute"]',this.card);e.innerHTML=t?s.muted:s.sound,e.setAttribute("aria-label",t?this.labels.unmute:this.labels.mute)}mute(){const t=this.v.muted;if(t&&m.all.forEach(t=>{t!==this&&t.setMuted(!0)}),this.setMuted(!t),!t||!this.running)return;const e=this.v.play();e&&e.catch&&e.catch(()=>{this.setMuted(!0),this.running&&this.tryPlay()})}destroy(){m.all.delete(this),this.sizeWatch&&this.sizeWatch.disconnect(),clearTimeout(this.failTimer),this.running=!1;try{this.v.pause()}catch(t){}if(this.flushWatch(),f.delete(this.onPageHide),this.opts.releaseSource)this.opts.releaseSource(this.v);else{this.v.removeAttribute("src");try{this.v.load()}catch(t){}}}}m.all=new Set;const y=/recent|recommend|upsell|cross-sell|related/i,x=new Set(["SCRIPT","TEMPLATE","STYLE","LINK","NOSCRIPT"]),w=4,v="data-wht-bg-card",k="data-wht-bg-pad",S=2,E=12,C=1e4,A=[700,2500];function L(t){const e=/\/products\/([^/?#]+)/.exec(String(t||""));if(!e)return"";try{return decodeURIComponent(e[1]).toLowerCase()}catch(i){return e[1].toLowerCase()}}function $(t){const e=new Set;return t.forEach(t=>{(t.matches&&t.matches(T)?[t]:Array.from(t.querySelectorAll(T))).forEach(t=>{const i=L(t.getAttribute("href"));i&&e.add(i)})}),e}const _=t=>!x.has(t.tagName)&&!t.hasAttribute(v)&&"none"!==getComputedStyle(t).display,M=t=>{const e=getComputedStyle(t);return e.float&&"none"!==e.float||"inline-block"===e.display},T='a[href*="/products/"]',z=t=>t.matches&&t.matches(T)||!!t.querySelector(T);function R(t){return t.some(t=>t.offsetHeight>0)?t.filter(t=>z(t)||t.offsetHeight>0&&t.offsetWidth>0):t}function P(t){const e=t||document,i=e.querySelector('main, #MainContent, [role="main"]')||e.body||e,n=e.body||e;if(!i)return null;const a=new Set;let o=null;return i.querySelectorAll('a[href*="/products/"]').forEach(t=>{for(let s=t.parentElement,r=0;s&&s!==i&&r<18;s=s.parentElement,r++){if(a.has(s))continue;a.add(s);const t=Array.from(s.children).filter(_),i=t.filter(z);if(i.length<4||i.length/t.length<.6)continue;if(e.body&&$(i.slice(0,12)).size<4)continue;const r=getComputedStyle(s),l=r.display.includes("grid")||r.display.includes("flex")&&"wrap"===r.flexWrap,c=!l&&/^(block|flow-root|list-item)$/.test(r.display)&&M(i[0])&&M(i[1]);if(!l&&!c)continue;const d=s.scrollWidth-s.clientWidth;if(d>4&&/auto|scroll/.test(r.overflowX)||d>.5*s.clientWidth)continue;if(l&&r.display.includes("grid")&&String(r.gridAutoFlow||"").includes("column"))continue;let h=!1;for(let e=s;e&&e!==n;e=e.parentElement)if(y.test(e.id+" "+("string"===typeof e.className?e.className:"")+" "+e.tagName)){h=!0;break}h||o&&!(i.length>o.items.length)||(o={grid:s,items:i,tiles:R(t),flow:c})}}),o}function N(t){if(!t.length)return[];const e=t.some(e=>e.offsetTop!==t[0].offsetTop),i=t=>e?t.offsetTop:t.getBoundingClientRect().top,n=[0];let a=i(t[0]);for(let o=1;o<t.length;o++){const e=i(t[o]);Math.abs(e-a)>=4&&(n.push(o),a=e)}return n}const O=t=>parseFloat(t)||0,B={marginTop:"0px",marginBottom:"0px",padding:"0px"};function I(t,e,i){const n=(t||document).createElement(e);return n.setAttribute(v,i||""),Object.assign(n.style,{display:"block",gridColumn:"1 / -1",gridRow:"auto",gridTemplateRows:"none",flex:"0 0 100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",listStyle:"none",margin:"0",padding:"0",float:"none",clear:"both"}),n}function W({slots:t,anchor:e=null,mode:i="grid",firstRows:n=2,everyRows:a=3,minBefore:o=w,doc:s,slotProducts:r=null,isFiltered:l=null,onSwap:c=null}){const d=s||document,h=d.ownerDocument||d;let p="none",u=null,g=null,b=!1;const f="function"===typeof ResizeObserver?new ResizeObserver(()=>H()):null,m=t.map(t=>t.firstElementChild),y=t.map(t=>t.getAttribute(v)||"");const x=t=>{const e=[];for(let i=t.nextElementSibling;i&&i.hasAttribute(k);i=i.nextElementSibling)e.push(i);return e},L=t=>{let e=t.nextElementSibling;for(;e&&e.hasAttribute(k);)e=e.nextElementSibling;return e},_=t=>{x(t).forEach(t=>t.remove()),t.remove()};let M=[],T=!1,z=[];const R=h.defaultView||("undefined"!==typeof window?window:null),W=d===h&&R&&"function"===typeof R.scrollBy;function j(t,e){if(!W)return null;const i=function(t){for(let e=t.parentElement;e&&e!==h.body&&e!==h.documentElement;e=e.parentElement){const t=getComputedStyle(e).overflowY;if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight+1)return e}return null}(e);if(!((i?i.scrollTop:R.pageYOffset)>0))return null;const n=i?i.getBoundingClientRect().top:0,a=t.find(t=>t.getBoundingClientRect().top>=n);return a?{el:a,top:a.getBoundingClientRect().top,box:i}:null}function q(){const s="grid"!==i||T?null:P(d);if(!s)return z=[],void function(){if(!e)return t.forEach(_),void(p="none");t.forEach((t,i)=>{Object.assign(t.style,B),x(t).forEach(t=>t.remove()),t.parentElement===e&&e.children[i]===t||e.insertBefore(t,e.children[i]||null)}),p="anchor"}();const c=r&&l&&l()?$(s.items):null,g=c?t.filter((t,e)=>(r[e]||[]).filter(t=>c.has(t)).length>=S):t,b=j(s.items,s.grid);t.forEach(t=>{g.includes(t)||_(t)});const m=t.filter(t=>t.parentElement===s.grid);m.forEach(t=>{t.style.position="absolute"});const y=N(s.tiles),w=function(t){const e=N(t);return e.reduce((i,n,a)=>Math.max(i,(a+1<e.length?e[a+1]:t.length)-n),1)}(s.tiles);m.forEach(t=>{t.style.position=""});const v=y.length>1?s.tiles[y[1]]:null,E=function(t){const e=getComputedStyle(t),i=O(e.borderTopWidth)+O(e.borderBottomWidth)>0||!/^(|transparent|rgba\(0, 0, 0, 0\))$/.test(e.backgroundColor||"")||!/^(|none)$/.test(e.boxShadow||""),n=t=>Math.min(120,Math.max(0,Math.round(O(t))))+"px";return{marginTop:n(e.marginTop),marginBottom:n(e.marginBottom),padding:i?"0px":[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft].map(n).join(" ")}}(v&&s.items.includes(v)?v:s.items[0]);let C=Math.min(n,y.length);for(;C<y.length&&y[C]<o;)C++;z=[],g.forEach((t,e)=>{Object.assign(t.style,E);const i=C+e*a,n=i<y.length?s.tiles[y[i]]:null,o=t.parentElement===s.grid;if(n)o&&L(t)===n||(x(t).forEach(t=>t.remove()),s.grid.insertBefore(t,n));else{if(0!==e)return void _(t);o&&!L(t)||(x(t).forEach(t=>t.remove()),s.grid.appendChild(t))}!function(t,e){const i=x(t);i.slice(e).forEach(t=>t.remove());for(let n=i.length;n<e;n++){const e=h.createElement(t.tagName.toLowerCase());e.setAttribute(k,""),e.setAttribute("aria-hidden","true"),e.hidden=!0,e.style.setProperty("display","none","important"),t.parentElement.insertBefore(e,t.nextSibling)}}(t,w-1),z.push(t)}),function(t){if(!t||!t.el.isConnected)return;const e=t.el.getBoundingClientRect().top-t.top;Math.abs(e)<=1||(t.box?t.box.scrollTop+=e:R.scrollBy(0,e))}(b),f&&u!==s.items[0]&&(f.disconnect(),f.observe(s.items[0]),u=s.items[0]),p="grid"}function D(){if(b)return;if(function(){let e=0;return t.forEach((i,n)=>{const a=m[n];if(!a||i.hasAttribute(v)&&a.parentElement===i)return;const o=I(h,i.tagName.toLowerCase(),y[n]);if(o.appendChild(a),i.hasAttribute(v)&&i.remove(),t[n]=o,e++,c)try{c(i,o)}catch(s){}}),e}()+z.filter(e=>t.includes(e)&&!e.isConnected).length){const t=Date.now();M=M.filter(e=>t-e<C),M.push(t),M.length>E&&(T=!0)}q(),G&&(G.takeRecords(),U&&!U.isConnected&&(G.disconnect(),U=V(),G.observe(U,{childList:!0,subtree:!0})))}let F=[];function H(){clearTimeout(g),F.forEach(clearTimeout),g=setTimeout(()=>{D(),F=A.map(t=>setTimeout(D,t))},120)}const V=()=>d.querySelector("main")||d.body||d;let U=null;const G="function"===typeof MutationObserver?new MutationObserver(()=>H()):null;return G&&(U=V(),G.observe(U,{childList:!0,subtree:!0})),R&&R.addEventListener("resize",H),h.addEventListener("shopify:section:load",H),h.addEventListener("shopify:section:unload",H),D(),F=A.map(t=>setTimeout(D,t)),{placedIn:()=>p,stop(){b=!0,clearTimeout(g),F.forEach(clearTimeout),t.forEach(t=>x(t).forEach(t=>t.remove())),G&&G.disconnect(),f&&f.disconnect(),R&&R.removeEventListener("resize",H),h.removeEventListener("shopify:section:load",H),h.removeEventListener("shopify:section:unload",H)}}}var j=i(1839),q=i(3959),D=i(651),F=i(6387),H=':host{--ink:var(--wht-neo-bg-ink,#1f2421);--ink-2:var(--wht-neo-bg-ink-2,#4a524c);--muted:var(--wht-neo-bg-muted,#7e867f);--accent:var(--wht-neo-bg-accent,#1f2421);--accent-ink:var(--wht-neo-bg-accent-ink,#5b645d);--line:var(--wht-neo-bg-line,#e4e6e3);--soft:var(--wht-neo-bg-soft,#f1f3f0);--card:var(--wht-neo-bg-card,#fff);--radius:var(--wht-neo-bg-radius,14px);color:var(--ink);display:block!important;font-size:var(--wht-neo-bg-font-size,15px);line-height:1.4;text-align:left}*{box-sizing:border-box}button{color:inherit;cursor:pointer;font:inherit}[hidden]{display:none!important}.wm-frame{container-type:inline-size;margin:var(--wht-neo-bg-margin,8px auto);max-width:var(--wht-neo-bg-maxw,none)}.bg-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow-anchor:none}.bg-head{padding:24px 28px 18px}.bg-eyebrow{color:var(--accent-ink);font-size:10.8px;font-weight:500;letter-spacing:1.94px;margin:0 0 8px;text-transform:uppercase}.bg-title{color:var(--ink);font-family:var(--wht-neo-bg-title-font,inherit);font-size:18px;font-weight:var(--wht-neo-bg-title-weight,500);letter-spacing:-.18px;line-height:1.35;margin:0}.bg-axis{align-items:center;color:var(--muted);display:flex;font-size:12px;gap:10px;margin-top:12px;max-width:420px}.bg-axis i{background:linear-gradient(90deg,var(--soft),var(--accent));border-radius:2px;flex:1;height:2px}.bg-a{align-items:start;display:grid;gap:24px;grid-template-columns:minmax(0,1fr) 220px 300px;padding:0 28px 26px}.bg-text{align-self:stretch;display:flex;flex-direction:column;gap:12px;min-width:0}.bg-body{color:var(--ink-2);font-size:15px;letter-spacing:.2px;line-height:1.7;margin:-6px 0 0}.bg-plink{border-radius:3px;color:var(--ink);cursor:pointer;font-weight:500;text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1.5px;text-underline-offset:3px;transition:background .15s}.bg-plink.watching,.bg-plink:focus-visible,.bg-plink:hover{background:var(--soft);outline:none;text-decoration-color:var(--accent)}.bg-more{align-self:flex-start;background:none;border:0;color:var(--ink);display:none;font-size:13px;font-weight:600;padding:0}.bg-more:after{content:" \u25be"}.bg-text.open .bg-more:after{content:" \u25b4"}.bg-stage{align-self:start;aspect-ratio:9/16;background:#111;border-radius:12px;overflow:hidden;position:relative}.bg-stage video{display:block;height:100%;object-fit:cover;width:100%}.bg-stage:before{background:linear-gradient(rgba(0,0,0,.5),transparent);content:"";height:84px;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.bg-progress{display:flex;gap:4px;left:8px;position:absolute;right:8px;top:8px;z-index:2}.bg-progress i{background:hsla(0,0%,100%,.35);border-radius:2px;flex:1;height:3px;overflow:hidden}.bg-progress b{background:#fff;display:block;height:100%;width:0}.bg-proof{align-items:center;color:#fff;display:flex;gap:7px;left:10px;pointer-events:none;position:absolute;right:10px;text-shadow:0 1px 2px rgba(0,0,0,.5);top:20px;z-index:2}.bg-proof:empty{display:none}.pf-avatar{background:hsla(0,0%,100%,.92);border-radius:50%;color:#333;display:grid;flex:none;font-size:11px;font-weight:700;height:24px;place-items:center;text-shadow:none;width:24px}.pf-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}.pf-text b{font-size:12px;font-weight:600}.pf-text b,.pf-text em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pf-text em{font-size:11px;font-style:normal;opacity:.9}.bg-nav{align-items:center;background:transparent;border:0;bottom:60px;display:flex;padding:0 8px;position:absolute;top:28px;width:34%;z-index:2}.bg-nav.prev{justify-content:flex-start;left:0}.bg-nav.next{justify-content:flex-end;right:0}.bg-nav i{background:hsla(0,0%,8%,.45);border-radius:50%;color:#fff;display:grid;font-size:20px;font-style:normal;height:30px;line-height:1;opacity:0;place-items:center;transition:opacity .15s;width:30px}.bg-nav:focus-visible i,.bg-stage:hover .bg-nav i{opacity:1}@media (hover:none){.bg-nav i{opacity:.55}}.bg-spinner{animation:bg-spin .8s linear infinite;border:3px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:34px;inset:0;margin:auto;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s;width:34px;z-index:2}.bg-stage.loading .bg-spinner{opacity:1}.bg-note{background:rgba(0,0,0,.65);border-radius:8px;bottom:58px;color:#fff;font-size:12px;left:10px;padding:6px;text-align:center}.bg-ctl,.bg-note{position:absolute;right:10px;z-index:3}.bg-ctl{bottom:10px;display:flex;gap:8px}.bg-btn{background:hsla(0,0%,8%,.7);border:0;border-radius:50%;color:#fff;display:grid;height:34px;padding:0;place-items:center;width:34px}.bg-btn svg{height:14px;width:14px}.bg-rail{display:flex;flex-direction:column;max-height:391.11111px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scroll-snap-type:y proximity;scrollbar-width:thin}.bg-rail,.bg-tile{gap:8px;position:relative}.bg-tile{align-items:center;background:var(--card);border:1px solid var(--line);border-radius:12px;display:grid;flex:none;grid-template-columns:minmax(0,1fr) auto;overflow:hidden;padding:8px 10px 10px 8px;scroll-snap-align:start;transition:border-color .15s,background .15s,box-shadow .15s,opacity .15s}.bg-tile:hover{border-color:var(--muted)}.bg-tile-main{align-items:center;background:none;border:0;display:grid;gap:10px;grid-template-columns:48px minmax(0,1fr);min-width:0;padding:0;text-align:left}.bg-tile-main:focus-visible{border-radius:8px;outline:2px solid var(--accent);outline-offset:3px}.bg-tile-img{background:var(--soft);border-radius:8px;height:62px;overflow:hidden;position:relative;width:48px}.bg-tile-img img{display:block;height:100%;object-fit:cover;width:100%}.bg-tile-img em{background:var(--accent);border-radius:50%;color:#fff;display:grid;font-size:10.5px;font-style:normal;font-weight:600;height:18px;left:4px;place-items:center;position:absolute;top:4px;width:18px}.bg-tile-info{display:flex;flex-direction:column;gap:1px;min-width:0}.bg-tile-state{align-items:center;color:var(--accent-ink);display:inline-flex;font-size:10px;font-weight:600;gap:5px;letter-spacing:.8px;text-transform:uppercase}.bg-tile-state:empty{display:none}.bg-tile-state svg{height:11px;width:11px}.bg-tile-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--ink);display:-webkit-box;font-size:13.5px;font-weight:500;line-height:1.3;overflow:hidden}.bg-tile-print{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-tile-print:empty{display:none}.bg-tile-value{color:var(--ink-2);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-tile-buy{align-items:flex-end;display:flex;flex-direction:column;gap:6px}.bg-tile-price{color:var(--ink);font-size:13px}.bg-tile-price,.bg-tile-view{font-weight:500;white-space:nowrap}.bg-tile-view{background:var(--wht-neo-bg-cta,var(--accent));border-radius:999px;color:var(--wht-neo-bg-cta-ink,#fff);font-size:12px;padding:5px 12px;text-decoration:none}.bg-tile-view:hover{opacity:.85}.bg-tile-bar{bottom:0;height:3px;left:0;overflow:hidden;position:absolute;right:0}.bg-tile-bar b{background:var(--accent);display:block;height:100%;width:0}.bg-tile.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.bg-tile.active .bg-tile-bar,.bg-tile.hl,.bg-tile.looping{background:var(--soft)}.bg-tile.hl{border-color:var(--accent)}.bg-tile.loading .bg-tile-bar b{animation:bg-shimmer 1.1s linear infinite;width:30%!important}.bg-tile.unavailable{opacity:.5}.eq{align-items:flex-end;display:inline-flex;gap:1.5px;height:9px}.eq b{animation:bg-eq .9s ease-in-out infinite;background:currentColor;width:2px}.eq b:nth-child(2){animation-delay:.2s}.eq b:nth-child(3){animation-delay:.4s}.paused .eq b{animation:none;height:4px}.bg-tile-media{display:none}@keyframes bg-spin{to{transform:rotate(1turn)}}@keyframes bg-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(340%)}}@keyframes bg-eq{0%,to{height:3px}50%{height:9px}}@media (prefers-reduced-motion:reduce){.bg-tile.loading .bg-tile-bar b,.eq b{animation:none}}@container (max-width: 900px){.bg-a{grid-template-columns:220px minmax(0,1fr)}.bg-text{grid-column:1/-1}}@container (max-width: 640px){.bg-head{padding:18px 18px 14px}.bg-title{font-size:16px}.bg-a{gap:14px;grid-template-columns:minmax(0,1fr);padding:0 18px 20px}.bg-stage{justify-self:center;max-width:240px;width:100%}.bg-body-wrap{font-size:15px;-webkit-mask-image:linear-gradient(#000 calc(100% - 2.2em),transparent);mask-image:linear-gradient(#000 calc(100% - 2.2em),transparent);max-height:7.2em;overflow:hidden;position:relative;transition:max-height .35s ease}.bg-text.open .bg-body-wrap{-webkit-mask-image:none;mask-image:none;max-height:60em}.bg-more{display:inline-block}.bg-text{gap:8px}.bg-rail{flex-direction:row;margin:0 -18px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 18px;scroll-snap-type:x mandatory}.bg-tile{flex:0 0 82%;scroll-snap-align:center}}@container (min-width: 641px){.wm-frame[data-lay-wide=carousel] .bg-a{--bg-lay:carousel}}@container (max-width: 640px){.wm-frame[data-lay-narrow=carousel] .bg-a{--bg-lay:carousel}}.bg-card[data-lay=carousel] .bg-a{gap:14px;grid-template-columns:minmax(0,1fr)}.bg-card[data-lay=carousel] .bg-a>.bg-stage{display:none}.bg-card[data-lay=carousel] .bg-text{gap:8px;grid-column:1/-1;max-width:880px}.bg-card[data-lay=carousel] .bg-body-wrap{font-size:15px;-webkit-mask-image:linear-gradient(#000 calc(100% - 1.7em),transparent);mask-image:linear-gradient(#000 calc(100% - 1.7em),transparent);max-height:5.2em;overflow:hidden;position:relative;transition:max-height .35s ease}.bg-card[data-lay=carousel] .bg-text.open .bg-body-wrap{-webkit-mask-image:none;mask-image:none;max-height:60em}.bg-card[data-lay=carousel] .bg-more{display:inline-block}.bg-card[data-lay=carousel] .bg-rail{align-items:stretch;flex-direction:row;gap:12px;margin:0;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px;scroll-snap-type:x proximity}.bg-card[data-lay=carousel] .bg-tile{align-items:stretch;display:flex;flex:0 0 var(--wht-neo-bg-slide,clamp(150px,56cqw,192px));flex-direction:column;gap:0;padding:0;scroll-snap-align:start}.bg-card[data-lay=carousel] .bg-tile.active{box-shadow:none}.bg-card[data-lay=carousel] .bg-tile-media{aspect-ratio:9/16;background:#111;cursor:pointer;display:block;overflow:hidden;position:relative}.bg-card[data-lay=carousel] .bg-tile-media>img{display:block;height:100%;object-fit:cover;width:100%}.bg-card[data-lay=carousel] .bg-tile.unavailable .bg-tile-media>img{opacity:.5}.bg-tile-play{background:hsla(0,0%,8%,.55);border-radius:50%;color:#fff;display:grid;height:40px;left:50%;place-items:center;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:40px}.bg-tile-play svg{height:16px;margin-left:2px;width:16px}.bg-tile-media .bg-stage{aspect-ratio:auto;border-radius:0;inset:0;max-width:none;position:absolute;width:auto}.bg-card[data-lay=carousel] .bg-stage .bg-nav,.bg-card[data-lay=carousel] .bg-stage .bg-progress{display:none}.bg-card[data-lay=carousel] .bg-stage .bg-proof{top:10px}.bg-card[data-lay=carousel] .bg-tile-main{align-items:start;gap:8px;grid-template-columns:38px minmax(0,1fr);padding:10px 10px 0}.bg-card[data-lay=carousel] .bg-tile-img{border-radius:6px;height:48px;width:38px}.bg-card[data-lay=carousel] .bg-tile-buy{align-items:center;flex-direction:row;justify-content:space-between;margin-top:auto;padding:8px 10px 13px}@container (max-width: 640px){.bg-card[data-lay=carousel] .bg-rail{margin:0 -18px;padding:2px 18px;scroll-snap-type:x mandatory}.bg-card[data-lay=carousel] .bg-tile{scroll-snap-align:center}}';const V="buyingGuide",U="/v1/brand/{store_id}/buying-guide",G=5,K=3,X=["a","b","c","d","e","f","g","h"],Y="[data-wht-bg-page]",J="whatmoreBuyingGuideDraft";function Q(){try{return JSON.parse(localStorage.getItem("whatmore_brand_customizations")).customizations}catch(t){return null}}function Z(t,e){const i=t&&t[V];if(!i||!0!==i.enabled)return!1;return(Array.isArray(i.collections)?i.collections.map(String):[]).includes(String(e))}function tt(t){const e=/^after_row_([1-9])$/.exec(String(t||""));return e?{mode:"grid",firstRows:Number(e[1])}:"above"===t||"below"===t?{mode:t,firstRows:2}:{mode:"grid",firstRows:2}}function et(t,e){return(0,D.y0)(Q(),U,t)+"?client_collection_id="+encodeURIComponent(e)}async function it(t,e){const i=(0,j.RO)(t,V)||{},n=String(e||i.skin||"a").toLowerCase(),a=X.includes(n)?n:"a",o=i.customCss,s="string"===typeof o?o:o&&"object"===typeof o&&"string"===typeof o[a]?o[a]:"",r="a"===a?"":await(0,F.P)(V,a);return{look:a,css:H+(r?"\n"+r:"")+("string"===typeof i.brandCss&&i.brandCss?"\n"+i.brandCss:"")+(s?"\n"+s:"")}}const nt=(t,e,i)=>{const n=Number(t);return null!==t&&void 0!==t&&""!==t&&Number.isFinite(n)?Math.min(i,Math.max(e,Math.round(n))):null};function at(t){const e=nt(t&&t.spaceAbove,0,200),i=nt(t&&t.spaceBelow,0,200),n=nt(t&&t.maxWidth,320,2e3),a={};return null===e&&null===i||(a["--wht-neo-bg-margin"]=(null===e?8:e)+"px auto "+(null===i?8:i)+"px"),null!==n&&(a["--wht-neo-bg-maxw"]=n+"px"),a}function ot(t){return(!!t&&!0===t.carouselDesktop?' data-lay-wide="carousel"':"")+(!!t&&!0===t.carouselMobile?' data-lay-narrow="carousel"':"")}function st(t){const e=/^\s*(\d)\s*,\s*(\d)\s*$/.exec(t&&t.getAttribute&&t.getAttribute("data-wht-bg-rows")||"");return e&&Number(e[2])>0?{first:Number(e[1]),every:Number(e[2])}:null}let rt=null;function lt(t,e){rt||(rt=Promise.all([i.e(1296,"high"),i.e(4071,"high")]).then(i.bind(i,725))),rt.then(i=>{t.getAttribute("data-src")===e&&i.attachSource(t,e,i.PRIORITY.ACTIVE,{bufferAhead:12})}).catch(()=>{t.src=e})}let ct=null;function dt(t){rt&&rt.then(e=>{ct||(ct=document.createElement("video"),ct.muted=!0,ct.playsInline=!0),e.attachSource(ct,t,e.PRIORITY.NEXT)}).catch(()=>{})}function ht(t){if(rt)rt.then(e=>e.releaseSource(t)).catch(()=>{});else{t.removeAttribute("src");try{t.load()}catch(e){}}}async function pt(t){const{rootElement:e,widgetContainer:i,shopId:n,collectionId:s,neoJson:r,mode:l="embed",preview:c=!1,designMode:d=!1,onWidgetView:h,onClipStarted:u,onClipWatched:b,onProductView:f}=t;if(!n||!s||"0"===String(s))return!1;const y=i&&i.closest&&i.closest(Y)||null,x=!y&&(void 0!==t.pinned?t.pinned:"block"===l),v=y||document,k=st(y),S=window.__whtBuyingGuide;if("embed"===l&&S&&"block"===S.mode&&S.collectionId===String(s))return!0;if("embed"===l&&!c&&!Z(r,s))return!1;let E=function(t){const e=t&&t.querySelector("#"+J);if(!e)return null;try{const t=JSON.parse(e.textContent||"");return t&&Array.isArray(t.cards)?t:null}catch(i){return null}}(i);if(!E)try{E=await fetch(et(n,s)).then(t=>t.ok?t.json():null)}catch(xt){E=null}const C=(E&&E.cards||[]).slice(0,y?G+1:G);if(!C.length)return!1;let A=null;try{A=new URLSearchParams(window.location.search).get("neoskin")}catch(xt){}const{look:$,css:_}=await it(r,A),M=(0,j.RO)(r,V)||{},T=at(M),z=ot(M),R={hideEyebrow:!0===M.hideEyebrow,newTab:!!d||!!y};if("embed"===l&&window.__whtBuyingGuide&&"block"===window.__whtBuyingGuide.mode)return!0;!function(){const t=window.__whtBuyingGuide;if(t){try{t.placer&&t.placer.stop()}catch(xt){}try{t.io&&t.io.disconnect()}catch(xt){}(t.stages||[]).forEach(t=>{try{t.destroy()}catch(xt){}}),(t.slots||[]).forEach(t=>t.remove()),ct&&(ht(ct),ct=null),t.around&&t.around.remove(),window.__whtBuyingGuide=null}}();try{const t=window.Shopify&&window.Shopify.currency&&window.Shopify.currency.active;t&&Object.values(E.products||{}).forEach(e=>{e.currency=t})}catch(xt){}const N=function(){const t=Object.assign({},o),e=(t,e)=>(0,q.rB)("buying_guide_"+t,e);return["readMore","showLess","view","playing","paused","replaying","unavailable","prev","next","pause","play","mute","unmute","views","likes"].forEach(i=>{t[i]=e(i.replace(/[A-Z]/g,t=>"_"+t.toLowerCase()),o[i])}),t.formats=Object.fromEntries(Object.keys(a).map(t=>[t,e("format_"+t,a[t])])),t}(),O=Q(),B=E.store_name||(O&&"string"===typeof O.brand_name?O.brand_name:"")||"",D=C.map(t=>p(t).map(t=>L(((E.products||{})[t.product_id]||{}).link)).filter(Boolean)),F=!(!window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches),H=t=>(E.products||{})[t.product_id]||null,U={onClipStarted:u?t=>u(t,H(t)):null,onClipWatched:b?(t,e)=>b(t,e,H(t)):null,onProductView:f?t=>f(t,H(t)):null},X=x?{mode:"pinned",firstRows:2}:tt(E.placement),nt=P(v),rt="grid"===X.mode&&nt&&"LI"===nt.items[0].tagName?"li":"div",pt=[],ut=C.map(t=>{const e=I(document,rt,t.key),i=document.createElement("div");i.className="wht-neo-bg",i.setAttribute("data-wht-look",$),i.style.setProperty("display","block","important"),Object.keys(T).forEach(t=>i.style.setProperty(t,T[t])),e.appendChild(i);const n=i.attachShadow({mode:"open"}),a=p(t);n.innerHTML="<style>"+_+'</style><div class="wm-frame" data-wht-look="'+$+'"'+z+">"+g(t,a,E,N,R)+"</div>";const o=n.querySelector(".bg-card");return o._stage=new m(o,a,{data:E,labels:N,storeName:B,setSource:lt,releaseSource:ht,warm:dt,track:U,reducedMotion:F}),pt.push(o._stage),function(t){const e=t=>{const e=t&&t.closest(".bg-card");return e?e._stage:null};t.addEventListener("click",t=>{const i=t.target,n=i.closest&&i.closest(".bg-plink");if(n){if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const i=e(n),a=i?i.clips.findIndex(t=>t.product_id===n.getAttribute("data-pid")):-1;if(a<0)return;return t.preventDefault(),void i.watch(a)}const a=i.closest&&i.closest("[data-view]");if(a){const t=e(a),i=t&&t.clips.find(t=>t.product_id===a.getAttribute("data-view"));return void(i&&t.opts.track&&t.opts.track.onProductView&&t.opts.track.onProductView(i))}const o=i.closest&&i.closest("[data-tile],[data-act]"),s=e(o);if(!s)return;if(o.hasAttribute("data-tile")&&i.closest(".bg-stage"))return;const r=o.getAttribute("data-act");if(o.hasAttribute("data-tile"))s.replay(Number(o.getAttribute("data-tile")));else if("play"===r)s.toggle();else if("mute"===r)s.mute();else if("prev"===r)s.step(-1);else if("next"===r)s.step(1);else if("more"===r){const t=o.closest(".bg-text").classList.toggle("open");o.textContent=t?s.labels.showLess:s.labels.readMore,o.setAttribute("aria-expanded",String(t))}}),t.addEventListener("keydown",t=>{const e=t.target.closest&&t.target.closest(".bg-tile-main"),i={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1}[t.key];if(!e||!i)return;t.preventDefault();const n=Array.from(e.closest(".bg-rail").querySelectorAll(".bg-tile-main"));n[(n.indexOf(e)+i+n.length)%n.length].focus()}),[["mouseover",!0],["mouseout",!1],["focusin",!0],["focusout",!1]].forEach(([e,i])=>{t.addEventListener(e,t=>{const e=t.target.closest&&t.target.closest(".bg-plink");e&&e.closest(".bg-card").querySelectorAll(".bg-tile").forEach(t=>{t.getAttribute("data-pid")===e.getAttribute("data-pid")&&t.classList.toggle("hl",i)})})})}(n),e});let gt="block"===l?e:null,bt=null;"above"!==X.mode&&"below"!==X.mode||x||!nt||(bt=document.createElement("div"),bt.setAttribute("data-wht-bg-around",X.mode),nt.grid.parentElement.insertBefore(bt,"above"===X.mode?nt.grid:nt.grid.nextSibling),gt=bt);let ft=!1,mt=null;const yt=W({slots:ut,anchor:gt,mode:"grid"===X.mode?"grid":"anchor",firstRows:k?k.first:X.firstRows,everyRows:k?k.every:K,minBefore:k?0:w,doc:v,slotProducts:y?null:D,isFiltered:y?null:()=>function(t){try{return Array.from(new URLSearchParams(t||"").entries()).some(([t,e])=>0===t.indexOf("filter.")&&""!==e)}catch(xt){return!1}}(window.location.search),onSwap:(t,e)=>{mt&&(mt.unobserve(t),mt.observe(e))}});return"none"===yt.placedIn()?(yt.stop(),pt.forEach(t=>t.destroy()),!1):("function"===typeof IntersectionObserver?(mt=new IntersectionObserver(t=>t.forEach(t=>{const e=pt[ut.indexOf(t.target)];e&&(t.isIntersecting&&t.intersectionRatio>=.25&&!ft&&(ft=!0,h&&h()),t.isIntersecting&&t.intersectionRatio>=.5?e.play():e.leave())}),{threshold:[0,.25,.5]}),ut.forEach(t=>mt.observe(t))):(h&&h(),pt.forEach(t=>t.play())),window.__whtBuyingGuide={mode:l,look:$,collectionId:String(s),placer:yt,io:mt,stages:pt,slots:ut,around:bt,placedIn:()=>yt.placedIn()},"block"===l&&e&&(e.style.opacity="1",e.removeAttribute("data-shimmer-active")),!0)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[9507],{1752:function(t,e,n){n.r(e),n.d(e,{CRITICAL_CSS:function(){return W},layoutOption:function(){return j},layoutVars:function(){return S},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 m(t,e,n,a){if(!(e>0&&n>0))return;const o=Math.min(16/9,Math.max(9/16,e/n));t.style.aspectRatio=String(o);const r=o>1.05?"wide":o>.7?"tall":"portrait";t.setAttribute("data-wht-ar",r),a&&a(r)}function f(t){return p(t.start)+(null!=t.end?"\u2013"+p(t.end):"")}const b=new Set;if("undefined"!==typeof document&&document.addEventListener){const t=()=>b.forEach(t=>t());document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&t()}),"undefined"!==typeof window&&window.addEventListener("pagehide",t)}function y(t,e,a,c,p,v,w){const f=u(t,"div","wht-neo-va-stage"),y=u(t,"video","wht-neo-va-video");y.setAttribute("playsinline",""),y.setAttribute("muted",""),y.muted=!0,y.preload="none",e.length>1&&f.setAttribute("data-wht-multi","");let x=!1;const C=()=>{!x&&e[0]&&(x=!0,e[0].poster&&(y.setAttribute("poster",e[0].poster),function(t,e,n,a){const o=u(t,"img");o.decoding="async",o.addEventListener("load",()=>{e.hasAttribute("data-wht-ar-media")||m(e,o.naturalWidth,o.naturalHeight,a)}),o.src=n}(t,f,e[0].poster,c)))};let k=null,A=null;y.addEventListener("loadedmetadata",()=>{f.setAttribute("data-wht-ar-media",""),m(f,y.videoWidth,y.videoHeight,c)});const _=u(t,"div","wht-neo-va-progress"),z=e.reduce((t,e)=>t+Math.max(1,(null!=e.end?e.end:e.start+6)-e.start),0),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)/z);const i=u(t,"i","");return r.appendChild(i),_.appendChild(r),r.addEventListener("click",t=>{t.stopPropagation(),et(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 S=(e,n,a)=>{const o=u(t,"button","wht-neo-va-nav");return o.type="button",o.setAttribute("data-wht-dir",e),o.setAttribute("aria-label",a),o.appendChild(g(t,n)),o},L=S("prev",s,a.prev),M=S("next",l,a.next),j=u(t,"button","wht-neo-va-toggle");j.type="button",j.setAttribute("aria-label",a.pause),j.appendChild(g(t,d));const q=u(t,"span","wht-neo-va-who",""),R=u(t,"div","wht-neo-va-stage-by"),P=u(t,"span","wht-neo-va-stage-by-avatar",""),B=u(t,"span","wht-neo-va-stage-by-handle","");R.appendChild(P),R.appendChild(B);const O=t=>{q.textContent=t.source.handle?"@"+t.source.handle:"",R.hidden=!t.source.handle,B.textContent=t.source.handle?"@"+t.source.handle:"",P.textContent=t.source.handle.charAt(0).toUpperCase()};e[0]&&O(e[0]);const V=u(t,"button","wht-neo-va-stage-play");V.type="button",V.setAttribute("aria-label",a.play),V.appendChild(g(t,o)),f.appendChild(y),f.appendChild(_),f.appendChild(R),f.appendChild(q),e.length>1&&(f.appendChild(L),f.appendChild(M)),f.appendChild(j),f.appendChild(I),f.appendChild(V);let T=-1,W=null,F=!1,D=!1,N=!1,K=!1,$=!1,H="";const U="function"===typeof IntersectionObserver,J=()=>{I.replaceChildren(g(t,y.muted?i:r)),I.setAttribute("aria-label",y.muted?a.unmute:a.mute),I.setAttribute("aria-pressed",y.muted?"false":"true")},G=()=>{w&&(y.muted=!w.on),J()};w&&(w.listeners.push(G),G());let Y=0,Z=null,X=null;const Q=()=>{Z&&Number.isFinite(y.duration)&&y.duration>0&&(X=Math.round(10*y.duration)/10)};y.addEventListener("durationchange",Q);const tt=()=>{if(!Y||!Z)return;const t=(Date.now()-Y)/1e3,e=Z,n=X;Y=0,Z=null,X=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})},et=t=>{if(!e.length)return;F=!0,D=!1,N=!0,T=(t%e.length+e.length)%e.length;const a=W;if(W=e[T],Z&&a&&a!==W){const t=!y.paused&&(W.stream||W.url)===H;tt(),t&&(Y=Date.now(),Z=W,Q())}O(W),f.setAttribute("data-wht-clip",String(T)),E.forEach((t,e)=>{t.style.width=e<T?"100%":"0"}),C();const o=W,r=o.stream||o.url,i=()=>{if(W===o)try{y.currentTime=o.start}catch(t){}},s=()=>{if(W!==o)return;const t=y.play();t&&t.catch&&t.catch(()=>{})},d=t=>{if(W===o){if(t||y.readyState<1)return y.addEventListener("loadedmetadata",()=>{i(),s()},{once:!0}),void(t||s());i(),s()}};if(r!==H){H=r;const t=(null!=o.end?o.end:o.start+12)-o.start;l=e=>{W===o&&(e.attachSource(y,r,e.PRIORITY.ACTIVE,{bufferAhead:Math.max(6,Math.min(15,t+4))}),d(!0))},k?l(k):(A||(A=Promise.all([n.e(1296,"high"),n.e(4071,"high")]).then(n.bind(n,725)).then(t=>(k=t,t))),A.then(l).catch(()=>{}))}else d(!1);var l;p&&p(T)},nt=()=>{const t=y.play();t&&t.catch&&t.catch(()=>{})},at=()=>{D=!0;try{y.pause()}catch(t){}};U&&(new IntersectionObserver(t=>{$=t.some(t=>t.isIntersecting),$&&N&&C()},{rootMargin:"600px 0px"}).observe(f),new IntersectionObserver(t=>{K=t.some(t=>t.isIntersecting&&t.intersectionRatio>=.25),N&&(!K||D||h?K||(()=>{if(F&&!y.paused)try{y.pause()}catch(t){}})():F?nt():et(0))},{threshold:[0,.25,.5]}).observe(f));const ot=e=>{j.replaceChildren(g(t,e?d:o)),j.setAttribute("aria-label",e?a.pause:a.play)};b.add(()=>{const t=Z&&!y.paused;tt(),t&&(Y=Date.now(),Z=W,Q())}),y.addEventListener("playing",()=>{f.setAttribute("data-wht-playing",""),ot(!0),W&&(Z&&Z!==W&&tt(),Y||(Y=Date.now(),Z=W,Q()),!v||!v.onView||null==W.eventId||v.viewed&&v.viewed.has(W.eventId)||(v.viewed&&v.viewed.add(W.eventId),v.onView(W)))}),y.addEventListener("pause",()=>{f.removeAttribute("data-wht-playing"),ot(!1),tt()}),y.addEventListener("emptied",()=>{f.removeAttribute("data-wht-playing"),ot(!1),tt()}),j.addEventListener("click",t=>{t.stopPropagation(),F?y.paused?(D=!1,nt()):at():et(0)}),V.addEventListener("click",t=>{t.stopPropagation(),F?(D=!1,nt()):et(0)}),y.addEventListener("timeupdate",()=>{if(!W)return;const t=null!=W.end?W.end:y.duration||0,e=Math.max(.1,t-W.start);E[T].style.width=Math.max(0,Math.min(100,(y.currentTime-W.start)/e*100))+"%",null!=W.end&&y.currentTime>=W.end&&et(T+1)}),y.addEventListener("ended",()=>et(T+1));I.addEventListener("click",t=>{t.stopPropagation(),(()=>{if(!w)return y.muted=!y.muted,void J();w.on=y.muted,w.listeners.forEach(t=>t())})()}),L.addEventListener("click",t=>{t.stopPropagation(),et(T-1)}),M.addEventListener("click",t=>{t.stopPropagation(),et(T+1)}),y.addEventListener("click",t=>{if(!F)return void et(0);const n=y.getBoundingClientRect(),a=(t.clientX-n.left)/Math.max(1,n.width);e.length>1&&a<.22?et(T-1):e.length>1&&a>.78?et(T+1):y.paused?(D=!1,nt()):at()}),f.addEventListener("keydown",t=>{"ArrowRight"===t.key&&e.length>1?(t.preventDefault(),et(T+1)):"ArrowLeft"===t.key&&e.length>1?(t.preventDefault(),et(T-1)):" "===t.key&&F&&(t.preventDefault(),y.paused?(D=!1,nt()):at())});return{element:f,play:et,prime:C,start:()=>{N=!0,D=!1,U||(K=$=f.isConnected),$&&C(),!h&&K&&f.isConnected&&(F?nt():et(T<0?0:T))},pause:()=>{if(N=!1,F)try{y.pause()}catch(t){}},index:()=>T}}const x={eyebrow:"Shopper questions",title:"What the videos show",clips:t=>1===t?"1 clip":t+" clips",unmute:"Tap for sound",mute:"Mute",play:"Play",pause:"Pause",prev:"Previous moment",next:"Next moment",paid:"Paid partnership",views:"views",likes:"likes",viewPost:"View the original post",moment:(t,e)=>"Moment "+t+" of "+e};function C(t,e,n={}){const a=n.track?{onView:n.track.onView,onWatched:n.track.onWatched,viewed:new Set}:null,r={on:!1,listeners:[]},i=n.events||{},s=e&&e.sources||{},d=(e&&Array.isArray(e.sections)?e.sections:[]).map(t=>({label:String(t&&(t.label||t.context)||"").trim(),entries:(t&&t.entries||[]).filter(t=>t&&t.title)})).filter(t=>t.label&&t.entries.length);if(!d.length)return null;const l=Object.assign({},x,n.labels||{}),h="wht-va-"+(n.instanceKey||"r"),p=u(t,"section","wht-neo-va");p.setAttribute("data-wht-role","videoAnswers"),n.shopId&&p.setAttribute("data-wht-shop",String(n.shopId)),p.setAttribute("data-wht-widget",n.widgetKey||"wgt_default"),n.instanceKey&&p.setAttribute("data-wht-instance",n.instanceKey),p.setAttribute("data-wht-look",n.look||"a");const m="stacked"===n.layout;p.setAttribute("data-wht-layout",m?"stacked":"tabs");const b=u(t,"header","wht-neo-va-head");l.eyebrow&&b.appendChild(u(t,"p","wht-neo-va-eyebrow",l.eyebrow)),l.title&&b.appendChild(u(t,"h3","wht-neo-va-title",l.title)),l.eyebrow||l.title||(b.hidden=!0),p.appendChild(b);const C=m?null:u(t,"div","wht-neo-va-tabs");C&&(C.setAttribute("role","tablist"),p.appendChild(C));const k=u(t,"div","wht-neo-va-sections");p.appendChild(k);const A=[],_=t=>A.forEach(e=>{e!==t&&e.pause()});let z=null;const E=[];if(d.forEach((e,n)=>{const d=u(t,"div","wht-neo-va-section");d.id=h+"-p"+n,d.setAttribute("data-wht-section",e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-"));let p=null;if(m){const a=u(t,"h4","wht-neo-va-section-label");a.id=h+"-t"+n,a.appendChild(u(t,"span","wht-neo-va-section-name",e.label)),a.appendChild(u(t,"span","wht-neo-va-section-n",String(e.entries.length))),d.setAttribute("role","region"),d.setAttribute("aria-labelledby",a.id),d.appendChild(a)}else d.setAttribute("role","tabpanel"),p=u(t,"button","wht-neo-va-tab"),p.type="button",p.id=h+"-t"+n,p.setAttribute("role","tab"),p.setAttribute("aria-controls",d.id),d.setAttribute("aria-labelledby",p.id),p.appendChild(u(t,"span","wht-neo-va-tab-label",e.label)),p.appendChild(u(t,"span","wht-neo-va-tab-n",String(e.entries.length))),C.appendChild(p);const b=[];e.entries.forEach((e,p)=>{const m=function(t,e,n){const a=[];for(const o of t&&t.evidence||[]){if(!o||!o.video_url)continue;const t=String(o.event_id),r=e&&e[t]||{},i=c(o.start),s=c(o.end),d=n&&n[t]||null;a.push({url:o.video_url,stream:w(r),eventId:t,event:e&&e[t]?e[t]:null,start:null==i?0:i,end:null!=s&&null!=i&&s>i?s:null,label:String(o.label||"").trim(),poster:r.poster_image||"",source:d?{handle:String(d.handle||"").replace(/^@/,""),type:"creator"===d.type?"creator":"brand",paid:!!d.paid,views:d.views,likes:d.likes,comments:d.comments,posted:d.posted||null,url:d.post_url||null}:{handle:"",type:"brand",paid:!1,views:r.total_views,likes:null,comments:null,posted:null,url:null}})}return a}(e,i,s),x=u(t,"div","wht-neo-va-entry"),C=h+"-"+n+"-"+p,k=u(t,"button","wht-neo-va-q");k.type="button",k.setAttribute("aria-controls",C),k.appendChild(u(t,"span","wht-neo-va-qtext",e.title)),m.length&&k.appendChild(u(t,"span","wht-neo-va-qmeta",l.clips(m.length))),k.appendChild(u(t,"span","wht-neo-va-chev",""));const E=u(t,"div","wht-neo-va-a");E.id=C;const I=u(t,"div","wht-neo-va-a-in");E.appendChild(I);const S=u(t,"div","wht-neo-va-text");e.body&&S.appendChild(u(t,"p","wht-neo-va-body",e.body)),I.appendChild(S);let L=null;if(m.length){const e=function(t,e,n){const a=u(t,"div","wht-neo-va-source"),o=u(t,"span","wht-neo-va-avatar",""),r=u(t,"div","wht-neo-va-source-main"),i=u(t,"a","wht-neo-va-handle",""),s=u(t,"span","wht-neo-va-tag",n.paid),d=u(t,"span","wht-neo-va-stats","");r.appendChild(i),r.appendChild(s),r.appendChild(d),a.appendChild(o),a.appendChild(r);const l=t=>{const r=e[t];if(!r)return;const l=r.source,h=!l.handle;a.setAttribute("data-wht-uncredited",h?"true":"false"),a.setAttribute("data-wht-type",l.type),a.setAttribute("data-wht-paid",l.paid?"true":"false"),o.hidden=h,i.hidden=h,i.textContent=l.handle?"@"+l.handle:"",l.url?(i.href=l.url,i.target="_blank",i.rel="noopener",i.title=n.viewPost):(i.removeAttribute("href"),i.removeAttribute("target"),i.removeAttribute("title")),s.hidden=!l.paid,o.textContent=l.handle.charAt(0).toUpperCase();const c=v(l.views),p=v(l.likes);d.textContent=[c&&c+" "+n.views,p&&p+" "+n.likes].filter(Boolean).join(" \xb7 "),d.hidden=!d.textContent,a.hidden=h&&d.hidden};return l(0),{element:a,show:l}}(t,m,l),n=u(t,"div","wht-neo-va-clips");m.length<2&&(n.hidden=!0);const i=m.map((e,a)=>{const r=u(t,"button","wht-neo-va-clip");return r.type="button",r.appendChild(g(t,o,"wht-neo-va-clip-icon")),e.label?r.appendChild(u(t,"span","wht-neo-va-clip-label",e.label)):r.appendChild(u(t,"span","wht-neo-va-clip-time",f(e))),r.title=f(e),r.setAttribute("aria-label",l.play+" "+(e.label||f(e))),r.addEventListener("click",()=>{_(L),L.play(a)}),n.appendChild(r),r}),s=t=>i.forEach((e,n)=>{n===t?e.setAttribute("data-wht-current",""):e.removeAttribute("data-wht-current")});s(0),L=y(t,m,l,t=>E.setAttribute("data-wht-ar",t),t=>{e.show(t),s(t)},a,r),A.push(L),I.appendChild(L.element),I.appendChild(n),I.appendChild(e.element)}const M=t=>{t?(z&&z.entry!==x&&z.close(),z={entry:x,close:()=>M(!1)},x.setAttribute("data-wht-open",""),L&&(_(L),L.start())):(z&&z.entry===x&&(z=null),x.removeAttribute("data-wht-open"),L&&L.pause()),k.setAttribute("aria-expanded",t?"true":"false")};k.addEventListener("click",()=>M(!x.hasAttribute("data-wht-open"))),M(!1),b.push(M),x.appendChild(k),x.appendChild(E),d.appendChild(x)}),k.appendChild(d),E.push({tab:p,sec:d,openFirst:()=>b[0](!0)})}),m)return E[0].openFirst(),p;const I=(t,e)=>{E.forEach((e,n)=>{const a=n===t;e.tab.setAttribute("aria-selected",a?"true":"false"),e.tab.tabIndex=a?0:-1,a?e.tab.setAttribute("data-wht-current",""):e.tab.removeAttribute("data-wht-current"),e.sec.hidden=!a}),_(null),E[t].openFirst(),e&&E[t].tab.focus(),C.scrollTo&&C.scrollWidth>C.clientWidth&&C.scrollTo({left:E[t].tab.offsetLeft-(C.clientWidth-E[t].tab.offsetWidth)/2,behavior:"smooth"})};return E.forEach((t,e)=>t.tab.addEventListener("click",()=>{t.sec.hidden&&I(e,!1)})),C.addEventListener("keydown",t=>{const e=E.findIndex(t=>!t.sec.hidden),n="ArrowRight"===t.key?1:"ArrowLeft"===t.key?-1:0;n&&(t.preventDefault(),I((e+n+E.length)%E.length,!0))}),I(0,!1),p}var k=n(1839),A=n(9439),_=n(3959),z=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 S(t){const e=(t,e,n)=>{const a=Number(t);return Number.isFinite(a)&&""!==t&&null!==t?Math.min(n,Math.max(e,Math.round(a))):null},n=e(t&&t.spaceAbove,0,200),a=e(t&&t.spaceBelow,0,200),o=e(t&&t.maxWidth,320,2e3),r={};return null===n&&null===a||(r["--wht-neo-va-margin"]=(null!==n?n:24)+"px auto "+(null!==a?a:24)+"px"),null!==o&&(r["--wht-neo-va-maxw"]=o+"px"),r}const L=["tabs","stacked"],M={j:"tabs"};function j(t,e){const n=String(e||M[t]||"stacked").toLowerCase();return L.includes(n)?n:"stacked"}function q(t,e){const n=t&&t[e];return"string"===typeof n&&n.trim()?n.trim():null}const R="wht-neo-va-critical",P="wht-neo-va-skin",B="videoAnswers",O=["a","b","c","d","e","f","g","h","i","j"],V=["a","j"],T={b:"family=Instrument+Serif",c:"family=Geist:wght@400;500;600",d:"family=Barlow+Condensed:wght@500;600;700"};const 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-source-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0}\n.wht-neo-va-handle{text-decoration:none;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}\n.wht-neo-va-handle[href]{cursor:pointer}\n.wht-neo-va-tag{display:inline-block;white-space:nowrap}\n.wht-neo-va-stats{white-space:nowrap;font-variant-numeric:tabular-nums}\n.wht-neo-va-stage{grid-area:stage;position:relative;width:100%;margin-top:1em;aspect-ratio:9/16;overflow:hidden;background:#111}\n.wht-neo-va-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;pointer-events:none;background:var(--wht-neo-va-stage-scrim,linear-gradient(180deg,transparent,rgba(0,0,0,.5)))}\n.wht-neo-va-video{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}\n.wht-neo-va-progress{position:absolute;left:8px;right:8px;top:8px;z-index:2;display:flex;gap:3px;opacity:0;transition:opacity .2s}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-progress{opacity:1}\n.wht-neo-va-seg{position:relative;display:block;flex:1 1 0;height:3px;padding:0;margin:0;border:0;border-radius:2px;overflow:hidden;cursor:pointer}\n.wht-neo-va-seg i{display:block;height:100%;width:0}\n.wht-neo-va-mute{position:absolute;right:10px;bottom:10px;z-index:2;display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-mute{display:inline-flex}\n.wht-neo-va-mute svg{width:18px;height:18px}\n.wht-neo-va-toggle{position:absolute;right:52px;bottom:10px;z-index:2;display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-toggle{display:inline-flex}\n.wht-neo-va-toggle svg{width:16px;height:16px}\n.wht-neo-va-stage[data-wht-clip] .wht-neo-va-who{max-width:calc(100% - 110px)}\n.wht-neo-va-nav{position:absolute;top:50%;z-index:2;display:none;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;transform:translateY(-50%);cursor:pointer;color:#fff;opacity:0;transition:opacity .2s}\n.wht-neo-va-nav svg{width:18px;height:18px}\n.wht-neo-va-nav[data-wht-dir="prev"]{left:8px}\n.wht-neo-va-nav[data-wht-dir="next"]{right:8px}\n.wht-neo-va-stage[data-wht-multi][data-wht-clip] .wht-neo-va-nav{display:inline-flex}\n.wht-neo-va-stage:hover .wht-neo-va-nav,.wht-neo-va-stage:focus-within .wht-neo-va-nav{opacity:1}\n@media (hover:none){.wht-neo-va-stage[data-wht-multi][data-wht-clip] .wht-neo-va-nav{opacity:.85}}\n.wht-neo-va-who{position:absolute;left:12px;bottom:12px;z-index:2;max-width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}\n.wht-neo-va-stage-play{position:absolute;left:50%;top:50%;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer}\n.wht-neo-va-stage-play svg{width:22px;height:22px;margin-left:2px}\n.wht-neo-va-stage[data-wht-playing] .wht-neo-va-stage-play{display:none}\n.wht-neo-va-stage-by{position:absolute;left:12px;right:12px;top:22px;z-index:2;display:none;align-items:center;gap:8px;min-width:0;pointer-events:none}\n.wht-neo-va-stage-by-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%}\n.wht-neo-va-stage-by-handle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n@container (max-width:559.98px){.wht-neo-va-head,.wht-neo-va-tabs,.wht-neo-va-sections{padding-inline:var(--wht-neo-va-gutter,16px)}.wht-neo-va-entry+.wht-neo-va-entry{margin-top:var(--wht-neo-va-card-gap,12px)}.wht-neo-va-q{padding:var(--wht-neo-va-card-pad-y,18px) var(--wht-neo-va-card-pad-x,18px)}.wht-neo-va-a-in{padding:0 var(--wht-neo-va-card-pad-x,18px)}.wht-neo-va-entry[data-wht-open] .wht-neo-va-a-in{padding-bottom:var(--wht-neo-va-card-pad-y,18px)}.wht-neo-va-stage{margin-top:1.25em}.wht-neo-va-a:not([data-wht-ar="wide"]) .wht-neo-va-stage{aspect-ratio:9/16!important;width:min(100%,calc(var(--wht-neo-va-stage-h-max,560px) * 9 / 16));margin-inline:auto}.wht-neo-va-clips{margin-top:1.25em}.wht-neo-va-source{margin-top:1.25em}}\n@container (min-width:560px){.wht-neo-va-head,.wht-neo-va-tabs,.wht-neo-va-sections{font-size:var(--wht-neo-va-font-size-wide,1.07em)}.wht-neo-va-entry+.wht-neo-va-entry{margin-top:var(--wht-neo-va-card-gap,12px)}.wht-neo-va-q{padding:var(--wht-neo-va-card-pad-y,24px) var(--wht-neo-va-card-pad-x,28px)}.wht-neo-va-a-in{padding:0 var(--wht-neo-va-card-pad-x,28px)}.wht-neo-va-entry[data-wht-open] .wht-neo-va-a-in{padding-bottom:var(--wht-neo-va-card-pad-y,28px)}.wht-neo-va-title{font-size:var(--wht-neo-va-title-size-wide,2.4em)}.wht-neo-va-head{margin-bottom:1.6em}.wht-neo-va-tabs{gap:2px;margin-bottom:2.4em}.wht-neo-va-qmeta{display:inline}.wht-neo-va-entry[data-wht-open] .wht-neo-va-qmeta{display:none}.wht-neo-va-source-main{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:.2em .8em}.wht-neo-va-a-in{grid-template-columns:minmax(0,1fr) var(--wht-neo-va-stage-w,250px);grid-template-rows:auto auto 1fr;grid-template-areas:"text stage" "clips stage" "source stage"}.wht-neo-va-a-in:not(:has(.wht-neo-va-stage)){grid-template-columns:minmax(0,1fr)}.wht-neo-va-stage{margin-top:0}.wht-neo-va-text{max-width:var(--wht-neo-va-measure,62ch)}.wht-neo-va-a[data-wht-ar="wide"] .wht-neo-va-a-in{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"text" "stage" "clips" "source"}.wht-neo-va-a[data-wht-ar="wide"] .wht-neo-va-stage{width:min(100%,var(--wht-neo-va-stage-w-max,560px));margin-top:1.1em}}\n@media (prefers-reduced-motion:reduce){.wht-neo-va-chev::before,.wht-neo-va-progress,.wht-neo-va-a,.wht-neo-va-a-in{transition:none}}\n';function 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,k.RO)(t,B,e)||{},o=String(n||a.skin||"a").toLowerCase(),r=O.includes(o)?o:"a",i=a.customCss;let s="";"string"===typeof i?s=i:i&&"object"===typeof i&&"string"===typeof i[r]&&(s=i[r]);const d=V.includes(r)?"":await(0,z.P)(B,r);return{look:r,stack: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,k.fz)(R,W);let u=null,g=null;try{const t=new URLSearchParams(window.location.search);u=t.get("neoskin"),g=t.get("neolayout")}catch(H){}const m=i||!r?"wgt_default":r,f=["wgt_default"!==m?m:null,s].filter(Boolean),{look:b,stack:y}=await K(d,f,u);if(w())return!0;let x;!function(t){const e=T[t];if(!e||document.getElementById("wht-neo-va-font-"+t))return;const n=document.createElement("link");n.id="wht-neo-va-font-"+t,n.rel="stylesheet",n.href="https://fonts.googleapis.com/css2?"+e+"&display=swap",document.head.appendChild(n)}(b),s?(0,k.fz)(P+"-"+s,(0,k.GJ)(y,':where([data-wht-instance="'+s+'"])')):(0,k.fz)(P,y);try{x=await(0,I.Zq)(N({shopId:a,productId:o,hostname:window.location.hostname})).then(t=>t.json())}catch(H){x=null}if(w())return!0;let z=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)&&(z=t)}}catch(H){}let E=!1;if(!z&&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,z=t.video_sense,E=!0)}catch(H){}if(w())return!0}if(!z)return!1;const L={};for(const C of[].concat(x&&x.events||[],x&&x.related_events||[],x&&x.all_events||[]))C&&null!=C.event_id&&!L[String(C.event_id)]&&(L[String(C.event_id)]=C);const M=(0,k.RO)(d,B,f)||{},O=q(M,"title"),V=q(M,"eyebrow"),F=!(M&&!0===M.hideEyebrow),D=C(document,z,{track:E||!c&&!h?null:{onView:t=>{h&&h(t)},onWatched:(t,e)=>{c&&c(t,e)}},shopId:a,widgetKey:m,instanceKey:s,look:b,layout:j(b,g),events:L,labels:{eyebrow:F?null!==V?V:(0,_.rB)("video_answers_eyebrow","Shopper questions"):"",title:null!==O?O:(0,_.rB)("video_answers_title","What the videos show"),unmute:(0,_.rB)("video_answers_unmute","Tap for sound"),mute:(0,_.rB)("video_answers_mute","Mute"),play:(0,_.rB)("video_answers_play","Play"),pause:(0,_.rB)("video_answers_pause","Pause"),paid:(0,_.rB)("video_answers_paid","Paid partnership"),viewPost:(0,_.rB)("video_answers_view_post","View the original post")}});if(!D)return!1;const $=S(M);if(Object.keys($).forEach(t=>D.style.setProperty(t,$[t])),E){const t=document.createElement("div");t.className="wht-neo-va-sample-note",t.setAttribute("role","note"),t.style.cssText="margin:0 0 16px;padding:10px 14px;border:1px solid #F2D675;border-radius:8px;background:#FFF8E1;color:#5F4B00;font:500 13px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left",t.textContent=(0,_.rB)("video_answers_sample_note","Sample preview. This product has no Video Answers to show yet, so these questions and clips are from the Whatmore demo store. Shoppers only see this block on products that have their own answers."),D.insertBefore(t,D.firstChild),D.setAttribute("data-wht-sample","")}if(l&&!E)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(D)}else l();return s&&e.setAttribute("data-wht-instance",s),(0,A.Vo)(D,n||e),e.replaceChildren(D),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}})}}]);
|