import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, createSlots, withCtx, unref, renderSlot, normalizeProps, guardReactiveProps } from 'vue';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmMain"
  },
  __name: "Main",
  setup(__props, { expose: __expose }) {
    const slots = useSlots();
    const elRef = ref();
    __expose({
      elRef
    });
    return (_ctx, _cache) => {
      const _component_el_main = resolveComponent("el-main");
      return openBlock(), createBlock(
        _component_el_main,
        {
          ref_key: "elRef",
          ref: elRef
        },
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx((slotValue) => [
              renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0
        ]),
        1536
        /* NEED_PATCH, DYNAMIC_SLOTS */
      );
    };
  }
});

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