!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("primeng/dom"),require("primeng/inputtext"),require("@angular/forms")):"function"==typeof define&&define.amd?define("primeng/inputmask",["exports","@angular/core","@angular/common","primeng/dom","primeng/inputtext","@angular/forms"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).primeng=t.primeng||{},t.primeng.inputmask={}),t.ng.core,t.ng.common,t.primeng.dom,t.primeng.inputtext,t.ng.forms)}(this,(function(t,e,i,n,s,o){"use strict";var a={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return r})),multi:!0},r=function(){function t(t,i){this.el=t,this.cd=i,this.type="text",this.slotChar="_",this.autoClear=!0,this.characterPattern="[A-Za-z]",this.onComplete=new e.EventEmitter,this.onFocus=new e.EventEmitter,this.onBlur=new e.EventEmitter,this.onInput=new e.EventEmitter,this.onModelChange=function(){},this.onModelTouched=function(){}}return t.prototype.ngOnInit=function(){var t=n.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t),this.initMask()},Object.defineProperty(t.prototype,"mask",{get:function(){return this._mask},set:function(t){this._mask=t,this.initMask(),this.writeValue(""),this.onModelChange(this.value)},enumerable:!1,configurable:!0}),t.prototype.initMask=function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":this.characterPattern+"|[0-9]"};for(var t=this.mask.split(""),e=0;e=0&&!this.tests[t];);return t},t.prototype.shiftL=function(t,e){var i,n;if(!(t<0)){for(i=t,n=this.seekNext(e);ii.length){for(this.checkVal(!0);n.begin>0&&!this.tests[n.begin-1];)n.begin--;if(0===n.begin)for(;n.begin34&&r<41)){if(r&&13!==r){if(h.end-h.begin!=0&&(this.clearBuffer(h.begin,h.end),this.shiftL(h.begin,h.end-1)),(i=this.seekNext(h.begin-1))s.length){this.clearBuffer(e+1,this.len);break}}else this.buffer[e]===s.charAt(n)&&n++,e',host:{"[class.p-inputwrapper-filled]":"filled","[class.p-inputwrapper-focus]":"focused"},providers:[a],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],r.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef}]},r.propDecorators={type:[{type:e.Input}],slotChar:[{type:e.Input}],autoClear:[{type:e.Input}],style:[{type:e.Input}],inputId:[{type:e.Input}],styleClass:[{type:e.Input}],placeholder:[{type:e.Input}],size:[{type:e.Input}],maxlength:[{type:e.Input}],tabindex:[{type:e.Input}],title:[{type:e.Input}],ariaLabel:[{type:e.Input}],ariaRequired:[{type:e.Input}],disabled:[{type:e.Input}],readonly:[{type:e.Input}],unmask:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],characterPattern:[{type:e.Input}],autoFocus:[{type:e.Input}],autocomplete:[{type:e.Input}],inputViewChild:[{type:e.ViewChild,args:["input",{static:!0}]}],onComplete:[{type:e.Output}],onFocus:[{type:e.Output}],onBlur:[{type:e.Output}],onInput:[{type:e.Output}],mask:[{type:e.Input}]};var h=function(){};h.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,s.InputTextModule],exports:[r],declarations:[r]}]}],t.INPUTMASK_VALUE_ACCESSOR=a,t.InputMask=r,t.InputMaskModule=h,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=primeng-inputmask.umd.min.js.map