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 { C as parseMaintenance, g as getSetting, m as SETTINGS_KEYS } from "./crypto_CY2zBtG3.mjs";
import { n as getFullDb } from "./db_BQ9NAt8x.mjs";
import { t as $$Base } from "./Base_AuO_PBeT.mjs";
import { t as ErrorState } from "./ErrorState_PvHdhJsq.mjs";
import { t as errorCopy } from "./dist_Bx_lJW-e.mjs";
import { env } from "cloudflare:workers";
//#region src/pages/maintenance.astro
var maintenance_exports = /* @__PURE__ */ __exportAll({
	default: () => $$Maintenance,
	file: () => $$file,
	prerender: () => false,
	url: () => $$url
});
var $$Maintenance = createComponent(async ($$result, $$props, $$slots) => {
	const copy = errorCopy(503);
	let message = copy.message;
	try {
		const cfg = parseMaintenance(await getSetting(getFullDb(env).db, SETTINGS_KEYS.maintenance));
		if (cfg.message) message = cfg.message;
	} catch {}
	return renderTemplate`${renderComponent($$result, "Base", $$Base, {
		"title": `${copy.title} · mod-cms`,
		"noindex": true
	}, { "default": ($$result) => renderTemplate`${renderComponent($$result, "ErrorState", ErrorState, {
		"code": 503,
		"title": copy.title,
		"message": message
	})}` })}`;
}, "/home/user/runs/run-20260823T175424Z-2fpke4/repo/apps/mod-cms/src/pages/maintenance.astro", void 0);
var $$file = "/home/user/runs/run-20260823T175424Z-2fpke4/repo/apps/mod-cms/src/pages/maintenance.astro";
var $$url = "/maintenance";
//#endregion
//#region \0virtual:astro:page:src/pages/maintenance@_@astro
var page = () => maintenance_exports;
//#endregion
export { page };
