'use strict';

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

var vue = require('vue');
require('../../../../utils/index.js');
var datePickerPanel = require('./datePickerPanel.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: "GmDatePickerPanel"
  },
  __name: "DatePickerPanel",
  props: datePickerPanel.datePickerPanelProps,
  emits: datePickerPanel.datePickerPanelEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = vue.useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = event.getGmEvent(datePickerPanel.datePickerPanelEmits, emit);
    const elRef = vue.ref();
    const exposeNames = [];
    const { exposeFns } = exports$1.getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_date_picker_panel = vue.resolveComponent("el-date-picker-panel");
      return vue.openBlock(), vue.createBlock(
        _component_el_date_picker_panel,
        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")
            ]),
            key: "0"
          } : void 0,
          vue.unref(slots)["prev-month"] ? {
            name: "prev-month",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "prev-month")
            ]),
            key: "1"
          } : void 0,
          vue.unref(slots)["next-month"] ? {
            name: "next-month",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "next-month")
            ]),
            key: "2"
          } : void 0,
          vue.unref(slots)["prev-year"] ? {
            name: "prev-year",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "prev-year")
            ]),
            key: "3"
          } : void 0,
          vue.unref(slots)["next-year"] ? {
            name: "next-year",
            fn: vue.withCtx(() => [
              vue.renderSlot(_ctx.$slots, "next-year")
            ]),
            key: "4"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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