Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.124/util/numericalOperations",["module","exports","require"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.limitValue=function limitValue({defaultValue:e,max:r,min:t,value:a}){if(isNaN(a)||a<t)return e;if(a>r)return r;return a},r.trimLeftZero=function trimLeftZero({decimalSymbol:r,thousandsSeparator:t,value:a}){if(a.length>1&&("0"===a[0]||a[0]===t)&&!a[1].match(e))return"0"===a[0]?a=a.replace("0",""):t&&(a=a.replace(t,"")),trimLeftZero({decimalSymbol:r,thousandsSeparator:t,value:a});return a};const e=/[\D]/g}}));
//# sourceMappingURL=numericalOperations.js.map