import{W as y,y as g,o as r,c as n,d as s,a,u as e,b as m,w as u,l as x,v as h,e as f,T as V,C as b,D as k}from"./app-I4K73wff.js";import{_ as p}from"./InputError-H3v_qTU0.js";import{_}from"./InputLabel-kIOW7zCm.js";import{_ as w}from"./PrimaryButton-nm2-bJVd.js";import{_ as v}from"./TextInput-QqzhSxrA.js";const C=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Información del perfil"),s("p",{class:"mt-1 text-sm text-gray-600"}," Actualice la información del perfil y la dirección de correo electrónico de su cuenta. ")],-1),N={key:0},$={class:"text-sm mt-2 text-gray-800"},B={class:"mt-2 font-medium text-sm text-green-600"},S={class:"flex items-center gap-4"},T={key:0,class:"text-sm text-gray-600"},I={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(c){const l=y().props.auth.user,t=g({name:l.name,email:l.email});return(d,o)=>(r(),n("section",null,[C,s("form",{onSubmit:o[2]||(o[2]=b(i=>e(t).patch(d.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[s("div",null,[a(_,{for:"name",value:"Nombre"}),a(v,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(t).name,"onUpdate:modelValue":o[0]||(o[0]=i=>e(t).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),a(p,{class:"mt-2",message:e(t).errors.name},null,8,["message"])]),s("div",null,[a(_,{for:"email",value:"Correo electronico"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(t).email,"onUpdate:modelValue":o[1]||(o[1]=i=>e(t).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),a(p,{class:"mt-2",message:e(t).errors.email},null,8,["message"])]),c.mustVerifyEmail&&e(l).email_verified_at===null?(r(),n("div",N,[s("p",$,[m(" Your email address is unverified. "),a(e(k),{href:d.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:u(()=>[m(" Click here to re-send the verification email. ")]),_:1},8,["href"])]),x(s("div",B," A new verification link has been sent to your email address. ",512),[[h,c.status==="verification-link-sent"]])])):f("",!0),s("div",S,[a(w,{disabled:e(t).processing},{default:u(()=>[m("Actualizar")]),_:1},8,["disabled"]),a(V,{"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:u(()=>[e(t).recentlySuccessful?(r(),n("p",T,"Guardado.")):f("",!0)]),_:1})])],32)]))}};export{I as default};
