import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, unref, createVNode } from 'vue';
import '../../../../utils/index.mjs';
import VNodeRenderer from '../../common/VNodeRenderer.mjs';
import { statisticProps } from './statistic.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmStatistic"
  },
  __name: "Statistic",
  props: statisticProps,
  setup(__props, { expose: __expose }) {
    const slots = useSlots();
    const props = __props;
    const elRef = ref();
    const exposeEvents = ["displayValue"];
    const { exposeFns } = getGmExports(elRef, exposeEvents);
    __expose({
      elRef,
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_statistic = resolveComponent("el-statistic");
      return openBlock(), createBlock(
        _component_el_statistic,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).title ? {
            name: "title",
            fn: withCtx(() => [
              createVNode(unref(VNodeRenderer), {
                vnode: unref(slots).title?.()
              }, null, 8, ["vnode"])
            ]),
            key: "0"
          } : void 0,
          unref(slots).suffix ? {
            name: "suffix",
            fn: withCtx(() => [
              createVNode(unref(VNodeRenderer), {
                vnode: unref(slots).suffix?.()
              }, null, 8, ["vnode"])
            ]),
            key: "1"
          } : void 0,
          unref(slots).prefix ? {
            name: "prefix",
            fn: withCtx(() => [
              createVNode(unref(VNodeRenderer), {
                vnode: unref(slots).prefix?.()
              }, null, 8, ["vnode"])
            ]),
            key: "2"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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