import { usePage } from "@inertiajs/vue3";
import { defineComponent, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderComponent } from "vue/server-renderer";
import { ShieldAlert } from "lucide-vue-next";
//#region resources/js/Components/DemoModeBanner.vue?vue&type=script&setup=true&lang.ts
var DemoModeBanner_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "DemoModeBanner",
	__ssrInlineRender: true,
	setup(__props) {
		const isDemoMode = usePage().props.is_demo_mode;
		return (_ctx, _push, _parent, _attrs) => {
			if (unref(isDemoMode)) {
				_push(`<div${ssrRenderAttrs(mergeProps({ class: "relative overflow-hidden bg-gradient-to-r from-amber-500 via-orange-500 to-amber-500 text-white select-none" }, _attrs))}><div class="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent animate-pulse"></div><div class="relative flex items-center justify-center gap-3 px-4 py-2.5 text-xs sm:text-sm font-semibold text-center">`);
				_push(ssrRenderComponent(unref(ShieldAlert), { class: "h-4 w-4 shrink-0 animate-pulse text-white" }, null, _parent));
				_push(`<span><span class="font-extrabold uppercase tracking-wide">Mode Demo Aktif</span><span class="hidden sm:inline"> — Semua operasi tambah, ubah, dan hapus data dinonaktifkan. Anda hanya dapat melihat data dan laporan.</span><span class="sm:hidden"> — Hanya dapat melihat data.</span></span></div></div>`);
			} else _push(`<!---->`);
		};
	}
});
//#endregion
//#region resources/js/Components/DemoModeBanner.vue
var _sfc_setup = DemoModeBanner_vue_vue_type_script_setup_true_lang_default.setup;
DemoModeBanner_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = useSSRContext();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Components/DemoModeBanner.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var DemoModeBanner_default = DemoModeBanner_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { DemoModeBanner_default as t };
