import { defineComponent, h } from 'vue';
import { u as useToast } from './server.mjs';
import { b as buildDomainEntityNav } from './enity-nav-ddb4f4ff.mjs';
import { N as NuxtPage } from './page-011b4897.mjs';
import 'ofetch';
import './nuxt-link-5ac46069.mjs';
import 'ufo';
import 'hookable';
import 'unctx';
import 'h3';
import 'destr';
import './auth-2d06b6ac.mjs';
import './composables-31566dd1.mjs';
import '@ucast/mongo2js';
import 'change-case';
import '@ebec/http';
import 'hapic';
import '@hapic/oauth2';
import '@unhead/vue';
import '@unhead/dom';
import '@unhead/ssr';
import 'vue-router';
import 'rapiq';
import '@vue-layout/basic';
import '@vuelidate/validators';
import 'ilingo';
import 'nanoid';
import '@vue-layout/hyperscript';
import 'smob';
import 'browser-storage-adapter';
import 'cookie-es';
import 'ohash';
import 'vue/server-renderer';
import './_plugin-vue_export-helper-cc2b3d55.mjs';
import './config.mjs';
import 'scule';
import 'defu';

const index = 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 identity-provider ${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: "fas fa-atom me-1" }),
        "Identity-Provider",
        h("span", { class: "sub-title ms-1" }, [
          "Management"
        ])
      ]),
      h("div", { class: "content-wrapper" }, [
        h("div", { class: "content-sidebar flex-column" }, [
          buildDomainEntityNav("/admin/identity-providers", items, { direction: "vertical" })
        ]),
        h("div", { class: "content-container" }, [
          h(NuxtPage, {
            onDeleted: handleDeleted,
            onFailed: handleFailed
          })
        ])
      ])
    ]);
  }
});

export { index as default };
//# sourceMappingURL=index-25b9ae28.mjs.map
