import { h as e } from "./chunk.BlbRoQQ3.js";
import { w as t } from "./use-editor.C-_8sOOa.js";
import { b as n } from "./jsx-runtime.DF4K5VCp.js";
import { Suspense as r, lazy as i } from "react";
var a = /* @__PURE__ */ e(n());
const o = {
	"../bricks/accordion.tsx": () => import("./accordion.BXWN1TwB.js"),
	"../bricks/box.tsx": () => import("./box.C3ZrXhlJ.js"),
	"../bricks/button.tsx": () => import("./button.ghxV8G2A.js"),
	"../bricks/card.tsx": () => import("./card.BCTF3Tm2.js"),
	"../bricks/carousel.tsx": () => import("./carousel.BnMuOuVe.js"),
	"../bricks/footer.tsx": () => import("./footer.Cc5GVFZD.js"),
	"../bricks/form.tsx": () => import("./form.CLLd79BL.js"),
	"../bricks/hero.tsx": () => import("./hero.DNeCu4_y.js"),
	"../bricks/html.tsx": () => import("./html.CRdoKi6a.js"),
	"../bricks/icon.tsx": () => import("./icon.CDGPyIiW.js"),
	"../bricks/image.tsx": () => import("./image.BCaIOcBr.js"),
	"../bricks/images-gallery.tsx": () => import("./images-gallery.MlE_5A7U.js"),
	"../bricks/map.tsx": () => import("./map.BBprTXRX.js"),
	"../bricks/navbar.tsx": () => import("./navbar.CDzyyPaq.js"),
	"../bricks/sidebar.tsx": () => import("./sidebar.CfnLtfTG.js"),
	"../bricks/social-links.tsx": () => import("./social-links.BYIMGZg5.js"),
	"../bricks/spacer.tsx": () => import("./spacer.BtQ7SKQ-.js"),
	"../bricks/testimonials.tsx": () => import("./testimonials.CBMwtVXA.js"),
	"../bricks/text.tsx": () => import("./text.9y1QkUsw.js"),
	"../bricks/video.tsx": () => import("./video.D3i_FUxI.js")
}, s = Object.entries(o).reduce((e, [t, n]) => {
	let r = t.match(/\.\/bricks\/(.*)\.(j|t)sx?$/)[1];
	return e[r] = i(n), e;
}, {}), c = ({ brick: e, editable: n, isDynamicPreview: i, iterationIndex: o }) => {
	let c = t(), l = s[e.type];
	if (!l) return console.warn("Brick not found", e.type), null;
	let u = {
		brick: e,
		editable: n,
		isDynamicPreview: i,
		selected: e.id === c,
		iterationIndex: o
	};
	return /* @__PURE__ */ (0, a.jsx)(r, { children: /* @__PURE__ */ (0, a.jsx)(l, { ...u }) });
};
export { c as b };

//# sourceMappingURL=BrickComponent.CO6zRNkx.js.map