import { defineComponent, useSlots, resolveComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, createSlots, withCtx, unref, renderSlot } from 'vue';
import { resultProps } from './result.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmResult"
  },
  __name: "Result",
  props: resultProps,
  setup(__props) {
    const slots = useSlots();
    const props = __props;
    return (_ctx, _cache) => {
      const _component_el_result = resolveComponent("el-result");
      return openBlock(), createBlock(
        _component_el_result,
        normalizeProps(guardReactiveProps(props)),
        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)["sub-title"] ? {
            name: "sub-title",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "sub-title")
            ]),
            key: "2"
          } : void 0,
          unref(slots).extra ? {
            name: "extra",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "extra")
            ]),
            key: "3"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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