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