globalThis.process ??= {};
globalThis.process.env ??= {};
import { r as __exportAll } from "./rolldown-runtime_-UtK6b3T.mjs";
import { d as renderTemplate, i as renderComponent } from "./server_DAChoow1.mjs";
import { t as createComponent } from "./compiler_CLrjY88v.mjs";
import { h as require_jsx_runtime } from "./registry_Ct1ay9LR.mjs";
import { t as $$Base } from "./Base_CShmIjgp.mjs";
import { t as ErrorState } from "./ErrorState_22ePv3Ll.mjs";
import { t as errorCopy } from "./dist_Bx_lJW-e.mjs";
//#region src/components/ErrorView.tsx
var import_jsx_runtime = require_jsx_runtime();
/**
* Static error view: resolves copy from `errorCopy(code)` (always resolves — 500 fallback) and
* renders `ErrorState` with a home-link action authored in real React JSX. Rendered server-side
* with NO `client:` directive → static HTML, no hydration. Accessible name is in the text;
* `ErrorState` marks any visual decorative.
*/
function ErrorView({ code }) {
	const copy = errorCopy(code);
	return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorState, {
		code,
		title: copy.title,
		message: copy.message,
		action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
			href: "/",
			children: "Go to the home page"
		})
	});
}
//#endregion
//#region src/pages/500.astro
var _500_exports = /* @__PURE__ */ __exportAll({
	default: () => $$500,
	file: () => $$file,
	prerender: () => false,
	url: () => $$url
});
var $$500 = createComponent(($$result, $$props, $$slots) => {
	const copy = errorCopy(500);
	return renderTemplate`${renderComponent($$result, "Base", $$Base, {
		"title": `${copy.title} · mod-cms`,
		"noindex": true
	}, { "default": ($$result) => renderTemplate`${renderComponent($$result, "ErrorView", ErrorView, { "code": 500 })}` })}`;
}, "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/500.astro", void 0);
var $$file = "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/500.astro";
var $$url = "/500";
//#endregion
//#region \0virtual:astro:page:src/pages/500@_@astro
var page = () => _500_exports;
//#endregion
export { page };
