1"use strict";(self.webpackChunkcallyzer_ms_angular=self.webpackChunkcallyzer_ms_angular||[]).push([[7208,8423,8480,7239,4496,8140,9210,7359,4251,7941,5610,7667,3414],{87208:(L,O,a)=>{a.r(O),a.d(O,{ActiveDashboardModule:()=>_});var t=a(36895),d=a(24006),D=a(9116),g=a(49472),C=a(38766),e=a(94650),m=a(35842),P=a(78976),b=a(89383),M=a(91484),A=a(15031),y=a(94954),f=a(68423);function x(o,i){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Oqu(n.error)}}function S(o,i){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Oqu(n.successMessage)}}const h=function(o,i){return{"alert-danger":o,"alert-success":i}};function v(o,i){if(1&o&&(e.TgZ(0,"div",13)(1,"a",14),e._uU(2,"\xd7"),e.qZA(),e.YNc(3,x,2,1,"span",15),e.YNc(4,S,2,1,"span",15),e.qZA()),2&o){const n=e.oxw();e.Q6J("ngClass",e.WLB(3,h,n.error&&n.error.length>0,n.successMessage&&n.successMessage.length>0)),e.xp6(3),e.Q6J("ngIf",n.error&&n.error.length>0),e.xp6(1),e.Q6J("ngIf",n.successMessage&&n.successMessage.length>0)}}class l{router;commonService;activeDashboardService;translate;verifyUserService;layoutService;permissionService;spinner;constructor(i,n,s,r,p,E,T,R){this.router=i,this.commonService=n,this.activeDashboardService=s,this.translate=r,this.verifyUserService=p,this.layoutService=E,this.permissionService=T,this.spinner=R,r.setDefaultLang(this.commonService.getLocalStorage(g.t.LANGUAGE))}companyName;userName;error;successMessage;activeCustomers;basicPlans;leadPlans;totalRecordsInCallLog;totalRecordsInCallLogOfActiveCustomer;totalRecordsInCallLogOfExpiredCustomer;permissionList=[];ngOnInit(){this.companyName=this.commonService.getCookie(g.t.COOKIE_COMPANY_NAME),this.userName=this.commonService.getCookie(g.t.COOKIE_USER_NAME),this.permissionService.loadPermissions(this.commonService.getPermission()),this.permissionList=this.commonService.getPermission(),!this.permissionList.includes(C.y.PER_ALL_ACCESS)&&!this.permissionList.includes(C.y.PER_VIEW_OVERVIEW)&&this.commonService.redirectErrorPage(403);this.commonService.getLocalStorage(g.t.LANGUAGE);this.loadDataTableForDashboard()}loadDataTableForDashboard(){this.spinner.show("sp3"),this.activeDashboardService.getAllData().subscribe({next:i=>{this.spinner.hide("sp3"),this.activeCustomers=i.data[0],this.basicPlans=i.data[1],this.leadPlans=i.data[2],this.totalRecordsInCallLog=i.data[3],this.totalRecordsInCallLogOfActiveCustomer=i.data[4],this.totalRecordsInCallLogOfExpiredCustomer=i.data[5]},error:i=>{this.spinner.hide("sp3"),this.error=i.error.message||i.error.data}})}static \u0275fac=function(n){return new(n||l)(e.Y36(D.F0),e.Y36(m.v),e.Y36(P.t),e.Y36(b.sK),e.Y36(M.p),e.Y36(A.P),e.Y36(y.YI),e.Y36(f.t2))};static \u0275cmp=e.Xpm({type:l,selectors:[["app-active-dashboard"]],decls:50,vars:49,consts:[[1,"content","setting-page"],[1,"row"],[1,"col-12"],["id","content-container"],["id","page-content"],["class","alert alert-dismissible text-left",3,"ngClass",4,"ngIf"],[1,"custom-card"],[1,"panel"],[1,"adminSetting-panel-body","datatable-style"],[1,"table-responsive"],[1,"table","table-striped","table-bordered","datatable-styletable",2,"width","100%"],[1,"text-lg-center",2,"width","20%"],["bdOpacity","1","color","#000","name","sp3","type","ball-spin-clockwise",3,"fullScreen"],[1,"alert","alert-dismissible","text-left",3,"ngClass"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[4,"ngIf"]],template:function(n,s){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.YNc(5,v,5,6,"div",5),e.TgZ(6,"div",6)(7,"div",7)(8,"div",8)(9,"form")(10,"div",9)(11,"table",10)(12,"thead")(13,"tr")(14,"th",11),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"th",11),e._uU(19),e.ALo(20,"translate"),e.ALo(21,"translate"),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"th",11),e._uU(24),e.ALo(25,"translate"),e.ALo(26,"translate"),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"th",11),e._uU(29,"Call Log for Active Customer"),e.qZA(),e.TgZ(30,"th",11),e._uU(31,"Call Log for Expired + Delete Customer"),e.qZA()()(),e.TgZ(32,"tbody")(33,"tr")(34,"td",11),e._uU(35),e.ALo(36,"number"),e.qZA(),e.TgZ(37,"td",11),e._uU(38),e.ALo(39,"number"),e.qZA(),e.TgZ(40,"td",11),e._uU(41),e.ALo(42,"number"),e.qZA(),e.TgZ(43,"td",11),e._uU(44),e.ALo(45,"number"),e.qZA(),e.TgZ(46,"td",11),e._uU(47),e.ALo(48,"number"),e.qZA()()()()()()()()()(),e._UZ(49,"ngx-spinner",12),e.qZA()()()()),2&n&&(e.xp6(5),e.Q6J("ngIf",s.error&&s.error.length>0||s.successMessage&&s.successMessage.length>0),e.xp6(10),e.AsE("",e.lcZ(16,15,"Active")," ",e.lcZ(17,17,"Customers"),""),e.xp6(4),e.lnq("",e.lcZ(20,19,"Active")," ",e.lcZ(21,21,"Basic")," ",e.lcZ(22,23,"Plans"),""),e.xp6(5),e.lnq("",e.lcZ(25,25,"Active")," ",e.lcZ(26,27,"Lead")," ",e.lcZ(27,29,"Plans"),""),e.xp6(11),e.Oqu(e.Dn7(36,31,s.activeCustomers,"1.0-0","en-IN")),e.xp6(3),e.Oqu(e.xi3(39,35,s.basicPlans,"1.0-2")),e.xp6(3),e.Oqu(e.xi3(42,38,s.leadPlans,"1.0-2")),e.xp6(3),e.Oqu(e.Dn7(45,41,s.totalRecordsInCallLogOfActiveCustomer,"1.0-2","en-IN")),e.xp6(3),e.Oqu(e.Dn7(48,45,s.totalRecordsInCallLogOfExpiredCu
1stomer,"1.0-0","en-IN")),e.xp6(2),e.Q6J("fullScreen",!1))},dependencies:[t.mk,t.O5,d._Y,d.JL,d.F,f.Ro,t.JJ,b.X$],encapsulation:2})}const c=[{path:"",component:l}],I=D.Bz.forChild(c);var u=a(21256);class _{static \u0275fac=function(n){return new(n||_)};static \u0275mod=e.oAB({type:_});static \u0275inj=e.cJS({imports:[t.ez,d.u5,d.UX,I,f.ef,u.m]})}},68423:(L,O,a)=>{a.d(O,{Ro:()=>_,ef:()=>o,t2:()=>c});var t=a(94650),d=a(61135),D=a(77579),g=a(39300),C=a(82722),e=a(37340),m=a(36895),P=a(11481);const b=["overlay"];function M(i,n){1&i&&t._UZ(0,"div")}function A(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,M,1,0,"div",6),t.qZA()),2&i){const s=t.oxw(2);t.Tol(s.spinner.class),t.Udp("color",s.spinner.color),t.xp6(1),t.Q6J("ngForOf",s.spinner.divArray)}}function y(i,n){if(1&i&&(t._UZ(0,"div",7),t.ALo(1,"safeHtml")),2&i){const s=t.oxw(2);t.Q6J("innerHTML",t.lcZ(1,1,s.template),t.oJD)}}function f(i,n){if(1&i&&(t.TgZ(0,"div",1,2),t.YNc(2,A,2,5,"div",3),t.YNc(3,y,2,3,"div",4),t.TgZ(4,"div",5),t.Hsn(5),t.qZA()()),2&i){const s=t.oxw();t.Udp("background-color",s.spinner.bdColor)("z-index",s.spinner.zIndex)("position",s.spinner.fullScreen?"fixed":"absolute"),t.Q6J("@.disabled",s.disableAnimation)("@fadeIn","in"),t.xp6(2),t.Q6J("ngIf",!s.template),t.xp6(1),t.Q6J("ngIf",s.template),t.xp6(1),t.Udp("z-index",s.spinner.zIndex)}}const S={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},h_BD_COLOR="rgba(51,51,51,0.8)",h_SPINNER_COLOR="#fff",h_Z_INDEX=99999,v="primary";class l{constructor(n){Object.assign(this,n)}static create(n){return!n?.template&&(null==n?.type||0===n.type.length)&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n and ensure css is added to angular.json file'),new l(n)}}class c{constructor(){this.spinnerObservable=new d.X(null)}getSpinner(n){return this.spinnerObservable.asObservable().pipe((0,g.h)(s=>s&&s.name===n))}show(n=v,s){return new Promise((r,p)=>{setTimeout(()=>{s&&Object.keys(s).length?(s.name=n,this.spinnerObservable.next(new l({...s,show:!0})),r(!0)):(this.spinnerObservable.next(new l({name:n,show:!0})),r(!0))},10)})}hide(n=v,s=10){return new Promise((r,p)=>{setTimeout(()=>{this.spinnerObservable.next(new l({name:n,show:!1})),r(!0)},s)})}}c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"});const I=new t.OlP("NGX_SPINNER_CONFIG");class u{constructor(n){this._sanitizer=n}transform(n){if(n)return this._sanitizer.bypassSecurityTrustHtml(n)}}u.\u0275fac=function(n){return new(n||u)(t.Y36(P.H7,16))},u.\u0275pipe=t.Yjl({name:"safeHtml",type:u,pure:!0});class _{constructor(n,s,r,p){this.spinnerService=n,this.changeDetector=s,this.elementRef=r,this.globalConfig=p,this.disableAnimation=!1,this.spinner=new l,this.ngUnsubscribe=new D.x,this.setDefaultOptions=()=>{const{type:E}=this.globalConfig??{};this.spinner=l.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??E,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor=h_BD_COLOR,this.zIndex=h_Z_INDEX,this.color=h_SPINNER_COLOR,this.size="large",this.fullScreen=!0,this.name=v,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}handleKeyboardEvent(n){this.spinnerDOM&&this.spinnerDOM.nativeElement&&(this.fullScreen||
1!this.fullScreen&&this.isSpinnerZone(n.target))&&(n.returnValue=!1,n.preventDefault())}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,C.R)(this.ngUnsubscribe)).subscribe(n=>{this.setDefaultOptions(),Object.assign(this.spinner,n),n.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(n){return n===this.elementRef.nativeElement.parentElement||n.parentNode&&this.isSpinnerZone(n.parentNode)}ngOnChanges(n){for(const s in n)if(s){const r=n[s];if(r.isFirstChange())return;typeof r.currentValue<"u"&&r.currentValue!==r.previousValue&&""!==r.currentValue&&(this.spinner[s]=r.currentValue,"showSpinner"===s&&(r.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===s&&this.initObservable())}}getClass(n,s){this.spinner.divCount=S[n],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((p,E)=>E);let r="";switch(s.toLowerCase()){case"small":r="la-sm";break;case"medium":r="la-2x";break;case"large":r="la-3x"}return"la-"+n+" "+r}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}_.\u0275fac=function(n){return new(n||_)(t.Y36(c),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(I,8))},_.\u0275cmp=t.Xpm({type:_,selectors:[["ngx-spinner"]],viewQuery:function(n,s){if(1&n&&t.Gf(b,5),2&n){let r;t.iGM(r=t.CRH())&&(s.spinnerDOM=r.first)}},hostBindings:function(n,s){1&n&&t.NdJ("keydown",function(p){return s.handleKeyboardEvent(p)},!1,t.evT)},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[t.TTD],ngContentSelectors:["*"],decls:1,vars:1,consts:[["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],["overlay",""],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(n,s){1&n&&(t.F$t(),t.YNc(0,f,6,12,"div",0)),2&n&&t.Q6J("ngIf",s.spinner.show)},dependencies:[m.sg,m.O5,u],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,e.X$)("fadeIn",[(0,e.SB)("in",(0,e.oB)({opacity:1})),(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)(300)]),(0,e.eR)(":leave",(0,e.jt)(200,(0,e.oB)({opacity:0})))])]},changeDetection:0});class o{static forRoot(n){return{ngModule:o,providers:[{provide:I,useValue:n}]}}}o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[m.ez]})}}]);
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.