import{s as _,i as g,t as v,r as t,o as V,k as b,l as a,f as p,x as y,y as B,d as m,e as c}from"./app-44623493.js";const U={class:"grid grid-cols-3 gap-6"},x={class:"col-span-3 sm:col-span-1"},F={name:"UserProfile"},N=Object.assign(F,{setup(P){const s="user/profile/",n=_(s),i={name:g("profile").value.name},o=v({...i});return(l,e)=>{const u=t("BaseInput"),d=t("FormAction"),f=t("ParentTransition");return V(),b(f,{appear:"",visibility:!0},{default:a(()=>[p(d,{"no-card":"","init-url":s,action:"updateProfile","init-form":i,form:o,"stay-on":"",redirect:"Dashboard"},{title:a(()=>[y(B(l.$trans("user.profile.profile")),1)]),default:a(()=>[m("div",U,[m("div",x,[p(u,{type:"text",modelValue:o.name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.name=r),name:"name",label:l.$trans("user.profile.props.name"),error:c(n).name,"onUpdate:error":e[1]||(e[1]=r=>c(n).name=r),autofocus:""},null,8,["modelValue","label","error"])])])]),_:1},8,["form"])]),_:1})}}});export{N as default};
