PageSourceSearch

https://bankruptcy.manus.space/assets/SignIn-D9eWgs4R.js

js bankruptcy.manus.space collected 2026-10-03 05:00:19 UTC 7,219 bytes, 1 lines download raw bytes

1import{r as a,j as e}from"./vendor-BMTqjksT.js";import{u as v,a as N,t as C,S as k,b as E,C as B,c as L,d as P,e as A,f as F,B as g,L as x,I as p,g as r,h as H,i as m}from"./index-C0VezhcQ.js";import{S as O}from"./separator-dhGOqPeb.js";import{E as z}from"./eye-off-Cf0vp_LU.js";import{E as M}from"./eye-DVSAdHcm.js";import"./trpc-c2OaEmLI.js";import"./d3-ngNJxV2x.js";function $(){const[,h]=v(),u=N(),S=C.useUtils(),n=(()=>{try{const s=new URLSearchParams(u).get("redirect");if(s&&s.startsWith("/"))return s}catch{}return"/portal"})(),[c,w]=a.useState(""),[i,f]=a.useState(""),[l,b]=a.useState(!1),[o,d]=a.useState(!1),j=async t=>{if(t.preventDefault(),!(!c||!i)){d(!0);try{const s=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,password:i}),credentials:"include"}),y=await s.json();if(!s.ok){m.error(y.error||"Invalid credentials");return}await S.auth.me.invalidate(),h(n)}catch{m.error("Something went wrong. Please try again.")}finally{d(!1)}}},I=()=>{JSON.stringify({origin:window.location.origin,redirect:n}),window.location.href=`/api/auth/google?origin=${encodeURIComponent(window.location.origin)}&returnPath=${encodeURIComponent(n)}`};return e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:65",className:"min-h-screen bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 flex items-center justify-center p-4",children:[e.jsx(k,{"data-loc":"client/src/pages/SignIn.tsx:66",title:"Attorney Login — Access Your Bankruptcy Submission Portal",description:"Sign in to your National Bankruptcy Advocates attorney account to view new bankruptcy submissions, manage your profile, and track your conversion rate.",canonical:"https://bankruptcylawyersin.com/sign-in",noIndex:!1}),e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:72",className:"w-full max-w-md",children:[e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:74",className:"flex items-center justify-center gap-2 mb-8",children:[e.jsx("div",{"data-loc":"client/src/pages/SignIn.tsx:75",className:"w-10 h-10 bg-amber-500 rounded-lg flex items-center justify-center",children:e.jsx(E,{"data-loc":"client/src/pages/SignIn.tsx:76",className:"w-6 h-6 text-white"})}),e.jsx("span",{"data-loc":"client/src/pages/SignIn.tsx:78",className:"text-white font-bold text-xl",children:"National Bankruptcy Advocates"})]}),e.jsxs(B,{"data-loc":"client/src/pages/SignIn.tsx:81",className:"bg-white/5 border-white/10 text-white backdrop-blur-sm",children:[e.jsxs(L,{"data-loc":"client/src/pages/SignIn.tsx:82",className:"space-y-1",children:[e.jsx(P,{"data-loc":"client/src/pages/SignIn.tsx:83",className:"text-2xl font-bold text-center text-white",children:"Sign in to your portal"}),e.jsx(A,{"data-loc":"client/src/pages/SignIn.tsx:84",className:"text-center text-slate-400",children:"Access your attorney dashboard and submissions"})]}),e.jsxs(F,{"data-loc":"client/src/pages/SignIn.tsx:89",className:"space-y-4",children:[e.jsxs(g,{"data-loc":"client/src/pages/SignIn.tsx:91",variant:"outline",className:"w-full bg-white text-slate-900 border-white hover:bg-slate-100 hover:text-slate-900 font-medium h-11",onClick:I,type:"button",children:[e.jsxs("svg",{"data-loc":"client/src/pages/SignIn.tsx:97",className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",children:[e.jsx("path",{"data-loc":"client/src/pages/SignIn.tsx:98",fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{"data-loc":"client/src/pages/SignIn.tsx:99",fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{"data-loc":"client/src/pages/SignIn.tsx:100",fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{"data-loc":"client/src/pages/SignIn.tsx:101",fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Continue with Google"]}),e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:106",className:"relative",children:[e.jsx(O,{"data-loc":"client/src/pages/SignIn.tsx:107",className:"bg-white/10"}),e.jsx("span",{"data-loc":"client/src/pages/SignIn.tsx:108",className:"absolute left-1/2 -translate-x-1/2 -translate-y-1/2 bg-slate-800 px-3 text-xs text-slate-400",children:"or sign in with email"})]}),e.jsxs("form",{"data-loc":"client/src/pages/SignIn.tsx:114",onSubmit:j,className:"space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:115",className:"space-y-2",children:[e.jsx(x,{"data-loc":"client/src/pages/SignIn.tsx:116",htmlFor:"email",className:"text-slate-300",children:"Email address"}),e.jsx(p,{"data-loc":"client/src/pages/SignIn.tsx:117",id:"email",type:"email",placeholder:"[email protected]",value:c,onChange:t=>w(t.target.value),required:!0,autoComplete:"email",className:"bg-white/10 border-white/20 text-white placeholder:text-slate-500 focus:border-amber-500 focus:ring-amber-500/20"})]}),e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:129",className:"space-y-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:130",className:"flex items-center justify-between",children:[e.jsx(x,{"data-loc":"client/src/pages/SignIn.tsx:131",htmlFor:"password",className:"text-slate-300",children:"Password"}),e.jsx(r,{"data-loc":"client/src/pages/SignIn.tsx:132",href:"/forgot-password/",className:"text-xs text-amber-400 hover:text-amber-300",children:"Forgot password?"})]}),e.jsxs("div",{"data-loc":"client/src/pages/SignIn.tsx:136",className:"relative",children:[e.jsx(p,{"data-loc":"client/src/pages/SignIn.tsx:137",id:"password",type:l?"text":"password",placeholder:"••••••••",value:i,onChange:t=>f(t.target.value),required:!0,autoComplete:"current-password",className:"bg-white/10 border-white/20 text-white placeholder:text-slate-500 focus:border-amber-500 focus:ring-amber-500/20 pr-10"}),e.jsx("button",{"data-loc":"client/src/pages/SignIn.tsx:147",type:"button",onClick:()=>b(t=>!t),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-white",children:l?e.jsx(z,{"data-loc":"client/src/pages/SignIn.tsx:152",className:"w-4 h-4"}):e.jsx(M,{"data-loc":"client/src/pages/SignIn.tsx:152",className:"w-4 h-4"})})]})]}),e.jsx(g,{"data-loc":"client/src/pages/SignIn.tsx:157",type:"submit",className:"w-full bg-amber-500 hover:bg-amber-600 text-white font-semibold h-11",disabled:o,children:o?"Signing in…":"Sign In"})]})]}),e.jsxs(H,{"data-loc":"client/src/pages/SignIn.tsx:167",className:"flex flex-col gap-2 text-center text-sm text-slate-400",children:[e.jsxs("p",{"data-loc":"client/src/pages/SignIn.tsx:168",children:["Don't have an account?"," ",e.jsx(r,{"data-loc":"client/src/pages/SignIn.tsx:170",href:"/sign-up/",className:"text-amber-400 hover:text-amber-300 font-medium",children:"Create one"})]}),e.jsx(r,{"data-loc":"client/src/pages/SignIn.tsx:174",href:"/",className:"text-slate-500 hover:text-slate-300 text-xs",children:"← Back to directory"})]})]})]})]})}export{$ 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.