import { defineComponent, useSlots, ref, createBlock, openBlock, unref, mergeProps, toHandlers, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
import '../../../../utils/index.mjs';
import { ElTimeSelect } from 'element-plus';
import { elTimeSelectEmits, timeSelectEmits, timeSelectProps } from './timeSelect.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmTimeSelect"
  },
  __name: "TimeSelect",
  props: timeSelectProps,
  emits: timeSelectEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(elTimeSelectEmits, emit);
    const elRef = ref();
    const exposeEvents = ["focus", "blur"];
    const { exposeFns } = getGmExports(elRef, exposeEvents);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      return openBlock(), createBlock(
        unref(ElTimeSelect),
        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
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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