import"../chunks/Bzak7iHL.js";import{p as h,t as x,a as b,b as g,u as _,s as n,d,c as p,$ as E,r as i,n as D,l as m,e as k,v}from"../chunks/CiQWViEs.js";import{h as q}from"../chunks/DG4rvltU.js";import{a as w}from"../chunks/zaEOnEon.js";import{D as z}from"../chunks/C5PdYBX3.js";var F=p('<div class="mx-auto max-w-3xl"><nav class="mb-4 text-sm text-slate-500"><a href="/devices" class="hover:underline">Equipos</a> · <a class="font-mono hover:underline"> </a> · <span>Editar</span></nav> <h1 class="mb-6 text-2xl font-bold text-slate-900">Editar equipo</h1> <!></div>');function y(c,e){h(e,!0);var t=F();q("1dkk8zb",o=>{_(()=>{E.title=`Editar ${e.data.device.code??""} · Inventario EDUmind`})});var r=d(t),s=n(d(r),2),l=d(s,!0);i(s),D(2),i(r);var u=n(r,4);{let o=v(()=>{var a;return(a=e.form)==null?void 0:a.values}),f=v(()=>{var a;return(a=e.form)==null?void 0:a.error});z(u,{get categories(){return e.data.categories},get device(){return e.data.device},get values(){return m(o)},get error(){return m(f)},submitLabel:"Guardar cambios"})}i(t),x(()=>{w(s,"href",`/devices/${e.data.device.id??""}`),k(l,e.data.device.code)}),b(c,t),g()}export{y as component};
