import { a7 as head, a6 as attr, a8 as stringify, a4 as escape_html } from '../../../../../chunks/index.js-BVnekaYQ.js';
import { D as DeviceForm } from '../../../../../chunks/DeviceForm.js-Be8fD2DO.js';
import '../../../../../chunks/utils.js-mIi_c4Oz.js';
import '../../../../../chunks/utils2.js-BQzn9ikS.js';
import '../../../../../chunks/exports.js-8HOoaa4e.js';
import '../../../../../chunks/root.js-l4cSj5gU.js';
import '../../../../../chunks/false.js-B2gHlHjM.js';
import '../../../../../chunks/state.svelte.js-DC2zSH9Y.js';

function _page($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    let { data, form } = $$props;
    head("1dkk8zb", $$renderer2, ($$renderer3) => {
      $$renderer3.title(($$renderer4) => {
        $$renderer4.push(`<title>Editar ${escape_html(data.device.code)} · Inventario EDUmind</title>`);
      });
    });
    $$renderer2.push(`<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${attr("href", `/devices/${stringify(data.device.id)}`)} class="font-mono hover:underline">${escape_html(data.device.code)}</a> · <span>Editar</span></nav> <h1 class="mb-6 text-2xl font-bold text-slate-900">Editar equipo</h1> `);
    DeviceForm($$renderer2, {
      categories: data.categories,
      device: data.device,
      values: form?.values,
      error: form?.error,
      submitLabel: "Guardar cambios"
    });
    $$renderer2.push(`<!----></div>`);
  });
}

export { _page as default };
//# sourceMappingURL=_page.svelte.js-BZswx-Zh.js.map
