1import{j as e,D as a,q as c,s as p,t as h}from"../chunks/chunk-MvdloxNs.js";import{u as g,G as f,A as m}from"../chunks/chunk-DX82SwjT.js";import{i as x}from"../chunks/chunk-CEXI1P_N.js";import"../chunks/chunk-DsNX_Igk.js";/* empty css *//* empty css */function y(){const{login:r,loginWithGoogle:l,formState:i,onChangeInput:s}=g(),{isLoading:t}=i,n=async o=>{try{await r(o)}catch(u){u.code==="auth/invalid-credential"?a.error("Invalid email or password"):a.error("An error occurred during login")}},d=async()=>{try{await l()}catch{a.error("Google login failed. Please try again.")}};return e.jsxs("main",{className:"container mx-auto px-4 py-16 max-w-md",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Welcome back"}),e.jsx("p",{className:"text-gray-600",children:"Sign in to continue learning"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm border border-gray-100",children:[e.jsx(f,{disabled:t,onClick:d}),e.jsxs("div",{className:"relative mb-6",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-gray-200"})}),e.jsx("div",{className:"relative flex justify-center text-sm",children:e.jsx("span",{className:"px-2 bg-white text-gray-500",children:"Or continue with"})})]}),e.jsxs("form",{className:"space-y-4",onSubmit:n,children:[e.jsx(m,{formState:i,onChangeInput:s}),e.jsx("button",{className:"w-full flex items-center gap-2 bg-indigo-600 text-white justify-center px-6 py-3 rounded-lg hover:bg-indigo-700 transition-colors disabled:bg-gray-400",disabled:t,type:"submit",children:t?"Signing in...":"Sign In"})]}),e.jsxs("div",{className:"mt-6 text-center text-sm text-gray-600",children:["Don't have an account?"," ",e.jsx("a",{className:"text-indigo-600 hover:text-indigo-800",href:"/app/signup",children:"Sign up"})]})]})]})}const v=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),P={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:h}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/(unauthorized)/login/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:v}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/(unauthorized)/+Layout.tsx",fileExportPathToShowToUser:[]},{filePathToShowToUser:"/src/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:x},{type:"plus-file",exportValues:p}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/(unauthorized)/login/+config.ts",fileExportPathToShowToUser:["default","title"]},valueSerialized:{type:"js-serialized",value:"Login | Flashcards.ai"}},description:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/(unauthorized)/login/+config.ts",fileExportPathToShowToUser:["default","description"]},valueSerialized:{type:"js-serialized",value:"Login to Flashcards.ai and start learning 10x faster"}},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:c}}};export{P as configValuesSerialized};
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.