'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var elementPlus = require('element-plus');
var mention = require('./mention.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: "GmMention"
  },
  __name: "Mention",
  props: mention.mentionProps,
  emits: mention.mentionEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(elementPlus.mentionEmits, emit);
    const elRef = vue.ref();
    const exposeNames = ["input", "tooltip", "dropdownVisible"];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_mention = vue.resolveComponent("el-mention");
      return vue.openBlock(), vue.createBlock(
        _component_el_mention,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, vue.toHandlers(vue.unref(elEvents))),
        vue.createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          vue.unref(slots).label ? {
            name: "label",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "label", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0,
          vue.unref(slots).loading ? {
            name: "loading",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "loading")
            ]),
            key: "1"
          } : void 0,
          vue.unref(slots).header ? {
            name: "header",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "header")
            ]),
            key: "2"
          } : void 0,
          vue.unref(slots).footer ? {
            name: "footer",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "footer")
            ]),
            key: "3"
          } : void 0,
          vue.unref(slots).prefix ? {
            name: "prefix",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "prefix")
            ]),
            key: "4"
          } : void 0,
          vue.unref(slots).suffix ? {
            name: "suffix",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "suffix")
            ]),
            key: "5"
          } : void 0,
          vue.unref(slots).prepend ? {
            name: "prepend",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "prepend")
            ]),
            key: "6"
          } : void 0,
          vue.unref(slots).append ? {
            name: "append",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "append")
            ]),
            key: "7"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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