PageSourceSearch

https://smart-photo.ai/assets/sign-in-Bj5KEvwX.js

js smart-photo.ai collected 2026-10-05 15:05:22 UTC 1,965 bytes, 1 lines download raw bytes

1import{r as o,j as e,i as p,k as x}from"./main-Bmw7chmx.js";import{u as h}from"./useMutation-DOeBEZLC.js";import{u as f}from"./useServerFn-eIrojyZs.js";import{I as i}from"./input-DwS_qeNF.js";import{B as j}from"./button-BeDxX-zt.js";import{L as n}from"./label-iDif4_32.js";import{C as w}from"./camera-OG3mblrd.js";import"./index-BWxGFLm8.js";const b=p({method:"POST"}).handler(x("def669b65fd2f5e99d36a7432efa04e642d1a315a44e39ca51bf8663743a92cf"));function E(){const[s,l]=o.useState(""),[t,m]=o.useState(""),{mutate:d,error:c,isPending:r}=h({mutationFn:f(b)}),u=a=>{a.preventDefault(),d({data:{email:s,password:t}})};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:e.jsxs("div",{className:"w-full max-w-md space-y-8 px-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:e.jsx(w,{className:"h-8 w-8 text-primary"})}),e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Zaloguj się"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:"Wprowadź dane logowania, aby uzyskać dostęp do panelu studia."})]}),e.jsxs("form",{onSubmit:u,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"email",children:"Adres e-mail"}),e.jsx(i,{id:"email",type:"email",value:s,onChange:a=>l(a.target.value),placeholder:"[email protected]",required:!0,autoFocus:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"password",children:"Hasło"}),e.jsx(i,{id:"password",type:"password",value:t,onChange:a=>m(a.target.value),placeholder:"Wprowadź hasło",required:!0})]}),c&&e.jsx("p",{className:"text-sm text-destructive",children:"Nieprawidłowy adres e-mail lub hasło. Spróbuj ponownie."}),e.jsx(j,{type:"submit",className:"w-full",disabled:r,children:r?"Logowanie...":"Zaloguj się"})]})]})})}export{E as component};

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.