'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var elementPlus = require('element-plus');
var carousel = require('./carousel.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: "GmCarousel"
  },
  __name: "Carousel",
  props: carousel.carouselProps,
  emits: carousel.carouselEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(elementPlus.carouselEmits, emit);
    const elRef = vue.ref();
    const exposeEvents = ["activeIndex", "setActiveItem", "prev", "next"];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeEvents);
    __expose({
      elRef,
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_carousel = vue.resolveComponent("el-carousel");
      return vue.openBlock(), vue.createBlock(
        _component_el_carousel,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, vue.toHandlers(vue.unref(elEvents))),
        {
          default: vue.withCtx(() => [
            vue.unref(slots).default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("v-if", true)
          ]),
          _: 3
          /* FORWARDED */
        },
        16
        /* FULL_PROPS */
      );
    };
  }
});

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