PageSourceSearch

https://sympti.com/default~admin-admin-module~main-modules-authent…lities~3aa196aa-es5.ab025b64a491d3eca26c.js

js sympti.com collected 2026-10-07 13:37:36 UTC 24,700 bytes, 1 lines download raw bytes

1!function(){function e(){return(e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,i,s){var r=t(e,i);if(r){var n=Object.getOwnPropertyDescriptor(r,i);return n.get?n.get.call(arguments.length<3?e:s):n.value}}).apply(this,arguments)}function t(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,s=n(e);if(t){var a=n(this).constructor;i=Reflect.construct(s,arguments,a)}else i=s.apply(this,arguments);return r(this,i)}}function r(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var s,r,n=[],a=!0,h=!1;try{for(i=i.call(e);!(a=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(o){h=!0,r=o}finally{try{a||null==i.return||i.return()}finally{if(h)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function c(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{tmjD:function(t,r,h){"use strict";h.d(r,"a",(function(){return E})),h.d(r,"b",(function(){return w}));var l,u,f=h("fXoL"),p=h("b1EX"),m=h("ofXK"),k=h("3Pt+"),v=new f.q("config"),d=new f.q("NEW_CONFIG"),_=new f.q("INITIAL_CONFIG"),g={suffix:"",prefix:"",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},S=["percent","Hh:m0:s0","Hh:m0","Hh","m0:s0","s0","m0","separator","dot_separator","comma_separator","d0/M0/0000","d0/M0","d0","M0"],x=function(e){return e.SEPARATOR="separator",e.COMMA_SEPARATOR="comma_separator",e.DOT_SEPARATOR="dot_separator",e}({}),y=function(){var e=function(){function e(t){o(this,e),this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this.separator=function(e,t,i,s){for(var r=(e+="").split(i),n=r.length>1?"".concat(i).concat(r[1]):"",a=r[0],h=/(\d+)(\d{3})/;h.test(a);)a=a.replace(h,"$1"+t+"$2");return void 0===s?a+n:0===s?a:a+n.substr(0,s+1)},this.percentage=function(e){return Number(e)>=0&&Number(e)<=100}
1,this.getPrecision=function(e){var t=e.split(".");return t.length>1?Number(t[t.length-1]):1/0},this.checkInputPrecision=function(e,t,i){if(t<1/0){var s;s="."===i?new RegExp("\\.\\d{".concat(t,"}.*$")):new RegExp(",\\d{".concat(t,"}.*$"));var r=e.match(s);(r&&r[0].length-1>t||0===t&&e.endsWith(i))&&(e=e.substring(0,e.length-1))}return e},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.validation=this._config.validation}return c(e,[{key:"applyMaskWithPattern",value:function(e,t){var i=a(t,2),s=i[0],r=i[1];return this.customPattern=r,this.applyMask(e,s)}},{key:"applyMask",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(null==e||void 0===t)return"";var r=0,n="",a=!1,h=!1,o=1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length));var l=e.toString().split("");if("IP"===t&&(this.ipError=!!(l.filter((function(e){return"."===e})).length<3&&l.length<7),t="099.099.099.099"),t.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/]/)){e=this._checkInput(e);var c=this.getPrecision(t);e=this.checkInputPrecision(e,c,".")}n=this.percentage(e)?e:e.substring(0,e.length-1)}else if(t.startsWith(x.SEPARATOR)||t.startsWith(x.DOT_SEPARATOR)||t.startsWith(x.COMMA_SEPARATOR)){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/))&&(e=this._checkInput(e));var u,f=this.getPrecision(t);t.startsWith(x.SEPARATOR)&&e.includes(",")&&e.endsWith(",")&&e.indexOf(",")!==e.lastIndexOf(",")&&(e=e.substring(0,e.length-1)),t.startsWith(x.DOT_SEPARATOR)&&(-1!==e.indexOf(".")&&e.indexOf(".")===e.lastIndexOf(".")&&e.indexOf(".")>3&&(e=e.replace(".",",")),e=e.length>1&&"0"===e[0]&&","!==e[1]?e.slice(1,e.length):e),t.startsWith(x.COMMA_SEPARATOR)&&(e=e.length>1&&"0"===e[0]&&"."!==e[1]?e.slice(1,e.length):e),t.startsWith(x.SEPARATOR)?(e.match(/[@#!$%^&*()_+|~=`{}\[\]:.";<>?\/]/)&&(e=e.substring(0,e.length-1)),u=(e=this.checkInputPrecision(e,f,",")).replace(/\s/g,""),n=this.separator(u," ",",",f)):t.startsWith(x.DOT_SEPARATOR)?(e.match(/[@#!$%^&*()_+|~=`{}\[\]:\s";<>?\/]/)&&(e=e.substring(0,e.length-1)),u=(e=this.checkInputPrecision(e,f,",")).replace(/\./g,""),n=this.separator(u,".",",",f)):t.startsWith(x.COMMA_SEPARATOR)&&(u=e.replace(/,/g,""),n=this.separator(u,",",".",f));var p=n.indexOf(",")-e.indexOf(","),m=n.length-e.length;if(m>0&&","!==n[i]){h=!0;var k=0;do{this._shift.add(i+k),k++}while(k<m)}else 0!==p&&i>0&&!(n.indexOf(",")>=i&&i>3)||!(n.indexOf(".")>=i&&i>3)&&m<=0?(this._shift.clear(),h=!0,o=m,this._shift.add(i+=m)):this._shift.clear()}else for(var v=0,d=l[0];v<l.length&&r!==t.length;d=l[++v])if(this._checkSymbolMask(d,t[r])&&"?"===t[r+1])n+=d,r+=2;else if("*"===t[r+1]&&a&&this._checkSymbolMask(d,t[r+2]))n+=d,r+=3,a=!1;else if(this._checkSymbolMask(d,t[r])&&"*"===t[r+1])n+=d,a=!0;else if("?"===t[r+1]&&this._checkSymbolMask(d,t[r+2]))n+=d,r+=3;else if(this._checkSymbolMask(d,t[r])||this.hiddenInput&&this.maskAvailablePatterns[t[r]]&&this.maskAvailablePatterns[t[r]].symbol===d){if("H"===t[r]&&Number(d)>2){r+=1;var _=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(_+this.prefix.length||0),v--;continue}if("h"===t[r]&&"2"===n&&Number(d)>3)continue;if("m"===t[r]&&Number(d)>5){r+=1;var g=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(g+this.prefix.length||0),v--;continue}if("s"===t[r]&&Number(d)>5){r+=1;var S=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(S+this.prefix.length||0),v--;continue}if("d"===t[r]&&Number(d)>3){r+=1;var y=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(y+this.prefix.length||0),v--;continue}if("d"===t[r-1]&&Number(e.slice(r-1,r+1))>31)continue;if("M"===t[r]&&Number(d)>1){r+=1;var b=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(b+this.prefix.length||0),v--;continue}if("M"===t[r-1]&&Number(e.slice(r-1,r+1))>12)continue;n+=d,r++}else if(-1!==this.maskSpecialCharacters.indexOf(t[r])){n+=t[r],r++;var E=/[*?]/g.test(t.slice(0,r))?l.length:r;this._shift.add(E+this.prefix.length||0),v--}else this.maskSpecialCharacters.indexOf(d)>-1&&this.maskAvailablePatterns[t[r]]&&this.maskAvailablePatterns[t[r]].optional?(r++,v--):("*"===this.maskExpression[r+1
1]&&this._findSpecialChar(this.maskExpression[r+2])&&this._findSpecialChar(d)===this.maskExpression[r+2]&&a||"?"===this.maskExpression[r+1]&&this._findSpecialChar(this.maskExpression[r+2])&&this._findSpecialChar(d)===this.maskExpression[r+2]&&a)&&(r+=3,n+=d);n.length+1===t.length&&-1!==this.maskSpecialCharacters.indexOf(t[t.length-1])&&(n+=t[t.length-1]);for(var w=i+1;this._shift.has(w);)o++,w++;s(this._shift.has(i)?o:0,h),o<0&&this._shift.clear();var M=this.suffix?"".concat(this.prefix).concat(n).concat(this.suffix):"".concat(this.prefix).concat(n);return 0===n.length&&(M="".concat(this.prefix).concat(n)),M}},{key:"_findSpecialChar",value:function(e){return this.maskSpecialCharacters.find((function(t){return t===e}))}},{key:"_checkSymbolMask",value:function(e,t){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[t]&&this.maskAvailablePatterns[t].pattern&&this.maskAvailablePatterns[t].pattern.test(e)}},{key:"_checkInput",value:function(e){return e.split("").filter((function(e){return e.match("\\d")||"."===e||","===e})).join("")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.bc(v))},e.\u0275prov=f.Jb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),b=function(){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(h,t);var r=s(h);function h(e,t,i,s){var n;return o(this,h),(n=r.call(this,t)).document=e,n._config=t,n._elementRef=i,n._renderer=s,n.validation=!0,n.maskExpression="",n.isNumberValue=!1,n.showMaskTyped=!1,n.maskIsShown="",n.selStart=null,n.selEnd=null,n.onChange=function(e){},n._formElement=n._elementRef.nativeElement,n}return c(h,[{key:"applyMask",value:function(t,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(!i)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;var a=t&&"number"==typeof this.selStart?t[this.selStart]:"",o="";if(void 0!==this.hiddenInput){var l=this.actualValue.split("");""!==t&&l.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>l.length?l.splice(this.selStart,0,a):t.length<l.length&&(l.length-t.length==1?l.splice(this.selStart-1,1):l.splice(this.selStart,this.selEnd-this.selStart))):l=[],o=this.actualValue.length?this.shiftTypedSymbols(l.join("")):t}o=Boolean(o)&&o.length?o:t;var c=e(n(h.prototype),"applyMask",this).call(this,o,i,s,r);if(this.actualValue=this.getActualValue(c),(this.maskExpression.startsWith(x.SEPARATOR)||this.maskExpression.startsWith(x.DOT_SEPARATOR))&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter((function(e){return","!==e}))),this.maskExpression.startsWith(x.COMMA_SEPARATOR)&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter((function(e){return"."!==e}))),this.formControlResult(c),!this.showMaskTyped)return this.hiddenInput&&c&&c.length?this.hideInput(c,this.maskExpression):c;var u=this.prefix+this.maskIsShown;return c+("IP"===this.maskExpression?u:u.slice(c.length))}},{key:"applyValueChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this._formElement.value=this.applyMask(this._formElement.value,this.maskExpression,e,t),this._formElement!==this.document.activeElement&&this.clearIfNotMatchFn()}},{key:"hideInput",value:function(e,t){var i=this;return e.split("").map((function(e,s){return i.maskAvailablePatterns&&i.maskAvailablePatterns[t[s]]&&i.maskAvailablePatterns[t[s]].symbol?i.maskAvailablePatterns[t[s]].symbol:e})).join("")}},{key:"getActualValue",value:function(e){var t=this,i=e.split("").filter((function(e,i){return t._checkSymbolMask(e,t.maskExpression[i])||t.maskSpecialCharacters.includes(t.maskExpression[i])&&e===t.maskExpression[i]}));return i.join("")===e?i.join(""):e}}
1,{key:"shiftTypedSymbols",value:function(e){var t=this,i="";return(e&&e.split("").map((function(s,r){if(t.maskSpecialCharacters.includes(e[r+1])&&e[r+1]!==t.maskExpression[r+1])return i=s,e[r+1];if(i.length){var n=i;return i="",n}return s}))||[]).join("")}},{key:"showMaskInInput",value:function(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}return this.showMaskTyped?e?this._checkForIp(e):this.maskExpression.replace(/\w/g,"_"):""}},{key:"clearIfNotMatchFn",value:function(){this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==this._formElement.value.length&&(this.formElementProperty=["value",""],this.applyMask(this._formElement.value,this.maskExpression))}},{key:"formElementProperty",set:function(e){var t=a(e,2),i=t[0],s=t[1];this._renderer.setProperty(this._formElement,i,s)}},{key:"checkSpecialCharAmount",value:function(e){var t=this;return e.split("").filter((function(e){return t._findSpecialChar(e)})).length}},{key:"_checkForIp",value:function(e){if("#"===e)return"_._._._";for(var t=[],i=0;i<e.length;i++)e[i].match("\\d")&&t.push(e[i]);return t.length<=3?"_._._":t.length>3&&t.length<=6?"_._":t.length>6&&t.length<=9?"_":""}},{key:"formControlResult",value:function(e){Array.isArray(this.dropSpecialCharacters)?this.onChange(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters)):this.onChange(this.dropSpecialCharacters?this._checkSymbols(e):this._removeSuffix(this._removePrefix(e)))}},{key:"_removeMask",value:function(e,t){return e?e.replace(this._regExpForRemove(t),""):e}},{key:"_removePrefix",value:function(e){return this.prefix&&e?e.replace(this.prefix,""):e}},{key:"_removeSuffix",value:function(e){return this.suffix&&e?e.replace(this.suffix,""):e}},{key:"_regExpForRemove",value:function(e){return new RegExp(e.map((function(e){return"\\"+e})).join("|"),"gi")}},{key:"_checkSymbols",value:function(e){var t=this.testFn(x.SEPARATOR,this.maskExpression);return t&&this.isNumberValue?""===e?e:","===e?null:Number(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters).replace(",",".")):(t=this.testFn(x.DOT_SEPARATOR,this.maskExpression))&&this.isNumberValue?""===e?e:","===e?null:Number(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters).replace(",",".")):(t=this.testFn(x.COMMA_SEPARATOR,this.maskExpression))&&this.isNumberValue?""===e?e:"."===e?null:Number(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)):this.isNumberValue?""===e?e:Number(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)):-1!==this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters).indexOf(",")?this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters).replace(",","."):this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}},{key:"testFn",value:function(e,t){var i=t.match(new RegExp("^".concat(e,"\\.([^d]*)")));return i?Number(i[1]):null}}]),h}(y);return t.\u0275fac=function(e){return new(e||t)(f.bc(m.d),f.bc(v),f.bc(f.l),f.bc(f.E))},t.\u0275prov=f.Jb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),E=function(){var e=l=function(){function e(t,i){o(this,e),this.document=t,this._maskService=i,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this._position=null,this.onChange=function(e){},this.onTouch=function(){}}return c(e,[{key:"ngOnChanges",value:function(e){var t=e.maskExpression,i=e.specialCharacters,s=e.patterns,r=e.prefix,n=e.suffix,a=e.dropSpecialCharacters,h=e.hiddenInput,o=e.showMaskTyped,l=e.shownMaskExpression,c=e.showTemplate,u=e.clearIfNotMatch,f=e.validation;
1if(t&&(this._maskValue=e.maskExpression.currentValue||""),i){if(!i.currentValue||!Array.isArray(i.currentValue)||Array.isArray(i.currentValue)&&!i.currentValue.length)return;this._maskService.maskSpecialCharacters=e.specialCharacters.currentValue||""}s&&(this._maskService.maskAvailablePatterns=s.currentValue),r&&(this._maskService.prefix=r.currentValue),n&&(this._maskService.suffix=n.currentValue),a&&(this._maskService.dropSpecialCharacters=a.currentValue),h&&(this._maskService.hiddenInput=h.currentValue),o&&(this._maskService.showMaskTyped=o.currentValue),l&&(this._maskService.shownMaskExpression=l.currentValue),c&&(this._maskService.showTemplate=c.currentValue),u&&(this._maskService.clearIfNotMatch=u.currentValue),f&&(this._maskService.validation=f.currentValue),this._applyMask()}},{key:"validate",value:function(e){var t=this,i=e.value;if(!this._maskService.validation)return null;if(this._maskService.ipError)return{"Mask error":!0};if(this._maskValue.startsWith("dot_separator")||this._maskValue.startsWith("comma_separator"))return null;if(S.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(i&&i.toString().length>=1){var s=0,r=function(e){if(t._maskService.maskAvailablePatterns[e].optional&&!0===t._maskService.maskAvailablePatterns[e].optional){if(t._maskValue.indexOf(e)!==t._maskValue.lastIndexOf(e)?s+=t._maskValue.split("").filter((function(t){return t===e})).join("").length:-1!==t._maskValue.indexOf(e)&&s++,-1!==t._maskValue.indexOf(e)&&i.toString().length>=t._maskValue.indexOf(e))return{v:null};if(s===t._maskValue.length)return{v:null}}};for(var n in this._maskService.maskAvailablePatterns){var a=r(n);if("object"==typeof a)return a.v}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return null;if(this._maskValue.indexOf("*")>1&&i.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&i.toString().length<this._maskValue.indexOf("?"))return{"Mask error":!0};if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){var h=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-s:this._maskValue.length-s;if(i.toString().length<h)return{"Mask error":!0}}}return null}},{key:"onInput",value:function(e){var t=e.target;if(this._inputValue=t.value,this._maskValue){var i=1===t.selectionStart?t.selectionStart+this._maskService.prefix.length:t.selectionStart,s=0,r=!1;this._maskService.applyValueChanges(i,(function(e,t){s=e,r=t})),this.document.activeElement===t&&(this._position=1===this._position&&1===this._inputValue.length?null:this._position,t.selectionStart=t.selectionEnd=null!==this._position?this._position:i+("Backspace"!==this._code||r?s:0),this._position=null)}else this.onChange(t.value)}},{key:"onBlur",value:function(){this._maskService.clearIfNotMatchFn(),this.onTouch()}},{key:"onFocus",value:function(e){var t=e.target;null!==t&&null!==t.selectionStart&&t.selectionStart===t.selectionEnd&&t.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),(t.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===t.value||t.setSelectionRange&&this._maskService.maskIsShown!==t.value)&&(t.focus(),t.setSelectionRange(0,0)),this._inputValue.match("[w\u0430-\u044f\u0410-\u042f]")||this._inputValue.match("[a-z]|[A-Z]")),t.value=t.value&&t.value!==this._maskService.prefix?t.value:this._maskService.prefix+this._maskService.maskIsShown,(t.selectionStart||t.selectionEnd)<=this._maskService.prefix.length&&(t.selectionStart=this._maskService.prefix.length)}},{key:"a",value:function(e){this._code=e.code?e.code:e.key;var t=e.target;if(this._maskService.selStart=t.selectionStart,this._maskService.selEnd=t.selectionEnd,38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode){37===e.keyCode&&(t.selectionStart=t.selectionEnd-1),8===e.keyCode&&0===t.value.length&&(t.selectionStart=t.selectionEnd),t.selectionStart<=this._maskService.prefix.length&&t.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();var i=t.selectionStart;8===e.keyCode&&0===i&&t.selectionEnd===t.value.length&&0!==t.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyM
1ask(this._maskService.prefix,this._maskService.maskExpression,this._position))}}},{key:"onPaste",value:function(){this._position=Number.MAX_SAFE_INTEGER}},{key:"writeValue",value:function(e){return Object(p.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e=this._maskValue.startsWith("dot_separator")?e.replace(".",","):e,this._maskService.isNumberValue=!0),this._maskService.formElementProperty=e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?["value",this._maskService.applyMask(e,this._maskService.maskExpression)]:["value",e],this._inputValue=e;case 1:case"end":return t.stop()}}),t,this)})))}},{key:"registerOnChange",value:function(e){this.onChange=e,this._maskService.onChange=this.onChange}},{key:"registerOnTouched",value:function(e){this.onTouch=e}},{key:"setDisabledState",value:function(e){this._maskService.formElementProperty=["disabled",e]}},{key:"_repeatPatternSymbols",value:function(e){var t=this;return e.match(/{[0-9]+}/)&&e.split("").reduce((function(i,s,r){if(t._start="{"===s?r:t._start,"}"!==s)return t._maskService._findSpecialChar(s)?i+s:i;t._end=r;var n=Number(e.slice(t._start+1,t._end));return i+new Array(n+1).join(e[t._start-1])}),"")||e}},{key:"_applyMask",value:function(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.Nb(m.d),f.Nb(b))},e.\u0275dir=f.Ib({type:e,selectors:[["","mask",""]],hostBindings:function(e,t){1&e&&f.dc("input",(function(e){return t.onInput(e)}))("blur",(function(){return t.onBlur()}))("click",(function(e){return t.onFocus(e)}))("keydown",(function(e){return t.a(e)}))("paste",(function(){return t.onPaste()}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation"},features:[f.yb([{provide:k.l,useExisting:Object(f.U)((function(){return l})),multi:!0},{provide:k.k,useExisting:Object(f.U)((function(){return l})),multi:!0},b]),f.xb]}),e}(),w=function(){var e=u=function(){function e(){o(this,e)}return c(e,null,[{key:"forRoot",value:function(e){return{ngModule:u,providers:[{provide:d,useValue:e},{provide:_,useValue:g},{provide:v,useFactory:M,deps:[_,d]},y]}}},{key:"forChild",value:function(e){return{ngModule:u}}}]),e}();return e.\u0275mod=f.Lb({type:e}),e.\u0275inj=f.Kb({factory:function(t){return new(t||e)}}),e}();function M(e,t){return Object.assign({},e,t instanceof Function?t():t)}}}])}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.