PageSourceSearch

https://doublepoint.nl/8448.472303a1d6e5b052.js

js doublepoint.nl collected 2026-10-08 09:34:09 UTC 157,408 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[8448],{38448(z,E,r){r.d(E,{dashboardRoutes:()=>Bo});var i=r(85802),x=r(17705),I=r(79737),C=r(92996),B=r(59882),w=r(27980),S=r(13114),k=r(96354),b=r(50644),re=r(25843),F=r(89079),G=r(83188),le=r(81753),H=r(96106),O=r(86958),L=r(38601),_=r(68018),e=r(35547);const M=["*",[["",8,"card-icon"]],[["",8,"card-button"]]],ne=["*",".card-icon",".card-button"];function St(n,l){if(1&n&&(e.rj2(0,"div",3),e.SdG(1,1),e.rj2(2,"h5",4),e.EFF(3),e.nI1(4,"translate"),e.eux(),e.SdG(5,2),e.eux()),2&n){const t=e.XpG();e.AVh("mb-4",t.hasPadding)("border-bottom",!t.hasPadding),e.R7$(3),e.JRh(e.bMT(4,5,t.label))}}let Y=(()=>{class n{label;hasPadding=!0;hideHeader=!1;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-card"]],inputs:{label:"label",hasPadding:"hasPadding",hideHeader:"hideHeader"},ngContentSelectors:ne,decls:4,vars:3,consts:[[1,"office-card","card","overflow-x-hidden"],[1,"header-icon","d-flex","flex-row","align-items-center","gap-2",3,"mb-4","border-bottom"],[1,"row"],[1,"header-icon","d-flex","flex-row","align-items-center","gap-2"],[1,"mb-0","flex-1"]],template:function(a,s){1&a&&(e.NAR(M),e.rj2(0,"div",0),e.nVh(1,St,6,7,"div",1),e.rj2(2,"div",2),e.SdG(3),e.eux()()),2&a&&(e.AVh("p-4",s.hasPadding),e.R7$(),e.vxM(s.hideHeader?-1:1))},dependencies:[_.D9],encapsulation:2,changeDetection:0})}return n})();var je=r(22129),Ee=r(74536),we=r(2275),J=r(49769);const Tt=n=>({"badge bg-red text-sm":n});function Rt(n,l){if(1&n&&(e.j41(0,"app-simple-copy",5)(1,"strong",10)(2,"span",11),e.EFF(3),e.k0s(),e.j41(4,"span",12),e.EFF(5),e.k0s()()()),2&n){const t=l,a=e.XpG();e.Y8G("source",t)("showIcon",!0),e.R7$(),e.Y8G("ngClass",e.eq3(5,Tt,!a.systemParams.IsStaticIp)),e.R7$(2),e.JRh(t),e.R7$(2),e.JRh(a.systemParams.IsStaticIp?"Static":"Dynamic")}}function xt(n,l){if(1&n&&(e.j41(0,"app-simple-copy",5)(1,"strong",13),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.Y8G("source",t.systemParams.IpV6)("showIcon",!0),e.R7$(2),e.JRh(null==t.systemParams?null:t.systemParams.IpV6)}}function kt(n,l){1&n&&(e.j41(0,"span",7),e.EFF(1,"N/A"),e.k0s())}let $t=(()=>{class n{groupSettingsService=(0,i.WQX)(O.e);modalService=(0,i.WQX)(L.B);systemParams={};licenseStatus={};get version(){return(0,le.HF)(this.systemParams.Version,null,this.systemParams.AIVersion)}groupOptionsModal(){this.groupSettingsService.editMyGroup().pipe((0,H.Sf)()).subscribe({error:t=>this.modalService.error(t)})}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-mcm-admin-dashboard"]],inputs:{systemParams:"systemParams",licenseStatus:"licenseStatus"},decls:78,vars:50,consts:[["label","_i18n.SystemInfo"],["app-info-circle-regular-icon","",1,"card-icon","customSVGIcons","svg-sm"],[1,"office-body-row"],[1,"d-flex","align-items-center","gap-1"],["data-qa","license-card-fqdn",1,"d-none","d-upmd-inline"],[3,"source","showIcon"],[1,"md-visible"],[1,"badge","bg-primary","text-uppercase","p-2"],["data-qa","license-company-name",1,"d-none","d-upmd-inline"],["app-cog-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md","pointer","ms-1",3,"click"],[3,"ngClass"],[1,"d-none","d-upmd-inline","me-1"],[1,"d-inline"],[1,"d-none","d-upmd-inline"]],template:function(a,s){if(1&a&&(e.j41(0,"app-dashboard-card",0),e.nrm(1,"span",1),e.j41(2,"div",2)(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"span",3)(7,"span",4),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"app-simple-copy",5)(11,"strong"),e.EFF(12),e.k0s()()()(),e.j41(13,"div",2)(14,"div",3)(15,"span",6),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"span")(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"strong"),e.EFF(23),e.k0s()(),e.j41(24,"span")(25,"span"),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"strong"),e.EFF(29),e.k0s()(),e.j41(30,"span")(31,"span"),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"strong"),e.EFF(35),e.k0s()(),e.j41(36,"span")(37,"span"),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"strong"),e.EFF(41),e.k0s(),e.EFF(42,"-"),e.j41(43,"strong"),e.EFF(44),e.k0s()()(),e.j41(45,"div",3)(46,"span")(47,"span"),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"strong"),e.EFF(51),e.k0s()(),e.j41(52,"span")(53,"span"),e.EFF(54),e.nI1(55,"translate"),e.k0s(),e.j41(56,"strong"),e.EFF(57),e.k0s()()()(),e.j41(58,"div",2)(59,"span",3)(60,"span"),e.EFF(61),e.nI1(62,"translate"),e.k0s(),e.nVh(63,Rt,6,7,"app-simple-copy",5),e.k0s(),e.j41(64,"span",3)(65,"span"),e.EFF(66),e.nI1(67,"translate"),e.k0s(),e.nVh(68,xt,3,3,"app-simple-copy",5)(69,kt,2,0,"span",7),e.k0s()(),e.j41(70,"div",2)(71,"span",3)(72,"span",8),e.EFF(73),e.nI1(74,"translate"),e.k0s(),e.j41(75,"strong"),e.EFF(76),e.k0s(),e.j41(77,"span",9),e.bIt("click",function(){return s.groupOptionsModal()}),e.k0s()()()()),2&a){let o;e.R7$(4),e.Lme("",e.bMT(5,26,"_i18n.LicenseVersion")," ",s.version),e.R7$(4),e.JRh(e.bMT(9,28,"_i18n.LicenseCardFQDN")),e.R7$(2),e.Y8G("source",s.systemParams.PbxExternalHost)("showIcon",!0),e.R7$(2),e.JRh(s.systemParams.PbxExternalHost),e.R7$(4),e.JRh(e.bMT(17,30,"_i18n.NetworkPorts")),e.R7$(4),e.SpI("",e.bMT(21,32,"_i18n.Sip"),":"),e.R7$(3),e.JRh(s.systemParams.SipPort),e.R7$(3),e.SpI("",e.bMT(27,34,"_i18n.Sips"),":"),e.R7$(3),e.JRh(s.systemParams.SipsPort),e.R7$(3),e.SpI("",e.bMT(33,36,"_i18n.Tunnel"),":"),e.R7$(3),e.JRh(s.systemParams.TunnnelPort),e.R7$(3),e.SpI("",e.bMT(39,38,"_i18n.Media"),":"),e.R7$(3),e.JRh(s.systemParams.FirstExternalPort),e.R7$(3),e.JRh(s.systemParams.WebrtcLastPort),e.R7$(4),e.SpI("",e.bMT(49,40,"_i18n.Http"),":"),e.R7$(3),e.JRh(s.systemParams.HttpPort),e.R7$(3),e.SpI("",e.bMT(55,42,"_i18n.Https"),":"),e.R7$(3),e.JRh(s.systemParams.HttpsPort),e.R7$(4),e.JRh(e.bMT(62,44,"_i18n.LicenseIPv4")),e.R7$(2),e.vxM((o=s.systemParams.IsStaticIp?s.systemParams.StaticIp:s.systemParams.StunIp)?63:-1,o),e.R7$(3),e.JRh(e.bMT(67,46,"_i18n.LicenseIPv6")),e.R7$(2),e.vxM(s.systemParams.IpV6?68:69),e.R7$(5),e.JRh(e.bMT(74,48,"_i18n.LicenseCompanyName")),e.R7$(3),e.JRh(s.licenseStatus.CompanyName)}},dependencies:[Y,je.j,we.T,J.YU,Ee.Z,_.D9],encapsulation:2,changeDetection:0})}return n})();var De=r(36623),Ae=r(68931),Ft=r(40960),It=r(11423),ae=r(93049),ce=r(5052),Ve=r(77321),Se=r(78293);function Mt(n,l){1&n&&(e.j41(0,"button",4),e.nrm(1,"app-bell-solid-icon"),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"_i18n.Alerts")," "))}let Pt=(()=>{class n{eventLogsService=(0,i.WQX)(Ve.S);dashboardService=(0,i.WQX)(ce.I);myToken;events;downloadEventLogs(t){this.eventLogsService.downloadEventLogs({$filter:(0,Se.PB)({logLevel:Se.ck})}),t.preventDefault(),t.stopPropagation()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-events-dashboard"]],inputs:{myToken:"myToken",events:"events"},features:[e.Jv_([Ve.S])],decls:15,vars:10,consts:[["label","_i18n.EventsLabel","data-qa","events-label",3,"hasPadding"],[1,"card-icon","customSVGIcons","svg-sm","ms-4"],[1,"d-flex","gap-2","align-items-center","flex-wrap","card-button","border-bottom-0","p-4"],["type","button","data-qa","download-event-logs",1,"btn","btn-border",3,"click"],["routerLink","/office/system/alerts","type","button","data-qa","alerts",1,"btn","btn-primary"],[1,"col-12"],[3,"isDashboard","events"],["footer",""],["colspan","12",1,"text-center"],["routerLink","/office/event-log","data-qa","load-more-event-logs",1,"link","link-underline","link-underline-opacity-0"]],template:function(a,s){1&a&&(e.j41(0,"app-dashboard-card",0),e.nrm(1,"app-square-list-solid-icon",1),e.j41(2,"div",2)(3,"button",3),e.bIt("click",function(c){return s.downloadEventLogs(c)}),e.nrm(4,"app-download-solid-icon"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nVh(7,Mt,4,3,"button",4),e.k0s(),e.j41(8,"div",5)(9,"app-event-log-list",6)(10,"tr",7)(11,"td",8)(12,"a",9),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()()()),2&a&&(e.Y8G("hasPadding",!1),e.R7$(5),e.SpI(" ",e.bMT(6,6,"_i18n.Download")," "),e.R7$(2),e.vxM(s.myToken.admin?7:-1),e.R7$(2),e.Y8G("isDashboard",!0)("events",s.events),e.R7$(4),e.JRh(e.bMT(14,8,"_i18n.LoadMore")))},dependencies:[Y,De.e,It.g,ae.Wk,Ae.H,Ft.N,_.D9],encapsulation:2,changeDetection:0})}return n})(),jt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-file-arrow-down-solid-icon"],["","app-file-arrow-down-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var Et=r(28791);let wt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-laptop-arrow-down-solid-icon"],["","app-laptop-arrow-down-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M128 32C92.7 32 64 60.7 64 96l0 256 64 0 0-256 128 0 0-64L128 32zM512 96l0 256 64 0 0-256c0-35.3-28.7-64-64-64L384 32l0 64 128 0zM19.2 384C8.6 384 0 392.6 0 403.2C0 445.6 34.4 480 76.8 480l486.4 0c42.4 0 76.8-34.4 76.8-76.8c0-10.6-8.6-19.2-19.2-19.2L19.2 384zM344 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 182.1-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39L344 56z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})(),Dt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-life-ring-solid-icon"],["","app-life-ring-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M367.2 412.5C335.9 434.9 297.5 448 256 448s-79.9-13.1-111.2-35.5l58-58c15.8 8.6 34 13.5 53.3 13.5s37.4-4.9 53.3-13.5l58 58zm90.7 .8c33.8-43.4 54-98 54-157.3s-20.2-113.9-54-157.3c9-12.5 7.9-30.1-3.4-41.3S425.8 45 413.3 54C369.9 20.2 315.3 0 256 0S142.1 20.2 98.7 54c-12.5-9-30.1-7.9-41.3 3.4
1S45 86.2 54 98.7C20.2 142.1 0 196.7 0 256s20.2 113.9 54 157.3c-9 12.5-7.9 30.1 3.4 41.3S86.2 467 98.7 458c43.4 33.8 98 54 157.3 54s113.9-20.2 157.3-54c12.5 9 30.1 7.9 41.3-3.4s12.4-28.8 3.4-41.3zm-45.5-46.1l-58-58c8.6-15.8 13.5-34 13.5-53.3s-4.9-37.4-13.5-53.3l58-58C434.9 176.1 448 214.5 448 256s-13.1 79.9-35.5 111.2zM367.2 99.5l-58 58c-15.8-8.6-34-13.5-53.3-13.5s-37.4 4.9-53.3 13.5l-58-58C176.1 77.1 214.5 64 256 64s79.9 13.1 111.2 35.5zM157.5 309.3l-58 58C77.1 335.9 64 297.5 64 256s13.1-79.9 35.5-111.2l58 58c-8.6 15.8-13.5 34-13.5 53.3s4.9 37.4 13.5 53.3zM208 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var Le=r(73993);let At=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-power-off-solid-icon"],["","app-power-off-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V256c0 17.7 14.3 32 32 32s32-14.3 32-32V32zM143.5 120.6c13.6-11.3 15.4-31.5 4.1-45.1s-31.5-15.4-45.1-4.1C49.7 115.4 16 181.8 16 256c0 132.5 107.5 240 240 240s240-107.5 240-240c0-74.2-33.8-140.6-86.6-184.6c-13.6-11.3-33.8-9.4-45.1 4.1s-9.4 33.8 4.1 45.1c38.9 32.3 63.5 81 63.5 135.4c0 97.2-78.8 176-176 176s-176-78.8-176-176c0-54.4 24.7-103.1 63.5-135.4z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})(),Vt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-screwdriver-wrench-solid-icon"],["","app-screwdriver-wrench-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var pe=r(74743);let Lt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-database-solid-icon"],["","app-database-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var K=r(84412),A=r(25558),He=r(7673),Be=r(983),Te=r(99437),Ht=r(96697),q=r(22972),U=r(54999),de=r(97469),m=r(89417),me=r(41029),Ge=r(13961),Oe=r(88141),Z=r(40953),Re=r(60240),ue=r(24708);const Je=[{value:1,label:"_i18n.CallMonitorPeriod1day"},{value:3,label:"_i18n.CallMonitorPeriod3days"},{value:5,label:"_i18n.CallMonitorPeriod5days"}];let Bt=(()=>{class n extends q.m{cd=(0,i.WQX)(x.gRc);systemStatusApiService=(0,i.WQX)(de.Z);xapiErrorService=(0,i.WQX)(me.Ko);value;buttons=U.P.OkCancel;sub=new Ge.yU;form=new m.gE({GrantPeriodDays:new m.MJ(1,{nonNullable:!0,validators:[m.k0.required]})});requestHelpLink="";validateBeforeSubmit;ngOnDestroy(){this.sub.unsubscribe()}grantPeriodDaysOptions=Je;ngOnInit(){this.validateBeforeSubmit=this.createDialogValidate(this.form,this.cd)}submit$=()=>{const{GrantPeriodDays:t}=this.form.value;return this.systemStatusApiService.getRequestHelpLink({grantPeriodDays:t}).pipe((0,Oe.M)(a=>{this.requestHelpLink=a.value??""}),this.handleError(this.xapiErrorService,this.cd,this.form))};getPayload(){return this.requestHelpLink}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275cmp=e.VBU({type:n,selectors:[["app-remote-access-modal"]],features:[e.Vt3],decls:4,vars:7,consts:[["header","_i18n.GenerateRemoteAccessLink",3,"submitted","formGroup","buttons","validateBeforeSubmit","submit$","okText"],[3,"translate"],["data-qa","grant-period-days","label","_i18n.ExpireAccessLink","viewStyle","
1inline","formControlName","GrantPeriodDays",3,"options"],["controlName","GrantPeriodDays"]],template:function(a,s){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.nrm(1,"p",1),e.j41(2,"field-radio-group",2),e.nrm(3,"val-errors",3),e.k0s()()),2&a&&(e.Y8G("formGroup",s.form)("buttons",s.buttons)("validateBeforeSubmit",s.validateBeforeSubmit)("submit$",s.submit$)("okText","_i18n.GenerateLink"),e.R7$(),e.Y8G("translate","_i18n.RemoteAccessDescription"),e.R7$(),e.Y8G("options",s.grantPeriodDaysOptions))},dependencies:[Z.p,m.X1,m.BC,m.cb,m.j4,m.JD,Re.u,ue.IH,_.Mm],encapsulation:2,changeDetection:0})}return n})();var Gt=r(70299),Ot=r(97268);let Jt=(()=>{class n extends q.m{requestHelpLink;static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275cmp=e.VBU({type:n,selectors:[["app-request-help-link-modal"]],features:[e.Vt3],decls:5,vars:3,consts:[["header","_i18n.RemoteAccessLinkCreated",3,"submitted","buttons"],["label","_i18n.CopyAndShareThisAccessLink","data-qa","request-help-link",3,"data"],["app-info-circle-solid-icon","",1,"customSVGIcons","svg-sm","me-2"],[3,"translate"]],template:function(a,s){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.nrm(1,"app-input-copy-to-clipboard",1),e.j41(2,"p"),e.nrm(3,"span",2)(4,"span",3),e.k0s()()),2&a&&(e.Y8G("buttons",s.buttons),e.R7$(),e.Y8G("data",s.requestHelpLink),e.R7$(3),e.Y8G("translate","_i18n.RemoteAccessNote"))},dependencies:[Z.p,Gt.Y,_.Mm,Ot.W],encapsulation:2,changeDetection:0})}return n})();var Xt=r(59053),Xe=r(95604),Ut=r(84460),xe=r(19781),j=r(56998);let Nt=(()=>{class n extends q.m{cd=(0,i.WQX)(x.gRc);systemStatusApiService=(0,i.WQX)(de.Z);xapiErrorService=(0,i.WQX)(me.Ko);value;buttons=U.P.OkCancel;sub=new Ge.yU;form=new m.gE({IssueDescription:new m.MJ("",{nonNullable:!0,validators:[m.k0.required]}),Name:new m.MJ("",{nonNullable:!0,validators:[m.k0.required]}),ReplyEmail:new m.MJ("",{nonNullable:!0,validators:[m.k0.required,m.k0.email]}),PhoneNumber:new m.MJ("",{nonNullable:!0,validators:[Xt.V$]}),GrantAccess:new m.MJ(!0,{nonNullable:!0,validators:[m.k0.required]}),GrantPeriodDays:new m.MJ(1,{nonNullable:!0,validators:[m.k0.required]})});validateBeforeSubmit;constructor(){super(),this.sub.add((0,j.jA)((0,j.XP)(this.form.controls.GrantAccess),[this.form.controls.GrantPeriodDays]))}ngOnDestroy(){this.sub.unsubscribe()}grantPeriodDaysOptions=Je;ngOnInit(){this.form.patchValue({Name:this.value.DisplayName??"",ReplyEmail:this.value.EmailAddress??"",PhoneNumber:this.value.Mobile??""}),this.validateBeforeSubmit=this.createDialogValidate(this.form,this.cd)}submit$=()=>{const{GrantAccess:t,...a}=this.form.value;return this.systemStatusApiService.requestHelp({systemStatusRequestHelpRequestBody:{description:a}}).pipe(this.handleError(this.xapiErrorService,this.cd,this.form))};static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-request-help-modal"]],features:[e.Vt3],decls:15,vars:10,consts:[["header","_i18n.CreateSupportTicket","okText","_i18n.SubmitRequest",3,"submitted","formGroup","buttons","validateBeforeSubmit","submit$"],["label","_i18n.IssueDescription","data-qa","issue-description","labelFor","issue",3,"required"],["id","issue","data-qa","textarea","formControlName","IssueDescription","rows","5",1,"form-control",3,"keydown.enter","maxlength"],["controlName","IssueDescription"],["data-qa","name","formControlName","Name","label","_i18n.ContactName"],["controlName","Name"],["data-qa","mobile","formControlName","PhoneNumber","label","_i18n.Mobile",3,"maxlength"],["controlName","PhoneNumber"],["data-qa","reply-email","formControlName","ReplyEmail","label","_i18n.Email",3,"maxlength"],["controlName","ReplyEmail"],["data-qa","grant-access","formControlName","GrantAccess",3,"label"],["controlName","GrantAccess"],["data-qa","grant-period-days","label","_i18n.ExpireAccessLink","viewStyle","
1inline","formControlName","GrantPeriodDays",3,"options"],["controlName","GrantPeriodDays"]],template:function(a,s){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.j41(1,"field-wrapper",1)(2,"textarea",2),e.bIt("keydown.enter",function(c){return c.stopPropagation()}),e.EFF(3,"        "),e.k0s(),e.nrm(4,"val-errors",3),e.k0s(),e.j41(5,"field-input",4),e.nrm(6,"val-errors",5),e.k0s(),e.j41(7,"field-input",6),e.nrm(8,"val-errors",7),e.k0s(),e.j41(9,"field-input",8),e.nrm(10,"val-errors",9),e.k0s(),e.j41(11,"field-checkbox",10),e.nrm(12,"val-errors",11),e.k0s(),e.j41(13,"field-radio-group",12),e.nrm(14,"val-errors",13),e.k0s()()),2&a&&(e.Y8G("formGroup",s.form)("buttons",s.buttons)("validateBeforeSubmit",s.validateBeforeSubmit)("submit$",s.submit$),e.R7$(),e.Y8G("required",!0),e.R7$(),e.Y8G("maxlength",2048),e.R7$(5),e.Y8G("maxlength",50),e.R7$(2),e.Y8G("maxlength",254),e.R7$(2),e.Y8G("label","_i18n.RequestHelpGrantAccess"),e.R7$(2),e.Y8G("options",s.grantPeriodDaysOptions))},dependencies:[Z.p,m.X1,m.me,m.BC,m.cb,m.tU,m.j4,m.JD,Re.u,Xe.z,ue.IH,Ut.m,xe.t],encapsulation:2,changeDetection:0})}return n})();var Ue=r(84261),Qt=r(50733);const Wt={None:"None",Requested:"Requested",Active:"Active"};var Ne=r(48643),Qe=r(7881),ee=r(91413),zt=r(18530),Yt=r(56977),Kt=r(3710),qt=r(12449),Zt=r(20681);let en=(()=>{class n extends qt.d{httpClient;constructor(t,a,s){super(a,s),this.httpClient=t}captureDownload(t="body",a=!1,s){let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);void 0!==c&&(o=o.set("Accept",c));const p=s?.context??new ee._y,d=s?.transferCache??!0;let g="json";c&&(g=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("get",`${y}/webclient/api/Capture/Download`,{context:p,responseType:g,...h?{withCredentials:h}:{},headers:o,observe:t,...void 0!==d?{transferCache:d}:{},reportProgress:a})}captureGetCaptureSettings(t="body",a=!1,s){let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/json;IEEE754Compatible=false","application/json;IEEE754Compatible=true","application/xml","text/plain","application/octet-stream","text/json"]);void 0!==c&&(o=o.set("Accept",c));const p=s?.context??new ee._y,d=s?.transferCache??!0;let g="json";c&&(g=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("get",`${y}/webclient/api/Capture/Settings`,{context:p,responseType:g,...h?{withCredentials:h}:{},headers:o,observe:t,...void 0!==d?{transferCache:d}:{},reportProgress:a})}captureStartCapture(t,a="body",s=!1,o){if(null==t)throw new Error("Required parameter captureArg was null or undefined when calling captureStartCapture.");let c=this.defaultHeaders;c=this.configuration.addCredentialToHeaders("Application","Authorization",c,"Bearer ");const p=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);void 0!==p&&(c=c.set("Accept",p));const d=o?.context??new ee._y,g=o?.transferCache??!0,y=this.configuration.selectHeaderContentType(["application/json","application/json;IEEE754Compatible=false","application/json;IEEE754Compatible=true","application/xml","text/plain"]);void 0!==y&&(c=c.set("Content-Type",y));let h="json";p&&(h=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");const{basePath:f,withCredentials:P}=this.configuration;return this.httpClient.request("post",`${f}/webclient/api/Capture/Start`,{context:d,body:t,responseType:h,...P?{withCredentials:P}:{},headers:c,observe:a,...void 0!==g?{transferCache:g}:{},reportProgress:s})}static \u0275fac=function(a){return new(a||n)(i.KVO(ee.Qq),i.KVO(Kt.o,8),i.KVO(Zt.V,8))};static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var V=function(n){return n[n.None=0]="None",n[n.Configure=1]="Configure",n[n.Ongoing=2]="Ongoing",n[n.Finished=3]="Finished",n[n.OngoingInAnotherSession=4]="OngoingInAnotherSession",n[n.NotAp
1plicable=5]="NotApplicable",n}(V||{}),ke=r(72510);let tn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-stop-solid-icon"],["","app-stop-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var We=r(91968);const nn=["dialog"];function an(n,l){if(1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n){const t=l.item;e.SpI(" ","*"===t?e.bMT(1,1,"_i18n.All"):t," ")}}function sn(n,l){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"field-wrapper",8)(5,"div",9)(6,"ng-select",10),e.DNE(7,an,2,3,"ng-template",11),e.k0s(),e.j41(8,"div",12)(9,"button",13),e.nI1(10,"translate"),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.startCapture())}),e.nrm(11,"span",14),e.j41(12,"span",15),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"_i18n.SelectInterfaceFromList")),e.R7$(4),e.Y8G("items",t.availableInterfaces)("searchable",!1)("clearable",!1)("formControl",t.captureInterfaceControl),e.R7$(3),e.Y8G("title",e.bMT(10,9,"_i18n.Start")),e.R7$(4),e.JRh(e.bMT(14,11,"_i18n.Start"))}}function on(n,l){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.nrm(1,"p",16),e.j41(2,"ul",17),e.nrm(3,"li",18),e.nI1(4,"translate"),e.j41(5,"li"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"li"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"li"),e.EFF(12),e.nI1(13,"translate"),e.k0s()(),e.j41(14,"div",19),e.nrm(15,"span",20),e.k0s(),e.j41(16,"div",21)(17,"button",22),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.stopCapture())}),e.nrm(18,"span",23),e.j41(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s()()()()}2&n&&(e.R7$(),e.Y8G("translate","_i18n.NetworkTrafficIsCapturedOnServer"),e.R7$(2),e.Y8G("innerHTML",e.bMT(4,6,"_i18n.CaptureOngoingPoint1"),e.npT),e.R7$(3),e.JRh(e.bMT(7,8,"_i18n.CaptureOngoingPoint2")),e.R7$(3),e.JRh(e.bMT(10,10,"_i18n.CaptureOngoingPoint3")),e.R7$(3),e.JRh(e.bMT(13,12,"_i18n.CaptureOngoingPoint4")),e.R7$(8),e.JRh(e.bMT(21,14,"_i18n.Stop")))}function rn(n,l){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"span",24),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.downloadCapture())}),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.EFF(7),e.nI1(8,"translate"),e.j41(9,"span",25),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.generateSupportInfo())}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"p"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,6,"_i18n.Download")," "),e.R7$(3),e.JRh(e.bMT(6,8,"_i18n.PcapCapture")),e.R7$(2),e.SpI(" ",e.bMT(8,10,"_i18n.OrLowerCase")," "),e.R7$(3),e.JRh(e.bMT(11,12,"_i18n.SupportInfo")),e.R7$(2),e.SpI(" ",e.bMT(13,14,"_i18n.IncludesPcap")," "),e.R7$(3),e.JRh(e.bMT(16,16,"_i18n.SecurityPurposesPcapDeleted")))}function ln(n,l){1&n&&(e.nrm(0,"span",5),e.nI1(1,"translate")),2&n&&e.Y8G("innerHTML",e.bMT(1,1,"_i18n.WiresharkNotFound"),e.npT)}function cn(n,l){1&n&&(e.j41(0,"span",6),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.CaptureOngoing")))}function pn(n,l){if(1&n&&(e.j41(0,"p",7),e.nrm(1,"app-server-error",26),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("message",t.initializationError)}}let dn=(()=>{class n extends q.m{fileDownloadService=(0,i.WQX)(Ne.y);modalService=(0,i.WQX)(L.B);cd=(0,i.WQX)(x.gRc);captureApiService=(0,i.WQX)(en);destroyRef=(0,i.WQX)(i.abz);dialog;captureInterfaceControl=new m.MJ("");CaptureStatus=V;availableInterfaces=[];captureStatus=V.None;stopCapture$=new zt.B;initializationError;get footerButtons(){return this.captureStatus===V.NotApplicable||this.captureStatus===V.OngoingInAnotherSession?U.P.Ok:U.P.Cancel}ngOnInit(){this.captureApiService.captureGetCaptureSettings().subscribe({next:t=>{this.availableInterfaces=t.Interfaces??[],this.captureInterfaceControl.setValue(t.LocalInterface??""),this.setStatus(t.IsCaptureApplicable?t.IsCaptureOngoing?V.OngoingInAnotherSession:V.Configure:V.NotApplicable)},error:t=>{this.initializationError=(0,Qe.PE)(t),this.cd.markForCheck()}})}startCapture(){this.captureInterfaceControl.value&&(this.setStatus(V.Ongoing),this.captureApiService.captureStartCapture({Interface:this.captureInterfaceControl.value}).pipe((0,F.pQ)(this.destroyRef),(0,Yt.Q)(this.stopCapture$)).subscribe({next:()=>{this.setStatus(V.Finished)},error:t=>{this.setStatus(V.Configure),this.modalService.error(t instanceof ee.yz&&404===t.status?"_i18n.WiresharkNotFound":t)},complete:()=>{this.setStatus(V.Finished)}}))}stopCapture(){this.stopCapture$.next()}generateSupportInfo(){this.fileDownloadService.download("/SupportInfo"),this.dialog.cancel()}downloadCapture(){this.fileDownloadService.download("/webclient/api/Capture/Download",{addXapiPath:!1}),this.dialog.cancel()}setStatus(t){this.captureStatus=t,this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],viewQuery:function(a,s){if(1&a&&e.GBs(nn,5),2&a){let o;e.mGM(o=e.lsd())&&(s.dialog=o.first)}},features:[e.Vt3],decls:8,vars:5,consts:[["dialog",""],["header","_i18n.CaptureTrafficTitle",3,"buttons","autofocus","disableSubmitOnEnter"],["data-qa","capture-configure"],["data-qa","capture-ongoing",1,"d-flex","flex-column"],["data-qa","capture-finished"],["data-qa","capture-not-applicable",3,"innerHTML"],["data-qa","capture-ongoing-another"],[1,"text-error"],["data-qa","select-interface"],[1,"input-group","flex-nowrap"],["data-qa","select",1,"flex-grow-1","mw-0",3,"items","searchable","clearable","formControl"],["ng-label-tmp","","ng-option-tmp",""],[1,"input-group-append"],["type","button","data-qa","start-capture",1,"btn","btn-border",3,"click","title"],["data-qa","icon-spin","app-play-solid-icon","",1,"svg-sm"],[1,"d-none","d-md-block"],[3,"translate"],[1,"mb-3","ms-5"],[3,"innerHTML"],[1,"d-flex","align-items-center","justify-content-center","mb-3"],["app-cog-solid-icon","",1,"svg-xxl","icon-spin"],[1,"d-flex","align-items-center","justify-content-center"],["type","button","data-qa","stop-capture",1,"btn","btn-border",3,"click"],["app-stop-solid-icon","",1,"svg-md"],["data-qa","download-capture",1,"link",3,"click"],["data-qa","generate-support-info",1,"link",3,"click"],[3,"message"]],template:function(a,s){if(1&a&&(e.j41(0,"app-modal-dialog",1,0),e.nVh(2,sn,15,13,"div",2)(3,on,22,16,"div",3)(4,rn,17,18,"div",4)(5,ln,2,3,"span",5)(6,cn,3,3,"span",6),e.nVh(7,pn,2,1,"p",7),e.k0s()),2&a){let o;e.Y8G("buttons",s.footerButtons)("autofocus",!1)("disableSubmitOnEnter",!0),e.R7$(2),e.vxM((o=s.captureStatus)===s.CaptureStatus.Configure?2:o===s.CaptureStatus.Ongoing?3:o===s.CaptureStatus.Finished?4:o===s.CaptureStatus.NotAp
1plicable?5:o===s.CaptureStatus.OngoingInAnotherSession?6:-1),e.R7$(5),e.vxM(s.initializationError?7:-1)}},dependencies:[Xe.z,Ee.Z,Le.S,tn,Z.p,ke.vr,m.X1,m.BC,m.l_,ke.ZZ,ke.Uq,_.Mm,We.J,_.D9],encapsulation:2,changeDetection:0})}return n})();var mn=r(11004);let ze=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-circle-exclamation-solid-icon"],["","app-circle-exclamation-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();function un(n,l){1&n&&e.nrm(0,"span",0)}function hn(n,l){1&n&&e.nrm(0,"span",1)}let Ye=(()=>{class n{ok;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-status-icon"]],inputs:{ok:"ok"},decls:2,vars:1,consts:[["app-circle-check-solid-icon","",1,"customSVGIcons","fillIconGreen","svg-md","ms-2"],["app-circle-exclamation-solid-icon","",1,"customSVGIcons","fillIconRed","svg-md","ms-2"]],template:function(a,s){1&a&&e.nVh(0,un,1,0,"span",0)(1,hn,1,0,"span",1),2&a&&e.vxM(s.ok?0:1)},dependencies:[mn.C,ze],encapsulation:2,changeDetection:0})}return n})();var gn=r(96797);function fn(n,l){1&n&&e.nrm(0,"span",3)}function bn(n,l){if(1&n){const t=e.RV6();e.j41(0,"a",16)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"app-status-icon",17),e.k0s(),e.j41(5,"a",18),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.restartOperatingSystem())}),e.j41(6,"span",5),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"span",19),e.k0s()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"_i18n.LicenseStatusRunningServices")),e.R7$(2),e.Y8G("ok",!t.systemStatus.HasNotRunningServices),e.R7$(3),e.JRh(e.bMT(8,5,"_i18n.RestartOS"))}}function vn(n,l){1&n&&e.nrm(0,"span",3)}function Cn(n,l){if(1&n&&(e.j41(0,"a",11)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"app-status-icon",17),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"_i18n.Firewall")),e.R7$(2),e.Y8G("ok",t.systemHealthStatus.Firewall)}}function _n(n,l){if(1&n){const t=e.RV6();e.j41(0,"span",20),e.bIt("click",function(){i.eBV(t);const s=e.XpG(4);return i.Njj(s.remoteAccessModal())}),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"app-laptop-arrow-down-solid-icon",21),e.k0s(),e.j41(4,"span",22),e.bIt("click",function(){i.eBV(t);const s=e.XpG(4);return i.Njj(s.requestHelpModal())}),e.EFF(5),e.nI1(6,"translate"),e.nrm(7,"app-life-ring-solid-icon",23),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,2,"_i18n.RemoteAccess")," "),e.R7$(4),e.SpI(" ",e.bMT(6,4,"_i18n.RequestHelp")," "))}function yn(n,l){if(1&n){const t=e.RV6();e.j41(0,"b",24),e.EFF(1," Remote Access Requested - Waiting "),e.k0s(),e.j41(2,"b",25),e.bIt("click",function(){i.eBV(t);const s=e.XpG(4);return i.Njj(s.revokeRemoteAccess())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()}2&n&&(e.Y8G("translate","_i18n.RemoteAccessWaiting"),e.R7$(3),e.SpI(" ",e.bMT(4,2,"_i18n.Revoke")," "))}function Sn(n,l){if(1&n){const t=e.RV6();e.j41(0,"b",26),e.EFF(1," Remote Access Session - Started "),e.k0s(),e.j41(2,"b",25),e.bIt("click",function(){i.eBV(t);const s=e.XpG(4);return i.Njj(s.revokeRemoteAccess())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()}2&n&&(e.Y8G("translate","_i18n.RemoteSessionStarted"),e.R7$(3),e.SpI(" ",e.bMT(4,2,"_i18n.Revoke")," "))}function Tn(n,l){if(1&n&&e.nVh(0,_n,8,6)(1,yn,5,4)(2,Sn,5,4),2&n){let t;const a=e.XpG(3);e.vxM((t=l)===a.PbxRemoteAccessStatus.None?0:t===a.PbxRemoteAccessStatus.Requested?1:t===a.PbxRemoteAccessStatus.Active?2:-1)}}function Rn(n,l){if(1&n&&(e.nVh(0,Tn,3,1),e.nI1(1,"async")),2&n){let t;const a=e.XpG(2);e.vxM((t=e.bMT(1,1,a.remoteAccessState$))?0:-1,t)}}function xn(n,l){1&n&&e.nVh(0,Rn,2,3),2&n&&e.vxM(l.local?0:-1)}function kn(n,l){1&n&&e.nrm(0,"span",3)}function $n(n,l){1&n&&e.nrm(0,"span",28)}function Fn(n,l){1&n&&e.nrm(0,"span",29)}function In(n,l){if(1&n){const t=e.RV6();e.j41(0,"a",27),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.startDBMaintenance(!0===s.systemStatus.DBMaintenanceInProgress))}),e.j41(1,"span",5),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,$n,1,0,"span",28)(5,Fn,1,0,"span",29),e.k0s()}if(2&n){const t=e.XpG();e.AVh("disabled",t.systemStatus.DBMaintenanceInProgress),e.R7$(2),e.JRh(e.bMT(3,4,t.systemStatus.DBMaintenanceInProgress?"_i18n.DBMaintenanceInProgress":"_i18n.PerformDBMaintenance")),e.R7$(2),e.vxM(t.systemStatus.DBMaintenanceInProgress?5:4)}}function Mn(n,l){1&n&&e.nrm(0,"span",3)}function Pn(n,l){if(1&n&&e.nrm(0,"app-export-diagnostics",15),2&n){const t=e.XpG();e.Y8G("systemHealthStatus",t.systemHealthStatus)}}let jn=(()=>{class n{tokenInfo=(0,i.WQX)(C.Z);modalService=(0,i.WQX)(L.B);
1fileDownloadService=(0,i.WQX)(Ne.y);servicesApiService=(0,i.WQX)(Ue.W);dashboardService=(0,i.WQX)(ce.I);myUserApiService=(0,i.WQX)(Qt.b);systemStatusApiService=(0,i.WQX)(de.Z);systemStatusService=(0,i.WQX)(S.X);refreshAccess$=new K.t(!0);remoteAccessState$=this.refreshAccess$.pipe((0,A.n)(()=>this.systemStatusApiService.getRemoteAccessStatus().pipe((0,k.T)(t=>t.value),(0,Te.W)(()=>(0,He.of)(null)))));PbxRemoteAccessStatus=Wt;systemStatus;systemHealthStatus;requestHelpInProgress=!1;remoteAccessModal(){this.modalService.showComponent(Bt).pipe((0,A.n)(t=>t.decision===U.R.Ok&&t.payload?this.modalService.showComponent(Jt,{initialState:{requestHelpLink:t.payload}}):Be.w)).subscribe({next:()=>{this.refreshAccess$.next(!0)},error:t=>{this.modalService.error(t)}})}createTicket(){return this.myUserApiService.getMyUser({$select:["EmailAddress","Mobile","DisplayName"]}).pipe((0,Ht.s)(1),(0,A.n)(t=>this.modalService.showComponent(Nt,{initialState:{value:t}})),(0,A.n)(t=>t.decision===U.R.Ok?this.modalService.messageBox("_i18n.HelpRequestSuccessMessage","_i18n.HelpRequestSubmitted"):Be.w))}revokeRemoteAccess(){this.systemStatusApiService.revokeRemoteAccess().subscribe({next:()=>{this.refreshAccess$.next(!0)},error:t=>this.modalService.error(t)})}requestHelpModal(){this.requestHelpInProgress||(this.requestHelpInProgress=!0,this.systemStatusApiService.isRequestHelpEnabled().pipe((0,A.n)(t=>{if(t.CanCreateTicket)return this.createTicket();switch(t.CreateTicketStatus){case"KeyNotFound":return this.modalService.messageBox("_i18n.RequestHelpKeyNotFound","_i18n.RequestHelp",{link:t.FixUrl});case"KeyIsNotCommercial":return this.modalService.messageBox("_i18n.RequestHelpKeyIsNotCommercial","_i18n.RequestHelp",{link:t.FixUrl});case"KeyHasNoSupportTickets":return this.modalService.messageBox("_i18n.RequestHelpKeyHasNoSupportTickets","_i18n.RequestHelp",{link:t.FixUrl});case"KeyNotAssignedToUser":return this.modalService.messageBox("_i18n.RequestHelpKeyNotAssignedToUser","_i18n.RequestHelp");case"KeyAssignedToPartner":return this.modalService.messageBox("_i18n.RequestHelpKeyAssignedToPartner","_i18n.RequestHelp",{link:t.FixUrl});default:return this.modalService.messageBox("_i18n.RequestHelpUnexpected","_i18n.RequestHelp",{status:t.CreateTicketStatus})}})).subscribe({complete:()=>{this.refreshAccess$.next(!0),this.requestHelpInProgress=!1},error:t=>{this.requestHelpInProgress=!1,this.modalService.error(t)}}))}generateSupportInfo(t){this.fileDownloadService.download("/SupportInfo"),t.preventDefault(),t.stopPropagation()}openCaptureDialog(){this.modalService.showComponent(dn,{ignoreBackdropClick:!0}).subscribe({error:t=>this.modalService.error(t)})}restartOperatingSystem(){this.modalService.confirmation("_i18n.RestartOSWarning","_i18n.RestartOS").pipe((0,A.n)(()=>this.servicesApiService.restartOperatingSystem())).subscribe({error:t=>{this.modalService.error(t instanceof ee.yz&&500===t.status&&t.error?.Detail?t.error?.Detail:t)}})}startDBMaintenance(t){t||this.modalService.confirmation("_i18n.DBMaintenanceDescription","_i18n.PerformDBMaintenance").pipe((0,A.n)(()=>this.systemStatusService.startDBMaintenance())).subscribe({error:a=>this.modalService.error(a)})}downloadPlainLog(t){this.fileDownloadService.download("/ExtraLogging(custom)",{filename:"system_health"}),t.preventDefault(),t.stopPropagation()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-troubleshoot-dashboard"]],inputs:{systemStatus:"systemStatus",systemHealthStatus:"systemHealthStatus"},decls:38,vars:19,consts:[["label","_i18n.PrefTroubleshooting","data-qa","pref-troubleshooting"],[1,"card-icon","customSVGIcons","svg-sm"],[1,"office-body-row"],["app-spinner-regular-icon","",1,"customSVGIcons","svg-md"],["data-qa","capture",1,"d-flex","align-items-center","pointer",3,"click"],[1,"me-2"],["app-play-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["data-qa","generate-support-info",1,"d-flex","align-items-center","pointer",3,"click"],["app-file-arrow-down-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["routerLink","activity-log","data-qa","activity-log",1,"d-flex","align-items-center","gap-1"],["app-file-lines-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["routerLink","firewall","data-qa","firewall",1,"d-flex","align-items-center","gap-1"],[1,"d-flex","align-items-center","flex-wrap","gap-2"],["data-qa","download-plain-log","app-download-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md","pointer",3,"click"],["data-qa","db-maintenance",1,"d-flex","align-items-center",3,"disabled"],[3,"systemHealthStatus"],["routerLink","services","data-qa","services",1,"d-flex","align-items-center","gap-1"],[3,"ok"],["data-qa","restart-os",1,"d-flex","align-items-center","pointer",3,"click"],["app-power-off-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["role","button","data-qa","remote-access",1,"d-inline-flex","gap-1","align-items-center",3,"click"],[1,"fillIconBlue","svg-md"],["role","button","data-qa","request-support",1,"d-inline-flex","gap-1","align-items-center",3,"click"],[1,"fillIconBlue","svg-sm"],["data-qa","remote-status",1,"badge","bg-green","text-uppercase","p-2",3,"translate"],["data-qa","revoke-remote-access",1,"badge","bg-red","text-uppercase","p-2","pointer",3,"click"],["data-qa","revoke-remote-status-active",1,"badge","bg-green","text-uppercase","p-2",3,"translate"],["data-qa","db-maintenance",1,"d-flex","align-items-center",3,"click"],["app-database-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["app-spinner-regular-icon","",1,"customSVGIcons","fillIconBlue","svg-md"]],template:function(a,s){if(1&a&&(e.j41(0,"app-dashboard-card",0),e.nrm(1,"app-screwdriver-wrench-solid-icon",1),e.j41(2,"div",2),e.nVh(3,fn,1,0,"span",3)(4,bn,10,7),e.k0s(),e.j41(5,"div",2)(6,"a",4),e.bIt("click",function(){return s.openCaptureDialog()}),e.j41(7,"span",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"span",6),e.k0s(),e.j41(11,"a",7),e.bIt("click",function(c){return s.generateSupportInfo(c)}),e.j41(12,"span",5),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"span",8),e.k0s()(),e.j41(16,"div",2)(17,"a",9)(18,"span"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"span",10),e.k0s(),e.nVh(22,vn,1,0,"span",3)(23,Cn,5,4,"a",11),e.k0s(),e.j41(24,"div",2),e.nVh(25,xn,1,1),e.nI1(26,"async"),e.k0s(),e.j41(27,"div",2)(28,"div",12)(29,"span"),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"span",13),e.bIt("click",function(c){return s.downloadPlainLog(c)}),e.k0s()(),e.nVh(33,kn,1,0,"span",3)(34,In,6,6,"a",14),e.k0s(),e.j41(35,"div",2),e.nVh(36,Mn,1,0,"span",3)(37,Pn,1,1,"app-export-diagnostics",15),e.k0s()()),2&a){let o;e.R7$(3),e.vxM(s.systemStatus?4:3),e.R7$(5),e.JRh(e.bMT(9,9,"_i18n.Capture")),e.R7$(5),e.JRh(e.bMT(14,11,"_i18n.GenerateSupportInfo")),e.R7$(6),e.JRh(e.bMT(20,13,"_i18n.ActivityLog")),e.R7$(3),e.vxM(s.systemHealthStatus?23:22),e.R7$(3),e.vxM((o=e.bMT(26,15,s.tokenInfo.myToken$))?25:-1,o),e.R7$(5),e.JRh(e.bMT(31,17,"_i18n.ExportSystemHealth")),e.R7$(3),e.vxM(s.systemStatus?34:33),e.R7$(3),e.vxM(s.systemHealthStatus?37:36)}},dependencies:[Y,jt,Et.X,wt,Dt,Le.S,At,ae.Wk,Vt,pe.a,Ye,gn.j,Lt,De.e,_.D9,J.Jj],encapsulation:2,changeDetection:0})}return n})();var En=r(10467),Ke=r(30646),he=r(62382),qe=r(62564),ge=r(64631),wn=r(14723),Dn=r(67374),N=r.n(Dn);let An=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-cloud-arrow-down-solid-icon"],["","app-cloud-arrow-down-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128H144zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39V184c0-13.3-10.7-24-24-24s-24 10.7-24 24V318.1l-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})(),Vn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-cloud-check-solid-icon"],["","app-cloud-check-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9-.1-2.7-.2-5.4-.2-8.1 0-88.4 71.6-160 160-160 59.3 0 111 32.2 138.7 80.2A95.51 95.51 0 0 1 448 96c53 0 96 43 96 96 0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128zm289-239c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var Ze=r(77427);function Ln(n,l){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-cloud-arrow-down-solid-icon",1),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"b",2),e.EFF(6),e.j41(7,"span",3),e.
1EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(e.bMT(4,3,"_i18n.UpdatesAvailable")),e.R7$(3),e.SpI("",t.title," "),e.R7$(2),e.JRh(e.bMT(9,5,"_i18n.New"))}}function Hn(n,l){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"amTodayYesterdayPipe"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Lme(" ",e.bMT(2,2,"_i18n.LastCheckedUpdates"),": ",e.i5U(3,4,t.lastCheckTime,"L LT"))}}function Bn(n,l){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"amTodayYesterdayPipe"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Lme(" ",e.bMT(2,2,"_i18n.LastUpdated"),": ",e.i5U(3,4,t.lastUpdatedTime,"L LT"))}}function Gn(n,l){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-cloud-check-solid-icon",1),e.j41(2,"div")(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nVh(6,Hn,4,7,"span"),e.nVh(7,Bn,4,7,"span"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,3,"_i18n.SystemUpToDate")),e.R7$(2),e.vxM(t.lastCheckTime&&!t.updatedInThreePastDays?6:-1),e.R7$(),e.vxM(t.lastUpdatedTime&&t.updatedInThreePastDays?7:-1)}}function On(n,l){1&n&&e.nVh(0,Ln,10,7,"div",0)(1,Gn,8,5,"div",0),2&n&&e.vxM(l.title?0:1)}let Jn=(()=>{class n{updatesBadge=(0,i.WQX)(wn.r);lastCheckTime;lastUpdatedTime;get updatedInThreePastDays(){return this.lastUpdatedTime&&N()(this.lastUpdatedTime).isAfter(N()().subtract(3,"days"))}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-updates-dashboard"]],inputs:{lastCheckTime:"lastCheckTime",lastUpdatedTime:"lastUpdatedTime"},decls:2,vars:3,consts:[[1,"d-flex","align-items-center","gap-2"],[1,"customSVGIcons","fillIconGreen","svg-lg"],[1,"badge","bg-brand","p-1"],[1,"text-uppercase"]],template:function(a,s){if(1&a&&(e.nVh(0,On,2,1),e.nI1(1,"async")),2&a){let o;e.vxM((o=e.bMT(1,1,s.updatesBadge.updates$))?0:-1,o)}},dependencies:[An,Vn,J.Jj,_.D9,Ze.Y],styles:[".badge[_ngcontent-%COMP%]{margin-left:-4px;margin-bottom:10px}"],changeDetection:0})}return n})();var u=r(97201),te=r(4499);let et=(()=>{class n extends te.d{getChatLogSettings(t,a="body"){const s=t?.$select,o=t?.$expand;let c=new u.rx(this.encoder);c=this.addToHttpParams(c,"$select",s,u.l2.Form,!1),c=this.addToHttpParams(c,"$expand",o,u.l2.Form,!1);let p=this.defaultHeaders;p=this.configuration.addCredentialToHeaders("Application","Authorization",p,"Bearer ");const d=this.configuration.selectHeaderAccept(["application/json"]);void 0!==d&&(p=p.set("Accept",d));let g="json";d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("get",`${y}/ChatLogSettings`,{params:c.toHttpParams(),responseType:g,...h?{withCredentials:h}:{},headers:p,observe:a})}getChatLogSettingsQuery(t,a="body",s=!1,o){const c=t.$select,p=t.$expand;let d=new u.rx(this.encoder);return d=this.addToHttpParams(d,"$select",c,u.l2.Form,!1),d=this.addToHttpParams(d,"$expand",p,u.l2.Form,!1),"/ChatLogSettings?"+d.toString()}updateChatLogSettings(t,a="body"){const s=t?.pbxChatLogSettings;let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=this.configuration.selectHeaderAccept(["application/json"]);void 0!==c&&(o=o.set("Accept",c));const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(o=o.set("Content-Type",d));let g="json";c&&(g=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("patch",`${y}/ChatLogSettings`,{body:s,responseType:g,...h?{withCredentials:h}:{},headers:o,observe:a})}updateChatLogSettingsQuery(t,a="body",s=!1,o){return"/ChatLogSettings"}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const $e={NotConfigured:"NotConfigured",PartiallyConfigured:"PartiallyConfigured",Configured:"Configured"};var Fe=r(534),Xn=r(72788);let Un=(()=>{class n extends q.m{chatLogSettingsApi=(0,i.WQX)(et);destroy$=(0,i.WQX)(i.abz);cd=(0,i.WQX)(x.gRc);xapiError=(0,i.WQX)(me.Ko);buttons=U.P.OkCancel;settings;form=new m.gE({AutoClearMonths:new m.MJ(0),AutoCloseDays:new m.MJ(0),AutoCloseEnabled:new m.MJ(!1),AutoClearEnabled:new m.MJ(!1)});validateBeforeSubmit=this.createDialogValidate(this.form,this.cd);get f(){return this.form.controls}get autoCleanAvailable(){return!this.settings.RemoteStorageEnabled}ngOnInit(){this.form.setValue({AutoClearMonths:this.autoCleanAvailable?this.settings.AutoClearMonths??0:0,AutoCloseDays:this.settings.AutoCloseDays??0,AutoClearEnabled:this.autoCleanAvailable&&!!this.settings.AutoClearMonths,AutoCloseEnabled:!!this.settings.AutoCloseDays},{emitEvent:!1}),(0,j.TZ)(this.f.AutoClearEnabled,this.autoCleanAvailable),(0,j.XP)(this.f.AutoCloseEnabled).pipe((0,F.pQ)(this.destroy$)).subscribe(t=>(0,j.TZ)(this.f.AutoCloseDays,t)),(0,j.XP)(this.f.AutoClearEnabled).pipe((0,F.pQ)(this.destroy$)).subscribe(t=>(0,j.TZ)(this.f.AutoClearMonths,t))}submit$=()=>{const{AutoCloseDays:t,AutoClearMonths:a}=this.form.value;return this.chatLogSettingsApi.updateChatLogSettings({pbxChatLogSettings:{AutoClearMonths:a??0,AutoCloseDays:t??0}}).pipe(this.handleError(this.xapiError,this.cd,this.form,!1))};static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],hostVars:2,hostBindings:function(a,s){2&a&&e.AVh("modal-lg",!0)},inputs:{settings:"settings"},features:[e.Vt3],decls:24,vars:29,consts:[["header","_i18n.ChatLogSettings",3,"submitted","buttons","validateBeforeSubmit","showValidation","submit$"],[1,"d-flex","align-items-center","flex-wrap","row-gap-2"],["data-qa","enable-auto-close","label","_i18n.AutoCloseCheckboxLabel",1,"mb-0",3,"formControl"],["data-qa","auto-close-days","units","_i18n.AutoCloseDaysLabel",1,"mb-0",3,"formControl","min","max"],["data-qa","auto-close-days-validation",3,"control"],[1,"d-flex","align-items-center","flex-wrap","row-gap-2",3,"tooltip"],["data-qa","enable-auto-clear","label","_i18n.AutoCleanCheckboxLabel",1,"mb-0",3,"formControl"],["data-qa","auto-clear-months","units","_i18n.AutoCleanMonthsLabel",1,"mb-0",3,"formControl","min","max"],["data-qa","auto-clear-months-validation",3,"control"]],template:function(a,s){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.j41(1,"fieldset")(2,"legend"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",1),e.nrm(9,"field-checkbox",2)(10,"field-input-number",3),e.k0s(),e.nrm(11,"val-errors",4),e.k0s(),e.j41(12,"fieldset")(13,"legend"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"p"),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div",5),e.nI1(20,"translate"),e.nrm(21,"f
1ield-checkbox",6)(22,"field-input-number",7),e.k0s(),e.nrm(23,"val-errors",8),e.k0s()()),2&a&&(e.Y8G("buttons",s.buttons)("validateBeforeSubmit",s.validateBeforeSubmit)("showValidation",s.showValidation)("submit$",s.submit$),e.R7$(3),e.JRh(e.bMT(4,19,"_i18n.AutoClose")),e.R7$(3),e.JRh(e.bMT(7,21,"_i18n.EnablingAutoCloseDesc")),e.R7$(3),e.Y8G("formControl",s.f.AutoCloseEnabled),e.R7$(),e.Y8G("formControl",s.f.AutoCloseDays)("min",0)("max",365),e.R7$(),e.Y8G("control",s.f.AutoCloseDays),e.R7$(3),e.JRh(e.bMT(15,23,"_i18n.AutoClean")),e.R7$(3),e.JRh(e.bMT(18,25,"_i18n.EnablingAutoCleanDesc")),e.R7$(2),e.Y8G("tooltip",s.autoCleanAvailable?"":e.bMT(20,27,"_i18n.RemoteArchivingConfigured")),e.R7$(2),e.Y8G("formControl",s.f.AutoClearEnabled),e.R7$(),e.Y8G("formControl",s.f.AutoClearMonths)("min",0)("max",120),e.R7$(),e.Y8G("control",s.f.AutoClearMonths))},dependencies:[Z.p,xe.t,Xn.B,Fe.dg,ue.N4,ue.IH,m.X1,m.BC,m.l_,_.D9],encapsulation:2,changeDetection:0})}return n})();var tt=r(85343);function Nn(n,l){if(1&n&&(e.rj2(0,"b"),e.EFF(1),e.nI1(2,"translate"),e.eux()),2&n){const t=e.XpG();e.HbH("badge text-uppercase p-2 "+t.bgEnabled),e.R7$(),e.JRh(e.bMT(2,3,"_i18n.Enabled"))}}function Qn(n,l){if(1&n&&(e.rj2(0,"b"),e.EFF(1),e.nI1(2,"translate"),e.eux()),2&n){const t=e.XpG();e.HbH("badge text-uppercase p-2 "+t.bgDisabled),e.R7$(),e.JRh(e.bMT(2,3,"_i18n.Off"))}}let nt=(()=>{class n{bgEnabled="bg-green";bgDisabled="bg-red";ok;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-enabled-or-off"]],inputs:{bgEnabled:"bgEnabled",bgDisabled:"bgDisabled",ok:"ok"},decls:2,vars:1,consts:[[3,"class"]],template:function(a,s){1&a&&e.nVh(0,Nn,3,5,"b",0)(1,Qn,3,5,"b",0),2&a&&e.vxM(s.ok?0:1)},dependencies:[_.D9],encapsulation:2,changeDetection:0})}return n})();function Wn(n,l){1&n&&e.nrm(0,"span",3)}function zn(n,l){1&n&&(e.j41(0,"b",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.AutoUpdatesEnabled")))}function Yn(n,l){1&n&&(e.j41(0,"b",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.AutoUpdatesDisabled")))}function Kn(n,l){if(1&n&&(e.j41(0,"a",9),e.nrm(1,"app-updates-dashboard",10),e.k0s(),e.j41(2,"a",11),e.nVh(3,zn,3,3,"b",12)(4,Yn,3,3,"b",13),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("lastCheckTime",t.systemStatus.LastCheckForUpdates)("lastUpdatedTime",t.systemStatus.LastSuccessfulUpdate),e.R7$(2),e.vxM(t.systemStatus.AutoUpdateEnabled?3:4)}}function qn(n,l){1&n&&e.nrm(0,"span",3)}function Zn(n,l){1&n&&(e.j41(0,"b",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.AttentionRequired")))}function ea(n,l){1&n&&(e.j41(0,"b",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.NotConfiguredLabel")))}function ta(n,l){1&n&&(e.j41(0,"b",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.PartiallyConfigured")))}function na(n,l){1&n&&(e.j41(0,"b",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Configured")))}function aa(n,l){if(1&n&&e.nVh(0,ea,3,3,"b",13)(1,ta,3,3,"b",13)(2,na,3,3,"b",12),2&n){let t;const a=e.XpG(2);e.vxM((t=a.systemStatus.RemoteStorageStatus)===a.PbxRemoteStorageStatus.NotConfigured?0:t===a.PbxRemoteStorageStatus.PartiallyConfigured?1:t===a.PbxRemoteStorageStatus.Configured?2:-1)}}function sa(n,l){if(1&n){const t=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.goToRemoteStorage())}),e.j41(1,"span",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,Zn,3,3,"b",13)(5,aa,3,1),e.k0s()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"_i18n.RemoteStorage")),e.R7$(2),e.vxM(t.systemStatus.RemoteConfigurationRequired?4:5)}}function oa(n,l){1&n&&e.nrm(0,"span",3)}function ia(n,l){if(1&n&&(e.j41(0,"b",20),e.EFF(1),e.nI1(2,"amLocal"),e.nI1(3,"amDateFormat"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(e.i5U(3,3,e.bMT(2,1,t.systemStatus.LastBackupDateTime),"lll"))}}function ra(n,l){if(1&n){const t=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.systemStatus.RemoteStorageEnabled?s.goToRemoteStorage():s.goToScheduleBackup())}),e.j41(1,"span",17),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",18),e.nrm(5,"app-enabled-or-off",19),e.nVh(6,ia,4,6,"b",20),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"_i18n.AutomaticBackup")),e.R7$(3),e.Y8G("ok",t.systemStatus.BackupScheduled),e.R7$(),e.vxM(t.systemStatus.LastBackupDateTime?6:-1)}}function la(n,l){1&n&&e.nrm(0,"span",3)}
1function ca(n,l){1&n&&(e.j41(0,"b",23),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Full")))}function pa(n,l){if(1&n&&(e.j41(0,"a",21)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"div",22),e.nVh(5,ca,3,3,"b",23),e.j41(6,"b",24),e.nI1(7,"translate"),e.EFF(8),e.nI1(9,"fileSize"),e.nI1(10,"fileSize"),e.k0s()()),2&n){const t=e.XpG();e.Y8G("routerLink",e.mNQ(t.myToken.globalAdmin?"/office/recordings":"/people")),e.R7$(2),e.JRh(e.bMT(3,9,"_i18n.Recordings")),e.R7$(3),e.vxM(t.systemStatus.RecordingStopped?5:-1),e.R7$(),e.HbH(t.getBadgeClass(t.systemStatus.RecordingQuotaReached)),e.Y8G("tooltip",e.bMT(7,11,t.systemStatus.RecordingQuotaReached?"_i18n.RecordingQuotaReachedDescription":"")),e.R7$(2),e.Lme(" ",t.systemStatus.RecordingUsedSpace?e.bMT(9,13,t.systemStatus.RecordingUsedSpace):"0.00"," / ",t.systemStatus.RecordingQuota?e.bMT(10,15,t.systemStatus.RecordingQuota):"0.00"," ")}}function da(n,l){1&n&&e.nrm(0,"span",3)}function ma(n,l){1&n&&(e.j41(0,"b",26),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Full")))}function ua(n,l){if(1&n&&(e.j41(0,"a",25)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"div",22),e.nVh(5,ma,3,3,"b",26),e.j41(6,"b",27),e.nI1(7,"translate"),e.EFF(8),e.nI1(9,"fileSize"),e.nI1(10,"fileSize"),e.nI1(11,"fileSize"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"_i18n.AuditCfgItemVmailSettings")),e.R7$(3),e.vxM(t.systemStatus.VoicemailStopped?5:-1),e.R7$(),e.HbH(t.getBadgeClass(t.systemStatus.VoicemailQuotaReached)),e.Y8G("tooltip",e.bMT(7,9,t.systemStatus.VoicemailQuotaReached?"_i18n.VoicemailQuotaReachedDescription":"")),e.R7$(2),e.Lme(" ",t.voicemailSettings.UsedSpace?e.bMT(9,11,t.voicemailSettings.UsedSpace):"0.00"," / ",t.voicemailSettings.Quota?e.bMT(11,15,t.voicemailSettings.Quota*t.GB):e.bMT(10,13,t.systemStatus.TotalDiskSpace??0)," ")}}function ha(n,l){1&n&&e.nrm(0,"span",3)}function ga(n,l){if(1&n){const t=e.RV6();e.j41(0,"b",29),e.bIt("click",function(){i.eBV(t);const s=e.XpG(2);return i.Njj(s.dashboardService.goToMaintenance())}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"fileSize"),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"_i18n.Purge")," ",e.bMT(3,4,t.systemDatabaseInformation.CallsUsedSpace??0)||"0.00 GB")}}function fa(n,l){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",18),e.nVh(4,ga,4,6,"b",28),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"_i18n.CallLog")),e.R7$(3),e.vxM(t.myToken.globalAdmin?4:-1)}}function ba(n,l){1&n&&e.nrm(0,"span",3)}function va(n,l){1&n&&(e.j41(0,"span",31),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Enabled")))}function Ca(n,l){1&n&&(e.j41(0,"span",32),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.Disabled")))}function _a(n,l){if(1&n){const t=e.RV6();e.j41(0,"b",33),e.bIt("click",function(){i.eBV(t);const s=e.XpG(2);return i.Njj(s.dashboardService.goToMaintenance())}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"fileSize"),e.k0s(),e.j41(4,"a",34),e.bIt("click",function(){i.eBV(t);const s=e.XpG(2);return i.Njj(s.openChatSettings())}),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"_i18n.Purge")," ",e.bMT(3,4,t.systemDatabaseInformation.ChatsUsedSpace??0)||"0.00 GB")}}function ya(n,l){if(1&n){const t=e.RV6();e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",18)(4,"b",30),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.chatLogEnableModal(!0===s.systemStatus.IsChatLogEnabled))}),e.nVh(5,va,3,3,"span",31)(6,Ca,3,3,"span",32),e.k0s(),e.nVh(7,_a,5,6),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,7,"_i18n.ChatLog")),e.R7$(3),e.HbH(t.getBadgeClass(!t.systemStatus.IsChatLogEnabled)),e.AVh("pointer",!0),e.R7$(),e.vxM(t.systemStatus.IsChatLogEnabled?5:6),e.R7$(2),e.vxM(t.myToken.globalAdmin&&t.systemStatus.IsChatLogEnabled?7:-1)}}let Sa=(()=>{class n{modalService=(0,i.WQX)(L.B);systemStatusService=(0,i.WQX)(S.X);dashboardService=(0,i.WQX)(ce.I);router=(0,i.WQX)(B.Ix);chatLogSettingsApiService=(0,i.WQX)(et);myToken;systemDatabaseInformation;voicemailSettings;systemStatus;GB=re.GB;openChatSettings(){this.chatLogSettingsApiService.getChatLogSettings({}).subscribe(t=>this.modalService.showDialog(Un,{settings:t}))}chatLogEnableModal(t){this.modalService.confirmation(t?"_i18n.ChatLogDisableMessage":"_i18n.ChatLogEnableMessage",t?"_i18n.ChatLogDisableHeader":"_i18n.ChatLogEnableHeader").pipe((0,A.n)(()=>this.systemStatusService.setChatLogStatus(!t))).subscribe({error:o=>this.modalService.error(o)})}getBadgeClass(t){return"badge text-uppercase p-2 "+(t?"bg-red":"bg-green")}goToRemoteStorage(){this.router.navigate(["office/system/remote-storage"]).catch(tt.l)}goToScheduleBackup(){var t=this;return(0,En.A)(function*(){yield t.router.navigate(["office/backup-and-restore"],{queryParams:{backupSchedule:!0}})})()}PbxRemoteStorageStatus=$e;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-maintenance-dashboard"]],inputs:{myToken:"myToken",systemDatabaseInformation:"systemDatabaseInformation",voicemailSettings:"voicemailSettings",systemStatus:"systemStatus"},decls:32,vars:13,consts:[["label","_i18n.SystemMaintenance","data-qa","system-maintenance"],[1,"card-icon","customSVGIcons","svg-sm"],[1,"office-body-row"],["app-spinner-regular-icon","",1,"customSVGIcons","svg-md"],["data-qa","remote-storage",1,"d-flex","align-items-center","gap-2","pointer","w-100"],[1,"d-flex","align-items-center","col-gap-2","row-gap-1","pointer","w-100","flex-wrap","flex-md-nowrap"],["routerLink","/office/system/maintenance","data-qa","maintenance-text"],[1,"d-flex","gap-2"],["routerLink","/office/system/maintenance","data-qa","cleanup-firmware",1,"badge","bg-dark","p-2","ms-2","pointer"],["data-qa","updates","routerLink","/office/system/updates",1,"d-flex","align-items-center","gap-2"],[3,"lastCheckTime","lastUpdatedTime"],["data-qa","system-updates","routerLink","/office/system/updates"],[1,"badge","bg-green","text-uppercase","p-2"],[1,"badge","bg-red","text-uppercase","p-2"],["data-qa","remote-storage",1,"d-flex","align-items-center","gap-2","pointer","w-100",3,"click"],[1,"flex-1"],[1,"d-flex","align-items-center","col-gap-2","row-gap-1","pointer","w-100","flex-wrap","flex-md-nowrap",3,"click"],["data-qa","automatic-backup",1,"flex-1"],[1,"d-flex","align-items-center"],["data-qa","backup-status",3,"ok"],["data-qa","last-backup-date",1,"badge","bg-dark","p-2","ms-2"],["data-qa","recordings-text",3,"routerLink"],[1,"d-flex","align-items-center","gap-2"],["data-qa","recordings-stopped",1,"badge","bg-red","text-uppercase","p-2"],["data-qa","recordings-used-space","container","body",3,"tooltip"],["routerLink","/office/system/voice-mail","data-qa","voicemail-text"],["data-qa","vmails-stopped",1,"badge","bg-red","text-uppercase","p-2"],["data-qa","vmails-used-space","container","body",3,"tooltip"],["data-qa","disable-call-logs",1,"badge","bg-dark","p-2","ms-2","pointer"],["data-qa","disable-call-logs",1,"badge","bg-dark","p-2","ms-2","pointer",3,"click"],["data-qa","chat-logs-badge",3,"click"],["data-qa","enable-chat-logs"],["data-qa","disabled-chat-logs"],["data-qa","purge-chats",1,"badge","bg-dark","p-2","ms-2","pointer",3,"click"],["data-qa","open-chat-settings","app-gear-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md","pointer","ms-2",3,"click"]],template:function(a,s){1&a&&(e.j41(0,"app-dashboard-card",0),e.nrm(1,"app-gear-solid-icon",1),e.j41(2,"div",2),e.nVh(3,Wn,1,0,"span",3)(4,Kn,5,3),e.k0s(),e.j41(5,"div",2),e.nVh(6,qn,1,0,"span",3)(7,sa,6,4,"div",4),e.k0s(),e.j41(8,"div",2),e.nVh(9,oa,1,0,"span",3)(10,ra,7,5,"div",5),e.k0s(),e.j41(11,"div",2)(12,"a",6)(13,"span"),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",7)(17,"b",8),e.
1EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"div",2),e.nVh(21,la,1,0,"span",3)(22,pa,11,17),e.k0s(),e.j41(23,"div",2),e.nVh(24,da,1,0,"span",3)(25,ua,12,17),e.k0s(),e.j41(26,"div",2),e.nVh(27,ha,1,0,"span",3)(28,fa,5,4),e.k0s(),e.j41(29,"div",2),e.nVh(30,ba,1,0,"span",3)(31,ya,8,9),e.k0s()()),2&a&&(e.R7$(3),e.vxM(s.systemStatus?4:3),e.R7$(3),e.vxM(s.systemStatus?7:6),e.R7$(3),e.vxM(s.systemStatus?10:9),e.R7$(5),e.JRh(e.bMT(15,9,"_i18n.Maintenance")),e.R7$(4),e.JRh(e.bMT(19,11,"_i18n.Purge")),e.R7$(3),e.vxM(s.systemStatus?22:21),e.R7$(3),e.vxM(s.voicemailSettings&&s.systemStatus?25:24),e.R7$(3),e.vxM(s.systemDatabaseInformation?28:27),e.R7$(3),e.vxM(s.systemStatus&&s.systemDatabaseInformation?31:30))},dependencies:[Y,Ke.n,ae.Wk,pe.a,Jn,Fe.dg,nt,he.a,qe.s,ge.h,_.D9],encapsulation:2,changeDetection:0})}return n})();var Ta=r(25244),Ra=r(81074);let xa=(()=>{class n{transform(t){return function ka(n,l){return n?"_i18n.3CXHosted":l?"_i18n.SelfHosted":"_i18n.OnPremise"}(t.IsHosted3CX,t.IsHosted)}static \u0275fac=function(a){return new(a||n)};static \u0275pipe=e.EJ8({name:"appInstallationType",type:n,pure:!0})}return n})();const $a=n=>({count:n}),Fa=n=>({"badge bg-red text-sm":n});function Ia(n,l){1&n&&e.nrm(0,"span",3)}function Ma(n,l){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"span",11),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"amLocal"),e.nI1(6,"amDateFormat"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(3),e.Lme("",e.bMT(4,2,"_i18n.ValidUntil")," ",e.i5U(6,6,e.bMT(5,4,t.systemStatus.ExpirationDate),"ll"))}}function Pa(n,l){1&n&&(e.j41(0,"span",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.LicenseExpired")))}function ja(n,l){1&n&&(e.j41(0,"span",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.LicenseActivationFailed")))}function Ea(n,l){if(1&n&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.myPartner)}}function wa(n,l){1&n&&(e.j41(0,"a",10),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.LicenseLinkPartner")))}function Da(n,l){if(1&n&&(e.j41(0,"a",4)(1,"span",5),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",6),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nVh(7,Ma,7,9,"div",7),e.nVh(8,Pa,3,3,"span",8)(9,ja,3,3,"span",8),e.k0s(),e.j41(10,"a",9)(11,"span"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nVh(14,Ea,2,1,"strong")(15,wa,3,3,"a",10),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,6,t.productName)),e.R7$(3),e.JRh(e.i5U(6,8,"_i18n.LicenseSimCalls",e.eq3(13,$a,t.systemStatus.MaxSimCalls))),e.R7$(2),e.vxM(t.systemStatus.ExpirationDate?7:-1),e.R7$(),e.vxM(!t.systemStatus.LicenseActive&&t.systemStatus.Activated?8:t.systemStatus.LicenseActive||t.systemStatus.Activated?-1:9),e.R7$(4),e.JRh(e.bMT(13,11,"_i18n.Partner")),e.R7$(2),e.vxM(t.myPartner?14:15)}}function Aa(n,l){1&n&&e.nrm(0,"span",3)}function Va(n,l){if(1&n&&(e.j41(0,"a",12)(1,"span",13),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",14),e.EFF(5),e.k0s()(),e.j41(6,"span"),e.EFF(7),e.nI1(8,"translate"),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"_i18n.LicenseOwner")),e.R7$(3),e.JRh(t.licenseStatus.EMail),e.R7$(2),e.Lme("",e.bMT(8,6,"_i18n.LicenseVersion")," ",t.getUpdateVersion(t.systemParams.Version,t.versionType.Type))}}function La(n,l){if(1&n&&(e.j41(0,"strong",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" - ",e.bMT(2,1,t.failoverSettings.Mode===t.PbxFailoverMode.Active?"_i18n.Active":"_i18n.Passive")," ")}}function Ha(n,l){if(1&n&&(e.j41(0,"div",2)(1,"span",15)(2,"span",16),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"translate"),e.k0s(),e.j41(6,"app-simple-copy",17)(7,"strong"),e.EFF(8),e.k0s()()(),e.j41(9,"span",15)(10,"span",18),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"strong"),e.EFF(14),e.nI1(15,"appInstallationType"),e.nI1(16,"translate"),e.k0s(),e.nVh(17,La,3,3,"strong",19),e.k0s()(),e.j41(18,"div",2)(19,"div",20)(20,"span",21),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"span")(24,"span",22),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"strong"),e.EFF(28),e.k0s()(),e.j41(29,"span")(30,"span",23),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"strong"),e.EFF(34),e.k0s()(),e.j41(35,"span")(36,"span",24),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.j41(39,"strong"),e.EFF(40),e.k0s()(),e.j41(41,"span")(42,"span",25),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"strong"),e.EFF(46),e.k0s(),e.EFF(47,"-"),e.j41(48,"strong"),e.EFF(49),e.k0s()()(),e.j41(50,"div",20)(51,"span")(52,"span",26),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.j41(55,"strong"),e.EFF(56),e.k0s()(),e.j41(57,"span")(58,"span",27),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.j41(61,"strong"),e.EFF(62),e.k0s()()()()),2&n){const t=e.XpG();e.R7$(3),e.Lme("",t.systemParams.Is3CXFQDN?"3CX":e.bMT(4,22,"_i18n.Custom")," ",e.bMT(5,24,"_i18n.LicenseCardFQDN")),e.R7$(3),e.Y8G("source",t.systemParams.FQDN)("showIcon",!0),e.R7$(2),e.JRh(t.systemParams.FQDN),e.R7$(3),e.JRh(e.bMT(12,26,"_i18n.InstallType")),e.R7$(3),e.JRh(e.bMT(16,30,e.bMT(15,28,t.systemParams))),e.R7$(3),e.vxM(t.failoverSettings&&t.failoverSettings.Enabled?17:-1),e.R7$(4),e.JRh(e.bMT(22,32,"_i18n.Ports")),e.R7$(4),e.SpI("",e.bMT(26,34,"_i18n.Sip"),":"),e.R7$(3),e.JRh(t.systemParams.SipPort),e.R7$(3),e.SpI("",e.bMT(32,36,"_i18n.Sips"),":"),e.R7$(3),e.JRh(t.systemParams.SipsPort),e.R7$(3),e.SpI("",e.bMT(38,38,"_i18n.Tunnel"),":"),e.R7$(3),e.JRh(t.systemParams.TunnnelPort),e.R7$(3),e.SpI("",e.bMT(44,40,"_i18n.Media"),":"),e.R7$(3),e.JRh(t.systemParams.FirstExternalPort),e.R7$(3),e.JRh(t.systemParams.WebrtcLastPort),e.R7$(4),e.SpI("",e.bMT(54,42,"_i18n.Http"),":"),e.R7$(3),e.JRh(t.systemParams.HttpPort),e.R7$(3),e.SpI("",e.bMT(60,44,"_i18n.Https"),":"),e.R7$(3),e.JRh(t.systemParams.HttpsPort)}}function Ba(n,l){1&n&&e.nrm(0,"span",3)}function Ga(n,l){1&n&&(e.j41(0,"span",31),e.EFF(1,"Static"),e.k0s())}function Oa(n,l){if(1&n&&(e.j41(0,"app-simple-copy",17)(1,"strong",30)(2,"span",18),e.EFF(3),e.k0s(),e.nVh(4,Ga,2,0,"span",31),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("source",t.systemStatus.IpV4)("showIcon",t.systemStatus.LocalIpValid),e.R7$(),e.Y8G("ngClass",e.eq3(5,Fa,-1===t.systemStatus.Ip.indexOf("Static"))),e.R7$(2),e.JRh(t.systemStatus.Ip),e.R7$(),e.vxM(-1!==t.systemStatus.Ip.indexOf("Static")?4:-1)}}function Ja(n,l){if(1&n){const t=e.RV6();e.j41(0,"strong",32),e.bIt("click",function(){i.eBV(t);const s=e.XpG(2);return i.Njj(s.showInvalidIpMessage(s.systemStatus.AvailableLocalIps??"",s.systemStatus.CurrentLocalIp??""))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"_i18n.InvalidLocalIpWarning")," "))}function Xa(n,l){if(1&n&&(e.j41(0,"app-simple-copy",17)(1,"strong",18),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("source",t.systemStatus.IpV6)("showIcon",!0),e.R7$(2),e.JRh(t.systemStatus.IpV6)}}function Ua(n,l){1&n&&(e.j41(0,"span",29),e.EFF(1,"N/A"),e.k0s())}function Na(n,l){if(1&n&&(e.j41(0,"span",15)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,Oa,5,7,"app-simple-copy",17),e.nVh(5,Ja,3,3,"strong",28),e.k0s(),e.j41(6,"span",15)(7,"span"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nVh(10,Xa,3,3,"app-simple-copy",17)(11,Ua,2,0,"span",29),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,5,"_i18n.LicenseIPv4")),e.R7$(2),e.vxM(t.systemStatus.Ip?4:-1),e.R7$(),e.vxM(t.systemStatus.LocalIpValid?-1:5),e.R7$(3),e.JRh(e.bMT(9,7,"_i18n.LicenseIPv6")),e.R7$(2),e.vxM(t.systemStatus.IpV6?10:11)}}function Qa(n,l){1&n&&e.nrm(0,"span",3)}function Wa(n,l){if(1&n){const t=e.RV6();e.j41(0,"span",37),e.bIt("click",function(){i.eBV(t);const s=e.XpG(2);return i.Njj(s.toggleMultiCompanyMode())}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"app-enabled-or-off",38),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"_i18n.MultiCompany")),e.R7$(2),e.Y8G("ok",t.systemParams.IsMulticompanyMode)}}function za(n,l){1&n&&(e.j41(0,"span",36)(1,"strong"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",39),e.nI1(5,"translate"),e.EFF(6,"N/A"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,2,"_i18n.MultiCompany")),e.R7$(2),e.Y8G("tooltip",e.bMT(5,4,"_i18n.TooltipMcmSwitcherDisabled")))}function Ya(n,l){if(1&n&&(e.j41(0,"a",33)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"b",34),e.EFF(5),e.k0s()(),e.j41(6,"div",20),e.nVh(7,Wa,5,4,"span",35)(8,za,7,6,"span",36),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"_i18n.ActiveCalls")),e.R7$(3),e.Lme("",t.systemStatus.CallsActive??0," / ",t.systemStatus.MaxSimCalls??0),e.R7$(2),e.vxM(t.systemParams&&t.mcmSwitchAllowed?7:8)}}function Ka(n,l){1&n&&e.nrm(0,"span",3)}function qa(n,l){1&n&&e.nrm(0,"app-circle-exclamation-solid-icon",43)}function Za(n,l){1&n&&e.nrm(0,"app-status-icon",44),2&n&&e.Y8G("ok",!0)}function es(n,l){if(1&n&&(e.j41(0,"div",40)(1,"a",41),e.nI1(2,"translate"),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"strong",42),e.EFF(6),e.k0s(),e.nVh(7,qa,1,0,"app-circle-exclamation-solid-icon",43)(8,Za,1,1,"app-status-icon",44),e.k0s()(),e.j41(9,"a",45)(10,"span"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.nrm(13,"app-status-icon",44),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("href",e.bMT(2,7,"_i18n.PricingUri"),e.B4B),e.R7$(2),e.SpI(" ",e.bMT(4,9,"_i18n.UserExt")," "),e.R7$(3),e.Lme(" ",t.systemStatus.UserExtensions," / ",t.systemStatus.MaxUserExtensions," "),e.R7$(),e.vxM(t.systemStatus.UserExtensions>t.systemStatus.MaxUserExtensions?7:8),e.R7$(4),e.JRh(e.bMT(12,11,"_i18n.SystemExtensions")),e.R7$(2),e.Y8G("ok",!t.systemStatus.HasUnregisteredSystemExtensions)}}function ts(n,l){1&n&&e.nrm(0,"span",3)}function ns(n,l){if(1&n&&(e.j41(0,"a",46)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"span",47),e.k0s(),e.j41(5,"a",48)(6,"span"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"app-enabled-or-off",44),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"_i18n.Sessions")),e.R7$(5),e.JRh(e.bMT(8,5,"_i18n.AuditLogs")),e.R7$(2),e.Y8G("ok",t.systemStatus.IsAuditLogEnabled)}}let as=(()=>{class n{dashboardService=(0,i.WQX)(ce.I);modalService=(0,i.WQX)(L.B);router=(0,i.WQX)(B.Ix);licenseStatus;versionType;myPartner;productName;failoverSettings;systemParams;systemStatus;systemHealthStatus;licenseIsPaid;PbxFailoverMode=Ra.q;
1getUpdateVersion(t,a){return(0,le.HF)(t,a,this.systemParams?.AIVersion)}get mcmSwitchAllowed(){return!0===this.systemParams?.IsMulticompanyMode||!!this.licenseStatus.MaxSimCalls&&this.licenseStatus.MaxSimCalls>=16}toggleMultiCompanyMode(){this.router.navigate(["office","system","multi-company-mode"])}showInvalidIpMessage(t,a){this.modalService.confirmation("_i18n.InvalidLocalIpMessage","_i18n.Information",{p0:t,p1:a}).subscribe(()=>{this.router.navigate(["office","advanced","network"]).catch(tt.l)})}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-system-info-dashboard"]],inputs:{licenseStatus:"licenseStatus",versionType:"versionType",myPartner:"myPartner",productName:"productName",failoverSettings:"failoverSettings",systemParams:"systemParams",systemStatus:"systemStatus",systemHealthStatus:"systemHealthStatus",licenseIsPaid:"licenseIsPaid"},decls:21,vars:7,consts:[["label","_i18n.SystemInfo","data-qa","system-info"],["app-info-circle-regular-icon","",1,"card-icon","customSVGIcons","svg-sm"],[1,"office-body-row"],["app-spinner-regular-icon","",1,"customSVGIcons","svg-md"],["routerLink","/office/system/license","data-qa","license-info",1,"d-flex","align-items-center","gap-1","flex-wrap","flex-md-nowrap"],["data-qa","type",1,"me-1","md-visible"],["data-qa","license-sim-calls",1,"me-1","fw-bold"],[1,"link","d-flex","align-items-center","gap-1","me-1"],["data-qa","license-expired",1,"badge","text-sm","me-1","bg-red"],["routerLink","/office/system/license","data-qa","partner",1,"d-flex","align-items-center","gap-1","flex-wrap","flex-md-nowrap"],["data-qa","license-link-partner",1,"link"],["app-pencil-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-xs"],["routerLink","/office/system/license","data-qa","license-owner",1,"d-flex","align-items-center","gap-1"],["data-qa","license-owner",1,"md-visible"],["data-qa","license-email",1,"link"],[1,"d-flex","align-items-center","gap-1"],["data-qa","is-3cx-fqdn",1,"md-visible"],[3,"source","showIcon"],[1,"md-visible"],["data-qa","failover-mode"],[1,"d-flex","flex-wrap","align-items-center","gap-1"],["data-qa","network-ports",1,"md-visible"],["data-qa","sip"],["data-qa","sips"],["data-qa","tunnel"],["data-qa","media"],["data-qa","httpPort"],["data-qa","httpsPort"],["data-qa","local-ip-valid",1,"badge","bg-red","text-sm","pointer"],[1,"badge","bg-primary","text-uppercase","p-2"],[3,"ngClass"],[1,"d-inline","d-md-none"],["data-qa","local-ip-valid",1,"badge","bg-red","text-sm","pointer",3,"click"],["routerLink","active-calls","data-qa","active-calls",1,"d-flex","align-items-center"],["data-qa","number-of-calls-in-use",1,"badge","bg-green","p-2","ms-2"],["data-qa","multi-company-mode",1,"d-flex","gap-1","align-items-center","pointer"],["data-qa","multi-company-mode-disabled",1,"d-flex","gap-1","align-items-center"],["data-qa","multi-company-mode",1,"d-flex","gap-1","align-items-center","pointer",3,"click"],["bgDisabled","bg-dark",3,"ok"],["container","body",1,"badge","bg-primary","text-uppercase","p-2","pointer",3,"tooltip"],[1,"d-flex","align-items-center"],["target","_blank","data-qa","pricing-link",1,"d-flex","align-items-center","gap-1",3,"href"],["data-qa","number-of-user-extensions",1,"text-nowrap"],[1,"customSVGIcons","fillIconRed","svg-md","ms-1"],[3,"ok"],["routerLink","system-extensions","data-qa","system-extension",1,"d-flex","align-items-center"],["routerLink","sessions","data-qa","sessions",1,"d-flex","align-items-center","gap-1"],["app-square-list-solid-icon","",1,"customSVGIcons","fillIconBlue","svg-md"],["routerLink","/office/reports/audit-logs","data-qa","audit-logs",1,"d-flex","align-items-center","gap-2"]],template:function(a,s){1&a&&(e.j41(0,"app-dashboard-card",0),e.nrm(1,"span",1),e.j41(2,"div",2),e.nVh(3,Ia,1,0,"span",3)(4,Da,16,15),e.k0s(),e.j41(5,"div",2),e.nVh(6,Aa,1,0,"span",3)(7,Va,9,8),e.k0s(),e.nVh(8,Ha,63,46),e.j41(9,"div",2),e.nVh(10,Ba,1,0,"span",3)(11,Na,12,9),e.k0s(),e.j41(12,"div",2),e.nVh(13,Qa,1,0,"span",3)(14,Ya,9,6),e.k0s(),e.j41(15,"div",2),e.nVh(16,Ka,1,0,"span",3)(17,es,14,13),e.k0s(),e.j41(18,"div",2),e.nVh(19,ts,1,0,"span",3)(20,ns,10,7),e.k0s()()),2&a&&(e.R7$(3),e.vxM(s.systemStatus?4:3),e.R7$(3),e.vxM(s.versionType&&s.systemParams?7:6),e.R7$(2),e.vxM(s.systemParams?8:-1),e.R7$(2),e.vxM(s.systemStatus?11:10),e.R7$(3),e.vxM(s.systemStatus&&s.systemParams?14:13),e.R7$(3),e.vxM(s.systemStatus?17:16),e.R7$(3),e.vxM(s.systemStatus?20:19))},dependencies:[Y,je.j,pe.a,we.T,J.YU,ae.Wk,Ye,nt,Ta.T,Ae.H,Fe.dg,ze,_.D9,ge.h,he.a,xa],encapsulation:2})}return n})();var ss=r(69593),os=r(5738),is=r(10079),rs=r(4115);const ls=n=>({extensions:n});function cs(n,l){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"span",2),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",3)(6,"app-external-link",4),e.nI1(7,"translate"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"i",5),e.k0s()()),2&n){e.XpG(2);const t=e.r8f(0);e.R7$(3),e.JRh(e.i5U(4,3,"_i18n.NumberOfExtensionsExceededNotification",e.eq3(10,ls,t))),e.R7$(3),e.Y8G("href",e.bMT(7,6,"_i18n.PricingUri")),e.R7$(2),e.JRh(e.bMT(9,8,"_i18n.Upgrade"))}}function ps(n,l){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"span",6),e.j41(2,"span",7),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",3)(7,"a",8),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"i",5),e.k0s()()),2&n){e.XpG(2);const t=e.r8f(2);e.R7$(3),e.Lme("",e.bMT(4,3,t)," ",e.bMT(5,5,"_i18n.RemoteStorageBannerText")),e.R7$(5),e.SpI(" ",e.bMT(9,7,"_i18n.SetUpRemoteStorage")," ")}}function ds(n,l){if(1&n&&(e.j41(0,"app-dashboard-card",0),e.nVh(1,cs,11,12,"div",1),e.nVh(2,ps,11,9,"div",1),e.k0s()),2&n){e.XpG();const t=e.r8f(1),a=e.r8f(2);e.Y8G("hideHeader",!0),e.R7$(),e.vxM(t?1:-1),e.R7$(),e.vxM(a?2:-1)}}let ms=(()=>{class n{remoteStorageStatus;systemStatus;statusText={[$e.NotConfigured]:"_i18n.RemoteStorageNotConfigured",[$e.PartiallyConfigured]:"_i18n.RemoteStorageParti
1allyConfigured"};static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-system-notifications-dashboard"]],inputs:{remoteStorageStatus:"remoteStorageStatus",systemStatus:"systemStatus"},decls:4,vars:4,consts:[["label","","data-qa","notifications-dashboard",3,"hideHeader"],[1,"notification-row","fw-bold","gap-2"],["app-xmark-solid-icon","",1,"svg-md","fillIconRed"],[1,"d-flex","align-items-center"],[1,"link","pointer","text-underline","d-inline-block",3,"href"],["app-chevron-right-solid-icon","",1,"customSVGIcons","svg-xs","fillIconBlue"],["app-exclamation-triangle-solid-icon","",1,"svg-md","fillIconOrange"],[1,"line-clamp-6"],["routerLink","/office/system/remote-storage",1,"link","pointer","text-underline","d-inline-block"]],template:function(a,s){if(1&a&&(e.SS7(0)(1)(2),e.nVh(3,ds,3,3,"app-dashboard-card",0)),2&a){const o=(null==s.systemStatus?null:s.systemStatus.UserExtensions)||0,c=e.bH3((null==s.systemStatus?null:s.systemStatus.MaxUserExtensions)||0);e.R7$();const p=e.bH3(s.systemStatus&&o>c);e.R7$();const d=e.bH3(s.remoteStorageStatus&&s.statusText[s.remoteStorageStatus]);e.R7$(),e.vxM(d||p?3:-1)}},dependencies:[ae.Wk,Y,ss.Z,rs.P,os.N,is.f,_.D9],styles:["@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .notification-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(auto,max-content);padding:8px 0;align-items:center;width:calc(100% - var(--bs-gutter-x));margin-left:calc(var(--bs-gutter-x) / 2);margin-right:calc(var(--bs-gutter-x) / 2);border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)}@media(max-width:575.98px){[_nghost-%COMP%]   .notification-row[_ngcontent-%COMP%]{grid-template-columns:auto minmax(0,1fr) minmax(auto,min-content)}}[_nghost-%COMP%]   .notification-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:var(--bs-body-line-height)}"],changeDetection:0})}return n})();const us=()=>({}),hs=(n,l,t,a,s,o,c)=>({systemStatus:n,systemDatabaseInformation:l,systemHealthStatus:t,systemParams:a,failoverSettings:s,versionType:o,voicemailSettings:c});function gs(n,l){if(1&n&&(e.nrm(0,"app-mcm-admin-dashboard",3),e.nI1(1,"async")),2&n){const t=e.XpG();e.Y8G("systemParams",e.bMT(1,2,t.systemParams$)||e.lJ4(4,us))("licenseStatus",t.licenseStatus)}}function fs(n,l){if(1&n&&e.nrm(0,"app-system-info-dashboard",6),2&n){const t=e.XpG(),a=e.XpG(2);e.Y8G("systemStatus",t.systemStatus)("systemHealthStatus",t.systemHealthStatus)("failoverSettings",t.failoverSettings)("licenseIsPaid",a.licenseIsPaid)("licenseStatus",a.licenseStatus)("myPartner",a.myPartner)("productName",a.productName)("systemParams",t.systemParams)("versionType",t.versionType)}}function bs(n,l){if(1&n&&e.nrm(0,"app-maintenance-dashboard",7),2&n){const t=e.XpG(),a=e.XpG(2);e.Y8G("systemStatus",t.systemStatus)("myToken",a.myToken)("voicemailSettings",t.voicemailSettings)("systemDatabaseInformation",t.systemDatabaseInformation)}}function vs(n,l){if(1&n&&(e.nrm(0,"app-system-notifications-dashboard",5),e.nVh(1,fs,1,9,"app-system-info-dashboard",6),e.nVh(2,bs,1,4,"app-maintenance-dashboard",7),e.nrm(3,"app-troubleshoot-dashboard",8)),2&n){const t=l,a=e.XpG(2);e.Y8G("systemStatus",t.systemStatus)("remoteStorageStatus",null==t.systemStatus?null:t.systemStatus.RemoteStorageStatus),e.R7$(),e.vxM(a.hasExtendedLicenseInformation?1:-1),e.R7$(),e.vxM(a.maintenancePermission?2:-1),e.R7$(),e.Y8G("systemHealthStatus",t.systemHealthStatus)("systemStatus",t.systemStatus)}}function Cs(n,l){if(1&n&&(e.nVh(0,vs,4,6),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.nI1(7,"async")),2&n){let t;const a=e.XpG();e.vxM((t=e.sGs(15,hs,e.bMT(1,1,a.systemStatus$),e.bMT(2,3,a.systemDatabaseInformation$),e.bMT(3,5,a.systemHealthStatus$),e.bMT(4,7,a.systemParams$),e.bMT(5,9,a.failoverSettings$),e.bMT(6,11,a.versionType$),e.bMT(7,13,a.getVoicemailSettings$)))?0:-1,t)}}function _s(n,l){if(1&n&&e.nrm(0,"app-events-dashboard",4),2&n){const t=e.XpG();e.Y8G("events",t.events)("myToken",t.myToken)}}let ys=(()=>{class n{tokenInfoService=(0,i.WQX)(C.Z);cd=(0,i.WQX)(x.gRc);systemStatusService=(0,i.WQX)(S.X);voicemailSettingsApiService=(0,i.WQX)(w.Q);licenseStatus;licenseIsPaid;events;myToken;systemStatus$=this.systemStatusService.systemStatus$;systemDatabaseInformation$=this.systemStatusService.systemDatabaseInformation$;systemHealthStatus$=this.systemStatusService.systemHealthStatus$;systemParams$=this.systemStatusService.systemParams$.pipe((0,b.H9)());failoverSettings$=this.systemStatusService.failoverSettings$.pipe((0,b.H9)());versionType$=this.systemStatusService.versionType$.pipe((0,b.H9)());getVoicemailSettings$=this.voicemailSettingsApiService.getVoicemailSettings({});isAdmin$;constructor(){const t=(0,i.WQX)(B.nX),a=this.tokenInfoService,s=(0,i.WQX)(i.abz);this.isAdmin$=a.myToken$.pipe((0,k.T)(o=>o.admin),(0,b.H9)()),t.data.pipe((0,F.pQ)(s)).subscribe(o=>{this.licenseStatus=o.licenseStatus,this.licenseIsPaid=o.isPaid,this.events=o.events.value,this.myToken=o.myToken,this.cd.markForCheck()})}get productName(){return(0,I.Gq)(this.myToken.roles)?this.licenseStatus.ProductCode||"":this.licenseStatus.ProductCode?`_i18n.ProductCode.${this.licenseStatus.ProductCode}`:""}get hasExtendedLicenseInformation(){return(0,I.ET)(this.myToken.myRole)||this.isMcmAdminOrOwner}get isMcmAdminOrOwner(){return(0,I.Gq)(this.myToken.roles)&&(0,I.Th)(this.myToken.myRole)}get hasEventLog(){return(0,I.l6)(this.myToken.myRole)}get myPartner(){return this.licenseStatus.ResellerName}get maintenancePermission(){return this.myToken.adminSection&&(0,I.kD
1)(this.myToken.myRole)}GB=re.GB;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],decls:7,vars:5,consts:[["header","_i18n.AdminHeader","helpUrl","_i18n.DashboardUri"],[1,"scrollable"],[1,"dashboard"],[3,"systemParams","licenseStatus"],[3,"events","myToken"],[3,"systemStatus","remoteStorageStatus"],[3,"systemStatus","systemHealthStatus","failoverSettings","licenseIsPaid","licenseStatus","myPartner","productName","systemParams","versionType"],[3,"systemStatus","myToken","voicemailSettings","systemDatabaseInformation"],[3,"systemHealthStatus","systemStatus"]],template:function(a,s){1&a&&(e.j41(0,"app-page",0)(1,"div",1)(2,"div",2),e.nVh(3,gs,2,5,"app-mcm-admin-dashboard",3),e.nVh(4,Cs,8,23),e.nI1(5,"async"),e.nVh(6,_s,1,2,"app-events-dashboard",4),e.k0s()()()),2&a&&(e.R7$(3),e.vxM(s.isMcmAdminOrOwner?3:-1),e.R7$(),e.vxM(e.bMT(5,3,s.isAdmin$)?4:-1),e.R7$(2),e.vxM(s.hasEventLog?6:-1))},dependencies:[G.H,$t,Pt,jn,Sa,as,ms,J.Jj],styles:["@media(max-width:1399.98px){.d-xxl-down-none,.xxl-visible{display:none}}@media(max-width:1199.98px){.d-xl-down-none,.xl-visible{display:none}}@media(max-width:991.98px){.d-lg-down-none,.lg-visible{display:none}}@media(max-width:767.98px){.d-md-down-none,.md-visible{display:none!important}}@media(max-width:575.98px){.d-sm-down-none,.sm-visible{display:none!important}}.dashboard span{line-height:1}.dashboard span app-simple-copy{line-height:var(--bs-body-line-height)}.office-body-row{display:flex;flex-wrap:wrap;row-gap:var(--spacer-s);align-items:center;justify-content:space-between;padding:var(--spacer-s) 0;flex:0 0 auto;width:calc(100% - var(--bs-gutter-x));margin-left:calc(var(--bs-gutter-x) / 2);margin-right:calc(var(--bs-gutter-x) / 2);border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)}@media(min-width:1382px){.office-body-row{width:calc(50% - var(--bs-gutter-x))}}.report-section{display:flex;flex-direction:column;gap:24px}.admin-category{padding-bottom:24px}.report-category{padding-top:24px}.load-more-link{margin:auto;color:var(--bg-secondary);cursor:pointer;text-transform:capitalize}.load-more-link:hover{color:var(--bg-secondary-hover)}.bg-maintenance{background-color:var(--maintenance)}.dashboard{padding:var(--spacer-l) var(--spacer)}.dashboard .badge.p-2{padding:var(--spacer-xs)!important}.dashboard .badge.ms-2{margin-left:var(--spacer-xs)!important}.dashboard .px-4{padding-left:var(--spacer)!important;padding-right:var(--spacer)!important}.dashboard .p-4{padding:var(--spacer)!important}\n"],encapsulation:2,changeDetection:0})}return n})();var Ss=r(83137),Ts=r(36463),at=r(53083),st=r(30786),ot=r(62049);const Rs={Stopped:"Stopped",StartPending:"StartPending",StopPending:"StopPending",Running:"Running",ContinuePending:"ContinuePending",PausePending:"PausePending",Paused:"Paused"};var fe=r(1807),xs=r(12498),it=r(7707),ks=r(23773);function $s(n,l){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){i.eBV(t);const s=e.XpG();return i.Njj(s.garbageCollect())}),e.EFF(1,"GC.Collect"),e.k0s()}}function Fs(n,l){1&n&&(e.j41(0,"span",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusRunning")))}function Is(n,l){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusStopped")))}function Ms(n,l){1&n&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusStartPending")))}function Ps(n,l){1&n&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusPausePending")))}function js(n,l){1&n&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusStopPending")))}function Es(n,l){1&n&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusContinuePending")))}function ws(n,l){1&n&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ServiceStatusPaused")))}function Ds(n,l){if(1&n&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.Status)}}function As(n,l){if(1&n){const t=e.RV6();e.j41(0,"tr",16),e.bIt("click",function(){const s=i.eBV(t).$implicit,o=e.XpG();return i.Njj(o.selector.toggle(s))}),e.j41(1,"td",7)(2,"app-checker",17),e.bIt("ngModelChange",function(s){const o=i.eBV(t).$implicit,c=e.XpG();return i.Njj(c.selector.setSelected(o,s))})("checkerClick",function(s){const o=i.eBV(t).$implicit,c=e.XpG();return i.Njj(c.selector.handleCheckerClick(o,s))}),e.k0s()(),e.j41(3,"td",18),e.EFF(4),e.k0s(),e.j41(5,"td",9),e.EFF(6),e.nI1(7,"fileSize"),e.k0s(),e.j41(8,"td",9),e.EFF(9),e.k0s(),e.j41(10,"td",19),e.EFF(11),e.k0s(),e.j41(12,"td",19),e.EFF(13),e.k0s(),e.j41(14,"td"),e.nVh(15,Fs,3,3,"span",20)(16,Is,3,3,"span",21)(17,Ms,3,3,"span",22)(18,P
1s,3,3,"span",22)(19,js,3,3,"span",22)(20,Es,3,3,"span",22)(21,ws,3,3,"span",22)(22,Ds,2,1,"span",22),e.k0s()()}if(2&n){let t;const a=l.$implicit,s=e.XpG();e.R7$(2),e.Y8G("ngModel",s.selector.isRowSelected(a)),e.R7$(2),e.JRh(a.DisplayName),e.R7$(2),e.JRh(e.brH(7,7,a.MemoryUsed??0,2,"0.00")),e.R7$(3),e.JRh(s.cpuUsage(a)),e.R7$(2),e.JRh(a.ThreadCount),e.R7$(2),e.JRh(a.HandleCount),e.R7$(2),e.vxM((t=a.Status)===s.serviceStatus.Running?15:t===s.serviceStatus.Stopped?16:t===s.serviceStatus.StartPending?17:t===s.serviceStatus.PausePending?18:t===s.serviceStatus.StopPending?19:t===s.serviceStatus.ContinuePending?20:t===s.serviceStatus.Paused?21:22)}}let Vs=(()=>{class n{servicesApiService=(0,i.WQX)(Ue.W);modalService=(0,i.WQX)(L.B);cd=(0,i.WQX)(x.gRc);destroy$=(0,i.WQX)(i.abz);selector;prevData;data=[];totalCpuUsage;totalMemoryUsage;lab=(0,ks.D)();serviceStatus=Rs;get startEnabled(){return!!this.selector.isAnySelected&&this.selector.selectedValues.every(t=>t.StartStopEnabled&&("Stopped"===t.Status||"Paused"===t.Status))}get stopEnabled(){return!!this.selector.isAnySelected&&this.selector.selectedValues.every(t=>t.StartStopEnabled&&"Stopped"!==t.Status)}get restartEnabled(){return!!this.selector.isAnySelected&&this.selector.selectedValues.every(t=>t.RestartEnabled)}identify(t,a){return a.Name}constructor(){this.selector=new ot.a({cd:this.cd,keySelector:a=>a.Name,notKeepSelectedOnDataChange:!0})}ngOnInit(){(0,fe.O)(0,7e3).pipe((0,st.p)(()=>this.servicesApiService.listServiceInfo({})),(0,xs.L)({delay:7e3}),(0,F.pQ)(this.destroy$)).subscribe({next:a=>{const s=this.prevData;this.data&&(this.prevData=this.data.reduce((o,c)=>(o[c.Name]=c,o),{})),this.data=a.value,this.totalCpuUsage=s?this.data.reduce((o,c)=>(this.cpuUsage(c)??0)+o,0):null,this.totalMemoryUsage=this.data.map(o=>o.MemoryUsed??0).reduce((o,c)=>c+o,0)??0,this.cd.markForCheck(),this.selector.onDataChanged(this.data||[])},error:a=>{this.modalService.error(a)}})}cpuUsage(t){const a=this.prevData&&this.prevData[t.Name];if(a){const s=N()(t.SampleTime).diff(a.SampleTime);return s<=0||t.TotalProcessorTime<a.TotalProcessorTime?0:Math.round(100*(t.TotalProcessorTime-a.TotalProcessorTime)/s)}return null}startService(){this.servicesApiService.start({servicesStartRequestBody:{options:{ServiceNames:this.selector.selectedKeys}}}).subscribe({error:t=>this.modalService.error(t)})}stopService(){this.servicesApiService.stop({servicesStopRequestBody:{options:{ServiceNames:this.selector.selectedKeys}}}).subscribe({error:t=>this.modalService.error(t)})}garbageCollect(){this.servicesApiService.garbageCollect({servicesGarbageCollectRequestBody:{options:{Blocking:!0,Compacting:!0,Mode:"Aggressive",Generation:2}}}).subscribe({error:t=>this.modalService.error(t)})}restartService(){this.servicesApiService.restart({servicesRestartRequestBody:{options:{ServiceNames:this.selector.selectedKeys}}}).subscribe({error:t=>this.modalService.error(t)})}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-services"]],decls:49,vars:36,consts:[["header","_i18n.Services","backRouterLink",".."],["top-bar","",1,"button-group"],["data-qa","start-btn","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","stop-btn","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","restart-btn","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","gcc-btn","type","button",1,"btn","btn-primary"],["full-width","",1,"scrollable-table"],[1,"checker"],["data-qa","check-all",3,"ngModelChange","ngModel"],[1,"text-end"],[1,"text-end","lg-visible"],[1,"w-md-50"],[1,"clickable"],[1,"fw-bold"],[1,"lg-visible"],["data-qa","gcc-btn","type","button",1,"btn","btn-primary",3,"click"],[1,"clickable",3,"click"],["data-qa","checker",3,"ngModelChange","checkerClick","ngModel"],[1,"text-md-nowrap"],[1,"lg-visible","text-end"],[1,"text-success"],[1,"text-danger"],[1,"text-warning"]],template:function(a,s){1&a&&(e.j41(0,"app-page",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return s.startService()}),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"button",3),e.bIt("click",function(){return s.stopService()}),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"button",4),e.bIt("click",function(){return s.restartService()}),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nVh(11,$s,2,0,"button",5),e.k0s(),e.j41(12,"table",6)(13,"thead")(14,"tr")(15,"th",7)(16,"app-checker",8),e.bIt("ngModelChange",function(c){return s.selector.setSelectAll(c)}),e.k0s()(),e.j41(17,"th"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"th",9),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"th",9),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"th",10),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"th",10),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"th",11),e.EFF(33),e.nI1(34,"translate"),e.k0s()()(),e.j41(35,"tbody"),e.Z7z(36,As,23,11,"tr",12,s.identify,!0),e.j41(38,"tr",13),e.nrm(39,"td",7)(40,"td"),e.j41(41,"td",9),e.EFF(42),e.nI1(43,"fileSize"),e.k0s(),e.j41(44,"td",9),e.EFF(45),e.k0s(),e.nrm(46,"td",14)(47,"td",14)(48,"td"),e.k0s()()()()),2&a&&(e.R7$(2),e.Y8G("disabled",!s.startEnabled),e.R7$(),e.JRh(e.bMT(4,16,"_i18n.Start")),e.R7$(2),e.Y8G("disabled",!s.stopEnabled),e.R7$(),e.JRh(e.bMT(7,18,"_i18n.Stop")),e.R7$(2),e.Y8G("disabled",!s.restartEnabled),e.R7$(),e.JRh(e.bMT(10,20,"_i18n.Restart")),e.R7$(2),e.vxM(s.lab()?11:-1),e.R7$(5),e.Y8G("ngModel",s.selector.isAnySelected),e.R7$(2),e.JRh(e.bMT(19,22,"_i18n.ServiceName")),e.R7$(3),e.JRh(e.bMT(22,24,"_i18n.MemoryUsage")),e.R7$(3),e.JRh(e.bMT(25,26,"_i18n.CpuUsage")),e.R7$(3),e.JRh(e.bMT(28,28,"_i18n.Threads")),e.R7$(3),e.JRh(e.bMT(31,30,"_i18n.Handles")),e.R7$(3),e.JRh(e.bMT(34,32,"_i18n.Status")),e.R7$(3),e.Dyx(s.data),e.R7$(6),e.JRh(e.bMT(43,34,s.totalMemoryUsage)),e.R7$(3),e.JRh(s.totalCpuUsage))},dependencies:[G.H,it.$,m.X1,m.BC,m.YN,m.vS,_.D9,qe.s],styles:["table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(odd):not
1(:hover){background:var(--bg-primary-darken)}"],changeDetection:0})}return n})(),rt=(()=>{class n extends te.d{dropCall(t,a="body"){const s=t?.id;if(null==s)throw new Error("Required parameter id was null or undefined when calling dropCall.");let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=this.configuration.selectHeaderAccept(["application/json"]);void 0!==c&&(o=o.set("Accept",c));let p="json";c&&(p=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let d=`/ActiveCalls(${this.configuration.encodeParam({name:"id",value:s,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})/Pbx.DropCall`;const{basePath:g,withCredentials:v}=this.configuration;return this.httpClient.request("post",`${g}${d}`,{responseType:p,...v?{withCredentials:v}:{},headers:o,observe:a})}dropCallQuery(t,a="body",s=!1,o){const c=t.id;if(null==c)throw new Error("Required parameter id was null or undefined when calling dropCall.");return`/ActiveCalls(${this.configuration.encodeParam({name:"id",value:c,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})/Pbx.DropCall`}listActiveCall(t,a="body"){const s=t?.$top,o=t?.$skip,c=t?.$search,p=t?.$filter,d=t?.$count,g=t?.$orderby,v=t?.$select,y=t?.$expand;let h=new u.rx(this.encoder);h=this.addToHttpParams(h,"$top",s,u.l2.Form,!1),h=this.addToHttpParams(h,"$skip",o,u.l2.Form,!1),h=this.addToHttpParams(h,"$search",c,u.l2.Form,!1),h=this.addToHttpParams(h,"$filter",p,u.l2.Form,!1),h=this.addToHttpParams(h,"$count",d,u.l2.Form,!1),h=this.addToHttpParams(h,"$orderby",g,u.l2.Form,!1),h=this.addToHttpParams(h,"$select",v,u.l2.Form,!1),h=this.addToHttpParams(h,"$expand",y,u.l2.Form,!1);let $=this.defaultHeaders;$=this.configuration.addCredentialToHeaders("Application","Authorization",$,"Bearer ");const f=this.configuration.selectHeaderAccept(["application/json"]);void 0!==f&&($=$.set("Accept",f));let P="json";f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");const{basePath:T,withCredentials:D}=this.configuration;return this.httpClient.request("get",`${T}/ActiveCalls`,{params:h.toHttpParams(),responseType:P,...D?{withCredentials:D}:{},headers:$,observe:a})}listActiveCallQuery(t,a="body",s=!1,o){const c=t.$top,p=t.$skip,d=t.$search,g=t.$filter,v=t.$count,y=t.$orderby,h=t.$select,$=t.$expand;let f=new u.rx(this.encoder);return f=this.addToHttpParams(f,"$top",c,u.l2.Form,!1),f=this.addToHttpParams(f,"$skip",p,u.l2.Form,!1),f=this.addToHttpParams(f,"$search",d,u.l2.Form,!1),f=this.addToHttpParams(f,"$filter",g,u.l2.Form,!1),f=this.addToHttpParams(f,"$count",v,u.l2.Form,!1),f=this.addToHttpParams(f,"$orderby",y,u.l2.Form,!1),f=this.addToHttpParams(f,"$select",h,u.l2.Form,!1),f=this.addToHttpParams(f,"$expand",$,u.l2.Form,!1),"/ActiveCalls?"+f.toString()}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var be=r(38357),ve=r(87019);let Hs=(()=>{class n{activeCallsApiService=(0,i.WQX)(rt);resolveData(t=1,a=ve.z9,s=""){return(0,fe.O)(0,3e3).pipe((0,st.p)(()=>this.activeCallsApiService.listActiveCall({$count:!0,$search:(0,be.Bj)(s),$skip:(t-1)*a,$top:a})),(0,k.T)(o=>({value:o.value??[],totalItems:o["@odata.count"]})))}static \u0275fac=function(a){return new(a||n)};static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var lt=r(4801),ct=r(68845);let Bs=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-phone-xmark-solid-icon"],["","app-phone-xmark-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M181.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L208 207.3c33.3 70.4 90.3 127.4 160.7 160.7L409 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C545.8 499.9 530 512 512 512C264.6 512 64 311.4 64 64c0-18 12.1-33.8 29.5-38.6l88-24zM399 15c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47L399 49c-9.4-9.4-9.4-24.6 0-33.9z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();function Gs(n,l){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span"),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span"),e.EFF(6),e.k0s()(),e.j41(7,"td")(8,"span"),e.EFF(9),e.k0s()(),e.j41(10,"td")(11,"span"),e.EFF(12),e.k0s()(),e.j41(13,"td")(14,"span"),e.EFF(15),e.nI1(16,"amLocal"),e.nI1(17,"amDateFormat"),e.k0s()(),e.j41(18,"td",3)(19,"button",6),e.bIt("click",function(){const s=i.eBV(t).$implicit,o=e.XpG();return i.Njj(o.dropCall(s))}),e.nrm(20,"app-phone-xmark-solid-icon"),e.k0s()()()}if(2&n){const t=l.$implicit,a=e.XpG();e.R7$(3),e.JRh(t.Status),e.R7$(3),e.JRh(t.Caller),e.R7$(3),e.JRh(t.Callee),e.R7$(3),e.JRh(a.getDuration(t)),e.R7$(3),e.JRh(e.i5U(17,7,e.bMT(16,5,t.LastChangeStatus),"L LTS"))}}let Os=(()=>{class n{activeCallsApiService=(0,i.WQX)(rt);modalService=(0,i.WQX)(L.B);resolver=(0,i.WQX)(Hs);cd=(0,i.WQX)(x.gRc);destroy$=(0,i.WQX)(i.abz);pager;activeCalls=[];constructor(){const t=this.modalService;this.pager=new lt.f(this.destroy$,this.resolver),this.pager.pagedItems$.pipe((0,F.pQ)(this.destroy$)).subscribe({next:o=>{this.updateItems(o)},error:o=>t.error(o)})}identify=(t,a)=>a.Id;updateItems(t){this.activeCalls=t.value||[],this.cd.markForCheck()}getDuration(t){if(t.ServerNow&&t.EstablishedAt)return N().duration(N()(t.ServerNow).diff(N()(t.EstablishedAt))).humanize()}dropCall(t){t.Id&&this.activeCallsApiService.dropCall({id:t.Id}).subscribe({next:()=>{},error:a=>this.modalService.error(a)})}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],decls:31,vars:26,consts:[["header","_i18n.ActiveCalls","helpUrl","_i18n.SystemUri","backRouterLink",".."],["top-bar","",3,"formControl"],["full-width","",1,"scrollable-table"],[1,"actions"],["colspan","6"],[3,"pageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks"],["data-qa","drop-active-call","type","button",1,"btn","btn-plain",3,"click"]],template:function(a,s){1&a&&(e.j41(0,"app-page",0),e.nrm(1,"search-bar",1),e.j41(2,"table",2)(3,"thead")(4,"tr")(
15,"th"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.nrm(20,"th",3),e.k0s()(),e.j41(21,"tbody"),e.Z7z(22,Gs,21,10,"tr",null,s.identify,!0),e.k0s(),e.j41(24,"tfoot")(25,"tr")(26,"td",4)(27,"app-paging",5),e.nI1(28,"async"),e.nI1(29,"async"),e.nI1(30,"async"),e.bIt("pageChanged",function(c){return s.pager.pageChanged(c)}),e.k0s()()()()()()),2&a&&(e.R7$(),e.Y8G("formControl",s.pager.search),e.R7$(5),e.JRh(e.bMT(7,10,"_i18n.Status")),e.R7$(3),e.JRh(e.bMT(10,12,"_i18n.Caller")),e.R7$(3),e.JRh(e.bMT(13,14,"_i18n.Callee")),e.R7$(3),e.JRh(e.bMT(16,16,"_i18n.CQDuration")),e.R7$(3),e.JRh(e.bMT(19,18,"_i18n.LastChangeStatus")),e.R7$(4),e.Dyx(s.activeCalls),e.R7$(5),e.Y8G("currentPage",e.bMT(28,20,s.pager.currentPage$))("itemsPerPage",e.bMT(29,22,s.pager.pageSize$))("totalItems",e.bMT(30,24,s.pager.totalCount$))("showBoundaryLinks",!0))},dependencies:[G.H,ct.L,m.X1,m.BC,m.l_,Bs,ve.u4,J.Jj,_.D9,he.a,ge.h],encapsulation:2,changeDetection:0})}return n})(),Js=(()=>{class n extends te.d{getFirewallState(t,a="body"){const s=t?.$select,o=t?.$expand;let c=new u.rx(this.encoder);c=this.addToHttpParams(c,"$select",s,u.l2.Form,!1),c=this.addToHttpParams(c,"$expand",o,u.l2.Form,!1);let p=this.defaultHeaders;p=this.configuration.addCredentialToHeaders("Application","Authorization",p,"Bearer ");const d=this.configuration.selectHeaderAccept(["application/json"]);void 0!==d&&(p=p.set("Accept",d));let g="json";d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("get",`${y}/Firewall`,{params:c.toHttpParams(),responseType:g,...h?{withCredentials:h}:{},headers:p,observe:a})}getFirewallStateQuery(t,a="body",s=!1,o){const c=t.$select,p=t.$expand;let d=new u.rx(this.encoder);return d=this.addToHttpParams(d,"$select",c,u.l2.Form,!1),d=this.addToHttpParams(d,"$expand",p,u.l2.Form,!1),"/Firewall?"+d.toString()}getLastResult(t="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:p,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${p}/Firewall/Pbx.GetLastResult()`,{responseType:o,...d?{withCredentials:d}:{},headers:a,observe:t})}getLastResultQuery(t="body",a=!1,s){return"/Firewall/Pbx.GetLastResult()"}startCheck(t="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:p,withCredentials:d}=this.configuration;return this.httpClient.request("post",`${p}/Firewall/Pbx.StartCheck`,{responseType:o,...d?{withCredentials:d}:{},headers:a,observe:t})}startCheckQuery(t="body",a=!1,s){return"/Firewall/Pbx.StartCheck"}stopCheck(t="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:p,withCredentials:d}=this.configuration;return this.httpClient.request("post",`${p}/Firewall/Pbx.StopCheck`,{responseType:o,...d?{withCredentials:d}:{},headers:a,observe:t})}stopCheckQuery(t="body",a=!1,s){return"/Firewall/Pbx.StopCheck"}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Xs=r(77048),Ie=r(70980),Us=r(85260);const Ns=["state"];function Qs(n,l){if(1&n&&(e.j41(0,"p",5),e.nrm(1,"app-server-error",10),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("message",t.monitoringError)}}function Ws(n,l){1&n&&(e.j41(0,"p")(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"span",12),e.k0s()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"_i18n.FirewallCheckInProgress")))}function zs(n,l){1&n&&(e.j41(0,"alert",6),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.FirewallCheckOk")))}function Ys(n,l){1&n&&(e.j41(0,"alert",7),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.FirewallCheckCancel")))}
1function Ks(n,l){1&n&&(e.j41(0,"alert",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.FirewallCheckFailure")))}function qs(n,l){1&n&&(e.j41(0,"alert",7),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.FirewallCheckNoResults")))}function Zs(n,l){if(1&n&&(e.j41(0,"pre",9,0),e.EFF(2,"    "),e.k0s()),2&n){const t=e.XpG();e.Y8G("innerHTML",t.monitoringState.Html,e.npT)}}let to=(()=>{class n{api=(0,i.WQX)(Js);modalService=(0,i.WQX)(L.B);cd=(0,i.WQX)(x.gRc);destroy$=(0,i.WQX)(i.abz);executingCommand=!1;inProgress=!1;canceled=!1;result=void 0;isPreviousResult=!1;monitoringState;monitoringError;stateElement;get startDisabled(){return this.executingCommand||this.inProgress}get stopDisabled(){return this.executingCommand||this.canceled||!this.inProgress}ngOnInit(){this.checkPreviousResults()}start(){this.startDisabled||this.wrapCommandExecution(this.api.startCheck().pipe((0,H.Tg)(this.modalService))).subscribe(()=>{this.startMonitoring()})}stop(){this.stopDisabled||this.wrapCommandExecution(this.api.stopCheck().pipe((0,H.Tg)(this.modalService))).subscribe(()=>{this.canceled=!0})}checkPreviousResults(){this.wrapCommandExecution(this.api.getFirewallState({}).pipe((0,H.A4)())).subscribe(t=>{!0===t.Running?this.startMonitoring():(this.isPreviousResult=!0,this.getResult())})}startMonitoring(){let t=0;this.canceled=!1,this.inProgress=!0,this.isPreviousResult=!1,this.result=void 0,this.cd.markForCheck(),(0,fe.O)(0,5e3).pipe((0,A.n)(()=>this.api.getFirewallState({})),(0,k.T)(a=>({state:a,error:""})),(0,Te.W)(a=>(0,He.of)({state:{Html:"",Running:!this.canceled},error:(0,Qe.PE)(a)})),(0,Oe.M)(a=>{a.state.Running||t++}),(0,Xs.v)(()=>t<2),(0,F.pQ)(this.destroy$),(0,Ie.j)(()=>{2===t?this.getResult():(this.inProgress=!1,this.cd.markForCheck())})).subscribe(a=>{this.monitoringState=a.state,this.monitoringError=a.error,this.cd.markForCheck()})}getResult(){this.api.getLastResult().pipe((0,H.Tg)(this.modalService),(0,F.pQ)(this.destroy$),(0,Ie.j)(()=>{this.inProgress=!1,this.cd.markForCheck()})).subscribe(t=>{this.result=t?.value??null,this.stateElement?.nativeElement.lastElementChild?.scrollIntoView(!1),this.cd.markForCheck()})}wrapCommandExecution(t){return this.executingCommand=!0,this.cd.markForCheck(),t.pipe((0,F.pQ)(this.destroy$),(0,Ie.j)(()=>{this.executingCommand=!1,this.cd.markForCheck()}))}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-firewall"]],viewQuery:function(a,s){if(1&a&&e.GBs(Ns,5),2&a){let o;e.mGM(o=e.lsd())&&(s.stateElement=o.first)}},decls:19,vars:14,consts:[["state",""],["header","_i18n.Firewall","backRouterLink",".."],["top-bar","",1,"button-group"],["data-qa","start-btn","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","stop-btn","type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"text-error"],["type","success"],["type","warning"],["type","danger"],[1,"px-4","py-3","overflow-auto","border",3,"innerHTML"],[3,"message"],[1,"me-2"],["app-spinner-regular-icon","",1,"customSVGIcons","svg-sm"]],template:function(a,s){1&a&&(e.j41(0,"app-page",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return s.start()}),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return s.stop()}),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div")(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.nVh(12,Qs,2,1,"p",5),e.nVh(13,Ws,5,3,"p")(14,zs,3,3,"alert",6)(15,Ys,3,3,"alert",7)(16,Ks,3,3,"alert",8)(17,qs,3,3,"alert",7),e.k0s(),e.nVh(18,Zs,3,1,"pre",9),e.k0s()),2&a&&(e.R7$(2),e.Y8G("disabled",s.startDisabled),e.R7$(),e.SpI(" ",e.bMT(4,8,"_i18n.Start")," "),e.R7$(2),e.Y8G("disabled",s.stopDisabled),e.R7$(),e.SpI(" ",e.bMT(7,10,"_i18n.Stop")," "),e.R7$(4),e.JRh(e.bMT(11,12,"_i18n.FirewallDescriptionText")),e.R7$(2),e.vxM(s.monitoringError?12:-1),e.R7$(),e.vxM(s.inProgress?13:s.result?14:s.canceled?15:!1===s.result?16:17),e.R7$(5),e.vxM(s.monitoringState?18:-1))},dependencies:[G.H,pe.a,Us.Cy,We.J,_.D9],styles:["pre[_ngcontent-%COMP%]{background:var(--bg-console)}pre[_ngcontent-%COMP%]     font[color=red]{color:var(--error)}pre[_ngcontent-%COMP%]     font[color=green]{color:var(--success)}pre[_ngcontent-%COMP%]     a{color:var(--bg-secondary);border-color:var(--bg-secondary)}pre[_ngcontent-%COMP%]     a:hover{color:var(--bg-secondary-hover);border-color:var(--bg-secondary-hover)}"],changeDetection:0})}return n})();var no=r(57786);let so=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-circle-solid-icon"],["","app-circle-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]],template:function(a,s){1&a&&(i.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();function oo(n,l){if(1&n&&(e.j41(0,"tr")(1,"td",5)(2,"div",6),e.nrm(3,"span",7),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"td",8),e.EFF(7),e.k0s(),e.j41(8,"td"),e.EFF(9),e.k0s()()),2&n){const t=l.$implicit;e.R7$(3),e.HbH(e.VkB("svg-xs ",t.IsRegistered?"fillIconGreen":"fillIconRed")),e.R7$(),e.SpI(" ",e.bMT(5,6,t.IsRegistered?"_i18n.ExtensionIsRegistered":"_i18n.ExtensionIsNotRegistered")," "),e.R7$(3),e.JRh(t.Number),e.R7$(2),e.JRh(t.Name)}
1}let io=(()=>{class n{api=(0,i.WQX)(de.Z);searchTerm=new m.MJ("",{nonNullable:!0});systemExtensions$=(0,no.h)((0,fe.O)(0,7e3),this.searchTerm.valueChanges).pipe((0,A.n)(()=>this.api.systemExtensions({$search:(0,be.Bj)(this.searchTerm.value)})),(0,k.T)(t=>t.value??[]),(0,H.A4)());identify=(t,a)=>a.Number;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-system-extensions"]],decls:18,vars:12,consts:[["header","_i18n.SystemExtensions","backRouterLink",".."],["top-bar","",3,"formControl"],["full-width","",1,"scrollable-table"],[1,"col-size-100"],[1,"w-100"],["nowrap","",1,"pe-5"],[1,"d-flex","gap-1","align-items-center"],["app-circle-solid-icon",""],[1,"pe-5"]],template:function(a,s){1&a&&(e.j41(0,"app-page",0),e.nrm(1,"search-bar",1),e.j41(2,"table",2)(3,"thead")(4,"tr")(5,"th",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",3),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",4),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"tbody"),e.Z7z(15,oo,10,8,"tr",null,s.identify,!0),e.nI1(17,"async"),e.k0s()()()),2&a&&(e.R7$(),e.Y8G("formControl",s.searchTerm),e.R7$(5),e.JRh(e.bMT(7,4,"_i18n.Status")),e.R7$(3),e.JRh(e.bMT(10,6,"_i18n.Ext")),e.R7$(3),e.JRh(e.bMT(13,8,"_i18n.Name")),e.R7$(3),e.Dyx(e.bMT(17,10,s.systemExtensions$)))},dependencies:[G.H,ct.L,m.X1,m.BC,m.l_,so,J.Jj,_.D9],encapsulation:2,changeDetection:0})}return n})(),Me=(()=>{class n extends te.d{getFilter(t="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:p,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${p}/ActivityLog/Pbx.GetFilter()`,{responseType:o,...d?{withCredentials:d}:{},headers:a,observe:t})}getFilterQuery(t="body",a=!1,s){return"/ActivityLog/Pbx.GetFilter()"}getLogs(t,a="body"){const s=t?.startDate;if(null==s)throw new Error("Required parameter startDate was null or undefined when calling getLogs.");const o=t?.endDate;if(null==o)throw new Error("Required parameter endDate was null or undefined when calling getLogs.");const c=t?.extension;if(null==c)throw new Error("Required parameter extension was null or undefined when calling getLogs.");const p=t?.call;if(null==p)throw new Error("Required parameter call was null or undefined when calling getLogs.");const d=t?.severity;if(null==d)throw new Error("Required parameter severity was null or undefined when calling getLogs.");const g=t?.$top,v=t?.$skip,y=t?.$search,h=t?.$filter,$=t?.$count,f=t?.$select,P=t?.$orderby,W=t?.$expand;let T=new u.rx(this.encoder);T=this.addToHttpParams(T,"$top",g,u.l2.Form,!1),T=this.addToHttpParams(T,"$skip",v,u.l2.Form,!1),T=this.addToHttpParams(T,"$search",y,u.l2.Form,!1),T=this.addToHttpParams(T,"$filter",h,u.l2.Form,!1),T=this.addToHttpParams(T,"$count",$,u.l2.Form,!1),T=this.addToHttpParams(T,"$select",f,u.l2.Form,!1),T=this.addToHttpParams(T,"$orderby",P,u.l2.Form,!1),T=this.addToHttpParams(T,"$expand",W,u.l2.Form,!1);let D=this.defaultHeaders;D=this.configuration.addCredentialToHeaders("Application","Authorization",D,"Bearer ");const R=this.configuration.selectHeaderAccept(["application/json"]);void 0!==R&&(D=D.set("Accept",R));let ye="json";R&&(ye=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let Go=`/ActivityLog/Pbx.GetLogs(startDate=${this.configuration.encodeParam({name:"startDate",value:s,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"date-time"})},endDate=${this.configuration.encodeParam({name:"endDate",value:o,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"date-time"})},extension=${this.configuration.encodeParam({name:"extension",value:c,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})},call=${this.configuration.encodeParam({name:"call",value:p,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})},severity=${this.configuration.encodeParam({name:"severity",value:d,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:Oo,withCredentials:yt}=this.configuration;return this.httpClient.request("get",`${Oo}${Go}`,{params:T.toHttpParams(),responseType:ye,...yt?{withCredentials:yt}:{},headers:D,observe:a})}getLogsQuery(t,a="body",s=!1,o){const c=t.startDate;if(null==c)throw new Error("Required parameter startDate was null or undefined when calling getLogs.");const p=t.endDate;if(null==p)throw new Error("Required parameter endDate was null or undefined when calling getLogs.");const d=t.extension;if(null==d)throw new Error("Required parameter extension was null or undefined when calling getLogs.");const g=t.call;if(null==g)throw new Error("Required parameter call was null or undefined when calling getLogs.");const v=t.severity;if(null==v)throw new Error("Required parameter severity was null or undefined when calling getLogs.");const y=t.$top,h=t.$skip,$=t.$search,f=t.$filter,P=t.$count,W=t.$select,T=t.$orderby,D=t.$expand;let R=new u.rx(this.encoder);return R=this.addToHttpParams(R,"$top",y,u.l2.Form,!1),R=this.addToHttpParams(R,"$skip",h,u.l2.Form,!1),R=this.addToHttpParams(R,"$search",$,u.l2.Form,!1),R=this.addToHttpParams(R,"$filter",f,u.l2.Form,!1),R=this.addToHttpParams(R,"$count",P,u.l2.Form,!1),R=this.addToHttpParams(R,"$select",W,u.l2.Form,!1),R=this.addToHttpParams(R,"$orderby",T,u.l2.Form,!1),R=this.addToHttpParams(R,"$expand",D,u.l2.Form,!1),`/ActivityLog/Pbx.GetLogs(startDate=${this.configuration.encodeParam({name:"startDate",value:c,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"date-time"})},endDate=${this.configuration.encodeParam({name:"endDate",value:p,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"date-time"})},extension=${this.configuration.encodeParam({name:"extension",value:d,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})},call=${this.configuration.encodeParam({name:"call",value:g,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})},severity=${this.configuration.encodeParam({name:"severity",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})?`+R.toString()}purgeLogs(t="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:p,withCredentials:d}=this.configuration;return this.httpClient.request("post",`${p}/ActivityLog/Pbx.PurgeLogs`,{responseType:o,...d?{withCredentials:d}:{},headers:a,observe:t})}purgeLogsQuery(t="body",a=!1,s){return"/ActivityLog/Pbx.PurgeLogs"}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),pt=(()=>{class n extends te.d{getLoggingSettings(t,a="body"){const s=t?.$select,o=t?.$expand;let c=new u.rx(this.encoder);c=this.addToHttpParams(c,"$select",s,u.l2.Form,!1),c=this.addToHttpParams(c,"$expand",o,u.l2.Form,!1);let p=this.defaultHeaders;p=this.configuration.addCredentialToHeaders("Application","Authorization",p,"Bearer ");const d=this.configuration.selectHeaderAccept(["application/json"]);void 0!==d&&(p=p.set("Accept",d));let g="json";d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("get",`${y}/LoggingSettings`,{params:c.toHttpParams(),responseType:g,...h?{withCredentials:h}:{},headers:p,observe:a})}getLoggingSettingsQuery(t,a="body",s=!1,o){const c=t.$select,p=t.$expand;let d=new u.rx(this.encoder);return d=this.addToHttpParams(d,"$select",c,u.l2.Form,!1),d=this.addToHttpParams(d,"$expand",p,u.l2.Form,!1),"/LoggingSettings?"+d.toString()}updateLoggingSettings(t,a="body"){const s=t?.pbxLoggingSettings;let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=this.configuration.selectHeaderAccept(["application/json"]);void 0!==c&&(o=o.set("Accept",c));const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(o=o.set("Content-Type",d));let g="json";c&&(g=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");const{basePath:y,withCredentials:h}=this.configuration;return this.httpClient.request("patch",`${y}/LoggingSettings`,{body:s,responseType:g,...h?{withCredentials:h}:{},headers:o,observe:a})}updateLoggingSettingsQuery(t,a="body",s=!1,o){return"/LoggingSettings"}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dt=(()=>{class n{api=(0,i.WQX)(Me);dataFetcher=(t,a)=>s=>s.pipe((0,A.n)(o=>
1this.api.getLogs({...t,$skip:o*a,$top:a})),(0,k.T)(o=>o.value??[]));static \u0275fac=function(a){return new(a||n)};static \u0275prov=i.jDH({token:n,factory:n.\u0275fac})}return n})();var mt=r(23294),ro=r(79997),Q=r(75215),lo=r(66300);let co=(()=>{class n extends q.m{cd=(0,i.WQX)(x.gRc);loggingSettingsApiService=(0,i.WQX)(pt);xapiError=(0,i.WQX)(me.Ko);destroy$=(0,i.WQX)(i.abz);initialValue;loggingLevelOptions=[{value:0,label:"_i18n.LoggingLevelOff"},{value:1,label:"_i18n.LoggingLevelLow"},{value:2,label:"_i18n.LoggingLevelMedium"},{value:3,label:"_i18n.LoggingLevelVerbose"}];loggingKeepDaysOptions=[{value:1,label:"_i18n.KeepLogs1Day"},{value:5,label:"_i18n.KeepLogs5Days"},{value:10,label:"_i18n.KeepLogs10Days"}];buttons=U.P.OkCancel;form=new m.gE({KeepLogs:new m.MJ(!1,m.k0.required),KeepLogsDays:new m.MJ(0,[m.k0.min(1),m.k0.max(999)]),LoggingLevel:new m.MJ(0,[m.k0.min(0),m.k0.max(3)])});validateBeforeSubmit=this.createDialogValidate(this.form,this.cd);get f(){return this.form.controls}ngOnInit(){this.f.KeepLogs.valueChanges.pipe((0,F.pQ)(this.destroy$)).subscribe(t=>{(0,j.TZ)(this.f.KeepLogsDays,t)}),this.form.patchValue(this.initialValue)}submit$=()=>this.loggingSettingsApiService.updateLoggingSettings({pbxLoggingSettings:this.form.value}).pipe(this.handleError(this.xapiError,this.cd,this.form));static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],hostVars:2,hostBindings:function(a,s){2&a&&e.AVh("modal-lg",!0)},inputs:{initialValue:"initialValue"},features:[e.Vt3],decls:5,vars:8,consts:[["header","_i18n.Settings",3,"submitted","validateBeforeSubmit","buttons","submit$"],["data-qa","logging-level","label","_i18n.LoggingLevel",3,"formControl","options"],[1,"d-flex","align-items-center","gap-3"],["label","_i18n.KeepLogs","data-qa","keep-logs",1,"mb-0",3,"formControl"],["data-qa","keep-logs-days",1,"flex-basis-100","mb-0",3,"formControl","options"]],template:function(a,s){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.nrm(1,"field-radio-group",1),e.j41(2,"div",2),e.nrm(3,"field-checkbox",3)(4,"field-select",4),e.k0s()()),2&a&&(e.Y8G("validateBeforeSubmit",s.validateBeforeSubmit)("buttons",s.buttons)("submit$",s.submit$),e.R7$(),e.Y8G("formControl",s.f.LoggingLevel)("options",s.loggingLevelOptions),e.R7$(2),e.Y8G("formControl",s.f.KeepLogs),e.R7$(),e.Y8G("formControl",s.f.KeepLogsDays)("options",s.loggingKeepDaysOptions))},dependencies:[Z.p,Re.u,m.X1,m.BC,m.l_,xe.t,lo.q],encapsulation:2,changeDetection:0})}return n})();var ut=r(38969),po=r(18345),ht=r(74005),gt=r(47429),mo=r(22429);function uo(n,l){if(1&n&&(e.j41(0,"tr")(1,"td",12),e.EFF(2),e.k0s(),e.j41(3,"td",13),e.EFF(4),e.k0s()()),2&n){const t=l.$implicit,a=e.XpG(2);e.R7$(2),e.JRh(a.formatDate(t.TimeStamp)),e.R7$(2),e.JRh(t.Message)}}function ho(n,l){1&n&&(e.j41(0,"tr")(1,"td",14),e.nrm(2,"div",15),e.k0s()())}function go(n,l){1&n&&(e.j41(0,"tr")(1,"td",16),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"_i18n.ReportsNoData")," "))}function fo(n,l){if(1&n&&(e.j41(0,"table",11)(1,"thead")(2,"tr")(3,"th"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"th"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.j41(9,"tbody"),e.Z7z(10,uo,5,2,"tr",null,e.fX1),e.nVh(12,ho,3,0,"tr")(13,go,4,3,"tr"),e.k0s()()),2&n){const t=l;e.R7$(4),e.JRh(e.bMT(5,3,"_i18n.Date")),e.R7$(3),e.JRh(e.bMT(8,5,"_i18n.ReportsMessage")),e.R7$(3),e.Dyx(t.data),e.R7$(2),e.vxM(t.hasMore?12:t.data.length||t.isLoading?-1:13)}}var Ce=function(n){return n.All="All",n.Important="Important",n}(Ce||{});let bo=(()=>{class n{activityLogApi=(0,i.WQX)(Me);route=(0,i.WQX)(B.nX);dataSource=(0,i.WQX)(dt);modalService=(0,i.WQX)(L.B);loggingSettingsApi=(0,i.WQX)(pt);destroy$=(0,i.WQX)(i.abz);search=new m.MJ("",{nonNullable:!0});severityOptions=[{label:"_i18n.All",value:Ce.All},{label:"_i18n.ErrorsAndWarnings",value:Ce.Important}];filter=new m.gE({severity:new m.MJ(new Q.L("_i18n.LoggingSettings","severity",this.severityOptions),{nonNullable:!0}),extension:new m.MJ(new Q.L("_i18n.Extension","extension",[oe("")]),{nonNullable:!0}),call:new m.MJ(new Q.L("_i18n.Call","call",[oe("")]),{nonNullable:!0})});nextPage$=new K.t(void 0);reset$=new K.t(void 0);parameters$=new K.t(this.getParameters());paginator$=(0,ro.K)(this.modalService,this.destroy$,this.parameters$,this.nextPage$,this.reset$,this.dataSource.dataFetcher,1e3);hasMoreOrLoading$=this.paginator$.pipe((0,k.T)(t=>!t.hasMore||t.isLoading));
1ngOnInit(){const t=this.route.snapshot.data.activityLogsFilter,a={},s=new Set([""]);t.Extensions?.forEach(c=>{c.Number&&c.CallIds&&(a[c.Number]=["",...c.CallIds].sort(Pe).map(oe),c.CallIds.forEach(p=>s.add(p)))}),a[""]=Array.from(s).sort(Pe).map(oe);const o=Object.keys(a).sort(Pe).map(oe);this.filter.patchValue({extension:new Q.L("_i18n.Extension","extension",o)}),this.filter.controls.severity.valueChanges.pipe((0,k.T)(c=>c.value.selectedValue||""),(0,mt.F)(),(0,F.pQ)(this.destroy$)).subscribe(c=>{this.updateFilterState(c)}),(0,j.XP)(this.filter.controls.extension).pipe((0,k.T)(c=>c.value.selectedValue||""),(0,mt.F)(),(0,F.pQ)(this.destroy$)).subscribe(c=>{this.filter.patchValue({call:new Q.L("_i18n.Call","call",a[c])})})}formatDate(t){if(!t)return"";const a=N()(t);return a.format("L LTS").replace(/(\b\d{1,2}:\d{1,2}:\d{1,2}\b)/,"$1."+a.format("SSS"))}submitFilter(){const t=this.getParameters();this.updateFilterState(t.severity),this.parameters$.next(t)}getParameters(){const{extension:t,call:a,severity:s}=this.filter.value,o=new Date,c=new Date(o.getFullYear()-1,o.getMonth(),o.getDate());return{$search:(0,be.Bj)(this.search.value),extension:t?.value.selectedValue??"",call:a?.value.selectedValue??"",severity:s.value.selectedValue,startDate:c.toISOString(),endDate:o.toISOString()}}updateFilterState(t){const a=t===Ce.All;(0,j.TZ)(this.filter.controls.call,a),(0,j.TZ)(this.filter.controls.extension,a),a||(this.filter.controls.call.value.value={selectedValue:null},this.filter.controls.extension.value.value={selectedValue:null})}openLoggingSettings(){this.loggingSettingsApi.getLoggingSettings({}).pipe((0,H.Tg)(this.modalService)).subscribe(t=>{this.modalService.showDialog(co,{initialValue:t})})}purge(){this.modalService.confirmDangerAction("_i18n.PurgeEventLogConfirmation").pipe((0,A.n)(()=>this.activityLogApi.purgeLogs()),(0,H.Tg)(this.modalService)).subscribe(()=>this.refresh())}refresh(){this.parameters$.next(this.getParameters()),this.reset$.next()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],features:[e.Jv_([dt])],decls:26,vars:20,consts:[["header","_i18n.ActivityLog","helpUrl","_i18n.SystemUri","backRouterLink",".."],["top-bar","",1,"button-group"],["type","button","data-qa","logging-settings",1,"btn","btn-primary",3,"click"],["data-qa","purge-activity-log","type","button",1,"btn","btn-primary",3,"click"],["data-qa","refresh-activity-log","type","button",1,"btn","btn-primary",3,"click"],["top-bar","",3,"filterChanged","search","filterForm","formGroup"],["formControlName","severity"],["formControlName","extension"],["formControlName","call"],["id","scrollableList",1,"scrollable"],["infiniteScroll","",3,"infiniteScrollCallback","infiniteScrollContainer","infiniteScrollDistance","infiniteScrollDisabled"],[1,"scrollable-table"],[1,"align-text-top","text-md-nowrap"],[1,"text-break","text-keep-lines"],["colspan","2"],[1,"loader"],["colspan","2",1,"text-center"]],template:function(a,s){if(1&a&&(e.j41(0,"app-page",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return s.openLoggingSettings()}),e.nrm(3,"app-gear-solid-icon"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"button",3),e.bIt("click",function(){return s.purge()}),e.nrm(8,"app-trash-alt-solid-icon"),e.j41(9,"span"),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"button",4),e.bIt("click",function(){return s.refresh()}),e.nrm(13,"app-arrows-rotate-regular-regular-icon"),e.j41(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"app-complex-filter",5),e.bIt("filterChanged",function(){return s.submitFilter()}),e.nrm(18,"app-enum-filter",6)(19,"app-enum-filter",7)(20,"app-enum-filter",8),e.k0s(),e.j41(21,"div",9)(22,"div",10),e.nI1(23,"async"),e.bIt("infiniteScrollCallback",function(){return s.nextPage$.next()}),e.nVh(24,fo,14,7,"table",11),e.nI1(25,"async"),e.k0s()()()),2&a){let o;e.R7$(5),e.JRh(e.bMT(6,10,"_i18n.Settings")),e.R7$(5),e.JRh(e.bMT(11,12,"_i18n.Purge")),e.R7$(5),e.JRh(e.bMT(16,14,"_i18n.Refresh")),e.R7$(2),e.Y8G("search",s.search)("filterForm",s.filter)("formGroup",s.filter),e.R7$(5),e.Y8G("infiniteScrollContainer","#scrollableList")("infiniteScrollDistance",1)("infiniteScrollDisabled",e.bMT(23,16,s.hasMoreOrLoading$)),e.R7$(2),e.vxM((o=e.bMT(25,18,s.paginator$))?24:-1,o)}},dependencies:[G.H,Ke.n,ut.d,po.c,ht.M,m.X1,m.BC,m.cb,m.j4,m.JD,gt.j,mo.D,J.Jj,_.D9],styles:['@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{min-height:auto;display:inline-flex;flex:none;background-color:var(--background);padding:0}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-right:10px}.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], table.scrollable-table[_ngcontent-%COMP%]{min-width:700px;overflow-x:auto}@media(min-width:768px){.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)), table.scrollable-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)){width:100%}}.grouped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]:first-child{position:sticky;top:0;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%], .grouped-table[_ngcontent-%COMP%]   tr.table-group-header[_ngcontent-%COMP%]{cursor:pointer;background:var(--bg-table-group);position:sticky;top:30px;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{font-weight:400}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:first-child{white-space:nowrap}.grouped-table[_ngcontent-%COMP%]   .table-group-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:40px}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent;transition:.3s transform;transform:rotate(0)}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon.dropdown-arrow-icon-rotated[_ngcontent-%COMP%]{transform:rotate(-90deg)}'],changeDetection:0})}return n})();const Pe=(n,l)=>n.localeCompare(l,"en",{numeric:!0}),oe=n=>({value:n,label:n||"_i18n.All"});var vo=r(19037),_o=r(28793),yo=r(96827),So=r(62329),To=r(45678),Ro=r(30407),xo=r(41657),ko=r(76415);let ft=(()=>{class n extends te.d{listSecurityRefreshToken(t,a="body"){const s=t?.$top,o=t?.$skip,c=t?.$search,p=t?.$filter,d=t?.$count,g=t?.$orderby,v=t?.$select,y=t?.$expand;let h=new u.rx(this.encoder);h=this.addToHttpParams(h,"$top",s,u.l2.Form,!1),h=this.addToHttpParams(h,"$skip",o,u.l2.Form,!1),h=this.addToHttpParams(h,"$search",c,u.l2.Form,!1),h=this.addToHttpParams(h,"$filter",p,u.l2.Form,!1),h=this.addToHttpParams(h,"$count",d,u.l2.Form,!1),h=this.addToHttpParams(h,"$orderby",g,u.l2.Form,!1),h=this.addToHttpParams(h,"$select",v,u.l2.Form,!1),h=this.addToHttpParams(h,"$expand",y,u.l2.Form,!1);let $=this.defaultHeaders;$=this.configuration.addCredentialToHeaders("Application","Authorization",$,"Bearer ");const f=this.configuration.selectHeaderAccept(["application/json"]);void 0!==f&&($=$.set("Accept",f));let P="json";f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");const{basePath:T,withCredentials:D}=this.configuration;return this.httpClient.request("get",`${T}/SecurityTokens`,{params:h.toHttpParams(),responseType:P,...D?{withCredentials:D}:{},headers:$,observe:a})}listSecurityRefreshTokenQuery(t,a="body",s=!1,o){const c=t.$top,p=t.$skip,d=t.$search,g=t.$filter,v=t.$count,y=t.$orderby,h=t.$select,$=t.$expand;let f=new u.rx(this.encoder);
1return f=this.addToHttpParams(f,"$top",c,u.l2.Form,!1),f=this.addToHttpParams(f,"$skip",p,u.l2.Form,!1),f=this.addToHttpParams(f,"$search",d,u.l2.Form,!1),f=this.addToHttpParams(f,"$filter",g,u.l2.Form,!1),f=this.addToHttpParams(f,"$count",v,u.l2.Form,!1),f=this.addToHttpParams(f,"$orderby",y,u.l2.Form,!1),f=this.addToHttpParams(f,"$select",h,u.l2.Form,!1),f=this.addToHttpParams(f,"$expand",$,u.l2.Form,!1),"/SecurityTokens?"+f.toString()}revokeSecurityToken(t,a="body"){const s=t?.id;if(null==s)throw new Error("Required parameter id was null or undefined when calling revokeSecurityToken.");let o=this.defaultHeaders;o=this.configuration.addCredentialToHeaders("Application","Authorization",o,"Bearer ");const c=this.configuration.selectHeaderAccept(["application/json"]);void 0!==c&&(o=o.set("Accept",c));let p="json";c&&(p=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let d=`/SecurityTokens(${this.configuration.encodeParam({name:"id",value:s,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})/Pbx.RevokeToken`;const{basePath:g,withCredentials:v}=this.configuration;return this.httpClient.request("post",`${g}${d}`,{responseType:p,...v?{withCredentials:v}:{},headers:o,observe:a})}revokeSecurityTokenQuery(t,a="body",s=!1,o){const c=t.id;if(null==c)throw new Error("Required parameter id was null or undefined when calling revokeSecurityToken.");return`/SecurityTokens(${this.configuration.encodeParam({name:"id",value:c,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})/Pbx.RevokeToken`}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(n)))(s||n)}})();static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var $o=r(12426),bt=r(42610),Fo=r(53349),vt=r.n(Fo),Ct=r(25146);const _e={Date:"Date"}
1,X={All:"All",Revoked:"Revoked",Expired:"Expired",Active:"Active"};function _t(n){const l=[],t=n.search?.trim();if(t){const s=(0,be.Y)(t,!0);l.push(`(contains(tolower(DisplayName), '${s}') or contains(tolower(UserName), '${s}') or contains(tolower(CreatedByIp), '${s}') or contains(tolower(CreatedByUserAgent), '${s}') or contains(tolower(UsedByIp), '${s}') or contains(tolower(UsedByUserAgent), '${s}') or contains(tolower(RevokedByIp), '${s}')) `)}if((n.periodFromTo||n.periodType)&&n.filter?.includes(_e.Date)){const s=n.periodFromTo;l.push(`(Used ge ${s[0].toISOString()} and Used le ${s[1].toISOString()})`)}n.status===X.Revoked&&(l.push("Revoked ne null"),"All"!==n.revokeReason&&n.revokeReason&&l.push(`ReasonRevoked eq '${n.revokeReason}'`));const a=(new Date).toISOString();return n.status===X.Expired?(l.push("Revoked eq null"),l.push(`Expires le ${a}`)):n.status===X.Active&&(l.push("Revoked eq null"),l.push(`Expires gt ${a}`)),l}let Io=(()=>{class n{api=(0,i.WQX)(ft);localStorageService=(0,i.WQX)($o.sj);getStoredPageSize(){const t=this.localStorageService.retrieve(bt.Hh.SessionsPageSize);return t?+t:ve.z9}setStoredPageSize(t){this.localStorageService.store(bt.Hh.SessionsPageSize,t)}resolveData(t,a,s,o){return this.api.listSecurityRefreshToken({$orderby:["Used desc"],...o?{$filter:o}:{},$count:!0,$skip:(t-1)*a,$top:a}).pipe((0,k.T)(c=>({value:c.value?.map(p=>{const d=vt().getParser(p.UsedByUserAgent||"unknown").getResult(),g=vt().getParser(p.CreatedByUserAgent||"unknown").getResult();return{created:p.Created,createdByIp:p.CreatedByIp,createdByUserAgent:(0,Ct.P)({ua:p.CreatedByUserAgent||"",bowser:g}),userName:p.Username,displayName:p.DisplayName,id:p.Id,usedByIp:p.UsedByIp,lastUsed:p.Used,usedByUserAgent:(0,Ct.P)({ua:p.UsedByUserAgent||"",bowser:d}),token:p.Token,revoked:p.Revoked,revokedByIp:p.RevokedByIp,reasonRevoked:p.ReasonRevoked}})??[],totalItems:c["@odata.count"]})))}static \u0275fac=function(a){return new(a||n)};static \u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Mo=r(29325);function Po(n,l){1&n&&e.nrm(0,"app-date-range-filter",5)}function jo(n,l){1&n&&e.nrm(0,"app-enum-filter",7)}function Eo(n,l){1&n&&(e.j41(0,"th",12),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"th"),e.EFF(4),e.nI1(5,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"_i18n.RevokedByWhen")),e.R7$(3),e.JRh(e.bMT(5,4,"_i18n.RevokeReason")))}function wo(n,l){if(1&n&&(e.j41(0,"small"),e.EFF(1),e.nI1(2,"amDateFormat"),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,t.revoked,"L"))}}function Do(n,l){if(1&n&&(e.j41(0,"td",12),e.EFF(1),e.nVh(2,wo,3,4,"small"),e.k0s(),e.j41(3,"td"),e.EFF(4),e.nI1(5,"translate"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.revokedByIp," "),e.R7$(),e.vxM(t.revoked?2:-1),e.R7$(2),e.JRh(t.reasonRevoked&&e.bMT(5,3,"_i18n."+t.reasonRevoked))}}function Ao(n,l){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td",10)(2,"app-checker",16),e.bIt("ngModelChange",function(s){const o=i.eBV(t).$implicit,c=e.XpG();return i.Njj(c.selector.setSelected(o,s))})("checkerClick",function(s){const o=i.eBV(t).$implicit,c=e.XpG();return i.Njj(c.selector.handleCheckerClick(o,s))}),e.k0s()(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td",12),e.EFF(8),e.j41(9,"small",17),e.EFF(10),e.k0s()(),e.j41(11,"td",18),e.EFF(12),e.nI1(13,"amLocal"),e.nI1(14,"amTodayYesterdayPipe"),e.k0s(),e.j41(15,"td",19),e.EFF(16),e.nI1(17,"amLocal"),e.nI1(18,"amDateFormat"),e.k0s(),e.j41(19,"td",20),e.EFF(20),e.j41(21,"small",17),e.EFF(22),e.k0s()(),e.j41(23,"td",21),e.EFF(24),e.k0s(),e.j41(25,"td",18),e.EFF(26),e.nI1(27,"amLocal"),e.nI1(28,"amTodayYesterdayPipe"),e.k0s(),e.j41(29,"td",22),e.EFF(30),e.nI1(31,"amLocal"),e.nI1(32,"amDateFormat"),e.k0s(),e.nVh(33,Do,6,5),e.j41(34,"td",13)(35,"row-action-button")(36,"li",23)(37,"button",24),e.bIt("click",function(){const s=i.eBV(t).$implicit,o=e.XpG();return i.Njj(o.revokeToken(s))}),e.EFF(38),e.nI1(39,"translate"),e.k0s()()()()()}if(2&n){const t=l.$implicit,a=e.XpG();e.R7$(2),e.Y8G("ngModel",a.selector.isRowSelected(t)),e.R7$(2),e.JRh(t.userName),e.R7$(2),e.JRh(t.displayName),e.R7$(2),e.SpI("",t.createdByIp," "),e.R7$(2),e.JRh(t.createdByUserAgent),e.R7$(2),e.JRh(e.i5U(14,17,e.bMT(13,15,t.created),"L LT")),e.R7$(4),e.JRh(e.i5U(18,22,e.bMT(17,20,t.created),"L")),e.R7$(4),e.SpI("",t.usedByIp," "),e.R7$(2),e.JRh(t.usedByUserAgent),e.R7$(2),e.SpI("",t.usedByIp," "),e.R7$(2),e.JRh(e.i5U(28,27,e.bMT(27,25,t.lastUsed),"L LT")),e.R7$(4),e.JRh(e.i5U(32,32,e.bMT(31,30,t.lastUsed),"L")),e.R7$(3),e.vxM(a.statusControl!==a.SessionsRevoked.Active?33:-1),e.R7$(4),e.Y8G("disabled",!!t.revoked||!a.isSystemOwner),e.R7$(),e.SpI(" ",e.bMT(39,35,"_i18n.Revoke")," ")}}function Vo(n,l){1&n&&(e.j41(0,"tr")(1,"td",25),e.nrm(2,"div",26),e.k0s()())}let Lo=(()=>{class n{destroy$=(0,i.WQX)(i.abz);modalService=(0,i.WQX)(L.B);securityTokensApiService=(0,i.WQX)(ft);cd=(0,i.WQX)(x.gRc);resolver=(0,i.WQX)(Io);route=(0,i.WQX)(B.nX);SessionsRevoked=X;SessionsFilters=_e;tokens=[];myToken;selector;searchText=new m.MJ("",{nonNullable:!0});initialLoading=!0;pager;hasMoreOrLoading$;nextPage$=new K.t(void 0);reset$=new K.t(void 0);get toRevokeCount(){const t=this.selector.selectedValues.filter(a=>!a.revoked).length;return t?` (${t})`:""}get canRevoke(){return this.selector.selectedValues.some(t=>!t.revoked)}get statusControl(){return this.f.status.value.value.selectedValue}get filterControl(){return this.f.filter.value.value.selectedValues}get isSystemOwner(){return"system_owners"===this.myToken.myRole}
1get parameters(){const{lastUsed:t,status:a,revokeReason:s,filter:o}=this.filter.value;return{...t?.value,status:a.value.selectedValue,search:this.searchText.value,filter:o.value.selectedValues??[],revokeReason:s?.value?.selectedValue}}get f(){return this.filter.controls}sessionsStatusOptions=[{label:"_i18n.Active",value:X.Active},{label:"_i18n.AlreadyExpired",value:X.Expired},{label:"_i18n.Revoked",value:X.Revoked},{label:"_i18n.All",value:X.All}];revokeReasonOption=[{label:"_i18n.All",value:"All"},{label:"_i18n.TooMany",value:"TooMany"},{label:"_i18n.SetPassword",value:"SetPassword"},{label:"_i18n.InvalidatePassword",value:"InvalidatePassword"},{label:"_i18n.Logout",value:"Logout"},{label:"_i18n.Manual",value:"Manual"}];filterOptions=[{label:"_i18n.FilterByDate",value:_e.Date}];revokeReasonControl=new Q.L("_i18n.RevokeReason","revokeReason",this.revokeReasonOption);filter=new m.gE({filter:new m.MJ(new yo.M("_i18n.Filter","filter",this.filterOptions,{selectedValues:[]}),{nonNullable:!0}),lastUsed:new m.MJ(new So.J({periodType:To.ci.Today},!1),{nonNullable:!0}),status:new m.MJ(new Q.L("_i18n.Status","status",this.sessionsStatusOptions),{nonNullable:!0}),revokeReason:new m.MJ({value:this.revokeReasonControl,disabled:!0},{nonNullable:!0})});identify(t,a){return a.id}constructor(){this.route.data.pipe((0,F.pQ)(this.destroy$)).subscribe(t=>{this.myToken=t.myToken}),(0,j.XP)(this.f.filter).pipe((0,F.pQ)(this.destroy$)).subscribe(t=>{(0,j.TZ)(this.f.lastUsed,t.value?.selectedValues?.includes(_e.Date))}),(0,j.XP)(this.f.status).pipe((0,F.pQ)(this.destroy$)).subscribe(t=>{const a=this.filter.get("revokeReason");t.value.selectedValue!==X.Revoked?(a?.patchValue(this.revokeReasonControl),a?.disable()):a?.enable(),this.cd.markForCheck()}),this.route.queryParams.pipe((0,F.pQ)(this.destroy$)).subscribe(t=>{const a=(0,Ro.w)(t);this.f.filter.setValue(this.f.filter.value.deserialize(a)),this.f.status.setValue(this.f.status.value.deserialize(a))}),this.selector=new ot.a({cd:this.cd,keySelector:t=>t.id}),this.pager=new lt.f(this.destroy$,this.resolver,void 0,this.resolver.getStoredPageSize(),_t(this.parameters).join(" and "),!0),this.pager.pagedItems$.pipe((0,F.pQ)(this.destroy$)).subscribe({next:t=>this.updateItems(t),error:t=>this.modalService.error(t)})}updateItems(t){this.selector.onDataChanged(t.value||[]),this.initialLoading=!1,this.tokens=t.value||[],this.cd.markForCheck()}applyFilter(){this.pager.filterChanged(_t(this.parameters).join(" and "))}onPageSizeChange(t){this.resolver.setStoredPageSize(t),this.pager.pageSizeChanged(t)}revokeToken(t){this.securityTokensApiService.revokeSecurityToken({id:t.id}).pipe((0,F.pQ)(this.destroy$)).subscribe({next:a=>{this.applyFilter(),this.selector.resetSingle(t.id)},error:a=>this.modalService.error(a)})}batchRevoke(){const t=this.selector.selectedValues.filter(o=>!o.revoked),a=t.findIndex(o=>o.token===this.myToken.id);if(-1!==a&&a!==t.length-1&&1!==t.length){const o=t.splice(a,1);t.push(o[0])}const s=(0,_o.x)(...t.map(o=>this.securityTokensApiService.revokeSecurityToken({id:o.id}))).pipe((0,k.T)((o,c)=>c));this.modalService.progress("_i18n.Revoke",t.length,s).subscribe({complete:()=>{this.applyFilter(),this.selector.resetAll()},error:o=>{this.selector.resetAll(),401!==o.status&&this.modalService.error(o)}})}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-sessions"]],decls:48,vars:42,consts:[["header","_i18n.Sessions"],["top-bar","",1,"button-group"],["type","button","data-qa","bulk_revoke",1,"btn","btn-primary",3,"click","disabled"],["top-bar","",3,"filterChanged","search","filterForm","formGroup"],["formControlName","filter"],["formControlName","lastUsed"],["formControlName","status"],["formControlName","revokeReason"],["full-width","",1,"scrollable-table"],[1,"table-header"],[1,"checker"],["data-qa","check-all",3,"ngModelChange","ngModel"],[1,"lg-visible"],[1,"actions"],["colspan","12"],[3,"pageChanged","itemsPerPageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks","showPageSizes"],["data-qa","checker",3,"ngModelChange","checkerClick","ngModel"],[1,"d-md-none","d-xl-inline"],[1,"xl-visible"],[1,"lg-visible","d-xl-none"],[1,"md-visible"],[1,"d-md-none"],[1,"d-xl-none"],["role","menuitem"],["type","button","data-qa","revoke-session",1,"dropdown-item",3,"click","disabled"],["colspan","9"],[1,"loader"]],template:function(a,s){1&a&&(e.j41(0,"app-page",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return s.batchRevoke()}),e.nrm(3,"app-trash-alt-solid-icon"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"app-complex-filter",3),e.bIt("filterChanged",function(){return s.applyFilter()}
1),e.nrm(8,"app-checkbox-group-filter",4),e.nVh(9,Po,1,0,"app-date-range-filter",5),e.nrm(10,"app-enum-filter",6),e.nVh(11,jo,1,0,"app-enum-filter",7),e.k0s(),e.j41(12,"table",8)(13,"thead")(14,"tr",9)(15,"th",10)(16,"app-checker",11),e.bIt("ngModelChange",function(c){return s.selector.setSelectAll(c)}),e.k0s()(),e.j41(17,"th"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"th"),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"th",12),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"th",12),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"th"),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"th"),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nVh(35,Eo,6,6),e.nrm(36,"th",13),e.k0s()(),e.j41(37,"tbody"),e.Z7z(38,Ao,40,37,"tr",null,s.identify,!0),e.k0s(),e.j41(40,"tfoot"),e.nVh(41,Vo,3,0,"tr"),e.j41(42,"tr")(43,"td",14)(44,"app-paging",15),e.nI1(45,"async"),e.nI1(46,"async"),e.nI1(47,"async"),e.bIt("pageChanged",function(c){return s.pager.pageChanged(c)})("itemsPerPageChanged",function(c){return s.onPageSizeChange(c)}),e.k0s()()()()()()),2&a&&(e.R7$(2),e.Y8G("disabled",!s.isSystemOwner||!s.canRevoke),e.R7$(3),e.Lme("",e.bMT(6,22,"_i18n.Revoke"),"",s.toRevokeCount),e.R7$(2),e.Y8G("search",s.searchText)("filterForm",s.filter)("formGroup",s.filter),e.R7$(2),e.vxM(null!=s.filterControl&&s.filterControl.includes(s.SessionsFilters.Date)?9:-1),e.R7$(2),e.vxM(s.statusControl===s.SessionsRevoked.Revoked?11:-1),e.R7$(5),e.Y8G("ngModel",s.selector.isAnySelected),e.R7$(2),e.JRh(e.bMT(19,24,"_i18n.UserID")),e.R7$(3),e.JRh(e.bMT(22,26,"_i18n.Username")),e.R7$(3),e.JRh(e.bMT(25,28,"_i18n.WhoCreated")),e.R7$(3),e.JRh(e.bMT(28,30,"_i18n.CreatedDate")),e.R7$(3),e.JRh(e.bMT(31,32,"_i18n.WhoLastUsed")),e.R7$(3),e.JRh(e.bMT(34,34,"_i18n.LastActiveOn")),e.R7$(2),e.vxM(s.statusControl!==s.SessionsRevoked.Active?35:-1),e.R7$(3),e.Dyx(s.tokens),e.R7$(3),e.vxM(s.initialLoading?41:-1),e.R7$(3),e.Y8G("currentPage",e.bMT(45,36,s.pager.currentPage$))("itemsPerPage",e.bMT(46,38,s.pager.pageSize$))("totalItems",e.bMT(47,40,s.pager.totalCount$))("showBoundaryLinks",!0)("showPageSizes",!0))},dependencies:[G.H,ut.d,ht.M,m.X1,m.BC,m.cb,m.j4,m.JD,xo.C,ko.B,gt.j,it.$,m.YN,m.vS,Mo.I,ve.u4,J.Jj,_.D9,he.a,ge.h,Ze.Y],encapsulation:2,changeDetection:0})}return n})();var Ho=r(93785);const Bo=[{path:"",pathMatch:"full",component:ys,resolve:{events:Se.pU,licenseStatus:Ss.i,isPaid:Ts.M7,myToken:at.C}},{path:"services",component:Vs,data:{title:"_i18n.Services",navTitle:"_i18n.Services"}},{path:"active-calls",component:Os,data:{title:"_i18n.ActiveCalls",navTitle:"_i18n.ActiveCalls"}},{path:"firewall",component:to,data:{title:"_i18n.Firewall",navTitle:"_i18n.Firewall"}},{path:"system-extensions",component:io,data:{title:"_i18n.Extensions",navTitle:"_i18n.Extensions"}},{path:"sessions",canActivate:[Ho.bV],component:Lo,data:{title:"_i18n.Sessions",navTitle:"_i18n.Sessions"},resolve:{myToken:at.C}},{path:"activity-log",component:bo,resolve:{activityLogsFilter:()=>{const n=(0,i.WQX)(Me),l=(0,i.WQX)(vo.s);return n.getFilter().pipe((0,Te.W)(t=>l.handleError(t)))}},data:{title:"_i18n.ActivityLog",navTitle:"_i18n.ActivityLog"}}]},70299(z,E,r){r.d(E,{Y:()=>H});var i=r(85802),x=r(32271),I=r(534),C=r(68018),B=r(89417),w=r(84460),S=r(58689),k=r(8516),b=r(35547);const re=["pop"],F=[[["button"],["",8,"btn"]],[["","description",""]]],G=["button,.btn","[description]"];function le(O,L){if(1&O){const _=b.RV6();b.j41(0,"button",7),b.bIt("click",function(){i.eBV(_);const M=b.XpG();return i.Njj(M.toggleConceal())}),b.nrm(1,"lucide-icon",4),b.k0s()}if(2&O){const _=b.XpG();b.R7$(),b.Y8G("img",_.concealIcon())}}let H=(()=>{class O{popComponent;timerId;label;description;text;data;disabled;conceal;isConcealed=(0,i.vPA)(!1);isNewDesign=(0,i.WQX)(S.T);concealIcon=(0,x.EW)(()=>this.isConcealed()?k.kU3:k.X_F);Copy=k.QRo;ngOnInit(){this.isConcealed.set(this.conceal)}toggleConceal(){this.isConcealed.set(!this.isConcealed())}copy(){this.clipboard&&this.clipboard.writeText(this.data??"").then(()=>{this.popComponent.show(),this.timerId&&clearTimeout(this.timerId),this.timerId=window.setTimeout(()=>{this.popComponent.hide()},1e3)}).catch(_=>{console.warn(_)})}get clipboard(){return navigator.clipboard}static \u0275fac=function(e){return new(e||O)};static \u0275cmp=b.VBU({type:O,selectors:[["app-input-copy-to-cl
1ipboard"]],viewQuery:function(e,M){if(1&e&&b.GBs(re,5),2&e){let ne;b.mGM(ne=b.lsd())&&(M.popComponent=ne.first)}},inputs:{label:"label",description:"description",text:"text",data:"data",disabled:"disabled",conceal:"conceal"},ngContentSelectors:G,decls:10,vars:11,consts:[["pop","bs-tooltip"],[3,"label","description","readonly","ngModel","disabled"],["type","button",1,"btn","btn-border","btn-icon"],["type","button","data-qa","copy","triggers","",1,"btn","btn-border","btn-icon",3,"click","disabled","tooltip"],[3,"img"],["ngProjectAs","button",5,["button"]],["ngProjectAs","[description]",5,["","description",""]],["type","button",1,"btn","btn-border","btn-icon",3,"click"]],template:function(e,M){1&e&&(b.NAR(F),b.j41(0,"field-input",1),b.nVh(1,le,2,1,"button",2),b.j41(2,"button",3,0),b.nI1(4,"translate"),b.bIt("click",function(){return M.copy()}),b.nrm(5,"lucide-icon",4),b.k0s(),b.qex(6,5),b.SdG(7),b.bVm(),b.qex(8,6),b.SdG(9,1),b.bVm(),b.k0s()),2&e&&(b.Y8G("label",M.label)("description",M.description)("readonly",!0)("ngModel",M.isConcealed()?"************":M.text??M.data??"")("disabled",M.disabled),b.R7$(),b.vxM(M.conceal?1:-1),b.R7$(),b.Y8G("disabled",!M.clipboard)("tooltip",b.bMT(4,9,"_i18n.Copied")),b.R7$(3),b.Y8G("img",M.Copy))},dependencies:[B.YN,B.BC,B.vS,w.m,I.dg,k.flO,k.WGl,C.D9],encapsulation:2,changeDetection:0})}return O})()},40960(z,E,r){r.d(E,{N:()=>I});var i=r(35547),x=r(85802);let I=(()=>{class C{static \u0275fac=function(S){return new(S||C)};static \u0275cmp=i.VBU({type:C,selectors:[["app-bell-solid-icon"],["","app-bell-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]],template:function(S,k){1&S&&(x.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return C})()},97268(z,E,r){r.d(E,{W:()=>I});var i=r(35547),x=r(85802);let I=(()=>{class C{static \u0275fac=function(S){return new(S||C)};static \u0275cmp=i.VBU({type:C,selectors:[["app-info-circle-solid-icon"],["","app-info-circle-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]],template:function(S,k){1&S&&(x.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return C})()},25244(z,E,r){r.d(E,{T:()=>I});var i=r(35547),x=r(85802);let I=(()=>{class C{static \u0275fac=function(S){return new(S||C)};static \u0275cmp=i.VBU({type:C,selectors:[["app-pencil-solid-icon"],["","app-pencil-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]],template:function(S,k){1&S&&(x.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return C})()},73993(z,E,r){r.d(E,{S:()=>I});var i=r(35547),x=r(85802);let I=(()=>{class C{static \u0275fac=function(S){return new(S||C)};static \u0275cmp=i.VBU({type:C,selectors:[["app-play-solid-icon"],["","app-play-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]],template:function(S,k){1&S&&(x.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return C})()},5738(z,E,r){r.d(E,{N:()=>I});var i=r(35547),x=r(85802);let I=(()=>{class C{static \u0275fac=function(S){return new(S||C)};static \u0275cmp=i.VBU({type:C,selectors:[["app-xmark-solid-icon"],["","app-xmark-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]],template:function(S,k){1&S&&(x.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return C})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.