import { defineComponent, useSlots, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
import '../../../../utils/index.mjs';
import { tabsEmits } from 'element-plus';
import { tabsEmits as tabsEmits$1, tabsProps } from './tabs.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmTabs"
  },
  __name: "Tabs",
  props: tabsProps,
  emits: tabsEmits$1,
  setup(__props, { emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(tabsEmits, emit);
    return (_ctx, _cache) => {
      const _component_el_tabs = resolveComponent("el-tabs");
      return openBlock(), createBlock(
        _component_el_tabs,
        mergeProps({ ref: "elRef" }, props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx((slotValue) => [
              renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0,
          unref(slots)["add-icon"] ? {
            name: "add-icon",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "add-icon")
            ]),
            key: "1"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=Tabs.vue2.mjs.map
