-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path9305.bedccca1729b770c9426.js
1 lines (1 loc) · 141 KB
/
9305.bedccca1729b770c9426.js
1
"use strict";(self.webpackChunkchekt_web_wcs=self.webpackChunkchekt_web_wcs||[]).push([[9305],{79305:(ce,j,M)=>{M.r(j),M.d(j,{DashboardModule:()=>de});var B=M(16274),Y=M(29535),Q=M(76052),b=M.n(Q),Z=M(46243),F=M(72898),t=M(42741),G=M(7611),V=M(27787),W=M(56880),$=M(54414),X=M(68445),K=M(35460),tt=M(95974),et=M(94036),at=M(21929),R=M(93324);const nt=["totalSiteDropdown"],ot=["totalBridgeDropdown"],it=["totalCameraDropdown"],st=["newSitesDropdown"],rt=["siteDisconnectsDropdown"],lt=["bridgeDisconnectsDropdown"],dt=["cameraDisconnectsDropdown"],ct=["alarmDropdown"],gt=["monitoringDropdown"],pt=["wcsDropdown"];function ht(l,v){1&l&&(t.TgZ(0,"div",85),t.O4$(),t.TgZ(1,"svg",86),t._UZ(2,"circle",87),t.qZA(),t.qZA())}function mt(l,v){1&l&&(t.TgZ(0,"div"),t.TgZ(1,"div",103),t._UZ(2,"comp-icon",104),t.qZA(),t.qZA()),2&l&&(t.xp6(2),t.Q6J("icon","done")("color","#2383e2")("size",18))}function ut(l,v){1&l&&(t.TgZ(0,"span",105),t._uU(1,"Your Dealer"),t.qZA())}function ft(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div",98),t.NdJ("click",function(n){const i=t.CHM(a).$implicit,s=t.oxw(3);return n.stopPropagation(),s.changeSubDealer(i)}),t.TgZ(1,"div",99),t.TgZ(2,"div",100),t.YNc(3,mt,3,3,"div",78),t.qZA(),t.TgZ(4,"div",101),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.YNc(7,ut,2,0,"span",102),t.qZA(),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.wcsData.selected.dealer_id===a.dealer_id),t.xp6(1),t.ekj("select-sub-dealer",e.wcsData.selected.dealer_id===a.dealer_id),t.xp6(2),t.Oqu(null==a?null:a.external_dealer_id_with_company_name),t.xp6(1),t.Q6J("ngIf",e.me.dealer_id===a.dealer_id)}}function _t(l,v){1&l&&(t.TgZ(0,"div",106),t.TgZ(1,"div",107),t._uU(2,"No Matching"),t.qZA(),t.qZA())}function bt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div",93),t.TgZ(1,"div"),t.TgZ(2,"input",94),t.NdJ("ngModelChange",function(n){return t.CHM(a),t.oxw(2).wcsData.dropdown.searchTxt=n})("input",function(){t.CHM(a);const n=t.oxw(2);return n.searchSubDealer(n.wcsData.dropdown.searchTxt)}),t.qZA(),t.qZA(),t.TgZ(3,"div",95),t.YNc(4,ft,8,5,"div",96),t.YNc(5,_t,3,0,"div",97),t.qZA(),t.qZA()}if(2&l){const a=t.oxw(2);t.xp6(2),t.Q6J("ngModel",a.wcsData.dropdown.searchTxt),t.xp6(2),t.Q6J("ngForOf",a.wcsData.filteredSubDealers),t.xp6(1),t.Q6J("ngIf",0===a.wcsData.filteredSubDealers.length)}}function vt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div",88),t.TgZ(1,"div",89,90),t.TgZ(3,"div",91),t.NdJ("click",function(){return t.CHM(a),t.oxw().toggleDropDownMenu("Sub Dealers")}),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div",26),t._UZ(7,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(8,bt,6,3,"div",92),t.qZA(),t.qZA()}if(2&l){const a=t.oxw();t.xp6(5),t.Oqu(null==a.wcsData.selected?null:a.wcsData.selected.external_dealer_id_with_company_name),t.xp6(2),t.ekj("rotate-reverse",a.wcsData.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(0, 0%, 0%, 0.87)"),t.xp6(1),t.Q6J("ngIf",a.wcsData.dropdown.isShow)}}function Dt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function xt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeSummaryTimeRange("Total Sites",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Dt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.data.totalSites.range),t.xp6(2),t.Q6J("ngIf",a.label===e.data.totalSites.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function Ct(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,xt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.summaryTimeRanges)}}function Zt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function wt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeSummaryTimeRange("Total Bridges",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Zt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.data.totalBridges.range),t.xp6(2),t.Q6J("ngIf",a.label===e.data.totalBridges.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function Tt(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,wt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.summaryTimeRanges)}}function Ot(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function Mt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeSummaryTimeRange("Total Cameras",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Ot,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.data.totalCameras.range),t.xp6(2),t.Q6J("ngIf",a.label===e.data.totalCameras.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function At(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,Mt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.summaryTimeRanges)}}function yt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function Pt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeSummaryTimeRange("New Sites",o.label)}),t.TgZ(1,"div",112),t.YNc(2,yt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.data.newSites.range),t.xp6(2),t.Q6J("ngIf",a.label===e.data.newSites.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function St(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,Pt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.summaryTimeRanges)}}function qt(l,v){if(1&l&&(t.TgZ(0,"tr"),t.TgZ(1,"td",114),t._uU(2),t.qZA(),t.TgZ(3,"td",114),t._uU(4),t.qZA(),t.TgZ(5,"td",114),t._uU(6),t.qZA(),t.qZA()),2&l){const a=v.$implicit;t.xp6(1),t.ekj("disabled-item",!a.name),t.xp6(1),t.Oqu(a.name?a.name:"UNKNOWN"),t.xp6(2),t.Oqu(a.count),t.xp6(2),t.hij("",a.offlinePercentage,"%")}}function It(l,v){if(1&l&&(t.TgZ(0,"tr"),t.TgZ(1,"td",114),t._uU(2),t.qZA(),t.TgZ(3,"td",114),t._uU(4),t.qZA(),t.TgZ(5,"td",114),t._uU(6),t.qZA(),t.qZA()),2&l){const a=v.$implicit;t.xp6(2),t.Oqu(a.zipCode),t.xp6(2),t.Oqu(a.count),t.xp6(2),t.hij("",a.offlinePercentage,"%")}}function Lt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function kt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeHealthTimeRange("Site Disconnects",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Lt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.healthData.siteDisconnects.range),t.xp6(2),t.Q6J("ngIf",a.label===e.healthData.siteDisconnects.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function Ut(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,kt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.timeRanges)}}function Et(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function Ht(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeHealthTimeRange("Bridge Disconnects",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Et,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.healthData.bridgeDisconnects.range),t.xp6(2),t.Q6J("ngIf",a.label===e.healthData.bridgeDisconnects.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function zt(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,Ht,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.timeRanges)}}function Nt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function Jt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeHealthTimeRange("Camera Disconnects",o.label)}),t.TgZ(1,"div",112),t.YNc(2,Nt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.healthData.cameraDisconnects.range),t.xp6(2),t.Q6J("ngIf",a.label===e.healthData.cameraDisconnects.range),t.xp6(2),t.hij("Show ",a.label," Graph")}}function Bt(l,v){if(1&l&&(t.TgZ(0,"div",108),t.TgZ(1,"ul",109),t.YNc(2,Jt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.timeRanges)}}function Rt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function jt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeMonitoringTimeRange(o.label)}),t.TgZ(1,"div",112),t.YNc(2,Rt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.monitoringData.timeData.range),t.xp6(2),t.Q6J("ngIf",a.label===e.monitoringData.timeData.range),t.xp6(2),t.Oqu(a.label)}}function Yt(l,v){if(1&l&&(t.TgZ(0,"div",115),t.TgZ(1,"ul",116),t.YNc(2,jt,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.timeRanges)}}function Qt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",20),t._uU(2),t.qZA(),t.TgZ(3,"div",81),t.TgZ(4,"dashboard-chart",117),t.NdJ("onReady",function(n){t.CHM(a);const o=t.oxw();return o.onChartReady(n,o.monitoringData.monitoringTimeStat.chartData)}),t.qZA(),t.qZA(),t.qZA()}if(2&l){const a=t.oxw();t.xp6(2),t.Oqu(a.monitoringData.monitoringTimeStat.total),t.xp6(2),t.Q6J("active",a.monitoringData.monitoringTimeStat.status)("data",a.monitoringData.monitoringTimeStat.chartData)("width",260)("height",150)("chartType","monitoring-bar")("updates",a.monitoringData.monitoringTimeStat.updates)}}function Ft(l,v){1&l&&(t.TgZ(0,"div",118),t._uU(1,"No Data"),t.qZA())}function Gt(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",20),t._uU(2),t.qZA(),t.TgZ(3,"div",81),t.TgZ(4,"dashboard-chart",117),t.NdJ("onReady",function(n){t.CHM(a);const o=t.oxw();return o.onChartReady(n,o.monitoringData.monitoringTimeAvgStat.chartData)}),t.qZA(),t.qZA(),t.qZA()}if(2&l){const a=t.oxw();t.xp6(2),t.Oqu(a.monitoringData.monitoringTimeAvgStat.total),t.xp6(2),t.Q6J("active",a.monitoringData.monitoringTimeAvgStat.status)("data",a.monitoringData.monitoringTimeAvgStat.chartData)("width",260)("height",150)("chartType","monitoring-bar")("updates",a.monitoringData.monitoringTimeAvgStat.updates)}}function Vt(l,v){1&l&&(t.TgZ(0,"div",118),t._uU(1,"No Data"),t.qZA())}function Wt(l,v){1&l&&t._UZ(0,"comp-icon",39),2&l&&t.Q6J("icon","done")("size","14")("color","hsl(210, 100%, 56%)")}function $t(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"li",111),t.NdJ("click",function(){const o=t.CHM(a).$implicit;return t.oxw(2).changeAlarmEventTimeRange(o.label)}),t.TgZ(1,"div",112),t.YNc(2,Wt,1,3,"comp-icon",113),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.qZA()}if(2&l){const a=v.$implicit,e=t.oxw(2);t.ekj("selected",a.label===e.alarmData.timeData.range),t.xp6(2),t.Q6J("ngIf",a.label===e.alarmData.timeData.range),t.xp6(2),t.Oqu(a.label)}}function Xt(l,v){if(1&l&&(t.TgZ(0,"div",115),t.TgZ(1,"ul",116),t.YNc(2,$t,5,4,"li",110),t.qZA(),t.qZA()),2&l){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.timeRanges)}}function Kt(l,v){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const a=t.oxw();t.xp6(1),t.Oqu(a.alarmData.xmlSignals.isHovered?a.alarmData.xmlSignals.hoverLabel:a.alarmData.xmlSignals.count)}}function te(l,v){1&l&&(t.TgZ(0,"span"),t._uU(1,"-"),t.qZA())}function ee(l,v){if(1&l){const a=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",81),t.TgZ(2,"dashboard-chart",83),t.NdJ("onHoverEvent",function(n){t.CHM(a);const o=t.oxw();return o.onChartHover(n,o.alarmData.xmlSignals)})("mouseout",function(){t.CHM(a);const n=t.oxw();return n.onChartMouseOut(n.alarmData.xmlSignals)}),t.qZA(),t.qZA(),t.TgZ(3,"div",75),t.TgZ(4,"div",76),t._uU(5),t.qZA(),t.TgZ(6,"div",77),t._uU(7),t.qZA(),t.qZA(),t.qZA()}if(2&l){const a=t.oxw();t.xp6(2),t.Q6J("active",a.alarmData.xmlSignals.status)("data",a.alarmData.xmlSignals.chartData)("width",260)("chartType","line")("topSites",a.alarmData.xmlSignals.topSites)("annotation",a.alarmData.xmlSignals.max)("rangeLabel",a.alarmData.timeData.range)("updates",a.alarmData.xmlSignals.updates),t.xp6(3),t.Oqu(a.alarmData.xmlSignals.stime),t.xp6(2),t.Oqu(a.alarmData.xmlSignals.etime)}}function ae(l,v){1&l&&(t.TgZ(0,"div",118),t._uU(1,"Data is Not Available"),t.qZA())}const N=function(){return[0,1,3]},oe=Y.Bz.forChild([{path:"",component:(()=>{class l{constructor(a,e,n,o,i,s){this.usersService=a,this.dealerService=e,this.commonService=n,this.sitesService=o,this.statisticsService=i,this.helper=s,this.satisfied_icons="sentiment_very_satisfied",this.satisfied=100,this.label_colors=["#81d4fa","#80deea","#b2dfdb","#a5d6a7","#fff59d","#ffcc80","#ffab91","#f8bbd0","#e57373","#eeeeee"],this.orders=[],this.filtered_orders=[],this.isReadyOrders=!1,this.sites=[],this.deletedSites=[],this.siteObj={},this.deletedSiteObj={},this.offlineSites=[],this.o_offlineSites=[],this.unregisterSites=[],this.o_unregisterSites=[],this.filtered_sites=[],this.isReadySites=!1,this.newSites=[],this.totalNewSite=0,this.lastUpdatedNewSite="",this.services=[],this.activities=[],this.isReadyActivity=!1,this.m_warning=new F.u,this.order_history_action=["created","updated","deleted"],this.total_estimated=0,this.order_filter="week",this.devices=[],this.filtered_devices=[],this.online_devices=[],this.offline_devices=[],this.notregistered_devices=[],this.offlineAudios=[],this.audios=[],this.device_filter="offline",this.totalDevice=0,this.totalOnlineDevice=0,this.totalOnlineBridge=0,this.totalOnlineCamera=0,this.totalOfflineBridge=0,this.totalOfflineCamera=0,this.totalUnregistertedBridge=0,this.totalOnlineAudios=0,this.totalOfflineAudios=0,this.isEnableDeviceChart=!1,this.isLoading=!0,this.allDealers={external_dealer_id_with_company_name:"All Dealers",dealer_id:null},this.wcs=null,this.wcsData={isWCS:!1,subDealers:[],filteredSubDealers:[],myDealer:{},selected:this.allDealers,selectedState:null,stateLabel:"",dealerLabel:"",monitoringStateLabel:"",monitoringDealerLabel:"",dropdown:{isShow:!1,searchTxt:""}},this.device_status_data=[{data:[0,0,0],label:"a"}],this.summaryTimeRangeInfo={"last 1 month":{idx:0,timeGap:"1day",timeTicks:31,label:"last 1 month"},"last 3 months":{idx:1,timeGap:"7day",timeTicks:13,label:"last 3 months"},"last 1 year":{idx:2,timeGap:"1month",timeTicks:13,label:"last 1 year"}},this.summaryTimeRanges=Object.keys(this.summaryTimeRangeInfo).map(d=>this.summaryTimeRangeInfo[d]),this.timeRangeInfo={"Last 24 Hours":{idx:0,timeGap:"1hour",timeTicks:25,label:"Last 24 Hours"},"Last 7 Days":{idx:1,timeGap:"1day",timeTicks:8,label:"Last 7 Days"},"Last 30 Days":{idx:2,timeGap:"1day",timeTicks:31,label:"Last 30 Days"},"Current Month":{idx:3,timeGap:"1day",timeTicks:31,label:"Current Month"},"Previous Month":{idx:4,timeGap:"1day",timeTicks:31,label:"Previous Month"}},this.timeRanges=Object.keys(this.timeRangeInfo).map(d=>this.timeRangeInfo[d]),this.data={default:{range:"last 1 year",rangeLabel:"last 1 year",rangeIdx:0,timeData:[{data:new Array(31).fill(0),label:"last 1 month",idx:0},{data:new Array(13).fill(0),label:"last 3 months",idx:1},{data:new Array(12).fill(0),label:"last 1 year",idx:2}]},totalSites:{status:0,count:0,range:"last 1 year",rangeLabel:"last 1 year",rangeIdx:2,updates:0,chartData:{data:{},labels:[]},timeData:[{data:new Array(31).fill(0),label:"last 1 month",idx:0},{data:new Array(13).fill(0),label:"last 3 months",idx:1},{data:new Array(12).fill(0),label:"last 1 year",idx:2}],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},totalBridges:{status:0,count:0,range:"last 1 year",rangeLabel:"last 1 year",rangeIdx:2,updates:0,chartData:{data:{},labels:[]},timeData:[{data:new Array(31).fill(0),label:"last 1 month",idx:0},{data:new Array(13).fill(0),label:"last 3 months",idx:1},{data:new Array(12).fill(0),label:"last 1 year",idx:2}],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},totalCameras:{status:0,count:0,range:"last 1 year",rangeLabel:"last 1 year",rangeIdx:2,updates:0,chartData:{data:{},labels:[]},timeData:[{data:new Array(31).fill(0),label:"last 1 month",idx:0},{data:new Array(13).fill(0),label:"last 3 months",idx:1},{data:new Array(12).fill(0),label:"last 1 year",idx:2}],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},newSites:{status:0,count:0,range:"last 1 year",rangeLabel:"last 1 year",rangeIdx:2,updates:0,chartData:{data:{},labels:[]},timeData:[{data:new Array(31).fill(0),label:"last 1 month",idx:0},{data:new Array(13).fill(0),label:"last 3 months",idx:1},{data:new Array(12).fill(0),label:"last 1 year",idx:2}],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""}},this.healthData={sites:{status:0,total:0,onlineSites:{count:0,percent:0},offlineSites:{list:[],count:0,percent:0}},bridges:{status:0,total:0,onlineBridges:{count:0,percent:0},offlineBridges:{count:0,percent:0}},cameras:{status:0,total:0,onlineCameras:{count:0,percent:0},offlineCameras:{count:0,percent:0}},offlineISP:{status:0,updates:0,data:[],chartData:{data:[],labels:[],etcs:[]}},offlineZipCodes:{status:0,data:[]},fwBridge:{status:0,updates:0,chartData:{data:[],labels:[],etcs:[]}},siteDisconnects:{status:0,count:0,max:0,updates:0,range:"Last 24 Hours",rangeLabel:"Last 24 Hours",chartData:{data:{},labels:[]},timeData:[{data:new Array(25).fill(0),label:"Last 24 Hours",idx:0},{data:new Array(8).fill(0),label:"Last 7 Days",idx:1},{data:new Array(31).fill(0),label:"Last 30 Days",idx:2},{data:new Array(31).fill(0),label:"Current Month",idx:3},{data:new Array(31).fill(0),label:"Previous Month",idx:4}],_topSites:[],topSites:[],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},bridgeDisconnects:{status:0,count:0,max:0,updates:0,range:"Last 24 Hours",rangeLabel:"Last 24 Hours",chartData:{data:{},labels:[]},timeData:[{data:new Array(25).fill(0),label:"Last 24 Hours",idx:0},{data:new Array(8).fill(0),label:"Last 7 Days",idx:1},{data:new Array(31).fill(0),label:"Last 30 Days",idx:2},{data:new Array(31).fill(0),label:"Current Month",idx:3},{data:new Array(31).fill(0),label:"Previous Month",idx:4}],_topSites:[],topSites:[],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},cameraDisconnects:{status:0,count:0,max:0,updates:0,range:"Last 24 Hours",rangeLabel:"Last 24 Hours",chartData:{data:{},labels:[]},timeData:[{data:new Array(25).fill(0),label:"Last 24 Hours",idx:0},{data:new Array(8).fill(0),label:"Last 7 Days",idx:1},{data:new Array(31).fill(0),label:"Last 30 Days",idx:2},{data:new Array(31).fill(0),label:"Current Month",idx:3},{data:new Array(31).fill(0),label:"Previous Month",idx:4}],_topSites:[],topSites:[],dropdown:{isShow:!1},isLoading:!1,isHovered:!1,hoverLabel:""},audios:{status:0,total:0,onlineAudios:{count:0,percent:0},offlineAudios:{count:0,percent:0}}},this.monitoringData={dropdown:{isShow:!1},disconnectTimeData:{range:"Last 24 Hours",rangeIdx:0},timeData:{range:"Last 30 Days",rangeIdx:1},monitoringStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},monitoringTimeAvgStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",total:"",avg:"",chartData:{title:"",data:{},labels:[],topSites:[],isReady:!1},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:"",labelType:"time"},monitoringTimeStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",total:"",avg:"",chartData:{title:"",data:{},labels:[],topSites:[],isReady:!1},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:"",labelType:"time"}},this.alarmData={dropdown:{isShow:!1},disconnectTimeData:{range:"Last 24 Hours",rangeIdx:0},timeData:{range:"Last 30 Days",rangeIdx:1},videoEvents:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},monitoringStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},monitoringTimeAvgStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",total:"",avg:"",chartData:{title:"",data:{},labels:[],topSites:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:"",labelType:"time"},monitoringTimeStat:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",total:"",avg:"",chartData:{title:"",data:{},labels:[],topSites:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:"",labelType:"time"},xmlSignals:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},verificationDispatchs:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},verificationCancels:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},verificationNoResponses:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""},zoneBypassEvents:{status:0,count:0,max:0,updates:0,range:"Last 30 Days",rangeLabel:"Last 30 Days",rangeIdx:1,stime:"",etime:"",chartData:{data:{},labels:[]},eventData:[{data:new Array(25).fill(0),label:"Last 24 Hours"},{data:new Array(8).fill(0),label:"Last 7 Days"},{data:new Array(31).fill(0),label:"Last 30 Days"},{data:new Array(31).fill(0),label:"Current Month"},{data:new Array(31).fill(0),label:"Previous Month"}],_topSites:[],topSites:[],isLoading:!1,isHovered:!1,hoverLabel:""}},this.statisticsAPIInfo={types:"8,9,10,11,12,13",monitoringTypes:"5,6",connectionTypes:"1,3",periodType:0,rank:10,jsonFormat:0,subDealerId:null}}onGlobalClick(a){!this.alarmDropdown&&!this.totalSiteDropdown||(this.alarmDropdown.nativeElement.contains(a.target)||(this.alarmData.dropdown.isShow=!1),this.totalSiteDropdown.nativeElement.contains(a.target)||(this.data.totalSites.dropdown.isShow=!1),this.totalBridgeDropdown&&(this.totalBridgeDropdown.nativeElement.contains(a.target)||(this.data.totalBridges.dropdown.isShow=!1)),this.totalCameraDropdown&&(this.totalCameraDropdown.nativeElement.contains(a.target)||(this.data.totalCameras.dropdown.isShow=!1)),this.newSitesDropdown&&(this.newSitesDropdown.nativeElement.contains(a.target)||(this.data.newSites.dropdown.isShow=!1)),this.siteDisconnectsDropdown&&(this.siteDisconnectsDropdown.nativeElement.contains(a.target)||(this.healthData.siteDisconnects.dropdown.isShow=!1)),this.bridgeDisconnectsDropdown&&(this.bridgeDisconnectsDropdown.nativeElement.contains(a.target)||(this.healthData.bridgeDisconnects.dropdown.isShow=!1)),this.cameraDisconnectsDropdown&&(this.cameraDisconnectsDropdown.nativeElement.contains(a.target)||(this.healthData.cameraDisconnects.dropdown.isShow=!1)),this.wcsDropdown&&(this.wcsDropdown.nativeElement.contains(a.target)||(this.wcsData.dropdown.isShow=!1,this.wcsData.dropdown.searchTxt="",this.wcsData.filteredSubDealers=this.wcsData.subDealers.slice())),this.monitoringDropdown&&(this.monitoringDropdown.nativeElement.contains(a.target)||(this.monitoringData.dropdown.isShow=!1)))}ngOnInit(){let a=window.navigator.userAgent,n={ie:"MSIE ",edge:"Edge",trident:"Trident"};for(let d in n)a.indexOf(n[d]);const o=window.location.href;this.isLoading=!0;const i=this.commonService.getQueryParams(o.split("?")[1]);let s=null;i.dealer_id&&(s=i.dealer_id),this.usersService.getMe(s).subscribe(d=>{this.me=d,this.commonService.isLoading=!1,3===this.me.type?this.getWCSDealerInfo():this.setDealerStat(),this.getRegistrationStatisticsDealerV2(),this.fetchPartners(),this.parseSiteInfo()},d=>{this.commonService.isLoading=!1,this.isLoading=!1})}ngAfterViewInit(){setTimeout(()=>{this.isLoading=!1},0)}initData(){}onChartReady(a,e){e.isReady=a}toggleDropDownMenu(a){let e=this.data.totalSites;"Total Site"===a?e=this.data.totalSites:"Total Bridge"===a?e=this.data.totalBridges:"Total Camera"===a?e=this.data.totalCameras:"New Sites"===a?e=this.data.newSites:"Site Disconnects"===a?e=this.healthData.siteDisconnects:"Bridge Disconnects"===a?e=this.healthData.bridgeDisconnects:"Camera Disconnects"===a?e=this.healthData.cameraDisconnects:"Sub Dealers"===a&&(e=this.wcsData,e.dropdown.searchTxt="",e.filteredSubDealers=this.wcsData.subDealers.slice()),e.dropdown.isShow=!e.dropdown.isShow}toggleAlarmDropDownMenu(){this.alarmData.dropdown.isShow=!this.alarmData.dropdown.isShow}toggleMonitoringDropDownMenu(){this.monitoringData.dropdown.isShow=!this.monitoringData.dropdown.isShow}searchSubDealer(a){this.wcsData.filteredSubDealers=this.wcsData.subDealers.filter(e=>{var n,o;return(null===(o=null===(n=null==e?void 0:e.external_dealer_id_with_company_name)||void 0===n?void 0:n.toLowerCase())||void 0===o?void 0:o.indexOf(null==a?void 0:a.toLowerCase()))>-1})}fetchPartners(){if(2!==this.me.type)return;this.wcsData.isWCS=!0;const a=this.me.dealer_id;this.setMyDealer(),this.dealerService.getPartners(a).subscribe(e=>{console.log("res",e);const n=e.sort(this.compare);n.unshift(this.wcsData.myDealer),n.unshift(this.allDealers),this.wcsData.subDealers=n,this.wcsData.filteredSubDealers=Z.clone(this.wcsData.subDealers)})}setMyDealer(){this.wcsData.myDealer={external_dealer_id_with_company_name:this.me.company_name,dealer_id:this.me.dealer_id,type:this.me.type,isMyDealer:!0}}compare(a,e){var n,o,i,s;return(null===(n=null==a?void 0:a.external_dealer_id_with_company_name)||void 0===n?void 0:n.toLowerCase())<(null===(o=null==e?void 0:e.external_dealer_id_with_company_name)||void 0===o?void 0:o.toLowerCase())?-1:(null===(i=null==a?void 0:a.external_dealer_id_with_company_name)||void 0===i?void 0:i.toLowerCase())>(null===(s=null==e?void 0:e.external_dealer_id_with_company_name)||void 0===s?void 0:s.toLowerCase())?1:0}getRegistrationStatisticsDealerV2(a=null){const e=this.me.dealer_id,n=this.wcsData.isWCS?this.statisticsAPIInfo.subDealerId:null;let o=b()().unix();const i=b()().subtract(30,"days").startOf("day"),s=b()().subtract(90,"days").startOf("day"),d=b()().subtract(1,"years");let c=i,r=this.data.default;"Total Sites"===a?r=this.data.totalSites:"Total Bridges"===a?r=this.data.totalBridges:"Total Cameras"===a?r=this.data.totalCameras:"New Sites"===a&&(r=this.data.newSites),"last 1 month"===r.range?c=i:"last 3 months"===r.range?c=s:"last 1 year"===r.range&&(c=d);const h=c.unix(),u=this.summaryTimeRangeInfo[r.range],g=u.timeTicks,f=u.timeGap,_={timeIdx:r.rangeIdx,stime:c,etime:o,timeGap:f,timeTicks:g};this.statisticsService.getRegistrationStatisticsDealer(e,h,o,n).subscribe(x=>{const D=this.calcSummaryDataV2(x,h,g,f);("Total Sites"===a||!a)&&this.parseTotalSites(D.siteData,_),("Total Bridges"===a||!a)&&this.parseTotalBridges(D.bridgeData,_),("Total Cameras"===a||!a)&&this.parseTotalCameras(D.cameraData,_),("New Sites"===a||!a)&&this.parseNewSitesv2(D.newSiteData,_)})}calcSummaryDataV2(a,e,n,o){let i=this.parseTimeData(a.datas,a.previous_datas);i=this.parseNewSiteCount(i,a.previous_datas);const s=a.previous_datas,d=Object.keys(i),p=s.bridge,r=s.camera,h=s.site.slice(0,2),m=p.slice(0,2),u=r.slice(0,2);let f=h,_=m,x=u,C=0;const D=new Array(n).fill(null),A=new Array(n).fill(null),w=new Array(n).fill(null),U=new Array(n).fill(null);let H=3600;"1day"===o?H=86400:"7day"===o?H=604800:"1month"===o&&(H=2592e3),D[0]=h[0],A[0]=m[0],w[0]=u[0],U[0]=0;for(let T=0;T<n;T++){let E=e+T*H,S=e+(T+1)*H;"1month"===o&&(E=b()().subtract(12-T,"months").startOf("month").unix(),S=b()().subtract(12-T,"months").endOf("month").unix()),D[T]||(D[T]=f[0]),A[T]||(A[T]=_[0]),w[T]||(w[T]=x[0]),U[T]||(U[T]=C);const q=d.filter(P=>{const I=parseInt(P+"");return I>=E&&I<S}),y=q[q.length-1];if(y){const P=i[y],I=P.site,L=P.bridge,k=P.camera,z=P.newSites;I&&(f=I),L&&(_=L),k&&(x=k),z&&(C=z),D[T]=f[0],A[T]=_[0],w[T]=x[0],U[T]=C}}return{siteData:D,bridgeData:A,cameraData:w,newSiteData:U}}parseTimeData(a,e){const o=e.bridge,i=e.camera;let s=e.site.slice(0,2),d=o.slice(0,2),c=i.slice(0,2);const p=Object.keys(a),r=a[p[0]];return r&&(r.site||(r.site=s),r.bridge||(r.bridge=d),r.camera||(r.camera=c)),p.forEach((h,m)=>{const u=a[h];u&&(u.site||(u.site=s),u.bridge||(u.bridge=d),u.camera||(u.camera=c),s=u.site,d=u.bridge,c=u.camera)}),a}parseNewSiteCount(a,e){const n=e.site,o=Object.keys(a),i=a[o[0]];let s=n.slice(0,2),d=0;if(i){const c=i[0]-n.slice(0,2);d=c>=0?c:0}return o.forEach((c,p)=>{const r=a[c],h=r.site;let m=h[0]-s[0];m=m>=0?m:0,d+=m,r.newSites=d,s=h}),a}parseTotalSitesV2(a,e){const o=this.data.totalSites,s=o.timeData[e.timeIdx];s.data=a||[],this.parseSummaryInfo(o,"Total Sites",s.data,e);const d=o.chartData.data.data;o.count=this.numberWithCommas(d[d.length-1]),o.updates+=1}getRegistrationStatisticsDealer(a=null){const e=this.me.dealer_id,n=this.wcsData.isWCS?this.statisticsAPIInfo.subDealerId:null;let o=b()().unix();const i=b()().subtract(30,"days").startOf("day"),s=b()().subtract(90,"days").startOf("day"),d=b()().subtract(1,"years");let c=i,r=this.data.default;"Total Sites"===a?r=this.data.totalSites:"Total Bridges"===a?r=this.data.totalBridges:"Total Cameras"===a?r=this.data.totalCameras:"New Sites"===a&&(r=this.data.newSites),"last 1 month"===r.range?c=i:"last 3 months"===r.range?c=s:"last 1 year"===r.range&&(c=d);const h=c.unix(),u=this.summaryTimeRangeInfo[r.range],g=u.timeTicks,f=u.timeGap,_={timeIdx:r.rangeIdx,stime:c,etime:o,timeGap:f,timeTicks:g};this.statisticsService.getRegistrationStatisticsDealer(e,h,o,n).subscribe(x=>{const D=this.calcSummaryData(x,h,g,f);("Total Sites"===a||!a)&&this.parseTotalSites(D.siteData,_),("Total Bridges"===a||!a)&&this.parseTotalBridges(D.bridgeData,_),("Total Cameras"===a||!a)&&this.parseTotalCameras(D.cameraData,_),("New Sites"===a||!a)&&this.parseNewSitesv2(D.newSiteData,_)})}parseTotalSites(a,e){const o=this.data.totalSites,s=o.timeData[e.timeIdx];s.data=a||[],this.parseSummaryInfo(o,"Total Sites",s.data,e);const d=o.chartData.data.data;o.count=this.numberWithCommas(d[d.length-1]),o.updates+=1}parseTotalBridges(a,e){const o=this.data.totalBridges,s=o.timeData[e.timeIdx];s.data=a||[],this.parseSummaryInfo(o,"Total Bridges",s.data,e);const d=o.chartData.data.data;o.count=this.numberWithCommas(d[d.length-1]),o.updates+=1}parseTotalCameras(a,e){const o=this.data.totalCameras,s=o.timeData[e.timeIdx];s.data=a||[],this.parseSummaryInfo(o,"Total Cameras",s.data,e);const d=o.chartData.data.data;o.count=this.numberWithCommas(d[d.length-1]),o.updates+=1}parseNewSitesv2(a,e){Z.cloneDeep(a);const i=this.data.newSites,d=i.timeData[e.timeIdx];d.data=a||[],this.parseSummaryInfo(i,"New Sites",d.data,e);const c=i.chartData.data.data;i.count=this.numberWithCommas(c[c.length-1]),i.updates+=1}calcSummaryData(a,e,n,o){const i=a.data,s=a.sum_before[0],d=parseInt(s.site+""),c=parseInt(s.bridge+""),p=parseInt(s.device+"")-parseInt(s.bridge+""),h=new Array(n).fill(null),m=new Array(n).fill(null),u=new Array(n).fill(null),g=new Array(n).fill(null);let f=3600;b()().unix(),"1day"===o?f=86400:"7day"===o?f=604800:"1month"===o&&(f=2592e3);let x=d,C=c,D=p,A=0;h[0]=d,m[0]=c,u[0]=p,g[0]=0;for(let w=0;w<n;w++){let U=w,H=w+1;h[w]||(h[w]=x),m[w]||(m[w]=C),u[w]||(u[w]=D),g[w]||(g[w]=A),i.forEach(T=>{const O=parseInt(T.timestamp+"");O>=e+U*f&&O<e+H*f&&(x+=parseInt(T.site+""),C+=parseInt(T.bridge+""),D+=parseInt(T.device+"")-parseInt(T.bridge+""),A+=parseInt(T.site+"")),h[w]=x,m[w]=C,u[w]=D,g[w]=A})}return{siteData:h,bridgeData:m,cameraData:u,newSiteData:g}}parseSummaryInfo(a,e,n,o){const i=o.timeGap,s=o.timeTicks,d=o.stime,c=o.etime,p=b().unix(c).startOf("day");let r=[];"1day"===i?r=[...Array(s)].map((m,u)=>Z.cloneDeep(d).add(u,"day").format("DD MMMM YYYY")):"7day"===i?r=[...Array(s)].map((m,u)=>Z.cloneDeep(p).subtract(7*u,"day").format("DD MMM YYYY")).reverse():"1month"===i&&(r=[...Array(s)].map((m,u)=>Z.cloneDeep(d).add(u,"month").format("MMMM YYYY")));const h={sameDay:"[Today], h:mm A",nextDay:"[Tomorrow], h:mm A",nextWeek:"MM/DD/yyyy",lastDay:"[Yesterday], h:mm A",lastWeek:"[Last] dddd"};a.chartData.data={data:n,label:e},a.chartData.labels=r,a.stime=d.calendar(null,h),a.etime=b().unix(c).calendar(null,h),setTimeout(()=>{a.status=1},10)}fetchStatisticsDealer(a=null){const e=this.me.dealer_id;let n=b()().unix();const o=b()().subtract(1,"days").startOf("hour"),i=b()().subtract(7,"days").startOf("day"),s=b()().subtract(30,"days").startOf("day"),d=b()().startOf("month"),c=b()().subtract(1,"months").startOf("month");let p=o,r=0,h=this.statisticsAPIInfo.types,m=this.statisticsAPIInfo.periodType,u=this.statisticsAPIInfo.rank,g=this.statisticsAPIInfo.jsonFormat,f=this.statisticsAPIInfo.subDealerId,_=this.alarmData.timeData;"Last 24 Hours"===_.range?(p=o,m=0):"Last 7 Days"===_.range?p=i:"Last 30 Days"===_.range?p=s:"Current Month"===_.range?(p=d,n=b()().endOf("month").unix(),r=b()().daysInMonth()):"Previous Month"===_.range&&(p=c,n=b()().subtract(1,"months").endOf("month").unix(),r=b()().subtract(1,"months").daysInMonth());const x=p.unix(),C={days:r,sTimestamp:x,stime:p,etime:n};this.statisticsService.getStatisticsDealer(e,x,n,h,m,u,g,f).subscribe(D=>{("alarm"===a||!a)&&this.parseAlarmStatistics(D,C)})}parseAlarmStatistics(a=null,e=null){!a||(this.parseXMLAlarmSignalStatistics(a),this.parseVideoEventsStatistics(a),this.parseVerificationCancelStatistics(a),this.parseVerificationDispatchStatistics(a),this.parseVerificationNoResponseStatistics(a),this.parseZoneBypassEventStatistics(a))}fetchDisconnections(a=null){const e=this.me.dealer_id;let n=b()().unix();const o=b()().subtract(1,"days").startOf("hour"),i=b()().subtract(7,"days").startOf("day"),s=b()().subtract(30,"days").startOf("day"),d=b()().startOf("month"),c=b()().subtract(1,"months").startOf("month");let p=o,r=0,h=this.statisticsAPIInfo.connectionTypes,m=this.statisticsAPIInfo.periodType,u=this.statisticsAPIInfo.rank,g=this.statisticsAPIInfo.jsonFormat,f=this.statisticsAPIInfo.subDealerId,_=this.alarmData.timeData;"Site Disconnects"===a?(_=this.healthData.siteDisconnects,h="1,3"):"Bridge Disconnects"===a?(_=this.healthData.bridgeDisconnects,h="1"):"Camera Disconnects"===a?(_=this.healthData.cameraDisconnects,h="3"):_=this.alarmData.disconnectTimeData,"Last 24 Hours"===_.range?(p=o,m=0):"Last 7 Days"===_.range?p=i:"Last 30 Days"===_.range?p=s:"Current Month"===_.range?(p=d,n=b()().endOf("month").unix(),r=b()().daysInMonth()):"Previous Month"===_.range&&(p=c,n=b()().subtract(1,"months").endOf("month").unix(),r=b()().subtract(1,"months").daysInMonth());const C=p.unix();this.statisticsService.getStatisticsDealer(e,C,n,h,m,u,g,f).subscribe(D=>{("Site Disconnects"===a||!a)&&this.parseSiteDisconnects(D),("Bridge Disconnects"===a||!a)&&this.parseBridgeDisconnects(D),("Camera Disconnects"===a||!a)&&this.parseCameraDisconnects(D)})}fetchAlarmStatistics(){this.fetchStatisticsDealer(),this.fetchDisconnections(),this.fetchMonitoringStatistics()}fetchMonitoringStatistics(a=null){const e=this.me.dealer_id;let n=b()().unix();const o=b()().subtract(1,"days").startOf("hour"),i=b()().subtract(7,"days").startOf("day"),s=b()().subtract(30,"days").startOf("day"),d=b()().startOf("month"),c=b()().subtract(1,"months").startOf("month");let p=o,r=0,h=this.statisticsAPIInfo.monitoringTypes;2===this.wcsData.selectedState&&(h="15,16");let m=this.statisticsAPIInfo.periodType,u=this.statisticsAPIInfo.rank,g=this.statisticsAPIInfo.jsonFormat,f=this.statisticsAPIInfo.subDealerId,_=this.monitoringData.timeData;_=this.monitoringData.timeData,"Last 24 Hours"===_.range?(p=o,m=0):"Last 7 Days"===_.range?p=i:"Last 30 Days"===_.range?p=s:"Current Month"===_.range?(p=d,n=b()().endOf("month").unix(),r=b()().daysInMonth()):"Previous Month"===_.range&&(p=c,n=b()().subtract(1,"months").endOf("month").unix(),r=b()().subtract(1,"months").daysInMonth());const x=p.unix(),C={days:r,sTimestamp:x,stime:p,etime:n},D=this.monitoringData.monitoringTimeStat,A=this.monitoringData.monitoringTimeAvgStat;D.status=0,D.chartData.isReady=!1,A.status=0,A.chartData.isReady=!1,this.statisticsService.getStatisticsDealer(e,x,n,h,m,u,g,f).subscribe(w=>{this.parseMonitoringStatistics(w,C)})}parseMonitoringStatistics(a,e){const n=e.sTimestamp,o=e.stime,i=e.etime,s=this.monitoringData.timeData,c=this.timeRangeInfo[s.range],p=e.days||c.timeTicks,r=c.timeGap,h=this.monitoringData.monitoringStat,u=h.eventData[s.rangeIdx];let g=a.monitoring_open_count||{},f=a.monitoring_open_count_top_site||{},_=a.monitoring_total_open_time||{},x=a.monitoring_total_open_time_top_site||{},C=a.monitoring_total_open_avg_time_top_site||{};2===this.wcsData.selectedState&&(g=a.monitoring_open_count_by_cs||{},f=a.monitoring_open_count_by_cs_top_site||{});let w=[];const U=[],T=Object.keys(g);h.topSites=f;const O=[];Object.keys(f).forEach(S=>{const q=f[S];q.forEach(y=>{var P,I,L,k;y.name=(null===(P=this.siteObj[y.site_id])||void 0===P?void 0:P.name)||"",y.count=y.value||0,void 0===(null===(I=this.siteObj[y.site_id])||void 0===I?void 0:I.name)&&(y.name=void 0===(null===(L=this.deletedSiteObj[y.site_id])||void 0===L?void 0:L.name)?"Unknown(Deleted Site)":(null===(k=this.deletedSiteObj[y.site_id])||void 0===k?void 0:k.name)+"(Deleted Site)")}),O.push({timestamp:parseInt(S),sites:q})}),T.forEach(S=>{U.push({timestamp:parseInt(S),count:parseInt(g[S])})}),w=U.concat([]);const E=this.calcMonitoringInfo(w,n,p,r);u.data=E.countData,h.count=this.numberWithCommas(u.data.reduce((S,q)=>S+q,0)),h.max=Math.max(...u.data),h.topSites=this.calcTopSites(O,n,p,r),this.parseMonitoringInfo(h,"Open Counts",u.data,o,i,r,p),this.parseMonitoringTimeData(_,x,C)}parseMonitoringTimeData(a,e,n){const o=a.seconds||0,i=this.parseTimeFormat(o),d=Math.round(o/(a.count||0))||0,c=this.parseTimeFormat(d),p=this.monitoringData.monitoringTimeStat,r=this.monitoringData.monitoringTimeAvgStat;p.total=i,p.avg=c,r.total=c;const m=Z.cloneDeep(e),u=[],g=[],f=[];let _=0,x=0;m.forEach((O,J)=>{var E,S,q,y;const P=O.site_id,I=parseInt(O.seconds+""),L=parseInt(O.count+"");let k=(null===(E=this.siteObj[P])||void 0===E?void 0:E.name)||"";void 0===(null===(S=this.siteObj[P])||void 0===S?void 0:S.name)&&(k=void 0===(null===(q=this.deletedSiteObj[P])||void 0===q?void 0:q.name)?"Unknown(Deleted Site)":(null===(y=this.deletedSiteObj[P])||void 0===y?void 0:y.name)+"(Deleted Site)"),O.name=k,O.value=this.parseTimeFormat(I),O.avg=Math.round(I/L),O.isDealerLevel=!0,u.push(k),g.push(I),f.push(L),_+=I,x+=L}),p.status=0,p.chartData.title="Open Time Top 10",p.chartData.data=g,p.chartData.labels=u,p.chartData.topSites=m,p.updates+=1,setTimeout(()=>{p.status=1},100);const D=Z.cloneDeep(n),A=[],w=[],U=[];let H=0,T=0;D.forEach((O,J)=>{var E,S,q,y;const P=O.site_id,L=(parseInt(O.seconds+""),parseInt(O.avg_seconds+"")),k=parseInt(O.count+"");let z=(null===(E=this.siteObj[P])||void 0===E?void 0:E.name)||"";void 0===(null===(S=this.siteObj[P])||void 0===S?void 0:S.name)&&(z=void 0===(null===(q=this.deletedSiteObj[P])||void 0===q?void 0:q.name)?"Unknown(Deleted Site)":(null===(y=this.deletedSiteObj[P])||void 0===y?void 0:y.name)+"(Deleted Site)"),O.name=z,O.value=this.parseTimeFormat(L),O.avg=Math.round(L),O.isDealerLevel=!0,A.push(z),w.push(L),U.push(k),H+=L,T+=k}),r.chartData.title="Open Average Time Top 10",r.status=0,r.chartData.data=w,r.chartData.labels=A,r.chartData.topSites=D,r.updates+=1,setTimeout(()=>{r.status=1},100)}calcMonitoringInfo(a,e,n,o){const i=new Array(n).fill(null);let s=3600;const d=b()().unix();"1hour"===o?s=3600:"12hours"===o?s=43200:"1day"===o&&(s=86400);for(let c=0;c<n;c++){if(d<e+c*s)continue;let p=c,r=c+1;i[c]=0,a.forEach(h=>{const m=parseInt(h.timestamp+"");m>=e+p*s&&m<e+r*s&&(i[c]+=parseInt(h.count)||0)})}return{countData:i}}calcMonitoringAvgInfo(a,e){let n=[];return e.forEach(o=>{const i=o.sites,s={},d={};d.timestamp=o.timestamp,d.sites=[],((a.find(r=>r.timestamp===o.timestamp)||{}).sites||[]).forEach(r=>{s[r.site_id]=r,s[r.site_id].totalCount=r.value,s[r.site_id].totalTime=0}),i.forEach(r=>{let h={};h.timestamp=o.timestamp,h.site_id=r.site_id,h.name=r.name,h.value=0,h.time=0,h.count=0;const m=s[r.site_id];if(m){const u=r.time;m.totalTime+=u,m.totalCount+=m.value;const g=Math.round(parseInt(u+"")/parseInt(m.value+""));h.value=this.parseTimeFormat(g),h.time=u,h.count=parseInt(m.value+"")}d.sites.push(h)}),n.push(d)}),n}parseMonitoringInfo(a,e,n,o,i,s,d){const c=a.topSites||[];let p=[];"1hour"===s?p=[...Array(d)].map((h,m)=>Z.cloneDeep(o).add(m,"hour").format("DD MMMM YYYY, hh A")):"12hours"===s?p=[...Array(d)].map((h,m)=>{let g="",f="";return Z.cloneDeep(o).add(12*m,"hour").hours()<12?(g=" - AM (00 - 12PM)",f=" - PM (12PM - 24PM)"):(g=" - PM (12PM - 24PM)",f=" - AM (00 - 12PM)"),Z.cloneDeep(o).add(12*m,"hour").format("DD MMM YYYY")+g}):"1day"===s&&(p=[...Array(d)].map((h,m)=>Z.cloneDeep(o).add(m,"day").format("DD MMMM YYYY")));const r={sameDay:"[Today], h:mm A",nextDay:"[Tomorrow], h:mm A",nextWeek:"MM/DD/yyyy",lastDay:"[Yesterday], h:mm A",lastWeek:"[Last] dddd"};a.chartData.data={data:n,label:e,topSites:c},a.chartData.labels=p,a.stime=o.calendar(null,r),a.etime=b().unix(i).calendar(null,r),a.updates+=1,setTimeout(()=>{a.status=1},10)}parseVideoEventsStatistics(a){const e=this.alarmData.videoEvents,i=this.parseRefineChartData(e,a.video_event_count||{},a.video_event_count_top_site||{});this.parseAlarmData("Video Event Count",e,i)}parseXMLAlarmSignalStatistics(a){const e=this.alarmData.xmlSignals,i=this.parseRefineChartData(e,a.xml_alarm_signal_count||{},a.xml_alarm_signal_count_top_site||{});this.parseAlarmData("XML Alarm Signal Count",e,i)}parseVerificationDispatchStatistics(a){const e=this.alarmData.verificationDispatchs,i=this.parseRefineChartData(e,a.verification_dispath_count||{},a.verification_dispath_count_top_site||{});this.parseAlarmData("Verification Dispatch Count",e,i)}parseVerificationCancelStatistics(a){const e=this.alarmData.verificationCancels,i=this.parseRefineChartData(e,a.verification_cancel_count||{},a.verification_cancel_count_top_site||{});this.parseAlarmData("Verification Cancel Count",e,i)}parseVerificationNoResponseStatistics(a){const e=this.alarmData.verificationNoResponses,i=this.parseRefineChartData(e,a.verification_no_response_count||{},a.verification_no_response_count_top_site||{});this.parseAlarmData("Verification No Response Count",e,i)}parseZoneBypassEventStatistics(a){const e=this.alarmData.zoneBypassEvents,i=this.parseRefineChartData(e,a.zone_bypass_event_count||{},a.zone_bypass_event_count_top_site||{});this.parseAlarmData("Zone Bypass Event Count",e,i)}fetchSites(){const a=this.statisticsAPIInfo.subDealerId;this.isReadySites=!1,this.totalDevice=0,this.sitesService.fetch(this.me.dealer_id,a,"site.site_id,site.name,site.device_count,site.created,site.account_number,site.address1,site.address2,site.is_activated").subscribe(n=>{},n=>{this.isReadySites=!0,this.isEnableDeviceChart=!0,this.commonService.showErrorToast(n,"Request Customers Info")})}parseAlarmData(a,e,n){e.isLoading=!0;const o=e.chartData,i=this.alarmData.timeData;let s=b()().unix();const d=b()().subtract(1,"days").startOf("hour"),c=b()().subtract(7,"days").startOf("day"),p=b()().subtract(30,"days").startOf("day"),r=b()().startOf("month"),h=b()().subtract(1,"months").startOf("month");let m=d,u=0;"Last 24 Hours"===i.range?m=d:"Last 7 Days"===i.range?m=c:"Last 30 Days"===i.range?m=p:"Current Month"===i.range?(m=r,s=b()().endOf("month").unix(),u=b()().daysInMonth()):"Previous Month"===i.range&&(m=h,s=b()().subtract(1,"months").endOf("month").unix(),u=b()().subtract(1,"months").daysInMonth());const g=m.unix(),f=this.timeRangeInfo[i.range],_=u||f.timeTicks,x=f.timeGap,C=e._topSites||[];setTimeout(()=>{o.data=this.calcChartTime(n,g,_,x),e.topSites=this.calcTopSites(C,g,_,x),e.count=this.numberWithCommas(o.data.reduce((D,A)=>D+A,0)),e.max=Math.max(...o.data),this.parseChartData(a,o.data,m,s,e,x,_),e.updates+=1,e.isLoading=!1},100)}calcChartTime(a,e,n,o){const i=new Array(n).fill(null);let s=3600;"1hour"===o?s=3600:"12hours"===o?s=43200:"1day"===o?s=86400:"7day"===o?s=604800:"30day"===o&&(s=2592e3);const d=b()().unix();for(let c=0;c<n;c++){if(d<e+c*s)continue;let p=c,r=c+1;i[c]=0,a.forEach(h=>{const m=parseInt(h.timestamp+"");m>=e+p*s&&m<e+r*s&&(i[c]+=parseInt(h.count))})}return i}calcTopSites(a,e,n,o,i=!1,s=!1){const d=new Array(n).fill([]);let c=3600;"1hour"===o?c=3600:"12hours"===o?c=43200:"1day"===o?c=86400:"7day"===o?c=604800:"30day"===o&&(c=2592e3);for(let p=0;p<n;p++){let r=p,h=p+1;d[p]=[],a.forEach(m=>{const u=parseInt(m.timestamp+"");i?(u>=e+r*c&&u<e+h*c&&(0==d[p].length?d[p]=Z.cloneDeep(m.sites):m.sites.forEach(g=>{g.time=parseInt(g.time+"");const f=d[p].find(_=>_.site_id===g.site_id)||null;f?f.time=f.count?(parseInt(f.time+"")*f.count+parseInt(g.time+"")*g.count)/(g.count+f.count):parseInt(f.time+"")+parseInt(g.time+""):d[p].push(Z.cloneDeep(g))})),d[p].forEach(g=>{g.value=this.parseTimeFormat(g.time)}),d[p].sort((g,f)=>g.time-f.time).reverse()):s?(u>=e+r*c&&u<e+h*c&&(0==d[p].length?(m.sites.forEach(g=>{g.time=parseInt(g.time+""),g.value=parseInt(g.value+""),g.count=parseInt(g.count+""),g.value=g.time/g.count,g.avg=g.value}),d[p]=Z.cloneDeep(m.sites)):m.sites.forEach(g=>{g.time=parseInt(g.time+""),g.value=parseInt(g.value+""),g.count=parseInt(g.count+"");const f=d[p].find(_=>_.site_id===g.site_id)||null;f?(f.time=parseInt(f.time+"")+parseInt(g.time+""),f.count=parseInt(f.count+"")+parseInt(g.count+""),f.value=Math.round(f.time/f.count),f.avg=f.value):(g.value=g.time/g.count,g.avg=g.value,d[p].push(Z.cloneDeep(g)))})),d[p].sort((g,f)=>g.avg-f.avg).reverse(),d[p].forEach(g=>{g.value=this.parseTimeFormat(g.avg)})):(u>=e+r*c&&u<e+h*c&&(0==d[p].length?d[p]=Z.cloneDeep(m.sites):m.sites.forEach(g=>{g.value=parseInt(g.value+"");const f=d[p].find(_=>_.site_id===g.site_id)||null;f?f.value=parseInt(f.value+"")+parseInt(g.value+""):d[p].push(Z.cloneDeep(g))})),d[p].sort((g,f)=>g.value-f.value).reverse())})}return d}parseChartData(a,e,n,o,i,s,d){const c=i.chartData,p=i.topSites||[];let r=[];"1hour"===s?r=[...Array(d)].map((m,u)=>Z.cloneDeep(n).add(u,"hour").format("DD MMMM YYYY, hh A")):"12hours"===s?r=[...Array(d)].map((m,u)=>{let f="",_="";return Z.cloneDeep(n).add(12*u,"hour").hours()<12?(f=" - AM (00 - 12PM)",_=" - PM (12PM - 24PM)"):(f=" - PM (12PM - 24PM)",_=" - AM (00 - 12PM)"),Z.cloneDeep(n).add(12*u,"hour").format("DD MMM YYYY")+f}):"1day"===s?r=[...Array(d)].map((m,u)=>Z.cloneDeep(n).add(u,"day").format("DD MMMM YYYY")):"7day"===s?r=[...Array(d)].map((m,u)=>Z.cloneDeep(n).add(7*u,"day").format("DD MMM YYYY")+" - "+Z.cloneDeep(n).add(7*(u+1),"day").format("DD MMM YYYY")):"30day"===s&&(r=[...Array(d)].map((m,u)=>Z.cloneDeep(n).add(30*u,"day").format("DD MMM YYYY")+" - "+Z.cloneDeep(n).add(30*(u+1),"day").format("DD MMM YYYY")));const h={sameDay:"[Today], h:mm A",nextDay:"[Tomorrow], h:mm A",nextWeek:"MM/DD/yyyy",lastDay:"[Yesterday], h:mm A",lastWeek:"[Last] dddd"};i.stime=n.calendar(null,h),i.etime=b().unix(o).calendar(null,h),c.data={data:e,label:a,topSites:p},c.labels=r,setTimeout(()=>{i.status=1},10)}changeSubDealer(a){this.wcsData.selected=a,this.wcsData.dropdown.isShow=!1,this.wcsData.dropdown.searchTxt="",this.wcsData.filteredSubDealers=this.wcsData.subDealers.slice(),this.statisticsAPIInfo.subDealerId=a.dealer_id,this.getRegistrationStatisticsDealerV2(),this.fetchPartners(),this.parseSiteInfo(),this.setDealerStat()}getWCSDealerInfo(){this.dealerService.getPartners(this.me.dealer_id).subscribe(a=>{0!==a.length&&(this.wcs=a[0],this.setDealerStat())})}setDealerStat(){this.setDealerLabel(),this.setSelectedType()}setDealerLabel(){var a;const e=this.me,n=e.type,o=e.company_name,i=this.wcsData.selected;let s="",d="";i.dealer_id?s=null==i?void 0:i.external_dealer_id_with_company_name:0===n?s=o:1===n?s=o+" + All SI DEALERS":2===n?s=o+" + All SUB DEALERS":3===n?(s=o,d=(null===(a=this.wcs)||void 0===a?void 0:a.external_dealer_id_with_company_name)+" + "+o):s=o,this.wcsData.dealerLabel=s,d&&(this.wcsData.monitoringDealerLabel=d)}setSelectedType(){const e=this.me.type,n=this.wcsData.selected;let o=null,i="",s="";n.dealer_id?2===n.type?(o=1,s="Sees the stats of main dealer users only."):3===n.type?(o=2,s="Sees the stats of main dealer users and sub-dealer users."):o=2:0===e?o=4:1===e?o=3:2===e?o=0:3===e?(o=5,s="These are statistics that combine the data of the main dealer and the sub-dealer."):o=2,0===o?i="These are statistics that combine the data of the main dealer and the sub-dealers.":1===o?i="These are statistics data of the main dealer.":2===o||5===o?i="These are statistics data of the sub dealer.":3===o?i="These are statistics that combine the data of the CS dealer and the SI dealers.":4===o&&(i="These are statistics data of the SI dealer."),this.wcsData.selectedState=o,this.wcsData.stateLabel=i,this.wcsData.monitoringStateLabel=i,s&&(this.wcsData.monitoringStateLabel=s)}changeSummaryTimeRange(a,e){let n=null;if("Total Sites"===a?n=this.data.totalSites:"Total Bridges"===a?n=this.data.totalBridges:"Total Cameras"===a?n=this.data.totalCameras:"New Sites"===a&&(n=this.data.newSites),!n)return;const o=this.summaryTimeRangeInfo[e];n.range!==e&&(n.range=o.label,n.rangeLabel=o.label,this.getRegistrationStatisticsDealerV2(a),n.dropdown.isShow=!1)}changeHealthTimeRange(a,e){let n=null,o=null;if("Site Disconnects"===a?(n=this.healthData.siteDisconnects,o=this.parseSiteDisconnects):"Bridge Disconnects"===a?(n=this.healthData.bridgeDisconnects,o=this.parseBridgeDisconnects):"Camera Disconnects"===a&&(n=this.healthData.cameraDisconnects,o=this.parseCameraDisconnects),!n)return;const i=this.timeRangeInfo[e];n.range!==e&&(n.range=i.label,n.rangeLabel=i.label,this.fetchDisconnections(a)),n.dropdown.isShow=!1}parseRefineChartData(a,e,n={}){a.topSites=n;const o=[],i=[];return Object.keys(n).forEach(c=>{const p=n[c];p.forEach(r=>{var h,m,u,g;r.name=(null===(h=this.siteObj[r.site_id])||void 0===h?void 0:h.name)||"",void 0===(null===(m=this.siteObj[r.site_id])||void 0===m?void 0:m.name)&&(r.name=void 0===(null===(u=this.deletedSiteObj[r.site_id])||void 0===u?void 0:u.name)?"Unknown(Deleted Site)":(null===(g=this.deletedSiteObj[r.site_id])||void 0===g?void 0:g.name)+"(Deleted Site)")}),o.push({timestamp:parseInt(c),sites:p})}),Object.keys(e).forEach(c=>{i.push({timestamp:parseInt(c),count:parseInt(e[c])})}),a._topSites=o,i}parseSiteDisconnects(a=null){if(!a)return;const e=this.healthData.siteDisconnects||{},n=a.brigde_offline_count||{},o=a.brigde_offline_count_top_site||{},i=a.camera_offline_count||{},s=a.camera_offline_count_top_site||{},d=[],c=Object.keys(n),p=Object.keys(i);c.forEach(r=>{d.push({timestamp:parseInt(r),count:parseInt(n[r])})}),p.forEach(r=>{d.push({timestamp:parseInt(r),count:parseInt(i[r])})}),this.calcSiteDisconnectInfo(o,s,e),this.parseHealthStatistics("Site Disconnects",e,d)}calcSiteDisconnectInfo(a,e,n){const o=Object.keys(a),i=Object.keys(e);let s=o.concat(i);s=s.filter((p,r)=>s.indexOf(p)===r);const d={},c=[];return s.forEach((p,r)=>{const h=[],m=Z.cloneDeep(a[p])||[],u=Z.cloneDeep(e[p])||[];m.forEach(g=>{var f,_,x,C;g.name=(null===(f=this.siteObj[g.site_id])||void 0===f?void 0:f.name)||"",void 0===(null===(_=this.siteObj[g.site_id])||void 0===_?void 0:_.name)&&(g.name=void 0===(null===(x=this.deletedSiteObj[g.site_id])||void 0===x?void 0:x.name)?"Unknown(Deleted Site)":(null===(C=this.deletedSiteObj[g.site_id])||void 0===C?void 0:C.name)+"(Deleted Site)"),h.push(Z.cloneDeep(g))}),u.forEach(g=>{var f,_,x,C;g.name=(null===(f=this.siteObj[g.site_id])||void 0===f?void 0:f.name)||"",void 0===(null===(_=this.siteObj[g.site_id])||void 0===_?void 0:_.name)&&(g.name=void 0===(null===(x=this.deletedSiteObj[g.site_id])||void 0===x?void 0:x.name)?"Unknown(Deleted Site)":(null===(C=this.deletedSiteObj[g.site_id])||void 0===C?void 0:C.name)+"(Deleted Site)");const D=h.find(A=>A.site_id===g.site_id);D?D.value=parseInt(D.value+"")+parseInt(g.value+""):h.push(Z.cloneDeep(g))}),d[p]=Z.cloneDeep(h),c.push({timestamp:p,sites:h})}),n.topSites=d,n._topSites=c,c}parseBridgeDisconnects(a=null){if(!a)return;const e=this.healthData.bridgeDisconnects,i=this.parseRefineChartData(e,a.brigde_offline_count||{},a.brigde_offline_count_top_site||{});this.parseHealthStatistics("Bridge Disconnects",e,i)}parseCameraDisconnects(a=null){if(!a)return;const e=this.healthData.cameraDisconnects,i=this.parseRefineChartData(e,a.camera_offline_count||{},a.camera_offline_count_top_site||{});this.parseHealthStatistics("Camera Disconnects",e,i)}parseHealthStatistics(a,e,n){e.isLoading=!0;const o=e.chartData;let i=b()().unix();const s=b()().subtract(1,"days").startOf("hour"),d=b()().subtract(7,"days").startOf("day"),c=b()().subtract(30,"days").startOf("day"),p=b()().startOf("month"),r=b()().subtract(1,"months").startOf("month");let h=s,m=0;"Last 24 Hours"===e.range?h=s:"Last 7 Days"===e.range?h=d:"Last 30 Days"===e.range?h=c:"Current Month"===e.range?(h=p,i=b()().endOf("month").unix(),m=b()().daysInMonth()):"Previous Month"===e.range&&(h=r,i=b()().subtract(1,"months").endOf("month").unix(),m=b()().subtract(1,"months").daysInMonth());const u=h.unix(),g=this.timeRangeInfo[e.range],f=m||g.timeTicks,_=g.timeGap,x=e._topSites||[];setTimeout(()=>{o.data=this.calcChartTime(n,u,f,_),e.max=Math.max(...o.data),e.topSites=this.calcTopSites(x,u,f,_),e.count=this.numberWithCommas(o.data.reduce((C,D)=>C+D,0)),this.parseChartData(a,o.data,h,i,e,_,f),e.updates+=1,e.isLoading=!1},100)}modalEvent(a){}parseSiteInfo(){this.statisticsService.getSiteInfo(this.me.dealer_id,this.wcsData.isWCS?this.statisticsAPIInfo.subDealerId:null).subscribe(n=>{const o=n.devices||[],i=n.sites||[],s=n.deleted_sites||[];this.audios=n.ipspeakers||[],this.sites=i,this.deletedSites=s,i.forEach(c=>{this.siteObj[c.site_id]=c}),s.forEach(c=>{this.deletedSiteObj[c.site_id]=c}),this.parseDevices(o),this.parseOfflineDevices(i),this.parseFwBridgeCount(o),this.parseOfflineISP(n),this.parseOfflineZipcode(n),this.fetchAlarmStatistics()})}parseNewSites(a){this.data.newSites.count=this.numberWithCommas(a.length)}parseDevices(a){this.devices=a,this.online_devices=a.filter(i=>i.is_online&&this.siteObj[i.site_id].is_activated);const e=a.filter(i=>11===i.type&&this.siteObj[i.site_id].is_activated),n=a.filter(i=>12===i.type&&this.siteObj[i.site_id].is_activated),o=this.audios;this.totalOnlineBridge=this.online_devices.filter(i=>11===i.type).length,this.totalOnlineCamera=this.online_devices.filter(i=>12===i.type||10===i.type).length,this.totalOnlineAudios=this.audios.filter(i=>i.is_online).length,this.offline_devices=a.filter(i=>!i.is_online&&this.siteObj[i.site_id].is_activated),this.offlineAudios=this.audios.filter(i=>!i.is_online&&this.siteObj[i.site_id].is_activated),this.totalOfflineBridge=this.offline_devices.filter(i=>11===i.type).length,this.totalOfflineCamera=this.offline_devices.filter(i=>12===i.type||10===i.type).length,this.totalOfflineAudios=this.offlineAudios.length,this.notregistered_devices=a.filter(i=>!i.is_registered&&this.siteObj[i.site_id].is_activated),this.totalOnlineDevice=this.totalDevice-this.offline_devices.length-this.notregistered_devices.length,this.filtered_sites=this.offlineSites,this.isEnableDeviceChart=!1,this.isReadySites=!0,this.healthData.bridges.total=e.length,this.healthData.cameras.total=n.length,this.healthData.audios.total=o.length,setTimeout(()=>{this.isEnableDeviceChart=!0},1e3)}parseOfflineDevices(a){a.filter(r=>r.is_activated);const n=[];this.devices.forEach(r=>{const h=this.siteObj[r.site_id];h&&(n.find(m=>m.site_id===h.site_id)||n.push(h))}),this.audios.forEach(r=>{const h=this.siteObj[r.site_id];h&&(n.find(m=>m.site_id===h.site_id)||n.push(h))});const i=n.filter(r=>r.is_activated).length;let d=this.offline_devices.concat(this.offlineAudios).map(r=>r.site_id);d=Array.from(new Set(d)),this.offlineSites=d;const p=i-d.length;this.healthData.sites.total=i,this.healthData.sites.offlineSites.list=d,this.healthData.sites.offlineSites.count=this.numberWithCommas(d.length),this.healthData.sites.onlineSites.count=this.numberWithCommas(p),this.healthData.sites.total>0&&(this.healthData.sites.offlineSites.percent=parseInt(this.healthData.sites.offlineSites.count/this.healthData.sites.total*100+"")||0,this.healthData.sites.onlineSites.percent=100-this.healthData.sites.offlineSites.percent||0),this.healthData.bridges.onlineBridges.count=this.totalOnlineBridge,this.healthData.bridges.offlineBridges.count=this.totalOfflineBridge,this.healthData.cameras.onlineCameras.count=this.totalOnlineCamera,this.healthData.cameras.offlineCameras.count=this.totalOfflineCamera,this.healthData.audios.onlineAudios.count=this.totalOnlineAudios,this.healthData.audios.offlineAudios.count=this.totalOfflineAudios,this.healthData.bridges.total>0&&(this.healthData.bridges.onlineBridges.percent=parseInt(this.healthData.bridges.onlineBridges.count/this.healthData.bridges.total*100+"")||0,this.healthData.bridges.offlineBridges.percent=100-this.healthData.bridges.onlineBridges.percent||0),this.healthData.cameras.total>0&&(this.healthData.cameras.onlineCameras.percent=parseInt(this.healthData.cameras.onlineCameras.count/this.healthData.cameras.total*100+"")||0,this.healthData.cameras.offlineCameras.percent=100-this.healthData.cameras.onlineCameras.percent||0),this.healthData.audios.total>0&&(this.healthData.audios.onlineAudios.percent=parseInt(this.healthData.audios.onlineAudios.count/this.healthData.audios.total*100+"")||0,this.healthData.audios.offlineAudios.percent=100-this.healthData.audios.onlineAudios.percent||0)}parseOfflineISP(a){const n=a.devices||[],o=(a.sites||[]).filter(h=>{const u=!!n.filter(g=>g.site_id===h.site_id).length;return h.is_activated&&u}),s=o.filter(h=>{const m=n.filter(_=>_.site_id===h.site_id);return m.length===m.filter(_=>0===_.is_online).length}).map(h=>h.site_id);this.healthData.offlineISP.status=0;let d=[],c=[],p=[];s.forEach(h=>{const m=this.siteObj[h],u=d.find(_=>_.fullName===m.isp_name),f=o.filter(_=>_.isp_name===m.isp_name).length;if(u)u.count+=1,u.offlinePercentage=(u.count/u.totalISP*100).toFixed(1);else{let _="";_=m.isp_asname?m.isp_asname:m.isp_name,_=m.isp_name,d.push({name:_,fullName:m.isp_name,count:1,totalISP:f,offlinePercentage:(1/f*100).toFixed(1)})}}),d=d.sort((h,m)=>parseFloat(h.offlinePercentage)-parseFloat(m.offlinePercentage)).reverse(),c=d.map(h=>h.name),p=d.map(h=>h.count);const r=[];if(c.length>4){const h=c.slice(4),m=p.slice(4),u=m.reduce((g,f)=>g+f,0);c=c.slice(0,4),p=p.slice(0,4),c.push("Others"),p.push(u),h.forEach((g,f)=>{r.push({name:g,count:m[f]})})}this.healthData.offlineISP.data=d,this.healthData.offlineISP.chartData.data=p,this.healthData.offlineISP.chartData.labels=c,this.healthData.offlineISP.chartData.etcs=r,this.healthData.offlineISP.updates+=1,setTimeout(()=>{this.healthData.offlineISP.status=1},100)}parseOfflineZipcode(a){const e=a.devices,o=a.sites.filter(c=>{const r=!!e.filter(h=>h.site_id===c.site_id).length;return c.is_activated&&r}),i=o.filter(c=>{const p=e.filter(u=>u.site_id===c.site_id);return p.length===p.filter(u=>0===u.is_online).length});console.log("offlineSites",i);const s=i.map(c=>c.site_id);let d=[];s.forEach(c=>{const p=this.siteObj[c],r=p.zipcode||p.isp_zipcode,h=d.find(g=>g.zipCode===r),u=o.filter(g=>g.zipcode===r).length||1;h?(h.count+=1,h.offlinePercentage=(h.count/u*100).toFixed(1)):d.push({zipCode:r||"Unknown",totalZipcode:u,count:1,offlinePercentage:(1/u*100).toFixed(1)})}),d=d.sort((c,p)=>parseFloat(c.offlinePercentage)-parseFloat(p.offlinePercentage)).reverse(),this.healthData.offlineZipCodes.data=d,this.healthData.offlineZipCodes.status=1}parseFwBridgeCount(a){this.healthData.fwBridge.status=0;const n=a.filter(c=>11===c.type).filter(c=>this.siteObj[c.site_id].is_activated);let o=[],i=[],s=[];n.forEach(c=>{let p=this.parseBridgeVersion(c),r="FW "+p;""===p&&(r="Unknown");const h=o.findIndex(m=>m.name===r);-1===h?o.push({name:r,count:1,version:p}):o[h].count+=1}),o=o.sort((c,p)=>c.version.localeCompare(p.version,void 0,{numeric:!0})).reverse(),i=o.map(c=>c.name),s=o.map(c=>c.count);const d=[];if(i.length>4){const c=i.slice(4),p=s.slice(4),r=p.reduce((h,m)=>h+m,0);i=i.slice(0,4),s=s.slice(0,4),i.push("Others"),s.push(r),c.forEach((h,m)=>{d.push({name:h,count:p[m]})})}this.healthData.fwBridge.chartData.data=s,this.healthData.fwBridge.chartData.labels=i,this.healthData.fwBridge.chartData.etcs=d,this.healthData.fwBridge.updates+=1,setTimeout(()=>{this.healthData.fwBridge.status=1},100)}parseBridgeVersion(a){let e={},n="";try{e=JSON.parse(a.fw_ver)||{}}catch(o){}return n=e.bridge||"",n=n?n.split(".").slice(0,2).join("."):"",n}setFilter(a=null){let e=[],n=[],o="";const i=this.statisticsAPIInfo.subDealerId;return a&&e.push(`device.type,${a},eq`),i&&e.push(`device.dealer_id,${i},eq`),n.push("device.device_id"),n.push("device.site_id"),n.push("device.type"),n.push("device_group.group_id"),n.push("device.mac"),n.push("device.name"),n.push("device.model"),n.push("device.is_online"),n.push("device.is_registered"),n.push("device.offline_timestamp"),n.push("device.is_privacy"),n.push("device.firmware_version"),o+="fields=",n.forEach(s=>{o+=`${s},`}),o=o.slice(0,-1),o}onChartHover(a,e){e.isHovered=!0,e.hoverLabel=this.numberWithCommas(a),"time"===e.labelType&&(e.hoverLabel=this.parseTimeFormat(a))}onChartMouseOut(a){a.isHovered=!1,a.hoverLabel=""}getOfflineTimeString(a){const e=this.commonService.getIntuitiveTimeStamp(a.offline_timestamp);a.statusSubInfo=`(${e})`}gotoSiteDevice(a){this.helper.router.navigate_to("/customers",{id:a.site_id,device_id:a.device_id})}gotoSite(a){this.helper.router.navigate_to("/customers",{id:a.site_id})}goToNewSiteFilter(){this.helper.router.navigate_to("/customers",{filter:"new_site"})}goToBridgeStatus(){this.helper.router.navigate_to("/reports/bridge-status")}goToSiteHealth(){this.helper.router.navigate_to("/reports/site-health")}changeAlarmEventTimeRange(a){const e=this.alarmData.timeData,n=this.timeRangeInfo[a];e.range!==a&&(e.range=n.label,e.rangeIdx=n.idx,this.fetchStatisticsDealer("alarm"),this.alarmData.dropdown.isShow=!1)}changeMonitoringTimeRange(a){const e=this.monitoringData.timeData,n=Z.cloneDeep(this.timeRangeInfo[a]);e.range!==a&&(e.range=n.label,e.rangeIdx=n.idx,this.fetchMonitoringStatistics(),this.monitoringData.dropdown.isShow=!1)}onMouseOver(){}parseTimeFormat(a){let e=Math.round(a),n=Math.floor(e/3600),o=Math.floor((e-3600*n)/60),i=e-3600*n-60*o;i<10&&(i="0"+i),o<10&&(o="0"+o),n<10&&(n="0"+n);let s=`${i}s`;return o>0&&(s=`${o}m ${i}s`),n>0&&(s=`${n}h ${o}m`),s}confirmDialog(a="",e="",n="done",o="green"){this.m_warning.data={header:a,contents:`\n <p>${e}</b></p>\n `,submit_btn:"OK",submit_class:["button-primary"],icon:n,isConfirm:!0,color:o},this.m_warning.data.submit_func=()=>{},this.m_warning.open()}errorDialog(a,e){let n="failed.";a.error&&a.error.message&&(n=a.error.message),a._body&&(n=JSON.parse(a._body).message),setTimeout(()=>{this.confirmDialog(e,n,"warning","orange")},200),this.isLoading=!1,this.isEnableDeviceChart=!0,this.isReadyActivity=!0,this.isReadyOrders=!0,this.isReadySites=!0}numberWithCommas(a){return a?a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):"0"}}return l.\u0275fac=function(a){return new(a||l)(t.Y36(G.f),t.Y36(V.X),t.Y36(W.v),t.Y36($.f),t.Y36(X._),t.Y36(K.W))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-dashboard"]],viewQuery:function(a,e){if(1&a&&(t.Gf(nt,5),t.Gf(ot,5),t.Gf(it,5),t.Gf(st,5),t.Gf(rt,5),t.Gf(lt,5),t.Gf(dt,5),t.Gf(ct,5),t.Gf(gt,5),t.Gf(pt,5)),2&a){let n;t.iGM(n=t.CRH())&&(e.totalSiteDropdown=n.first),t.iGM(n=t.CRH())&&(e.totalBridgeDropdown=n.first),t.iGM(n=t.CRH())&&(e.totalCameraDropdown=n.first),t.iGM(n=t.CRH())&&(e.newSitesDropdown=n.first),t.iGM(n=t.CRH())&&(e.siteDisconnectsDropdown=n.first),t.iGM(n=t.CRH())&&(e.bridgeDisconnectsDropdown=n.first),t.iGM(n=t.CRH())&&(e.cameraDisconnectsDropdown=n.first),t.iGM(n=t.CRH())&&(e.alarmDropdown=n.first),t.iGM(n=t.CRH())&&(e.monitoringDropdown=n.first),t.iGM(n=t.CRH())&&(e.wcsDropdown=n.first)}},hostBindings:function(a,e){1&a&&t.NdJ("mousedown",function(o){return e.onGlobalClick(o)},!1,t.evT)},decls:556,vars:291,consts:[[1,"page-layout",2,"overflow-x","hidden","overflow-y","overlay"],["class","loader absolute",4,"ngIf"],["id","a20001",1,"dashboard-layout"],["class","dashboard-widget wcs",4,"ngIf"],[1,"dashboard-widget"],[1,"dashboard-widget-title"],[1,"flex"],[1,"mr-5"],[2,"display","flex"],[1,"tooltip-content","v-center"],[1,"tooltip-tag","pointer"],[1,"tooltip"],[1,"tooltip-item"],[1,"tooltip-tag"],[1,"tooltip-tag","tag-red"],[1,"tooltip-tag","tag-green"],[1,"tooltip-row"],[1,"dashboard-widget-contents","flex-row"],[1,"dashboard-widget-contents-box"],[1,"dashboard-widget-contents-box-title"],[1,"dashboard-widget-contents-box-count"],[1,"dashboard-widget-contents-box-range"],[1,"nav"],[1,"dropdown-area"],["totalSiteDropdown",""],[1,"dropdown-inner-label","flex-row","between",3,"click"],[1,"flex","align-center","ml-4"],[1,"transition",3,"icon","size","color"],["class","dropdown-box top-30 left left-margin-50",4,"ngIf"],[3,"active","data","width","chartType","rangeLabel","updates","onHoverEvent","mouseout"],["totalBridgeDropdown",""],["totalCameraDropdown",""],["newSitesDropdown",""],[1,"flex-row","link","mt-5","goto-txt-button",3,"click"],[1,"dashboard-widget-contents","flex-column","flex-wrap"],[1,"flex-row","flex-wrap"],[1,"dashboard-widget-contents-box","flex-group-3","pb-10"],[1,"dashboard-widget-contents-box-title","between"],[1,"pointer",3,"icon","size","color"],[3,"icon","size","color"],[1,"flex-row"],[1,"dashboard-widget-contents-box-count","danger"],[1,"dashboard-widget-contents-box-count","divider"],[1,"dashboard-widget-contents-box-count","primary"],[1,"dashboard-widget-contents-box-sub-info"],[1,"dashboard-widget-contents-box-total-box"],[1,"dashboard-widget-contents-box-total-box-offline"],[1,"dashboard-widget-contents-box-total-box-online"],[1,"dashboard-widget-contents-box","flex-group-3"],[1,"dashboard-widget-contents-box-title","mb-20"],[2,"max-height","150px","overflow","overlay"],[1,"dashboard-widget-contents-box-table"],["width","52%"],["width","27%"],["width","21%"],[1,"dashboard-widget-contents-box-table-header"],[1,"dashboard-widget-contents-box-table-header-item"],[1,"dashboard-widget-contents-box-table-body"],[4,"ngFor","ngForOf"],[1,"dashboard-widget-contents-box-title","mb-20","between"],[3,"active","data","width","chartType","updates"],["siteDisconnectsDropdown",""],[3,"active","data","width","chartType","annotation","rangeLabel","updates","onHoverEvent","mouseout"],["bridgeDisconnectsDropdown",""],[3,"active","data","width","chartType","topSites","annotation","updates","rangeLabel","onHoverEvent","mouseout"],["cameraDisconnectsDropdown",""],[1,"dashboard-widget-title","flex-row","between"],[1,"flex","align-center"],[1,"flex","ml-5"],["monitoringDropdown",""],[1,"dropdown-label","flex-row","between",3,"click"],["class","dropdown-box",4,"ngIf"],[1,"dashboard-widget-contents","flex-row","flex-wrap"],[1,"chart-box",2,"min-height","120px"],[3,"active","data","width","height","chartType","topSites","annotation","updates","rangeLabel","onHoverEvent","mouseout"],[1,"dashboard-widget-contents-box-time-range"],[1,"dashboard-widget-contents-box-time-stime"],[1,"dashboard-widget-contents-box-time-etime"],[4,"ngIf"],["class","disable-chart",4,"ngIf"],["alarmDropdown",""],[1,"chart-box"],[1,"dashboard-widget-contents-box","flex-group-3",2,"display","flex","flex-direction","column"],[3,"active","data","width","chartType","topSites","annotation","rangeLabel","updates","onHoverEvent","mouseout"],[3,"modal"],[1,"loader","absolute"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path"],[1,"dashboard-widget","wcs"],[1,"select-comp"],["wcsDropdown",""],[1,"row","cursor",2,"overflow","hidden",3,"click"],["class","select-list",4,"ngIf"],[1,"select-list"],["autocomplete","off","type","text","placeholder","Search",1,"list-search-input",3,"ngModel","ngModelChange","input"],[2,"max-height","260px","overflow-y","overlay"],["class","select-result has-child sub-dealer-container",3,"click",4,"ngFor","ngForOf"],["class","select-result",4,"ngIf"],[1,"select-result","has-child","sub-dealer-container",3,"click"],[1,"selectitem","sub-dealer"],[2,"width","25px"],[1,"sub-dealer-name"],["class","my-dealer-label",4,"ngIf"],[1,"mr-7"],[3,"icon","color","size"],[1,"my-dealer-label"],[1,"select-result"],[1,"selectitem",2,"cursor","initial","color","hsla(0,0%,0%,0.3)"],[1,"dropdown-box","top-30","left","left-margin-50"],[1,"dropdown-box-menu","w-250"],["class","dropdown-box-menu-item",3,"selected","click",4,"ngFor","ngForOf"],[1,"dropdown-box-menu-item",3,"click"],[1,"dropdown-box-menu-item-icon"],[3,"icon","size","color",4,"ngIf"],[1,"dashboard-widget-contents-box-table-body-item"],[1,"dropdown-box"],[1,"dropdown-box-menu"],[3,"active","data","width","height","chartType","updates","onReady"],[1,"disable-chart"]],template:function(a,e){1&a&&(t.TgZ(0,"div",0),t.YNc(1,ht,3,0,"div",1),t.TgZ(2,"div",2),t.YNc(3,vt,9,7,"div",3),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.TgZ(6,"div",6),t.TgZ(7,"div",7),t._uU(8,"Dealer Summary"),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"div",9),t.TgZ(11,"div",10),t._uU(12,"What data does it show?"),t.qZA(),t.TgZ(13,"div",11),t.TgZ(14,"div",12),t.TgZ(15,"div",13),t.TgZ(16,"span"),t._uU(17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"div",12),t.TgZ(19,"div",14),t._uU(20,"SHARED SITES NOT INCLUDED"),t.qZA(),t.qZA(),t.TgZ(21,"div",12),t.TgZ(22,"div",15),t._uU(23,"DEACTIVATED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(24,"div",12),t.TgZ(25,"div",16),t.TgZ(26,"span"),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",17),t.TgZ(29,"div",18),t.TgZ(30,"div",19),t._uU(31,"Total Sites"),t.qZA(),t.TgZ(32,"div",20),t._uU(33),t.qZA(),t.TgZ(34,"div",21),t.TgZ(35,"nav",22),t.TgZ(36,"ul",23,24),t.TgZ(38,"li"),t.TgZ(39,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Total Site")}),t.TgZ(40,"div"),t._uU(41),t.qZA(),t.TgZ(42,"div",26),t._UZ(43,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(44,Ct,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(45,"dashboard-chart",29),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.data.totalSites)})("mouseout",function(){return e.onChartMouseOut(e.data.totalSites)}),t.qZA(),t.qZA(),t.TgZ(46,"div",18),t.TgZ(47,"div",19),t._uU(48,"Total Bridges"),t.qZA(),t.TgZ(49,"div",20),t._uU(50),t.qZA(),t.TgZ(51,"div",21),t.TgZ(52,"nav",22),t.TgZ(53,"ul",23,30),t.TgZ(55,"li"),t.TgZ(56,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Total Bridge")}),t.TgZ(57,"div"),t._uU(58),t.qZA(),t.TgZ(59,"div",26),t._UZ(60,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(61,Tt,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(62,"dashboard-chart",29),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.data.totalBridges)})("mouseout",function(){return e.onChartMouseOut(e.data.totalBridges)}),t.qZA(),t.qZA(),t.TgZ(63,"div",18),t.TgZ(64,"div",19),t._uU(65,"Total Cameras"),t.qZA(),t.TgZ(66,"div",20),t._uU(67),t.qZA(),t.TgZ(68,"div",21),t.TgZ(69,"nav",22),t.TgZ(70,"ul",23,31),t.TgZ(72,"li"),t.TgZ(73,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Total Camera")}),t.TgZ(74,"div"),t._uU(75),t.qZA(),t.TgZ(76,"div",26),t._UZ(77,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(78,At,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(79,"dashboard-chart",29),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.data.totalCameras)})("mouseout",function(){return e.onChartMouseOut(e.data.totalCameras)}),t.qZA(),t.qZA(),t.TgZ(80,"div",18),t.TgZ(81,"div",19),t._uU(82,"New Sites"),t.qZA(),t.TgZ(83,"div",20),t._uU(84),t.qZA(),t.TgZ(85,"div",21),t.TgZ(86,"nav",22),t.TgZ(87,"ul",23,32),t.TgZ(89,"li"),t.TgZ(90,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("New Sites")}),t.TgZ(91,"div"),t._uU(92),t.qZA(),t.TgZ(93,"div",26),t._UZ(94,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(95,St,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(96,"dashboard-chart",29),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.data.newSites)})("mouseout",function(){return e.onChartMouseOut(e.data.newSites)}),t.qZA(),t.TgZ(97,"div",33),t.NdJ("click",function(){return e.goToNewSiteFilter()}),t.TgZ(98,"div"),t._uU(99,"New Sites"),t.qZA(),t.TgZ(100,"div"),t._UZ(101,"comp-icon",27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(102,"div",4),t.TgZ(103,"div",5),t.TgZ(104,"div",6),t.TgZ(105,"div",7),t._uU(106,"Device Health Information"),t.qZA(),t.TgZ(107,"div",8),t.TgZ(108,"div",9),t.TgZ(109,"div",10),t._uU(110,"What data does it show?"),t.qZA(),t.TgZ(111,"div",11),t.TgZ(112,"div",12),t.TgZ(113,"div",13),t.TgZ(114,"span"),t._uU(115),t.qZA(),t.qZA(),t.qZA(),t.TgZ(116,"div",12),t.TgZ(117,"div",15),t._uU(118,"SHARED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(119,"div",12),t.TgZ(120,"div",14),t._uU(121,"DEACTIVATED SITES NOT INCLUDED"),t.qZA(),t.qZA(),t.TgZ(122,"div",12),t.TgZ(123,"div",16),t.TgZ(124,"span"),t._uU(125),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(126,"div",34),t.TgZ(127,"div",35),t.TgZ(128,"div",36),t.TgZ(129,"div",37),t.TgZ(130,"div",6),t.TgZ(131,"div",7),t._uU(132,"Site Health - Trouble/Healthy"),t.qZA(),t.TgZ(133,"div",8),t.TgZ(134,"div",9),t._UZ(135,"comp-icon",38),t.TgZ(136,"div",11),t.TgZ(137,"div",12),t.TgZ(138,"div",16),t._uU(139,"Sites with one or more devices offline, are in the \u201cTrouble\u201d category. Sites with all devices online are in the \u201cHealthy\u201d category."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(140,"div",33),t.NdJ("click",function(){return e.goToSiteHealth()}),t.TgZ(141,"div"),t._uU(142,"Site Health Report"),t.qZA(),t.TgZ(143,"div"),t._UZ(144,"comp-icon",39),t.qZA(),t.qZA(),t.qZA(),t.TgZ(145,"div",40),t.TgZ(146,"div",41),t._uU(147),t.qZA(),t.TgZ(148,"div",42),t._uU(149,"/"),t.qZA(),t.TgZ(150,"div",43),t._uU(151),t.qZA(),t.qZA(),t.TgZ(152,"div",44),t._uU(153),t.qZA(),t.TgZ(154,"div",45),t._UZ(155,"div",46),t._UZ(156,"div",47),t.qZA(),t.qZA(),t.TgZ(157,"div",48),t.TgZ(158,"div",19),t._uU(159,"Offline/Online Site Bridges"),t.qZA(),t.TgZ(160,"div",40),t.TgZ(161,"div",41),t._uU(162),t.qZA(),t.TgZ(163,"div",42),t._uU(164,"/"),t.qZA(),t.TgZ(165,"div",43),t._uU(166),t.qZA(),t.qZA(),t.TgZ(167,"div",44),t._uU(168),t.qZA(),t.TgZ(169,"div",45),t._UZ(170,"div",46),t._UZ(171,"div",47),t.qZA(),t.qZA(),t.TgZ(172,"div",48),t.TgZ(173,"div",19),t._uU(174,"Offline/Online Site Cameras"),t.qZA(),t.TgZ(175,"div",40),t.TgZ(176,"div",41),t._uU(177),t.qZA(),t.TgZ(178,"div",42),t._uU(179,"/"),t.qZA(),t.TgZ(180,"div",43),t._uU(181),t.qZA(),t.qZA(),t.TgZ(182,"div",44),t._uU(183),t.qZA(),t.TgZ(184,"div",45),t._UZ(185,"div",46),t._UZ(186,"div",47),t.qZA(),t.qZA(),t.qZA(),t.TgZ(187,"div",35),t.TgZ(188,"div",48),t.TgZ(189,"div",49),t.TgZ(190,"div",7),t._uU(191,"ISP Trouble Report"),t.qZA(),t.TgZ(192,"div",8),t.TgZ(193,"div",9),t._UZ(194,"comp-icon",38),t.TgZ(195,"div",11),t.TgZ(196,"div",12),t.TgZ(197,"div",16),t._uU(198,"Only sites with all devices offline are displayed in this report. "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(199,"div",50),t.TgZ(200,"table",51),t.TgZ(201,"colgroup"),t._UZ(202,"col",52),t._UZ(203,"col",53),t._UZ(204,"col",54),t.qZA(),t.TgZ(205,"thead",55),t.TgZ(206,"tr"),t.TgZ(207,"th",56),t._uU(208,"ISP"),t.qZA(),t.TgZ(209,"th",56),t._uU(210,"OFFLINE SITES"),t.qZA(),t.TgZ(211,"th",56),t._uU(212,"OFFLINE %"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(213,"tbody",57),t.YNc(214,qt,7,5,"tr",58),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(215,"div",48),t.TgZ(216,"div",49),t.TgZ(217,"div",7),t._uU(218,"Zip Code Trouble Report"),t.qZA(),t.TgZ(219,"div",8),t.TgZ(220,"div",9),t._UZ(221,"comp-icon",38),t.TgZ(222,"div",11),t.TgZ(223,"div",12),t.TgZ(224,"div",16),t._uU(225,"Only sites with all devices offline are displayed in this report. When a site has a least one device online, it is not shown as a part of this Zip Code Trouble Report."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(226,"div",50),t.TgZ(227,"table",51),t.TgZ(228,"thead",55),t.TgZ(229,"tr"),t.TgZ(230,"th",56),t._uU(231,"ZIP CODE"),t.qZA(),t.TgZ(232,"th",56),t._uU(233,"OFFLINE SITES"),t.qZA(),t.TgZ(234,"th",56),t._uU(235,"OFFLINE %"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(236,"tbody",57),t.YNc(237,It,7,3,"tr",58),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(238,"div",48),t.TgZ(239,"div",59),t.TgZ(240,"div"),t._uU(241,"Total FW Versions"),t.qZA(),t.TgZ(242,"div",33),t.NdJ("click",function(){return e.goToBridgeStatus()}),t.TgZ(243,"div"),t._uU(244,"Bridge Status Report"),t.qZA(),t.TgZ(245,"div"),t._UZ(246,"comp-icon",39),t.qZA(),t.qZA(),t.qZA(),t._UZ(247,"dashboard-chart",60),t.qZA(),t.qZA(),t.TgZ(248,"div",35),t.TgZ(249,"div",48),t.TgZ(250,"div",19),t._uU(251,"Site Disconnections"),t.qZA(),t.TgZ(252,"div",20),t._uU(253),t.qZA(),t.TgZ(254,"div",21),t.TgZ(255,"nav",22),t.TgZ(256,"ul",23,61),t.TgZ(258,"li"),t.TgZ(259,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Site Disconnects")}),t.TgZ(260,"div"),t._uU(261),t.qZA(),t.TgZ(262,"div",26),t._UZ(263,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(264,Ut,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(265,"dashboard-chart",62),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.healthData.siteDisconnects)})("mouseout",function(){return e.onChartMouseOut(e.healthData.siteDisconnects)}),t.qZA(),t.qZA(),t.TgZ(266,"div",48),t.TgZ(267,"div",19),t._uU(268,"Bridge Disconnects"),t.qZA(),t.TgZ(269,"div",20),t._uU(270),t.qZA(),t.TgZ(271,"div",21),t.TgZ(272,"nav",22),t.TgZ(273,"ul",23,63),t.TgZ(275,"li"),t.TgZ(276,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Bridge Disconnects")}),t.TgZ(277,"div"),t._uU(278),t.qZA(),t.TgZ(279,"div",26),t._UZ(280,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(281,zt,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(282,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.healthData.bridgeDisconnects)})("mouseout",function(){return e.onChartMouseOut(e.healthData.bridgeDisconnects)}),t.qZA(),t.qZA(),t.TgZ(283,"div",48),t.TgZ(284,"div",19),t._uU(285,"Camera Disconnects"),t.qZA(),t.TgZ(286,"div",20),t._uU(287),t.qZA(),t.TgZ(288,"div",21),t.TgZ(289,"nav",22),t.TgZ(290,"ul",23,65),t.TgZ(292,"li"),t.TgZ(293,"div",25),t.NdJ("click",function(){return e.toggleDropDownMenu("Camera Disconnects")}),t.TgZ(294,"div"),t._uU(295),t.qZA(),t.TgZ(296,"div",26),t._UZ(297,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(298,Bt,3,1,"div",28),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(299,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.healthData.cameraDisconnects)})("mouseout",function(){return e.onChartMouseOut(e.healthData.cameraDisconnects)}),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(300,"div",4),t.TgZ(301,"div",66),t.TgZ(302,"div",67),t.TgZ(303,"div",7),t._uU(304,"Monitoring Portal Overview"),t.qZA(),t.TgZ(305,"div",8),t.TgZ(306,"div",9),t._UZ(307,"comp-icon",38),t.TgZ(308,"div",11),t.TgZ(309,"div",12),t.TgZ(310,"div",16),t._uU(311,"The statics below represent the accumulated total of the various conditions described in each chart during the selected time frame. When hovering over the graph only the top 10 site statics are displayed for the specific moment. For more detailed reporting, select the graph analytics. "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(312,"div",68),t.TgZ(313,"div",9),t.TgZ(314,"div",10),t._uU(315,"What data does it show?"),t.qZA(),t.TgZ(316,"div",11),t.TgZ(317,"div",12),t.TgZ(318,"div",13),t.TgZ(319,"span"),t._uU(320),t.qZA(),t.qZA(),t.qZA(),t.TgZ(321,"div",12),t.TgZ(322,"div",15),t._uU(323,"SHARED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(324,"div",12),t.TgZ(325,"div",15),t._uU(326,"DEACTIVATED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(327,"div",12),t.TgZ(328,"div",16),t.TgZ(329,"span"),t._uU(330),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(331,"nav",22),t.TgZ(332,"ul",23,69),t.TgZ(334,"li"),t.TgZ(335,"div",70),t.NdJ("click",function(){return e.toggleMonitoringDropDownMenu()}),t.TgZ(336,"div"),t._uU(337),t.qZA(),t.TgZ(338,"div",26),t._UZ(339,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(340,Yt,3,1,"div",71),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(341,"div",72),t.TgZ(342,"div",48),t.TgZ(343,"div",19),t.TgZ(344,"div",6),t.TgZ(345,"div",7),t._uU(346,"Monitoring portal opened events"),t.qZA(),t.TgZ(347,"div",8),t.TgZ(348,"div",9),t._UZ(349,"comp-icon",38),t.TgZ(350,"div",11),t.TgZ(351,"div",12),t.TgZ(352,"div",16),t._uU(353,"The accumulated number of times the CHeKT Monitoring Portal was opened by an agent for a site."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(354,"div",20),t._uU(355),t.qZA(),t.TgZ(356,"div",73),t.TgZ(357,"dashboard-chart",74),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.monitoringData.monitoringStat)})("mouseout",function(){return e.onChartMouseOut(e.monitoringData.monitoringStat)}),t.qZA(),t.qZA(),t.TgZ(358,"div",75),t.TgZ(359,"div",76),t._uU(360),t.qZA(),t.TgZ(361,"div",77),t._uU(362),t.qZA(),t.qZA(),t.qZA(),t.TgZ(363,"div",48),t.TgZ(364,"div",19),t.TgZ(365,"div",6),t.TgZ(366,"div",7),t._uU(367,"Monitoring portal open time"),t.qZA(),t.TgZ(368,"div",8),t.TgZ(369,"div",9),t._UZ(370,"comp-icon",38),t.TgZ(371,"div",11),t.TgZ(372,"div",12),t.TgZ(373,"div",16),t._uU(374,"The accumulated time that agents spent on a site viewing video through the CHeKT Monitoring Portal."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(375,Qt,5,7,"div",78),t.YNc(376,Ft,2,0,"div",79),t.qZA(),t.TgZ(377,"div",48),t.TgZ(378,"div",19),t.TgZ(379,"div",6),t.TgZ(380,"div",7),t._uU(381,"Monitoring portal open Average Event Time"),t.qZA(),t.TgZ(382,"div",8),t.TgZ(383,"div",9),t._UZ(384,"comp-icon",38),t.TgZ(385,"div",11),t.TgZ(386,"div",12),t.TgZ(387,"div",16),t._uU(388,"The average amount of time spent in the CHeKT Monitoring Portal. Total Time/Total Open Events"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(389,Gt,5,7,"div",78),t.YNc(390,Vt,2,0,"div",79),t.qZA(),t.qZA(),t.qZA(),t.TgZ(391,"div",4),t.TgZ(392,"div",66),t.TgZ(393,"div",67),t.TgZ(394,"div",7),t._uU(395,"Alarm Processing Details"),t.qZA(),t.TgZ(396,"div",8),t.TgZ(397,"div",9),t._UZ(398,"comp-icon",38),t.TgZ(399,"div",11),t.TgZ(400,"div",12),t.TgZ(401,"div",16),t._uU(402,"The statics below represent the accumulated total of the various conditions described in each chart during the selected time frame. When hovering over the graph only the top 10 site statics are displayed for the specific moment. For more detailed reporting, select the graph analytics. "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(403,"div",68),t.TgZ(404,"div",9),t.TgZ(405,"div",10),t._uU(406,"What data does it show?"),t.qZA(),t.TgZ(407,"div",11),t.TgZ(408,"div",12),t.TgZ(409,"div",13),t.TgZ(410,"span"),t._uU(411),t.qZA(),t.qZA(),t.qZA(),t.TgZ(412,"div",12),t.TgZ(413,"div",15),t._uU(414,"SHARED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(415,"div",12),t.TgZ(416,"div",15),t._uU(417,"DEACTIVATED SITES INCLUDED"),t.qZA(),t.qZA(),t.TgZ(418,"div",12),t.TgZ(419,"div",16),t.TgZ(420,"span"),t._uU(421),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(422,"nav",22),t.TgZ(423,"ul",23,80),t.TgZ(425,"li"),t.TgZ(426,"div",70),t.NdJ("click",function(){return e.toggleAlarmDropDownMenu()}),t.TgZ(427,"div"),t._uU(428),t.qZA(),t.TgZ(429,"div",26),t._UZ(430,"comp-icon",27),t.qZA(),t.qZA(),t.YNc(431,Xt,3,1,"div",71),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(432,"div",72),t.TgZ(433,"div",48),t.TgZ(434,"div",19),t.TgZ(435,"div",6),t.TgZ(436,"div",7),t._uU(437,"Video Verification Dispatch"),t.qZA(),t.TgZ(438,"div",8),t.TgZ(439,"div",9),t._UZ(440,"comp-icon",38),t.TgZ(441,"div",11),t.TgZ(442,"div",12),t.TgZ(443,"div",16),t._uU(444,"The number of times a site contact has requested a dispatch using the CHeKT SMSVerify Video link."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(445,"div",20),t._uU(446),t.qZA(),t.TgZ(447,"div",81),t.TgZ(448,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.alarmData.verificationDispatchs)})("mouseout",function(){return e.onChartMouseOut(e.alarmData.verificationDispatchs)}),t.qZA(),t.qZA(),t.TgZ(449,"div",75),t.TgZ(450,"div",76),t._uU(451),t.qZA(),t.TgZ(452,"div",77),t._uU(453),t.qZA(),t.qZA(),t.qZA(),t.TgZ(454,"div",48),t.TgZ(455,"div",19),t.TgZ(456,"div",6),t.TgZ(457,"div",7),t._uU(458,"Video Verification Cancels"),t.qZA(),t.TgZ(459,"div",8),t.TgZ(460,"div",9),t._UZ(461,"comp-icon",38),t.TgZ(462,"div",11),t.TgZ(463,"div",12),t.TgZ(464,"div",16),t._uU(465,"The number of times a site contact has requested a cancel/disregard on a video alarm using the CHeKT SMSVerify Video link."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(466,"div",20),t._uU(467),t.qZA(),t.TgZ(468,"div",81),t.TgZ(469,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.alarmData.verificationCancels)})("mouseout",function(){return e.onChartMouseOut(e.alarmData.verificationCancels)}),t.qZA(),t.qZA(),t.TgZ(470,"div",75),t.TgZ(471,"div",76),t._uU(472),t.qZA(),t.TgZ(473,"div",77),t._uU(474),t.qZA(),t.qZA(),t.qZA(),t.TgZ(475,"div",48),t.TgZ(476,"div",19),t.TgZ(477,"div",6),t.TgZ(478,"div",7),t._uU(479,"Video Verification No Response"),t.qZA(),t.TgZ(480,"div",8),t.TgZ(481,"div",9),t._UZ(482,"comp-icon",38),t.TgZ(483,"div",11),t.TgZ(484,"div",12),t.TgZ(485,"div",16),t._uU(486,"The number of times site contacts did not respond to a video alarm using the CHeKT SMSVerify Video link."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(487,"div",20),t._uU(488),t.qZA(),t.TgZ(489,"div",81),t.TgZ(490,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.alarmData.verificationNoResponses)})("mouseout",function(){return e.onChartMouseOut(e.alarmData.verificationNoResponses)}),t.qZA(),t.qZA(),t.TgZ(491,"div",75),t.TgZ(492,"div",76),t._uU(493),t.qZA(),t.TgZ(494,"div",77),t._uU(495),t.qZA(),t.qZA(),t.qZA(),t.TgZ(496,"div",48),t.TgZ(497,"div",19),t.TgZ(498,"div",6),t.TgZ(499,"div",7),t._uU(500,"Video Events Created"),t.qZA(),t.TgZ(501,"div",8),t.TgZ(502,"div",9),t._UZ(503,"comp-icon",38),t.TgZ(504,"div",11),t.TgZ(505,"div",12),t.TgZ(506,"div",16),t._uU(507,"The total number of video events created on a site from (DI &OE) alarm triggers, on-demand video requests or relay event videos."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(508,"div",20),t._uU(509),t.qZA(),t.TgZ(510,"div",81),t.TgZ(511,"dashboard-chart",64),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.alarmData.videoEvents)})("mouseout",function(){return e.onChartMouseOut(e.alarmData.videoEvents)}),t.qZA(),t.qZA(),t.TgZ(512,"div",75),t.TgZ(513,"div",76),t._uU(514),t.qZA(),t.TgZ(515,"div",77),t._uU(516),t.qZA(),t.qZA(),t.qZA(),t.TgZ(517,"div",82),t.TgZ(518,"div",19),t.TgZ(519,"div",6),t.TgZ(520,"div",7),t._uU(521,"Alarm Signals"),t.qZA(),t.TgZ(522,"div",8),t.TgZ(523,"div",9),t._UZ(524,"comp-icon",38),t.TgZ(525,"div",11),t.TgZ(526,"div",12),t.TgZ(527,"div",16),t._uU(528,"The total number of alarm signals transmitted from a site from either DI or OE alarm triggers."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(529,"div",20),t.YNc(530,Kt,2,1,"span",78),t.YNc(531,te,2,0,"span",78),t.qZA(),t.YNc(532,ee,8,10,"div",78),t.YNc(533,ae,2,0,"div",79),t.qZA(),t.TgZ(534,"div",48),t.TgZ(535,"div",19),t.TgZ(536,"div",6),t.TgZ(537,"div",7),t._uU(538,"Zone Bypass Events"),t.qZA(),t.TgZ(539,"div",8),t.TgZ(540,"div",9),t._UZ(541,"comp-icon",38),t.TgZ(542,"div",11),t.TgZ(543,"div",12),t.TgZ(544,"div",16),t._uU(545,"The total number of zone bypass events resulting from an automatic swinger bypass or manual user bypass."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(546,"div",20),t._uU(547),t.qZA(),t.TgZ(548,"div",81),t.TgZ(549,"dashboard-chart",83),t.NdJ("onHoverEvent",function(o){return e.onChartHover(o,e.alarmData.zoneBypassEvents)})("mouseout",function(){return e.onChartMouseOut(e.alarmData.zoneBypassEvents)}),t.qZA(),t.qZA(),t.TgZ(550,"div",75),t.TgZ(551,"div",76),t._uU(552),t.qZA(),t.TgZ(553,"div",77),t._uU(554),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t._UZ(555,"dealer-warning",84)),2&a&&(t.xp6(1),t.Q6J("ngIf",e.isLoading),t.xp6(2),t.Q6J("ngIf",2===e.me.type),t.xp6(14),t.Oqu(e.wcsData.dealerLabel),t.xp6(10),t.Oqu(e.wcsData.stateLabel),t.xp6(6),t.Oqu(e.data.totalSites.isHovered?e.data.totalSites.hoverLabel:e.data.totalSites.count),t.xp6(8),t.hij("Show ",e.data.totalSites.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.data.totalSites.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.data.totalSites.dropdown.isShow),t.xp6(1),t.Q6J("active",e.data.totalSites.status)("data",e.data.totalSites.chartData)("width",260)("chartType","line")("rangeLabel",e.data.totalSites.rangeLabel)("updates",e.data.totalSites.updates),t.xp6(5),t.Oqu(e.data.totalBridges.isHovered?e.data.totalBridges.hoverLabel:e.data.totalBridges.count),t.xp6(8),t.hij("Show ",e.data.totalBridges.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.data.totalBridges.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.data.totalBridges.dropdown.isShow),t.xp6(1),t.Q6J("active",e.data.totalBridges.status)("data",e.data.totalBridges.chartData)("width",260)("chartType","line")("rangeLabel",e.data.totalBridges.rangeLabel)("updates",e.data.totalBridges.updates),t.xp6(5),t.Oqu(e.data.totalCameras.isHovered?e.data.totalCameras.hoverLabel:e.data.totalCameras.count),t.xp6(8),t.hij("Show ",e.data.totalCameras.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.data.totalCameras.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.data.totalCameras.dropdown.isShow),t.xp6(1),t.Q6J("active",e.data.totalCameras.status)("data",e.data.totalCameras.chartData)("width",260)("chartType","line")("rangeLabel",e.data.totalCameras.rangeLabel)("updates",e.data.totalCameras.updates),t.xp6(5),t.Oqu(e.data.newSites.isHovered?e.data.newSites.hoverLabel:e.data.newSites.count),t.xp6(8),t.hij("Show ",e.data.newSites.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.data.newSites.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.data.newSites.dropdown.isShow),t.xp6(1),t.Q6J("active",e.data.newSites.status)("data",e.data.newSites.chartData)("width",260)("chartType","line")("rangeLabel",e.data.newSites.rangeLabel)("updates",e.data.newSites.updates),t.xp6(5),t.ekj("rotate-reverse",e.healthData.siteDisconnects.dropdown.isShow),t.Q6J("icon","arrow_forward_n")("size","14")("color","#2383e2"),t.xp6(14),t.Oqu(e.wcsData.dealerLabel),t.xp6(10),t.Oqu(e.wcsData.stateLabel),t.xp6(10),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(9),t.Q6J("icon","arrow_forward_n")("size","14")("color","#2383e2"),t.xp6(3),t.Oqu(e.healthData.sites.offlineSites.count),t.xp6(4),t.Oqu(e.healthData.sites.onlineSites.count),t.xp6(2),t.AsE("Total: ",e.healthData.sites.total," \u2022 ",e.healthData.sites.onlineSites.percent,"% Healthy"),t.xp6(2),t.Udp("width",e.healthData.sites.offlineSites.percent+"%"),t.xp6(1),t.Udp("width",e.healthData.sites.onlineSites.percent+"%"),t.xp6(6),t.Oqu(e.healthData.bridges.offlineBridges.count),t.xp6(4),t.Oqu(e.healthData.bridges.onlineBridges.count),t.xp6(2),t.AsE("Total Bridges: ",e.healthData.bridges.total," \u2022 ",e.healthData.bridges.onlineBridges.percent,"% Healthy"),t.xp6(2),t.Udp("width",e.healthData.bridges.offlineBridges.percent+"%"),t.xp6(1),t.Udp("width",e.healthData.bridges.onlineBridges.percent+"%"),t.xp6(6),t.Oqu(e.healthData.cameras.offlineCameras.count),t.xp6(4),t.Oqu(e.healthData.cameras.onlineCameras.count),t.xp6(2),t.AsE("Total Cameras: ",e.healthData.cameras.total," \u2022 ",e.healthData.cameras.onlineCameras.percent,"% Healthy"),t.xp6(2),t.Udp("width",e.healthData.cameras.offlineCameras.percent+"%"),t.xp6(1),t.Udp("width",e.healthData.cameras.onlineCameras.percent+"%"),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(20),t.Q6J("ngForOf",e.healthData.offlineISP.data),t.xp6(7),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(16),t.Q6J("ngForOf",e.healthData.offlineZipCodes.data),t.xp6(9),t.Q6J("icon","arrow_forward_n")("size","14")("color","#2383e2"),t.xp6(1),t.Q6J("active",e.healthData.fwBridge.status)("data",e.healthData.fwBridge.chartData)("width",260)("chartType","bar")("updates",e.healthData.fwBridge.updates),t.xp6(6),t.Oqu(e.healthData.siteDisconnects.isHovered?e.healthData.siteDisconnects.hoverLabel:e.healthData.siteDisconnects.count),t.xp6(8),t.hij("Show ",e.healthData.siteDisconnects.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.healthData.siteDisconnects.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.healthData.siteDisconnects.dropdown.isShow),t.xp6(1),t.Q6J("active",e.healthData.siteDisconnects.status)("data",e.healthData.siteDisconnects.chartData)("width",260)("chartType","line")("annotation",e.healthData.siteDisconnects.max)("rangeLabel",e.healthData.siteDisconnects.rangeLabel)("updates",e.healthData.siteDisconnects.updates),t.xp6(5),t.Oqu(e.healthData.bridgeDisconnects.isHovered?e.healthData.bridgeDisconnects.hoverLabel:e.healthData.bridgeDisconnects.count),t.xp6(8),t.hij("Show ",e.healthData.bridgeDisconnects.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.healthData.bridgeDisconnects.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.healthData.bridgeDisconnects.dropdown.isShow),t.xp6(1),t.Q6J("active",e.healthData.bridgeDisconnects.status)("data",e.healthData.bridgeDisconnects.chartData)("width",260)("chartType","line")("topSites",e.healthData.bridgeDisconnects.topSites)("annotation",e.healthData.bridgeDisconnects.max)("updates",e.healthData.bridgeDisconnects.updates)("rangeLabel",e.healthData.bridgeDisconnects.rangeLabel),t.xp6(5),t.Oqu(e.healthData.cameraDisconnects.isHovered?e.healthData.cameraDisconnects.hoverLabel:e.healthData.cameraDisconnects.count),t.xp6(8),t.hij("Show ",e.healthData.cameraDisconnects.range," Graph"),t.xp6(2),t.ekj("rotate-reverse",e.healthData.cameraDisconnects.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(216, 13%, 58%, 1)"),t.xp6(1),t.Q6J("ngIf",e.healthData.cameraDisconnects.dropdown.isShow),t.xp6(1),t.Q6J("active",e.healthData.cameraDisconnects.status)("data",e.healthData.cameraDisconnects.chartData)("width",260)("chartType","line")("topSites",e.healthData.cameraDisconnects.topSites)("annotation",e.healthData.cameraDisconnects.max)("updates",e.healthData.cameraDisconnects.updates)("rangeLabel",e.healthData.cameraDisconnects.rangeLabel),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(13),t.Oqu(e.wcsData.dealerLabel),t.xp6(10),t.Oqu(e.wcsData.stateLabel),t.xp6(7),t.Oqu(e.monitoringData.timeData.range),t.xp6(2),t.ekj("rotate-reverse",e.monitoringData.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(0, 0%, 0%, 1)"),t.xp6(1),t.Q6J("ngIf",e.monitoringData.dropdown.isShow),t.xp6(9),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.monitoringData.monitoringStat.isHovered?e.monitoringData.monitoringStat.hoverLabel:e.monitoringData.monitoringStat.count),t.xp6(2),t.Q6J("active",e.monitoringData.monitoringStat.status)("data",e.monitoringData.monitoringStat.chartData)("width",260)("height",120)("chartType","line")("topSites",e.monitoringData.monitoringStat.topSites)("annotation",e.monitoringData.monitoringStat.max)("updates",e.monitoringData.monitoringStat.updates)("rangeLabel",e.monitoringData.timeData.range),t.xp6(3),t.Oqu(e.monitoringData.monitoringStat.stime),t.xp6(2),t.Oqu(e.monitoringData.monitoringStat.etime),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(5),t.Q6J("ngIf",0!==e.monitoringData.monitoringTimeStat.chartData.topSites.length),t.xp6(1),t.Q6J("ngIf",0===e.monitoringData.monitoringTimeStat.chartData.topSites.length),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(5),t.Q6J("ngIf",0!==e.monitoringData.monitoringTimeAvgStat.chartData.topSites.length),t.xp6(1),t.Q6J("ngIf",0===e.monitoringData.monitoringTimeAvgStat.chartData.topSites.length),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(13),t.Oqu(e.wcsData.dealerLabel),t.xp6(10),t.Oqu(e.wcsData.stateLabel),t.xp6(7),t.Oqu(e.alarmData.timeData.range),t.xp6(2),t.ekj("rotate-reverse",e.alarmData.dropdown.isShow),t.Q6J("icon","expend_more")("size","16")("color","hsla(0, 0%, 0%, 1)"),t.xp6(1),t.Q6J("ngIf",e.alarmData.dropdown.isShow),t.xp6(9),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.alarmData.verificationDispatchs.isHovered?e.alarmData.verificationDispatchs.hoverLabel:e.alarmData.verificationDispatchs.count),t.xp6(2),t.Q6J("active",e.alarmData.verificationDispatchs.status)("data",e.alarmData.verificationDispatchs.chartData)("width",260)("chartType","line")("topSites",e.alarmData.verificationDispatchs.topSites)("annotation",e.alarmData.verificationDispatchs.max)("updates",e.alarmData.verificationDispatchs.updates)("rangeLabel",e.alarmData.timeData.range),t.xp6(3),t.Oqu(e.alarmData.verificationDispatchs.stime),t.xp6(2),t.Oqu(e.alarmData.verificationDispatchs.etime),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.alarmData.verificationCancels.isHovered?e.alarmData.verificationCancels.hoverLabel:e.alarmData.verificationCancels.count),t.xp6(2),t.Q6J("active",e.alarmData.verificationCancels.status)("data",e.alarmData.verificationCancels.chartData)("width",260)("chartType","line")("topSites",e.alarmData.verificationCancels.topSites)("annotation",e.alarmData.verificationCancels.max)("updates",e.alarmData.verificationCancels.updates)("rangeLabel",e.alarmData.timeData.range),t.xp6(3),t.Oqu(e.alarmData.verificationCancels.stime),t.xp6(2),t.Oqu(e.alarmData.verificationCancels.etime),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.alarmData.verificationNoResponses.isHovered?e.alarmData.verificationNoResponses.hoverLabel:e.alarmData.verificationNoResponses.count),t.xp6(2),t.Q6J("active",e.alarmData.verificationNoResponses.status)("data",e.alarmData.verificationNoResponses.chartData)("width",260)("chartType","line")("topSites",e.alarmData.verificationNoResponses.topSites)("annotation",e.alarmData.verificationNoResponses.max)("updates",e.alarmData.verificationNoResponses.updates)("rangeLabel",e.alarmData.timeData.range),t.xp6(3),t.Oqu(e.alarmData.verificationNoResponses.stime),t.xp6(2),t.Oqu(e.alarmData.verificationNoResponses.etime),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.alarmData.videoEvents.isHovered?e.alarmData.videoEvents.hoverLabel:e.alarmData.videoEvents.count),t.xp6(2),t.Q6J("active",e.alarmData.videoEvents.status)("data",e.alarmData.videoEvents.chartData)("width",260)("chartType","line")("topSites",e.alarmData.videoEvents.topSites)("annotation",e.alarmData.videoEvents.max)("updates",e.alarmData.videoEvents.updates)("rangeLabel",e.alarmData.timeData.range),t.xp6(3),t.hij("",e.alarmData.videoEvents.stime,"\xa0"),t.xp6(2),t.Oqu(e.alarmData.videoEvents.etime),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Q6J("ngIf",t.DdM(287,N).includes(e.wcsData.selectedState)),t.xp6(1),t.Q6J("ngIf",!t.DdM(288,N).includes(e.wcsData.selectedState)),t.xp6(1),t.Q6J("ngIf",t.DdM(289,N).includes(e.wcsData.selectedState)),t.xp6(1),t.Q6J("ngIf",!t.DdM(290,N).includes(e.wcsData.selectedState)),t.xp6(8),t.Q6J("icon","info")("size",14)("color","hsla(216, 13%, 58%, 0.6)"),t.xp6(6),t.Oqu(e.alarmData.zoneBypassEvents.isHovered?e.alarmData.zoneBypassEvents.hoverLabel:e.alarmData.zoneBypassEvents.count),t.xp6(2),t.Q6J("active",e.alarmData.zoneBypassEvents.status)("data",e.alarmData.zoneBypassEvents.chartData)("width",260)("chartType","line")("topSites",e.alarmData.zoneBypassEvents.topSites)("annotation",e.alarmData.zoneBypassEvents.max)("rangeLabel",e.alarmData.timeData.range)("updates",e.alarmData.zoneBypassEvents.updates),t.xp6(3),t.Oqu(e.alarmData.zoneBypassEvents.stime),t.xp6(2),t.Oqu(e.alarmData.zoneBypassEvents.etime),t.xp6(1),t.Q6J("modal",e.m_warning))},directives:[B.O5,tt.U,et.q,B.sg,at.a,R.Fj,R.JJ,R.On],styles:['.scroll-screen[_ngcontent-%COMP%]{flex:1;flex-direction:column;overflow-y:overlay;height:100%;position:relative;padding:7px;-webkit-user-select:none;user-select:none;display:flex;align-items:center}.row[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;overflow-y:overlay;transition:.5s}.col[_ngcontent-%COMP%]{flex-direction:column;display:flex;flex:1;height:100%}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{min-width:300px}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:only-child{min-width:600px}.customer-widget-area.deactivated[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{height:calc(100% - 43px)}.col[_ngcontent-%COMP%] .widget[_ngcontent-%COMP%]{min-width:300px}.sub-nav[_ngcontent-%COMP%]{position:relative;left:0px;transition:all ease-in-out .3s;min-width:250px;max-width:250px;flex:1;background:#fff;border-right:.5px solid #d7d7d7;display:flex;flex-direction:column;overflow-y:overlay;z-index:3}.sub-nav[_ngcontent-%COMP%]:focus{outline:none}.sub-nav[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;flex:initial;align-items:center}.sub-nav[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{overflow-y:overlay}.sub-nav[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{padding:6px 12px 6px 0;box-sizing:border-box;border:0;background-color:transparent;background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{margin-right:8px;color:#777;transition:.2s}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{cursor:pointer;color:#000}.sub-nav[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background-color:red;color:#fff;width:8px;height:14px;margin-left:8px;padding:2px 4px 2px 5px;border-radius:4px;font-size:12px}.sub-nav[_ngcontent-%COMP%] .plan-badge[_ngcontent-%COMP%]{background-color:red;width:6px;height:6px;margin-left:4px;border-radius:10px}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]{padding:24px 0 7px 20px;color:#2f96fb;font-size:14px;text-transform:uppercase}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]:first-child{padding:30px 0 7px 20px;color:#2f96fb;font-size:14px}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;align-items:center;color:#0009;cursor:pointer}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover.settings{background:transparent}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]{background:#dcf0fd!important;color:#000000de}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]:after{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .list-item-selected.settings[_ngcontent-%COMP%]{background:transparent!important;color:#000000de;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label[_ngcontent-%COMP%]{display:flex;font-size:14px;padding:7px 0 7px 15px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]{padding-left:16px;width:100%;margin:0 4px;border-radius:4px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]:hover{padding:8px 16px;background:#e8eaed}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]{width:100%;margin:0 4px;padding:8px 12px;border-radius:4px;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]:hover{padding:8px 12px;background:#dcf0fd}.sub-nav[_ngcontent-%COMP%] .select-mark[_ngcontent-%COMP%]{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .select-mark.settings[_ngcontent-%COMP%]{background-color:#2383e2;width:4px;min-height:30px;height:30px;border-radius:4px}.component-body[_ngcontent-%COMP%]{position:relative;flex:5;height:100%;flex-direction:column;display:flex;transition:all ease-in-out .3s}.component-body-no-data[_ngcontent-%COMP%]{flex:5;height:100%;flex-direction:column;align-items:center;justify-content:center;display:flex}.tab[_ngcontent-%COMP%]{height:60px;color:#888;background:#f7f7fc;box-shadow:0 4px 2px -2px #888;display:flex;align-items:center;z-index:1}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#2383e2;cursor:pointer}.tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#2383e2}.tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:0 32px;text-transform:capitalize;font-size:14px}.tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:4px;background:#2383e2}.plan-upgrade-badge[_ngcontent-%COMP%]{background:linear-gradient(90deg,#2A517E 17.88%,#1E88E5 69.03%);border-radius:10px;padding:2px 6px;margin-left:-8px;color:#fff;font-size:12px;font-weight:400;cursor:pointer}.customer-tab[_ngcontent-%COMP%]{color:#7a7a7a;background:#fff;border-bottom:1px solid rgba(0,0,0,.1);display:flex;align-items:center;z-index:1;font-weight:500;font-size:14px;flex-flow:wrap}.customer-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:50px;position:relative;cursor:pointer}.customer-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#1e88e5;font-weight:500}.customer-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.customer-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:8px 20px;text-transform:capitalize;font-size:14px;font-weight:400}.customer-tab[_ngcontent-%COMP%] .tab-title.selected[_ngcontent-%COMP%]{font-weight:500}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:7px}.customer-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:3px;background:#2383e2}.setting-tab[_ngcontent-%COMP%]{height:41px;box-sizing:border-box;color:#7a7a7a;background:#fff;display:flex;flex-direction:row;align-items:center;z-index:1;font-size:14px;font-weight:500;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.1);background-color:#fbfbfa}.setting-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative;cursor:pointer}.setting-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .button-selected-red[_ngcontent-%COMP%]{color:#f67474}.setting-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.setting-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:5px 20px;text-transform:capitalize;font-size:13px;font-weight:400;margin:0 1px}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:5px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:4px;background:#2383e2;border-radius:4px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar-red[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:5px;background:#f67474}.btn-icon[_ngcontent-%COMP%]{color:#7c7c7c;background-color:#f1f1f1;cursor:pointer}.btn-icon[_ngcontent-%COMP%]:hover{color:#7c7c7c;background-color:#efeff6}.space[_ngcontent-%COMP%]{flex:1}.sub-component[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:100%;height:100%}.widget-area[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;flex:1;overflow-y:overlay;padding:20px 30px;flex-wrap:wrap;justify-content:center;box-sizing:border-box}.customer-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow:initial;padding:14px;box-sizing:border-box;flex-wrap:wrap;justify-content:center}.customer-widget-area.deactivated[_ngcontent-%COMP%]{padding:0 7px 7px}.wcs-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow-y:overlay;padding:12px;flex-wrap:wrap;align-items:center;grid-gap:12px;gap:12px}.wcs-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{align-items:center}.setting-widget[_ngcontent-%COMP%]{height:calc(100% - 44px)}.setting-router[_ngcontent-%COMP%]{width:100%;flex:1;position:relative;overflow:auto;overflow-y:overlay}.container[_ngcontent-%COMP%]{width:calc(100% - 14px);height:100%;display:flex;flex-direction:column;align-items:center;padding:7px}.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-width:1400px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%]:last-child{margin:0 5px}.widget[_ngcontent-%COMP%]:only-child{min-width:600px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.scroll-widget[_ngcontent-%COMP%]{max-height:initial}.item[_ngcontent-%COMP%] .w-1[_ngcontent-%COMP%]{width:10%}.item[_ngcontent-%COMP%] .w-2[_ngcontent-%COMP%]{width:20%}.item[_ngcontent-%COMP%] .w-3[_ngcontent-%COMP%]{width:30%}.item[_ngcontent-%COMP%] .w-4[_ngcontent-%COMP%]{width:40%}.item[_ngcontent-%COMP%] .w-5[_ngcontent-%COMP%]{width:50%}.item[_ngcontent-%COMP%] .fs-12[_ngcontent-%COMP%]{font-size:12px}.item[_ngcontent-%COMP%] .right-align[_ngcontent-%COMP%]{text-align:right}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{display:flex;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:80%;box-sizing:border-box;padding:8px;font-size:14px;background-color:#f0f0f0;border:none;border-bottom:2px solid #f0f0f0;-webkit-appearance:none;-moz-appearance:none;transition:.2s}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #2383e2}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:12px;top:12px;color:#00000080}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;padding-left:32px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{cursor:pointer}.cell[_ngcontent-%COMP%]{padding-bottom:14px}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.table-area[_ngcontent-%COMP%]{height:100%;overflow:overlay}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e90ff}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#30b0ff}.widget[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{flex:1;padding:14px 16px;overflow-y:overlay}.body-center[_ngcontent-%COMP%]{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{text-align:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px;color:#2383e2}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-bottom:14px;font-size:14px;color:#0009;text-align:center;line-height:1.5}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px;font-size:18px;color:#000000de}.body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;color:#777}.body[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{font-size:15px;color:#333;margin-top:4px;padding:4px 0;display:flex;min-height:24px;align-items:center}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]{border-bottom:1px solid #fff;transition:.5s}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]:hover{cursor:text;border-bottom:1px solid #ccc}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]{color:#777;padding:16px;box-shadow:0 0 2px #888;transition:.2s;cursor:pointer;display:flex;flex-direction:row}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]:hover{color:#333;box-shadow:0 0 6px #888}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{margin:12px;padding:12px 12px 12px 36px;box-sizing:border-box;border:0;border-bottom:2px solid #ddd;background-color:transparent;background-image:url(/assets/icons/ic_search_72pt.png);background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1;transition:.3s}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #777}.widget[_ngcontent-%COMP%] .filter-area[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;flex-direction:row-reverse}.tab[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{display:flex}.filter-area[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;padding:0 8px 0 0;text-align:right;position:relative;cursor:pointer}.header[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;text-align:right;position:relative;cursor:pointer}.combo-box[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{transition:.2s}.combo-box[_ngcontent-%COMP%] > .button-active[_ngcontent-%COMP%]{color:#000}.combo-box[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{vertical-align:middle}.combo-box-contents[_ngcontent-%COMP%]{position:absolute;right:16px;z-index:101;text-align:left;box-sizing:border-box;background-color:#fff;transition:.2s;box-shadow:0 2px 4px #00000080;border:solid 1px #d9d9d9;border-radius:5px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:12px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]:hover{background:#eee}.list[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid rgba(0,0,0,.1);min-height:28px;transition:.1s;padding:10px 20px}.list.locked-list[_ngcontent-%COMP%]{background-color:#f7fafc}.list-group[_ngcontent-%COMP%]:hover{background-color:#fafcff}.list-bottom-clear[_ngcontent-%COMP%]{border-bottom:none}.list-bottom-line[_ngcontent-%COMP%]{border-bottom:1px solid #aaa}.widget[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.widget[_ngcontent-%COMP%] .list.locked-list[_ngcontent-%COMP%]:hover{background:#F7FAFC;cursor:initial}.list[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{padding:12px 0;font-size:14px;color:#333;flex:1}.list[_ngcontent-%COMP%] > .stat-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px;color:#aaa}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]:hover{opacity:.8}.list[_ngcontent-%COMP%] > .icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 10px 0 6px;height:40px}.list[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{width:8px;background:#aaa}.contents[_ngcontent-%COMP%] > .contents-small[_ngcontent-%COMP%]{margin-left:4px;font-size:11px;color:#555}.contents[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-top:6px}.widget[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.widget[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.widget[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.widget[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}td[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:11px;color:#888;margin-top:4px}td[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{cursor:pointer;color:#1e90ff}td[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{cursor:pointer;color:#f1556c}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{float:right;color:#bbb;transition:.2s;cursor:pointer}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#333}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}.div-table-header[_ngcontent-%COMP%]{display:flex;height:30px;border-style:solid;border-width:1px;border-image-source:linear-gradient(to bottom,#dfdfdf,#bcbcbc);border-image-slice:1;border-collapse:separate;background-image:linear-gradient(to bottom,#f7f7f7,#ececed);font-size:14px;align-items:center}.div-table-header[_ngcontent-%COMP%] .div-table-head[_ngcontent-%COMP%]{padding:7px 16px}.face[_ngcontent-%COMP%]{border-radius:50%;width:28px;height:28px;display:inline-block;margin-right:8px;vertical-align:middle}.folding-list[_ngcontent-%COMP%]{cursor:pointer}.folding-list[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{color:#555;font-size:16px;padding:12px 0;border-bottom:1px solid #aaa;transition:.1s;height:54px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-title[_ngcontent-%COMP%]{margin-left:16px;padding:12px 0 4px;color:#777;font-size:12px;font-weight:bold;border-bottom:1px solid #ccc;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]{margin-left:16px;padding:8px 0;color:#333;font-size:14px;border-bottom:1px solid #ccc;transition:.1s;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-selected[_ngcontent-%COMP%]{background:#f5f5f5}.empty-contents[_ngcontent-%COMP%]{font-size:16px;color:#bbb;font-weight:bold;text-transform:uppercase}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;box-sizing:border-box;padding:4px;border:0;border-bottom:1px solid #ccc;background:rgba(0,0,0,0);transition:.2s}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]{padding:4px 0;border-bottom:1px solid #fff;background:rgba(0,0,0,0)}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]:hover{border-bottom:1px solid #777}.dropdown[_ngcontent-%COMP%]{font-size:14px;position:relative;flex:1}.dropdown-contents[_ngcontent-%COMP%]{position:absolute;width:100%;margin-top:8px;left:0px;z-index:100;text-align:left;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 13px 1px #0003;transition:.2s}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:14px;display:flex;align-items:center}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]:hover{background:#eee}.dropdown[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,0)}.face[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.no-face[_ngcontent-%COMP%]{border-radius:50%;width:38x;height:38px;min-width:38px;min-height:38px;background-color:#ccc;display:inline-block;margin-right:8px;vertical-align:middle;color:#fff;text-align:center;text-transform:uppercase}.calendar[_ngcontent-%COMP%]{width:100%}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{display:flex;width:32px;height:32px;justify-content:center;align-items:center;padding:5px;color:#777;transition:.2s;cursor:pointer;border-radius:21px}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333;background:rgba(0,0,0,.05)}.btn-danger[_ngcontent-%COMP%]{color:#f1556d}.btn-danger[_ngcontent-%COMP%]:hover{color:#f47185}.svg-icon[_ngcontent-%COMP%]{font-size:24px;color:#000;width:1em;height:1em;position:relative}.svg-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:currentColor;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.png-icon[_ngcontent-%COMP%]{width:36px;height:36px;position:relative}.png-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.child-item[_ngcontent-%COMP%]{padding-left:24px}.title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.widget[_ngcontent-%COMP%] .has-child[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{flex:1;background:white;box-sizing:border-box;margin-top:8px;padding:4px 0;border:0;border-bottom:1px solid #ccc;transition:.2s}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.absolute[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px);z-index:10}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.path.white[_ngcontent-%COMP%]{stroke:#fff}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#fff}.content-list[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.title-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:28px}.title-row[_ngcontent-%COMP%] .list-title[_ngcontent-%COMP%]{flex:1;color:#777;padding-top:12px;justify-content:center}.title-row[_ngcontent-%COMP%] .tail[_ngcontent-%COMP%]{flex:1;text-align:right}.disabled[_ngcontent-%COMP%]{cursor:default;filter:contrast(60%) brightness(1.2);opacity:1;pointer-events:none;-webkit-user-select:none;user-select:none}.input-err[_ngcontent-%COMP%]{outline:none;background-color:#fbd0d6;box-shadow:0 0 0 2px #f1556c}.page-item[_ngcontent-%COMP%]{padding-bottom:14px!important}.unselectable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.pager[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:#0009}.pager[_ngcontent-%COMP%] .page-info[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:80px;padding-left:16px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 28px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;color:#0009}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]:hover{color:#000000de}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn.mover-disabled[_ngcontent-%COMP%]{cursor:initial;color:#0000004d}.pager[_ngcontent-%COMP%] .page-all[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:15px}.inner-input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:6px 8px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:5px;font-size:14px;transition:.2s;text-indent:0px;font-weight:400}.top-noti[_ngcontent-%COMP%]{width:100%;min-height:36px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-bottom:7px;background-color:#fcf9e9;font-size:14px;color:#000000de;border-bottom:rgba(0,0,0,.1)}','.page-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:14px 14px 50px}.dashboard-layout[_ngcontent-%COMP%]{max-width:1200px;width:100%;box-sizing:border-box}.dashboard-widget[_ngcontent-%COMP%]{background-color:#fff;margin-bottom:10px;border-radius:3px}.dashboard-widget-title[_ngcontent-%COMP%]{padding:16px;font-weight:400;font-size:16px;border-bottom:1px solid rgba(0,0,0,.1)}.dashboard-widget-contents[_ngcontent-%COMP%]{color:#000000de;flex-wrap:wrap}.dashboard-widget-contents-box[_ngcontent-%COMP%]{position:relative;flex:1;display:flex;flex-direction:column;padding:25px 20px 26px;min-width:300px;border-right:1px solid rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.1)}.dashboard-widget-contents-box.pb-10[_ngcontent-%COMP%]{padding-bottom:10px}.dashboard-widget-contents-box-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;font-weight:400;margin-bottom:5px}.dashboard-widget-contents-box-title-increase[_ngcontent-%COMP%]{padding:2px 8px;background-color:#56657b1a;color:#000000de;font-size:13px;border-radius:5px}.dashboard-widget-contents-box-title-increase.plus[_ngcontent-%COMP%]{background-color:#1a93691a;color:#1ea675}.dashboard-widget-contents-box-title-increase.minus[_ngcontent-%COMP%]{background-color:#9936051a;color:#993605}.dashboard-widget-contents-box-count[_ngcontent-%COMP%]{font-size:20px;font-weight:400;margin-bottom:5px}.dashboard-widget-contents-box-count.danger[_ngcontent-%COMP%]{color:#cd3d64}.dashboard-widget-contents-box-count.primary[_ngcontent-%COMP%]{color:#1e88e5}.dashboard-widget-contents-box-count.divider[_ngcontent-%COMP%]{margin:0 5px}.dashboard-widget-contents-box-sub-info[_ngcontent-%COMP%]{font-size:12px;font-weight:400;margin-bottom:5px;color:#000000de}.dashboard-widget-contents-box-total-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;height:5px;position:relative;margin-top:18px;background-color:#0009}.dashboard-widget-contents-box-total-box-offline[_ngcontent-%COMP%]{height:100%;width:0%;background-color:#cd3d64;transition:all 1s ease}.dashboard-widget-contents-box-total-box-online[_ngcontent-%COMP%]{height:100%;width:0%;background-color:#1e88e5;transition:all 1s ease}.dashboard-widget-contents-box-range[_ngcontent-%COMP%]{display:flex;font-size:12px;font-weight:400;color:#8691a2;margin-bottom:20px;cursor:pointer}.dashboard-widget-contents-box-time-range[_ngcontent-%COMP%]{display:flex;height:14px;justify-content:space-between;color:#8691a2;font-size:12px}.dashboard-widget-contents-box-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.dashboard-widget-contents-box-table-header[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.1)}.dashboard-widget-contents-box-table-header-item[_ngcontent-%COMP%]{padding:8px;font-size:12px;font-weight:400;text-align:left}.dashboard-widget-contents-box-table-body-item[_ngcontent-%COMP%]{padding:8px;font-size:12px;font-weight:400;text-align:left;border-bottom:1px solid rgba(0,0,0,.1);color:#56657b}.dashboard-widget[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.dashboard-widget[_ngcontent-%COMP%] .flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dashboard-widget[_ngcontent-%COMP%] .flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.dashboard-widget[_ngcontent-%COMP%] .flex-group-4[_ngcontent-%COMP%]{flex:none;box-sizing:border-box;width:25%}.dashboard-widget[_ngcontent-%COMP%] .flex-group-3[_ngcontent-%COMP%]{flex:none;box-sizing:border-box;width:33.333333%}.dashboard-widget.wcs[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:60px;font-size:16px;color:#000000de}.mb-20[_ngcontent-%COMP%]{margin-bottom:20px}.pb-0[_ngcontent-%COMP%]{padding-bottom:0}.widget-width[_ngcontent-%COMP%]{min-width:300px;max-width:300px}*[_ngcontent-%COMP%]{box-sizing:border-box}.nav[_ngcontent-%COMP%]{padding:0}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:-4px}.dropdown-area[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;cursor:pointer}.dropdown-area[_ngcontent-%COMP%] .dropdown-label[_ngcontent-%COMP%]{font-size:14px;padding:5px 10px;font-weight:400;color:#000000de;background:#FFFFFF;border:1px solid rgba(0,0,0,.15);box-sizing:border-box;box-shadow:0 0 5px #0000001a;border-radius:5px}.dropdown-area[_ngcontent-%COMP%] .dropdown-inner-label[_ngcontent-%COMP%]{display:flex;font-size:12px;font-weight:400;color:#8691a2}.dropdown-area[_ngcontent-%COMP%] .dropdown-inner-label.wcs[_ngcontent-%COMP%]{font-size:16px;color:#000000de}.dropdown-area[_ngcontent-%COMP%] .dropdown-box[_ngcontent-%COMP%]{position:absolute;background:#FFFFFF;box-shadow:0 0 10px #0000001a;border-radius:5px;top:40px;right:0px;filter:drop-shadow(0px 0px 10px rgba(0,0,0,.1));-ms-filter:"progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=2, Color=\'rgba(0, 0, 0, 0.1)\')";filter:"progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=2, Color=\'rgba(0, 0, 0, 0.1)\')";z-index:1}.dropdown-area[_ngcontent-%COMP%] .dropdown-box.left[_ngcontent-%COMP%]{right:initial}.dropdown-area[_ngcontent-%COMP%] .dropdown-box.left-margin-50[_ngcontent-%COMP%]{left:-50px}.dropdown-area[_ngcontent-%COMP%] .dropdown-box.top-30[_ngcontent-%COMP%]{top:30px}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none;min-width:170px;width:max-content}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu.w-250[_ngcontent-%COMP%]{width:250px}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item[_ngcontent-%COMP%]{display:flex;width:100%;padding:7px 11px;font-size:14px;font-weight:400;color:#000000de}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item[_ngcontent-%COMP%]:hover{background-color:#f7fafc}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item[_ngcontent-%COMP%]:first-child{padding:11px 11px 7px;border-top-left-radius:5px;border-top-right-radius:5px}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item[_ngcontent-%COMP%]:last-child{padding:7px 11px 11px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item.selected[_ngcontent-%COMP%]{color:#1f89e5}.dropdown-area[_ngcontent-%COMP%] .dropdown-box-menu-item-icon[_ngcontent-%COMP%]{width:20px;font-size:14px;color:#1e88e5}.dropdown-area[_ngcontent-%COMP%] .dropdown-box[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-26px;left:50%;margin-left:-15px;border-width:15px;border-style:solid;border-color:transparent transparent #fff transparent;z-index:1}.chart-box[_ngcontent-%COMP%]{position:relative;margin-top:20px;min-height:80px}.chart-box[_ngcontent-%COMP%] .doughnut-center[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 18px);left:calc(50% - 50px);width:100px;display:flex;flex-direction:column;justify-content:center;align-items:center}.chart-box[_ngcontent-%COMP%] .doughnut-center[_ngcontent-%COMP%] .doughnut-label[_ngcontent-%COMP%]{font-size:20px}.chart-box[_ngcontent-%COMP%] .doughnut-center[_ngcontent-%COMP%] .doughnut-sub-label[_ngcontent-%COMP%]{color:#56657b;font-size:12px}.transition[_ngcontent-%COMP%]{transition:.1s}.transition.rotate-reverse[_ngcontent-%COMP%]{transform:rotate(180deg)}.chart-loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.chart-loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.chart-loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.chart-loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.chart-loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#1e88e5;stroke-linecap:round}.link[_ngcontent-%COMP%]{justify-content:end;color:#1e88e5;cursor:pointer;font-size:12px}.test-label[_ngcontent-%COMP%]{font-size:12px;color:#000000de}.list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);padding:10px;border-radius:0}.select-list[_ngcontent-%COMP%]{width:500px;max-height:300px;position:absolute;left:calc(50% - 250px);margin-top:32px}.sub-dealer-container[_ngcontent-%COMP%]{cursor:pointer;padding:10px 20px}.sub-dealer-container[_ngcontent-%COMP%] .sub-dealer[_ngcontent-%COMP%]{display:flex;flex:1}.sub-dealer-container[_ngcontent-%COMP%] .sub-dealer[_ngcontent-%COMP%] .sub-dealer-name[_ngcontent-%COMP%]{font-size:14px;font-weight:normal;color:#000000de}.sub-dealer-container[_ngcontent-%COMP%] .sub-dealer[_ngcontent-%COMP%] .my-dealer-label[_ngcontent-%COMP%]{margin-left:5px;color:#00000061}.sub-dealer-container[_ngcontent-%COMP%] .sub-dealer[_ngcontent-%COMP%] .select-sub-dealer[_ngcontent-%COMP%]{color:#2383e2}.sub-dealer-container[_ngcontent-%COMP%]:hover{background-color:#f7fafc}.cursor[_ngcontent-%COMP%]{cursor:pointer}.tooltip-content[_ngcontent-%COMP%]{position:relative}.tooltip-content[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:7px;font-size:18px;color:#0009}.tooltip-content[_ngcontent-%COMP%]:hover .tooltip[_ngcontent-%COMP%]{visibility:visible;opacity:1}.tooltip-content[_ngcontent-%COMP%] .tooltip[_ngcontent-%COMP%]{width:320px;visibility:hidden;background-color:#fff;padding:20px;box-sizing:border-box;border-radius:6px;font-size:14px;box-shadow:0 0 30px #0000004d;position:absolute;z-index:100;top:-30px;right:-343px;opacity:0;transition:opacity .3s;color:#000000de;word-spacing:1px}.tooltip-content[_ngcontent-%COMP%] .tooltip[_ngcontent-%COMP%]:after{content:"";position:absolute;top:25px;left:-5px;margin-left:-19px;border-width:12px;border-style:solid;border-color:transparent #fff transparent transparent}.tooltip-content[_ngcontent-%COMP%] .tooltip[_ngcontent-%COMP%] .font-10[_ngcontent-%COMP%]{font-size:10px}.tooltip-content[_ngcontent-%COMP%] .tooltip[_ngcontent-%COMP%] .font-12[_ngcontent-%COMP%]{font-size:12px}.tooltip-content[_ngcontent-%COMP%] .tooltip.test[_ngcontent-%COMP%]{visibility:visible;opacity:1}.tooltip-content[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.tooltip-content[_ngcontent-%COMP%] .tooltip-tag[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;padding:3px 5px;font-size:12px;background:rgba(85,100,123,.1);border:1px solid #E3E8EE;border-radius:3px;color:#56657b}.tooltip-content[_ngcontent-%COMP%] .tooltip-tag.tag-red[_ngcontent-%COMP%]{background:rgba(205,61,100,.1);border:1px solid #E3E8EE;border-radius:3px;color:#cd3c63}.tooltip-content[_ngcontent-%COMP%] .tooltip-tag.tag-green[_ngcontent-%COMP%]{background:rgba(30,166,117,.1);border:1px solid #E3E8EE;border-radius:3px;color:#1ea473}.tooltip[_ngcontent-%COMP%]{width:367px}.tooltip[_ngcontent-%COMP%] .tooltip-item[_ngcontent-%COMP%]{padding-bottom:10px}.tooltip[_ngcontent-%COMP%] .tooltip-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.tooltip[_ngcontent-%COMP%] .tooltip-item[_ngcontent-%COMP%] .tooltip-row[_ngcontent-%COMP%]{padding-bottom:5px}.disable-chart[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;color:#00000061;flex:1}.goto-txt-button[_ngcontent-%COMP%]{position:absolute;right:20px}.disabled-item[_ngcontent-%COMP%]{opacity:.3}']}),l})()}]);var ie=M(6517),se=M(56447),re=M(688),le=M(28739);let de=(()=>{class l{}return l.\u0275fac=function(a){return new(a||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[B.ez,oe,ie.m9,se.q,re.m,le.S]]}),l})()}}]);