'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../utils/index.js');
var elementPlus = require('element-plus');
var colorPickerPanel = require('./colorPickerPanel.js');
var event = require('../../../../utils/src/elementPlus/event.js');
var exports$1 = require('../../../../utils/src/elementPlus/exports.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmColorPickerPanel"
  },
  __name: "ColorPickerPanel",
  props: colorPickerPanel.colorPickerPanelProps,
  emits: colorPickerPanel.colorPickerPanelEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(elementPlus.colorPickerPanelEmits, emit);
    const elRef = vue.ref();
    const exposeNames = ["inputRef", "update"];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns,
      color: vue.computed(() => elRef.value?.color)
    });
    return (_ctx, _cache) => {
      const _component_el_color_picker_panel = vue.resolveComponent("el-color-picker-panel");
      return vue.openBlock(), vue.createBlock(
        _component_el_color_picker_panel,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, vue.toHandlers(vue.unref(elEvents))),
        null,
        16
        /* FULL_PROPS */
      );
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=ColorPickerPanel.vue2.js.map
