import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
import { t as useAuth } from "./useAuth-CmhDlqZz.js";
import { t as DemoModeBanner_default } from "./DemoModeBanner-BXA28cY_.js";
import { Link, usePage } from "@inertiajs/vue3";
import { Fragment, computed, createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, resolveDynamicComponent, toDisplayString, unref, useSSRContext, watch, withCtx } from "vue";
import { ssrInterpolate, ssrRenderAttr, ssrRenderAttrs, ssrRenderClass, ssrRenderComponent, ssrRenderList, ssrRenderSlot, ssrRenderVNode } from "vue/server-renderer";
import * as LucideIcons from "lucide-vue-next";
import { AlertCircle, CheckCircle, ChevronLeft, ChevronRight, Home, LogOut, Menu, Moon, PanelLeftClose, PanelLeftOpen, Sun, X } from "lucide-vue-next";
import { AvatarFallback, AvatarImage, AvatarRoot, DropdownMenuContent, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger } from "radix-vue";
//#region resources/js/Components/Admin/Sidebar.vue?vue&type=script&setup=true&lang.ts
var Sidebar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "Sidebar",
	__ssrInlineRender: true,
	props: { isCollapsed: { type: Boolean } },
	emits: ["toggle"],
	setup(__props, { emit: __emit }) {
		const { settings, hasPermission, hasRole } = useAuth();
		const page = usePage();
		const getIcon = (name) => {
			if (!name) return LucideIcons.HelpCircle;
			return LucideIcons[name] || LucideIcons.HelpCircle;
		};
		const filteredNavigation = computed(() => {
			return (page.props.navigation || []).map((group) => {
				const items = group.items.filter((item) => {
					const permissionCheck = !item.permissions || item.permissions.length === 0 || item.permissions.some((p) => hasPermission(p));
					const roleCheck = !item.roles || item.roles.length === 0 || item.roles.some((r) => hasRole(r));
					return permissionCheck && roleCheck;
				});
				return {
					...group,
					items
				};
			}).filter((group) => group.items.length > 0);
		});
		const isActive = (href) => {
			if (href === "/admin/dashboard") return page.url === "/admin/dashboard";
			return page.url.startsWith(href);
		};
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<aside${ssrRenderAttrs(mergeProps({ class: ["fixed top-0 bottom-0 left-0 z-40 hidden md:flex flex-col border-r border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-950 text-slate-900 dark:text-slate-100 transition-all duration-300 ease-in-out overflow-x-hidden", __props.isCollapsed ? "w-16" : "w-64"] }, _attrs))}><div class="h-16 flex items-center justify-between px-4 border-b border-slate-200 dark:border-slate-800">`);
			_push(ssrRenderComponent(unref(Link), {
				href: _ctx.route("dashboard"),
				class: "flex items-center gap-3 overflow-hidden w-full"
			}, {
				default: withCtx((_, _push, _parent, _scopeId) => {
					if (_push) {
						if (unref(settings)().site_logo) _push(`<img${ssrRenderAttr("src", unref(settings)().site_logo ?? void 0)} alt="Logo" class="h-9 w-9 object-contain flex-shrink-0"${_scopeId}>`);
						else _push(`<div class="h-9 w-9 rounded-lg bg-red-600 flex items-center justify-center flex-shrink-0 text-white font-bold text-lg shadow-md shadow-red-500/20"${_scopeId}><span${_scopeId}>${ssrInterpolate(unref(settings)().site_name?.charAt(0) ?? "L")}</span></div>`);
						if (!__props.isCollapsed) _push(`<div class="flex flex-col min-w-0 transition-opacity duration-300"${_scopeId}><span class="font-semibold text-sm leading-none truncate"${_scopeId}>${ssrInterpolate(unref(settings)().site_name)}</span><span class="text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none"${_scopeId}>${ssrInterpolate(unref(settings)().site_description)}</span></div>`);
						else _push(`<!---->`);
					} else return [unref(settings)().site_logo ? (openBlock(), createBlock("img", {
						key: 0,
						src: unref(settings)().site_logo ?? void 0,
						alt: "Logo",
						class: "h-9 w-9 object-contain flex-shrink-0"
					}, null, 8, ["src"])) : (openBlock(), createBlock("div", {
						key: 1,
						class: "h-9 w-9 rounded-lg bg-red-600 flex items-center justify-center flex-shrink-0 text-white font-bold text-lg shadow-md shadow-red-500/20"
					}, [createVNode("span", null, toDisplayString(unref(settings)().site_name?.charAt(0) ?? "L"), 1)])), !__props.isCollapsed ? (openBlock(), createBlock("div", {
						key: 2,
						class: "flex flex-col min-w-0 transition-opacity duration-300"
					}, [createVNode("span", { class: "font-semibold text-sm leading-none truncate" }, toDisplayString(unref(settings)().site_name), 1), createVNode("span", { class: "text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" }, toDisplayString(unref(settings)().site_description), 1)])) : createCommentVNode("", true)];
				}),
				_: 1
			}, _parent));
			_push(`</div><div class="flex-1 overflow-y-auto overflow-x-hidden py-4 px-3 space-y-6"><!--[-->`);
			ssrRenderList(filteredNavigation.value, (group, gIdx) => {
				_push(`<div class="space-y-1">`);
				if (group.groupName && !__props.isCollapsed) _push(`<h3 class="px-2 text-[10px] font-semibold tracking-wider text-slate-400 dark:text-slate-500 uppercase mb-2">${ssrInterpolate(group.groupName)}</h3>`);
				else _push(`<!---->`);
				_push(`<div class="space-y-1"><!--[-->`);
				ssrRenderList(group.items, (item, iIdx) => {
					_push(ssrRenderComponent(unref(Link), {
						key: iIdx,
						href: item.href,
						class: ["flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-200 group relative", isActive(item.href) ? "bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400" : "hover:bg-slate-100 dark:hover:bg-slate-900 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100"]
					}, {
						default: withCtx((_, _push, _parent, _scopeId) => {
							if (_push) {
								if (isActive(item.href)) _push(`<span class="absolute left-0 top-2 bottom-2 w-1 rounded-r-md bg-red-600 dark:bg-red-400"${_scopeId}></span>`);
								else _push(`<!---->`);
								ssrRenderVNode(_push, createVNode(resolveDynamicComponent(getIcon(item.icon)), { class: ["h-5 w-5 flex-shrink-0 transition-colors", isActive(item.href) ? "text-red-600 dark:text-red-400" : "text-slate-400 dark:text-slate-500 group-hover:text-slate-600 dark:group-hover:text-slate-300"] }, null), _parent, _scopeId);
								if (!__props.isCollapsed) _push(`<span class="transition-opacity duration-300 whitespace-nowrap overflow-hidden text-ellipsis"${_scopeId}>${ssrInterpolate(item.title)}</span>`);
								else _push(`<!---->`);
								if (__props.isCollapsed) _push(`<div class="absolute left-full ml-2 px-2 py-1 bg-slate-900 dark:bg-slate-800 text-white text-xs rounded opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity duration-200 z-50 shadow-md whitespace-nowrap"${_scopeId}>${ssrInterpolate(item.title)}</div>`);
								else _push(`<!---->`);
							} else return [
								isActive(item.href) ? (openBlock(), createBlock("span", {
									key: 0,
									class: "absolute left-0 top-2 bottom-2 w-1 rounded-r-md bg-red-600 dark:bg-red-400"
								})) : createCommentVNode("", true),
								(openBlock(), createBlock(resolveDynamicComponent(getIcon(item.icon)), { class: ["h-5 w-5 flex-shrink-0 transition-colors", isActive(item.href) ? "text-red-600 dark:text-red-400" : "text-slate-400 dark:text-slate-500 group-hover:text-slate-600 dark:group-hover:text-slate-300"] }, null, 8, ["class"])),
								!__props.isCollapsed ? (openBlock(), createBlock("span", {
									key: 1,
									class: "transition-opacity duration-300 whitespace-nowrap overflow-hidden text-ellipsis"
								}, toDisplayString(item.title), 1)) : createCommentVNode("", true),
								__props.isCollapsed ? (openBlock(), createBlock("div", {
									key: 2,
									class: "absolute left-full ml-2 px-2 py-1 bg-slate-900 dark:bg-slate-800 text-white text-xs rounded opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity duration-200 z-50 shadow-md whitespace-nowrap"
								}, toDisplayString(item.title), 1)) : createCommentVNode("", true)
							];
						}),
						_: 2
					}, _parent));
				});
				_push(`<!--]--></div></div>`);
			});
			_push(`<!--]--></div><div class="p-3 border-t border-slate-200 dark:border-slate-800 flex items-center justify-between gap-2"><button class="h-8 w-8 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center justify-center text-slate-500 dark:text-slate-400 transition-colors cursor-pointer">`);
			if (!__props.isCollapsed) _push(ssrRenderComponent(unref(ChevronLeft), { class: "h-5 w-5" }, null, _parent));
			else _push(ssrRenderComponent(unref(ChevronRight), { class: "h-5 w-5" }, null, _parent));
			_push(`</button>`);
			if (!__props.isCollapsed) _push(`<div class="flex-1 flex items-center justify-center py-1.5 px-2.5 rounded-lg text-xs font-semibold bg-slate-50 dark:bg-slate-900/40 border border-slate-200 dark:border-slate-800 text-slate-400 dark:text-slate-500 font-mono select-none">${ssrInterpolate(unref(settings)().version || "v1.0.0")}</div>`);
			else _push(`<!---->`);
			_push(`</div></aside>`);
		};
	}
});
//#endregion
//#region resources/js/Components/Admin/Sidebar.vue
var _sfc_setup$2 = Sidebar_vue_vue_type_script_setup_true_lang_default.setup;
Sidebar_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/Admin/Sidebar.vue");
	return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
var Sidebar_default = Sidebar_vue_vue_type_script_setup_true_lang_default;
//#endregion
//#region resources/js/Components/Admin/Navbar.vue?vue&type=script&setup=true&lang.ts
var Navbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "Navbar",
	__ssrInlineRender: true,
	props: { isSidebarCollapsed: { type: Boolean } },
	emits: ["toggleSidebar", "toggleMobileSidebar"],
	setup(__props, { emit: __emit }) {
		const { user } = useAuth();
		const page = usePage();
		const isDark = ref(false);
		onMounted(() => {
			isDark.value = document.documentElement.classList.contains("dark");
		});
		const breadcrumbs = computed(() => {
			const segments = page.url.split("?")[0].split("/").filter(Boolean);
			return segments.map((segment, index) => {
				const url = "/" + segments.slice(0, index + 1).join("/");
				const isLast = index === segments.length - 1;
				let label = segment.replace(/-/g, " ").replace(/_/g, " ");
				label = label.charAt(0).toUpperCase() + label.slice(1);
				if (label.toLowerCase() === "rbac") label = "RBAC Security";
				return {
					label,
					url,
					isLast
				};
			});
		});
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<header${ssrRenderAttrs(mergeProps({ class: "sticky top-0 z-30 h-16 w-full border-b border-slate-200 dark:border-slate-800 bg-white/80 dark:bg-slate-950/80 backdrop-blur-md flex items-center justify-between px-4" }, _attrs))}><div class="flex items-center gap-3"><button class="md:hidden h-9 w-9 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center justify-center text-slate-500 dark:text-slate-400 cursor-pointer">`);
			_push(ssrRenderComponent(unref(Menu), { class: "h-5 w-5" }, null, _parent));
			_push(`</button><button class="hidden md:flex h-9 w-9 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 items-center justify-center text-slate-500 dark:text-slate-400 cursor-pointer">`);
			if (!__props.isSidebarCollapsed) _push(ssrRenderComponent(unref(PanelLeftClose), { class: "h-5 w-5" }, null, _parent));
			else _push(ssrRenderComponent(unref(PanelLeftOpen), { class: "h-5 w-5" }, null, _parent));
			_push(`</button><span class="hidden md:block h-4 w-px bg-slate-200 dark:bg-slate-800"></span><nav aria-label="Breadcrumb" class="flex items-center text-xs font-medium text-slate-500 dark:text-slate-400"><ol class="flex items-center gap-1.5"><li>`);
			_push(ssrRenderComponent(unref(Link), {
				href: _ctx.route("dashboard"),
				class: "hover:text-slate-900 dark:hover:text-slate-100 flex items-center"
			}, {
				default: withCtx((_, _push, _parent, _scopeId) => {
					if (_push) _push(ssrRenderComponent(unref(Home), { class: "h-3.5 w-3.5" }, null, _parent, _scopeId));
					else return [createVNode(unref(Home), { class: "h-3.5 w-3.5" })];
				}),
				_: 1
			}, _parent));
			_push(`</li><!--[-->`);
			ssrRenderList(breadcrumbs.value, (breadcrumb, idx) => {
				_push(`<li class="flex items-center gap-1.5">`);
				_push(ssrRenderComponent(unref(ChevronRight), { class: "h-3 w-3 text-slate-300 dark:text-slate-600" }, null, _parent));
				if (!breadcrumb.isLast) _push(ssrRenderComponent(unref(Link), {
					href: breadcrumb.url,
					class: "hover:text-slate-900 dark:hover:text-slate-100 transition-colors"
				}, {
					default: withCtx((_, _push, _parent, _scopeId) => {
						if (_push) _push(`${ssrInterpolate(breadcrumb.label)}`);
						else return [createTextVNode(toDisplayString(breadcrumb.label), 1)];
					}),
					_: 2
				}, _parent));
				else _push(`<span class="font-semibold text-slate-900 dark:text-slate-100">${ssrInterpolate(breadcrumb.label)}</span>`);
				_push(`</li>`);
			});
			_push(`<!--]--></ol></nav></div><div class="flex items-center gap-4"><button class="h-9 w-9 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center justify-center text-slate-500 dark:text-slate-400 cursor-pointer transition-colors" aria-label="Toggle Theme">`);
			if (isDark.value) _push(ssrRenderComponent(unref(Sun), { class: "h-5 w-5 text-amber-500" }, null, _parent));
			else _push(ssrRenderComponent(unref(Moon), { class: "h-5 w-5 text-slate-600 dark:text-slate-400" }, null, _parent));
			_push(`</button>`);
			_push(ssrRenderComponent(unref(DropdownMenuRoot), null, {
				default: withCtx((_, _push, _parent, _scopeId) => {
					if (_push) {
						_push(ssrRenderComponent(unref(DropdownMenuTrigger), { class: "focus:outline-none cursor-pointer flex items-center gap-2.5 text-left select-none group" }, {
							default: withCtx((_, _push, _parent, _scopeId) => {
								if (_push) {
									_push(ssrRenderComponent(unref(AvatarRoot), { class: "h-9 w-9 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-sm font-semibold border border-slate-200 dark:border-slate-800 overflow-hidden hover:opacity-90 transition-opacity" }, {
										default: withCtx((_, _push, _parent, _scopeId) => {
											if (_push) {
												_push(ssrRenderComponent(unref(AvatarImage), {
													src: "",
													alt: "Avatar",
													class: "h-full w-full object-cover"
												}, null, _parent, _scopeId));
												_push(ssrRenderComponent(unref(AvatarFallback), { class: "text-red-600 dark:text-red-400 uppercase" }, {
													default: withCtx((_, _push, _parent, _scopeId) => {
														if (_push) _push(`${ssrInterpolate(unref(user)()?.name?.charAt(0) ?? "U")}`);
														else return [createTextVNode(toDisplayString(unref(user)()?.name?.charAt(0) ?? "U"), 1)];
													}),
													_: 1
												}, _parent, _scopeId));
											} else return [createVNode(unref(AvatarImage), {
												src: "",
												alt: "Avatar",
												class: "h-full w-full object-cover"
											}), createVNode(unref(AvatarFallback), { class: "text-red-600 dark:text-red-400 uppercase" }, {
												default: withCtx(() => [createTextVNode(toDisplayString(unref(user)()?.name?.charAt(0) ?? "U"), 1)]),
												_: 1
											})];
										}),
										_: 1
									}, _parent, _scopeId));
									_push(`<div class="hidden sm:flex flex-col min-w-0"${_scopeId}><span class="text-xs font-semibold text-slate-700 dark:text-slate-300 leading-none truncate max-w-[150px] group-hover:text-slate-900 dark:group-hover:text-slate-100 transition-colors"${_scopeId}>${ssrInterpolate(unref(user)()?.name)}</span><span class="text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none max-w-[150px]"${_scopeId}>${ssrInterpolate(unref(user)()?.email)}</span></div>`);
								} else return [createVNode(unref(AvatarRoot), { class: "h-9 w-9 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-sm font-semibold border border-slate-200 dark:border-slate-800 overflow-hidden hover:opacity-90 transition-opacity" }, {
									default: withCtx(() => [createVNode(unref(AvatarImage), {
										src: "",
										alt: "Avatar",
										class: "h-full w-full object-cover"
									}), createVNode(unref(AvatarFallback), { class: "text-red-600 dark:text-red-400 uppercase" }, {
										default: withCtx(() => [createTextVNode(toDisplayString(unref(user)()?.name?.charAt(0) ?? "U"), 1)]),
										_: 1
									})]),
									_: 1
								}), createVNode("div", { class: "hidden sm:flex flex-col min-w-0" }, [createVNode("span", { class: "text-xs font-semibold text-slate-700 dark:text-slate-300 leading-none truncate max-w-[150px] group-hover:text-slate-900 dark:group-hover:text-slate-100 transition-colors" }, toDisplayString(unref(user)()?.name), 1), createVNode("span", { class: "text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none max-w-[150px]" }, toDisplayString(unref(user)()?.email), 1)])];
							}),
							_: 1
						}, _parent, _scopeId));
						_push(ssrRenderComponent(unref(DropdownMenuPortal), null, {
							default: withCtx((_, _push, _parent, _scopeId) => {
								if (_push) _push(ssrRenderComponent(unref(DropdownMenuContent), {
									class: "z-50 min-w-[220px] bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg p-1.5 shadow-lg shadow-slate-200/50 dark:shadow-none animate-in fade-in slide-in-from-top-1 duration-200",
									align: "end",
									"side-offset": 8
								}, {
									default: withCtx((_, _push, _parent, _scopeId) => {
										if (_push) {
											_push(`<div class="px-2 py-2 flex flex-col"${_scopeId}><span class="font-semibold text-sm text-slate-800 dark:text-slate-200 leading-none truncate"${_scopeId}>${ssrInterpolate(unref(user)()?.name)}</span><span class="text-xs text-slate-400 dark:text-slate-500 truncate mt-1 leading-none"${_scopeId}>${ssrInterpolate(unref(user)()?.email)}</span><div class="mt-2 flex flex-wrap gap-1"${_scopeId}><!--[-->`);
											ssrRenderList(unref(user)()?.roles, (role) => {
												_push(`<span class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-semibold bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400 border border-red-100 dark:border-red-900/30 leading-none"${_scopeId}>${ssrInterpolate(role)}</span>`);
											});
											_push(`<!--]--></div></div>`);
											_push(ssrRenderComponent(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }, null, _parent, _scopeId));
											_push(ssrRenderComponent(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
												default: withCtx((_, _push, _parent, _scopeId) => {
													if (_push) _push(ssrRenderComponent(unref(Link), {
														href: _ctx.route("profile.edit"),
														class: "w-full h-full block"
													}, {
														default: withCtx((_, _push, _parent, _scopeId) => {
															if (_push) _push(`My Profile`);
															else return [createTextVNode("My Profile")];
														}),
														_: 1
													}, _parent, _scopeId));
													else return [createVNode(unref(Link), {
														href: _ctx.route("profile.edit"),
														class: "w-full h-full block"
													}, {
														default: withCtx(() => [createTextVNode("My Profile")]),
														_: 1
													}, 8, ["href"])];
												}),
												_: 1
											}, _parent, _scopeId));
											_push(ssrRenderComponent(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
												default: withCtx((_, _push, _parent, _scopeId) => {
													if (_push) _push(ssrRenderComponent(unref(Link), {
														href: _ctx.route("settings.edit"),
														class: "w-full h-full block"
													}, {
														default: withCtx((_, _push, _parent, _scopeId) => {
															if (_push) _push(`System Settings`);
															else return [createTextVNode("System Settings")];
														}),
														_: 1
													}, _parent, _scopeId));
													else return [createVNode(unref(Link), {
														href: _ctx.route("settings.edit"),
														class: "w-full h-full block"
													}, {
														default: withCtx(() => [createTextVNode("System Settings")]),
														_: 1
													}, 8, ["href"])];
												}),
												_: 1
											}, _parent, _scopeId));
											_push(ssrRenderComponent(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }, null, _parent, _scopeId));
											_push(ssrRenderComponent(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-rose-50 dark:hover:bg-rose-950/20 focus:bg-rose-50 dark:focus:bg-rose-950/20 focus:outline-none text-rose-600" }, {
												default: withCtx((_, _push, _parent, _scopeId) => {
													if (_push) _push(ssrRenderComponent(unref(Link), {
														href: _ctx.route("logout"),
														method: "post",
														as: "button",
														class: "w-full text-left h-full block font-medium"
													}, {
														default: withCtx((_, _push, _parent, _scopeId) => {
															if (_push) _push(` Log Out `);
															else return [createTextVNode(" Log Out ")];
														}),
														_: 1
													}, _parent, _scopeId));
													else return [createVNode(unref(Link), {
														href: _ctx.route("logout"),
														method: "post",
														as: "button",
														class: "w-full text-left h-full block font-medium"
													}, {
														default: withCtx(() => [createTextVNode(" Log Out ")]),
														_: 1
													}, 8, ["href"])];
												}),
												_: 1
											}, _parent, _scopeId));
										} else return [
											createVNode("div", { class: "px-2 py-2 flex flex-col" }, [
												createVNode("span", { class: "font-semibold text-sm text-slate-800 dark:text-slate-200 leading-none truncate" }, toDisplayString(unref(user)()?.name), 1),
												createVNode("span", { class: "text-xs text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" }, toDisplayString(unref(user)()?.email), 1),
												createVNode("div", { class: "mt-2 flex flex-wrap gap-1" }, [(openBlock(true), createBlock(Fragment, null, renderList(unref(user)()?.roles, (role) => {
													return openBlock(), createBlock("span", {
														key: role,
														class: "inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-semibold bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400 border border-red-100 dark:border-red-900/30 leading-none"
													}, toDisplayString(role), 1);
												}), 128))])
											]),
											createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
											createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
												default: withCtx(() => [createVNode(unref(Link), {
													href: _ctx.route("profile.edit"),
													class: "w-full h-full block"
												}, {
													default: withCtx(() => [createTextVNode("My Profile")]),
													_: 1
												}, 8, ["href"])]),
												_: 1
											}),
											createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
												default: withCtx(() => [createVNode(unref(Link), {
													href: _ctx.route("settings.edit"),
													class: "w-full h-full block"
												}, {
													default: withCtx(() => [createTextVNode("System Settings")]),
													_: 1
												}, 8, ["href"])]),
												_: 1
											}),
											createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
											createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-rose-50 dark:hover:bg-rose-950/20 focus:bg-rose-50 dark:focus:bg-rose-950/20 focus:outline-none text-rose-600" }, {
												default: withCtx(() => [createVNode(unref(Link), {
													href: _ctx.route("logout"),
													method: "post",
													as: "button",
													class: "w-full text-left h-full block font-medium"
												}, {
													default: withCtx(() => [createTextVNode(" Log Out ")]),
													_: 1
												}, 8, ["href"])]),
												_: 1
											})
										];
									}),
									_: 1
								}, _parent, _scopeId));
								else return [createVNode(unref(DropdownMenuContent), {
									class: "z-50 min-w-[220px] bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg p-1.5 shadow-lg shadow-slate-200/50 dark:shadow-none animate-in fade-in slide-in-from-top-1 duration-200",
									align: "end",
									"side-offset": 8
								}, {
									default: withCtx(() => [
										createVNode("div", { class: "px-2 py-2 flex flex-col" }, [
											createVNode("span", { class: "font-semibold text-sm text-slate-800 dark:text-slate-200 leading-none truncate" }, toDisplayString(unref(user)()?.name), 1),
											createVNode("span", { class: "text-xs text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" }, toDisplayString(unref(user)()?.email), 1),
											createVNode("div", { class: "mt-2 flex flex-wrap gap-1" }, [(openBlock(true), createBlock(Fragment, null, renderList(unref(user)()?.roles, (role) => {
												return openBlock(), createBlock("span", {
													key: role,
													class: "inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-semibold bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400 border border-red-100 dark:border-red-900/30 leading-none"
												}, toDisplayString(role), 1);
											}), 128))])
										]),
										createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
										createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
											default: withCtx(() => [createVNode(unref(Link), {
												href: _ctx.route("profile.edit"),
												class: "w-full h-full block"
											}, {
												default: withCtx(() => [createTextVNode("My Profile")]),
												_: 1
											}, 8, ["href"])]),
											_: 1
										}),
										createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
											default: withCtx(() => [createVNode(unref(Link), {
												href: _ctx.route("settings.edit"),
												class: "w-full h-full block"
											}, {
												default: withCtx(() => [createTextVNode("System Settings")]),
												_: 1
											}, 8, ["href"])]),
											_: 1
										}),
										createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
										createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-rose-50 dark:hover:bg-rose-950/20 focus:bg-rose-50 dark:focus:bg-rose-950/20 focus:outline-none text-rose-600" }, {
											default: withCtx(() => [createVNode(unref(Link), {
												href: _ctx.route("logout"),
												method: "post",
												as: "button",
												class: "w-full text-left h-full block font-medium"
											}, {
												default: withCtx(() => [createTextVNode(" Log Out ")]),
												_: 1
											}, 8, ["href"])]),
											_: 1
										})
									]),
									_: 1
								})];
							}),
							_: 1
						}, _parent, _scopeId));
					} else return [createVNode(unref(DropdownMenuTrigger), { class: "focus:outline-none cursor-pointer flex items-center gap-2.5 text-left select-none group" }, {
						default: withCtx(() => [createVNode(unref(AvatarRoot), { class: "h-9 w-9 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-sm font-semibold border border-slate-200 dark:border-slate-800 overflow-hidden hover:opacity-90 transition-opacity" }, {
							default: withCtx(() => [createVNode(unref(AvatarImage), {
								src: "",
								alt: "Avatar",
								class: "h-full w-full object-cover"
							}), createVNode(unref(AvatarFallback), { class: "text-red-600 dark:text-red-400 uppercase" }, {
								default: withCtx(() => [createTextVNode(toDisplayString(unref(user)()?.name?.charAt(0) ?? "U"), 1)]),
								_: 1
							})]),
							_: 1
						}), createVNode("div", { class: "hidden sm:flex flex-col min-w-0" }, [createVNode("span", { class: "text-xs font-semibold text-slate-700 dark:text-slate-300 leading-none truncate max-w-[150px] group-hover:text-slate-900 dark:group-hover:text-slate-100 transition-colors" }, toDisplayString(unref(user)()?.name), 1), createVNode("span", { class: "text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none max-w-[150px]" }, toDisplayString(unref(user)()?.email), 1)])]),
						_: 1
					}), createVNode(unref(DropdownMenuPortal), null, {
						default: withCtx(() => [createVNode(unref(DropdownMenuContent), {
							class: "z-50 min-w-[220px] bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg p-1.5 shadow-lg shadow-slate-200/50 dark:shadow-none animate-in fade-in slide-in-from-top-1 duration-200",
							align: "end",
							"side-offset": 8
						}, {
							default: withCtx(() => [
								createVNode("div", { class: "px-2 py-2 flex flex-col" }, [
									createVNode("span", { class: "font-semibold text-sm text-slate-800 dark:text-slate-200 leading-none truncate" }, toDisplayString(unref(user)()?.name), 1),
									createVNode("span", { class: "text-xs text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" }, toDisplayString(unref(user)()?.email), 1),
									createVNode("div", { class: "mt-2 flex flex-wrap gap-1" }, [(openBlock(true), createBlock(Fragment, null, renderList(unref(user)()?.roles, (role) => {
										return openBlock(), createBlock("span", {
											key: role,
											class: "inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-semibold bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400 border border-red-100 dark:border-red-900/30 leading-none"
										}, toDisplayString(role), 1);
									}), 128))])
								]),
								createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
								createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
									default: withCtx(() => [createVNode(unref(Link), {
										href: _ctx.route("profile.edit"),
										class: "w-full h-full block"
									}, {
										default: withCtx(() => [createTextVNode("My Profile")]),
										_: 1
									}, 8, ["href"])]),
									_: 1
								}),
								createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-800 focus:bg-slate-50 dark:focus:bg-slate-800 focus:outline-none text-slate-700 dark:text-slate-300" }, {
									default: withCtx(() => [createVNode(unref(Link), {
										href: _ctx.route("settings.edit"),
										class: "w-full h-full block"
									}, {
										default: withCtx(() => [createTextVNode("System Settings")]),
										_: 1
									}, 8, ["href"])]),
									_: 1
								}),
								createVNode(unref(DropdownMenuSeparator), { class: "h-px bg-slate-200 dark:bg-slate-800 my-1" }),
								createVNode(unref(DropdownMenuItem), { class: "cursor-pointer select-none rounded-md px-2 py-1.5 text-xs hover:bg-rose-50 dark:hover:bg-rose-950/20 focus:bg-rose-50 dark:focus:bg-rose-950/20 focus:outline-none text-rose-600" }, {
									default: withCtx(() => [createVNode(unref(Link), {
										href: _ctx.route("logout"),
										method: "post",
										as: "button",
										class: "w-full text-left h-full block font-medium"
									}, {
										default: withCtx(() => [createTextVNode(" Log Out ")]),
										_: 1
									}, 8, ["href"])]),
									_: 1
								})
							]),
							_: 1
						})]),
						_: 1
					})];
				}),
				_: 1
			}, _parent));
			_push(`</div></header>`);
		};
	}
});
//#endregion
//#region resources/js/Components/Admin/Navbar.vue
var _sfc_setup$1 = Navbar_vue_vue_type_script_setup_true_lang_default.setup;
Navbar_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/Admin/Navbar.vue");
	return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
var Navbar_default = Navbar_vue_vue_type_script_setup_true_lang_default;
//#endregion
//#region resources/js/Layouts/AdminLayout.vue?vue&type=script&setup=true&lang.ts
var AdminLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
	__name: "AdminLayout",
	__ssrInlineRender: true,
	setup(__props) {
		const isCollapsed = ref(localStorage.getItem("admin_sidebar_collapsed") === "true");
		const isMobileOpen = ref(false);
		const { settings, hasPermission, hasRole } = useAuth();
		const page = usePage();
		const isDark = ref(false);
		onMounted(() => {
			isDark.value = document.documentElement.classList.contains("dark");
		});
		watch(isCollapsed, (newVal) => {
			localStorage.setItem("admin_sidebar_collapsed", String(newVal));
		});
		watch(() => page.url, () => {
			isMobileOpen.value = false;
		});
		const toggleSidebar = () => {
			isCollapsed.value = !isCollapsed.value;
		};
		const toggleMobileSidebar = () => {
			isMobileOpen.value = !isMobileOpen.value;
		};
		const getIcon = (name) => {
			if (!name) return LucideIcons.HelpCircle;
			return LucideIcons[name] || LucideIcons.HelpCircle;
		};
		const filteredNavigation = computed(() => {
			return (page.props.navigation || []).map((group) => {
				const items = group.items.filter((item) => {
					const permissionCheck = !item.permissions || item.permissions.length === 0 || item.permissions.some((p) => hasPermission(p));
					const roleCheck = !item.roles || item.roles.length === 0 || item.roles.some((r) => hasRole(r));
					return permissionCheck && roleCheck;
				});
				return {
					...group,
					items
				};
			}).filter((group) => group.items.length > 0);
		});
		const isActive = (href) => {
			if (href === "/admin/dashboard") return page.url === "/admin/dashboard";
			return page.url.startsWith(href);
		};
		const activeAlert = ref(null);
		let alertTimeoutId = null;
		const triggerAlert = (type, message) => {
			if (alertTimeoutId) clearTimeout(alertTimeoutId);
			activeAlert.value = {
				type,
				message
			};
			alertTimeoutId = setTimeout(() => {
				activeAlert.value = null;
			}, 4e3);
		};
		watch(() => page.props.flash, (flash) => {
			if (flash?.success) triggerAlert("success", String(flash.success));
			else if (flash?.error) triggerAlert("error", String(flash.error));
		}, {
			deep: true,
			immediate: true
		});
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-screen bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 flex" }, _attrs))} data-v-5621d513>`);
			if (activeAlert.value) {
				_push(`<div class="${ssrRenderClass([activeAlert.value.type === "success" ? "border-emerald-500/30" : "border-rose-500/30", "fixed top-6 right-6 z-[100] w-full max-w-sm overflow-hidden rounded-xl border bg-white/95 dark:bg-slate-950/95 backdrop-blur-md shadow-lg transition-all duration-300 pointer-events-auto select-none"])}" data-v-5621d513><div class="p-4 flex items-start gap-3 relative" data-v-5621d513><div class="${ssrRenderClass([activeAlert.value.type === "success" ? "bg-emerald-500" : "bg-rose-500", "absolute left-0 top-0 bottom-0 w-1"])}" data-v-5621d513></div><div class="flex-shrink-0 mt-0.5" data-v-5621d513>`);
				ssrRenderVNode(_push, createVNode(resolveDynamicComponent(activeAlert.value.type === "success" ? unref(CheckCircle) : unref(AlertCircle)), { class: ["h-5 w-5", activeAlert.value.type === "success" ? "text-emerald-500" : "text-rose-500"] }, null), _parent);
				_push(`</div><div class="flex-1 min-w-0 pr-2 font-sans" data-v-5621d513><p class="${ssrRenderClass([activeAlert.value.type === "success" ? "text-emerald-600 dark:text-emerald-400" : "text-rose-600 dark:text-rose-400", "text-[10px] font-extrabold uppercase tracking-widest leading-none mb-1.5"])}" data-v-5621d513>${ssrInterpolate(activeAlert.value.type === "success" ? "Berhasil" : "Peringatan")}</p><p class="text-xs text-slate-700 dark:text-slate-300 font-bold leading-normal" data-v-5621d513>${ssrInterpolate(activeAlert.value.message)}</p></div><button class="flex-shrink-0 p-1 hover:bg-slate-100 dark:hover:bg-slate-900 rounded-lg text-slate-400 dark:text-slate-500 hover:text-slate-700 dark:hover:text-slate-300 transition-colors cursor-pointer" data-v-5621d513>`);
				_push(ssrRenderComponent(unref(X), { class: "h-4 w-4" }, null, _parent));
				_push(`</button></div></div>`);
			} else _push(`<!---->`);
			if (!_ctx.$page.props.auth.user.roles.includes("Kasir")) _push(ssrRenderComponent(Sidebar_default, {
				"is-collapsed": isCollapsed.value,
				onToggle: toggleSidebar
			}, null, _parent));
			else _push(`<!---->`);
			_push(`<div class="${ssrRenderClass(["flex-1 flex flex-col min-w-0 min-h-screen transition-all duration-300 ease-in-out", !_ctx.$page.props.auth.user.roles.includes("Kasir") ? isCollapsed.value ? "md:pl-16" : "md:pl-64" : ""])}" data-v-5621d513>`);
			_push(ssrRenderComponent(DemoModeBanner_default, null, null, _parent));
			if (!_ctx.$page.props.auth.user.roles.includes("Kasir")) _push(ssrRenderComponent(Navbar_default, {
				"is-sidebar-collapsed": isCollapsed.value,
				onToggleSidebar: toggleSidebar,
				onToggleMobileSidebar: toggleMobileSidebar
			}, null, _parent));
			else {
				_push(`<header class="h-16 border-b border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-950 px-6 flex items-center justify-between flex-shrink-0 shadow-sm z-10 select-none w-full" data-v-5621d513><div class="flex items-center gap-3" data-v-5621d513>`);
				if (unref(settings)().site_logo) _push(`<div class="h-9 w-9 rounded-lg overflow-hidden border border-slate-105 dark:border-slate-800 flex items-center justify-center bg-slate-50" data-v-5621d513><img${ssrRenderAttr("src", unref(settings)().site_logo ?? void 0)} alt="Logo" class="max-h-7 object-contain" data-v-5621d513></div>`);
				else _push(`<div class="h-9 w-9 rounded-lg bg-red-600 flex items-center justify-center flex-shrink-0 text-white font-bold text-lg" data-v-5621d513><span data-v-5621d513>${ssrInterpolate(unref(settings)().site_name?.charAt(0) ?? "C")}</span></div>`);
				_push(`<div class="flex flex-col" data-v-5621d513><span class="font-extrabold text-sm tracking-wider uppercase leading-none" data-v-5621d513>${ssrInterpolate(unref(settings)().site_name)}</span><span class="text-[9px] text-slate-400 dark:text-slate-500 mt-1 leading-none" data-v-5621d513>Terminal Kasir</span></div></div><div class="flex items-center gap-4" data-v-5621d513><div class="flex items-center gap-2" data-v-5621d513>`);
				_push(ssrRenderComponent(unref(Link), {
					href: _ctx.route("pos.index"),
					class: "px-3 py-1.5 border border-slate-200 dark:border-slate-800 rounded-lg text-xs font-semibold hover:bg-slate-50 dark:hover:bg-slate-900 transition-colors cursor-pointer text-slate-700 dark:text-slate-300"
				}, {
					default: withCtx((_, _push, _parent, _scopeId) => {
						if (_push) _push(` Kembali ke Kasir `);
						else return [createTextVNode(" Kembali ke Kasir ")];
					}),
					_: 1
				}, _parent));
				_push(`<button class="h-8 w-8 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center justify-center text-slate-550 dark:text-slate-400 cursor-pointer transition-colors" aria-label="Toggle Theme" data-v-5621d513>`);
				if (isDark.value) _push(ssrRenderComponent(unref(Sun), { class: "h-4.5 w-4.5 text-amber-500" }, null, _parent));
				else _push(ssrRenderComponent(unref(Moon), { class: "h-4.5 w-4.5 text-slate-600 dark:text-slate-400" }, null, _parent));
				_push(`</button>`);
				_push(ssrRenderComponent(unref(Link), {
					href: _ctx.route("logout"),
					method: "post",
					as: "button",
					class: "px-3 py-1.5 bg-rose-600 hover:bg-rose-500 text-white rounded-lg text-xs font-semibold transition-colors cursor-pointer"
				}, {
					default: withCtx((_, _push, _parent, _scopeId) => {
						if (_push) _push(` Keluar `);
						else return [createTextVNode(" Keluar ")];
					}),
					_: 1
				}, _parent));
				_push(`</div></div></header>`);
			}
			_push(`<main class="flex-1 p-6 md:p-8" data-v-5621d513><div class="animate-in fade-in slide-in-from-bottom-2 duration-300" data-v-5621d513>`);
			ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
			_push(`</div></main></div>`);
			if (isMobileOpen.value) {
				_push(`<div class="md:hidden fixed inset-0 z-50 flex" data-v-5621d513><div class="fixed inset-0 bg-slate-950/60 backdrop-blur-sm animate-in fade-in duration-200" data-v-5621d513></div><div class="relative flex flex-col w-full max-w-xs bg-white dark:bg-slate-950 border-r border-slate-200 dark:border-slate-800 shadow-2xl animate-in slide-in-from-left duration-300" data-v-5621d513><div class="h-16 flex items-center justify-between px-4 border-b border-slate-200 dark:border-slate-800" data-v-5621d513>`);
				_push(ssrRenderComponent(unref(Link), {
					href: _ctx.route("dashboard"),
					class: "flex items-center gap-3 overflow-hidden w-full"
				}, {
					default: withCtx((_, _push, _parent, _scopeId) => {
						if (_push) {
							if (unref(settings)().site_logo) _push(`<img${ssrRenderAttr("src", unref(settings)().site_logo ?? void 0)} alt="Logo" class="h-9 w-9 object-contain flex-shrink-0" data-v-5621d513${_scopeId}>`);
							else _push(`<div class="h-9 w-9 rounded-lg bg-red-600 flex items-center justify-center flex-shrink-0 text-white font-bold text-lg" data-v-5621d513${_scopeId}><span data-v-5621d513${_scopeId}>${ssrInterpolate(unref(settings)().site_name?.charAt(0) ?? "L")}</span></div>`);
							_push(`<div class="flex flex-col min-w-0" data-v-5621d513${_scopeId}><span class="font-semibold text-sm leading-none truncate" data-v-5621d513${_scopeId}>${ssrInterpolate(unref(settings)().site_name)}</span><span class="text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" data-v-5621d513${_scopeId}>${ssrInterpolate(unref(settings)().site_description)}</span></div>`);
						} else return [unref(settings)().site_logo ? (openBlock(), createBlock("img", {
							key: 0,
							src: unref(settings)().site_logo ?? void 0,
							alt: "Logo",
							class: "h-9 w-9 object-contain flex-shrink-0"
						}, null, 8, ["src"])) : (openBlock(), createBlock("div", {
							key: 1,
							class: "h-9 w-9 rounded-lg bg-red-600 flex items-center justify-center flex-shrink-0 text-white font-bold text-lg"
						}, [createVNode("span", null, toDisplayString(unref(settings)().site_name?.charAt(0) ?? "L"), 1)])), createVNode("div", { class: "flex flex-col min-w-0" }, [createVNode("span", { class: "font-semibold text-sm leading-none truncate" }, toDisplayString(unref(settings)().site_name), 1), createVNode("span", { class: "text-[10px] text-slate-400 dark:text-slate-500 truncate mt-1 leading-none" }, toDisplayString(unref(settings)().site_description), 1)])];
					}),
					_: 1
				}, _parent));
				_push(`<button class="h-8 w-8 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-900 flex items-center justify-center text-slate-500 dark:text-slate-400 cursor-pointer flex-shrink-0" data-v-5621d513>`);
				_push(ssrRenderComponent(unref(X), { class: "h-5 w-5" }, null, _parent));
				_push(`</button></div><div class="flex-1 overflow-y-auto py-4 px-3 space-y-6" data-v-5621d513><!--[-->`);
				ssrRenderList(filteredNavigation.value, (group, gIdx) => {
					_push(`<div class="space-y-1" data-v-5621d513><h3 class="px-2 text-[10px] font-semibold tracking-wider text-slate-400 dark:text-slate-500 uppercase mb-2" data-v-5621d513>${ssrInterpolate(group.groupName)}</h3><div class="space-y-1" data-v-5621d513><!--[-->`);
					ssrRenderList(group.items, (item, iIdx) => {
						_push(ssrRenderComponent(unref(Link), {
							key: iIdx,
							href: item.href,
							class: ["flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-200 group relative", isActive(item.href) ? "bg-red-50 dark:bg-red-950/40 text-red-600 dark:text-red-400" : "hover:bg-slate-100 dark:hover:bg-slate-900 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100"]
						}, {
							default: withCtx((_, _push, _parent, _scopeId) => {
								if (_push) {
									ssrRenderVNode(_push, createVNode(resolveDynamicComponent(getIcon(item.icon)), { class: "h-5 w-5 flex-shrink-0 text-slate-400" }, null), _parent, _scopeId);
									_push(`<span data-v-5621d513${_scopeId}>${ssrInterpolate(item.title)}</span>`);
								} else return [(openBlock(), createBlock(resolveDynamicComponent(getIcon(item.icon)), { class: "h-5 w-5 flex-shrink-0 text-slate-400" })), createVNode("span", null, toDisplayString(item.title), 1)];
							}),
							_: 2
						}, _parent));
					});
					_push(`<!--]--></div></div>`);
				});
				_push(`<!--]--></div><div class="p-3 border-t border-slate-200 dark:border-slate-800" data-v-5621d513>`);
				_push(ssrRenderComponent(unref(Link), {
					href: _ctx.route("logout"),
					method: "post",
					as: "button",
					class: "flex items-center justify-center gap-2 px-3 py-2.5 rounded-lg text-sm font-semibold border border-slate-200 dark:border-slate-800 text-rose-600 hover:bg-rose-50 dark:hover:bg-rose-950/20 transition-all cursor-pointer w-full"
				}, {
					default: withCtx((_, _push, _parent, _scopeId) => {
						if (_push) {
							_push(ssrRenderComponent(unref(LogOut), { class: "h-4 w-4" }, null, _parent, _scopeId));
							_push(`<span data-v-5621d513${_scopeId}>Log Out</span>`);
						} else return [createVNode(unref(LogOut), { class: "h-4 w-4" }), createVNode("span", null, "Log Out")];
					}),
					_: 1
				}, _parent));
				_push(`</div></div></div>`);
			} else _push(`<!---->`);
			_push(`</div>`);
		};
	}
});
//#endregion
//#region resources/js/Layouts/AdminLayout.vue
var _sfc_setup = AdminLayout_vue_vue_type_script_setup_true_lang_default.setup;
AdminLayout_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = useSSRContext();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Layouts/AdminLayout.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var AdminLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(AdminLayout_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5621d513"]]);
//#endregion
export { AdminLayout_default as t };
