import { e as createComponent, k as renderComponent, r as renderTemplate, h as createAstro, m as maybeRenderHead, g as addAttribute } from '../../../chunks/astro/server_CNSJbOTP.mjs';
import 'piccolore';
import { $ as $$AppLayout } from '../../../chunks/AppLayout_ClxvESCL.mjs';
import { F as FormularioActividad } from '../../../chunks/FormularioActividad_CxA1IbqY.mjs';
export { renderers } from '../../../renderers.mjs';

const $$Astro = createAstro();
const $$Editar = createComponent(($$result, $$props, $$slots) => {
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
  Astro2.self = $$Editar;
  const { id } = Astro2.params;
  const actividadId = parseInt(id ?? "0", 10);
  return renderTemplate`${renderComponent($$result, "AppLayout", $$AppLayout, { "titulo": "Editar Actividad", "seccionActiva": "actividades" }, { "default": ($$result2) => renderTemplate` ${maybeRenderHead()}<div class="mb-6"> <a${addAttribute(`/actividades/${actividadId}`, "href")} class="inline-flex items-center gap-2 text-sm text-gray-500 hover:text-[#1B2B4B] transition-colors"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path> </svg>
Volver al Detalle
</a> </div> <div class="mb-6"> <h1 class="text-2xl font-bold text-gray-900">Editar Actividad</h1> <p class="text-sm text-gray-500 mt-1">Modifique los datos de la actividad y guarde los cambios.</p> </div> ${renderComponent($$result2, "FormularioActividad", FormularioActividad, { "id": actividadId, "client:load": true, "client:component-hydration": "load", "client:component-path": "C:/Proyectos IA/Sistema de Control y Gesti\xF3n Crew Consultores/frontend/src/components/actividades/FormularioActividad", "client:component-export": "default" })} ` })}`;
}, "C:/Proyectos IA/Sistema de Control y Gesti\xF3n Crew Consultores/frontend/src/pages/actividades/[id]/editar.astro", void 0);

const $$file = "C:/Proyectos IA/Sistema de Control y Gestión Crew Consultores/frontend/src/pages/actividades/[id]/editar.astro";
const $$url = "/actividades/[id]/editar";

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  default: $$Editar,
  file: $$file,
  url: $$url
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
