import{At as e,C as t,D as n,E as r,H as i,S as a,T as o,a as s,b as c,f as l,i as u,m as d,nt as f,o as p,r as m,rt as h,yt as g}from"./app-r2SMcdpu.js";import{n as _,r as v,t as y}from"./TextInput-IAw8Ne2B.js";import{t as b}from"./PrimaryButton-zow5epdV.js";var x={key:0},S={class:`mt-2 text-sm text-gray-800 dark:text-gray-200`},C={class:`mt-2 text-sm font-medium text-green-600 dark:text-green-400`},w={class:`flex items-center gap-4`},T={key:0,class:`text-sm text-gray-600 dark:text-gray-400`},E=n({__name:`UpdateProfileInformationForm`,props:{mustVerifyEmail:{},status:{}},setup(e){let n=s().props.auth.user,E=u({name:n.name,email:n.email});return(s,u)=>(i(),t(`section`,null,[u[6]||=c(`header`,null,[c(`h2`,{class:`text-lg font-medium text-gray-900 dark:text-gray-100`},` Profile Information `),c(`p`,{class:`mt-1 text-sm text-gray-600 dark:text-gray-400`},` Update your account's profile information and email address. `)],-1),c(`form`,{onSubmit:u[2]||=d(e=>g(E).patch(s.route(`profile.update`)),[`prevent`]),class:`mt-6 space-y-6`},[c(`div`,null,[r(_,{for:`name`,value:`Name`}),r(y,{id:`name`,type:`text`,class:`mt-1 block w-full`,modelValue:g(E).name,"onUpdate:modelValue":u[0]||=e=>g(E).name=e,required:``,autofocus:``,autocomplete:`name`},null,8,[`modelValue`]),r(v,{class:`mt-2`,message:g(E).errors.name},null,8,[`message`])]),c(`div`,null,[r(_,{for:`email`,value:`Email`}),r(y,{id:`email`,type:`email`,class:`mt-1 block w-full`,modelValue:g(E).email,"onUpdate:modelValue":u[1]||=e=>g(E).email=e,required:``,autocomplete:`username`},null,8,[`modelValue`]),r(v,{class:`mt-2`,message:g(E).errors.email},null,8,[`message`])]),e.mustVerifyEmail&&g(n).email_verified_at===null?(i(),t(`div`,x,[c(`p`,S,[u[4]||=o(` Your email address is unverified. `,-1),r(g(m),{href:s.route(`verification.send`),method:`post`,as:`button`,class:`rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800`},{default:f(()=>[...u[3]||=[o(` Click here to re-send the verification email. `,-1)]]),_:1},8,[`href`])]),h(c(`div`,C,` A new verification link has been sent to your email address. `,512),[[l,e.status===`verification-link-sent`]])])):a(``,!0),c(`div`,w,[r(b,{disabled:g(E).processing},{default:f(()=>[...u[5]||=[o(`Save`,-1)]]),_:1},8,[`disabled`]),r(p,{"enter-active-class":`transition ease-in-out`,"enter-from-class":`opacity-0`,"leave-active-class":`transition ease-in-out`,"leave-to-class":`opacity-0`},{default:f(()=>[g(E).recentlySuccessful?(i(),t(`p`,T,` Saved. `)):a(``,!0)]),_:1})])],32)]))}}),D=e({default:()=>O}),O=E;export{D as n,O as t};