import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref, createSlots, withCtx, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { datePickerPanelEmits, datePickerPanelProps } from './datePickerPanel.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmDatePickerPanel"
  },
  __name: "DatePickerPanel",
  props: datePickerPanelProps,
  emits: datePickerPanelEmits,
  setup(__props, { expose: __expose, emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(datePickerPanelEmits, emit);
    const elRef = ref();
    const exposeNames = [];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_date_picker_panel = resolveComponent("el-date-picker-panel");
      return openBlock(), createBlock(
        _component_el_date_picker_panel,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "default")
            ]),
            key: "0"
          } : void 0,
          unref(slots)["prev-month"] ? {
            name: "prev-month",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "prev-month")
            ]),
            key: "1"
          } : void 0,
          unref(slots)["next-month"] ? {
            name: "next-month",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "next-month")
            ]),
            key: "2"
          } : void 0,
          unref(slots)["prev-year"] ? {
            name: "prev-year",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "prev-year")
            ]),
            key: "3"
          } : void 0,
          unref(slots)["next-year"] ? {
            name: "next-year",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "next-year")
            ]),
            key: "4"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=DatePickerPanel.vue2.mjs.map
