PageSourceSearch

https://sitepro3d.com/assets/LoginView.9babe612.js

js sitepro3d.com collected 2026-10-05 20:51:23 UTC 1,331 bytes, 1 lines download raw bytes

1import{x as h,y as g,f as c}from"./index.30e5c41e.js";import{a as f,u as m}from"./vue-router.5cbc86df.js";import{_ as y}from"./_plugin-vue_export-helper.c27b6911.js";import{r as w,c as a,a as n,o as r,p as v,b as k}from"./runtime-core.esm-bundler.6c286315.js";const i=s=>(v("data-v-28a1ac3d"),s=s(),k(),s),b={class:"hiz"},x=i(()=>n("h1",null,"Login",-1)),I=i(()=>n("p",null,"Please sign in with your Google account to continue.",-1)),P=["disabled"],L={key:0,class:"loader"},S={key:1},A={__name:"LoginView",setup(s){const l=f(),u=m(),d=new h,e=w(!1),_=async()=>{e.value=!0;try{const t=(await g(c,d)).user;if(!t.email.endsWith("@selfwalk.com")){alert("Access restricted to team members only."),await c.signOut(),e.value=!1;return}console.log("Authorized user:",t.email);const p=u.query.redirect||"/";l.push(p)}catch(o){o.code==="auth/popup-closed-by-user"?alert("Sign-in was canceled. Please try again."):o.code==="auth/network-request-failed"?alert("Network error. Please check your connection."):(console.error("Error during sign-in:",o),alert("An unexpected error occurred. Please try again."))}finally{e.value=!1}};return(o,t)=>(r(),a("div",b,[x,I,n("button",{onClick:_,disabled:e.value},[e.value?(r(),a("span",L)):(r(),a("span",S,"Sign in with Google"))],8,P)]))}},q=y(A,[["__scopeId","data-v-28a1ac3d"]]);export{q 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.