const e=require("../_util/type.js"),t=require("../_util/props-util/initDefaultProps.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("../skeleton/Skeleton.js"),i=require("./Number.js"),a=require("./style/index.js");let o=require("vue");var s=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:e.someType([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:e.functionType(),formatter:e.anyType(),precision:Number,prefix:e.vNodeType(),suffix:e.vNodeType(),title:e.vNodeType(),loading:e.booleanType()}),c=(0,o.defineComponent)({compatConfig:{MODE:3},name:`AStatistic`,inheritAttrs:!1,props:t.default(s(),{decimalSeparator:`.`,groupSeparator:`,`,loading:!1}),slots:Object,setup(e,{slots:t,attrs:s}){let{prefixCls:c,direction:l}=n.default(`statistic`,e),[u,d]=a.default(c);return()=>{let{value:n=0,valueStyle:a,valueRender:f}=e,p=c.value,m=e.title??t.title?.(),h=e.prefix??t.prefix?.(),g=e.suffix??t.suffix?.(),_=e.formatter??t.formatter,v=(0,o.createVNode)(i.default,{"data-for-update":Date.now(),...e,prefixCls:p,value:n,formatter:_},null);return f&&(v=f(v)),u((0,o.createVNode)(`div`,{...s,class:[p,{[`${p}-rtl`]:l.value===`rtl`},s.class,d.value]},[m&&(0,o.createVNode)(`div`,{class:`${p}-title`},[m]),(0,o.createVNode)(r.default,{paragraph:!1,loading:e.loading},{default:()=>[(0,o.createVNode)(`div`,{style:a,class:`${p}-content`},[h&&(0,o.createVNode)(`span`,{class:`${p}-content-prefix`},[h]),v,g&&(0,o.createVNode)(`span`,{class:`${p}-content-suffix`},[g])])]})]))}}});exports.default=c,exports.statisticProps=s;