import { _ as __nuxt_component_0 } from './nuxt-link-B3UD8izG.mjs';
import { a as __nuxt_component_1 } from './Button-Dgqz5RR8.mjs';
import { useSSRContext, defineComponent, computed, mergeProps, withCtx, createVNode, toDisplayString, unref, createTextVNode } from 'vue';
import { ssrRenderAttrs, ssrRenderList, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderSlot } from 'vue/server-renderer';
import { j as useRouter, k as useRuntimeConfig } from './server.mjs';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
import '../nitro/nitro.mjs';
import 'node:path';
import 'node:module';
import 'node:fs';
import 'node:os';
import 'dotenv';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:crypto';
import 'node:async_hooks';
import 'node:url';
import 'node:net';
import '@iconify/utils';
import 'consola';
import './index-Dy4Tu7MB.mjs';
import '@iconify/vue';
import '@iconify/utils/lib/css/icon';
import 'perfect-debounce';
import 'vue-router';
import '@vueuse/core';
import 'tailwind-merge';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/utils';
import 'unhead/plugins';
import './selectMenu-B2FUotwL.mjs';

const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "default",
  __ssrInlineRender: true,
  setup(__props) {
    const router = useRouter();
    const config = useRuntimeConfig();
    const cwd = computed(() => config.public.aidevCwd);
    const nav = [
      { to: "/", label: "Dashboard", icon: "\u25C7" },
      { to: "/config", label: "Config", icon: "\u2699" },
      { to: "/schedule", label: "Schedule", icon: "\u23F1" },
      { to: "/logs", label: "Logs", icon: "\u2261" },
      { to: "/tasks", label: "Tasks", icon: "\u2630" },
      { to: "/run", label: "Run", icon: "\u25B6" }
    ];
    function logout() {
      router.replace("/login");
    }
    return (_ctx, _push, _parent, _attrs) => {
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UButton = __nuxt_component_1;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "app-shell" }, _attrs))} data-v-6cf41085><aside class="sidebar" data-v-6cf41085><div class="brand" data-v-6cf41085><span class="brand-mark" data-v-6cf41085>aidev</span><span class="brand-sub" data-v-6cf41085>dashboard</span></div><nav data-v-6cf41085><!--[-->`);
      ssrRenderList(nav, (item) => {
        _push(ssrRenderComponent(_component_NuxtLink, {
          key: item.to,
          to: item.to,
          class: "nav-link",
          "active-class": "nav-link--active"
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(`<span class="nav-icon" aria-hidden="true" data-v-6cf41085${_scopeId}>${ssrInterpolate(item.icon)}</span><span data-v-6cf41085${_scopeId}>${ssrInterpolate(item.label)}</span>`);
            } else {
              return [
                createVNode("span", {
                  class: "nav-icon",
                  "aria-hidden": "true"
                }, toDisplayString(item.icon), 1),
                createVNode("span", null, toDisplayString(item.label), 1)
              ];
            }
          }),
          _: 2
        }, _parent));
      });
      _push(`<!--]--></nav></aside><div class="main" data-v-6cf41085><header class="topbar" data-v-6cf41085><div class="cwd"${ssrRenderAttr("title", unref(cwd))} data-v-6cf41085><span class="cwd-label" data-v-6cf41085>cwd</span><code class="cwd-value" data-v-6cf41085>${ssrInterpolate(unref(cwd) || "\u2014")}</code></div>`);
      _push(ssrRenderComponent(_component_UButton, {
        size: "sm",
        color: "gray",
        variant: "ghost",
        onClick: logout
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(` Logout `);
          } else {
            return [
              createTextVNode(" Logout ")
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</header><main class="content" data-v-6cf41085>`);
      ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
      _push(`</main></div></div>`);
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("layouts/default.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const _default = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6cf41085"]]);

export { _default as default };
//# sourceMappingURL=default-DiZbTfNE.mjs.map
