import { defineComponent, defineAsyncComponent, resolveComponent, withDirectives, openBlock, createBlock, withCtx, unref, createElementBlock, Fragment, renderList, renderSlot, mergeProps, vShow } from 'vue';
import { storeToRefs } from 'pinia';
import '../../../../stores/index.mjs';
import { useTagsViewRoutes } from '../../../../stores/tagsViewRoutes.mjs';

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

export { _sfc_main as default };
