%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/www2]/app/
Upload File :
Create Path :
Current File : /home/vacivi36/www2]/app/218.cdb37d95cf61aa04.js

"use strict";(self.webpackChunkmaterial=self.webpackChunkmaterial||[]).push([[218],{6030:(y,b,p)=>{p.d(b,{x:()=>k});var d=p(8966),n=p(5e3),h=p(7423),m=p(3737);let u=(()=>{class r{constructor(e,i){this.dialogRef=e,this.data=i,this.loading=!1}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)(n.Y36(d.so),n.Y36(d.WI))},r.\u0275cmp=n.Xpm({type:r,selectors:[["app-confirm-dialog"]],decls:13,vars:6,consts:[["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane",1,"p-4",2,"cursor","grab"],[1,"title-dialog"],[1,"mdi","mdi-alert","icon-alert"],[1,"message-dialog"],["align","end",1,"padding-buttons"],["mat-flat-button","",2,"margin-right","10px",3,"mat-dialog-close"],["mat-flat-button","","color","warn",1,"mr-2","custom-button","white",3,"mat-dialog-close"]],template:function(e,i){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"i",2),n.TgZ(3,"span"),n._uU(4),n.qZA()(),n.TgZ(5,"div")(6,"span",3),n._uU(7),n.qZA()(),n.TgZ(8,"div",4)(9,"button",5),n._uU(10),n.qZA(),n.TgZ(11,"button",6),n._uU(12),n.qZA()()()),2&e&&(n.xp6(4),n.hij(" ",i.data.title," "),n.xp6(3),n.hij(" ",i.data.message," "),n.xp6(2),n.Q6J("mat-dialog-close",!1),n.xp6(1),n.hij(" ",i.data.button1,""),n.xp6(1),n.Q6J("mat-dialog-close",!0),n.xp6(1),n.hij(" ",i.data.button2," "))},dependencies:[h.lW,d.ZT,m.Zt],styles:['.title-dialog[_ngcontent-%COMP%]{font-weight:700;font-size:18px;margin-bottom:15px}.message-dialog[_ngcontent-%COMP%]{font-size:15px}.padding-buttons[_ngcontent-%COMP%]{margin-top:18px}.mdi-alert[_ngcontent-%COMP%]:before{content:"\\f0026";font-size:revert;color:#f39720}.custom-button[_ngcontent-%COMP%]{font-size:13px;font-weight:500;background-color:#dc3545;color:#fff}']}),r})(),k=(()=>{class r{constructor(e){this.dialog=e}openConfirmDialog(e,i,o,s){return this.dialog.open(u,{width:"360px",data:{title:e,message:i,button1:o,button2:s}})}}return r.\u0275fac=function(e){return new(e||r)(n.LFG(d.uw))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},79:(y,b,p)=>{p.d(b,{bS:()=>u,Tx:()=>k});var d=p(9808),n=p(5e3),h=p(3075),m=function r(){this.type="alfa",this.decimal=2,this.decimalCaracter=",",this.userCaracters=!1,this.numberAndTousand=!1,this.moneyInitHasInt=!0},u=function(){function r(t,e){this.controlContainer=t,this.elementRef=e,this.brmasker=new m}return r.prototype.inputKeyup=function(t){var e=this.returnValue(t.target.value);this.setValueInFormControl(e)},r.prototype.onNgModelChange=function(t){var e=this.returnValue(t);e&&this.setValueInFormControl(e,!1)},r.prototype.ngOnInit=function(){this.brmasker.type||(this.brmasker.type="all"),this.brmasker.decimal||(this.brmasker.decimal=2),void 0===this.brmasker.moneyInitHasInt&&(this.brmasker.moneyInitHasInt=!0),this.brmasker.decimalCaracter||(this.brmasker.decimalCaracter=","),this.controlContainer?this.formControlName?this.brmasker.form=this.controlContainer.control.get(this.formControlName):console.warn("Missing FormControlName directive from host element of the component"):console.warn("Can't find parent FormGroup directive"),this.initialValue()},r.prototype.initialValue=function(){var t=this.returnValue(this.elementRef.nativeElement.value);this.setValueInFormControl(t)},r.prototype.verifyFormControl=function(){return this.brmasker.form instanceof h.NI},r.prototype.setValueInFormControl=function(t,e){this.verifyFormControl()?(this.brmasker.form.setValue(t,{emitViewToModelChange:e}),this.brmasker.form.updateValueAndValidity()):this.elementRef.nativeElement.value=t},r.prototype.writeCreateValue=function(t,e){return void 0===e&&(e=new m),t&&e.phone?t.replace(/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][0-9])\)?\s?)?(?:((?:9\d|[2-9])\d{3})\-?(\d{4}))$/gi,"$1 ($2) $3-$4"):t&&e.phoneNotDDD?this.phoneNotDDDMask(t):t&&e.money?this.writeValueMoney(t,e):t&&e.person?this.writeValuePerson(t):t&&e.percent?this.writeValuePercent(t):this.brmasker.userCaracters?this.usingSpecialCharacters(t,this.brmasker.mask,this.brmasker.len):t&&e.mask?(this.brmasker.mask=e.mask,e.len&&(this.brmasker.len=e.len),this.onInput(t)):t},r.prototype.writeValuePercent=function(t){return t.replace(/\D/gi,""),t.replace(/%/gi,""),t.replace(/([0-9]{0})$/gi,"%$1")},r.prototype.writeValuePerson=function(t){return t.length<=11?t.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/gi,"$1.$2.$3-$4"):t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/gi,"$1.$2.$3/$4-$5")},r.prototype.writeValueMoney=function(t,e){return void 0===e&&(e=new m),this.moneyMask(t,e)},r.prototype.returnValue=function(t){if(this.brmasker.mask||(this.brmasker.mask=""),t){var e=t;return"alfa"===this.brmasker.type&&(e=e.replace(/\d/gi,"")),"num"===this.brmasker.type&&(e=e.replace(/\D/gi,"")),this.brmasker.money?this.moneyMask(this.onInput(e),this.brmasker):this.brmasker.phone?this.phoneMask(e):this.brmasker.phoneNotDDD?this.phoneNotDDDMask(e):this.brmasker.person?this.peapollMask(e):this.brmasker.percent?this.percentMask(e):this.brmasker.numberAndTousand?this.thousand(e):this.brmasker.userCaracters?this.usingSpecialCharacters(e,this.brmasker.mask,this.brmasker.len):this.onInput(e)}return""},r.prototype.applyCpfMask=function(t){return(t=(t=(t=t.replace(/\D/gi,"")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d{1,2})$/gi,"$1-$2")},r.prototype.applyCnpjMask=function(t){return(t=(t=(t=(t=(t=t.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1/$2")).replace(/(\d{4})(\d{1,4})$/gi,"$1-$2")).replace(/(\d{2})(\d{1,2})$/gi,"$1$2")},r.prototype.percentMask=function(t){var e=t;return(e=(e=e.replace(/\D/gi,"")).replace(/%/gi,"")).replace(/([0-9]{0})$/gi,"%$1")},r.prototype.phoneMask=function(t){var e=t;return e.length>14||11===e.length?(this.brmasker.len=15,this.brmasker.mask="(99) 99999-9999",e=(e=(e=(e=e.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1 $2")).replace(/(\d{5})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")):(this.brmasker.len=14,this.brmasker.mask="(99) 9999-9999",e=(e=(e=(e=e.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1 $2")).replace(/(\d{4})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")),this.onInput(e)},r.prototype.phoneNotDDDMask=function(t){var e=t;return e.length>9?(this.brmasker.len=10,this.brmasker.mask="99999-9999",e=(e=(e=e.replace(/\D/gi,"")).replace(/(\d{5})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")):(this.brmasker.len=9,this.brmasker.mask="9999-9999",e=(e=(e=e.replace(/\D/gi,"")).replace(/(\d{4})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")),this.onInput(e)},r.prototype.peapollMask=function(t){var e=t;return e.length>=14?14===e.length&&e.indexOf("-")>0?(this.brmasker.len=14,this.brmasker.mask="999.999.999-99",e=this.applyCpfMask(e)):(this.brmasker.len=18,this.brmasker.mask="99.999.999/9999-99",e=this.applyCnpjMask(e)):(this.brmasker.len=14,this.brmasker.mask="999.999.999-99",e=this.applyCpfMask(e)),this.onInput(e)},r.prototype.moneyMask=function(t,e){var i=e.decimal||this.brmasker.decimal;if(1===(t=t.replace(/\D/gi,"").replace(new RegExp("([0-9]{"+i+"})$","g"),e.decimalCaracter+"$1")).length&&!this.brmasker.moneyInitHasInt){var o=Array(i-1).fill(0);return"0"+e.decimalCaracter+o.join("")+t}return t.length===i+1?"0"+t:t.length>i+2&&"0"===t.charAt(0)?t.substr(1):(e.thousand&&t.length>Number(4)+Number(e.decimal)&&(t=t.replace(new RegExp("([0-9]{3})"+e.decimalCaracter+"([0-9]{"+e.decimal+"}$)","g"),e.thousand+"$1"+e.decimalCaracter+"$2")),e.thousand&&t.length>Number(8)+Number(e.decimal)&&(t=t.replace(new RegExp("([0-9]{3})"+e.thousand+"([0-9]{3})"+e.decimalCaracter+"([0-9]{"+e.decimal+"}$)","g"),e.thousand+"$1"+e.thousand+"$2"+e.decimalCaracter+"$3")),t)},r.prototype.onInput=function(t){return this.formatField(t,this.brmasker.mask,this.brmasker.len)},r.prototype.usingSpecialCharacters=function(t,e,i){i||(i=99999999999);for(var c=t.toString().replace(/\-|\.|\,| /gi,""),g=0,l="",f=c.length,a=0;a<f;a++)a<i&&("-"===e.charAt(a)||"."===e.charAt(a)||","===e.charAt(a)?(l+=e.charAt(a),f++):(l+=c.charAt(g),g++));return l},r.prototype.thousand=function(t){var o=t.replace(/\D/gi,"").toString().split("").reverse().join("").match(/\d{1,3}/g);if(o)return o.join(""+(this.brmasker.thousand||".")).split("").reverse().join("")},r.prototype.formatField=function(t,e,i){i||(i=99999999999);for(var c=t.toString().replace(/\_|\-|\.|\/|\(|\)|\,|\*|\+|\@|\#|\$|\&|\%|\:| /gi,""),g=0,l="",f=c.length,a=0;a<f;a++)a<i&&("-"===e.charAt(a)||"."===e.charAt(a)||"/"===e.charAt(a)||"_"===e.charAt(a)||"("===e.charAt(a)||")"===e.charAt(a)||" "===e.charAt(a)||","===e.charAt(a)||"*"===e.charAt(a)||"+"===e.charAt(a)||"@"===e.charAt(a)||"#"===e.charAt(a)||":"===e.charAt(a)||"$"===e.charAt(a)||"&"===e.charAt(a)||"%"===e.charAt(a)?(l+=e.charAt(a),f++):(l+=c.charAt(g),g++));return l},r.\u0275fac=function(e){return new(e||r)(n.Y36(h.sg,13),n.Y36(n.SBq))},r.\u0275dir=n.lG2({type:r,selectors:[["","brmasker",""]],hostBindings:function(e,i){1&e&&n.NdJ("keyup",function(s){return i.inputKeyup(s)})("ngModelChange",function(s){return i.onNgModelChange(s)})},inputs:{brmasker:"brmasker",formControlName:"formControlName"}}),r.\u0275prov=n.Yz7({token:r,factory:function(t){return r.\u0275fac(t)}}),r}();u.ctorParameters=function(){return[{type:h.sg,decorators:[{type:n.FiY},{type:n.AA_},{type:n.tp0}]},{type:n.SBq}]},u.propDecorators={brmasker:[{type:n.IIB}],formControlName:[{type:n.IIB}],inputKeyup:[{type:n.L6J,args:["keyup",["$event"]]}],onNgModelChange:[{type:n.L6J,args:["ngModelChange",["$event"]]}]};var k=function(){function r(){}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[d.ez]}),r}();k.ctorParameters=function(){return[]}}}]);

Zerion Mini Shell 1.0