1import{u as J,a as Q,D as W,p as X,c as Y}from"./ym0sHZPk.js";import{c as Z}from"./BM45Ncu5.js";import{d as ee,q as ae,c as t,s as F,v as te,b as a,F as m,h as se,m as r,f as o,a6 as oe,i as ne,p as w,t as d,r as f,g as x,M as re,n as le,e as ie,o as e,j as ue}from"./CmM1QDzE.js";const ce={class:"season-hero-ticker__track","aria-hidden":"true"},de={class:"season-hero","data-season":"halloween-2026"},_e={class:"season-hero__media"},he=["src"],ve=["src"],me={class:"season-hero__inner"},pe=["aria-label"],ye={key:0,class:"season-hero__term-path"},ke={class:"season-hero__term-text"},fe={key:1,class:"season-hero__countdown"},be={key:1,class:"season-hero__eyebrow"},ge={class:"season-hero__headline-wrap"},Te=["innerHTML"],Le={key:0,class:"season-hero__sr"},we=["innerHTML"],xe=["innerHTML"],Se={key:2,class:"season-hero__body"},Ee={key:0,class:"season-hero__alert"},Ce={key:3,class:"season-hero__cta-row"},Ae={key:4,class:"season-hero__stats"},De={key:0,class:"season-hero__stat-sep","aria-hidden":"true"},He={class:"season-hero__stat"},Me={key:0,class:"season-hero__stars","aria-hidden":"true"},Ne="https://tickets.beatthebomb.com/",Ue=ee({__name:"SeasonalHero",props:{heroData:{},locationSlug:{},locationName:{},checkoutUrl:{}},setup(S){const _=S,{cmsAttr:P}=Z(),V=ae(),s=t(()=>X(_.heroData?.theme_content)),E=t(()=>s.value.eyebrow||""),C=t(()=>s.value.terminalPath||"btb://system-check"),v=t(()=>Array.isArray(s.value.terminalLines)?s.value.terminalLines:[]),j=t(()=>s.value.terminalAriaLabel||v.value.map(n=>n.text).join(". ")),A=t(()=>s.value.body?"":s.value.alertLabel||(s.value.alertText?"ALERT:":"")),D=t(()=>s.value.body||s.value.alertText||""),b=t(()=>Array.isArray(s.value.marquee)?s.value.marquee:[]),H=t(()=>s.value.srSuffix||(_.locationName?`at Beat The Bomb ${_.locationName}`:"")),h=t(()=>s.value.cta?.href||_.checkoutUrl||Ne),M=t(()=>Array.isArray(s.value.stats)?s.value.stats:_.heroData?.theme==="halloween-2026"?Y:[]),N=t(()=>s.value.cta?.label||"Book now"),p=t(()=>s.value.countdownTarget||""),O=p.value?J(p.value):null,U=t(()=>O?.label.value||""),B=t(()=>{const n=v.value[v.value.length-1];return!!p.value&&!!n&&/SELF-DESTRUCTS IN\s*$/.test(n.text||"")}),z=t(()=>v.value.map((n,l)=>B.value&&l===v.value.length-1?{...n,text:`${String(n.text).trimEnd()} ${U.value}`}:{...n,text:String(n.text)})),{typedLines:G,done:K}=Q(z),g=t(()=>_.heroData?.seasonal_headline||"Haunted Mission"),$=t(()=>_.heroData?.background_image_url||""),I=t(()=>_.heroData?.background_video_url||"");function R(){V.trackGA4Event("select_content",{content_type:"season_hero_cta",item_id:"halloween-2026"})}const q=F(null),T=F(!1);return te(()=>{const n=q.value;if(!n)return;let l=!1;const i=()=>{l||(l=!0,n.addEventListener("playing",()=>{T.value=!0},{once:!0}));const c=n.play?.();return c&&typeof c.then=="function"?c:Promise.resolve()};let u=!1,y;const L=["pointerdown","pointermove","touchstart","scroll","keydown"],k=()=>{u||(u=!0,L.forEach(c=>window.removeEventListener(c,k)),clearTimeout(y),i().catch(()=>{u=!1,L.forEach(c=>window.addEventListener(c,k,{passive:!0}))}))};L.forEach(c=>window.addEventListener(c,k,{passive:!0})),y=setTimeout(k,7e3)}),(n,l)=>(e(),a(m,null,[b.value.length?(e(),se(oe(h.value?"a":"div"),{key:0,class:"season-hero-ticker",href:h.value||void 0,"aria-label":h.value?N.value:void 0,"aria-hidden":h.value?void 0:"true",onClick:l[0]||(l[0]=i=>h.value&&R())},{default:ne(()=>[o("div",ce,[(e(),a(m,null,f(2,i=>o("div",{key:i,class:"season-hero-ticker__group"},[(e(!0),a(m,null,f(b.value.concat(b.value),(u,y)=>(e(),a("span",{key:`${i}-${y}`},d(u),1))),128))])),64))])]),_:1},8,["href","aria-label","aria-hidden"])):r("",!0),o("section",de,[o("div",_e,[$.value?(e(),a("img",{key:0,src:$.value,alt:"","aria-hidden":"true",fetchpriority:"high",class:w(["season-hero__poster",{"is-video-playing":T.value}])},null,10,he)):r("",!0),I.value?(e(),a("video",{key:1,ref_key:"videoRef",ref:q,class:w(["season-hero__video",{"is-playing":T.value}]),muted:"",loop:"",playsinline:"",preload:"none","aria-hidden":"true"},[o("source",{src:I.value,type:"video/mp4"},null,8,ve)],2)):r("",!0)]),l[2]||(l[2]=o("div",{class:"season-hero__overlay","aria-hidden":"true"},null,-1)),l[3]||(l[3]=o("div",{class:"season-hero__texture","aria-hidden":"true"},null,-1)),o("div",me,[v.value.length?(e(),a("div",{key:0,class:"season-hero__terminal","aria-label":j.value},[C.value?(e(),a("div",ye,d(C.value),1)):r("",!0),(e(!0),a(m,null,f(x(G),(i,u)=>(e(),a("div",{key:u,class:w(["season-hero__term-line",i.variant?`season-hero__term-line--${i.variant}`:""]),"aria-hidden":"true"},[o("span",ke,d(i.text),1)],2))),128)),p.value&&!B.value&&x(K)?(e(),a("div",fe,d(U.value),1)):r("",!0),l[1]||(l[1]=o("span",{class:"season-hero__caret","aria-hidden":"true"},null,-1))],8,pe)):r("",!0),E.value?(e(),a("div",be,d(E.value),1)):r("",!0),o("div",ge,[o("h1",re({class:"season-hero__headline"},x(P)("hero_content",S.heroData?.id,"seasonal_headline")),[o("span",{innerHTML:g.value},null,8,Te),H.value?(e(),a("span",Le,d(H.value),1)):r("",!0)],16),o("div",{class:"season-hero__ghost season-hero__ghost--a","aria-hidden":"true",innerHTML:g.value},null,8,we),o("div",{class:"season-hero__ghost season-hero__ghost--b","aria-hidden":"true",innerHTML:g.value},null,8,xe)]),D.value?(e(),a("p",Se,[A.value?(e(),a("span",Ee,d(A.value),1)):r("",!0),le(" "+d(D.value),1)])):r("",!0),h.value?(e(),a("div",Ce,[ie(W,{href:h.value,label:N.value,"btn-class":"season-hero__cta",onClick:R},null,8,["href","label"])])):r("",!0),M.value.length?(e(),a("div",Ae,[(e(!0),a(m,null,f(M.value,(i,u)=>(e(),a(m,{key:u},[u>0?(e(),a("span",De)):r("",!0),o("span",He,[u===0?(e(),a("span",Me,"â
â
â
â
â
")):r("",!0),o("strong",null,d(i.label),1)])],64))),128))])):r("",!0)])])],64))}}),Re=ue(Ue,[["__scopeId","data-v-dbfc6c56"]]);export{Re as S};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.