globalThis.process ??= {};
globalThis.process.env ??= {};
import { r as __exportAll } from "./rolldown-runtime_-UtK6b3T.mjs";
import { d as renderTemplate, f as maybeRenderHead, i as renderComponent, w as createAstro, x as unescapeHTML } from "./server_DAChoow1.mjs";
import { t as createComponent } from "./compiler_CLrjY88v.mjs";
import { j as getBySlug } from "./crypto_CY2zBtG3.mjs";
import { n as getFullDb } from "./db_DCN9iNkm.mjs";
import { t as $$Base } from "./Base_CShmIjgp.mjs";
import { t as sanitizeContentBody } from "./sanitize_CLHlWQbC.mjs";
import { env } from "cloudflare:workers";
//#region src/pages/privacy.astro
var privacy_exports = /* @__PURE__ */ __exportAll({
	default: () => $$Privacy,
	file: () => $$file,
	prerender: () => false,
	url: () => $$url
});
createAstro("https://astro.build");
var $$Privacy = createComponent(async ($$result, $$props, $$slots) => {
	const Astro = $$result.createAstro($$props, $$slots);
	Astro.self = $$Privacy;
	const { db } = getFullDb(env);
	const entry = await getBySlug(db, "page", "privacy").catch(() => null);
	const page = entry?.status === "published" ? entry : null;
	if (!page) Astro.response.status = 404;
	return renderTemplate`${renderComponent($$result, "Base", $$Base, {
		"title": page ? page.title : "Privacy policy not found",
		"description": "Privacy policy"
	}, { "default": ($$result) => renderTemplate`${page ? renderTemplate`${maybeRenderHead($$result)}<article class="prose">${unescapeHTML(sanitizeContentBody(page.body))}</article>` : renderTemplate`<section><h1>Privacy policy not available</h1><p>No privacy policy has been published yet.</p></section>`}` })}`;
}, "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/privacy.astro", void 0);
var $$file = "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/privacy.astro";
var $$url = "/privacy";
//#endregion
//#region \0virtual:astro:page:src/pages/privacy@_@astro
var page = () => privacy_exports;
//#endregion
export { page };
