import { n as head_default, o as vue_exports } from "../ssr.js";
import { n as server_renderer_exports } from "./i18n-CXLOYfyq.js";
import { t as AppLayout_default } from "./AppLayout-VvVFrkTb.js";
//#region resources/js/Pages/Ext/Frame.vue?vue&type=script&setup=true&lang.ts
var Frame_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue_exports.defineComponent)({
	__name: "Frame",
	__ssrInlineRender: true,
	props: {
		title: {},
		bodyHtml: {},
		css: {},
		js: {}
	},
	setup(__props) {
		const props = __props;
		let styleEl = null;
		let scriptEl = null;
		(0, vue_exports.onMounted)(() => {
			if (props.css) {
				styleEl = document.createElement("style");
				styleEl.setAttribute("data-ext-frame", "");
				styleEl.textContent = props.css;
				document.head.appendChild(styleEl);
			}
			if (props.js) {
				scriptEl = document.createElement("script");
				scriptEl.textContent = props.js;
				document.body.appendChild(scriptEl);
			}
		});
		(0, vue_exports.onBeforeUnmount)(() => {
			styleEl?.remove();
			scriptEl?.remove();
		});
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<!--[-->`);
			_push((0, server_renderer_exports.ssrRenderComponent)((0, vue_exports.unref)(head_default), { title: __props.title }, null, _parent));
			_push((0, server_renderer_exports.ssrRenderComponent)(AppLayout_default, null, {
				default: (0, vue_exports.withCtx)((_, _push, _parent, _scopeId) => {
					if (_push) _push(`<div class="ext-frame"${_scopeId}>${__props.bodyHtml ?? ""}</div>`);
					else return [(0, vue_exports.createVNode)("div", {
						class: "ext-frame",
						innerHTML: __props.bodyHtml
					}, null, 8, ["innerHTML"])];
				}),
				_: 1
			}, _parent));
			_push(`<!--]-->`);
		};
	}
});
//#endregion
//#region resources/js/Pages/Ext/Frame.vue
var _sfc_setup = Frame_vue_vue_type_script_setup_true_lang_default.setup;
Frame_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = (0, vue_exports.useSSRContext)();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Pages/Ext/Frame.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var Frame_default = Frame_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { Frame_default as default };
