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