'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var elementPlus = require('element-plus');
var autocomplete = require('./autocomplete.js');
var event = require('../../../../utils/src/elementPlus/event.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmAutocomplete"
  },
  __name: "Autocomplete",
  props: autocomplete.autocompleteProps,
  emits: autocomplete.autocompleteEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(elementPlus.autocompleteEmits, emit);
    const elRef = vue.ref();
    __expose({
      elRef
    });
    return (_ctx, _cache) => {
      const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
      return vue.openBlock(), vue.createBlock(
        _component_el_autocomplete,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, vue.toHandlers(vue.unref(elEvents))),
        vue.createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          vue.unref(slots).default ? {
            name: "default",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0,
          vue.unref(slots).prefix ? {
            name: "prefix",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "prefix", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "1"
          } : void 0,
          vue.unref(slots).suffix ? {
            name: "suffix",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "suffix", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "2"
          } : void 0,
          vue.unref(slots).prepend ? {
            name: "prepend",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "prepend", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "3"
          } : void 0,
          vue.unref(slots).append ? {
            name: "append",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "append", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "4"
          } : void 0,
          vue.unref(slots).loading ? {
            name: "loading",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "loading", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "5"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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