import { defineComponent, useSlots, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref, createSlots, withCtx, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { pageHeaderEmits } from 'element-plus';
import { pageHeaderEmits as pageHeaderEmits$1, pageHeaderProps } from './pageHeader.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmPageHeader"
  },
  __name: "PageHeader",
  props: pageHeaderProps,
  emits: pageHeaderEmits$1,
  setup(__props, { emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(pageHeaderEmits, emit);
    return (_ctx, _cache) => {
      const _component_el_page_header = resolveComponent("el-page-header");
      return openBlock(), createBlock(
        _component_el_page_header,
        mergeProps({ ref: "elRef" }, props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).icon ? {
            name: "icon",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "icon")
            ]),
            key: "0"
          } : void 0,
          unref(slots).title ? {
            name: "title",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "title")
            ]),
            key: "1"
          } : void 0,
          unref(slots).content ? {
            name: "content",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "content")
            ]),
            key: "2"
          } : void 0,
          unref(slots).extra ? {
            name: "extra",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "extra")
            ]),
            key: "3"
          } : void 0,
          unref(slots).breadcrumb ? {
            name: "breadcrumb",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "breadcrumb")
            ]),
            key: "4"
          } : void 0,
          unref(slots).default ? {
            name: "default",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "default")
            ]),
            key: "5"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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