import { h as e } from "./chunks/chunk.BlbRoQQ3.js";
import "./chunks/use-editor.C-_8sOOa.js";
import "./chunks/use-page-data.Cb2SuuwJ.js";
import "./chunks/chunk-LSPN22SI.D75E3zS-.js";
import "./chunks/twind.BiM9xcCd.js";
import { b as t } from "./chunks/jsx-runtime.DF4K5VCp.js";
import "./chunks/chroma-js.Dcir27CH.js";
import "./chunks/color-system.Dp99zR0T.js";
import "./chunks/schema-resolver.p7B_pu36.js";
import "./chunks/attributes.OPcn2TpI.js";
import "./chunks/use-brick-style.DDPl-_C1.js";
import { b as n, c as r } from "./chunks/use-section-style.BqwjknSM.js";
import "./chunks/BrickComponent.CO6zRNkx.js";
import "./chunks/use-brick-manifest.Iv9SG-7-.js";
import { b as i } from "./chunks/BrickWrapper.BHDolp4X.js";
var a = /* @__PURE__ */ e(t());
function o({ section: e }) {
	let t = n({ section: e });
	return /* @__PURE__ */ (0, a.jsx)("section", {
		id: e.id,
		"data-element-kind": "section",
		className: t,
		children: e.bricks.map((e) => /* @__PURE__ */ (0, a.jsx)(i, { brick: e }, e.id))
	}, e.id);
}
function s({ page: e, site: t }) {
	let n = r({
		attributes: e.attributes,
		typography: e.theme.typography
	});
	return /* @__PURE__ */ (0, a.jsxs)("div", {
		className: n,
		children: [
			e.sections.map((e) => /* @__PURE__ */ (0, a.jsx)(o, { section: e }, e.id)),
			t.attributes.bodyTags && /* @__PURE__ */ (0, a.jsx)("div", { dangerouslySetInnerHTML: { __html: t.attributes.bodyTags } }),
			e.attributes.additionalTags?.bodyTags && /* @__PURE__ */ (0, a.jsx)("div", { dangerouslySetInnerHTML: { __html: e.attributes.additionalTags.bodyTags } })
		]
	});
}
export { s as default };

//# sourceMappingURL=Page.js.map