PageSourceSearch

https://www.raster.tv/_nuxt/BFeJkWad.js

js raster.tv collected 2026-10-05 11:33:16 UTC 3,000 bytes, 1 lines download raw bytes

1import{d as y,bC as b,b$ as _,x as u,m as v,o as d,i as l,a as o,b as g,K as w,e0 as C,g as p,w as I,e as N,l as k,z as E,c0 as G,n as L}from"#entry";const A={class:"border-border bg-card mx-auto max-w-md rounded-xl border p-8"},S={class:"space-y-2 mb-6 text-center flex flex-col items-center justify-center gap-0"},T={class:"space-y-4"},O={class:"text-muted-foreground text-center text-xs"},B={key:0,class:"text-muted-foreground text-center text-xs"},z="google-web",U=y({__name:"signup",setup(V){const m=b(),f=G(),{$toast:n}=_(),s=u(!1),i=f.public.googleClientId||"",a=u(crypto.randomUUID()),c=t=>{const e=t?.body?.message||t?.message||"",r=String(e);if(r.toLowerCase().includes("origin is not allowed")){n?.error("Sign-up can’t start yet (not your fault).",{description:"Google OAuth is misconfigured for this URL. Add this site to the OAuth Client “Authorized JavaScript origins” (e.g. http://localhost:4444), then refresh and try again."});return}n?.error("We couldn’t sign you up (not your fault).",{description:r||"Please try again in a moment. If it keeps happening, refresh the page and try again."})};async function x(t){s.value=!0;try{await m.auth.signInWithIdToken({clientName:z,idToken:t.credential,nonce:a.value}),await L("/onboarding")}catch(e){console.error("Auth error:",e),c(e)}finally{s.value=!1}}return v(()=>{if(!i){n?.error("Google sign-up isn’t configured yet (not your fault).",{description:"Set GOOGLE_CLIENT_ID in your .env file and restart the dev server."});return}const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.async=!0,t.defer=!0,t.onerror=()=>{n?.error("Google sign-up failed to load (not your fault).",{description:"Your browser blocked the sign-in script or the network request failed. Try disabling blockers or refreshing."})},t.onload=()=>{try{window.google.accounts.id.initialize({client_id:i,callback:x,nonce:a.value}),window.google.accounts.id.renderButton(document.getElementById("google-signup-button"),{theme:"outline",size:"large",width:400})}catch(e){c(e)}},document.head.appendChild(t)}),(t,e)=>{const r=w,h=N;return d(),l("div",A,[o("div",S,[g(r,{size:"64",class:"mb-6","use-station-brand":!1}),e[0]||(e[0]=o("h3",{class:"text-foreground text-2xl font-semibold"},"Create your account",-1)),e[1]||(e[1]=o("p",{class:"text-muted-foreground text-sm"},"Sign up with Google to start using Trellis",-1))]),o("div",T,[e[4]||(e[4]=C('<div class="flex justify-center"><div id="google-signup-button"></div></div><p class="text-muted-foreground text-center text-xs"> By continuing, you agree to our <button class="text-primary hover:underline">Terms of Service</button> and <button class="text-primary hover:underline">Privacy Policy</button></p>',2)),o("div",O,[e[3]||(e[3]=p(" Already have an account? ",-1)),g(h,{to:"/auth/login",class:"text-primary hover:underline"},{default:I(()=>[...e[2]||(e[2]=[p("Sign in",-1)])]),_:1})]),k(s)?(d(),l("div",B,"Starting sign-up…")):E("",!0)])])}}});export{U 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.