1"use strict";(self.webpackChunkraven_web=self.webpackChunkraven_web||[]).push([[780],{16816:(Is,it,c)=>{c.r(it),c.d(it,{DataManagerModule:()=>Zs,routes:()=>pt});var h=c(36895),w=c(9116),r=c(24006),dt=c(60379),A=c(38783),E=c(68629),b=c(11426),B=c(77579),M=c(37340),l=c(65412),t=c(94650),D=c(21087),d=c(89383),x=c(17009),S=c(4859),C=c(97392),I=c(73162),m=c(59549),Z=c(44144),U=c(48892);function ut(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"TOPUP_AMOUNT_REQUIRED")))}function mt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MUST_BE_GREATER_THAN_ZERO")))}function _t(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.AsE("",t.lcZ(2,2,"MUST_BE_LESS_THAN")," ",e.maxTopup/1024," GB")}}function gt(i,a){1&i&&t._UZ(0,"mat-progress-bar",12)}let ht=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxTopup=51200,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({topUpAmount:[0,[r.kI.required,r.kI.min(1),r.kI.max(this.maxTopup)]]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.SubscriberTopUp(this.item.SubscriberAlternateID,+this.topUpAmount.value).then(n=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("TOPUP_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get topUpAmount(){return this.form.get("topUpAmount")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-topup-dialog"]],decls:46,vars:43,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["matInput","","formControlName","topUpAmount","type","number",3,"placeholder","max"],[4,"ngIf"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-form-field"),t._UZ(21,"input",5),t.ALo(22,"bytes"),t.ALo(23,"translate"),t.qZA()()(),t.TgZ(24,"tr")(25,"td")(26,"mat-form-field"),t._UZ(27,"input",5),t.ALo(28,"bytes"),t.ALo(29,"translate"),t.qZA()()(),t.TgZ(30,"tr")(31,"td")(32,"mat-form-field"),t._UZ(33,"input",6),t.ALo(34,"translate"),t.YNc(35,ut,3,3,"mat-error",7),t.YNc(36,mt,3,3,"mat-error",7),t.YNc(37,_t,3,4,"mat-error",7),t.qZA()()()(),t.YNc(38,gt,1,0,"mat-progress-bar",8),t.qZA()(),t.TgZ(39,"mat-dialog-actions",9)(40,"button",10),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",11),t.NdJ("click",function(){return n.confirmAction()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,19,"TOPUP")),t.xp6(6),t.hij(" ",t.lcZ(9,21,"TOPUP_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,23,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,25,"SUBSCRIBER")),t.xp6(6),t.s9C("value",t.xi3(22,27,n.item.QuotaUsed,2)),t.s9C("placeholder",t.lcZ(23,30,"QUOTA_USED")),t.xp6(6),t.s9C("value",t.xi3(28,32,n.item.QuotaRemaining,2)),t.s9C("placeholder",t.lcZ(29,35,"QUOTA_REMAINING")),t.xp6(6),t.s9C("placeholder",t.lcZ(34,37,"TOPUP_AMOUNT")),t.s9C("max",n.maxTopup),t.xp6(2),t.Q6J("ngIf",n.topUpAmount.hasError("required")&&n.topUpAmount.touched),t.xp6(1),t.Q6J("ngIf",n.topUpAmount.hasError("min")&&n.topUpAmount.touched),t.xp6(1),t.Q6J("ngIf",n.topUpAmount.hasError("max")&&n.topUpAmount.touched),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(42,39,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invali
1d||n.saving),t.xp6(1),t.Oqu(t.lcZ(45,41,"CONFIRM")))},dependencies:[h.O5,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Fd,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,Z.Nt,l.ZT,l.uh,l.xY,l.H8,d.X$,U.$],encapsulation:2}),i})();var nt=c(29521),q=c(77331),Q=c(90455);function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-chip",18),t.NdJ("removed",function(){const o=t.CHM(e).$implicit,p=t.oxw();return t.KtG(p.removeEmail(o))}),t._uU(1),t.TgZ(2,"mat-icon",19),t._uU(3,"cancel"),t.qZA()()}if(2&i){const e=a.$implicit;t.Q6J("selectable",!0)("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function ft(i,a){1&i&&t._UZ(0,"mat-progress-bar",20)}let At=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxLengthEmail=300,this.emails=[],this.separatorKeysCodes=[nt.K5,nt.OC],this.item=u}ngOnInit(){this.setupForms()}ngAfterViewInit(){this.clearInput()}setupForms(){this.emails=this.item.NotificationEmail?.split(",").map(e=>e.trim()).filter(e=>e.length>0),this.form=this.formBuilder.group({threshold25:[this.isAlertSet(this.item.Alert,25),[r.kI.required]],threshold50:[this.isAlertSet(this.item.Alert,50),[r.kI.required]],threshold75:[this.isAlertSet(this.item.Alert,75),[r.kI.required]],threshold100:[this.isAlertSet(this.item.Alert,100),[r.kI.required]],notificationEmail:[this.emails,this.emailArrayValidator()]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0;const e=this.createAlertString();this.service.SubscriberUpdateNotificationThresholds(this.item.SubscriberAlternateID,e,this.emails).then(n=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("NOTIFICATION_THRESHOLDS_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}isAlertSet(e,n){return null!==e&&e.length>0&&!!JSON.parse(e).find(o=>+o===n)}createAlertString(){const e=[];return this.threshold25.value&&e.push(25),this.threshold50.value&&e.push(50),this.threshold75.value&&e.push(75),this.threshold100.value&&e.push(100),e.length>0?JSON.stringify(e):""}get threshold25(){return this.form.get("threshold25")}get threshold50(){return this.form.get("threshold50")}get threshold75(){return this.form.get("threshold75")}get threshold100(){return this.form.get("threshold100")}get notificationEmail(){return this.form.get("notificationEmail")}addEmail(e){const n=(e.value||"").trim();this.emails||(this.emails=[]),n&&this.isValidEmail(n)&&!this.emails.includes(n)&&this.emails.push(n),e.chipInput.clear()}removeEmail(e){const n=this.emails.indexOf(e);n>=0&&this.emails.splice(n,1)}isValidEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}clearInput(){const e=document.querySelector("input[matInput].emailList");e&&(e.value="")}emailArrayValidator(){return e=>{const n=e.value;if(!Array.isArray(n)||0===n.length)return null;const s=n.filter(o=>!this.isValidEmail(o));return s.length>
10?{invalidEmails:s}:null}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-notification-thresholds-dialog"]],decls:53,vars:36,consts:[[1,"notification-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["name","threshold25","formControlName","threshold25",3,"labelPosition"],["name","threshold50","formControlName","threshold50",3,"labelPosition"],["name","threshold75","formControlName","threshold75",3,"labelPosition"],["name","threshold100","formControlName","threshold100",3,"labelPosition"],["aria-label","Email input field"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["matInput","","formControlName","notificationEmail",1,"emailList",3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],[3,"selectable","removable","removed"],["matChipRemove",""],["mode","indeterminate"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5," close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-slide-toggle",6),t._uU(21,"25% "),t.qZA()()(),t.TgZ(22,"tr")(23,"td")(24,"mat-slide-toggle",7),t._uU(25,"50% "),t.qZA()()(),t.TgZ(26,"tr")(27,"td")(28,"mat-slide-toggle",8),t._uU(29,"75% "),t.qZA()()(),t.TgZ(30,"tr")(31,"td")(32,"mat-slide-toggle",9),t._uU(33,"100% "),t.qZA()()(),t.TgZ(34,"tr")(35,"td")(36,"mat-form-field")(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-chip-list",10,11),t.YNc(42,bt,4,3,"mat-chip",12),t.TgZ(43,"input",13),t.NdJ("matChipInputTokenEnd",function(o){return n.addEmail(o)}),t.ALo(44,"translate"),t.qZA()()()()()(),t.YNc(45,ft,1,0,"mat-progress-bar",14),t.qZA()(),t.TgZ(46,"mat-dialog-actions",15)(47,"button",16),t._uU(48),t.ALo(49,"translate"),t.qZA(),t.TgZ(50,"button",17),t.NdJ("click",function(){return n.confirmAction()}),t._uU(51),t.ALo(52,"translate"),t.qZA()()()),2&e){const s=t.MAs(41);t.xp6(2),t.Oqu(t.lcZ(3,20,"NOTIFICATION_THRESHOLDS")),t.xp6(6),t.hij(" ",t.lcZ(9,22,"NOTIFICATION_THRESHOLDS_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,24,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,26,"SUBSCRIBER")),t.xp6(5),t.Q6J("labelPosition","after"),t.xp6(4),t.Q6J("labelPosition","after"),t.xp6(4),t.Q6J("labelPosition","after"),t.xp6(4),t.Q6J("labelPosition","after"),t.xp6(6),t.Oqu(t.lcZ(39,28,"NOTIFICATION_RECIPIENTS")),t.xp6(4),t.Q6J("ngForOf",n.emails),t.xp6(1),t.s9C("placeholder",t.lcZ(44,30,"ADD_EMAIL")),t.Q6J("matChipInputFor",s)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0),t.xp6(2),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(49,32,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(52,34,"CONFIRM"))}},dependencies:[h.sg,h.O5,r._Y,r.Fj,r.JJ,r.JL,r.sg,r.u,S.lW,q.qn,q.HS,q.oH,q.qH,C.Hw,I.pW,m.KE,m.hX,Z.Nt,Q.Rr,l.ZT,l.uh,l.xY,l.H8,d.X$],encapsulation:2}),i})();function Ct(i,a){1&i&&t._UZ(0,"mat-progress-bar",13)}let Tt=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({active:[this.item.IsActive,[r.kI.required]],locked:[this.item.IsLocked,[r.kI.required]],lockable:[this.item.IsLockable,[r.kI.required]]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.SubscriberContractStatus(this.item.SubscriberAlternateID,this.active.value,this.locked.value,this.lockable.value).then(e=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("LINE_STATUS_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get active(){return this.form.get("active")}get locked(){return this.form.get("locked")}get lockable(){return this.form.get("lockable")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.s
1o),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-contract-status-dialog"]],decls:41,vars:34,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["name","active","formControlName","active",3,"labelPosition"],["name","locked","formControlName","locked",3,"labelPosition"],["name","lockable","formControlName","lockable",3,"labelPosition"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-slide-toggle",6),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"tr")(24,"td")(25,"mat-slide-toggle",7),t._uU(26),t.ALo(27,"translate"),t.qZA()()(),t.TgZ(28,"tr")(29,"td")(30,"mat-slide-toggle",8),t._uU(31),t.ALo(32,"translate"),t.qZA()()()(),t.YNc(33,Ct,1,0,"mat-progress-bar",9),t.qZA()(),t.TgZ(34,"mat-dialog-actions",10)(35,"button",11),t._uU(36),t.ALo(37,"translate"),t.qZA(),t.TgZ(38,"button",12),t.NdJ("click",function(){return n.confirmAction()}),t._uU(39),t.ALo(40,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,16,"LINE_STATUS")),t.xp6(6),t.hij(" ",t.lcZ(9,18,"LINE_STATUS_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,20,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,22,"SUBSCRIBER")),t.xp6(5),t.Q6J("labelPosition","after"),t.xp6(1),t.hij(" ",t.lcZ(22,24,"ACTIVE"),""),t.xp6(4),t.Q6J("labelPosition","after"),t.xp6(1),t.hij(" ",t.lcZ(27,26,"LOCKED"),""),t.xp6(4),t.Q6J("labelPosition","after"),t.xp6(1),t.hij(" ",t.lcZ(32,28,"LOCKABLE"),""),t.xp6(2),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(37,30,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(40,32,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JJ,r.JL,r.sg,r.u,S.lW,C.Hw,I.pW,m.KE,Z.Nt,Q.Rr,l.ZT,l.uh,l.xY,l.H8,d.X$],encapsulation:2}),i})();var k=c(22134),L=c(42184);let K=(()=>{class i{constructor(e,n){this.service=e,this.translateService=n,this.useAltId=!1,this.isFilter=!0,this.disabled=!1,this.onFiltered=new t.vpe,this.getItems()}ngOnChanges(){this.getItems()}get isSmallDevice(){return(0,k.UJ)()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.service.GetAPNList("").subscribe(e=>{this.items=e,this.isFilter&&this.items.unshift({Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-apn-filter"]],inputs:{selected:"selected",useAltId:"useAltId",isFilter:"isFilter",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},features:[t.TTD],decls:1,vars:5,consts:[["placeholder","APN",3,"selected","useAltId","disabled","items","allowCustomValues","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.qZA()),2&e&&t.Q6J("selected",n.selected)("useAltId",n.useAltId)("disabled",n.disabled)("items",n.items)("allowCustomValues",!1)},dependencies:[L.X],encapsulation:2}),i})();function xt(i,a){1&i&&t._UZ(0,"mat-progress-bar",11)}let St=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.apnNameLength=100,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({apn:["",[r.kI.required,r.kI.maxLength(this.apnNameLength)]]})}onNoClick(){this.dialogRef.close()}onChanged(e){this.apn.setValue(e)}confirmAction(){this.saving=!0,this.service.SubscriberAssignAPN(this.item.SubscriberAlternateID,this.apn.value).then(n=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("ASSIGN_APN_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get apn(){return this.form.get("apn")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.s
1o),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-assign-apn-dialog"]],decls:29,vars:24,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],[3,"selected","isFilter","onFiltered"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"app-dm-apn-filter",6),t.NdJ("onFiltered",function(o){return n.onChanged(o)}),t.qZA()()()(),t.YNc(21,xt,1,0,"mat-progress-bar",7),t.qZA()(),t.TgZ(22,"mat-dialog-actions",8)(23,"button",9),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"button",10),t.NdJ("click",function(){return n.confirmAction()}),t._uU(27),t.ALo(28,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,12,"ASSIGN_APN")),t.xp6(6),t.hij(" ",t.lcZ(9,14,"ASSIGN_APN_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,16,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,18,"SUBSCRIBER")),t.xp6(5),t.Q6J("selected",n.item.APN)("isFilter",!1),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(25,20,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(28,22,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JL,r.sg,S.lW,C.Hw,I.pW,m.KE,Z.Nt,l.ZT,l.uh,l.xY,l.H8,K,d.X$],encapsulation:2}),i})();var at=c(85060),H=c(39300),G=c(78372);let $=(()=>{class i{constructor(e,n){this.service=e,this.translateService=n,this.useAltId=!1,this.isFilter=!0,this.disabled=!1,this.maxLength=100,this.onFiltered=new t.vpe,this.getItems()}ngOnChanges(){this.getItems()}get isSmallDevice(){return(0,k.UJ)()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.service.GetIPPoolList("").subscribe(e=>{this.items=e,this.isFilter&&this.items.unshift({Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:null,Selected:!1})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-ip-pool-filter"]],inputs:{selected:"selected",useAltId:"useAltId",isFilter:"isFilter",disabled:"disabled",maxLength:"maxLength"},outputs:{onFiltered:"onFiltered"},features:[t.TTD],decls:1,vars:6,consts:[["placeholder","IP_POOL",3,"selected","useAltId","disabled","items","maxLength","allowCustomValues","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.qZA()),2&e&&t.Q6J("selected",n.selected)("useAltId",n.useAltId)("disabled",n.disabled)("items",n.items)("maxLength",n.maxLength)("allowCustomValues",!0)},dependencies:[L.X],encapsulation:2}),i})(),st=(()=>{class i{constructor(e,n){this.service=e,this.translateService=n,this.isRequired=!1,this.valuePrimitive=!0,this.isFilter=!0,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.service.GetNetworkList("").subscribe(e=>{this.items=e,this.isFilter&&this.items.unshift({Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-network-filter"]],inputs:{selected:"selected",isRequired:"isRequired",valuePrimitive:"valuePrimitive",isFilter:"isFilter",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:7,consts:[[3,"selected","items","isRequired","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,5,"NETWORK")),t.Q6J("selected",n.selected)("items",n.items)("isRequired",n.isRequired)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})();function Zt(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.AsE("'",e.msisdn.value,"' ",t.lcZ(2,2,"IS_ALREADY_IN_USE"),"")}}function Dt(i,a){1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"FIELD_REQUIRED")," "))}function It(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function Mt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MINIMUM_OF"),"\xa0",e.minMsisdnLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Lt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxMsisdnLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Nt(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.AsE("'",e.simNumber.value,"' ",t.lcZ(2,2,"IS_ALREADY_IN_USE"),"")}}function vt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"INVALID_SIM_NUMBER")," "))}function Ot(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function qt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxSimNumberLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Ut(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxPinLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Pt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function wt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxPukLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Et(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function kt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MUST_BE_GREATER_THAN_ZERO")))}function Ft(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.AsE("",t.lcZ(2,2,"MUST_BE_LESS_THAN")," ",e.maxQuotaAllocation/1024," GB")}}function Qt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxIpPoolLength,"\xa0",t.lcZ(3,5,"CHARACTERS")," ")}}function Rt(i,a){1&i&&t._UZ(0,"mat-progress-bar",23)}let Yt=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxQuotaAllocation=51200,this.minMsisdnLength=10,this.maxMsisdnLength=15,this.maxDescriptionLength=300,this.maxIpPoolLength=100,this.maxSimNumberLength=22,this.maxPinLength=8,this.maxPukLength=8,this.editMode=!1,this.item=u,this.editMode=!!u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({msisdn:[this.editMode?this.item.Name:"",r.kI.compose([r.kI.required,r.kI.pattern(/^[0-9]\d*$/),r.kI.minLength(this.minMsisdnLength),r.kI.maxLength(this.maxMsisdnLength)])],quotaAllocation:[this.editMode?this.item.Quota:0,r.kI.compose([r.kI.required,r.kI.min(1),r.kI.max(this.maxQuotaAllocation)])],network:[this.editMode?this.item.Network:"",r.kI.required],apn:[this.editMode?this.item.APN:""],description:[this.editMode?this.item.Description:"",r.kI.maxLength(this.maxDescriptionLength)],simNumber:[this.editMode?this.item.SimNumber:"",r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxSimNumberLength),at.p3])],pin:[this.editMode?this.item.Pin:"",r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxPinLength)])],puk:[this.editMode?this.item.Puk:"",r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxPukLength)])],ippool:[this.editMode?this.item.PoolIdentifier:"",r.kI.maxLength(this.maxIpPoolLength)],active:[!1],locked:[!1],lockable:[!1]}),this.form.get("msisdn").valueChanges.pipe((0,H.h)(e=>e.length>=3),(0,G.b)(500)).subscribe(e=>{this.service.ValidateSubscriberNumberIsUnique(this.editMode?this.item.SubscriberAlternateID:"",e).then(n=>{n||this.form.get("msisdn").setErrors({alreadyExists:!0})})}),this.form.get("simNumber").valueChanges.pipe((0,H.h)(e=>e.length>=3),(0,G.b)(500)).subscribe(e=>{this.service.ValidateSimNumberIsUnique(this.editMode?this.item.SubscriberAlternateID:"",e).then(n=>{n||this.form.get("simNumber").setErrors({alreadyExists:!0})})})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.SubscriberProvision(this.msisdn.value,this.network.value,this.apn.value,this.description.value,this.simNumber.value,this.pin.value,this.puk.value,this.ippool.value,this.active.value,this.locked.value,this.lockable.value,this.quotaAllocation.value).then(e=>{e.IsSuccess?(this.dialogRef.close(),this.snackBar.open(this.translateService.instant("PROVISION_SUBSCRIBER_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)):this.snackBar.open(null!=e.FriendlyErrorMessage?e.FriendlyErrorMessage:this.translateService.instant("PROVISION_SUBSCRIBER_FAILED"),this.translateService.instant("CLOSE"),{duration:2e3})}).finally(()=>{this.saving=!1})}onNetworkSelected(e){this.network.setValue(e)}onApnSelected(e){this.apn.setValue(e)}onIpPoolSelected(e){this.ippool.setValue(e)}get network(){return this.form.get("network")}get msisdn(){return this.form.get("msisdn")}get apn(){return this.form.get("apn")}get ippool(){return this.form.get("ippool")}get description(){return this.form.get("description")}get simNumber(){return this.form.get("simNumber")}get pin(){return this.form.get("pin")}get puk(){return this.form.get("puk")}get active(){return this.form.get("active")}get quotaAllocation(){return this.form.get("quotaAllocation")}get locked(){return this.form.get("locked")}get lockable(){return this.form.get("lockable")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-add-subscriber-dialog"]],decls:81,vars:69,consts:[[1,"add-subscriber-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],[1,"hide-arrows"],["matInput","","formControlName","msisdn","type","text","required","",3,"placeholder","minlength","maxlength"],[4,"ngIf"],["matInput","","formControlName","simNumber","type","text",3,"placeholder","maxlength"],[3,"isRequired","isFilter","onFiltered"],[3,"isFilter","onFiltered"],["matInput","","formControlName","pin","type","text",3,"placeholder","maxlength"],["matInput","","formControlName","puk","type","text",3,"placeholder","maxlength"],["matInput","","formControlName","quotaAllocation","type","number",3,"placeholder","max"],["colspan","2"],["matInput","","formControlName","description","type","text",3,"placeholder","maxlength"],["name","active","formControlName","active",3,"labelPosition"],["name","locked","formControlName","locked",3,"labelPosition"],["name","lockable","formControlName","lockable",3,"labelPosition"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"form",3)(8,"table",4)(9,"tr",5)(10,"td")(11,"mat-form-field"),t._UZ(12,"input",6),t.ALo(13,"translate"),t.YNc(14,Zt,3,4,"mat-error",7),t.YNc(15,Dt,3,3,"mat-hint",7),t.YNc(16,It,3,3,"mat-error",7),t.YNc(17,Mt,4,7,"mat-hint",7),t.YNc(18,Lt,4,7,"mat-hint",7),t.qZA()(),t.TgZ(19,"td")(20,"mat-form-field"),t._UZ(21,"input",8),t.ALo(22,"translate"),t.YNc(23,Nt,3,4,"mat-error",7),t.YNc(24,vt,3,3,"mat-error",7),t.YNc(25,Ot,3,3,"mat-error",7),t.YNc(26,qt,4,7,"mat-hint",7),t.qZA()()(),t.TgZ(27,"tr")(28,"td")(29,"app-dm-net
1work-filter",9),t.NdJ("onFiltered",function(o){return n.onNetworkSelected(o)}),t.qZA()(),t.TgZ(30,"td")(31,"app-dm-apn-filter",10),t.NdJ("onFiltered",function(o){return n.onApnSelected(o)}),t.qZA()()(),t.TgZ(32,"tr")(33,"td")(34,"mat-form-field"),t._UZ(35,"input",11),t.ALo(36,"translate"),t.YNc(37,Ut,4,7,"mat-hint",7),t.YNc(38,Pt,3,3,"mat-error",7),t.qZA()(),t.TgZ(39,"td")(40,"mat-form-field"),t._UZ(41,"input",12),t.ALo(42,"translate"),t.YNc(43,wt,4,7,"mat-hint",7),t.YNc(44,Et,3,3,"mat-error",7),t.qZA()()(),t.TgZ(45,"tr")(46,"td")(47,"app-dm-ip-pool-filter",10),t.NdJ("onFiltered",function(o){return n.onIpPoolSelected(o)}),t.qZA()(),t.TgZ(48,"td")(49,"mat-form-field"),t._UZ(50,"input",13),t.ALo(51,"translate"),t.YNc(52,kt,3,3,"mat-error",7),t.YNc(53,Ft,3,4,"mat-error",7),t.qZA()()(),t.TgZ(54,"tr")(55,"td",14)(56,"mat-form-field"),t._UZ(57,"input",15),t.ALo(58,"translate"),t.YNc(59,Qt,4,7,"mat-hint",7),t.qZA()()(),t.TgZ(60,"tr")(61,"td")(62,"mat-slide-toggle",16),t._uU(63),t.ALo(64,"translate"),t.qZA()(),t.TgZ(65,"td")(66,"mat-slide-toggle",17),t._uU(67),t.ALo(68,"translate"),t.qZA()(),t.TgZ(69,"td")(70,"mat-slide-toggle",18),t._uU(71),t.ALo(72,"translate"),t.qZA()()()(),t.YNc(73,Rt,1,0,"mat-progress-bar",19),t.qZA()(),t.TgZ(74,"mat-dialog-actions",20)(75,"button",21),t._uU(76),t.ALo(77,"translate"),t.qZA(),t.TgZ(78,"button",22),t.NdJ("click",function(){return n.confirmAction()}),t._uU(79),t.ALo(80,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,45,"PROVISION_SUBSCRIBER")),t.xp6(5),t.Q6J("formGroup",n.form),t.xp6(5),t.s9C("placeholder",t.lcZ(13,47,"MSISDN")),t.s9C("minlength",n.minMsisdnLength),t.s9C("maxlength",n.maxMsisdnLength),t.xp6(2),t.Q6J("ngIf",n.msisdn.hasError("alreadyExists")&&n.msisdn.touched),t.xp6(1),t.Q6J("ngIf",n.msisdn.hasError("required")&&n.msisdn.touched),t.xp6(1),t.Q6J("ngIf",n.msisdn.hasError("pattern")&&n.msisdn.touched),t.xp6(1),t.Q6J("ngIf",n.msisdn.hasError("minlength")&&n.msisdn.touched),t.xp6(1),t.Q6J("ngIf",n.msisdn.touched&&n.msisdn.hasError("maxLength")),t.xp6(3),t.s9C("placeholder",t.lcZ(22,49,"SIM_NUMBER")),t.s9C("maxlength",n.maxSimNumberLength),t.xp6(2),t.Q6J("ngIf",n.simNumber.hasError("alreadyExists")&&n.simNumber.touched),t.xp6(1),t.Q6J("ngIf",n.simNumber.hasError("invalidSimNumber")&&n.simNumber.touched),t.xp6(1),t.Q6J("ngIf",n.simNumber.hasError("pattern")&&n.simNumber.touched),t.xp6(1),t.Q6J("ngIf",n.simNumber.touched&&n.simNumber.hasError("maxLength")),t.xp6(3),t.Q6J("isRequired",!0)("isFilter",!1),t.xp6(2),t.Q6J("isFilter",!1),t.xp6(4),t.s9C("placeholder",t.lcZ(36,51,"PIN")),t.s9C("maxlength",n.maxPinLength),t.xp6(2),t.Q6J("ngIf",n.pin.touched&&n.pin.hasError("maxLength")),t.xp6(1),t.Q6J("ngIf",n.pin.hasError("pattern")&&n.pin.touched),t.xp6(3),t.s9C("placeholder",t.lcZ(42,53,"PUK")),t.s9C("maxlength",n.maxPukLength),t.xp6(2),t.Q6J("ngIf",n.puk.touched&&n.puk.hasError("maxLength")),t.xp6(1),t.Q6J("ngIf",n.puk.hasError("pattern")&&n.puk.touched),t.xp6(3),t.Q6J("isFilter",!1),t.xp6(3),t.s9C("placeholder",t.lcZ(51,55,"QUOTA_ALLOCATION")),t.s9C("max",n.maxQuotaAllocation),t.xp6(2),t.Q6J("ngIf",n.quotaAllocation.hasError("min")&&n.quotaAllocation.touched),t.xp6(1),t.Q6J("ngIf",n.quotaAllocation.hasError("max")&&n.quotaAllocation.touched),t.xp6(4),t.s9C("placeholder",t.lcZ(58,57,"DESCRIPTION")),t.s9C("maxlength",n.maxDescriptionLength),t.xp6(2),t.Q6J("ngIf",n.description.touched&&n.description.hasError("maxLength")),t.xp6(3),t.Q6J("labelPosition","before"),t.xp6(1),t.hij(" ",t.lcZ(64,59,"ACTIVE"),""),t.xp6(3),t.Q6J("labelPosition","before"),t.xp6(1),t.hij(" ",t.lcZ(68,61,"LOCKED"),""),t.xp6(3),t.Q6J("labelPosition","before"),t.xp6(1),t.hij(" ",t.lcZ(72,63,"LOCKABLE"),""),t.xp6(2),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(77,65,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(80,67,"CONFIRM")))},dependencies:[h.O5,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.wO,r.nD,r.Fd,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,m.bx,Z.Nt,Q.Rr,l.ZT,l.uh,l.xY,l.H8,K,$,st,d.X$],styles:[".add-subscriber-dialog[_ngcontent-%COMP%] .hide-arrows[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .add-subscriber-dialog[_ngcontent-%COMP%] .hide-arrows[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.add-subscriber-dialog[_ngcontent-%COMP%] .hide-arrows[_ngcontent-%COMP%] input[type=number].hidearrows[_ngcontent-%COMP%]{-moz-appearance:textfield}"]}),i})();function Jt(i,a){1&i&&t._UZ(0,"mat-progress-bar",11)}let yt=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.ipPoolLength=100,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({ippool:["",[r.kI.required,r.kI.maxLength(this.ipPoolLength)]]})}onNoClick(){this.dialogRef.close()}onChanged(e){this.ippool.setValue(e)}confirmAction(){this.saving=!0,this.service.SubscriberAssignIPPool(this.item.SubscriberAlternateID,this.ippool.value).then(n=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("ASSIGN_IP_POOL_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get ippool(){return this.form.get("ippool")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.s
1o),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-assign-ip-pool-dialog"]],decls:29,vars:25,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],[3,"selected","isFilter","maxLength","onFiltered"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"app-dm-ip-pool-filter",6),t.NdJ("onFiltered",function(o){return n.onChanged(o)}),t.qZA()()()(),t.YNc(21,Jt,1,0,"mat-progress-bar",7),t.qZA()(),t.TgZ(22,"mat-dialog-actions",8)(23,"button",9),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"button",10),t.NdJ("click",function(){return n.confirmAction()}),t._uU(27),t.ALo(28,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,13,"ASSIGN_IP_POOL")),t.xp6(6),t.hij(" ",t.lcZ(9,15,"ASSIGN_IP_POOL_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,17,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,19,"SUBSCRIBER")),t.xp6(5),t.Q6J("selected",n.item.PoolIdentifier)("isFilter",!1)("maxLength",n.ipPoolLength),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(25,21,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(28,23,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JL,r.sg,S.lW,C.Hw,I.pW,m.KE,Z.Nt,l.ZT,l.uh,l.xY,l.H8,$,d.X$],encapsulation:2}),i})();var Bt=c(71310);function Kt(i,a){1&i&&t._UZ(0,"mat-progress-bar",12)}let Ht=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.personLength=100,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({person:["",[r.kI.required,r.kI.maxLength(this.personLength)]],removeAllocation:["",[r.kI.nullValidator]]}),this.removeAllocation.valueChanges.subscribe(e=>{e?(this.person.clearValidators(),this.person.updateValueAndValidity()):(this.person.setValidators([r.kI.required,r.kI.maxLength(this.personLength)]),this.person.updateValueAndValidity())})}onNoClick(){this.dialogRef.close()}onChanged(e){this.person.setValue(e)}confirmAction(){this.saving=!0;const e=this.person.value;let n=this.translateService.instant("ASSIGN_PERSON_SUCCESS");this.removeAllocation.value&&(n=this.translateService.instant("ALLOCATION_REMOVED_SUCCESS")),this.service.SubscriberAllocation(this.item.SubscriberAlternateID,e,this.removeAllocation.value).then(s=>{this.dialogRef.close(),this.snackBar.open(n,this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get person(){return this.form.get("person")}get removeAllocation(){return this.form.get("removeAllocation")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-allocate-subscriber"]],decls:33,vars:25,consts:[[1,"assign-subscriber-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],[3,"selected","isFilter","onFiltered"],["name","removeAllocation","formControlName","removeAllocation",3,"labelPosition"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"app-person-filter",6),t.NdJ("onFiltered",function(o){return n.onChanged(o)}),t.qZA()()(),t.TgZ(21,"tr")(22,"td")(23,"mat-slide-toggle",7),t._uU(24,"Remove Person Allocation "),t.qZA()()()(),t.YNc(25,Kt,1,0,"mat-progress-bar",8),t.qZA()(),t.TgZ(26,"mat-dialog-actions",9)(27,"button",10),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.TgZ(30,"button",11),t.NdJ("click",function(){return n.confirmAction()}),t._uU(31),t.ALo(32,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,13,"ASSIGN_PERSON")),t.xp6(6),t.hij(" ",t.lcZ(9,15,"ASSIGN_PERSON_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,17,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,19,"SUBSCRIBER")),t.xp6(5),t.Q6J("selected",n.item)("isFilter",!1),t.xp6(3),t.Q6J("labelPosition","after"),t.xp6(2),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(29,21,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invali
1d||n.saving),t.xp6(1),t.Oqu(t.lcZ(32,23,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JJ,r.JL,r.sg,r.u,S.lW,C.Hw,I.pW,m.KE,Z.Nt,Q.Rr,l.ZT,l.uh,l.xY,l.H8,Bt.Y,d.X$],encapsulation:2}),i})();var j=c(42751);function Gt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxDescriptionLength,"\xa0",t.lcZ(3,5,"CHARACTERS")," ")}}function $t(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.AsE("'",e.simNumber.value,"' ",t.lcZ(2,2,"IS_ALREADY_IN_USE"),"")}}function jt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function Xt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxSimNumberLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Vt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxPukLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function Wt(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function zt(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxPinLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function te(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"NUMERIC_DIGITS_ONLY")," "))}function ee(i,a){1&i&&t._UZ(0,"mat-progress-bar",15)}let ie=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxDescriptionLength=300,this.maxSimNumberLength=22,this.maxPinLength=8,this.maxPukLength=8,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({description:[this.item.Description,r.kI.maxLength(this.maxDescriptionLength)],simNumber:[this.item.SimNumber,r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxSimNumberLength),at.p3])],pin:[this.item.Pin,r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxPinLength)])],puk:[this.item.Puk,r.kI.compose([r.kI.pattern(/^[0-9]\d*$/),r.kI.maxLength(this.maxPukLength)])]}),this.form.get("simNumber").valueChanges.pipe((0,H.h)(e=>e.length>=3),(0,G.b)(500)).subscribe(e=>{this.service.ValidateSimNumberIsUnique(this.item.SubscriberAlternateID,e).then(n=>{n||this.form.get("simNumber").setErrors({alreadyExists:!0})})})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.SubscriberUpdateMetadata(this.item.SubscriberAlternateID,this.description.value,this.simNumber.value,this.puk.value,this.pin.value).then(e=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("UPDATE_SIM_DATA_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get description(){return this.form.get("description")}get simNumber(){return this.form.get("simNumber")}get pin(){return this.form.get("pin")}get puk(){return this.form.get("puk")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-metadata-dialog"]],decls:54,vars:46,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["matInput","","formControlName","description","type","text",3,"placeholder","maxlength"],[4,"ngIf"],["matInput","","formControlName","simNumber","type","text",3,"placeholder","maxlength"],["matInput","","formControlName","puk","type","text",3,"placeholder","maxlength"],["matInput","","formControlName","pin","type","text",3,"placeholder","maxlength"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-form-field"),t._UZ(21,"input",6),t.ALo(22,"translate"),t.YNc(23,Gt,4,7,"mat-hint",7),t.qZA()()(),t.TgZ(24,"tr")(25,"td")(26,"mat-form-field"),t._UZ(27,"input",8),t.ALo(28,"translate"),t.YNc(29,$t,3,4,"mat-error",7),t.YNc(30,jt,3,3,"mat-error",7),t.YNc(31,Xt,4,7,"mat-hint",7),t.qZA()()(),t.TgZ(32,"tr")(33,"td")(34,"mat-form-field"),t._UZ(35,"input",9),t.ALo(36,"translate"),t.YNc(37,Vt,4,7,"mat-hint",7),t.YNc(38,Wt,3,3,"mat-error",7),t.qZA()()(),t.TgZ(39,"tr")(40,"td")(41,"mat-form-field"),t._UZ(42,"input",10),t.ALo(43,"translate"),t.YNc(44,zt,4,7,"mat-hint",7),t.YNc(45,te,3,3,"mat-error",7),t.qZA()()()(),t.YNc(46,ee,1,0,"mat-progress-bar",11),t.qZA()(),t.TgZ(47,"mat-dialog-actions",12)(48,"button",13),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.TgZ(51,"button",14),t.NdJ("click",function(){return n.confirmAction()}),t._uU(52),t.ALo(53,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,26,"SIM_DATA")),t.xp6(6),t.hij(" ",t.lcZ(9,28,"UPDATE_SIM_DATA_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,30,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,32,"SUBSCRIBER")),t.xp6(6),t.s9C("placeholder",t.lcZ(22,34,"DESCRIPTION")),t.s9C("maxlength",n.maxDescriptionLength),t.xp6(2),t.Q6J("ngIf",n.description.touched&&n.description.hasError("maxLength")),t.xp6(4),t.s9C("placeholder",t.lcZ(28,36,"SIM_NUMBER")),t.s9C("maxlength",n.maxSimNumberLength),t.xp6(2),t.Q6J("ngIf",n.simNumber.hasError("alreadyExists")&&n.simNumber.touched),t.xp6(1),t.Q6J("ngIf",n.simNumber.hasError("pattern")&&n.simNumber.touched),t.xp6(1),t.Q6J("ngIf",n.simNumber.touched&&n.simNumber.hasError("maxLength")),t.xp6(4),t.s9C("placeholder",t.lcZ(36,38,"PUK")),t.s9C("maxlength",n.maxPukLength),t.xp6(2),t.Q6J("ngIf",n.puk.touched&&n.puk.hasError("maxLength")),t.xp6(1),t.Q6J("ngIf",n.puk.hasError("pattern")&&n.puk.touched),t.xp6(4),t.s9C("placeholder",t.lcZ(43,40,"PIN")),t.s9C("maxlength",n.maxPinLength),t.xp6(2),t.Q6J("ngIf",n.pin.touched&&n.pin.hasError("maxLength")),t.xp6(1),t.Q6J("ngIf",n.pin.hasError("pattern")&&n.pin.touched),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(50,42,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invali
1d||n.saving),t.xp6(1),t.Oqu(t.lcZ(53,44,"CONFIRM")))},dependencies:[h.O5,r._Y,r.Fj,r.JJ,r.JL,r.nD,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,m.bx,Z.Nt,l.ZT,l.uh,l.xY,l.H8,d.X$],encapsulation:2}),i})();var R=(()=>{return(i=R||(R={})).VIEW="VIEW",i.TOP_UP="TOP_UP",i.ASSIGN_IP_POOL="ASSIGN_IP_POOL",i.NOTIFICATION_THRESHOLDS="NOTIFICATION_THRESHOLDS",i.APN="APN",i.LINE_STATUS="LINE_STATUS",i.META_DATA="META_DATA",i.ALLOCATE_PERSON="ALLOCATE_PERSON",i.PROVISION="PROVISION",i.DELETE_MSISDN="DELETE_MSISDN",i.DEACTIVATE_MSISDN="DEACTIVATE_MSISDN",i.ALLOCATE_QUOTA="ALLOCATE_QUOTA",R;var i})(),ne=c(3238),ae=c(84385);function se(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Please choose a reason"),t.qZA())}function oe(i,a){1&i&&t._UZ(0,"mat-progress-bar",16)}let re=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.apnNameLength=100,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({msisdn:["",[r.kI.nullValidator]],reason:["",[r.kI.required]]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.DeleteMsisdn(this.item.SubscriberAlternateID,this.msisdn.value,this.reason.value).then(e=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("DELETE_MSISDN_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get msisdn(){return this.form.get("msisdn")}get reason(){return this.form.get("reason")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-subscriber"]],decls:42,vars:26,consts:[[1,"delete-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],[3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["formControlName","reason","required",""],["value","No Longer required"],["value","User left the organisation"],["value","User moved to a different business unit"],["value","Other"],[4,"ngIf"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"mat-select",6)(25,"mat-option",7),t._uU(26,"No Longer required"),t.qZA(),t.TgZ(27,"mat-option",8),t._uU(28,"User left the organisation"),t.qZA(),t.TgZ(29,"mat-option",9),t._uU(30,"User moved to a different business unit"),t.qZA(),t.TgZ(31,"mat-option",10),t._uU(32,"Other"),t.qZA()(),t.YNc(33,se,2,0,"mat-error",11),t.qZA()()()(),t.YNc(34,oe,1,0,"mat-progress-bar",12),t.qZA()(),t.TgZ(35,"mat-dialog-actions",13)(36,"button",14),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"button",15),t.NdJ("click",function(){return n.confirmAction()}),t._uU(40),t.ALo(41,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,12,"DELETE_MSISDN")),t.xp6(6),t.hij(" ",t.lcZ(9,14,"DELETE_MSISDN_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,16,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,18,"SUBSCRIBER")),t.xp6(7),t.Oqu(t.lcZ(23,20,"DELETE_REASON")),t.xp6(11),t.Q6J("ngIf",n.reason.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(38,22,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(41,24,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JJ,r.JL,r.Q7,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,m.hX,Z.Nt,ne.ey,ae.gD,l.ZT,l.uh,l.xY,l.H8,d.X$]}),i})();function le(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"QUOTA_REQUIRED")))}function ce(i,a){1&i&&t._UZ(0,"mat-progress-bar",12)}let pe=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxQuota=51200,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({quotaAmount:[0,[r.kI.required,r.kI.min(0)]]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.SubscriberUpdateQuota(this.item.SubscriberAlternateID,+this.quotaAmount.value).then(n=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("ALLOCATE_QUOTA_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}get quotaAmount(){return this.form.get("quotaAmount")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.s
1o),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-allocate-quota-dialog"]],decls:50,vars:47,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["matInput","","formControlName","quotaAmount","type","number",3,"placeholder"],[4,"ngIf"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form",3)(11,"table",4)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",5),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()(),t.TgZ(18,"tr")(19,"td")(20,"mat-form-field"),t._UZ(21,"input",5),t.ALo(22,"bytes"),t.ALo(23,"translate"),t.qZA()()(),t.TgZ(24,"tr")(25,"td")(26,"mat-form-field"),t._UZ(27,"input",5),t.ALo(28,"bytes"),t.ALo(29,"translate"),t.qZA()()(),t.TgZ(30,"tr")(31,"td")(32,"mat-form-field"),t._UZ(33,"input",5),t.ALo(34,"bytes"),t.ALo(35,"translate"),t.qZA()()(),t.TgZ(36,"tr")(37,"td")(38,"mat-form-field"),t._UZ(39,"input",6),t.ALo(40,"translate"),t.YNc(41,le,3,3,"mat-error",7),t.qZA()()()(),t.YNc(42,ce,1,0,"mat-progress-bar",8),t.qZA()(),t.TgZ(43,"mat-dialog-actions",9)(44,"button",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t.TgZ(47,"button",11),t.NdJ("click",function(){return n.confirmAction()}),t._uU(48),t.ALo(49,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,18,"ALLOCATE_QUOTA")),t.xp6(6),t.hij(" ",t.lcZ(9,20,"ALLOCATE_QUOTA_TEXT")," "),t.xp6(2),t.Q6J("formGroup",n.form),t.xp6(5),t.hYB("value","",n.item.Name," (",t.lcZ(16,22,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,24,"SUBSCRIBER")),t.xp6(6),t.s9C("value",t.xi3(22,26,n.item.QuotaUsed,2)),t.s9C("placeholder",t.lcZ(23,29,"QUOTA_USED")),t.xp6(6),t.s9C("value",t.xi3(28,31,n.item.QuotaRemaining,2)),t.s9C("placeholder",t.lcZ(29,34,"QUOTA_REMAINING")),t.xp6(6),t.s9C("value",t.xi3(34,36,n.item.Quota,2)),t.s9C("placeholder",t.lcZ(35,39,"CURRENT_QUOTA")),t.xp6(6),t.s9C("placeholder",t.lcZ(40,41,"NEW_QUOTA")),t.xp6(2),t.Q6J("ngIf",n.quotaAmount.hasError("required")&&n.quotaAmount.touched),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(46,43,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(49,45,"CONFIRM")))},dependencies:[h.O5,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,Z.Nt,l.ZT,l.uh,l.xY,l.H8,d.X$,U.$],encapsulation:2}),i})();function de(i,a){1&i&&t._UZ(0,"mat-progress-bar",9)}let ue=(()=>{class i{constructor(e,n,s,o,p,_){this._state=e,this.service=n,this.translateService=s,this.snackBar=o,this.dialogRef=p,this.data=_,this.loading=!0,this.saving=!1,this.item=_}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.DeactivateMsisdn(this.item.SubscriberAlternateID).then(e=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("DEACTIVATE_MSISDN_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.subscribers.list",new Date)}).finally(()=>{this.saving=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-Deactivate-subscriber"]],decls:26,vars:21,consts:[[1,"deactivate-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["cellspacing","0",1,"full-width"],["matInput","","type","text","disabled","'disabled'",3,"value","placeholder"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"form")(11,"table",3)(12,"tr")(13,"td")(14,"mat-form-field"),t._UZ(15,"input",4),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()(),t.YNc(18,de,1,0,"mat-progress-bar",5),t.qZA()(),t.TgZ(19,"mat-dialog-actions",6)(20,"button",7),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"button",8),t.NdJ("click",function(){return n.confirmAction()}),t._uU(24),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,"DEACTIVATE_MSISDN")),t.xp6(6),t.hij(" ",t.lcZ(9,11,"DEACTIVATE_MSISDN_TEXT")," "),t.xp6(7),t.hYB("value","",n.item.Name," (",t.lcZ(16,13,n.item.AllocatedName||"UNALLOCATED"),")"),t.s9C("placeholder",t.lcZ(17,15,"
1SUBSCRIBER")),t.xp6(3),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(22,17,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.saving),t.xp6(1),t.Oqu(t.lcZ(25,19,"CONFIRM")))},dependencies:[h.O5,r._Y,r.JL,r.F,S.lW,C.Hw,I.pW,m.KE,Z.Nt,l.ZT,l.uh,l.xY,l.H8,d.X$]}),i})();var F=c(52642),X=c(66906),f=c(1576),Y=c(28255),me=c(96338),T=c(73546),V=c(10266),g=c(53626),P=c(96308),W=c(98739),z=c(94916),tt=c(83447),J=c(94831),ot=c(80367),_e=c(18478),ge=c(78686),rt=c(55829),N=c(90782),he=c(11618),be=c(75418);let fe=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("LOCKED"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("NOT_LOCKED"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-sim-status-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"SIM_LOCKED_STATUS")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),Ae=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("IS_ACTIVE"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("IS_DELETED"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-sim-deleted-status-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"SIM_DELETED_STATUS")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),Ce=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("ONLY_ACTIVE"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("ONLY_DEACTIVATED"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-subscriber-status-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"IS_ACTIVE")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),Te=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("LOCKABLE"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("NOT_LOCKABLE"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-lockable-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"LOCKABLE")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),xe=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("CONNECTED"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("NOT_CONNECTED"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-sim-session-state-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"CONNECTED")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),Se=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("THRESHOLD25"),Id:"25",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("THRESHOLD50"),Id:"50",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("THRESHOLD75"),Id:"75",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("THRESHOLD100"),Id:"100",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-alert-threshold-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"ALERT_THRESHOLD")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})();var lt=c(71948);function Ze(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Only integer numbers allowed"),t.qZA())}let De=(()=>{class i{constructor(){this.isRequired=!1,this.valuePrimitive=!0,this.isFilter=!0,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(){var n={remainingQuota:Math.round(+this.quotaRemaining).toString(),type:this.quotaType};this.onFiltered.emit(n)}getItems(){this.isFilter&&(this.quotaRemaining=""),this.quotaType=""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-quota-remaining"]],inputs:{selected:"selected",isRequired:"isRequired",valuePrimitive:"valuePrimitive",isFilter:"isFilter",disabled:"disabled",quotaRemaining:"quotaRemaining",quotaType:"quotaType"},outputs:{onFiltered:"onFiltered"},decls:16,vars:14,consts:[["matInput","","type","number","min","0","step","1","pattern","[0-9]+",3,"ngModel","disabled","ngModelChange","change"],["quotaInput","ngModel"],[4,"ngIf"],["align","end"],[3,"ngModel","ngModelChange","change"],["value","0"],["value","1"]],template:function(e,n){if(1&e&&(t.TgZ(0,"mat-form-field")(1,"mat-label"),t._uU(2,"Quota Remaining MB"),t.qZA(),t.TgZ(3,"input",0,1),t.NdJ("ngModelChange",function(o){return n.quotaRemaining=o})("change",function(){return n.applyFilter()}),t.qZA(),t.YNc(5,Ze,2,0,"mat-error",2),t.TgZ(6,"mat-hint",3),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"mat-radio-group",4),t.NdJ("ngModelChange",function(o){return n.quotaType=o})("change",function(){return n.applyFilter()}),t.TgZ(10,"mat-radio-button",5),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-radio-button",6),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&e){const s=t.MAs(4);t.xp6(3),t.Q6J("ngModel",n.quotaRemaining)("disabled",n.disabled),t.xp6(2),t.Q6J("ngIf",s.hasError("pattern")),t.xp6(2),t.AsE("",t.lcZ(8,8,"REMAINING_QUOTA_FROM")," ",s.value/1024," GB"),t.xp6(2),t.Q6J("ngModel",n.quotaType),t.xp6(2),t.Oqu(t.lcZ(12,10,"REMAINING_QUOTA_USER")),t.xp6(3),t.Oqu(t.lcZ(15,12,"REMAINING_QUOTA_MSISDN"))}},dependencies:[h.O5,r.Fj,r.wV,r.JJ,r.c5,r.qQ,r.On,m.TO,m.KE,m.bx,m.hX,Z.Nt,lt.VQ,lt.U0,d.X$],styles:["app-quota-remaining .mat-radio-group{dis
1play:flex;flex-direction:row;align-items:center}app-quota-remaining .mat-radio-button{margin:0;padding:.3em .5em;background-color:transparent;border:0px solid #ccc;color:#666;border-radius:2px;font-size:12px;display:flex;align-items:center}\n"],encapsulation:2}),i})(),Ie=(()=>{class i{constructor(e,n){this.service=e,this.translateService=n,this.isRequired=!1,this.valuePrimitive=!0,this.isFilter=!0,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.service.GetSimList("").subscribe(e=>{this.items=e,this.isFilter&&this.items.unshift({Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-sim-number"]],inputs:{selected:"selected",isRequired:"isRequired",valuePrimitive:"valuePrimitive",isFilter:"isFilter",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:8,consts:[[3,"selected","items","isRequired","placeholder","allowCustomValues","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,6,"SIM_NUMBER")),t.Q6J("selected",n.selected)("items",n.items)("isRequired",n.isRequired)("allowCustomValues",!0)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),Me=(()=>{class i{constructor(e,n){this.service=e,this.translateService=n,this.useAltId=!1,this.isFilter=!0,this.disabled=!1,this.isRequired=!1,this.onFiltered=new t.vpe,this.getItems()}ngOnChanges(){this.getItems()}get isSmallDevice(){return(0,k.UJ)()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.service.GetDescriptionList("").subscribe(e=>{this.items=e,this.isFilter&&this.items.unshift({Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:null,Selected:!1})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-description"]],inputs:{selected:"selected",useAltId:"useAltId",isFilter:"isFilter",disabled:"disabled",isRequired:"isRequired"},outputs:{onFiltered:"onFiltered"},features:[t.TTD],decls:2,vars:8,consts:[[3,"selected","items","isRequired","placeholder","allowCustomValues","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,6,"DESCRIPTION")),t.Q6J("selected",n.selected)("items",n.items)("isRequired",n.isRequired)("allowCustomValues",!0)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})();function Le(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-subscriber-status-filter",23),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("Status",s))}),t.qZA()()()}if(2&i){const e=t.oxw();
1t.xp6(2),t.Q6J("selected",e.status)("includeAny",!1)}}function Ne(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-sim-status-filter",10),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("simLockedStatus",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.simLockedStatus)}}function ve(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-sim-deleted-status-filter",10),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("SimDeletedStatus",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.simDeletedStatus)}}function Oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-lockable-filter",10),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("Lockable",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.lockable)}}function qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.showMoreFilters=!0)}),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"i",24),t.qZA()}2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"MORE_FILTERS")," "))}function Ue(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-business-area-filter",25),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("BusinessArea1Id",s))}),t.qZA()()()}if(2&i){const e=t.oxw();
1t.xp6(2),t.Q6J("selected",e.businessArea1Id)}}function Pe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-business-area-filter",26),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("BusinessArea2Id",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.businessArea2Id)}}function we(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-business-area-filter",27),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("BusinessArea3Id",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.businessArea3Id)}}function Ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-business-area-filter",28),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("BusinessArea4Id",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.businessArea4Id)}}function ke(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-business-area-filter",29),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("BusinessArea5Id",s))}),t.qZA()()()}if(2&i){const e=t.oxw();
1t.xp6(2),t.Q6J("selected",e.businessArea5Id)}}function Fe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-sim-session-state-filter",15),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("SIM_SESSION_STATE",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.simSessionState)("reload",e.reload)}}function Qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-quota-remaining",30),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("QUOTA_REMAINING",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("reload",e.reload)("quotaRemaining",e.quotaRemaining)("quotaType",e.quotaType)}}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-grid-tile",9)(1,"mat-grid-tile-footer")(2,"app-dm-alert-threshold-filter",10),t.NdJ("onFiltered",function(s){t.CHM(e);const o=t.oxw();return t.KtG(o.filterExact("ALERT_THRESHOLD",s))}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("selected",e.alertThreshold)}}const Ye=function(i){return{"bottom-30":i}},Je=function(i){return{"show-more":i}};let ct=(()=>{class i{constructor(e){this.sessionHelperService=e,this.showAllFilters=!0,this.showConnectedFilter=!0,this.showQuotaRemainingFilter=!0,this.showAlertThresholdFilter=!1,this.filtersChanged=new t.vpe,this.filterStatusControl=new r.p4,this.showMoreFilters=!1,this.filters=[],this.isMobile=!1,this.filterColumns=6,this.businessAreaSettings=e.GetBusinessAreaSettings(),this.isSmallDevice&&(this.isMobile=!0,this.filterColumns=1)}get isSmallDevice(){return(0,k.UJ)()}applyFilters(){this.filtersChanged.emit(this.filters)}removeFilter(e){delete this.filters[e],this[e]=null,this.applyFilters()}clearFilters(){this.filters=[],this.status="-1",this.simLockedStatus="-1",this.simDeletedStatus="-1",this.lockable="-1",this.apn="-1",this.network="-1",this.lineManagerId="-1",this.businessArea1Id="-1",this.businessArea2Id="-1",this.businessArea3Id="-1",this.businessArea4Id="-1",this.businessArea5Id="-1",this.sim="-1",this.description="-1",this.ippool="-1",this.quotaRemaining="",this.quotaType="-1",this.simSessionState="-1",this.alertThreshold="-1",this.applyFilters()}filterExact(e,n){"Status"==e&&(this.status=n),"SimDeletedStatus"==e&&(this.simDeletedStatus=n),"simLockedStatus"==e&&(this.simLockedStatus=n),"Lockable"==e&&(this.lockable=n),"APN"==e&&(this.apn=n),"Network"==e&&(this.network=n),"SIM_NUMBER"==e&&(this.sim=n),"DESCRIPTION"==e&&(this.description=n),"IP_POOL"==e&&(this.ippool=n),"LineManagerId"==e&&(this.lineManagerId=n),"BusinessArea1Id"==e&&(this.businessArea1Id=n),"BusinessArea2Id"==e&&(this.businessArea2Id=n),"BusinessArea3Id"==e&&(this.businessArea3Id=n),"BusinessArea4Id"==e&&(this.businessArea4Id=n),"BusinessArea5Id"==e&&(this.businessArea5Id=n),"QUOTA_REMAINING"==e&&(this.quotaRemaining=void 0===n.remainingQuota?"":n.remainingQuota,this.quotaType=void 0===n.type?"":n.type),"SIM_SESSION_STATE"==e&&(this.simSessionState=n),"ALERT_THRESHOLD"==e&&(this.alertThreshold=n),void 0!==n&&""!==n?this.filters[e]=n:this.removeFilter(e)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.b))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-subscribers-filter-list"]],inputs:{reload:"reload",status:"status",simLockedStatus:"simLockedStatus",simDeletedStatus:"simDeletedStatus",lockable:"lockable",apn:"apn",network:"network",lineManagerId:"lineManagerId",businessArea1Id:"businessArea1Id",businessArea2Id:"businessArea2Id",businessArea3Id:"businessArea3Id",businessArea4Id:"businessArea4Id",businessArea5Id:"businessArea5Id",sim:"sim",description:"description",ippool:"ippool",simSessionState:"simSessionState",quotaRemaining:"quotaRemaining",quotaType:"quotaType",alertThreshold:"alertThreshold",showAllFilters:"showAllFilters",showConnectedFilter:"showConnectedFilter",showQuotaRemainingFilter:"showQuotaRemainingFilter",showAlertThresholdFilter:"showAlertThresholdFilter",showMoreFilters:"showMoreFilters"},outputs:{filtersChanged:"filtersChanged"},decls:61,vars:41,consts:[[1,"filter-card","common-filters"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],[1,"raven-filter-container"],["fxLayout","row"],["fxLayout","column","fxFlexFill","","fxLayoutAlign","space-around stretch","fxFlex","100",1,"filter-header"],[1,"filters-main-container"],[1,"row",3,"ngClass"],["rowHeight","110px",1,"filters-list",3,"cols"],["colspan","1","rowspan","1",4,"ngIf"],["colspan","1","rowspan","1"],[1,"filter-container",3,"selected","onFiltered"],[1,"row",2,"text-align","center"],[1,"padding-20",2,"margin","auto","padding-bottom","0"],["mat-flat-button","","color","basic",3,"click",4,"ngIf"],[1,"filters-sub-container",3,"ngClass"],[1,"filter-container",3,"selected","reload","onFiltered"],[1,"row-2"],["mat-flat-button","","color","basic",3,"click"],["aria-hidden","true",1,"fa","fa-chevron-up"],[1,"action-buttons"],["mat-flat-button","","color","primary",1,"btn-apply-filters",3,"click"],[1,"filter-label"],["mat-flat-button","","color","basic",1,"btn-clear-filters",3,"click"],[1,"filter-container",3,"selected","includeAny","onFiltered"],["aria-hidden","true",1,"fa","fa-chevron-down"],["businessAreaType","1",1,"filter-container",3,"selected","onFiltered"],["businessAreaType","2",1,"filter-container",3,"selected","onFiltered"],["businessAreaType","3",1,"filter-container",3,"selected","onFiltered"],["businessAreaType","4",1,"filter-container",3,"selected","onFiltered"],["businessAreaType","5",1,"filter-container",3,"selected","onFiltered"],[1,"filter-container",2,"padding-top","32px",3,"reload","quotaRemaining","quotaType","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-content",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"mat-grid-list",7),t.YNc(8,Le,3,2,"mat-grid-tile",8),t.YNc(9,Ne,3,1,"mat-grid-tile",8),t.YNc(10,ve,3,1,"mat-grid-tile",8),t.YNc(11,Oe,3,1,"mat-grid-tile",8),t.TgZ(12,"mat-grid-tile",9)(13,"mat-grid-tile-footer")(14,"app-dm-apn-filter",10),t.NdJ("onFiltered",function(o){return n.filterExact("APN",o)}),t.qZA()()(),t.TgZ(15,"mat-grid-tile",9)(16,"mat-grid-tile-footer")(17,"app-dm-net
1work-filter",10),t.NdJ("onFiltered",function(o){return n.filterExact("Network",o)}),t.qZA()()()()(),t.TgZ(18,"div",11)(19,"div",12),t.YNc(20,qe,4,3,"button",13),t.qZA()()(),t.TgZ(21,"div",14)(22,"div")(23,"mat-grid-list",7)(24,"mat-grid-tile",9)(25,"mat-grid-tile-footer")(26,"app-linemanager-filter",15),t.NdJ("onFiltered",function(o){return n.filterExact("LineManagerId",o)}),t.qZA()()(),t.YNc(27,Ue,3,1,"mat-grid-tile",8),t.YNc(28,Pe,3,1,"mat-grid-tile",8),t.YNc(29,we,3,1,"mat-grid-tile",8),t.YNc(30,Ee,3,1,"mat-grid-tile",8),t.qZA()(),t.TgZ(31,"div",16)(32,"mat-grid-list",7),t.YNc(33,ke,3,1,"mat-grid-tile",8),t.TgZ(34,"mat-grid-tile",9)(35,"mat-grid-tile-footer")(36,"app-sim-number",15),t.NdJ("onFiltered",function(o){return n.filterExact("SIM_NUMBER",o)}),t.qZA()()(),t.TgZ(37,"mat-grid-tile",9)(38,"mat-grid-tile-footer")(39,"app-description",15),t.NdJ("onFiltered",function(o){return n.filterExact("DESCRIPTION",o)}),t.qZA()()(),t.TgZ(40,"mat-grid-tile",9)(41,"mat-grid-tile-footer")(42,"app-dm-ip-pool-filter",15),t.NdJ("onFiltered",function(o){return n.filterExact("IP_POOL",o)}),t.qZA()()(),t.YNc(43,Fe,3,2,"mat-grid-tile",8),t.YNc(44,Qe,3,3,"mat-grid-tile",8),t.YNc(45,Re,3,1,"mat-grid-tile",8),t.qZA()(),t.TgZ(46,"div",11)(47,"div",12)(48,"button",17),t.NdJ("click",function(){return n.showMoreFilters=!1}),t._uU(49),t.ALo(50,"translate"),t._UZ(51,"i",18),t.qZA()()()()()(),t.TgZ(52,"div",19)(53,"button",20),t.NdJ("click",function(){return n.applyFilters()}),t.TgZ(54,"span",21),t._uU(55),t.ALo(56,"translate"),t.qZA()(),t.TgZ(57,"button",22),t.NdJ("click",function(){return n.clearFilters()}),t.TgZ(58,"span",21),t._uU(59),t.ALo(60,"translate"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("ngClass",t.VKq(37,Ye,!n.showMoreFilters)),t.xp6(1),t.s9C("cols",n.filterColumns),t.xp6(1),t.Q6J("ngIf",n.showAllFilters),t.xp6(1),t.Q6J("ngIf",n.showAllFilters),t.xp6(1),t.Q6J("ngIf",n.showAllFilters),t.xp6(1),t.Q6J("ngIf",n.showAllFilters),t.xp6(3),t.Q6J("selected",n.apn),t.xp6(3),t.Q6J("selected",n.network),t.xp6(3),t.Q6J("ngIf",!n.showMoreFilters),t.xp6(1),t.Q6J("ngClass",t.VKq(39,Je,n.showMoreFilters)),t.xp6(2),t.s9C("cols",n.filterColumns),t.xp6(3),t.Q6J("selected",n.lineManagerId)("reload",n.reload),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba1Enabled),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba2Enabled),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba3Enabled),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba4Enabled),t.xp6(2),t.s9C("cols",n.filterColumns),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba5Enabled),t.xp6(3),t.Q6J("selected",n.sim)("reload",n.reload),t.xp6(3),t.Q6J("selected",n.description)("reload",n.reload),t.xp6(3),t.Q6J("selected",n.ippool)("reload",n.reload),t.xp6(1),t.Q6J("ngIf",n.showConnectedFilter),t.xp6(1),t.Q6J("ngIf",n.showQuotaRemainingFilter),t.xp6(1),t.Q6J("ngIf",n.showAlertThresholdFilter),t.xp6(4),t.hij("",t.lcZ(50,31,"LESS_FILTERS")," "),t.xp6(6),t.Oqu(t.lcZ(56,33,"APPLY")),t.xp6(4),t.Oqu(t.lcZ(60,35,"CLEAR")))},dependencies:[h.mk,h.O5,f.xw,f.Wh,f.s9,f.yH,rt.oO,N.Il,N.DX,N.$H,N.Bv,T.a8,T.dn,S.lW,he.M,be.a,fe,Ae,Ce,Te,K,$,st,xe,Se,De,Ie,Me,d.X$],styles:[".mat-menu-content .heading{font-size:18px;text-transform:uppercase;font-weight:400;margin-left:55px}.mat-menu-content .active{font-weight:700}.header-filter{float:right;margin-top:-60px;margin-right:30px;background-color:#ffffffe6;position:relative;height:42px;width:180px;padding:7px}.header-filter input{cursor:pointer}.common-filters .header-filters{padding:0}.common-filters .header-filters .label{padding:0;font-size:bold}.common-filters .full-width{width:100%}.common-filters .mat-select{padding-top:0}.common-filters .mat-select-placeholder,.common-filters .mat-select-value{padding-left:10px}.common-filters .filters-main-container{width:100%}.common-filters .filters-sub-container{width:100%;display:none;transition:display 2s}.common-filters .filters-sub-container.show-more{display:inline-block;transition:display 2s}.common-filters .filters-sub-container .row-2{padding-top:20px}.common-filters .btn{font-size:.8rem;border:1px solid #1A3B68;color:#1a3b68;background-color:#eee;margin-left:5px}.common-filters .k-dropdown-wrap{height:35px!important}.row .filter{padding-top:20px}.row .filter .title{display:block;width:100%}
1.row .filter .k-button-group{display:table-row}.row .filter .k-button-group .k-button{width:90px!important}.row .hidden{width:0!important;flex:0!important}.k-multiselect{min-height:36px;border:1px solid rgba(0,0,0,.08)!important}.k-multiselect .k-multiselect-wrap .k-button{padding-right:26px!important}.mat-progress-bar.filter-loading{margin-top:-1.25em;margin-bottom:1em}\n"],encapsulation:2}),i})();function ye(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.Quota+e.data.QuotaTopUp,3))}}function Be(i,a){1&i&&t._UZ(0,"ngx-skeleton",15)}function Ke(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.Quota,3))}}function He(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.QuotaTopUp,3))}}function Ge(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.QuotaUsed,3))}}function $e(i,a){1&i&&t._UZ(0,"ngx-skeleton",15)}function je(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.QuotaRemaining,3))}}function Xe(i,a){1&i&&t._UZ(0,"ngx-skeleton",15)}function Ve(i,a){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.AsE("",e.data.SimCount," / ",e.data.SimLimit," ")}}function We(i,a){1&i&&t._UZ(0,"ngx-skeleton",15)}function ze(i,a){if(1&i&&(t.TgZ(0,"mat-grid-tile")(1,"mat-card",16)(2,"mat-card-content",4)(3,"span",7),t._uU(4),t.ALo(5,"translate"),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ve,2,2,"span",8),t.YNc(8,We,1,0,"ngx-skeleton",9),t.TgZ(9,"mat-icon",10),t._uU(10,"hourglass"),t.qZA()()()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE("",t.lcZ(5,4,"SIM_COUNT")," / ",t.lcZ(6,6,"SIM_LIMIT"),""),t.xp6(3),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}const ti=function(i){return{active:i}};function ei(i,a){if(1&i&&(t.TgZ(0,"div",1)(1,"mat-grid-list",2)(2,"mat-grid-tile")(3,"mat-card",3)(4,"mat-card-content",4)(5,"div",5)(6,"ul",6)(7,"li")(8,"span",7),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ye,3,4,"span",8),t.YNc(12,Be,1,0,"ngx-skeleton",9),t.qZA(),t.TgZ(13,"li")(14,"span",7),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Ke,3,4,"span",8),t.qZA(),t.TgZ(18,"li")(19,"span",7),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.YNc(22,He,3,4,"span",8),t.qZA()()(),t.TgZ(23,"mat-icon",10),t._uU(24,"analytics"),t.qZA()()()(),t.TgZ(25,"mat-grid-tile")(26,"mat-card",11)(27,"mat-card-content",4)(28,"span",7),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,Ge,3,4,"span",8),t.YNc(32,$e,1,0,"ngx-skeleton",9),t.TgZ(33,"mat-icon",10),t._uU(34,"trending_up"),t.qZA()()()(),t.TgZ(35,"mat-grid-tile")(36,"mat-card",12)(37,"mat-card-content",4)(38,"span",7),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.YNc(41,je,3,4,"span",8),t.YNc(42,Xe,1,0,"ngx-skeleton",9),t.TgZ(43,"mat-icon",10),t._uU(44,"trending_down"),t.qZA()()()(),t.YNc(45,ze,11,8,"mat-grid-tile",13),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(1),t.s9C("cols",e.data.SimLimit>0?4:3),t.xp6(5),t.Q6J("ngClass",t.VKq(26,ti,!e.loading)),t.xp6(3),t.Oqu(t.lcZ(10,16,"TOTAL_QUOTA")),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.Oqu(t.lcZ(16,18,"MONTHLY_QUOTA")),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(3),t.Oqu(t.lcZ(21,20,"TOPUP_QUOTA")),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(7),t.Oqu(t.lcZ(30,22,"QUOTA_USED")),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(7),t.Oqu(t.lcZ(40,24,"QUOTA_REMAINING")),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.Q6J("ngIf",e.data.SimLimit>0)}}let ii=(()=>{class i{constructor(e){this.dmService=e,this.billingMonth=0,this.searchText="",this.loading=!1}ngOnInit(){this.loadData()}ngOnChanges(){this.loadData()}loadData(){this.loading=!0,this.dmService.GetSubscriberSummary(this.billingMonth,this.searchText,this.status,this.simLockedStatus,this.simDeletedStatus,this.lockable,this.apn,this.network,this.lineManagerId,this.businessArea1Id,this.businessArea2Id,this.businessArea3Id,this.businessArea4Id,this.businessArea5Id,this.sim,this.description,this.ippool,this.quotaRemaining,this.quotaType,this.simSessionState).subscribe(e=>{this.data=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-subscriber-indicators"]],inputs:{billingMonth:"billingMonth",searchText:"searchText",status:"status",simLockedStatus:"simLockedStatus",simDeletedStatus:"simDeletedStatus",lockable:"lockable",apn:"apn",network:"network",lineManagerId:"lineManagerId",businessArea1Id:"businessArea1Id",businessArea2Id:"businessArea2Id",businessArea3Id:"businessArea3Id",businessArea4Id:"businessArea4Id",businessArea5Id:"businessArea5Id",sim:"sim",description:"description",ippool:"ippool",quotaRemaining:"quotaRemaining",quotaType:"quotaType",simSessionState:"simSessionState"},features:[t.TTD],decls:1,vars:1,consts:[["class","indicators",4,"ngIf"],[1,"indicators"],["rowHeight","3:1",3,"cols"],[1,"indicator-card","mat-primary"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","left"],[1,"carousel"],[1,"slides",3,"ngClass"],[1,"title"],["class","value",4,"ngIf"],["class","value","height","38px","margin","0 0 8px 0","width","50%",4,"ngIf"],[1,"icon"],[1,"indicator-card","mat-orange"],[1,"indicator-card","mat-accent"],[4,"ngIf"],[1,"value"],["height","38px","margin","0 0 8px 0","width","50%",1,"value"],[1,"indicator-card","mat-tertiary"]],template:function(e,n){1&e&&t.YNc(0,ei,46,28,"div",0),2&e&&t.Q6J("ngIf",!!n.data)},dependencies:[h.mk,h.O5,f.xw,f.Wh,f.yH,rt.oO,N.Il,N.DX,T.a8,T.dn,C.Hw,z.w,d.X$,U.$],styles:[".raven-display-block[_ngcontent-%COMP%]{display:block}.indicators[_ngcontent-%COMP%]{max-width:97%;width:97%;margin:15px auto auto}.indicators[_ngcontent-%COMP%] .indicator-card[_ngcontent-%COMP%]{max-width:96%;width:96%;height:100%;padding:30px 30px 10px;box-shadow:0 0 5px #0003;border-radius:4px}.indicators[_ngcontent-%COMP%] .indicator-card[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:30px;display:block}.indicators[_ngcontent-%COMP%] .indicator-card[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{margin-top:10px;font-size:38px;font-weight:700;display:block}.indicators[_ngcontent-%COMP%] .indicator-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:150px;position:absolute;right:139px;top:14px;opacity:.3}.indicators[_ngcontent-%COMP%] .carousel[_ngcontent-%COMP%]{overflow:hidden;width:100%}.indicators[_ngcontent-%COMP%] .slides[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none;position:relative;height:100%;width:300%;overflow:hidden}.indicators[_ngcontent-%COMP%] .slides.active[_ngcontent-%COMP%]{animation:carousel 15s infinite}.indicators[_ngcontent-%COMP%] .slides[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;float:left;height:100px;width:33.33%}@keyframes carousel{0%{left:0%}10%{left:0%}20%{left:-100%}30%{left:-100%}40%{left:-100%}50%{left:-100%}60%{left:-200%}70%{left:-200%}80%{left:-200%}90%{left:0%}to{left:0%}}"]}),i})();function ni(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",42),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2);
1return t.KtG(s.openAddSubscriberDialog())}),t.TgZ(1,"span",43),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"ADD")))}const v=function(i){return[i]},O=function(i,a){return{ApplicationModule:i,RequiredActions:a}};function ai(i,a){if(1&i&&(t.ynx(0),t.YNc(1,ni,4,3,"button",41),t.BQk()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(3,O,e.modules.DataManager,t.VKq(1,v,e.actions.PROVISION)))}}function si(i,a){1&i&&t._UZ(0,"mat-progress-bar",44)}function oi(i,a){1&i&&(t.TgZ(0,"th",45),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SUBSCRIBER_DETAILS")," "))}function ri(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",51,52),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(9),p=t.oxw();return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(9),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",53),t._uU(3,"business"),t.qZA()()}}function li(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",51,54),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(11),p=t.oxw();return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(11),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",53),t._uU(3,"supervisor_account"),t.qZA()()}}function ci(i,a){if(1&i&&(t.TgZ(0,"div",58)(1,"span",59),t._uU(2),t.qZA(),t.TgZ(3,"span",60),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba1NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea1Name?e.AllocatedBusinessArea1Name:"-")}}function pi(i,a){1&i&&t._UZ(0,"div",61)}function di(i,a){if(1&i&&(t.TgZ(0,"div",58)(1,"span",59),t._uU(2),t.qZA(),t.TgZ(3,"span",60),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba2NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea2Name?e.AllocatedBusinessArea2Name:"-")}}function ui(i,a){1&i&&t._UZ(0,"div",61)}function mi(i,a){if(1&i&&(t.TgZ(0,"div",58)(1,"span",59),t._uU(2),t.qZA(),t.TgZ(3,"span",60),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba3NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea3Name?e.AllocatedBusinessArea3Name:"-")}}function _i(i,a){1&i&&t._UZ(0,"div",61)}function gi(i,a){if(1&i&&(t.TgZ(0,"div",58)(1,"span",59),t._uU(2),t.qZA(),t.TgZ(3,"span",60),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba4NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea4Name?e.AllocatedBusinessArea4Name:"-")}}function hi(i,a){1&i&&t._UZ(0,"div",61)}function bi(i,a){if(1&i&&(t.TgZ(0,"div",58)(1,"span",59),t._uU(2),t.qZA(),t.TgZ(3,"span",60),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba5NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea5Name?e.AllocatedBusinessArea5Name:"-")}}function fi(i,a){if(1&i&&(t.TgZ(0,"div",55),t.YNc(1,ci,5,2,"div",56),t.YNc(2,pi,1,0,"div",57),t.YNc(3,di,5,2,"div",56),t.YNc(4,ui,1,0,"div",57),t.YNc(5,mi,5,2,"div",56),t.YNc(6,_i,1,0,"div",57),t.YNc(7,gi,5,2,"div",56),t.YNc(8,hi,1,0,"div",57),t.YNc(9,bi,5,2,"div",56),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba1Enabled&&!!e.AllocatedBusinessArea1ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID)}}function Ai(i,a){if(1&i&&(t.TgZ(0,"div",55)(1,"div",58)(2,"span",59),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"span",60),t._uU(6),t.qZA()(),t._UZ(7,"div",61),t.TgZ(8,"div",58)(9,"span",59),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",60),t._uU(13),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,4,"MANAGER"),":"),t.xp6(3),t.Oqu(e.AllocatedLineManagerName?e.AllocatedLineManagerName:"-"),t.xp6(4),t.hij("",t.lcZ(11,6,"MANAGER_EMAIL"),":"),t.xp6(3),t.Oqu(e.AllocatedLineManagerEmail?e.AllocatedLineManagerEmail:"-")}}function Ci(i,a){if(1&i&&(t.TgZ(0,"td",46)(1,"span",47)(2,"mat-icon"),t._uU(3,"person"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.YNc(6,ri,4,0,"span",48),t.YNc(7,li,4,0,"span",48),t.YNc(8,fi,10,9,"ng-template",null,49,t.W1O),t.YNc(10,Ai,14,8,"ng-template",null,50,t.W1O),t.qZA()),2&i){const e=a.$implicit,n=t.oxw();
1t.xp6(4),t.hij(" ",e.AllocatedName||t.lcZ(5,3,"UNALLOCATED")," "),t.xp6(2),t.Q6J("ngIf",n.showBusinessAreas(e)),t.xp6(1),t.Q6J("ngIf",!!e.AllocatedLineManagerID)}}function Ti(i,a){1&i&&(t.TgZ(0,"th",62),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ACTIVE")," "))}function xi(i,a){if(1&i&&(t.TgZ(0,"td",46)(1,"mat-chip-list",63)(2,"mat-chip",64),t._uU(3),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(3),t.AsE("",e.TotalActive,"/",e.TotalCount,"")}}function Si(i,a){1&i&&(t.TgZ(0,"th",62),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"LOCKED")," "))}function Zi(i,a){if(1&i&&(t.TgZ(0,"td",46)(1,"mat-chip-list",65)(2,"mat-chip",64),t._uU(3),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(3),t.AsE("",e.TotalLocked,"/",e.TotalCount,"")}}function Di(i,a){1&i&&(t.TgZ(0,"th",62),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"LOCKABLE")," "))}function Ii(i,a){if(1&i&&(t.TgZ(0,"td",46)(1,"mat-chip-list",66)(2,"mat-chip",64),t._uU(3),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(3),t.AsE("",e.TotalLockable,"/",e.TotalCount,"")}}function Mi(i,a){1&i&&(t.TgZ(0,"th",67),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"QUOTA")," "))}function Li(i,a){if(1&i&&(t.TgZ(0,"td",68)(1,"mat-chip-list",69)(2,"mat-chip",70),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color",e.Quota>0?"default":"orange"),t.xp6(1),t.Oqu(t.xi3(4,2,e.Quota,2))}}function Ni(i,a){1&i&&(t.TgZ(0,"th",67),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"TOPUP")," "))}function vi(i,a){if(1&i&&(t.TgZ(0,"td",68)(1,"mat-chip-list",69)(2,"mat-chip",70),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color","default"),t.xp6(1),t.hij("",t.xi3(4,2,e.QuotaTopUp,2)," ")}}function Oi(i,a){1&i&&(t.TgZ(0,"th",67),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USED")," "))}function qi(i,a){if(1&i&&(t.TgZ(0,"td",68)(1,"mat-chip-list",69)(2,"mat-chip",70),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color","default"),t.xp6(1),t.hij("",t.xi3(4,2,e.QuotaUsed,2)," ")}}function Ui(i,a){1&i&&(t.TgZ(0,"th",67),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"REMAINING")," "))}function Pi(i,a){if(1&i&&(t.TgZ(0,"td",68)(1,"mat-chip-list",71)(2,"mat-chip",70),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color",e.QuotaRemaining>0?"primary":"accent"),t.xp6(1),t.Oqu(t.xi3(4,2,e.QuotaRemaining,2))}}function wi(i,a){1&i&&t._UZ(0,"th",72)}function Ei(i,a){1&i&&(t.TgZ(0,"td",73)(1,"button",74)(2,"mat-icon"),t._uU(3,"search"),t.qZA()()())}function ki(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",83,102),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(17),p=t.oxw(3);return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(17),o=t.oxw(3);return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",84),t._uU(3,"cloud"),t.qZA()()}if(2&i){const e=t.oxw().$implicit;t.s9C("cbContent",e.APN)}}function Fi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",51,103),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(19),p=t.oxw(3);return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(19),o=t.oxw(3);return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",84),t._uU(3,"notifications"),t.qZA()()}}function Qi(i,a){if(1&i&&(t.TgZ(0,"div",55)(1,"div",58)(2,"span",59),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",58)(6,"span",60),t._uU(7),t.qZA()(),t._UZ(8,"div",61),t.TgZ(9,"div",58)(10,"span",59),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",58)(14,"span",60),t._uU(15),t.qZA()(),t._UZ(16,"div",61),t.TgZ(17,"div",58)(18,"span",59),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.TgZ(21,"div",58)(22,"span",60),t._uU(23),t.qZA()(),t._UZ(24,"div",61),t.TgZ(25,"div",58)(26,"span",59),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"div",58)(30,"span",60),t._uU(31),t.qZA()(),t._UZ(32,"div",61),t.TgZ(33,"div",58)(34,"span",59),t._uU(35),t.ALo(36,"translate"),t.qZA()(),t.TgZ(37,"div",58)(38,"span",60),t._uU(39),t.qZA()(),t._UZ(40,"div",61),t.TgZ(41,"div",58)(42,"span",59),t._uU(43),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"div",58)(46,"span",60),t._uU(47),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,12,"DESCRIPTION"),":"),t.xp6(4),t.Oqu(e.Description||"-"),t.xp6(4),t.hij("",t.lcZ(12,14,"NETWORK"),":"),t.xp6(4),t.Oqu(e.Network||"-"),t.xp6(4),t.hij("",t.lcZ(20,16,"IP_POOL"),":"),t.xp6(4),t.Oqu(e.PoolIdentifier||"-"),t.xp6(4),t.hij("",t.lcZ(28,18,"SIM_NUMBER"),":"),t.xp6(4),t.Oqu(e.SimNumber||"-"),t.xp6(4),t.hij("",t.lcZ(36,20,"PIN"),":"),t.xp6(4),t.Oqu(e.Pin||"-"),t.xp6(4),t.hij("",t.lcZ(44,22,"PUK"),":"),t.xp6(4),t.Oqu(e.Puk||"-")}}function Ri(i,a){if(1&i&&(t.TgZ(0,"div",55)(1,"div",58)(2,"span",59),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"span",60),t._uU(6),t.ALo(7,"translate"),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,2,"APN"),":"),t.xp6(3),t.Oqu(e.APN||t.lcZ(7,4,"BLANK"))}}function Yi(i,a){1&i&&t._UZ(0,"div",61)}function Ji(i,a){if(1&i&&(t.ynx(0),t.YNc(1,Yi,1,0,"div",57),t.TgZ(2,"div",58)(3,"span",60),t._uU(4),t.qZA()(),t.BQk()),2&i){const e=a.$implicit,n=a.first;t.xp6(1),t.Q6J("ngIf",!n),t.xp6(3),t.hij("",e,"%")}}function yi(i,a){if(1&i&&(t.TgZ(0,"div",55)(1,"div",58)(2,"span",59),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,Ji,5,2,"ng-container",104),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,2,"NOTIFICATION_THRESHOLDS"),":"),t.xp6(2),t.Q6J("ngForOf",n.getAlerts(e.Alert))}}function Bi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-chip",105,106),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(24),p=t.oxw(3);return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(24),o=t.oxw(3);return t.KtG(o.closePopup(s))}),t._uU(2),t.ALo(3,"translate"),t.qZA()}2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"IS_DELETED")))}function Ki(i,a){if(1&i&&(t.TgZ(0,"div",55)(1,"div",58)(2,"span",59),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"span",60),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"hr"),t.TgZ(9,"div",58)(10,"span",59),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"span",60),t._uU(14),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,4,"Delete Reason"),":"),t.xp6(3),t.Oqu(e.DeleteReason||t.lcZ(7,6,"BLANK")),t.xp6(5),t.hij("",t.lcZ(12,8,"Date Deleted"),":"),t.xp6(3),t.Oqu(e.DateDeleted)}}function Hi(i,a){1&i&&(t.TgZ(0,"mat-chip",107),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DEACTIVATED")))}function Gi(i,a){1&i&&(t.TgZ(0,"mat-chip",108),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"ACTIVE")))}function $i(i,a){1&i&&(t.TgZ(0,"mat-chip",64),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NO")))}function ji(i,a){if(1&i&&(t.TgZ(0,"mat-chip",109),t.ALo(1,"translate"),t.ALo(2,"date"),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.hYB("matTooltip","",t.lcZ(1,3,"DATE_LOCKED"),": ",t.xi3(2,5,e.DateLocked,"medium"),""),t.xp6(3),t.Oqu(t.lcZ(4,8,"YES"))}}function Xi(i,a){1&i&&(t.TgZ(0,"mat-chip",107),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"NO")))}function Vi(i,a){1&i&&(t.TgZ(0,"mat-chip",64),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"YES")))}function Wi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",110),t.NdJ("menuOpened",function(){t.CHM(e);const s=t.oxw().$implicit,o=t.oxw(3);return t.KtG(o.menuOpened(s))}),t.TgZ(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()}if(2&i){t.oxw();const e=t.MAs(58);t.Q6J("matMenuTriggerFor",e)}}function zi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().$implicit,o=t.oxw(3);return t.KtG(o.goToDetail(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"search"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"VIEW")))}function tn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openTopUpDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"more_time"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"TOPUP")))}function en(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openAllocateQuotaDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"import_export"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"ALLOCATE_QUOTA")))}function nn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openAssignIPPoolDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"assignment"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"ASSIGN_IP_POOL")))}function an(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openAssignAPNDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"assignment"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"ASSIGN_APN")))}function sn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openLineStatusDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"assignment_late"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"LINE_STATUS")))}function on(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openNotificationThresholdsDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"hourglass_empty"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"NOTIFICATION_THRESHOLDS")))}function rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openMetadataDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"notes"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"SIM_DATA")))}function ln(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).$implicit,o=t.oxw(3);return t.KtG(o.openSubscriberAllocationDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"person"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"ASSIGN_PERSON")))}function cn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3).$implicit,o=t.oxw(3);return t.KtG(o.openDeactivateMsisdnDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"mobile_off"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"DEACTIVATE_MSISDN")))}function pn(i,a){if(1&i&&(t.ynx(0),t.YNc(1,cn,6,3,"button",101),t.BQk()),2&i){const e=t.oxw(5);t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(3,O,e.modules.DataManager,t.VKq(1,v,e.actions.DEACTIVATE_MSISDN)))}}function dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",111),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(3).$implicit,o=t.oxw(3);return t.KtG(o.openDeleteMsisdnDialog(s))}),t.TgZ(1,"mat-icon",112),t._uU(2,"delete_forever"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"translate"),t.qZA()()}
12&i&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"DELETE_MSISDN")))}function un(i,a){if(1&i&&(t.ynx(0),t.YNc(1,dn,6,3,"button",101),t.BQk()),2&i){const e=t.oxw(5);t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(3,O,e.modules.DataManager,t.VKq(1,v,e.actions.DELETE_MSISDN)))}}function mn(i,a){if(1&i&&(t.ynx(0),t.YNc(1,tn,6,3,"button",101),t.YNc(2,en,6,3,"button",101),t.YNc(3,nn,6,3,"button",101),t.YNc(4,an,6,3,"button",101),t.YNc(5,sn,6,3,"button",101),t.YNc(6,on,6,3,"button",101),t.YNc(7,rn,6,3,"button",101),t.YNc(8,ln,6,3,"button",101),t.YNc(9,pn,2,6,"ng-container",77),t.YNc(10,un,2,6,"ng-container",77),t.BQk()),2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(12,O,n.modules.DataManager,t.VKq(10,v,n.actions.TOP_UP))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(17,O,n.modules.DataManager,t.VKq(15,v,n.actions.ALLOCATE_QUOTA))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(22,O,n.modules.DataManager,t.VKq(20,v,n.actions.ASSIGN_IP_POOL))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(27,O,n.modules.DataManager,t.VKq(25,v,n.actions.APN))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(32,O,n.modules.DataManager,t.VKq(30,v,n.actions.LINE_STATUS))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(37,O,n.modules.DataManager,t.VKq(35,v,n.actions.NOTIFICATION_THRESHOLDS))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(42,O,n.modules.DataManager,t.VKq(40,v,n.actions.META_DATA))),t.xp6(1),t.Q6J("showAuthedSubRole",t.WLB(47,O,n.modules.DataManager,t.VKq(45,v,n.actions.ALLOCATE_PERSON))),t.xp6(1),t.Q6J("ngIf",e.IsActive),t.xp6(1),t.Q6J("ngIf",!e.IsActive)}}function _n(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",79)(1,"td",80)(2,"span",47)(3,"mat-icon",81),t._uU(4,"phone"),t.qZA(),t.TgZ(5,"span",82),t.ALo(6,"translate"),t._uU(7),t.qZA(),t.TgZ(8,"span",83,52),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(15),o=t.MAs(9),p=t.oxw(3);return t.KtG(p.togglePopup(s,o))})("mouseleave",function(){t.CHM(e);const s=t.MAs(15),o=t.oxw(3);return t.KtG(o.closePopup(s))}),t.TgZ(10,"mat-icon",84),t._uU(11,"info"),t.qZA()(),t.YNc(12,ki,4,1,"span",85),t.YNc(13,Fi,4,0,"span",48),t.YNc(14,Qi,48,24,"ng-template",null,86,t.W1O),t.YNc(16,Ri,8,6,"ng-template",null,87,t.W1O),t.YNc(18,yi,6,4,"ng-template",null,88,t.W1O),t.qZA()(),t.TgZ(20,"td",89)(21,"mat-chip-list",65),t.YNc(22,Bi,4,3,"mat-chip",90),t.YNc(23,Ki,15,10,"ng-template",null,91,t.W1O),t.YNc(25,Hi,3,3,"mat-chip",92),t.YNc(26,Gi,3,3,"mat-chip",93),t.qZA()(),t.TgZ(27,"td",89)(28,"mat-chip-list",65),t.YNc(29,$i,3,3,"mat-chip",94),t.YNc(30,ji,5,10,"mat-chip",95),t.qZA()(),t.TgZ(31,"td",89)(32,"mat-chip-list",65),t.YNc(33,Xi,3,3,"mat-chip",92),t.YNc(34,Vi,3,3,"mat-chip",94),t.qZA()(),t.TgZ(35,"td",96)(36,"mat-chip-list",69)(37,"mat-chip",70),t._uU(38),t.ALo(39,"bytes"),t.qZA()()(),t.TgZ(40,"td",96)(41,"mat-chip-list",69)(42,"mat-chip",70),t._uU(43),t.ALo(44,"bytes"),t.qZA()()(),t.TgZ(45,"td",96)(46,"mat-chip-list",69)(47,"mat-chip",70),t._uU(48),t.ALo(49,"bytes"),t.qZA()()(),t.TgZ(50,"td",96)(51,"mat-chip-list",69)(52,"mat-chip",70),t._uU(53),t.ALo(54,"bytes"),t.qZA()()(),t.TgZ(55,"td",97),t.YNc(56,Wi,3,1,"button",98),t.TgZ(57,"mat-menu",99,100),t.NdJ("closed",function(){t.CHM(e);const s=t.oxw(3);return t.KtG(s.menuClosed())}),t.YNc(59,zi,6,3,"button",101),t.YNc(60,mn,11,50,"ng-container",77),t.qZA()()()}if(2&i){const e=a.$implicit,n=t.oxw(3);t.ekj("selected-row",n.rowMenuSelected===e),t.xp6(5),t.s9C("cbContent",e.Name),t.s9C("matTooltip",t.lcZ(6,27,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.Name),t.xp6(1),t.s9C("cbContent",e.Description),t.xp6(4),t.Q6J("ngIf",!!e.APN),t.xp6(1),t.Q6J("ngIf",!!e.Alert),t.xp6(9),t.Q6J("ngIf",e.IsDeleted),t.xp6(3),t.Q6J("ngIf",!e.IsActive&&!e.IsDeleted),t.xp6(1),t.Q6J("ngIf",e.IsActive&&!e.IsDeleted),t.xp6(3),t.Q6J("ngIf",!e.IsLocked),t.xp6(1),t.Q6J("ngIf",e.IsLocked),t.xp6(3),t.Q6J("ngIf",!e.IsLockable),t.xp6(1),t.Q6J("ngIf",e.IsLockable),t.xp6(3),t.s9C("color",e.Quota>0?"default":"orange"),t.xp6(1),t.Oqu(t.xi3(39,29,e.Quota,2)),t.xp6(4),t.s9C("color","default"),t.xp6(1),t.Oqu(t.xi3(44,32,e.QuotaTopUp,2)),t.xp6(4),t.s9C("color",e.QuotaUsed>0?"orange":"default"),t.xp6(1),t.Oqu(t.xi3(49,35,e.QuotaUsed,2)),t.xp6(4),t.s9C("color",e.QuotaRemaining>0?"primary":"accent"),t.xp6(1),t.Oqu(t.xi3(54,38,e.QuotaRemaining,2)),t.xp6(3),t.Q6J("showAuthed",n.allowedRoles),t.xp6(1),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("showAuthedSubRole",t.WLB(43,O,n.modules.DataManager,t.VKq(41,v,n.actions.VIEW))),t.xp6(1),t.Q6J("ngIf",!e.IsDeleted)}}function gn(i,a){if(1&i&&(t.ynx(0),t.YNc(1,_n,61,46,"tr",78),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.expandedDetails)}}function hn(i,a){1&i&&(t.TgZ(0,"tr",79)(1,"td",80),t._UZ(2,"ngx-skeleton",114),t.qZA(),t.TgZ(3,"td",115),t._UZ(4,"ngx-skeleton",116),t.qZA(),t.TgZ(5,"td",115),t._UZ(6,"ngx-skeleton",116),t.qZA(),t.TgZ(7,"td",115),t._UZ(8,"ngx-skeleton",116),t.qZA(),t.TgZ(9,"td",117),t._UZ(10,"ngx-skeleton",116),t.qZA(),t.TgZ(11,"td",117),t._UZ(12,"ngx-skeleton",116),t.qZA(),t.TgZ(13,"td",117),t._UZ(14,"ngx-skeleton",116),t.qZA(),t.TgZ(15,"td",117),t._UZ(16,"ngx-skeleton",116),t.qZA(),t._UZ(17,"td",118),t.qZA())}function bn(i,a){if(1&i&&(t.ynx(0),t.YNc(1,hn,18,0,"tr",113),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.skeletonItems)}}function fn(i,a){if(1&i&&(t.TgZ(0,"td",46)(1,"div",75)(2,"table",76),t.YNc(3,gn,2,1,"ng-container",77),t.YNc(4,bn,2,1,"ng-container",77),t.qZA()()()),2&i){const e=a.$implicit,n=t.oxw();t.ekj("hidden",e!=n.expandedRow),t.uIk("colspan",n.displayedColumns.length),t.xp6(1),t.Q6J("@detailExpand",e==n.expandedRow?"expanded":"collapsed"),t.xp6(1),t.ekj("hidden",e!=n.expandedRow),t.xp6(1),t.Q6J("ngIf",!n.isLoadingDetails),t.xp6(1),t.Q6J("ngIf",n.isLoadingDetails)}}function An(i,a){1&i&&t._UZ(0,"tr",119)}function Cn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",120),t.NdJ("click",function(){const o=t.CHM(e).$implicit,p=t.oxw();return t.KtG(p.expandRow(o))}),t.qZA()}if(2&i){const e=a.$implicit,n=t.oxw();t.ekj("expanded-row",n.expandedRow===e)}}function Tn(i,a){1&i&&t._UZ(0,"tr",121)}const xn=function(){return["expandedDetails"]},Sn=function(){return[10,20,50,100]};let Zn=(()=>{class i extends j.t{constructor(e,n,s,o,p,_,u,Ds){super(e,p),this._state=e,this.router=n,this.sessionHelperService=s,this.dmService=o,this.snackBar=p,this.popupService=_,this.dialog=u,this.route=Ds,this.reloadEvent="reload.dm.subscribers.list",this.displayedColumns=["AllocatedName","TotalActive","TotalLocked","TotalLockable","Quota","QuotaTopUp","QuotaUsed","QuotaRemaining","Actions"],this.filterBillingMonth=0,this.filterStatus="-1",this.filtersimLockedStatus="-1",this.filterSimDeletedStatus="-1",this.filterLockable="-1",this.filterAPN="-1",this.filterNetwork="-1",this.lineManagerId=-1,this.businessArea1Id=-1,this.businessArea2Id=-1,this.businessArea3Id=-1,this.businessArea4Id=-1,this.businessArea5Id=-1,this.filterSim="-1",this.filterDescription="-1",this.filterIppool="-1",this.quotaRemainingModel={remainingQuota:"-1",type:"-1"},this.filterQuotaRemaining="-1",this.filterQuotaRemainingType="-1",this.filterSimSessionState="-1",this.reload=new Date,this.isLoadingDetails=!0,this.searchTextChanged=new B.x,this.searchLengthPrev=0,this.skeletonItems=[],this.modules=E.b,this.actions=R,this.showMoreFilters=!1,this.allowedRoles=[A.qP.Administrator,A.qP.SuperAdmin,A.qP.BusinessAreaManager,A.qP.LineManager],this.businessAreaSettings=this.sessionHelperService.GetBusinessAreaSettings()}ngOnInit(){this.sub=this.route.queryParams.subscribe(e=>{void 0!==e.poolName&&(this.filterIppool=e.poolName,this.showMoreFilters=!0)})}getData(){return this.dmService.GetSubscriberList(this.filterBillingMonth,this.searchText,this.filterStatus,this.filtersimLockedStatus,this.filterSimDeletedStatus,this.filterLockable,this.filterAPN,this.filterNetwork,this.lineManagerId,this.businessArea1Id,this.businessArea2Id,this.businessArea3Id,this.businessArea4Id,this.businessArea5Id,this.filterSim,this.filterDescription,this.filterIppool,this.filterQuotaRemaining,this.filterQuotaRemainingType,this.filterSimSessionState,this.sort.active,this.sort.direction,this.paginator.pageIndex+1,this.paginator.pageSize)}dataLoaded(e){}filtersChanged(e){this.filterStatus=e.Status?e.Status:"-1",this.filtersimLockedStatus=e.simLockedStatus?e.simLockedStatus:"-1",this.filterSimDeletedStatus=e.SimDeletedStatus?e.SimDeletedStatus:"-1",this.filterLockable=e.Lockable?e.Lockable:"-1",this.filterAPN=e.APN?e.APN:"-1",this.filterNetwork=e.Network?e.Network:"-1",this.lineManagerId=e.LineManagerId?e.LineManagerId:"-1",this.businessArea1Id=e.BusinessArea1Id?e.BusinessArea1Id:"-1",this.businessArea2Id=e.BusinessArea2Id?e.BusinessArea2Id:"-1",this.businessArea3Id=e.BusinessArea3Id?e.BusinessArea3Id:"-1",this.businessArea4Id=e.BusinessArea4Id?e.BusinessArea4Id:"-1",this.businessArea5Id=e.BusinessArea5Id?e.BusinessArea5Id:"-1",this.filterSim=e.SIM_NUMBER?e.SIM_NUMBER:"-1",this.filterDescription=e.DESCRIPTION?e.DESCRIPTION:"-1",this.filterIppool=e.IP_POOL?e.IP_POOL:"-1",this.quotaRemainingModel=e.QUOTA_REMAINING?e.QUOTA_REMAINING:"",this.filterQuotaRemaining=(this.quotaRemainingModel.remainingQuota??"").toString(),this.filterQuotaRemainingType=(this.quotaRemainingModel.type??"-1").toString(),this.filterSimSessionState=e.SIM_SESSION_STATE?e.SIM_SESSION_STATE:"-1",this.reloadData()}
1reloadData(){this._state.notifyDataChanged(this.reloadEvent,new Date)}expandRow(e){this.expandedRow=this.expandedRow===e?null:e,this.skeletonItems=[];for(let n=0;n<e.TotalCount&&n<10;n++)this.skeletonItems.push(n);this.isLoadingDetails=!0,null!==this.expandedRow&&this.dmService.GetSubscriberDetails(e.AllocatedAlternateID,this.filterBillingMonth,this.searchText,this.filterStatus,this.filtersimLockedStatus,this.filterSimDeletedStatus,this.filterLockable,this.filterAPN,this.filterNetwork,this.lineManagerId,this.businessArea1Id,this.businessArea2Id,this.businessArea3Id,this.businessArea4Id,this.businessArea5Id,this.filterSim,this.filterDescription,this.filterIppool,this.filterQuotaRemaining,this.filterQuotaRemainingType,this.filterSimSessionState,this.sort.active,this.sort.direction,1,100).subscribe(n=>{this.isLoadingDetails=!1,this.expandedDetails=n.Results})}menuOpened(e){this.rowMenuSelected=e}menuClosed(){this.rowMenuSelected=null}showBusinessAreas(e){return this.businessAreaSettings.Ba1Enabled&&!!e.AllocatedBusinessArea1ID||this.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID||this.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID||this.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID||this.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID}getAlerts(e){return JSON.parse(e)}togglePopup(e,n){this.popupRef?(this.popupRef.close(),this.popupRef=null):this.popupRef=this.popupService.open({anchor:n,animate:!1,content:e})}closePopup(e){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}goToDetail(e){this.router.navigate(["pages/datamanager/subscribers/msisdn/",e.SubscriberAlternateID])}openTopUpDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(ht,{width:"400px",data:e})}openAllocateQuotaDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(pe,{width:"400px",data:e})}openAssignAPNDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(St,{width:"400px",data:e})}openAssignIPPoolDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(yt,{width:"400px",data:e})}openSubscriberAllocationDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(Ht,{width:"400px",data:e})}openLineStatusDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(Tt,{width:"400px",data:e})}openNotificationThresholdsDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(At,{width:"600px",data:e})}
1openAddSubscriberDialog(e=null){this.dialogRef=this.dialog.open(Yt,{width:"600px",data:e})}openMetadataDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(ie,{width:"400px",data:e})}openDeleteMsisdnDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(re,{width:"400px",data:e})}openDeactivateMsisdnDialog(e){e.AllocatedName=this.expandedRow.AllocatedName,this.dialogRef=this.dialog.open(ue,{width:"400px",data:e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(w.F0),t.Y36(F.b),t.Y36(b.L),t.Y36(x.ux),t.Y36(X.qL),t.Y36(l.uw),t.Y36(w.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-subscribers"]],features:[t.qOj],decls:56,vars:60,consts:[["pageIcon","fa fa-sim-card",3,"pageTitle","pageSubTitle"],[1,"page-content","subscriber-list"],[3,"reload","status","simLockedStatus","simDeletedStatus","lockable","apn","network","lineManagerId","businessArea1Id","businessArea2Id","businessArea3Id","businessArea4Id","businessArea5Id","sim","description","ippool","quotaRemaining","quotaType","simSessionState","showMoreFilters","filtersChanged"],[3,"searchText","status","simLockedStatus","simDeletedStatus","lockable","apn","network","lineManagerId","businessArea1Id","businessArea2Id","businessArea3Id","businessArea4Id","businessArea5Id","sim","description","ippool","quotaRemaining","quotaType","simSessionState"],[1,"table-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["fxLayout","row"],["fxLayout","column","fxFlexFill","","fxLayoutAlign","space-around stretch","fxFlex","100",1,"grid-container"],[1,"raven-table-container"],[1,"search-box"],["appearance","outline"],["matInput","",3,"placeholder"],["input",""],["matPrefix",""],[1,"action-buttons"],[4,"adminReadOnly"],["mode","indeterminate",4,"ngIf"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","QuotaUsed","matSortDirection","desc",3,"dataSource"],["table",""],["matColumnDef","AllocatedName","sticky",""],["mat-header-cell","","mat-sort-header","","class","details-column","width","20%",3,"disableClear",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","TotalActive","sticky",""],["mat-header-cell","","mat-sort-header","","width","10%",3,"disableClear",4,"matHeaderCellDef"],["matColumnDef","TotalLocked","sticky",""],["matColumnDef","TotalLockable","sticky",""],["matColumnDef","Quota","sticky",""],["mat-header-cell","","mat-sort-header","","width","10%","class","column-header numeric",3,"disableClear",4,"matHeaderCellDef"],["mat-cell","","class","cell-numeric sortable",4,"matCellDef"],["matColumnDef","QuotaTopUp","sticky",""],["matColumnDef","QuotaUsed","sticky",""],["matColumnDef","QuotaRemaining","sticky",""],["matColumnDef","Actions"],["class","action-column","mat-header-cell","","width","10%",4,"matHeaderCellDef"],["class","action-column","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetails"],["mat-cell","",3,"hidden",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","pointer",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["color","primary","showFirstLastButtons","",3,"length","hidePageSize","pageSizeOptions","pageSize"],["mat-flat-button","","color","primary","class","btn-apply-filters","mat-raised-button","",3,"click",4,"showAuthedSubRole"],["mat-flat-button","","color","primary","mat-raised-button","",1,"btn-apply-filters",3,"click"],[1,"filter-label"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","width","20%",1,"details-column",3,"disableClear"],["mat-cell",""],[1,"bold"],[3,"mouseenter","mouseleave",4,"ngIf"],["templateBusinessAreas",""],["templateManager",""],[3,"mouseenter","mouseleave"],["anchorInfo",""],[1,"small"],["anchorManagerInfo",""],[1,"tooltip-group"],["class","tooltip-item",4,"ngIf"],["class","horizontal-line",4,"ngIf"],[1,"tooltip-item"],[1,"tooltip-label"],[1,"tooltip-value"],[1,"horizontal-line"],["mat-header-cell","","mat-sort-header","","width","10%",3,"disableClear"],["aria-label","active"],["color","default"],["aria-label","locked"],["aria-label","lockable"],["mat-header-cell","","mat-sort-header","","width","10%",1,"column-header","numeric",3,"disableClear"],["mat-cell","",1,"cell-numeric","sortable"],["aria-label","used"],[3,"color"],["aria-label","remaining"],["mat-header-cell","","width","10%",1,"action-column"],["mat-cell","",1,"action-column"],["mat-icon-button",""],[1,"item-details"],["width","100%",1,"mat-table"],[4,"ngIf"],["class","mat-row",3,"selected-row",4,"ngFor","ngForOf"],[1,"mat-row"],["align","left","width","20%",1,"details-column"],[2,"font-size","16px"],["ngxClipboard","","matTooltipPosition","right",1,"pointer",3,"cbContent","matTooltip"],["ngxClipboard","",3,"cbContent","mouseenter","mouseleave"],[1,"small","pointer","padding-5"],["ngxClipboard","",3,"cbContent","mouseenter","mouseleave",4,"ngIf"],["templateInfo",""],["templateAPN",""],["templateAlert",""],["align","left","width","10%",1,"column-header"],["color","warn",3,"mouseenter","mouseleave",4,"ngIf"],["templateDeleted",""],["color","orange",4,"ngIf"],["color","primary",4,"ngIf"],["color","default",4,"ngIf"],["color","accent","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["align","right","width","10%",1,"column-header","cell-numeric"],["width","8%",1,"column-header","action-column"],["mat-icon-button","",3,"matMenuTriggerFor","menuOpened",4,"showAuthed"],[3,"overlapTrigger","closed"],["actionMenu","matMenu"],["mat-menu-item","",3,"click",4,"showAuthedSubRole"],["anchorAPN",""],["anchorAlert",""],[4,"ngFor","ngForOf"],["color","warn",3,"mouseenter","mouseleave"],["anchorDeleted",""],["color","orange"],["color","primary"],["color","accent","matTooltipPosition","right",3,"matTooltip"],["mat-icon-button","",3,"matMenuTriggerFor","menuOpened"],["mat-menu-item","",3,"click"],["matListIcon",""],["class","mat-row",4,"ngFor","ngForOf"],["height","14px","margin","0 0 8px 0px","width","75%"],["width","10%",1,"column-header"],["height","14px","margin","0 0 8px 0","width","50%"],["align","right","width","10%",1,"column-header"],["width","8%",1,"column-header"],["mat-header-row",""],["mat-row","",1,"pointer",3,"click"],["mat-row","",1,"detail-row"]],template:function(e,n){1&e&&(t._UZ(0,"raven-page-header",0),t.ALo(1,"translate"),t.ALo(2,"translate"),t.TgZ(3,"div",1)(4,"app-dm-subscribers-filter-list",2),t.NdJ("filtersChanged",function(o){return n.filtersChanged(o)}),t.qZA(),t._UZ(5,"app-dm-subscriber-indicators",3),t.TgZ(6,"mat-card",4)(7,"mat-card-content",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"mat-form-field",10),t._UZ(13,"input",11,12),t.ALo(15,"translate"),t.TgZ(16,"mat-icon",13),t._uU(17,"search"),t.qZA()()(),t.TgZ(18,"div",14),t.YNc(19,ai,2,6,"ng-container",15),t.qZA(),t.YNc(20,si,1,0,"mat-progress-bar",16),t.TgZ(21,"table",17,18),t.ynx(23,19),t.YNc(24,oi,3,4,"th",20),t.YNc(25,Ci,12,5,"td",21),t.BQk(),t.ynx(26,22),t.YNc(27,Ti,3,4,"th",23),t.YNc(28,xi,4,2,"td",21),t.BQk(),t.ynx(29,24),t.YNc(30,Si,3,4,"th",23),t.YNc(31,Zi,4,2,"td",21),t.BQk(),t.ynx(32,25),t.YNc(33,Di,3,4,"th",23),t.YNc(34,Ii,4,2,"td",21),t.BQk(),t.ynx(35,26),t.YNc(36,Mi,3,4,"th",27),t.YNc(37,Li,5,5,"td",28),t.BQk(),t.ynx(38,29),t.YNc(39,Ni,3,4,"th",27),t.YNc(40,vi,5,5,"td",28),t.BQk(),t.ynx(41,30),t.YNc(42,Oi,3,4,"th",27),t.YNc(43,qi,5,5,"td",28),t.BQk(),t.ynx(44,31),t.YNc(45,Ui,3,4,"th",27),t.YNc(46,Pi,5,5,"td",28),t.BQk(),t.ynx(47,32),t.YNc(48,wi,1,0,"th",33),t.YNc(49,
1Ei,4,0,"td",34),t.BQk(),t.ynx(50,35),t.YNc(51,fn,5,8,"td",36),t.BQk(),t.YNc(52,An,1,0,"tr",37),t.YNc(53,Cn,1,2,"tr",38),t.YNc(54,Tn,1,0,"tr",39),t.qZA()(),t._UZ(55,"mat-paginator",40),t.qZA()()()()()),2&e&&(t.s9C("pageTitle",t.lcZ(1,52,"DATA_MANAGER_SUBSCRIBERS")),t.s9C("pageSubTitle",t.lcZ(2,54,"DATA_MANAGER_SUBSCRIBERS_DESC")),t.xp6(4),t.Q6J("reload",n.reload)("status",n.filterStatus)("simLockedStatus",n.filtersimLockedStatus)("simDeletedStatus",n.filterSimDeletedStatus)("lockable",n.filterLockable)("apn",n.filterAPN)("network",n.filterNetwork)("lineManagerId",n.lineManagerId)("businessArea1Id",n.businessArea1Id)("businessArea2Id",n.businessArea2Id)("businessArea3Id",n.businessArea3Id)("businessArea4Id",n.businessArea4Id)("businessArea5Id",n.businessArea5Id)("sim",n.filterSim)("description",n.filterDescription)("ippool",n.filterIppool)("quotaRemaining",n.filterQuotaRemaining)("quotaType",n.filterQuotaRemainingType)("simSessionState",n.filterSimSessionState)("showMoreFilters",n.showMoreFilters),t.xp6(1),t.Q6J("searchText",n.searchText)("status",n.filterStatus)("simLockedStatus",n.filtersimLockedStatus)("simDeletedStatus",n.filterSimDeletedStatus)("lockable",n.filterLockable)("apn",n.filterAPN)("network",n.filterNetwork)("lineManagerId",n.lineManagerId)("businessArea1Id",n.businessArea1Id)("businessArea2Id",n.businessArea2Id)("businessArea3Id",n.businessArea3Id)("businessArea4Id",n.businessArea4Id)("businessArea5Id",n.businessArea5Id)("sim",n.filterSim)("description",n.filterDescription)("ippool",n.filterIppool)("quotaRemaining",n.filterQuotaRemaining)("quotaType",n.filterQuotaRemainingType)("simSessionState",n.filterSimSessionState),t.xp6(8),t.s9C("placeholder",t.lcZ(15,56,"SEARCH")),t.xp6(7),t.Q6J("ngIf",n.isLoadingResults),t.xp6(1),t.Q6J("dataSource",n.data),t.xp6(31),t.Q6J("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(58,xn)),t.xp6(1),t.Q6J("length",n.resultsLength)("hidePageSize",!1)("pageSizeOptions",t.DdM(59,Sn))("pageSize",10))},dependencies:[h.sg,h.O5,f.xw,f.Wh,f.s9,f.yH,Y.VK,Y.OP,Y.p6,me.Nh,T.a8,T.dn,S.lW,q.qn,q.HS,C.Hw,I.pW,m.KE,m.qo,Z.Nt,V.gM,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,P.YE,P.nU,W.NW,z.w,tt.yb,J.q,ot.q,_e.v,ge.g,ct,ii,h.uU,d.X$,U.$],styles:[".subscriber-list[_ngcontent-%COMP%] .cell-numeric[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:block!important;flex-wrap:nowrap!important;margin:0;text-align:right}.subscriber-list[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;position:relative}.subscriber-list[_ngcontent-%COMP%] .mat-icon.small[_ngcontent-%COMP%]{font-size:14px;height:16px;width:8px}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{min-height:60px}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:60px!important}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:unset;padding:0}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .details-column[_ngcontent-%COMP%]{padding-left:24px}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .action-column[_ngcontent-%COMP%]{margin:auto;text-align:center}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(even){background:#F9F9F9}.subscriber-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(odd){background:#F5F5F5}.subscriber-list[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.subscriber-list[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{float:right}.subscriber-list[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{float:right;margin-right:5px}.cdk-overlay-container[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]:hover{background:none}"],data:{animation:[(0,M.X$)("detailExpand",[(0,M.SB)("collapsed",(0,M.oB)({height:"0px",minHeight:"0"})),(0,M.SB)("expanded",(0,M.oB)({height:"*"})),(0,M.eR)("expanded <=> collapsed",(0,M.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})();var y=c(86503),Dn=c(24795),et=c(753);function In(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",17),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",null==s.subscriberData?null:s.subscriberData.Name))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",null==e.subscriberData?null:e.subscriberData.Name),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(null==e.subscriberData?null:e.subscriberData.Name)}}function Mn(i,a){1&i&&t._UZ(0,"ngx-skeleton",18)}function Ln(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",19),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.Description))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.Description),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.Description?e.subscriberData.Description:"-")}}function Nn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function vn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",19),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.Network))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.Network),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.Network?e.subscriberData.Network:"-")}}function On(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function qn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",19),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.PoolIdentifier))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.PoolIdentifier),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.PoolIdentifier?e.subscriberData.PoolIdentifier:"-")}}function Un(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Pn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",19),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.APN))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.APN),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.APN?e.subscriberData.APN:"-")}}function wn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function En(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",21),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.SimNumber))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.SimNumber),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.SimNumber?e.subscriberData.SimNumber:"-")}
1}function kn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Fn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",21),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",null==s.subscriberData.Session?null:s.subscriberData.Session.Imei))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",null==e.subscriberData.Session?null:e.subscriberData.Session.Imei),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData&&null!=e.subscriberData.Session&&e.subscriberData.Session.Imei?null==e.subscriberData.Session?null:e.subscriberData.Session.Imei:"-")}}function Qn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",21),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.Pin))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.Pin),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.Pin||"-")}}function Yn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Jn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",21),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",s.subscriberData.Puk))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",e.subscriberData.Puk),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData.Puk||"-")}}function yn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Bn(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.Oqu(t.lcZ(2,1,e.subscriberData.IsActive?"YES":"NO"))}}function Kn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Hn(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.subscriberData.IsLockable?"YES":"NO"))}}function Gn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function $n(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.subscriberData.IsLocked?"YES":"NO"))}}function jn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function Xn(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"kendoDate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,e.subscriberData.DateLocked,"G"))}}function Vn(i,a){1&i&&(t.TgZ(0,"span",22),t._uU(1,"-"),t.qZA())}function Wn(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function zn(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,e.subscriberData.Quota,3))}}function ta(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ea(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.Oqu(t.xi3(2,1,e.subscriberData.QuotaTopUp,3))}}function ia(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function na(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,e.subscriberData.QuotaUsed,3))}}function aa(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function sa(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,e.calculateRemaining(e.subscriberData),3))}}function oa(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ra(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.subscriberData&&null!=e.subscriberData.Session&&e.subscriberData.Session.Started?"YES":"NO"))}}function la(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ca(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"kendoDate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,null==e.subscriberData.Session?null:e.subscriberData.Session.DateStarted,"G"))}}function pa(i,a){1&i&&(t.TgZ(0,"span",22),t._uU(1,"-"),t.qZA())}function da(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ua(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"kendoDate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.Oqu(t.xi3(2,1,null==e.subscriberData.Session?null:e.subscriberData.Session.DateUpdated,"G"))}}function ma(i,a){1&i&&(t.TgZ(0,"span",22),t._uU(1,"-"),t.qZA())}function _a(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ga(i,a){if(1&i&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(e.subscriberData&&null!=e.subscriberData.Session&&e.subscriberData.Session.Data?t.xi3(2,1,e.subscriberData.Session.Data,2):"-")}}function ha(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}function ba(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",21),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openSnackBar("COPIED","CLOSE",null==s.subscriberData.Session?null:s.subscriberData.Session.Ip))}),t.ALo(1,"translate"),t._uU(2),t.qZA()}if(2&i){const e=t.oxw();t.s9C("cbContent",null==e.subscriberData.Session?null:e.subscriberData.Session.Ip),t.s9C("matTooltip",t.lcZ(1,3,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.subscriberData&&null!=e.subscriberData.Session&&e.subscriberData.Session.Ip?e.subscriberData.Session.Ip:"-")}}function fa(i,a){1&i&&t._UZ(0,"ngx-skeleton",20)}let Aa=(()=>{class i{constructor(e,n,s,o,p,_){this.service=e,this.route=n,this.translateService=s,this.snackBar=o,this.location=p,this.sessionHelperService=_,this.loading=!1,this.isMobile=!1,this.allowedRoles=[A.qP.Administrator,A.qP.SuperAdmin,A.qP.BusinessAreaManager,A.qP.LineManager]}ngOnInit(){this.sub=this.route.params.subscribe(e=>{this.subscriberId=e.id,this.loadSubscriber()})}loadSubscriber(){this.loading=!0,this.service.GetSubscriberById(this.subscriberId).then(e=>{this.subscriberData=e,this.loading=!1}).catch(e=>{console.error(e)})}calculateRemaining(e){const n=(e.Quota||0)+(e.QuotaTopUp||0)-(e.QuotaUsed||0);return n>=0?n:0}goBack(){this.location.back()}openSnackBar(e,n,s=""){e=this.translateService.instant(e),n=this.translateService.instant(n),s&&(e+=` '${s}'`),this.snackBar.open(e,n,{duration:2e3})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.L),t.Y36(w.gz),t.Y36(d.sK),t.Y36(x.ux),t.Y36(h.Ye),t.Y36(F.b))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-subscriber-detail"]],decls:151,vars:117,consts:[["pageIcon","fa fa-user",3,"pageTitle","pageSubTitle"],[1,"page-content"],[1,"detail-card","card"],["mat-card-avatar","",1,"back-btn",3,"click"],[1,"title-only","has-avatar"],["class","pointer","ngxClipboard","","matTooltipPosition","right",3,"cbContent","matTooltip","click",4,"ngIf"],["height","20px","margin","16px 0 8px 0","width","200px",4,"ngIf"],[3,"overlapTrigger"],["userActionMenu","matMenu"],["cols","5","rowHeight","320px"],[1,"row"],[1,"label"],["class","label bold pointer","ngxClipboard","","matTooltipPosition","above",3,"cbContent","matTooltip","click",4,"ngIf"],["height","14px","margin","0px 0 8px 0","width","50%",4,"ngIf"],["class","label bold pointer","ngxClipboard","","matTooltipPosition","left",3,"cbContent","matTooltip","click",4,"ngIf"],["class","label bold",4,"ngIf"],[1,"borderless"],["ngxClipboard","","matTooltipPosition","right",1,"pointer",3,"cbContent","matTooltip","click"],["height","20px","margin","16px 0 8px 0","width","200px"],["ngxClipboard","","matTooltipPosition","above",1,"label","bold","pointer",3,"cbContent","matTooltip","click"],["height","14px","margin","0px 0 8px 0","width","50%"],["ngxClipboard","","matTooltipPosition","left",1,"label","bold","pointer",3,"cbContent","matTooltip","click"],[1,"label","bold"]],template:function(e,n){1&e&&(t._UZ(0,"raven-page-header",0),t.ALo(1,"translate"),t.ALo(2,"translate"),t.TgZ(3,"div",1)(4,"mat-card",2)(5,"mat-card-header")(6,"div",3),t.NdJ("click",function(){return n.goBack()}),t.TgZ(7,"mat-icon"),t._uU(8,"navigate_before"),t.qZA()(),t.TgZ(9,"mat-card-title",4),t.YNc(10,In,3,5,"span",5),t.YNc(11,Mn,1,0,"ngx-skeleton",6),t.qZA(),t._UZ(12,"mat-menu",7,8),t.qZA(),t.TgZ(14,"mat-card-content")(15,"mat-grid-list",9)(16,"div",10)(17,"mat-grid-tile")(18,"div",10)(19,"span",11),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.YNc(22,Ln,3,5,"span",12),t.YNc(23,Nn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(24,"div",10)(25,"span",11),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.YNc(28,vn,3,5,"span",12),t.YNc(29,On,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(30,"div",10)(31,"span",11),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.YNc(34,qn,3,5,"span",12),t.YNc(35,Un,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(36,"div",10)(37,"span",11),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.YNc(40,Pn,3,5,"span",12),t.YNc(41,wn,1,0,"ngx-skeleton",13),t.qZA()(),t.TgZ(42,"mat-grid-tile")(43,"div",10)(44,"span",11),t._uU(45),t.ALo(46,"translate"),t.qZA(),t.YNc(47,En,3,5,"span",14),t.YNc(48,kn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(49,"div",10)(50,"span",11),t._uU(51),t.ALo(52,"translate"),t.qZA(),t.YNc(53,Fn,3,5,"span",14),t.YNc(54,Qn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(55,"div",10)(56,"span",11),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.YNc(59,Rn,3,5,"span",14),t.YNc(60,Yn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(61,"div",10)(62,"span",11),t._uU(63),t.ALo(64,"translate"),t.qZA(),t.YNc(65,Jn,3,5,"span",14),t.YNc(66,yn,1,0,"ngx-skeleton",13),t.qZA()(),t.TgZ(67,"mat-grid-tile")(68,"div",10)(69,"span",11),t._uU(70),t.ALo(71,"translate"),t.qZA(),t.YNc(72,Bn,3,3,"span",15),t.YNc(73,Kn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(74,"div",10)(75,"span",11),t._uU(76),t.ALo(77,"translate"),t.qZA(),t.YNc(78,Hn,3,3,"span",15),t.YNc(79,Gn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(80,"div",10)(81,"span",11),t._uU(82),t.ALo(83,"translate"),t.qZA(),t.YNc(84,$n,3,3,"span",15),t.YNc(85,jn,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(86,"div",10)(87,"span",11),t._uU(88),t.ALo(89,"translate"),t.qZA(),t.YNc(90,Xn,3,4,"span",15),t.YNc(91,Vn,2,0,"span",15),t.YNc(92,Wn,1,0,"ngx-skeleton",13),t.qZA()(),t.TgZ(93,"mat-grid-tile")(94,"div",10)(95,"span",11),t._uU(96),t.ALo(97,"translate"),t.qZA(),t.YNc(98,zn,3,4,"span",15),t.YNc(99,ta,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(100,"div",10)(101,"span",11),t._uU(102),t.ALo(103,"translate"),t.qZA(),t.YNc(104,ea,3,4,"span",15),t.YNc(105,ia,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(106,"div",10)(107,"span",11),t._uU(108),t.ALo(109,"translate"),t.qZA(),t.YNc(110,na,3,4,"span",15),t.YNc(111,aa,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(112,"div",10)(113,"span",11),t._uU(114),t.ALo(115,"translate"),t.qZA(),t.YNc(116,sa,3,4,"span",15),t.YNc(117,oa,1,0,"ngx-skeleton",13),t.qZA()(),t.TgZ(118,"mat-grid-tile",16)(119,"div",10)(120,"span",11),t._uU(121),t.ALo(122,"translate"),t.qZA(),t.YNc(123,ra,3,3,"span",15),t.YNc(124,la,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(125,"div",10)(126,"span",11),t._uU(127),t.ALo(128,"translate"),t.qZA(),t.YNc(129,ca,3,4,"span",15),t.YNc(130,pa,2,0,"span",15),t.YNc(131,da,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(132,"div",10)(133,"span",11),t._uU(134),t.ALo(135,"translate"),t.qZA(),t.YNc(136,ua,3,4,"span",15),t.YNc(137,ma,2,0,"span",15),t.YNc(138,_a,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(139,"div",10)(140,"span",11),t._uU(141),t.ALo(142,"translate"),t.qZA(),t.YNc(143,ga,3,4,"span",15),t.YNc(144,ha,1,0,"ngx-skeleton",13),t.qZA(),t.TgZ(145,"div",10)(146,"span",11),t._uU(147),t.ALo(148,"translate"),t.qZA(),t.YNc(149,ba,3,5,"span",14),t.YNc(150,fa,1,0,"ngx-skeleton",13),t.qZA()()()()()()()),2&e&&(t.s9C("pageTitle",t.lcZ(1,71,"SUBSCRIBER_MSISDN")),t.s9C("pageSubTitle",t.lcZ(2,73,"SUBSCRIBER_MSISDN_DESC")),t.xp6(10),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(1),t.Q6J("overlapTrigger",!1),t.xp6(8),t.Oqu(t.lcZ(21,75,"DESCRIPTION")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(27,77,"NETWORK")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(33,79,"IP_POOL")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(39,81,"APN")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(4),t.Oqu(t.lcZ(46,83,"SIM_NUMBER")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(52,85,"IMEI")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(58,87,"PIN")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(64,89,"PUK")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(4),t.Oqu(t.lcZ(71,91,"ACTIVE")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(77,93,"LOCKABLE")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(83,95,"LOCKED")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(89,97,"DATE_LOCKED")),t.xp6(2),t.Q6J("ngIf",!n.loading&&n.subscriberData&&n.subscriberData.DateLocked),t.xp6(1),t.Q6J("ngIf",!(n.loading||n.subscriberData&&n.subscriberData.DateLocked)),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(4),t.Oqu(t.lcZ(97,99,"QUOTA")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(103,101,"TOPUP")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(109,103,"USED")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(115,105,"REMAINING")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(4),t.Oqu(t.lcZ(122,107,"SESSION_ACTIVE")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(128,109,"SESSION_STARTED")),t.xp6(2),t.Q6J("ngIf",!n.loading&&n.subscriberData&&(null==n.subscriberData.Session?null:n.subscriberData.Session.DateStarted)),t.xp6(1),t.Q6J("ngIf",!(n.loading||n.subscriberData&&null!=n.subscriberData.Session&&n.subscriberData.Session.DateStarted)),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(135,111,"SESSION_UPDATED")),t.xp6(2),t.Q6J("ngIf",!n.loading&&n.subscriberData&&(null==n.subscriberData.Session?null:n.subscriberData.Session.DateUpdated)),t.xp6(1),t.Q6J("ngIf",!(n.loading||n.subscriberData&&null!=n.subscriberData.Session&&n.subscriberData.Session.DateUpdated)),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(142,113,"SESSION_DATA")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(3),t.Oqu(t.lcZ(148,115,"IP_ADDRESS")),t.xp6(2),t.Q6J("ngIf",!n.loading),t.xp6(1),t.Q6J("ngIf",n.loading))},dependencies:[h.O5,Y.VK,N.Il,N.DX,T.a8,T.dk,T.dn,T.n5,T.kc,C.Hw,V.gM,z.w,tt.yb,J.q,et.uU,d.X$,U.$],styles:["app-subscriber-detail .detail-card{max-width:96%;width:96%;margin:15px auto 30px;box-shadow:0 0 5px #0003;padding:0}app-subscriber-detail .detail-card .additional-button{right:50px!important}app-subscriber-detail .detail-card .mat-form-field{width:85%}app-subscriber-detail .detail-card .mat-raised-button{margin-left:5px}app-subscriber-detail .detail-card .mat-grid-tile.borderless{border:none}app-subscriber-detail .detail-card .mat-grid-tile .mat-grid-tile-content{margin-top:15px;align-items:normal!important;display:block}app-subscriber-detail .detail-card .mat-grid-tile .mat-grid-tile-content .row{width:100%;display:block;height:-moz-fit-content;height:fit-content;margin-bottom:10px;margin-left:30px}app-subscriber-detail .detail-card .mat-grid-tile .mat-grid-tile-content .row .label{display:table}app-subscriber-detail .detail-card .mat-grid-tile .mat-grid-tile-content .row .label.bold{font-weight:700}app-subscriber-detail .table-card .table-card-content{margin:30px}\n"],encapsulation:2}),i})();function Ca(i,a){1&i&&t._UZ(0,"mat-progress-bar",33)}function Ta(i,a){1&i&&(t.TgZ(0,"th",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SUBSCRIBER_DETAILS")," "))}function xa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",40,41),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(9),p=t.oxw();return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(9),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",42),t._uU(3,"business"),t.qZA()()}}function Sa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",40,43),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(11),p=t.oxw();return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(11),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",42),t._uU(3,"supervisor_account"),t.qZA()()}}function Za(i,a){if(1&i&&(t.TgZ(0,"div",47)(1,"span",48),t._uU(2),t.qZA(),t.TgZ(3,"span",49),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();
1t.xp6(2),t.hij("",n.businessAreaSettings.Ba1NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea1Name?e.AllocatedBusinessArea1Name:"-")}}function Da(i,a){1&i&&t._UZ(0,"div",50)}function Ia(i,a){if(1&i&&(t.TgZ(0,"div",47)(1,"span",48),t._uU(2),t.qZA(),t.TgZ(3,"span",49),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba2NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea2Name?e.AllocatedBusinessArea2Name:"-")}}function Ma(i,a){1&i&&t._UZ(0,"div",50)}function La(i,a){if(1&i&&(t.TgZ(0,"div",47)(1,"span",48),t._uU(2),t.qZA(),t.TgZ(3,"span",49),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba3NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea3Name?e.AllocatedBusinessArea3Name:"-")}}function Na(i,a){1&i&&t._UZ(0,"div",50)}function va(i,a){if(1&i&&(t.TgZ(0,"div",47)(1,"span",48),t._uU(2),t.qZA(),t.TgZ(3,"span",49),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba4NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea4Name?e.AllocatedBusinessArea4Name:"-")}}function Oa(i,a){1&i&&t._UZ(0,"div",50)}function qa(i,a){if(1&i&&(t.TgZ(0,"div",47)(1,"span",48),t._uU(2),t.qZA(),t.TgZ(3,"span",49),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2).$implicit,n=t.oxw();t.xp6(2),t.hij("",n.businessAreaSettings.Ba5NameSingular,":"),t.xp6(2),t.Oqu(e.AllocatedBusinessArea5Name?e.AllocatedBusinessArea5Name:"-")}}function Ua(i,a){if(1&i&&(t.TgZ(0,"div",44),t.YNc(1,Za,5,2,"div",45),t.YNc(2,Da,1,0,"div",46),t.YNc(3,Ia,5,2,"div",45),t.YNc(4,Ma,1,0,"div",46),t.YNc(5,La,5,2,"div",45),t.YNc(6,Na,1,0,"div",46),t.YNc(7,va,5,2,"div",45),t.YNc(8,Oa,1,0,"div",46),t.YNc(9,qa,5,2,"div",45),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba1Enabled&&!!e.AllocatedBusinessArea1ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID),t.xp6(1),t.Q6J("ngIf",n.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID)}}function Pa(i,a){if(1&i&&(t.TgZ(0,"div",44)(1,"div",47)(2,"span",48),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"span",49),t._uU(6),t.qZA()(),t._UZ(7,"div",50),t.TgZ(8,"div",47)(9,"span",48),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",49),t._uU(13),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,4,"MANAGER"),":"),t.xp6(3),t.Oqu(e.AllocatedLineManagerName?e.AllocatedLineManagerName:"-"),t.xp6(4),t.hij("",t.lcZ(11,6,"MANAGER_EMAIL"),":"),t.xp6(3),t.Oqu(e.AllocatedLineManagerEmail?e.AllocatedLineManagerEmail:"-")}}function wa(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"span",36)(2,"mat-icon"),t._uU(3,"person"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.YNc(6,xa,4,0,"span",37),t.YNc(7,Sa,4,0,"span",37),t.YNc(8,Ua,10,9,"ng-template",null,38,t.W1O),t.YNc(10,Pa,14,8,"ng-template",null,39,t.W1O),t.qZA()),2&i){const e=a.$implicit,n=t.oxw();t.xp6(4),t.hij(" ",e.AllocatedName||t.lcZ(5,3,"UNALLOCATED")," "),t.xp6(2),t.Q6J("ngIf",n.showBusinessAreas(e)),t.xp6(1),t.Q6J("ngIf",!!e.AllocatedLineManagerID)}}function Ea(i,a){1&i&&(t.TgZ(0,"th",51),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"NOTIFICATION_EMAIL")," "))}function ka(i,a){if(1&i&&(t.TgZ(0,"mat-chip",53),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("removable",!1),t.xp6(1),t.hij(" ",e," ")}}function Fa(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"mat-chip-list"),t.YNc(2,ka,2,2,"mat-chip",52),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.Q6J("ngForOf",e.NotificationEmailList)}}function Qa(i,a){1&i&&(t.TgZ(0,"th",54),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SUBSCRIBER_NUMBER")," "))}function Ra(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",56,61),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(1);t.oxw();const o=t.MAs(12),p=t.oxw();return t.KtG(p.togglePopup(o,s))})("mouseleave",function(){t.CHM(e),t.oxw();const s=t.MAs(12),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(2,"mat-icon",57),t._uU(3,"cloud"),t.qZA()()}if(2&i){const e=t.oxw().$implicit;t.s9C("cbContent",e.APN)}}function Ya(i,a){if(1&i&&(t.TgZ(0,"div",44)(1,"div",47)(2,"span",48),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",47)(6,"span",49),t._uU(7),t.qZA()(),t._UZ(8,"div",50),t.TgZ(9,"div",47)(10,"span",48),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",47)(14,"span",49),t._uU(15),t.qZA()(),t._UZ(16,"div",50),t.TgZ(17,"div",47)(18,"span",48),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.TgZ(21,"div",47)(22,"span",49),t._uU(23),t.qZA()(),t._UZ(24,"div",50),t.TgZ(25,"div",47)(26,"span",48),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"div",47)(30,"span",49),t._uU(31),t.qZA()(),t._UZ(32,"div",50),t.TgZ(33,"div",47)(34,"span",48),t._uU(35),t.ALo(36,"translate"),t.qZA()(),t.TgZ(37,"div",47)(38,"span",49),t._uU(39),t.qZA()(),t._UZ(40,"div",50),t.TgZ(41,"div",47)(42,"span",48),t._uU(43),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"div",47)(46,"span",49),t._uU(47),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,12,"DESCRIPTION"),":"),t.xp6(4),t.Oqu(e.Description||"-"),t.xp6(4),t.hij("",t.lcZ(12,14,"NETWORK"),":"),t.xp6(4),t.Oqu(e.Network||"-"),t.xp6(4),t.hij("",t.lcZ(20,16,"IP_POOL"),":"),t.xp6(4),t.Oqu(e.PoolIdentifier||"-"),t.xp6(4),t.hij("",t.lcZ(28,18,"SIM_NUMBER"),":"),t.xp6(4),t.Oqu(e.SimNumber||"-"),t.xp6(4),t.hij("",t.lcZ(36,20,"PIN"),":"),t.xp6(4),t.Oqu(e.Pin||"-"),t.xp6(4),t.hij("",t.lcZ(44,22,"PUK"),":"),t.xp6(4),t.Oqu(e.Puk||"-")}}function Ja(i,a){if(1&i&&(t.TgZ(0,"div",44)(1,"div",47)(2,"span",48),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"span",49),t._uU(6),t.ALo(7,"translate"),t.qZA()()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,2,"APN"),":"),t.xp6(3),t.Oqu(e.APN||t.lcZ(7,4,"BLANK"))}}function ya(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",35)(1,"span",55),t.ALo(2,"translate"),t._uU(3),t.qZA(),t.TgZ(4,"span",56,41),t.NdJ("mouseenter",function(){t.CHM(e);const s=t.MAs(10),o=t.MAs(5),p=t.oxw();return t.KtG(p.togglePopup(s,o))})("mouseleave",function(){t.CHM(e);const s=t.MAs(10),o=t.oxw();return t.KtG(o.closePopup(s))}),t.TgZ(6,"mat-icon",57),t._uU(7,"info"),t.qZA()(),t.YNc(8,Ra,4,1,"span",58),t.YNc(9,Ya,48,24,"ng-template",null,59,t.W1O),t.YNc(11,Ja,8,6,"ng-template",null,60,t.W1O),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(1),t.s9C("cbContent",e.Msisdn),t.s9C("matTooltip",t.lcZ(2,5,"CLICK_TO_COPY")),t.xp6(2),t.Oqu(e.Msisdn),t.xp6(1),t.s9C("cbContent",e.Description),t.xp6(4),t.Q6J("ngIf",!!e.APN)}}function Ba(i,a){1&i&&(t.TgZ(0,"th",62),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DATE_SENT")," "))}function Ka(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"span"),t._uU(2),t.ALo(3,"kendoDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,e.DateAddedFormatted,"G")," ")}}function Ha(i,a){1&i&&(t.TgZ(0,"th",63),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"QUOTA")," "))}function Ga(i,a){if(1&i&&(t.TgZ(0,"td",64)(1,"mat-chip-list",65)(2,"mat-chip",66),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color",e.QuotaAllocated>0?"default":"orange"),t.xp6(1),t.Oqu(t.xi3(4,2,e.QuotaAllocated,2))}}function $a(i,a){1&i&&(t.TgZ(0,"th",63),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USED")," "))}function ja(i,a){if(1&i&&(t.TgZ(0,"td",64)(1,"mat-chip-list",65)(2,"mat-chip",66),t._uU(3),t.ALo(4,"bytes"),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(2),t.s9C("color","default"),t.xp6(1),t.hij("",t.xi3(4,2,e.QuotaUsed,2)," ")}}function Xa(i,a){1&i&&(t.TgZ(0,"th",63),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"THRESHOLD")," "))}function Va(i,a){if(1&i&&(t.TgZ(0,"td",64)(1,"mat-chip-list",67)(2,"mat-chip",68),t._uU(3),t.qZA()()()),2&i){const e=a.$implicit;t.xp6(3),t.hij("",e.Threshold,"%")}}function Wa(i,a){1&i&&t._UZ(0,"tr",69)}function za(i,a){1&i&&t._UZ(0,"tr",70)}const ts=function(){return[10,20,50,100]};let es=(()=>{class i extends j.t{constructor(e,n,s,o,p,_){super(e,o),this._state=e,this.sessionHelperService=n,this.dmService=s,this.snackBar=o,this.popupService=p,this.dialog=_,this.reloadEvent="reload.dm.alerts.list",this.displayedColumns=["AllocatedName","NotificationEmail","Msisdn","DateAddedFormatted","QuotaAllocated","QuotaUsed","Threshold"],this.filterAPN="-1",this.filterNetwork="-1",this.filterAlertThreshold="-1",this.filterSim="-1",this.filterDescription="-1",this.filterIppool="-1",this.lineManagerId=-1,this.businessArea1Id=-1,this.businessArea2Id=-1,this.businessArea3Id=-1,this.businessArea4Id=-1,this.businessArea5Id=-1,this.reload=new Date,this.isLoadingDetails=!0,this.searchTextChanged=new B.x,this.searchLengthPrev=0,this.skeletonItems=[],this.allowedRoles=[A.qP.Administrator,A.qP.SuperAdmin,A.qP.BusinessAreaManager,A.qP.LineManager],this.businessAreaSettings=this.sessionHelperService.GetBusinessAreaSettings()}getData(){return this.dmService.GetUsageAlertList(this.searchText,this.filterAPN,this.filterNetwork,this.filterSim,this.filterDescription,this.filterIppool,this.filterAlertThreshold,this.lineManagerId,this.businessArea1Id,this.businessArea2Id,this.businessArea3Id,this.businessArea4Id,this.businessArea5Id,this.sort.active,this.sort.direction,this.paginator.pageIndex+1,this.paginator.pageSize)}dataLoaded(e){}filtersChanged(e){this.filterAPN=e.APN?e.APN:"-1",this.filterNetwork=e.Network?e.Network:"-1",this.lineManagerId=e.LineManagerId?e.LineManagerId:"-1",this.businessArea1Id=e.BusinessArea1Id?e.BusinessArea1Id:"-1",this.businessArea2Id=e.BusinessArea2Id?e.BusinessArea2Id:"-1",this.businessArea3Id=e.BusinessArea3Id?e.BusinessArea3Id:"-1",this.businessArea4Id=e.BusinessArea4Id?e.BusinessArea4Id:"-1",this.businessArea5Id=e.BusinessArea5Id?e.BusinessArea5Id:"-1",this.filterSim=e.SIM_NUMBER?e.SIM_NUMBER:"-1",this.filterDescription=e.DESCRIPTION?e.DESCRIPTION:"-1",this.filterIppool=e.IP_POOL?e.IP_POOL:"-1",this.filterAlertThreshold=e.ALERT_THRESHOLD?e.ALERT_THRESHOLD:"-1",this.reloadData()}
1reloadData(){this._state.notifyDataChanged(this.reloadEvent,new Date)}menuOpened(e){this.rowMenuSelected=e}menuClosed(){this.rowMenuSelected=null}showBusinessAreas(e){return this.businessAreaSettings.Ba1Enabled&&!!e.AllocatedBusinessArea1ID||this.businessAreaSettings.Ba2Enabled&&!!e.AllocatedBusinessArea2ID||this.businessAreaSettings.Ba3Enabled&&!!e.AllocatedBusinessArea3ID||this.businessAreaSettings.Ba4Enabled&&!!e.AllocatedBusinessArea4ID||this.businessAreaSettings.Ba5Enabled&&!!e.AllocatedBusinessArea5ID}togglePopup(e,n){this.popupRef?(this.popupRef.close(),this.popupRef=null):this.popupRef=this.popupService.open({anchor:n,animate:!1,content:e})}closePopup(e){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(F.b),t.Y36(b.L),t.Y36(x.ux),t.Y36(X.qL),t.Y36(l.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-alerts"]],features:[t.qOj],decls:44,vars:36,consts:[["pageIcon","fa fa-sim-card",3,"pageTitle","pageSubTitle"],[1,"page-content","subscriber-alert-list"],[3,"reload","showAllFilters","apn","network","lineManagerId","businessArea1Id","businessArea2Id","businessArea3Id","businessArea4Id","businessArea5Id","sim","description","ippool","alertThreshold","showQuotaRemainingFilter","showAlertThresholdFilter","showConnectedFilter","filtersChanged"],[1,"base-table","table-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["fxLayout","row"],["fxLayout","column","fxFlexFill","","fxLayoutAlign","space-around stretch","fxFlex","100",1,"grid-container"],[1,"raven-table-container"],[1,"search-box"],["appearance","outline"],["matInput","",3,"placeholder"],["input",""],["matPrefix",""],["mode","indeterminate",4,"ngIf"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","AllocatedName","matSortDirection","asc",3,"dataSource"],["table",""],["matColumnDef","AllocatedName","sticky",""],["mat-header-cell","","class","details-column","width","20%",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","NotificationEmail","sticky",""],["mat-header-cell","","width","35%",4,"matHeaderCellDef"],["matColumnDef","Msisdn","sticky",""],["mat-header-cell","","width","15%",4,"matHeaderCellDef"],["matColumnDef","DateAddedFormatted","sticky",""],["mat-header-cell","","mat-sort-header","","width","15%","class","column-header",3,"disableClear",4,"matHeaderCellDef"],["matColumnDef","QuotaAllocated","sticky",""],["mat-header-cell","","width","10%","class","column-header numeric",4,"matHeaderCellDef"],["mat-cell","","class","cell-numeric",4,"matCellDef"],["matColumnDef","QuotaUsed","sticky",""],["matColumnDef","Threshold","sticky",""],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["color","primary","showFirstLastButtons","",3,"length","hidePageSize","pageSizeOptions","pageSize"],["mode","indeterminate"],["mat-header-cell","","width","20%",1,"details-column"],["mat-cell",""],[1,"bold"],[3,"mouseenter","mouseleave",4,"ngIf"],["templateBusinessAreas",""],["templateManager",""],[3,"mouseenter","mouseleave"],["anchorInfo",""],[1,"small"],["anchorManagerInfo",""],[1,"tooltip-group"],["class","tooltip-item",4,"ngIf"],["class","horizontal-line",4,"ngIf"],[1,"tooltip-item"],[1,"tooltip-label"],[1,"tooltip-value"],[1,"horizontal-line"],["mat-header-cell","","width","35%"],["class","cursor-default","color","default",3,"removable",4,"ngFor","ngForOf"],["color","default",1,"cursor-default",3,"removable"],["mat-header-cell","","width","15%"],["ngxClipboard","","matTooltipPosition","right",1,"pointer",3,"cbContent","matTooltip"],["ngxClipboard","",3,"cbContent","mouseenter","mouseleave"],[1,"small","pointer","padding-5"],["ngxClipboard","",3,"cbContent","mouseenter","mouseleave",4,"ngIf"],["templateInfo",""],["templateAPN",""],["anchorAPN",""],["mat-header-cell","","mat-sort-header","","width","15%",1,"column-header",3,"disableClear"],["mat-header-cell","","width","10%",1,"column-header","numeric"],["mat-cell","",1,"cell-numeric"],["aria-label","used"],[1,"cursor-default",3,"color"],["aria-label","remaining"],["color","accent",1,"curs
1or-default"],["mat-header-row",""],["mat-row",""]],template:function(e,n){1&e&&(t._UZ(0,"raven-page-header",0),t.ALo(1,"translate"),t.ALo(2,"translate"),t.TgZ(3,"div",1)(4,"app-dm-subscribers-filter-list",2),t.NdJ("filtersChanged",function(o){return n.filtersChanged(o)}),t.qZA(),t.TgZ(5,"mat-card",3)(6,"mat-card-content",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"mat-form-field",9),t._UZ(12,"input",10,11),t.ALo(14,"translate"),t.TgZ(15,"mat-icon",12),t._uU(16,"search"),t.qZA()()(),t.YNc(17,Ca,1,0,"mat-progress-bar",13),t.TgZ(18,"table",14,15),t.ynx(20,16),t.YNc(21,Ta,3,3,"th",17),t.YNc(22,wa,12,5,"td",18),t.BQk(),t.ynx(23,19),t.YNc(24,Ea,3,3,"th",20),t.YNc(25,Fa,3,1,"td",18),t.BQk(),t.ynx(26,21),t.YNc(27,Qa,3,3,"th",22),t.YNc(28,ya,13,7,"td",18),t.BQk(),t.ynx(29,23),t.YNc(30,Ba,3,4,"th",24),t.YNc(31,Ka,4,4,"td",18),t.BQk(),t.ynx(32,25),t.YNc(33,Ha,3,3,"th",26),t.YNc(34,Ga,5,5,"td",27),t.BQk(),t.ynx(35,28),t.YNc(36,$a,3,3,"th",26),t.YNc(37,ja,5,5,"td",27),t.BQk(),t.ynx(38,29),t.YNc(39,Xa,3,3,"th",26),t.YNc(40,Va,4,1,"td",27),t.BQk(),t.YNc(41,Wa,1,0,"tr",30),t.YNc(42,za,1,0,"tr",31),t.qZA()(),t._UZ(43,"mat-paginator",32),t.qZA()()()()()),2&e&&(t.s9C("pageTitle",t.lcZ(1,29,"DATA_MANAGER_USAGE_ALERTS")),t.s9C("pageSubTitle",t.lcZ(2,31,"DATA_MANAGER_USAGE_ALERTS_DESC")),t.xp6(4),t.Q6J("reload",n.reload)("showAllFilters",!1)("apn",n.filterAPN)("network",n.filterNetwork)("lineManagerId",n.lineManagerId)("businessArea1Id",n.businessArea1Id)("businessArea2Id",n.businessArea2Id)("businessArea3Id",n.businessArea3Id)("businessArea4Id",n.businessArea4Id)("businessArea5Id",n.businessArea5Id)("sim",n.filterSim)("description",n.filterDescription)("ippool",n.filterIppool)("alertThreshold",n.filterAlertThreshold)("showQuotaRemainingFilter",!1)("showAlertThresholdFilter",!0)("showConnectedFilter",!1),t.xp6(8),t.s9C("placeholder",t.lcZ(14,33,"SEARCH")),t.xp6(5),t.Q6J("ngIf",n.isLoadingResults),t.xp6(1),t.Q6J("dataSource",n.data),t.xp6(23),t.Q6J("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("length",n.resultsLength)("hidePageSize",!1)("pageSizeOptions",t.DdM(35,ts))("pageSize",10))},dependencies:[h.sg,h.O5,f.xw,f.Wh,f.s9,f.yH,T.a8,T.dn,q.qn,q.HS,C.Hw,I.pW,m.KE,m.qo,Z.Nt,V.gM,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,P.YE,P.nU,W.NW,tt.yb,J.q,ct,et.uU,d.X$,U.$],styles:[".raven-display-block[_ngcontent-%COMP%]{display:block}.base-table[_ngcontent-%COMP%] .profile-container[_ngcontent-%COMP%]{width:50px;height:50px;display:inline-block;border-radius:25px;text-align:center;margin-right:10px}.base-table[_ngcontent-%COMP%] .profile-container[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%]{margin:auto;line-height:50px;font-size:18px}.base-table[_ngcontent-%COMP%] .cell-numeric[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:block!important;flex-wrap:nowrap!important;margin:0;text-align:right}.base-table[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;position:relative}.base-table[_ngcontent-%COMP%] .mat-icon.small[_ngcontent-%COMP%]{font-size:18px;height:22px;width:24px}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{min-height:60px}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:60px!important}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:unset;padding:0}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .details-column[_ngcontent-%COMP%]{padding-left:24px}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .action-column[_ngcontent-%COMP%]{margin:auto;text-align:center}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(even){background:#F9F9F9}.base-table[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(odd){background:#F5F5F5}.base-table[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:60px!important}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:unset;padding:0}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .details-column[_ngcontent-%COMP%]{padding-left:24px}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .last-column[_ngcontent-%COMP%]{padding-right:24px}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .action-column[_ngcontent-%COMP%]{margin:auto;text-align:center}.base-table[_ngcontent-%COMP%] .skeleton-items[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(odd){background:#F9F9F9}.subscriber-alert-list[_ngcontent-%COMP%] .cell-numeric[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:block!important;flex-wrap:nowrap!important;margin:0;text-align:right}.subscriber-alert-list[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;position:relative}.subscriber-alert-list[_ngcontent-%COMP%] .mat-icon.small[_ngcontent-%COMP%]{font-size:14px;height:16px;width:8px}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{min-height:60px}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:60px!important}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:unset;padding:0}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .details-column[_ngcontent-%COMP%]{padding-left:24px}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .action-column[_ngcontent-%COMP%]{margin:auto;text-align:center}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(even){background:#F9F9F9}.subscriber-alert-list[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .item-details[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:nth-child(odd){background:#F5F5F5}.subscriber-alert-list[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.subscriber-alert-list[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{float:right}.subscriber-alert-list[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{float:right;margin-right:5px}.cdk-overlay-container[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]:hover{background:none}"],data:{animation:[(0,M.X$)("detailExpand",[(0,M.SB)("collapsed",(0,M.oB)({height:"0px",minHeight:"0"})),(0,M.SB)("expanded",(0,M.oB)({height:"*"})),(0,M.eR)("expanded <=> collapsed",(0,M.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})();function is(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();
1t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxIpPoolNameLength,"\xa0",t.lcZ(3,5,"CHARACTERS")," ")}}function ns(i,a){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.lnq("",t.lcZ(2,3,"MAXIMUM_OF"),"\xa0",e.maxIpRangeLength,"\xa0",t.lcZ(3,5,"DIGITS")," ")}}function as(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij("",t.lcZ(2,1,"INVALID_IP_RANGE")," "))}function ss(i,a){1&i&&t._UZ(0,"mat-progress-bar",12)}let os=(()=>{class i{constructor(e,n,s,o,p,_,u){this._state=e,this.service=n,this.translateService=s,this.formBuilder=o,this.snackBar=p,this.dialogRef=_,this.data=u,this.loading=!0,this.saving=!1,this.maxIpPoolNameLength=20,this.minIpPoolNameLength=4,this.maxIpRangeLength=18,this.item=u}ngOnInit(){this.setupForms()}setupForms(){this.form=this.formBuilder.group({ippoolName:["",r.kI.compose([r.kI.maxLength(this.maxIpPoolNameLength),r.kI.maxLength(this.maxIpPoolNameLength)])],ipRange:["",r.kI.compose([r.kI.maxLength(this.maxIpRangeLength),this.validateCIDRFormat])]})}onNoClick(){this.dialogRef.close()}confirmAction(){this.saving=!0,this.service.AddIpPool(this.ippoolName.value,this.ipRange.value).then(e=>{this.dialogRef.close(),this.snackBar.open(this.translateService.instant("ADD_IPPOOL_SUCCESS"),this.translateService.instant("CLOSE"),{duration:2e3}),this._state.notifyDataChanged("reload.dm.ippool.list",new Date)}).finally(()=>{this.saving=!1})}get ippoolName(){return this.form.get("ippoolName")}get ipRange(){return this.form.get("ipRange")}validateCIDRFormat(e){return e.value&&!/^(?:\d{1,3}\.){3}\d{1,3}\/\d{1,2}$/.test(e.value)?{invalidCIDRFormat:!0}:null}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(b.L),t.Y36(d.sK),t.Y36(r.QS),t.Y36(x.ux),t.Y36(l.so),t.Y36(l.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-add-ip-ppol-dialog"]],decls:31,vars:27,consts:[[1,"topup-dialog","dialog"],["mat-dialog-title","",1,"main-title"],[3,"click"],["novalidate","",3,"formGroup"],["cellspacing","0",1,"full-width"],["matInput","","formControlName","ippoolName","type","text","required","",3,"placeholder","minlength","maxlength"],[4,"ngIf"],["matInput","","formControlName","ipRange","type","text","required","",3,"placeholder","maxlength"],["mode","indeterminate",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],["color","accent","mat-raised-button","",3,"disabled","click"],["mode","indeterminate"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"mat-icon",2),t.NdJ("click",function(){return n.onNoClick()}),t._uU(5,"close "),t.qZA()(),t.TgZ(6,"mat-dialog-content")(7,"form",3)(8,"table",4)(9,"tr")(10,"td")(11,"mat-form-field"),t._UZ(12,"input",5),t.ALo(13,"translate"),t.YNc(14,is,4,7,"mat-hint",6),t.qZA()()(),t.TgZ(15,"tr")(16,"td")(17,"mat-form-field"),t._UZ(18,"input",7),t.ALo(19,"translate"),t.ALo(20,"translate"),t.YNc(21,ns,4,7,"mat-hint",6),t.YNc(22,as,3,3,"mat-error",6),t.qZA()()()(),t.YNc(23,ss,1,0,"mat-progress-bar",8),t.qZA()(),t.TgZ(24,"mat-dialog-actions",9)(25,"button",10),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"button",11),t.NdJ("click",function(){return n.confirmAction()}),t._uU(29),t.ALo(30,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,15,"ADD_IPPOOL")),t.xp6(5),t.Q6J("formGroup",n.form),t.xp6(5),t.s9C("placeholder",t.lcZ(13,17,"NAME")),t.s9C("minlength",n.minIpPoolNameLength),t.s9C("maxlength",n.maxIpPoolNameLength),t.xp6(2),t.Q6J("ngIf",n.ippoolName.touched&&n.ippoolName.hasError("maxLength")),t.xp6(4),t.hYB("placeholder","",t.lcZ(19,19,"IPPOOL_RANGE")," \xa0(",t.lcZ(20,21,"IP_RANGE_FORMAT_PLACEHOLDER"),")"),t.s9C("maxlength",n.maxIpRangeLength),t.xp6(3),t.Q6J("ngIf",n.ipRange.touched&&n.ipRange.hasError("maxLength")),t.xp6(1),t.Q6J("ngIf",n.ipRange.hasError("invalidCIDRFormat")&&n.ipRange.touched),t.xp6(1),t.Q6J("ngIf",n.saving),t.xp6(3),t.Oqu(t.lcZ(27,23,"CANCEL")),t.xp6(2),t.Q6J("disabled",n.form.invalid||n.saving),t.xp6(1),t.Oqu(t.lcZ(30,25,"CONFIRM")))},dependencies:[h.O5,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.wO,r.nD,r.sg,r.u,S.lW,C.Hw,I.pW,m.TO,m.KE,m.bx,Z.Nt,l.ZT,l.uh,l.xY,l.H8,d.X$],encapsulation:2}),i})();var rs=c(84949);let ls=(()=>{class i{constructor(e){this.translateService=e,this.disabled=!1,this.onFiltered=new t.vpe}ngOnInit(){this.getItems()}applyFilter(e){this.selected=e,this.onFiltered.emit(e)}getItems(){this.items=[{Name:this.translateService.instant("ONLY_ASSIGNED"),Id:"1",AlternateId:"",TranslateKey:"",Selected:!0},{Name:this.translateService.instant("ONLY_UNASSIGNED"),Id:"2",AlternateId:"",TranslateKey:"",Selected:!1},{Name:this.translateService.instant("ANY"),Id:"0",AlternateId:"",TranslateKey:"",Selected:!1}]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-ip-pool-assigned-filter"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{onFiltered:"onFiltered"},decls:2,vars:6,consts:[[3,"selected","items","placeholder","disabled","onFiltered"]],template:function(e,n){1&e&&(t.TgZ(0,"raven-filter",0),t.NdJ("onFiltered",function(o){return n.applyFilter(o)}),t.ALo(1,"translate"),t.qZA()),2&e&&(t.s9C("placeholder",t.lcZ(1,4,"ASSIGNED")),t.Q6J("selected",n.selected)("items",n.items)("disabled",n.disabled))},dependencies:[L.X,d.X$],encapsulation:2}),i})(),cs=(()=>{class i{constructor(){this.filtersChanged=new t.vpe,this.onCategoriesLoaded=new t.vpe,this.filterStatusControl=new r.p4,this.allReportCategories="",this.filters=[],this.isMobile=!1,this.filterColumns=4,this.isSmallDevice&&(this.isMobile=!0,this.filterColumns=1)}ngOnChanges(){}get isSmallDevice(){return(0,k.UJ)()}applyFilters(){this.filtersChanged.emit(this.filters)}removeFilter(e){delete this.filters[e],this[e]=null,this.applyFilters()}clearFilters(){this.filters=[],this.assigned="-1",this.applyFilters()}filterExact(e,n){"Assigned"==e&&(this.assigned=n),void 0!==n&&""!==n?this.filters[e]=n:this.removeFilter(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-ip-pool-list-filter"]],inputs:{assigned:"assigned"},outputs:{filtersChanged:"filtersChanged",onCategoriesLoaded:"onCategoriesLoaded"},features:[t.TTD],decls:18,vars:8,consts:[[1,"filter-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],[1,"raven-filter-container"],["fxLayout","row"],["fxLayout","column","fxFlexFill","","fxLayoutAlign","space-around stretch","fxFlex","100",1,"filter-header"],["rowHeight","110px",1,"filters-list",3,"cols"],["colspan","1","rowspan","1"],[1,"filter-container",3,"selected","onFiltered"],["mat-flat-button","","color","primary",1,"btn-apply-filters",3,"click"],[1,"filter-label"],["mat-flat-button","","color","basic",1,"btn-clear-filters",3,"click"]],template:function(e,n){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-content",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-grid-list",5)(6,"mat-grid-tile",6)(7,"mat-grid-tile-footer")(8,"app-dm-ip-pool-assigned-filter",7),t.NdJ("onFiltered",function(o){return n.filterExact("Assigned",o)}),t.qZA()()()(),t.TgZ(9,"div")(10,"button",8),t.NdJ("click",function(){return n.applyFilters()}),t.TgZ(11,"span",9),t._uU(12),t.ALo(13,"translate"),t.qZA()(),t.TgZ(14,"button",10),t.NdJ("click",function(){return n.clearFilters()}),t.TgZ(15,"span",9),t._uU(16),t.ALo(17,"translate"),t.qZA()()()()()()()()),2&e&&(t.xp6(5),t.s9C("cols",n.filterColumns),t.xp6(3),t.Q6J("selected",n.assigned),t.xp6(4),t.Oqu(t.lcZ(13,4,"APPLY")),t.xp6(4),t.Oqu(t.lcZ(17,6,"CLEAR")))},dependencies:[f.xw,f.Wh,f.s9,f.yH,N.Il,N.DX,N.$H,N.Bv,T.a8,T.dn,S.lW,ls,d.X$],encapsulation:2}),i})();function ps(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.openAddIpPoolDialog())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"ADD")))}function ds(i,a){1&i&&t._UZ(0,"mat-progress-bar",29)}function us(i,a){1&i&&(t.TgZ(0,"th",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"IPPOOL_NAME")," "))}function ms(i,a){if(1&i&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.PoolName," ")}}function _s(i,a){1&i&&(t.TgZ(0,"th",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"IPPOOL_RANGE")," "))}function gs(i,a){if(1&i&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&i){const e=a.$implicit;let n;
1t.xp6(1),t.hij(" ",null!==(n=e.PoolRange)&&void 0!==n?n:"-"," ")}}function hs(i,a){1&i&&(t.TgZ(0,"th",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SUBSCRIBER_ASSOCIATIONS")," "))}function bs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",31)(1,"mat-chip-list",34),t.ALo(2,"translate"),t.TgZ(3,"mat-chip",35),t.NdJ("click",function(){const o=t.CHM(e).$implicit,p=t.oxw();return t.KtG(p.redirectTo(o.PoolName))}),t._uU(4),t.ALo(5,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit;t.xp6(1),t.s9C("aria-label",t.lcZ(2,3,"SUBSCRIBER_COUNT")),t.xp6(3),t.AsE(" ",e.AssociatedSubscriberCount," ",1===e.AssociatedSubscriberCount?"SUBSCRIBER":t.lcZ(5,5,"SUBSCRIBERS"),"")}}function fs(i,a){1&i&&(t.TgZ(0,"th",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.Q6J("disableClear",!0),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DATE_ADDED")," "))}function As(i,a){if(1&i&&(t.TgZ(0,"td",31)(1,"span"),t._uU(2),t.ALo(3,"kendoDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,e.DateAdded,"G")," ")}}function Cs(i,a){1&i&&t._UZ(0,"tr",36)}function Ts(i,a){1&i&&t._UZ(0,"tr",37)}const xs=function(){return[10,20,50,100]},pt=[{path:"",redirectTo:"subscribers",pathMatch:"full"},{path:"subscribers",children:[{path:"",canActivate:[y.a],component:Zn,pathMatch:"full",data:{breadcrumb:"SUBSCRIBERS",featureModuleId:E.b.DataManager,allowedRoles:[A.qP.All]}},{path:"msisdn/:id",canActivate:[y.a],component:Aa,pathMatch:"full",data:{breadcrumb:"MSISDN",featureModuleId:E.b.DataManager,allowedRoles:[A.qP.All]}}],data:{breadcrumb:"SUBSCRIBERS"}},{path:"alerts",children:[{path:"",canActivate:[y.a],component:es,pathMatch:"full",data:{breadcrumb:"USAGE_ALERTS",featureModuleId:E.b.DataManager,allowedRoles:[A.qP.All]}}],data:{breadcrumb:"USAGE_ALERTS"}},{path:"ippool",children:[{path:"",canActivate:[y.a],component:(()=>{class i extends j.t{constructor(e,n,s,o,p,_,u){super(e,o),this._state=e,this.sessionHelperService=n,this.dmService=s,this.snackBar=o,this.popupService=p,this.dialog=_,this.router=u,this.reloadEvent="reload.dm.ippool.list",this.displayedColumns=["PoolName","PoolRange","SubscriberAssociations","DateAdded"],this.assigned="-1",this.reload=new Date,this.isLoadingDetails=!0,this.searchTextChanged=new B.x,this.searchLengthPrev=0,this.skeletonItems=[],this.allowedRoles=[A.qP.Administrator,A.qP.SuperAdmin,A.qP.BusinessAreaManager,A.qP.LineManager]}getData(){return this.dmService.GetIpPoolList(this.searchText,this.assigned,this.sort.active,this.sort.direction,this.paginator.pageIndex+1,this.paginator.pageSize)}dataLoaded(e){}filtersChanged(e){this.assigned=e.Assigned?e.Assigned:"-1",this.reloadData()}reloadData(){this._state.notifyDataChanged(this.reloadEvent,new Date)}openAddIpPoolDialog(e=null){this.dialogRef=this.dialog.open(os,{width:"400px",data:e})}redirectTo(e){this.dialogRef=this.dialog.open(rs.$,{width:"600px",data:{title:"NAVIGATE_TO_SUBSCRIBERS",text:"NAVIGATE_TO_SUBSCRIBERS_CONFIRMATION",confirmButton:"CONFIRM",cancelButton:"CANCEL"}}),this.dialogRef.afterClosed().subscribe(n=>{n&&this.router.navigate(["pages/datamanager/subscribers"],{queryParams:{poolName:e}})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(D.a),t.Y36(F.b),t.Y36(b.L),t.Y36(x.ux),t.Y36(X.qL),t.Y36(l.uw),t.Y36(w.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-dm-alerts"]],features:[t.qOj],decls:36,vars:20,consts:[["pageIcon","fa fa-sim-card",3,"pageTitle","pageSubTitle"],[1,"page-content","ippool-list"],[3,"reload","filtersChanged"],[1,"base-table","table-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["fxLayout","row"],["fxLayout","column","fxFlexFill","","fxLayoutAlign","space-around stretch","fxFlex","100",1,"grid-container"],[1,"raven-table-container"],[1,"search-box"],["color","primary","mat-raised-button","",3,"click",4,"adminReadOnly"],["appearance","outline"],["matInput","",3,"placeholder"],["input",""],["matPrefix",""],["mode","indeterminate",4,"ngIf"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","IpPoolName","matSortDirection","asc",3,"dataSource"],["table",""],["matColumnDef","PoolName","sticky",""],["mat-header-cell","","mat-sort-header","","width","20%",3,"disableClear",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","PoolRange","sticky",""],["mat-header-cell","","width","20%",4,"matHeaderCellDef"],["matColumnDef","SubscriberAssociations","sticky",""],["mat-header-cell","","mat-sort-header","","width","15%","class","column-header",3,"disableClear",4,"matHeaderCellDef"],["matColumnDef","DateAdded","sticky",""],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["color","primary","showFirstLastButtons","",3,"length","hidePageSize","pageSizeOptions","pageSize"],["color","primary","mat-raised-button","",3,"click"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","width","20%",3,"disableClear"],["mat-cell",""],["mat-header-cell","","width","20%"],["mat-header-cell","","mat-sort-header","","width","15%",1,"column-header",3,"disableClear"],["aria-orientation","horizontal",3,"aria-label"],["color","accent",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,n){1&e&&(t._UZ(0,"raven-page-header",0),t.ALo(1,"translate"),t.ALo(2,"translate"),t.TgZ(3,"div",1)(4,"app-dm-ip-pool-list-filter",2),t.NdJ("filtersChanged",function(o){return n.filtersChanged(o)}),t.qZA(),t.TgZ(5,"mat-card",3)(6,"mat-card-content",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8),t.YNc(11,ps,3,3,"button",9),t.TgZ(12,"mat-form-field",10),t._UZ(13,"input",11,12),t.ALo(15,"translate"),t.TgZ(16,"mat-icon",13),t._uU(17,"search"),t.qZA()()(),t.YNc(18,ds,1,0,"mat-progress-bar",14),t.TgZ(19,"table",15,16),t.ynx(21,17),t.YNc(22,us,3,4,"th",18),t.YNc(23,ms,2,1,"td",19),t.BQk(),t.ynx(24,20),t.YNc(25,_s,3,3,"th",21),t.YNc(26,gs,2,1,"td",19),t.BQk(),t.ynx(27,22),t.YNc(28,hs,3,4,"th",23),t.YNc(29,bs,6,7,"td",19),t.BQk(),t.ynx(30,24),t.YNc(31,fs,3,4,"th",23),t.YNc(32,As,4,4,"td",19),t.BQk(),t.YNc(33,Cs,
11,0,"tr",25),t.YNc(34,Ts,1,0,"tr",26),t.qZA()(),t._UZ(35,"mat-paginator",27),t.qZA()()()()()),2&e&&(t.s9C("pageTitle",t.lcZ(1,13,"DATA_MANAGER_IPPOOL")),t.s9C("pageSubTitle",t.lcZ(2,15,"DATA_MANAGER_IPPOOL_DESC")),t.xp6(4),t.Q6J("reload",n.reload),t.xp6(9),t.s9C("placeholder",t.lcZ(15,17,"SEARCH")),t.xp6(5),t.Q6J("ngIf",n.isLoadingResults),t.xp6(1),t.Q6J("dataSource",n.data),t.xp6(14),t.Q6J("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("length",n.resultsLength)("hidePageSize",!1)("pageSizeOptions",t.DdM(19,xs))("pageSize",10))},dependencies:[h.O5,f.xw,f.Wh,f.s9,f.yH,T.a8,T.dn,S.lW,q.qn,q.HS,C.Hw,I.pW,m.KE,m.qo,Z.Nt,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,P.YE,P.nU,W.NW,J.q,ot.q,cs,et.uU,d.X$],encapsulation:2}),i})(),pathMatch:"full",data:{breadcrumb:"IPPOOL_MANAGEMENT",featureModuleId:E.b.DataManager,allowedRoles:[A.qP.Administrator,A.qP.SuperAdmin]}}],data:{breadcrumb:"IPPOOL_MANAGEMENT"}}];let Zs=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Dn.w,b.L],imports:[h.ez,r.u5,r.UX,w.Bz.forChild(pt),dt.m]}),i})()}}]);
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.