PageSourceSearch

https://smartedu.ai/build/assets/Login-Ohh36jFI.js

js smartedu.ai collected 2026-10-05 15:07:29 UTC 2,665 bytes, 1 lines download raw bytes

1import{i as c,t as x}from"./react-C6JdJxIB.js";import{a as u,n as o}from"./index.esm-DxXUb9DD.js";import{t as p}from"./jsx-runtime-CGXBp6bb.js";import{t as i}from"./trans-PZ_OsZUf.js";import{t as h}from"./CentralLayout-B7lm4y_K.js";var v=c(x(),1),e=p();function N({context:n}){const{data:a,setData:r,post:m,processing:l,errors:s}=u({email:"",password:"",remember:!1}),d=t=>{t.preventDefault(),m("/login")};return(0,e.jsxs)(h,{mode:"auth",title:"Sign in",context:n,pageKey:"login",isSubmitting:l,children:[(0,e.jsxs)("form",{onSubmit:d,className:"space-y-5",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500",children:"Email"}),(0,e.jsx)("input",{type:"email",className:"mt-2 w-full rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm text-slate-800 shadow-sm focus:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-300",value:a.email,onChange:t=>r("email",t.target.value),required:!0,autoComplete:"email"}),s.email?(0,e.jsx)("p",{className:"mt-2 text-xs text-rose-600",children:s.email}):null]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500",children:"Password"}),(0,e.jsx)("input",{type:"password",className:"mt-2 w-full rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm text-slate-800 shadow-sm focus:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-300",value:a.password,onChange:t=>r("password",t.target.value),required:!0,autoComplete:"current-password"}),s.password?(0,e.jsx)("p",{className:"mt-2 text-xs text-rose-600",children:s.password}):null]}),(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("label",{className:"flex items-center gap-2 text-xs text-slate-600",children:[(0,e.jsx)("input",{type:"checkbox",className:"h-4 w-4 rounded border-slate-300 text-slate-900",checked:a.remember,onChange:t=>r("remember",t.target.checked)}),"Remember me"]}),(0,e.jsx)(o,{href:"/forgot-password",className:"text-xs font-semibold text-slate-700 hover:text-slate-900",children:"Forgot password?"})]}),(0,e.jsx)("button",{type:"submit",disabled:l,className:"w-full rounded-2xl bg-slate-900 px-4 py-3 text-sm font-semibold text-white shadow-lg transition hover:-translate-y-0.5 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-70",children:l?i("signing_in"):i("sign_in")})]}),(0,e.jsxs)("p",{className:"mt-6 text-center text-xs text-slate-600",children:["Don't have an account?"," ",(0,e.jsx)(o,{href:"/register",className:"font-semibold text-slate-900",children:"Create one"})]})]})}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.