'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var pinia = require('pinia');
require('../../../../stores/index.js');
var tagsViewRoutes = require('../../../../stores/tagsViewRoutes.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "header",
  setup(__props) {
    const NavBarsIndex = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../navBars/index.vue.js'); }));
    const storesTagsViewRoutes = tagsViewRoutes.useTagsViewRoutes();
    const { isTagsViewCurrenFull } = pinia.storeToRefs(storesTagsViewRoutes);
    return (_ctx, _cache) => {
      const _component_el_header = vue.resolveComponent("el-header");
      return vue.withDirectives((vue.openBlock(), vue.createBlock(
        _component_el_header,
        { class: "layout-header" },
        {
          default: vue.withCtx(() => [
            !_ctx.$slots.navBars ? (vue.openBlock(), vue.createBlock(vue.unref(NavBarsIndex), { key: 0 }, {
              default: vue.withCtx(() => [
                (vue.openBlock(true), vue.createElementBlock(
                  vue.Fragment,
                  null,
                  vue.renderList(_ctx.$slots, (_, name) => {
                    return vue.renderSlot(_ctx.$slots, name, vue.mergeProps({
                      key: name,
                      ref_for: true
                    }, _ctx.$slots[name].props || {}));
                  }),
                  128
                  /* KEYED_FRAGMENT */
                ))
              ]),
              _: 3
              /* FORWARDED */
            })) : vue.renderSlot(_ctx.$slots, "navBars", { key: 1 })
          ]),
          _: 3
          /* FORWARDED */
        },
        512
        /* NEED_PATCH */
      )), [
        [vue.vShow, !vue.unref(isTagsViewCurrenFull)]
      ]);
    };
  }
});

exports.default = _sfc_main;
