import{d as y,Q as x,T as V,g as n,b as a,a as o,u as t,e as r,w as m,i as _,x as k,h as c,q as b,f as h,o as u,k as w}from"./app-4c91af5c.js";import{a as p,b as v,_ as g}from"./TextInput.vue_vue_type_script_setup_true_lang-62234ace.js";import{P as N}from"./PrimaryButton-1a065e50.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},C={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},T=y({__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{},status:{}},setup(d){const l=x().props.auth.user,s=V({name:l.name,email:l.email});return(f,e)=>(u(),n("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=h(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(g,{for:"name",value:"Name"}),o(p,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(v,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(g,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(v,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(l).email_verified_at===null?(u(),n("div",S,[a("p",B,[e[4]||(e[4]=r(" Your email address is unverified. ",-1)),o(t(w),{href:f.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:m(()=>[...e[3]||(e[3]=[r(" Click here to re-send the verification email. ",-1)])]),_:1},8,["href"])]),_(a("div",C," A new verification link has been sent to your email address. ",512),[[k,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(N,{disabled:t(s).processing},{default:m(()=>[...e[5]||(e[5]=[r("Save",-1)])]),_:1},8,["disabled"]),o(b,{"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:m(()=>[t(s).recentlySuccessful?(u(),n("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}});export{T as _};
