import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, unref, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { popperProps } from './popper.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmPopper"
  },
  __name: "Popper",
  props: popperProps,
  setup(__props, { expose: __expose }) {
    const slots = useSlots();
    const props = __props;
    const elRef = ref();
    const exposeNames = ["popperRef", "contentRef", "isFocusInsideContent", "updatePopper", "onOpen", "onClose", "hide"];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_popper = resolveComponent("el-popper");
      return openBlock(), createBlock(
        _component_el_popper,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "default")
            ]),
            key: "0"
          } : void 0,
          unref(slots).content ? {
            name: "content",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "content")
            ]),
            key: "1"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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