import { defineComponent, h } from 'vue';
import { N as NuxtPage, a as useToast } from './server.mjs';
import { b as buildDomainEntityNav } from './enity-nav-a1b4cf76.mjs';
import 'ofetch';
import 'hookable';
import 'unctx';
import 'destr';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import 'h3';
import 'ufo';
import '@ebec/http';
import 'hapic';
import '@hapic/oauth2';
import 'rapiq';
import '@vue-layout/basic';
import 'change-case';
import '@ucast/mongo2js';
import 'ilingo';
import '@vue-layout/hyperscript';
import '@vuelidate/validators';
import '@vuelidate/core';
import 'nanoid';
import 'smob';
import 'browser-storage-adapter';
import 'cookie-es';
import 'ohash';
import 'vue/server-renderer';
import 'defu';
import './node-server.mjs';
import 'node-fetch-native/polyfill';
import 'node:http';
import 'node:https';
import 'unenv/runtime/fetch/index';
import 'scule';
import 'unstorage';
import 'radix3';
import 'node:fs';
import 'node:url';
import 'pathe';
import './nuxt-link-d23e8ff6.mjs';

const index = /* @__PURE__ */ defineComponent({
  setup() {
    const items = [
      {
        name: "overview",
        urlSuffix: "",
        icon: "fa fa-bars"
      },
      {
        name: "add",
        urlSuffix: "/add",
        icon: "fa fa-plus"
      }
    ];
    const handleDeleted = (e) => {
      const toast = useToast();
      toast.success(`The client ${e.name} was successfully deleted.`);
    };
    const handleFailed = (e) => {
      const toast = useToast();
      toast.warning(e.message);
    };
    return () => h("div", [
      h("h1", { class: "title no-border mb-3" }, [
        h("i", { class: "fa-solid fa-ghost me-1" }),
        "Scope",
        h("span", { class: "sub-title ms-1" }, [
          "Management"
        ])
      ]),
      h("div", { class: "content-wrapper" }, [
        h("div", { class: "content-sidebar flex-column" }, [
          buildDomainEntityNav("/admin/scopes", items, { direction: "vertical" })
        ]),
        h("div", { class: "content-container" }, [
          h(NuxtPage, {
            onDeleted: handleDeleted,
            onFailed: handleFailed
          })
        ])
      ])
    ]);
  }
});

export { index as default };
//# sourceMappingURL=index-823a2e40.mjs.map
