angular-input-masks
Version:
Personalized input masks for AngularJS
1 lines • 19.1 kB
JavaScript
!function i(s,u,o){function l(r,e){if(!u[r]){if(!s[r]){var n="function"==typeof require&&require;if(!e&&n)return n(r,!0);if(c)return c(r,!0);var a=new Error("Cannot find module '"+r+"'");throw a.code="MODULE_NOT_FOUND",a}var t=u[r]={exports:{}};s[r][0].call(t.exports,function(e){return l(s[r][1][e]||e)},t,t.exports,i,s,u,o)}return u[r].exports}for(var c="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,r,n){"use strict";r.exports=angular.module("ui.utils.masks",[e("./global/global-masks"),e("./br/br-masks")]).name},{"./br/br-masks":3,"./global/global-masks":14}],2:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i=new a("00000.00000 00000.000000 00000.000000 0 00000000000000");r.exports=t({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,47)},format:function(e){return 0===e.length?e:i.apply(e).replace(/[^0-9]$/,"")},validations:{brBoletoBancario:function(e){return 47===e.length}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],3:[function(e,r,n){"use strict";var a=angular.module("ui.utils.masks.br",[]).directive("uiBrBoletoBancarioMask",e("./boleto-bancario/boleto-bancario")).directive("uiBrCarPlateMask",e("./car-plate/car-plate")).directive("uiBrCepMask",e("./cep/cep")).directive("uiBrCnpjMask",e("./cnpj/cnpj")).directive("uiBrCpfMask",e("./cpf/cpf")).directive("uiBrCpfcnpjMask",e("./cpf-cnpj/cpf-cnpj")).directive("uiBrIeMask",e("./inscricao-estadual/ie")).directive("uiNfeAccessKeyMask",e("./nfe/nfe")).directive("uiBrPhoneNumberMask",e("./phone/br-phone"));r.exports=a.name},{"./boleto-bancario/boleto-bancario":2,"./car-plate/car-plate":4,"./cep/cep":5,"./cnpj/cnpj":6,"./cpf-cnpj/cpf-cnpj":7,"./cpf/cpf":8,"./inscricao-estadual/ie":9,"./nfe/nfe":10,"./phone/br-phone":11}],4:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i=new a("UUU-0000");r.exports=t({clearValue:function(e){return e.replace(/[^a-zA-Z0-9]/g,"").slice(0,7)},format:function(e){return(i.apply(e)||"").replace(/[^a-zA-Z0-9]$/,"")},validations:{carPlate:function(e){return 7===e.length}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],5:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i=new a("00000-000");r.exports=t({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,8)},format:function(e){return(i.apply(e)||"").replace(/[^0-9]$/,"")},validations:{cep:function(e){return 8===e.toString().trim().length}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],6:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("br-validations"),i=e("../../helpers/mask-factory"),s=new a("00.000.000/0000-00");r.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(s.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cnpj:function(e){return t.cnpj.validate(e)}}})},{"../../helpers/mask-factory":20,"br-validations":void 0,"string-mask":void 0}],7:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("br-validations"),i=e("../../helpers/mask-factory"),s=new a("00.000.000/0000-00"),u=new a("000.000.000-00");r.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(11<e.length?s.apply(e):u.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return 11<e.length||t.cpf.validate(e)},cnpj:function(e){return e.length<=11||t.cnpj.validate(e)}}})},{"../../helpers/mask-factory":20,"br-validations":void 0,"string-mask":void 0}],8:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("br-validations"),i=e("../../helpers/mask-factory"),s=new a("000.000.000-00");r.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,11)},format:function(e){return(s.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return t.cpf.validate(e)}}})},{"../../helpers/mask-factory":20,"br-validations":void 0,"string-mask":void 0}],9:[function(e,r,n){"use strict";var a=e("string-mask"),l=e("br-validations"),t={AC:[{mask:new a("00.000.000/000-00")}],AL:[{mask:new a("000000000")}],AM:[{mask:new a("00.000.000-0")}],AP:[{mask:new a("000000000")}],BA:[{chars:8,mask:new a("000000-00")},{mask:new a("0000000-00")}],CE:[{mask:new a("00000000-0")}],DF:[{mask:new a("00000000000-00")}],ES:[{mask:new a("00000000-0")}],GO:[{mask:new a("00.000.000-0")}],MA:[{mask:new a("000000000")}],MG:[{mask:new a("000.000.000/0000")}],MS:[{mask:new a("000000000")}],MT:[{mask:new a("0000000000-0")}],PA:[{mask:new a("00-000000-0")}],PB:[{mask:new a("00000000-0")}],PE:[{chars:9,mask:new a("0000000-00")},{mask:new a("00.0.000.0000000-0")}],PI:[{mask:new a("000000000")}],PR:[{mask:new a("000.00000-00")}],RJ:[{mask:new a("00.000.00-0")}],RN:[{chars:9,mask:new a("00.000.000-0")},{mask:new a("00.0.000.000-0")}],RO:[{mask:new a("0000000000000-0")}],RR:[{mask:new a("00000000-0")}],RS:[{mask:new a("000/0000000")}],SC:[{mask:new a("000.000.000")}],SE:[{mask:new a("00000000-0")}],SP:[{mask:new a("000.000.000.000")},{mask:new a("-00000000.0/000")}],TO:[{mask:new a("00000000000")}]};function i(s){function u(e){return e?e.replace(/[^0-9]/g,""):e}function o(e,r){var n=function(e,r){if(e&&t[e]){if("SP"===e&&/^P/i.test(r))return t.SP[1].mask;for(var n=t[e],a=0;n[a].chars&&n[a].chars<u(r).length&&a<n.length-1;)a++;return n[a].mask}}(r,e);if(!n)return e;var a=n.process(u(e)).result||"";return a=a.trim().replace(/[^0-9]$/,""),"SP"===r&&/^p/i.test(e)?"P"+a:a}return{restrict:"A",require:"ngModel",link:function(e,r,n,a){var t=(s(n.uiBrIeMask)(e)||"").toUpperCase();function i(e){if(a.$isEmpty(e))return e;var r=o(e,t),n=u(r);return a.$viewValue!==r&&(a.$setViewValue(r),a.$render()),t&&"SP"===t.toUpperCase()&&/^p/i.test(e)?"P"+n:n}a.$formatters.push(function(e){return a.$isEmpty(e)?e:o(e,t)}),a.$parsers.push(i),a.$validators.ie=function(e){return a.$isEmpty(e)||l.ie(t).validate(e)},e.$watch(n.uiBrIeMask,function(e){t=(e||"").toUpperCase(),i(a.$viewValue),a.$validate()})}}}i.$inject=["$parse"],r.exports=i},{"br-validations":void 0,"string-mask":void 0}],10:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i=new a("0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000");r.exports=t({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,44)},format:function(e){return(i.apply(e)||"").replace(/[^0-9]$/,"")},validations:{nfeAccessKey:function(e){return 44===e.length}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],11:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i={countryCode:new a("+00 (00) 0000-0000"),areaCode:new a("(00) 0000-0000"),simple:new a("0000-0000")},s={countryCode:new a("+00 (00) 00000-0000"),areaCode:new a("(00) 00000-0000"),simple:new a("00000-0000")},u={countryCode:null,areaCode:null,simple:new a("0000-000-0000")};r.exports=t({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,13)},format:function(e){return(0===e.indexOf("0800")?u.simple.apply(e):e.length<9?i.simple.apply(e)||"":e.length<10?s.simple.apply(e):e.length<11?i.areaCode.apply(e):e.length<12?s.areaCode.apply(e):e.length<13?i.countryCode.apply(e):s.countryCode.apply(e)).trim().replace(/[^0-9]$/,"")},getModelValue:function(e,r){var n=this.clearValue(e);return"number"===r?parseInt(n):n},validations:{brPhoneNumber:function(e){var r=e&&e.toString().length;return 8<=r&&r<=13}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],12:[function(e,r,n){"use strict";var a=e("string-mask"),t=e("../../helpers/mask-factory"),i=new a("0000 0000 0000 0000");r.exports=t({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,16)},format:function(e){return(i.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{creditCard:function(e){return 16===(e&&e.toString().length)}}})},{"../../helpers/mask-factory":20,"string-mask":void 0}],13:[function(e,r,n){"use strict";var u=e("date-fns/format"),o=e("date-fns/parse"),l=e("date-fns/isValid"),c=e("string-mask");var a={"pt-br":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","es-mx":"DD/MM/YYYY",es:"DD/MM/YYYY","en-us":"MM/DD/YYYY",en:"MM/DD/YYYY","fr-fr":"DD/MM/YYYY",fr:"DD/MM/YYYY",ru:"DD.MM.YYYY"};function t(e){var s=a[e.id]||"YYYY-MM-DD";return{restrict:"A",require:"ngModel",link:function(e,r,n,a){n.parse=n.parse||"true",s=n.uiDateMask||s;var t=new c(s.replace(/[YMD]/g,"0"));function i(e){if(a.$isEmpty(e))return null;var r=e;return("object"==typeof e||/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}([-+][0-9]{2}:[0-9]{2}|Z)$/.test(e.toString()))&&(r=u(e,s)),r=r.replace(/[^0-9]/g,""),(t.apply(r)||"").trim().replace(/[^0-9]$/,"")}a.$formatters.push(i),a.$parsers.push(function(e){if(a.$isEmpty(e))return e;var r=i(e);return a.$viewValue!==r&&(a.$setViewValue(r),a.$render()),"false"===n.parse?r:o(r,s,new Date)}),a.$validators.date=function(e,r){return!!a.$isEmpty(e)||l(o(r,s,new Date))&&r.length===s.length}}}}t.$inject=["$locale"],r.exports=t},{"date-fns/format":void 0,"date-fns/isValid":void 0,"date-fns/parse":void 0,"string-mask":void 0}],14:[function(e,r,n){"use strict";var a=angular.module("ui.utils.masks.global",[]).directive("uiCreditCardMask",e("./credit-card/credit-card")).directive("uiDateMask",e("./date/date")).directive("uiMoneyMask",e("./money/money")).directive("uiNumberMask",e("./number/number")).directive("uiPercentageMask",e("./percentage/percentage")).directive("uiScientificNotationMask",e("./scientific-notation/scientific-notation")).directive("uiTimeMask",e("./time/time"));r.exports=a.name},{"./credit-card/credit-card":12,"./date/date":13,"./money/money":15,"./number/number":16,"./percentage/percentage":17,"./scientific-notation/scientific-notation":18,"./time/time":19}],15:[function(e,r,n){"use strict";var k=e("string-mask"),$=e("../../helpers/validators"),h=e("../../helpers/pre-formatters");function a(v,g){return{restrict:"A",require:"ngModel",link:function(e,r,i,s){var a=v.NUMBER_FORMATS.DECIMAL_SEP,t=v.NUMBER_FORMATS.GROUP_SEP,u=v.NUMBER_FORMATS.CURRENCY_SYM,o=" ",l=g(i.uiMoneyMask)(e),c=!1;function n(e){var r=0<e?a+new Array(e+1).join("0"):"",n="#"+t+"##0"+r;return angular.isDefined(i.uiCurrencyAfter)?n+=o:n=o+n,new k(n,{reverse:!0})}r.bind("keydown keypress",function(e){c=8===e.which}),angular.isDefined(i.uiDecimalDelimiter)&&(a=i.uiDecimalDelimiter),angular.isDefined(i.uiThousandsDelimiter)&&(t=i.uiThousandsDelimiter),angular.isDefined(i.uiHideGroupSep)&&(t=""),angular.isDefined(i.uiHideSpace)&&(o=""),angular.isDefined(i.currencySymbol)&&(u=i.currencySymbol,0===i.currencySymbol.length&&(o="")),isNaN(l)&&(l=2);var p,f,m=n(l=parseInt(l));function d(e){if(s.$isEmpty(e))return null;var r,n=e.replace(/[^\d]+/g,"");if(n=(n=n.replace(/^[0]+([1-9])/,"$1"))||"0",c&&angular.isDefined(i.uiCurrencyAfter)&&0!==n&&(n=n.substring(0,n.length-1),c=!1),r=angular.isDefined(i.uiCurrencyAfter)?m.apply(n)+u:u+m.apply(n),angular.isDefined(i.uiNegativeNumber)){var a="-"===e[0];"-"===e.slice(-1)^a&&n&&(n*=-1,r="-"+r)}e!==r&&(s.$setViewValue(r),s.$render());var t=parseInt(r.replace(/[^\d\-]+/g,""));return isNaN(t)?null:(angular.isDefined(i.uiIntegerModel)||(t/=Math.pow(10,l)),t)}(s.$formatters.push(function(e){if(s.$isEmpty(e))return"";angular.isDefined(i.uiIntegerModel)&&(e/=Math.pow(10,l));var r=angular.isDefined(i.uiNegativeNumber)&&e<0?"-":"",n=h.prepareNumberToFormatter(e,l);return angular.isDefined(i.uiCurrencyAfter)?r+m.apply(n)+u:r+u+m.apply(n)}),s.$parsers.push(d),i.uiMoneyMask&&e.$watch(i.uiMoneyMask,function(e){l=isNaN(e)?2:e,l=parseInt(l),m=n(l),d(s.$viewValue)}),i.currency&&e.$watch(i.currency,function(e){u=e,m=n(l),d(s.$viewValue)}),i.min)&&(s.$validators.min=function(e){return $.minNumber(s,e,p)},e.$watch(i.min,function(e){p=e,s.$validate()}));i.max&&(s.$validators.max=function(e){return $.maxNumber(s,e,f)},e.$watch(i.max,function(e){f=e,s.$validate()}))}}}a.$inject=["$locale","$parse"],r.exports=a},{"../../helpers/pre-formatters":22,"../../helpers/validators":23,"string-mask":void 0}],16:[function(e,r,n){"use strict";var d=e("../../helpers/validators"),v=e("../../helpers/number-mask-builder"),g=e("../../helpers/pre-formatters");function a(f,m){return{restrict:"A",require:"ngModel",link:function(e,r,i,s){var n=f.NUMBER_FORMATS.DECIMAL_SEP,a=f.NUMBER_FORMATS.GROUP_SEP,t=m(i.uiNumberMask)(e);angular.isDefined(i.uiHideGroupSep)&&(a=""),isNaN(t)&&(t=2);var u,o,l=v.viewMask(t,n,a),c=v.modelMask(t);function p(e){if(s.$isEmpty(e))return null;var r=g.clearDelimitersAndLeadingZeros(e)||"0",n=l.apply(r),a=parseFloat(c.apply(r));if(angular.isDefined(i.uiNegativeNumber)){var t="-"===e[0];("-"===e.slice(-1)^t||"-"===e)&&(n="-"+(0!==(a*=-1)?n:""))}return s.$viewValue!==n&&(s.$setViewValue(n),s.$render()),a}(r.on("blur",function(){"-"===s.$viewValue&&(s.$setViewValue(""),s.$render())}),s.$formatters.push(function(e){if(s.$isEmpty(e))return e;var r=angular.isDefined(i.uiNegativeNumber)&&e<0?"-":"",n=g.prepareNumberToFormatter(e,t);return r+l.apply(n)}),s.$parsers.push(p),i.uiNumberMask&&e.$watch(i.uiNumberMask,function(e){t=isNaN(e)?2:e,l=v.viewMask(t,n,a),c=v.modelMask(t),p(s.$viewValue)}),i.min)&&(s.$validators.min=function(e){return d.minNumber(s,e,u)},e.$watch(i.min,function(e){u=e,s.$validate()}));i.max&&(s.$validators.max=function(e){return d.maxNumber(s,e,o)},e.$watch(i.max,function(e){o=e,s.$validate()}))}}}a.$inject=["$locale","$parse"],r.exports=a},{"../../helpers/number-mask-builder":21,"../../helpers/pre-formatters":22,"../../helpers/validators":23}],17:[function(e,r,n){"use strict";var $=e("../../helpers/validators"),h=e("../../helpers/number-mask-builder"),M=e("../../helpers/pre-formatters");function a(k){return{restrict:"A",require:"ngModel",link:function(e,r,s,u){var n=k.NUMBER_FORMATS.DECIMAL_SEP,i=!1;r.bind("keydown keypress",function(e){i=8===e.which});var a=k.NUMBER_FORMATS.GROUP_SEP;angular.isDefined(s.uiHideGroupSep)&&(a="");var o=" %";angular.isDefined(s.uiHidePercentageSign)?o="":angular.isDefined(s.uiHideSpace)&&(o="%");var l=parseInt(s.uiPercentageMask);isNaN(l)&&(l=2);var c={multiplier:100,decimalMask:2};angular.isDefined(s.uiPercentageValue)&&(c.multiplier=1,c.decimalMask=0);var t,p,f=l+c.decimalMask,m=h.viewMask(l,n,a),d=h.modelMask(f);function v(e){if(u.$isEmpty(e))return e;var r,n,a,t=angular.isDefined(s.uiNegativeNumber)&&e<0?"-":"",i=(r=e,n=l,a=c.multiplier,M.clearDelimitersAndLeadingZeros((parseFloat(r)*a).toFixed(n)));return t+m.apply(i)+o}function g(e){if(u.$isEmpty(e))return null;var r=M.clearDelimitersAndLeadingZeros(e)||"0";""!==o&&1<e.length&&-1===e.indexOf("%")&&(r=r.slice(0,r.length-1)),i&&1===e.length&&"%"!==e&&(r="0");var n=m.apply(r)+o,a=parseFloat(d.apply(r));if(angular.isDefined(s.uiNegativeNumber)){var t="-"===e[0];("-"===e.slice(-1)^t||"-"===e)&&(n="-"+(0!==(a*=-1)?n:""))}return u.$viewValue!==n&&(u.$setViewValue(n),u.$render()),a}(u.$formatters.push(v),u.$parsers.push(g),s.uiPercentageMask&&e.$watch(s.uiPercentageMask,function(e){l=isNaN(e)?2:e,f=l+c.decimalMask,m=h.viewMask(l,n,a),d=h.modelMask(f),g(v(u.$modelValue))}),s.min)&&(u.$validators.min=function(e){return $.minNumber(u,e,t)},e.$watch(s.min,function(e){t=e,u.$validate()}));s.max&&(u.$validators.max=function(e){return $.maxNumber(u,e,p)},e.$watch(s.max,function(e){p=e,u.$validate()}))}}}a.$inject=["$locale"],r.exports=a},{"../../helpers/number-mask-builder":21,"../../helpers/pre-formatters":22,"../../helpers/validators":23}],18:[function(e,r,n){"use strict";var a=e("string-mask");function t(e,n){var p=e.NUMBER_FORMATS.DECIMAL_SEP;return{restrict:"A",require:"ngModel",link:function(e,r,u,o){var l=n(u.uiScientificNotationMask)(e);isNaN(l)&&(l=2);var c=function(e){var r="0";if(0<e){r+=p;for(var n=0;n<e;n++)r+="0"}return new a(r,{reverse:!0})}(l);function i(e){if(o.$isEmpty(e))return e;var r,n;e="number"==typeof e?e.toExponential(l):e.toString().replace(p,".");var a,t={integerPartOfSignificand:(a=e.toString().match(/(-?[0-9]*)[\.]?([0-9]*)?[Ee]?([\+-]?[0-9]*)?/))[1],decimalPartOfSignificand:a[2],exponent:0|a[3]},i=t.integerPartOfSignificand||0,s=i.toString();return angular.isDefined(t.decimalPartOfSignificand)&&(s+=t.decimalPartOfSignificand),(1<=i||i<=-1)&&(angular.isDefined(t.decimalPartOfSignificand)&&t.decimalPartOfSignificand.length>l||0===l&&2<=s.length)&&(n=s.slice(l+1,s.length),s=s.slice(0,l+1)),r=c.apply(s),0!==t.exponent&&(n=t.exponent),angular.isDefined(n)&&(r+="e"+n),(angular.isDefined(u.uiNegativeNumber)&&"-"===e[0]?"-":"")+r}o.$formatters.push(i),o.$parsers.push(function(e){if(o.$isEmpty(e))return e;var r=/e-/.test(e),n=i(e.replace("e-","e")),a="-"===e.slice(-1);a^r&&(n=n.replace(/(e[-]?)/,"e-")),a&&r&&(n="-"!==n[0]?"-"+n:n.replace(/^(-)/,""));var t=parseFloat(n.replace(p,"."));return o.$viewValue!==n&&(o.$setViewValue(n),o.$render()),t}),o.$validators.max=function(e){return o.$isEmpty(e)||e<Number.MAX_VALUE}}}}t.$inject=["$locale","$parse"],r.exports=t},{"string-mask":void 0}],19:[function(e,r,n){"use strict";var l=e("string-mask");r.exports=function(){return{restrict:"A",require:"ngModel",link:function(e,r,n,i){var a="00:00:00";angular.isDefined(n.uiTimeMask)&&"short"===n.uiTimeMask&&(a="00:00");var s=a.length,t=a.replace(":","").length,u=new l(a);function o(e){if(i.$isEmpty(e))return e;var r=e.replace(/[^0-9]/g,"").slice(0,t)||"";return(u.apply(r)||"").replace(/[^0-9]$/,"")}i.$formatters.push(o),i.$parsers.push(function(e){if(i.$isEmpty(e))return e;var r=o(e),n=r;return i.$viewValue!==r&&(i.$setViewValue(r),i.$render()),n}),i.$validators.time=function(e){if(i.$isEmpty(e))return!0;var r=e.toString().split(/:/).filter(function(e){return!!e}),n=parseInt(r[0]),a=parseInt(r[1]),t=parseInt(r[2]||0);return e.toString().length===s&&n<24&&a<60&&t<60}}}}},{"string-mask":void 0}],20:[function(e,r,n){"use strict";r.exports=function(i){return function(){return{restrict:"A",require:"ngModel",link:function(e,r,n,t){t.$formatters.push(function(e){if(t.$isEmpty(e))return e;var r=i.clearValue(e.toString());return i.format(r)}),t.$parsers.push(function(e){if(t.$isEmpty(e))return e;var r=i.clearValue(e.toString()),n=i.format(r);if(t.$viewValue!==n&&(t.$setViewValue(n),t.$render()),angular.isUndefined(i.getModelValue))return r;var a=typeof t.$modelValue;return i.getModelValue(n,a)}),angular.forEach(i.validations,function(n,e){t.$validators[e]=function(e,r){return t.$isEmpty(e)||n(e,r)}})}}}}},{}],21:[function(e,r,n){"use strict";var i=e("string-mask");r.exports={viewMask:function(e,r,n){var a="#"+n+"##0";if(0<e){a+=r;for(var t=0;t<e;t++)a+="0"}return new i(a,{reverse:!0})},modelMask:function(e){var r="###0";if(0<e){r+=".";for(var n=0;n<e;n++)r+="0"}return new i(r,{reverse:!0})}}},{"string-mask":void 0}],22:[function(e,r,n){"use strict";function a(e){return"0"===e?"0":e.toString().replace(/^-/,"").replace(/^0*/,"").replace(/[^0-9]/g,"")}r.exports={clearDelimitersAndLeadingZeros:a,prepareNumberToFormatter:function(e,r){return a(parseFloat(e).toFixed(r))}}},{}],23:[function(e,r,n){"use strict";r.exports={maxNumber:function(e,r,n){var a=parseFloat(n,10);return e.$isEmpty(r)||isNaN(a)||r<=a},minNumber:function(e,r,n){var a=parseFloat(n,10);return e.$isEmpty(r)||isNaN(a)||a<=r}}},{}]},{},[1]);