import { defineComponent, useSlots, ref, createBlock, openBlock, unref, mergeProps, toHandlers, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
import '../../../../utils/index.mjs';
import { ElSelectV2 } from 'element-plus';
import { elSelectV2Emits, selectV2Emits, selectV2Props } from './selectV2.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmSelectV2"
  },
  __name: "SelectV2",
  props: selectV2Props,
  emits: selectV2Emits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(elSelectV2Emits, emit);
    const elRef = ref();
    const exposeNames = ["focus", "blur"];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      return openBlock(), createBlock(
        unref(ElSelectV2),
        mergeProps({
          ref_key: "elRef",
          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).header ? {
            name: "header",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "header")
            ]),
            key: "1"
          } : void 0,
          unref(slots).footer ? {
            name: "footer",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "footer")
            ]),
            key: "2"
          } : void 0,
          unref(slots).prefix ? {
            name: "prefix",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "prefix")
            ]),
            key: "3"
          } : void 0,
          unref(slots).empty ? {
            name: "empty",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "empty")
            ]),
            key: "4"
          } : void 0,
          unref(slots).tag ? {
            name: "tag",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "tag")
            ]),
            key: "5"
          } : void 0,
          unref(slots).loading ? {
            name: "loading",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "loading")
            ]),
            key: "6"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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