PageSourceSearch

https://www.beatthebomb.com/_nuxt/BHGJetSe.js

js beatthebomb.com collected 2026-09-26 03:27:13 UTC 4,221 bytes, 1 lines download raw bytes

1import{d as x,k as M,c as a,a7 as A,q as L,s as p,v as N,J as j,b as d,o as r,m as q,f as s,h as z,i as U,n as I,t as u,a6 as D,A as P,H as V,I as J,D as R,a8 as $,j as F}from"./CmM1QDzE.js";const G="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035 copy.avif",Q="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy-p-500.avif",W="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy-p-800.avif",K="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy-p-1080.avif",X="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy-p-1600.avif",Y="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy-p-2000.avif",Z="/media/wf/667c7c3bb05441bd7d3d10e6_190930_BEAT_THE_BOMB_SHOT_02_035%20copy.avif",ee=Q+" 500w, "+W+" 800w, "+K+" 1080w, "+X+" 1600w, "+Y+" 2000w, "+Z+" 3750w",te={id:"waitlist",class:"section_subscribe"},se=["loading","fetchpriority"],ae={class:"padding-global padding-section-medium"},oe={class:"container-small"},ie={class:"subscribe-component"},ne={class:"klaviyo-embed"},ce={key:0,class:"newsletter_success"},le={class:"success-message"},re=["disabled"],de=["disabled"],ue=x({__name:"NewsletterSignup",props:{block:{},isHomepage:{type:Boolean},eager:{type:Boolean},headingLevel:{}},setup(_){const o=_,f=M(),b=a(()=>{if(typeof o.isHomepage=="boolean")return o.isHomepage;const e=f.path;return e==="/"||e===""||e==="/new_site"||e==="/new_site/"}),h=a(()=>f.path.includes("/locations/")),y=a(()=>!b.value&&!h.value),B=a(()=>o.headingLevel==="h2"||o.headingLevel==="h3"?o.headingLevel:b.value?"h2":"h3"),{identify:T,welcomeMessage:k,isReturningCustomer:E}=A(),{trackingEnabled:v}=L(),w=()=>typeof window>"u"?!1:v.value&&$(),g=a(()=>o.block?.settings||o.block?.content||{}),H=a(()=>g.value.title||"Join the bomb squad"),S=a(()=>g.value.description||"Get exclusive offers, giveaways, birthday gifts, and early access to new experiences. Be the first to know about new games, experiences and exclusive offers."),l=p(""),m=p(!1),i=p(!1),C=a(()=>E.value?k.value||"Welcome back! Check your email for confirmation.":"Thanks for subscribing! Check your email for confirmation."),O=async()=>{if(!(!l.value||i.value)){i.value=!0;try{const t=R().public.cmsApiUrl||"http://localhost:3002";await $fetch(`${t}/public/subscribe`,{method:"POST",body:{email:l.value,source:"newsletter_form"}}),await T(l.value),m.value=!0}catch(e){console.error("Newsletter submit error:",e),m.value=!0}finally{i.value=!1}}};return N(()=>{if(typeof window>"u")return;let e=!1;const t=()=>{if(e||!w())return;if(document.querySelector('script[src*="klaviyo.js"]')){e=!0;return}const c=document.createElement("script");c.async=!0,c.type="text/javascript",c.src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=Q8Ns4x",document.head.appendChild(c),e=!0},n=()=>{e||!w()||("requestIdleCallback"in window?window.requestIdleCallback(t,{timeout:4e3}):setTimeout(t,3e3))};document.readyState==="complete"?n():window.addEventListener("load",n,{once:!0}),window.addEventListener("btb:consent-updated",n),j(v,c=>{c&&n()})}),(e,t)=>(r(),d("section",te,[y.value?(r(),d("img",{key:0,src:G,loading:_.eager?void 0:"lazy",fetchpriority:_.eager?"high":void 0,sizes:"100vw",srcset:ee,alt:"People enjoying the lazer maze Beat The Bomb",class:"subscribe-image"},null,8,se)):q("",!0),s("div",ae,[s("div",oe,[s("div",ie,[(r(),z(D(B.value),{class:"heading-style-h2"},{default:U(()=>[I(u(H.value),1)]),_:1})),t[2]||(t[2]=s("div",{class:"padding-top padding-small"},null,-1)),s("div",ne,[s("b",null,u(S.value),1),m.value?(r(),d("div",ce,[s("div",le,u(C.value),1)])):(r(),d("form",{key:1,class:"newsletter_form",onSubmit:P(O,["prevent"])},[V(s("input",{"onUpdate:modelValue":t[0]||(t[0]=n=>l.value=n),type:"email",class:"newsletter_text-field",placeholder:"Enter your email","aria-label":"Email address",required:"",disabled:i.value},null,8,re),[[J,l.value]]),s("button",{type:"submit",class:"newsletter_submit",disabled:i.value},u(i.value?"Loading...":"Sign Up"),9,de)],32)),t[1]||(t[1]=s("div",{class:"klaviyo-form-U7zUJF",style:{display:"none"}},null,-1))])])])])]))}}),me=F(ue,[["__scopeId","data-v-9b73d0ba"]]);export{me 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.