PageSourceSearch

https://river-cities-digital-hub.firebaseapp.com/assets/ClientAuth-B5Zy1cYr.js

js river-cities-digital-hub.firebaseapp.com collected 2026-10-03 14:08:02 UTC 4,985 bytes, 1 lines download raw bytes

1import{r as s,j as e}from"./vendor-react-7YyQ3Wd0.js";import{L as j}from"./index-C2wd6sSp.js";import{auth as o}from"./firebase-auth-Czb1zE57.js";import{s as v,a as f,c as y,b as I}from"./vendor-firebase-auth-CkEwxIlf.js";import"./vendor-firebase-Bdd0h1Rp.js";const _=({onExit:c})=>{const[n,N]=s.useState(""),[a,b]=s.useState(""),[x,u]=s.useState(!1),[r,p]=s.useState("SIGN_IN"),[m,l]=s.useState(null),[h,d]=s.useState(null),w=async i=>{if(i.preventDefault(),a.toUpperCase()==="SYNTHESIS"||a.toUpperCase()==="SOVEREIGN"){window.dispatchEvent(new CustomEvent("remote_unlock",{detail:"TOOL"})),c();return}u(!0),l(null);try{if(r==="SIGN_IN"){const t=await v(o,n,a);if(!t.user.emailVerified){const g=t.user.email;await f(o),d(g)}}else{const t=await y(o,n,a);await I(t.user),await f(o),d(n)}}catch(t){l(r==="SIGN_IN"?"Email or password is incorrect":t.code==="auth/email-already-in-use"?"User already exists.":"Architectural Error")}finally{u(!1)}};return h?e.jsxs("div",{className:"fixed inset-0 z-[1000] bg-[#030712] flex items-center justify-center p-6 animate-fade-in font-sans text-left",children:[e.jsx("div",{className:"absolute inset-0 structural-grid opacity-[0.05] pointer-events-none"}),e.jsxs("div",{className:"max-w-md w-full glass p-10 md:p-14 rounded-[3rem] border-cyan-500/20 bg-black/60 relative overflow-hidden shadow-2xl",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-transparent via-cyan-500 to-transparent"}),e.jsxs("div",{className:"space-y-10 text-center",children:[e.jsxs("h2",{className:"text-3xl font-black text-white uppercase italic leading-none",children:["Identity ",e.jsx("span",{className:"text-cyan-500",children:"Verification."})]}),e.jsxs("p",{className:"text-[11px] text-gray-400",children:["Sent to: ",e.jsx("span",{className:"text-white font-bold",children:h})]}),e.jsx("button",{onClick:()=>{d(null),p("SIGN_IN")},className:"w-full py-6 bg-cyan-600 text-white font-black rounded-2xl uppercase text-[11px]",children:"Return to Login"})]})]})]}):e.jsxs("div",{className:"fixed inset-0 z-[1000] bg-[#030712] flex items-center justify-center p-6 animate-fade-in font-sans text-left",children:[e.jsx("div",{className:"absolute inset-0 structural-grid opacity-[0.05] pointer-events-none"}),e.jsxs("div",{className:"max-w-md w-full relative",children:[e.jsx("div",{className:"absolute -top-32 left-1/2 -translate-x-1/2",children:e.jsx("button",{onClick:c,children:e.jsx(j,{})})}),e.jsxs("div",{className:"glass p-10 md:p-14 rounded-[3rem] border-red-600/20 bg-black/60 relative overflow-hidden shadow-2xl",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-transparent via-red-600 to-transparent"}),e.jsxs("div",{className:"space-y-10",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsxs("h2",{className:"text-4xl font-black text-white uppercase tracking-tighter italic leading-none",children:["Sovereign ",e.jsx("br",{}),e.jsx("span",{className:"text-red-600",children:r==="SIGN_IN"?"Workspace.":"Registration."})]}),e.jsx("p",{className:"text-[10px] font-mono text-gray-500 uppercase tracking-widest italic",children:"Client Identity Handshake Protocol"})]}),m&&e.jsx("div",{className:"p-4 bg-red-600/10 border border-red-600/30 rounded-xl text-red-500 text-[10px] font-black uppercase text-center animate-pulse",children:m}),e.jsxs("form",{onSubmit:w,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("label",{className:"text-[10px] font-black text-gray-600 uppercase tracking-widest ml-2",children:"Node Email"}),e.jsx("input",{type:"email",value:n,onChange:i=>N(i.target.value),className:"w-full bg-white/5 border border-white/10 p-6 rounded-2xl text-white outline-none focus:border-red-600 transition-all text-sm"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("label",{className:"text-[10px] font-black text-gray-600 uppercase tracking-widest ml-2",children:"Security Passcode"}),e.jsx("input",{type:"password",value:a,onChange:i=>b(i.target.value),className:"w-full bg-white/5 border border-white/10 p-6 rounded-2xl text-white outline-none focus:border-red-600 transition-all text-sm"})]}),e.jsx("button",{type:"submit",disabled:x,className:"w-full py-6 bg-red-600 text-white font-black rounded-2xl uppercase tracking-[0.4em] text-[11px] shadow-2xl shadow-red-600/30 active:scale-95 transition-all",children:x?"VETTING_NODE...":"INITIALIZE UPLINK"})]}),e.jsx("div",{className:"flex justify-center gap-4 border-t border-white/5 pt-6",children:e.jsx("button",{onClick:()=>{p(r==="SIGN_IN"?"SIGN_UP":"SIGN_IN"),l(null)},className:"text-[10px] font-black text-cyan-500 uppercase tracking-widest",children:r==="SIGN_IN"?"Create New Account":"Return to Sign In"})})]})]}),e.jsx("button",{onClick:c,className:"mt-12 text-[10px] font-black text-gray-700 uppercase tracking-widest hover:text-white transition-colors block mx-auto",children:"Abort Handshake / Return to Command"})]})]})};export{_ as ClientAuth};

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.