1import{a as m}from"/build/_shared/chunk-5QXSLT6V.js";import{a as u}from"/build/_shared/chunk-FXULA5YR.js";import{a as l}from"/build/_shared/chunk-DLQ5GVGL.js";import{a as c}from"/build/_shared/chunk-VZQVWFLO.js";import{f as o,k as s,l as a}from"/build/_shared/chunk-KPGZMFIM.js";import{b as i}from"/build/_shared/chunk-TANAHWHW.js";import{e as r}from"/build/_shared/chunk-ADMCF34Z.js";var p=r(c());var f=r(l()),b=r(u()),w=r(m()),e=r(i());function n(){let d=s("routes/user"),t=a();return(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"font-display text-xl font-bold mb-6",children:"Change email"}),t?.success&&(0,e.jsx)("div",{className:"bg-accent-light border border-emerald-200 text-emerald-700 px-4 py-3 rounded-xl mb-6 text-sm",children:"Email updated successfully."}),t?.error&&(0,e.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3 rounded-xl mb-6 text-sm",children:t.error}),(0,e.jsxs)(o,{method:"post",className:"space-y-4 max-w-md",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-ink-2 mb-1.5",children:"New email"}),(0,e.jsx)("input",{id:"email",name:"email",type:"email",required:!0,defaultValue:d?.user?.email||"",className:"w-full px-4 py-2.5 bg-white border border-edge rounded-xl text-ink placeholder-ink-3 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-ink-2 mb-1.5",children:"Current password"}),(0,e.jsx)("input",{id:"password",name:"password",type:"password",required:!0,className:"w-full px-4 py-2.5 bg-white border border-edge rounded-xl text-ink placeholder-ink-3 focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors",placeholder:"Confirm your password"})]}),(0,e.jsx)("button",{type:"submit",className:"py-2.5 px-6 bg-accent text-white font-semibold rounded-xl hover:bg-accent-hover transition-colors",children:"Update email"})]})]})}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.