import { defineComponent, ref, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref } from 'vue';
import '../../../../utils/index.mjs';
import { colorPickerEmits } from 'element-plus';
import { colorPickerEmits as colorPickerEmits$1, colorPickerProps } from './colorPicker.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmColorPicker"
  },
  __name: "ColorPicker",
  props: colorPickerProps,
  emits: colorPickerEmits$1,
  setup(__props, { expose: __expose, emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(colorPickerEmits, emit);
    const elRef = ref();
    const exposeEvents = ["color", "show", "hide", "focus", "blur"];
    const { exposeFns } = getGmExports(elRef, exposeEvents);
    __expose({
      elRef,
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_color_picker = resolveComponent("el-color-picker");
      return openBlock(), createBlock(
        _component_el_color_picker,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, toHandlers(unref(elEvents))),
        null,
        16
        /* FULL_PROPS */
      );
    };
  }
});

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