import { h as e } from "./chunk.BlbRoQQ3.js";
import "./use-editor.C-_8sOOa.js";
import { W as t } from "./use-page-data.Cb2SuuwJ.js";
import "./chunk-LSPN22SI.D75E3zS-.js";
import { c as n } from "./twind.BiM9xcCd.js";
import "./system.DbMQd1I1.js";
import { b as r } from "./jsx-runtime.DF4K5VCp.js";
import "./theme.HtT_2QlC.js";
import "./base-menu.props.BWy5Ub-q.js";
import "./text.CvSXsyI-.js";
import { b as i } from "./EditableBrick.Cqure0Lk.js";
import "./tooltip.D4rQGwev.js";
import "./chroma-js.Dcir27CH.js";
import "./color-system.Dp99zR0T.js";
import "./react.BZZIbN3T.js";
import "./iconBase.C7m0emOO.js";
import "./schema-resolver.p7B_pu36.js";
import "./io.Bu1sIxQU.js";
import "./md.Dru5DXQh.js";
import "./menubar-styles.CdETFVyL.js";
import { b as a } from "./use-brick-style.DDPl-_C1.js";
import "./BrickComponent.CO6zRNkx.js";
import "./use-brick-manifest.Iv9SG-7-.js";
import { b as o } from "./BrickWrapper.BHDolp4X.js";
import "./sortable.CwZ2HUCK.js";
import { b as s } from "./BrickRoot.DbISziyH.js";
var c = /* @__PURE__ */ e(r());
function l({ brick: e, editable: r, isDynamicPreview: l, iterationIndex: u, level: d = 0 }) {
	let f = a(e);
	return /* @__PURE__ */ (0, c.jsx)(s, {
		editable: r,
		manifest: t,
		className: n(Object.values(f)),
		brick: e,
		children: e.props.$children?.map((e, t) => r ? /* @__PURE__ */ (0, c.jsx)(i, {
			brick: e,
			index: t,
			iterationIndex: u,
			isDynamicPreview: l
		}, e.id) : /* @__PURE__ */ (0, c.jsx)(o, { brick: e }, e.id))
	});
}
export { l as default };

//# sourceMappingURL=box.C3ZrXhlJ.js.map