PageSourceSearch

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

js beatthebomb.com collected 2026-09-26 03:27:01 UTC 2,347 bytes, 1 lines download raw bytes

1import{d as g,k as y,c as _,l as w,s as r,a as S,b as d,f as a,m as B,p as C,t as m,A as x,H as k,I as P,o as v,D as $,j as D}from"./CmM1QDzE.js";const E={class:"activation-page"},T={class:"activation-card"},q=["disabled"],A=["disabled"],p="activation-email",I=g({__name:"[location]",setup(H){const c={atlanta:"Atlanta",brooklyn:"Brooklyn",charlotte:"Charlotte",dc:"Washington DC",denver:"Denver",houston:"Houston",philly:"Philadelphia",philadelphia:"Philadelphia"},f=y(),i=_(()=>String(f.params.location||"").toLowerCase());if(!c[i.value])throw w({statusCode:404,statusMessage:"Page not found",fatal:!0});const h=$(),l=r(""),t=r(!1),s=r(""),n=r(!1);S({title:`Join the Bomb Squad | Beat The Bomb ${c[i.value]}`,meta:[{name:"description",content:`Sign up for news about new games, experiences and exclusive offers at Beat The Bomb ${c[i.value]}.`}]});async function b(){if(t.value)return;const u=l.value.trim();if(!u||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)){n.value=!0,s.value="Please enter a valid email address.";return}t.value=!0,s.value="";try{const e=h.public.cmsApiUrl||"/api",o=await $fetch(`${e}/public/subscribe`,{method:"POST",body:{email:u,source:`activation-${i.value}`}});n.value=!o?.success,s.value=o?.success?"You're on the list. Welcome to the bomb squad.":"Something went wrong. Please try again.",o?.success&&(l.value="")}catch{n.value=!0,s.value="Something went wrong. Please try again."}finally{t.value=!1}}return(u,e)=>(v(),d("main",E,[a("div",T,[e[1]||(e[1]=a("h1",{class:"activation-heading"},"Join the bomb squad",-1)),e[2]||(e[2]=a("p",{class:"activation-sub"}," Be the first to know about new games, experiences and exclusive offers. ",-1)),s.value?(v(),d("p",{key:0,class:C(["activation-msg",{"is-error":n.value}]),role:"status","aria-live":"polite"},m(s.value),3)):B("",!0),a("form",{class:"activation-form",novalidate:"",onSubmit:x(b,["prevent"])},[a("label",{class:"visually-hidden",for:p},"Email address"),k(a("input",{id:p,"onUpdate:modelValue":e[0]||(e[0]=o=>l.value=o),type:"email",name:"email",autocomplete:"email",placeholder:"Enter your email",class:"activation-input",disabled:t.value,required:""},null,8,q),[[P,l.value]]),a("button",{type:"submit",class:"activation-button",disabled:t.value},m(t.value?"Signing up…":"Sign up"),9,A)],32)])]))}}),N=D(I,[["__scopeId","data-v-120716d3"]]);export{N 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.