import{u as p}from"./settingsStore-8bwiLMEn.js";import{e as l}from"./vendor-vue-runtime-core-DwK6Ry68.js";function f(t,o=",",r=0,u="."){const n=Number(t).toFixed(r).split(".");let e=n[0];const a=n[1]||"";return e=e.replace(/\B(?=(\d{3})+(?!\d))/g,o),r>0?e+u+a:e}const C=t=>({formatMinMax:l(()=>{var a,i,c,g,m,S;let r="",u="",n=0;const e=p();return t.value.fieldCurrency&&(r=((a=t.value.fieldCurrencySettings)==null?void 0:a.decimalSeparator)||".",u=((i=t.value.fieldCurrencySettings)==null?void 0:i.thousandsSeparator)||",",n=((c=t.value.fieldCurrencySettings)==null?void 0:c.numAfterInteger)||0),t.value.useCurrency&&(r=((g=e.getCurrencySettings)==null?void 0:g.decimalSeparator)||".",u=((m=e.getCurrencySettings)==null?void 0:m.thousandsSeparator)||",",n=((S=e.getCurrencySettings)==null?void 0:S.numAfterInteger)||0),s=>s<1e3?s.toString():f(s,u,n,r)})});export{C as u};
//# sourceMappingURL=useFieldsExtraOptions-BNwbfzEK.js.map
