1import{K as u,m as p,j as e,$ as f}from"./app-BzqCBKFq.js";import{e as x,I as h}from"./input-error-iMATgqPn.js";import{B as j}from"./createLucideIcon-9pX33GdP.js";import{I as v}from"./input-nrZKWhYr.js";import{L as C}from"./label-CmhAsKmB.js";import{C as b,b as g,c as F,d as N,a as k,e as I}from"./card-Dz1taVRg.js";import{F as L,a as D,b as o}from"./form-CMYIJg7k.js";import{L as P}from"./loader-circle-CSlPCcq7.js";/* empty css */import"./_commonjsHelpers-D6-XlEtG.js";import"./index-C-GmmI6E.js";import"./index-C3ZIikIG.js";function T({mustVerifyEmail:i,status:n}){const{auth:a}=u().props,{data:m,setData:l,patch:d,errors:s,processing:t}=p({name:a.user.name}),c=r=>{r.preventDefault(),d("/settings/profile",{preserveScroll:!0})};return e.jsxs(b,{children:[e.jsxs(g,{children:[e.jsx(F,{children:"Profile"}),e.jsx(N,{children:"Update your personal information"})]}),e.jsx(k,{children:e.jsx(L,{id:"profile-form",onSubmit:c,className:"p-4",children:e.jsxs(D,{children:[e.jsxs(o,{children:[e.jsx(C,{htmlFor:"name",children:"Name"}),e.jsx(v,{id:"name",className:"mt-1 block w-full",value:m.name,onChange:r=>l("name",r.target.value),required:!0,autoComplete:"name",placeholder:"Full name",...x("name",s.name)}),e.jsx(h,{field:"name",className:"mt-2",message:s.name})]}),i&&a.user.email_verified_at===null&&e.jsxs(o,{children:[e.jsxs("p",{className:"text-muted-foreground -mt-4 text-sm",children:["Your email address is unverified."," ",e.jsx(f,{href:"/email/verification-notification",method:"post",as:"button",className:"text-foreground cursor-pointer underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500",children:"Click here to resend the verification email."})]}),n==="verification-link-sent"&&e.jsx("div",{role:"status",className:"mt-2 text-sm font-medium text-green-700 dark:text-green-400",children:"A new verification link has been sent to your email address."})]})]})})}),e.jsx(I,{children:e.jsxs(j,{form:"profile-form",disabled:t,children:[t&&e.jsx(P,{className:"animate-spin"}),"Save"]})})]})}export{T 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.