"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("lodash-unified"),l=require("../../ap-field/number/helper.js"),r=require("../../utils/format.js");function d(e){if(t.isNil(e.value))return e.emptyText||"--";const a=t.isString(e.prefix)?`${e.prefix} `:"",c=t.isString(e.addonAfter)?` ${e.addonAfter}`:"",n=e.precision?r.roundWith(e.value,e.precision):e.value;let i=e.thousands?r.toDecimalMark(n):String(n);return e.precision&&e.limitDecimalsRetain&&(i=l.addZeroToDecimalPlaces(i,e.precision)),`${a}${i}${c}`}exports.numberRenderer=d;
