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

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmPopconfirm"
  },
  __name: "Popconfirm",
  props: popconfirmProps,
  emits: popconfirmEmits$1,
  setup(__props, { emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(popconfirmEmits, emit);
    return (_ctx, _cache) => {
      const _component_el_popconfirm = resolveComponent("el-popconfirm");
      return openBlock(), createBlock(
        _component_el_popconfirm,
        mergeProps(props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).reference ? {
            name: "reference",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "reference")
            ]),
            key: "0"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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