1import{c as x,d as N}from"./BM45Ncu5.js";import{S as z}from"./BVtc8GeR.js";import{d as F,c as n,a as $,s as O,v as G,h as j,b as l,o as c,m as d,f as e,t as u,M as y,g as k,p as q,F as W,j as Z}from"./CmM1QDzE.js";import"./ym0sHZPk.js";const J={key:0,class:"section_home-video"},K={class:"hero_video"},Q=["data-poster-url","data-video-urls"],X={muted:"",playsinline:"",preload:"none","data-wf-ignore":"true","data-object-fit":"cover"},Y=["src"],ee={class:"hero-content"},oe={class:"glow-text-wrapper"},te={class:"w-embed"},ae={class:"special_heading"},ne={class:"special_heading bg"},ie={class:"section_home-static-hero"},se={class:"hero_video"},re={id:"test-a",class:"hero-content is--location"},ce=["innerHTML"],le={class:"location-hero-sr"},de=["innerHTML"],ue={class:"button-wrapper"},me=["id","href"],he=["src","srcset","alt"],ve=["src"],_e="/media/video/65eb3080d0dc67be30dd0579_665de77cdca167a36aa618f7_hero-v4-web.mp4",pe="/media/video/65eb3080d0dc67be30dd0579_665de77cdca167a36aa618f7_hero-v4-web-poster.webp",be="/media/wf/6728e2e363994d2a5f1c6bb4_Homepage%20Hero%20Post%20Slime%20Bomb-poster-00001.jpg",B="/media/video/6728e2e363994d2a5f1c6bb4_homepage-hero-post-slime-bomb.mp4",ge=F({__name:"LocationHero",props:{location:{},heroData:{}},setup(s){const o=s,{cmsAttr:m}=x(),R=n(()=>o.heroData?.theme==="halloween-2026"),h=n(()=>o.location?.video_url||_e),C=n(()=>pe),E=n(()=>`Beat The Bomb is coming to ${o.location?.name||o.location?.city||""}!`),T=n(()=>o.heroData?.background_image_url||be),v=n(()=>"");$({link:[{rel:"preload",as:"image",...v.value?{imagesrcset:v.value,imagesizes:"100vw"}:{href:T.value},fetchpriority:"high",tagPriority:-95}]});const U=n(()=>{const i=o.location?.name||o.location?.city||"",t=o.heroData?.headline||(i?`${i}'s CRAZIEST TEAM GAME`:"THE WORLD'S CRAZIEST TEAM GAME");return/<[a-z]/i.test(t)?t:t.replace(/:\s+/,": <br>")}),V=new Set([B]),_=n(()=>o.heroData?.background_video_url||B),L=O(null),A=O(!1);G(()=>{let i=!1;const t=()=>{const a=L.value;if(!a)return Promise.resolve();if(V.has(_.value)&&window.matchMedia("(max-width: 767px)").matches){const w=a.querySelector("source"),I=_.value.replace(/\.mp4$/,"-mobile.mp4");w&&w.getAttribute("src")!==I&&(w.setAttribute("src",I),a.load())}i||(i=!0,a.addEventListener("playing",()=>{A.value=!0},{once:!0}));const f=a.play?.();return f&&typeof f.then=="function"?f:Promise.resolve()};let p=!1,b;const g=["pointerdown","pointermove","touchstart","scroll","keydown"],r=()=>{p||(p=!0,g.forEach(a=>window.removeEventListener(a,r)),clearTimeout(b),t().catch(()=>{p=!1,g.forEach(a=>window.addEventListener(a,r,{passive:!0}))}))},P=window.matchMedia("(max-width: 767px)").matches,M=()=>{if(g.forEach(a=>window.addEventListener(a,r,{passive:!0})),P){"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:1500}):b=setTimeout(r,250);return}b=setTimeout(r,7e3)};document.readyState==="complete"?M():window.addEventListener("load",M,{once:!0})});const H=n(()=>o.heroData?.subheadline||""),S=n(()=>o.heroData?.seasonal_headline||""),D=n(()=>N(o.location));return(i,t)=>R.value?(c(),j(z,{key:0,"hero-data":o.heroData,"location-slug":o.location?.slug,"location-name":o.location?.name||o.location?.city,"checkout-url":D.value},null,8,["hero-data","location-slug","location-name","checkout-url"])):(c(),l(W,{key:1},[o.location?.is_coming_soon?(c(),l("section",J,[e("div",K,[h.value?(c(),l("div",{key:0,"data-poster-url":C.value,"data-video-urls":h.value,"data-autoplay":"true","data-loop":"true","data-wf-ignore":"true",class:"hero_bg-video w-background-video w-background-video-atom"},[e("video",X,[e("source",{src:h.value,type:"video/mp4","data-wf-ignore":"true"},null,8,Y)])],8,Q)):d("",!0),e("div",ee,[e("div",oe,[e("div",te,[e("p",ae,u(E.value),1),e("p",ne,u(E.value),1)])]),t[0]||(t[0]=e("div",{class:"padding-top padding-medium"},null,-1)),t[1]||(t[1]=e("a",{href:"#signup",class:"button is-pink-filled w-inline-block w-condition-invisible"},[e("div",null,"Join the waitlist")],-1))])])])):d("",!0),e("section",ie,[e("div",se,[e("div",re,[e("div",null,[e("h1",y({class:"hero-heading location summer2026"},k(m)("hero_content",o.heroData?.id,"headline")),[e("span",{innerHTML:U.value},null,8,ce),e("span",le," at Beat The Bomb "+u(s.location?.name||s.location?.city),1)],16),H.value?(c(),l("div",y({ke
1y:0,class:"hero-heading location summer2026sm"},k(m)("hero_content",o.heroData?.id,"subheadline")),u(H.value),17)):d("",!0),S.value?(c(),l("h2",y({key:1,class:"haunted_heading big",innerHTML:S.value},k(m)("hero_content",o.heroData?.id,"seasonal_headline")),null,16,de)):d("",!0)]),t[3]||(t[3]=e("div",{class:"padding-top padding-medium"},null,-1)),e("div",ue,[e("a",{id:`${s.location?.slug||"location"}-booking`,"data-w-id":"770b26bf-0c86-b1b6-f092-5dbbb7bb3bf2","data-ab":"location-book-now-cta","data-ab-conversion":"book-now",style:{"background-color":"#56b6f9","border-color":"#56b6f9"},href:D.value,class:"button w-inline-block"},[...t[2]||(t[2]=[e("div",null,"Book now",-1)])],8,me)])]),e("img",{src:T.value,srcset:v.value||void 0,sizes:"100vw",width:"1638",height:"1092",alt:`Players in hazmat gear taking on Beat The Bomb ${s.location?.name||s.location?.city||""}`,fetchpriority:"high",decoding:"async",class:"image-9"},null,8,he),e("video",{ref_key:"locationHeroVideoRef",ref:L,class:q(["location-hero-video",{"is-playing":A.value}]),muted:"",loop:"",playsinline:"",preload:"none","aria-hidden":"true"},[e("source",{src:_.value,type:"video/mp4"},null,8,ve)],2)])])],64))}}),Ee=Z(ge,[["__scopeId","data-v-2c5b45cc"]]);export{Ee as default};
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.