import { t as e } from "../utils-C_mWfcFX.js";
//#region src/layout/app-shell.ts
var t = class {
	el;
	mainEl;
	contentEl;
	constructor(t = {}) {
		if (this.el = document.createElement("div"), this.el.className = ["cmm-app-shell", t.className].filter(Boolean).join(" "), t.sidebar !== void 0) {
			let e = document.createElement("aside");
			e.className = "cmm-app-shell__sidebar", e.appendChild(t.sidebar), this.el.appendChild(e);
		}
		if (this.mainEl = document.createElement("div"), this.mainEl.className = "cmm-app-shell__main", t.header !== void 0 && this.mainEl.appendChild(t.header), this.contentEl = document.createElement("main"), this.contentEl.className = "cmm-app-shell__content", t.metrics !== void 0) {
			let e = document.createElement("div");
			e.className = "cmm-app-shell__metric-strip", e.appendChild(t.metrics), this.contentEl.appendChild(e);
		}
		t.content !== void 0 && this.contentEl.appendChild(t.content), this.mainEl.appendChild(this.contentEl), this.el.appendChild(this.mainEl), t.container !== void 0 && e(t.container).appendChild(this.el);
	}
};
function n(e = {}) {
	return new t(e).el;
}
//#endregion
export { t as AppShell, n as createAppShell };

//# sourceMappingURL=app-shell.js.map