import{a as p}from"./widget-BUAABBRb.js";import{b as l}from"./convert-case-to-camel-case.utils-DDUpNI96.js";function f(e,o=",",r=0,a="."){const n=Number(e).toFixed(r).split(".");let t=n[0];const u=n[1]||"";return t=t.replace(/\B(?=(\d{3})+(?!\d))/g,o),r>0?t+a+u:t}const C=e=>({formatMinMax:l(()=>{var u,i,c,g,m,S;let r="",a="",n=0;const t=p();return e.value.fieldCurrency&&(r=((u=e.value.fieldCurrencySettings)==null?void 0:u.decimalSeparator)||".",a=((i=e.value.fieldCurrencySettings)==null?void 0:i.thousandsSeparator)||",",n=((c=e.value.fieldCurrencySettings)==null?void 0:c.numAfterInteger)||0),e.value.useCurrency&&(r=((g=t.getCurrencySettings)==null?void 0:g.decimalSeparator)||".",a=((m=t.getCurrencySettings)==null?void 0:m.thousandsSeparator)||",",n=((S=t.getCurrencySettings)==null?void 0:S.numAfterInteger)||0),s=>s<1e3?s.toString():f(s,a,n,r)})});export{C as u};
//# sourceMappingURL=useFieldsExtraOptions-BAS3Fj_1.js.map
