"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const vueRouter_esmBundler = require("../../../../node_modules/.pnpm/vue-router@4.0.12_vue@3.3.4/node_modules/vue-router/dist/vue-router.esm-bundler.js");
const pageEnum = require("../../../enums/pageEnum.js");
const runtimeCore_esmBundler = require("../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const shared_esmBundler = require("../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.js");
const _hoisted_1 = { class: "header-item left" };
const _hoisted_2 = { class: "header-item center" };
const _hoisted_3 = { class: "header-item right" };
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  setup(__props) {
    const route = vueRouter_esmBundler.useRoute();
    const isProject = runtimeCore_esmBundler.computed(() => {
      return route.fullPath === pageEnum.PageEnum.BASE_HOME_ITEMS;
    });
    return (_ctx, _cache) => {
      const _component_n_space = runtimeCore_esmBundler.resolveComponent("n-space");
      const _component_n_layout_header = runtimeCore_esmBundler.resolveComponent("n-layout-header");
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createBlock(_component_n_layout_header, {
        bordered: "",
        class: "go-header"
      }, {
        default: runtimeCore_esmBundler.withCtx(() => [
          runtimeCore_esmBundler.createElementVNode("header", {
            class: shared_esmBundler.normalizeClass(["go-header-box", { "is-project": isProject.value }])
          }, [
            runtimeCore_esmBundler.createElementVNode("div", _hoisted_1, [
              runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.renderSlot(_ctx.$slots, "left", {}, void 0, true)
                ]),
                _: 3
              })
            ]),
            runtimeCore_esmBundler.createElementVNode("div", _hoisted_2, [
              runtimeCore_esmBundler.renderSlot(_ctx.$slots, "center", {}, void 0, true)
            ]),
            runtimeCore_esmBundler.createElementVNode("div", _hoisted_3, [
              runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.renderSlot(_ctx.$slots, "ri-left", {}, void 0, true),
                  runtimeCore_esmBundler.renderSlot(_ctx.$slots, "ri-right", {}, void 0, true)
                ]),
                _: 3
              })
            ])
          ], 2)
        ]),
        _: 3
      });
    };
  }
});
exports.default = _sfc_main;
