'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var select = require('./select.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: "GmSelect"
  },
  __name: "Select",
  props: select.selectProps,
  emits: select.selectEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(select.elSelectEmits, emit);
    const elRef = vue.ref();
    const exposeNames = ["focus", "blur"];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_select = vue.resolveComponent("el-select");
      return vue.openBlock(), vue.createBlock(
        _component_el_select,
        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(() => [
              vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
            ]),
            key: "0"
          } : void 0,
          vue.unref(slots).header ? {
            name: "header",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "header", {}, void 0, true)
            ]),
            key: "1"
          } : void 0,
          vue.unref(slots).footer ? {
            name: "footer",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
            ]),
            key: "2"
          } : void 0,
          vue.unref(slots).prefix ? {
            name: "prefix",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
            ]),
            key: "3"
          } : void 0,
          vue.unref(slots).empty ? {
            name: "empty",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "empty", {}, void 0, true)
            ]),
            key: "4"
          } : void 0,
          vue.unref(slots).tag ? {
            name: "tag",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "tag", {}, void 0, true)
            ]),
            key: "5"
          } : void 0,
          vue.unref(slots).loading ? {
            name: "loading",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "loading", {}, void 0, true)
            ]),
            key: "6"
          } : {
            name: "loading",
            fn: vue.withCtx(() => [
              (vue.openBlock(), vue.createElementBlock("svg", {
                class: "circular gm-inline gm-h-[30px] gm-w-[30px]",
                viewBox: "0 0 50 50"
              }, [
                vue.createElementVNode("circle", {
                  class: "path gm-stroke-2",
                  cx: "25",
                  cy: "25",
                  r: "20",
                  fill: "none"
                })
              ]))
            ]),
            key: "7"
          },
          vue.unref(slots).label ? {
            name: "label",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "label", vue.normalizeProps(vue.guardReactiveProps(slotValue)), void 0, true)
            ]),
            key: "8"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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