globalThis.process ??= {};
globalThis.process.env ??= {};
import { r as __exportAll } from "./rolldown-runtime_-UtK6b3T.mjs";
import { d as renderTemplate, i as renderComponent, p as renderHead, t as spreadAttributes, w as createAstro, x as unescapeHTML } from "./server_DAChoow1.mjs";
import { t as createComponent } from "./compiler_CLrjY88v.mjs";
import { i as $$DefaultIndexBody, p as resolveScreen, t as resolveModTheme } from "./registry_Ct1ay9LR.mjs";
import { o as parseActiveSelection, r as MOD_CMS_PALETTE_SET, s as themeCss, t as DEFAULT_SELECTION } from "./theme_BaEzwWHZ.mjs";
//#region src/pages/install/preview.astro
var preview_exports = /* @__PURE__ */ __exportAll({
	default: () => $$Preview,
	file: () => $$file,
	prerender: () => false,
	url: () => $$url
});
createAstro("https://astro.build");
var $$Preview = createComponent(($$result, $$props, $$slots) => {
	const Astro = $$result.createAstro($$props, $$slots);
	Astro.self = $$Preview;
	const params = Astro.url.searchParams;
	const selection = parseActiveSelection({
		themeId: params.get("theme"),
		paletteId: params.get("palette"),
		mode: params.get("mode") ?? DEFAULT_SELECTION.mode
	});
	const siteName = (params.get("name") ?? "").trim().slice(0, 100) || "Your site";
	const theme = resolveModTheme(selection.themeId);
	const Shell = theme.Shell;
	const IndexBody = resolveScreen(theme, "index", $$DefaultIndexBody);
	const htmlThemeAttrs = {
		"data-theme": MOD_CMS_PALETTE_SET.id,
		"data-palette": selection.paletteId,
		...selection.mode === "system" ? {} : { "data-mode": selection.mode }
	};
	Astro.response.headers.set("X-Frame-Options", "SAMEORIGIN");
	Astro.response.headers.set("Cache-Control", "no-store");
	const PREVIEW_NAV_LINKS = [
		{
			label: "Posts",
			href: "#"
		},
		{
			label: "About",
			href: "#"
		},
		{
			label: "Contact",
			href: "#"
		}
	];
	const PREVIEW_HERO_HTML = "<p>This is an example of a site built with mod-cms — your posts, pages, and modules will appear here once you finish setup.</p>";
	const PREVIEW_POSTS = [
		{
			slug: "#",
			title: "Getting started with your new site",
			createdAt: "2026-01-15"
		},
		{
			slug: "#",
			title: "How to write great content",
			createdAt: "2026-02-03"
		},
		{
			slug: "#",
			title: "Customising your theme",
			createdAt: "2026-03-20"
		}
	];
	const PREVIEW_MOD_CARDS = [
		{
			id: "content",
			name: "Content",
			tagline: "Pages and posts, versioned and searchable.",
			layer: "L2"
		},
		{
			id: "auth",
			name: "Auth",
			tagline: "Sign-in and access control out of the box.",
			layer: "L1"
		},
		{
			id: "search",
			name: "Search",
			tagline: "Full-text search across your content.",
			layer: "L2"
		},
		{
			id: "uploads",
			name: "Uploads",
			tagline: "Images and files, stored and served.",
			layer: "L2"
		},
		{
			id: "notifications",
			name: "Notifications",
			tagline: "Email alerts for comments and updates.",
			layer: "L2"
		}
	];
	return renderTemplate`<html lang="en"${spreadAttributes(htmlThemeAttrs)}><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="robots" content="noindex"><title>${siteName}</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Schibsted+Grotesk:wght@400;500&display=swap"><style>${unescapeHTML(themeCss)}</style>${renderHead($$result)}</head><body>${renderComponent($$result, "Shell", Shell, {
		"siteName": siteName,
		"logoUrl": void 0,
		"hideModeToggle": true,
		"navLinks": PREVIEW_NAV_LINKS
	}, { "default": ($$result) => renderTemplate`<main>${renderComponent($$result, "IndexBody", IndexBody, {
		"siteName": siteName,
		"heroHtml": PREVIEW_HERO_HTML,
		"posts": PREVIEW_POSTS,
		"modCards": PREVIEW_MOD_CARDS
	})}</main>` })}</body></html>`;
}, "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/install/preview.astro", void 0);
var $$file = "/home/user/runs/content-model-t15-final-build/repo/apps/mod-cms/src/pages/install/preview.astro";
var $$url = "/install/preview";
//#endregion
//#region \0virtual:astro:page:src/pages/install/preview@_@astro
var page = () => preview_exports;
//#endregion
export { page };
