import"../chunks/Bzak7iHL.js";import{p as x,t as p,a as _,b as g,u as U,s as n,d as s,c as E,$ as y,r as o,l as v,e as j,v as f}from"../chunks/CiQWViEs.js";import{h as w}from"../chunks/DG4rvltU.js";import{a as D,e as F}from"../chunks/BblGoPVU.js";import{U as G}from"../chunks/CQj4Xw6J.js";var I=E('<div class="mx-auto max-w-3xl"><nav class="mb-4 text-sm text-slate-500"><a href="/users" class="hover:underline">Usuarios</a> · <span> </span></nav> <h1 class="mb-6 text-2xl font-bold text-slate-900">Editar usuario</h1> <!> <div class="mt-6 flex justify-end"><form method="POST" action="?/delete"><button class="btn-danger" type="submit">Eliminar usuario</button></form></div></div>');function k(c,e){x(e,!0);var i=I();w("1eum948",t=>{U(()=>{y.title=`Editar ${e.data.editUser.name??""} · Inventario EDUmind`})});var m=s(i),d=n(s(m),2),b=s(d,!0);o(d),o(m);var u=n(m,4);{let t=f(()=>{var a;return(a=e.form)==null?void 0:a.values}),r=f(()=>{var a;return(a=e.form)==null?void 0:a.error});G(u,{get user(){return e.data.editUser},get values(){return v(t)},get error(){return v(r)},submitLabel:"Guardar cambios"})}var l=n(u,2),h=s(l);D(h,t=>{var r;return(r=F)==null?void 0:r(t)}),o(l),o(i),p(()=>j(b,e.data.editUser.name)),_(c,i),g()}export{k as component};
