import{createVNode as i}from"vue";const f=p=>{const{value:s,formatter:o,precision:t,decimalSeparator:d,groupSeparator:m="",prefixCls:n}=p;let a;if(typeof o=="function")a=o({value:s});else{const r=String(s),l=r.match(/^(-?)(\d*)(\.(\d+))?$/);if(!l)a=r;else{const u=l[1];let c=l[2]||"0",e=l[4]||"";c=c.replace(/\B(?=(\d{3})+(?!\d))/g,m),typeof t=="number"&&(e=e.padEnd(t,"0").slice(0,t>0?t:0)),e&&(e=`${d}${e}`),a=[i("span",{key:"int",class:`${n}-content-value-int`},[u,c]),e&&i("span",{key:"decimal",class:`${n}-content-value-decimal`},[e])]}}return i("span",{class:`${n}-content-value`},[a])};f.displayName="StatisticNumber";export{f as default};
