import { _ as __nuxt_component_0 } from './DomainEntityNav-Bd1KMDoq.mjs';
import { _ as _export_sfc, d as defineNuxtComponent, f as __nuxt_component_0$1 } from './server.mjs';
import { useSSRContext } from 'vue';
import { u as useToast } from './toast-YYpe1XMm.mjs';
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
import './nuxt-link-BXTIbx8_.mjs';
import '../runtime.mjs';
import 'node:http';
import 'node:https';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import 'hapic';
import '@hapic/oauth2';
import 'rapiq';
import '@hapic/vault';
import '@vuecs/navigation';
import '@vuecs/list-controls/core';
import 'smob';
import '@vuecs/list-controls';
import 'ilingo';
import '@vuelidate/validators';
import '@vuelidate/core';
import 'nanoid';
import '@vuecs/form-controls';
import '@vuecs/pagination';
import '@ucast/mongo2js';
import 'bootstrap-vue-next';
import '@vuecs/preset-bootstrap-v5';
import '@vuecs/preset-font-awesome';
import '@vuecs/countdown';
import '@vuecs/timeago';
import '@vuecs/form-controls/core';
import 'browser-storage-adapter';

const _sfc_main = defineNuxtComponent({
  setup() {
    const toast = useToast();
    const items = [
      {
        name: "overview",
        urlSuffix: "",
        icon: "fa fa-bars"
      },
      {
        name: "add",
        urlSuffix: "/add",
        icon: "fa fa-plus"
      }
    ];
    const handleDeleted = (e) => {
      if (toast) {
        toast.show({ variant: "success", body: `The client ${e.name} was successfully deleted.` });
      }
    };
    const handleFailed = (e) => {
      if (toast) {
        toast.show({ variant: "warning", body: e.message });
      }
    };
    return {
      handleDeleted,
      handleFailed,
      items
    };
  }
}, "$Lqp24YfPYD");
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
  const _component_DomainEntityNav = __nuxt_component_0;
  const _component_NuxtPage = __nuxt_component_0$1;
  _push(`<div${ssrRenderAttrs(_attrs)}><h1 class="title no-border mb-3"><i class="fa-solid fa-ghost me-1"></i> Client <span class="sub-title ms-1">Management</span></h1><div class="content-wrapper"><div class="content-sidebar flex-column">`);
  _push(ssrRenderComponent(_component_DomainEntityNav, {
    items: _ctx.items,
    path: "/admin/clients",
    direction: "vertical"
  }, null, _parent));
  _push(`</div><div class="content-container">`);
  _push(ssrRenderComponent(_component_NuxtPage, {
    onDeleted: _ctx.handleDeleted,
    onFailed: _ctx.handleFailed
  }, null, _parent));
  _push(`</div></div></div>`);
}
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/admin/clients/index.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);

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