PageSourceSearch

https://factor.com/7612.b90b966bc6409144.js

js factor.com collected 2026-10-04 04:06:28 UTC 45,604 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[7612],{87612(w,M,a){a.d(M,{BackupAndRestoreListComponent:()=>tt});var r=a(85802),h=a(17705),s=a(89417),d=a(19928),T=a(99421),c=a(38601),b=a(22972),C=a(54999);var _=a(81074),$=a(19236),f=a(72107),R=a(59053),l=a(7673),v=a(25558),p=a(27468),F=a(88141),B=a(96697),y=a(91413),O=a(41029),g=a(58571),S=a(96106),m=a(56998),x=a(25843),E=a(89079),P=a(40953),D=a(19781),N=a(60240),G=a(84460),A=a(24708),Y=a(72788),Q=a(95604),H=a(72510),z=a(17873),K=a(4115),Z=a(23375),q=a(5595),V=a(68018),e=a(35547);const ee=["failoverPreStartScriptFile"],te=["failoverPostStartScriptFile"];let ne=(()=>{class o extends b.m{xapiError=(0,r.WQX)(O.Ko);httpClient=(0,r.WQX)(y.Qq);modalService=(0,r.WQX)(c.B);backupsApiService=(0,r.WQX)(d.t);destroy$=(0,r.WQX)(r.abz);cd=(0,r.WQX)(h.gRc);failoverPreStartScriptFile;failoverPostStartFileUpload;initialValue;form;validateBeforeSubmit;backupStarted=!1;buttons=C.P.OkCancel;behaviourOptions=[{value:"AllService",label:"_i18n.FailoverWhenAllTestFail"},{value:"AnyService",label:"_i18n.FailoverWhenAtLeastOneFail"}];isActiveOptions=[{value:_.q.Active,label:"_i18n.Active"},{value:_.q.Passive,label:"_i18n.Passive"}];failoverScriptsOptions=[];get f(){return this.form.controls}ngOnInit(){this.updateFailoverScriptsOptions(),this.form=new s.gE({failoverSettings:new s.gE({Enabled:new s.MJ(this.initialValue.failoverSettings.Enabled??!1,{nonNullable:!0}),RemoteServer:new s.MJ(this.initialValue.failoverSettings.RemoteServer??"",{nonNullable:!0,validators:[s.k0.required,R.Ct]}),PreStartScript:new s.MJ(this.initialValue.failoverSettings.PreStartScript??"",{nonNullable:!0}),PostStartScript:new s.MJ(this.initialValue.failoverSettings.PostStartScript??"",{nonNullable:!0}),Mode:new s.MJ(this.initialValue.failoverSettings.Mode??_.q.Active,{nonNullable:!0}),Condition:new s.MJ(this.initialValue.failoverSettings.Condition??"AllService",{nonNullable:!0}),Interval:new s.MJ(this.initialValue.failoverSettings.Interval??30,{nonNullable:!0,validators:s.k0.required}),TestSIPServer:new s.MJ(this.initialValue.failoverSettings.TestSIPServer??!1,{nonNullable:!0}),TestTunnel:new s.MJ(this.initialValue.failoverSettings.TestTunnel??!1,{nonNullable:!0}),TestWebServer:new s.MJ(this.initialValue.failoverSettings.TestWebServer??!1,{nonNullable:!0})}),restoreScheduleSettings:new s.gE({EncryptBackup:new s.MJ(this.initialValue.restoreScheduleSettings.EncryptBackup??!1,{nonNullable:!0}),EncryptBackupPassword:new s.MJ({value:this.initialValue.restoreScheduleSettings.EncryptBackupPassword??{Value:""},disabled:!this.initialValue.restoreScheduleSettings.EncryptBackup},{nonNullable:!0,validators:[s.k0.required]}),ScheduleEnabled:new s.MJ(this.initialValue.restoreScheduleSettings.ScheduleEnabled??!1,{nonNullable:!0}),Schedule:new s.MJ(this.initialValue.restoreScheduleSettings.Schedule??{ScheduleType:$.M.Daily,Day:f.K.Monday,Time:"00:00:00"})})}),this.validateBeforeSubmit=this.createDialogValidate(this.form,this.cd),(0,m.XP)(this.f.restoreScheduleSettings.controls.EncryptBackup).pipe((0,E.pQ)(this.destroy$)).subscribe(t=>{(0,m.TZ)(this.f.restoreScheduleSettings.controls.EncryptBackupPassword,t)}),(0,m.XP)(this.f.failoverSettings.controls.Enabled).pipe((0,E.pQ)(this.destroy$)).subscribe(t=>{(0,m.TZ)(this.f.failoverSettings.controls.Mode,t),t||this.f.failoverSettings.controls.Mode.setValue(_.q.Active)}),(0,m.XP)(this.f.failoverSettings.controls.Mode).pipe((0,E.pQ)(this.destroy$)).subscribe(t=>{const{failoverSettings:i,restoreScheduleSettings:n}=this.f,u=t===_.q.Passive;(0,m.TZ)(n,u),(0,m.TZ)(i,u),(0,m.TZ)(i.controls.Enabled,!0),(0,m.TZ)(i.controls.Mode,i.controls.Enabled.value),this.f.restoreScheduleSettings.controls.ScheduleEnabled.setValue(u),(0,m.TZ)(n.controls.EncryptBackupPassword,u&&n.controls.EncryptBackup.value)})}uploadFailoverScriptFile(t,i){const n=(0,R.j$)(t,{maxSizeMb:x.ev});n?this.modalService.error(n):this.httpClient.post("/xapi/v1/Backups/UploadFailoverScript",(0,g.$)(t,"file")).pipe((0,S.Tg)(this.modalService)).subscribe(()=>{this.updateFailoverScriptsOptions(t.name,i)})}onUploadPreStartScriptFileBtnClick(){this.failoverPreStartScriptFile.nativeElement.value="",this.failoverPreStartScriptFile.nativeElement.click()}onUploadPostStartScriptFileBtnClick(){this.failoverPostStartFileUpload.nativeElement.value="",this.failoverPostStartFileUpload.nativeElement.click()}onFailoverScriptFileSelected(t,i){t&&t.length>0&&this.uploadFailoverScriptFile(t[0],i)}updateFailoverScriptsOptions(t,i){this.backupsApiService.getFailoverScripts({}).pipe((0,B.s)(1)).subscribe({next:n=>{if(this.failoverScriptsOptions=n?.value??[],t&&i){const u=this.failoverScriptsOptions.find(L=>L.Filename===t);u&&this.f.failoverSettings.controls[i].patchValue(u.Filename)}},error:n=>{this.modalService.error(n)}})}submit$=()=>this.backupStarted?(0,l.of)(void 0):this.form.value.failoverSettings?.Mode===_.q.Passive&&this.form.value.failoverSettings?.Enabled?this.modalService.confirmation("_i18n.FailoverPassiveModeConfirmationModalDescription","_i18n.FailoverPassiveModeConfirmationModalHeader").pipe((0,v.n)(()=>this.save$())):this.save$();save$=()=>{const t=this.form.value,i={...t.failoverSettings},n={...t.restoreScheduleSettings};return null===i.PreStartScript&&(i.PreStartScript=""),null===i.PostStartScript&&(i.PostStartScript=""),(!i.Enabled||t.failoverSettings?.Mode!==_.q.Passive)&&(n.ScheduleEnabled=!1),(0,p.p)([this.backupsApiService.setRestoreSettings({backupsSetRestoreSettingsRequestBody:{settings:n}}).pipe(this.handleError(this.xapiError,this.cd,this.f.restoreScheduleSettings)),this.backupsApiService.setBackup
1FailoverSettings({backupsSetBackupFailoverSettingsRequestBody:{settings:i}}).pipe(this.handleError(this.xapiError,this.cd,this.f.failoverSettings))]).pipe((0,F.M)(()=>{this.backupStarted=!0,this.cd.markForCheck()}))};static \u0275fac=(()=>{let t;return function(n){return(t||(t=e.xGo(o)))(n||o)}})();static \u0275cmp=e.VBU({type:o,selectors:[["app-failover-options-modal"]],viewQuery:function(i,n){if(1&i&&e.GBs(ee,5)(te,5),2&i){let u;e.mGM(u=e.lsd())&&(n.failoverPreStartScriptFile=u.first),e.mGM(u=e.lsd())&&(n.failoverPostStartFileUpload=u.first)}},hostVars:2,hostBindings:function(i,n){2&i&&e.AVh("modal-lg",!0)},inputs:{initialValue:"initialValue"},features:[e.Vt3],decls:59,vars:54,consts:[["failoverPreStartScriptFile",""],["failoverPostStartScriptFile",""],["header","_i18n.FailoverOptions",3,"submitted","buttons","formGroup","submit$","validateBeforeSubmit"],["data-qa","enable-failover","label","_i18n.EnableFailover",3,"formControl"],[1,"row"],[1,"col-lg-6"],["data-qa","mode","label","_i18n.FailoverMode",1,"mb-2",3,"viewStyle","options","formControl"],["data-qa","ip-address-active-server","label","_i18n.IPAddressOfActiveServer",1,"col-lg-6",3,"formControl"],[3,"control"],["data-qa","when-to-failover","label","_i18n.WhenToFailover",1,"mb-2",3,"options","formControl"],["data-qa","services-to-be-monitored","label","_i18n.ServicesToMonitored",1,"mb-2",3,"disabled"],[1,"row","mt-2"],[1,"col-lg-3"],["data-qa","sip-server","label","_i18n.SIPServer",1,"mb-2",3,"formControl"],["data-qa","webserver","label","_i18n.Webserver",1,"mb-2",3,"formControl"],["data-qa","media-tunnel-server","label","_i18n.MediaTunnelServer",1,"mb-2",3,"formControl"],["data-qa","time-interval","label","_i18n.TimeIntervalBetweenTests",3,"inlineLabel","formControl","max"],["label","_i18n.ScriptBeforeServicesStarted","data-qa","script-before-service-started",3,"disabled"],[1,"input-group"],["bindLabel","Filename","bindValue","Filename","data-qa","select",1,"flex-grow-1",3,"formControl","items"],[1,"input-group-append"],["type","file","hidden","",3,"change"],["type","button","data-qa","upload-before",1,"btn","btn-border",3,"click","title","disabled"],["app-arrow-alt-circle-up-solid-icon","",1,"svg-sm"],["label","_i18n.ScriptAfterServicesStarted","description","true","data-qa","script-after-service-started",1,"mb-1",3,"disabled"],["type","button","data-qa","upload-after",1,"btn","btn-border",3,"click","title","disabled"],["description",""],[1,"me-1"],["href","https://www.3cx.com/docs/failover/"],[3,"disabled"],[1,"mb-2"],[3,"formControl","enableHourly"],[1,"d-flex","align-items-center","gap-2","flex-wrap"],["data-qa","backup-encryption-password","label","_i18n.BackupEncryptionPassword",3,"formControl"],["data-qa","backup-password",3,"formControl","maxlength"]],template:function(i,n){if(1&i){const u=e.RV6();e.j41(0,"app-modal-dialog",2),e.bIt("submitted",function(){return n.onSubmit()}),e.nrm(1,"field-checkbox",3),e.j41(2,"fieldset")(3,"div",4)(4,"div",5),e.nrm(5,"field-radio-group",6),e.k0s()(),e.j41(6,"div",4)(7,"field-input",7),e.nrm(8,"val-errors",8),e.k0s()(),e.nrm(9,"field-radio-group",9),e.j41(10,"field-wrapper",10)(11,"div",11)(12,"div",12),e.nrm(13,"field-checkbox",13),e.k0s(),e.j41(14,"div",12),e.nrm(15,"field-checkbox",14),e.k0s(),e.j41(16,"div",12),e.nrm(17,"field-checkbox",15),e.k0s()()(),e.j41(18,"field-input-number",16),e.nrm(19,"val-errors",8),e.k0s(),e.j41(20,"field-wrapper",17)(21,"div",18),e.nrm(22,"ng-select",19),e.j41(23,"div",20)(24,"input",21,0),e.bIt("change",function(){r.eBV(u);const W=e.sdS(25);return r.Njj(n.onFailoverScriptFileSelected(W.files,"PreStartScript"))}),e.k0s(),e.j41(26,"button",22),e.nI1(27,"translate"),e.bIt("click",function(){return n.onUploadPreStartScriptFileBtnClick()}),e.nrm(28,"span",23),e.k0s()()()(),e.j41(29,"field-wrapper",24)(30,"div",18),e.nrm(31,"ng-select",19),e.j41(32,"div",20)(33,"input",21,1),e.bIt("change",function(){r.eBV(u);const W=e.sdS(34);return r.Njj(n.onFailoverScriptFileSelected(W.files,"PostStartScript"))}),e.k0s(),e.j41(35,"button",25),e.nI1(36,"translate"),e.bIt("click",function(){return n.onUploadPostStartScriptFileBtnClick()}),e.nrm(37,"span",23),e.k0s()()(),e.j41(38,"span",26)(39,"span",27),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"app-external-link",28),e.EFF(43),e.nI1(44,"translate"),e.k0s()()()(),e.j41(45,"fieldset",29)(46,"legend",30),e.EFF(47),e.nI1(48,"translate"),e.k0s(),e.j41(49,"p",30),e.EFF(50),e.nI1(51,"translate"),e.k0s(),e.j41(52,"field-wrapper"),e.nrm(53,"app-schedule",31)(54,"val-errors",8),e.k0s(),e.j41(55,"div",32),e.nrm(56,"field-checkbox",33),e.j41(57,"field-input-concealed-password",34),e.nrm(58,"val-errors",8),e.k0s()()()()}2&i&&(e.Y8G("buttons",n.buttons)("formGroup",n.form)("submit$",n.submit$)("validateBeforeSubmit",n.validateBeforeSubmit),e.R7$(),e.Y8G("formControl",n.f.failoverSettings.controls.Enabled),e.R7$(4),e.Y8G("viewStyle","
1inline")("options",n.isActiveOptions)("formControl",n.f.failoverSettings.controls.Mode),e.R7$(2),e.Y8G("formControl",n.f.failoverSettings.controls.RemoteServer),e.R7$(),e.Y8G("control",n.f.failoverSettings.controls.RemoteServer),e.R7$(),e.Y8G("options",n.behaviourOptions)("formControl",n.f.failoverSettings.controls.Condition),e.R7$(),e.Y8G("disabled",n.f.failoverSettings.controls.TestSIPServer.disabled),e.R7$(3),e.Y8G("formControl",n.f.failoverSettings.controls.TestSIPServer),e.R7$(2),e.Y8G("formControl",n.f.failoverSettings.controls.TestWebServer),e.R7$(2),e.Y8G("formControl",n.f.failoverSettings.controls.TestTunnel),e.R7$(),e.Y8G("inlineLabel",!0)("formControl",n.f.failoverSettings.controls.Interval)("max",172800),e.R7$(),e.Y8G("control",n.f.failoverSettings.controls.Interval),e.R7$(),e.Y8G("disabled",n.f.failoverSettings.controls.PreStartScript.disabled),e.R7$(2),e.Y8G("formControl",n.f.failoverSettings.controls.PreStartScript)("items",n.failoverScriptsOptions),e.R7$(4),e.Y8G("title",e.bMT(27,42,"_i18n.Upload"))("disabled",n.f.failoverSettings.controls.PreStartScript.disabled),e.R7$(3),e.Y8G("disabled",n.f.failoverSettings.controls.PostStartScript.disabled),e.R7$(2),e.Y8G("formControl",n.f.failoverSettings.controls.PostStartScript)("items",n.failoverScriptsOptions),e.R7$(4),e.Y8G("title",e.bMT(36,44,"_i18n.Upload"))("disabled",n.f.failoverSettings.controls.PostStartScript.disabled),e.R7$(5),e.SpI(" ",e.bMT(41,46,"_i18n.FailOverScriptDescription")),e.R7$(3),e.SpI(" ",e.bMT(44,48,"_i18n.MoreInfo")," "),e.R7$(2),e.Y8G("disabled",n.f.restoreScheduleSettings.disabled),e.R7$(2),e.JRh(e.bMT(48,50,"_i18n.ScheduledRestore")),e.R7$(3),e.SpI(" ",e.bMT(51,52,"_i18n.RestoreScheduleDescription")," "),e.R7$(3),e.Y8G("formControl",n.f.restoreScheduleSettings.controls.Schedule)("enableHourly",!0),e.R7$(),e.Y8G("control",n.f.restoreScheduleSettings.controls.Schedule),e.R7$(2),e.Y8G("formControl",n.f.restoreScheduleSettings.controls.EncryptBackup),e.R7$(),e.Y8G("formControl",n.f.restoreScheduleSettings.controls.EncryptBackupPassword)("maxlength",50),e.R7$(),e.Y8G("control",n.f.restoreScheduleSettings.controls.EncryptBackupPassword))},dependencies:[P.p,s.X1,s.BC,s.cb,s.tU,s.l_,s.j4,D.t,N.u,G.m,A.IH,Y.B,Q.z,H.vr,z.f,K.P,Z.b,q.p,V.D9],encapsulation:2,changeDetection:0})}return o})();var ae=a(983),ie=a(88256);function oe(o,k){1&o&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.BackupStarted")))}function re(o,k){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.JRh(e.bMT(1,1,"_i18n.OnlyAlphanumericDotAndUnderscoreAllowedAndDot"))}function se(o,k){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.JRh(e.bMT(1,1,"_i18n.FileNameCannotStartWithDot"))}function le(o,k){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.JRh(e.bMT(1,1,"_i18n.NameIsForbidden"))}function ce(o,k){if(1&o&&(e.j41(0,"div",1)(1,"div",2)(2,"field-input",3),e.nI1(3,"translate"),e.j41(4,"val-errors",4),e.DNE(5,re,2,3,"ng-template",5)(6,se,2,3,"ng-template",6)(7,le,2,3,"ng-template",7),e.k0s()()()(),e.nrm(8,"app-backup-options",8)),2&o){const t=e.XpG();e.R7$(2),e.Y8G("placeholder",e.VkB("",e.bMT(3,5,"_i18n.Example")," Backup054_05092023"))("inlineLabel",!0)("maxlength",50),e.R7$(6),e.Y8G("formGroup",t.form.controls.Contents)}}const de=/^(nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i;let pe=(()=>{class o extends b.m{backupsApiService=(0,r.WQX)(d.t);cd=(0,r.WQX)(h.gRc);xapiError=(0,r.WQX)(O.Ko);destroy$=(0,r.WQX)(r.abz);get isLargeDialog(){return!this.backupStarted}get dialogButtons(){return this.backupStarted?C.P.Ok:C.P.OkCancel}get header(){return this.backupStarted?"_i18n.InformationHeaderOfDialog":"_i18n.CreateNewBackup"}backupStarted=!1;form=new s.gE({Name:new s.MJ("",{nonNullable:!0,validators:[s.k0.required,R.XD,o.isFilenameValid]}),Contents:new s.gE({Recordings:new s.MJ(!1,{nonNullable:!0}),EncryptBackup:new s.MJ(!1,{nonNullable:!0}),EncryptBackupPassword:new s.MJ({value:"",disabled:!0},{nonNullable:!0,validators:R.ln}),FQDN:new s.MJ(!0),CallHistory:new s.MJ(!0),License:new s.MJ(!0),PhoneProvisioning:new s.MJ(!0),Prompts:new s.MJ(!0),VoiceMails:new s.MJ(!0),DisableBackupCompression:new s.MJ(!1)})});get f(){return this.form.controls}ngOnInit(){const{EncryptBackup:t,EncryptBackupPassword:i}=this.f.Contents.controls;(0,m.XP)(t).pipe((0,E.pQ)(this.destroy$)).subscribe({next:n=>(0,m.TZ)(i,n,!0)})}static isFilenameValid(t){const i=t.value;if(i){if(i.endsWith(".")||i.startsWith("."))return{noDot:!0};if(de.test(i))return{forbidden:!0}}return null}validateBeforeSubmit=this.createDialogValidate(this.form,this.cd);submit$=()=>this.backupStarted?(0,l.of)(void 0):this.backupsApiService.backup({backupsBackupRequestBody:{description:this.changedSettings}}).pipe(this.handleError(this.xapiError,this.cd,this.form,!1),(0,v.n)(()=>(this.backupStarted=!0,this.cd.markForCheck(),ae.w)));get changedSettings(){const{Contents:t,...i}=this.form.value;return{...i,Contents:{...t,EncryptBackupPassword:t?.EncryptBackup?{Value:t.EncryptBackupPassword??""}:void 0}}}static \u0275fac=(()=>{let t;return function(n){return(t||(t=e.xGo(o)))(n||o)}})();static \u0275cmp=e.VBU({type:o,selectors:[["app-instant-backup-modal"]],hostVars:2,hostBindings:function(i,n){2&i&&e.AVh("modal-lg",n.isLargeDialog)},features:[e.Vt3],decls:3,vars:6,consts:[[3,"buttons","header","submit$","formGroup","validateBeforeSubmit"],[1,"row"],[1,"col-lg-6"],["label","_i18n.BackupName","formControlName","Name",3,"inlineLabel","maxlength","placeholder"],["controlName","Name","label","_i18n.BackupName"],["valError","invali
1dChars"],["valError","noDot"],["valError","forbidden"],[3,"formGroup"]],template:function(i,n){1&i&&(e.j41(0,"app-modal-dialog",0),e.nVh(1,oe,3,3,"p")(2,ce,9,7),e.k0s()),2&i&&(e.Y8G("buttons",n.dialogButtons)("header",n.header)("submit$",n.submit$)("formGroup",n.form)("validateBeforeSubmit",n.validateBeforeSubmit),e.R7$(),e.vxM(n.backupStarted?1:2))},dependencies:[P.p,s.X1,s.BC,s.cb,s.tU,s.j4,s.JD,G.m,A.IH,A.VI,ie.O,V.D9],encapsulation:2,changeDetection:0})}return o})();var ue=a(18584),me=a(89479),he=a(70312);function ve(o,k){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.JRh(e.bMT(1,1,"_i18n.PathShouldNotBeEmpty"))}let fe=(()=>{class o extends b.m{backupsApiService=(0,r.WQX)(d.t);cd=(0,r.WQX)(h.gRc);xapiErrorService=(0,r.WQX)(O.Ko);modalService=(0,r.WQX)(c.B);buttons=C.P.OkCancel;initialValue={};validateBeforeSubmit;allowLocalPathChange;settingsForm=new s.gE({LocalPath:new s.MJ("",{nonNullable:!0,validators:ue.y$.LocalPath})});get f(){return this.settingsForm.controls}ngOnInit(){this.settingsForm.setValue({LocalPath:this.initialValue?.Location?.LocalPath??""}),this.validateBeforeSubmit=this.createDialogValidate(this.settingsForm,this.cd)}submit$=()=>{const{LocalPath:t,...i}=this.settingsForm.value;return this.backupsApiService.setBackupRepositorySettings({backupsSetBackupRepositorySettingsRequestBody:{settings:{Location:{LocalPath:t},...i}}}).pipe(this.handleError(this.xapiErrorService,this.cd,this.settingsForm))};openLocalDirectoryPicker(){let t=this.settingsForm.value.LocalPath||"";3===t.length&&":"===t[1]&&"/"===t[2]&&(t=t.slice(0,t.length-1)),this.openDirectoryPicker$(T.C.Local,t).subscribe(i=>{":"===i[1]&&2===i.length&&(i+="/"),this.settingsForm.patchValue({LocalPath:i})})}openDirectoryPicker$(t,i,n){return this.modalService.showDialog(me.x,{fileSystem:t,path:i??"",json:n}).pipe((0,S.Sf)(""))}PbxFileSystemType=T.C;static \u0275fac=(()=>{let t;return function(n){return(t||(t=e.xGo(o)))(n||o)}})();static \u0275cmp=e.VBU({type:o,selectors:[["app-location-modal"]],hostVars:2,hostBindings:function(i,n){2&i&&e.AVh("modal-lg",!0)},inputs:{initialValue:"initialValue",allowLocalPathChange:"allowLocalPathChange"},features:[e.Vt3],decls:10,vars:14,consts:[["header","_i18n.Local",3,"submitted","buttons","formGroup","validateBeforeSubmit","submit$"],["label","_i18n.SelectFolderPath","data-qa","local-path",1,"mb-0",3,"formControl","readonly"],["type","button","data-qa","select-file",1,"btn","btn-border",3,"click","title","disabled"],["app-ellipsis-h-regular-icon","",1,"svg-sm"],[3,"control"],["valError","required"]],template:function(i,n){1&i&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return n.onSubmit()}),e.j41(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"field-input",1)(5,"button",2),e.nI1(6,"translate"),e.bIt("click",function(){return n.openLocalDirectoryPicker()}),e.nrm(7,"span",3),e.k0s(),e.j41(8,"val-errors",4),e.DNE(9,ve,2,3,"ng-template",5),e.k0s()()()),2&i&&(e.Y8G("buttons",n.buttons)("formGroup",n.settingsForm)("validateBeforeSubmit",n.validateBeforeSubmit)("submit$",n.submit$),e.R7$(2),e.JRh(e.bMT(3,10,"_i18n.BackupLocationDescriptions")),e.R7$(2),e.Y8G("formControl",n.f.LocalPath)("readonly",!0),e.R7$(),e.Y8G("title",e.bMT(6,12,"_i18n.SelectDirectory"))("disabled",n.f.LocalPath.disabled),e.R7$(3),e.Y8G("control",n.f.LocalPath))},dependencies:[P.p,s.X1,s.BC,s.cb,s.l_,s.j4,G.m,he.S,A.IH,A.VI,V.D9],styles:[".control[_ngcontent-%COMP%]{display:flex;gap:var(--spacer-xs);flex-direction:column;min-width:250px;flex-grow:1}.buttons[_ngcontent-%COMP%]{display:flex;gap:var(--spacer-s);flex-direction:row;flex-wrap:wrap;flex-basis:max-content}.buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:var(--input-height)}"]})}return o})();var J=a(84412),ge=a(79997),j=a(96354),be=a(38357);let X=(()=>{class o{backupsApiService=(0,r.WQX)(d.t);backupsDataFetcher=(t,i)=>n=>n.pipe((0,v.n)(u=>this.requestBackups(t,u,i)),(0,j.T)(u=>u.value));requestBackups(t,i,n){const u=(0,be.Y)((t.search??"").trim(),!0);return this.backupsApiService.listBackups({$skip:i*n,$top:n,$select:["CreationTime","Size","FileName","DownloadLink"],$orderby:["CreationTime desc"],...u?{$filter:`contains(tolower(FileName), '${u}')`}:{}})}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac})}return o}
1)();var Se=a(70152),Ce=a(70980),ke=a(49764);let Me=(()=>{class o extends b.m{buttons=C.P.OkCancel;restoreForm=new s.gE({EncryptBackupPassword:new s.MJ("",{nonNullable:!0})});get f(){return this.restoreForm.controls}getPayload(){return this.restoreForm.getRawValue()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=e.xGo(o)))(n||o)}})();static \u0275cmp=e.VBU({type:o,selectors:[["app-restore-encrypted-modal"]],features:[e.Vt3],decls:11,vars:8,consts:[["header","_i18n.RestoreBackup",3,"submitted","buttons"],[1,"row"],[1,"col-lg-12"],[3,"formControl"],["controlName","EncryptBackupPassword"]],template:function(i,n){1&i&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return n.onSubmit()}),e.j41(1,"div",1)(2,"div",2)(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"field-input-password",3),e.nrm(7,"val-errors",4),e.k0s(),e.j41(8,"p"),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()),2&i&&(e.Y8G("buttons",n.buttons),e.R7$(4),e.JRh(e.bMT(5,4,"_i18n.BackupIsPasswordProtected")),e.R7$(2),e.Y8G("formControl",n.f.EncryptBackupPassword),e.R7$(3),e.JRh(e.bMT(10,6,"_i18n.RestoreBackupConfirmation")))},dependencies:[P.p,s.X1,s.BC,s.l_,ke.$,A.IH,V.D9],encapsulation:2})}return o})();var _e=a(28468),Be=a(87019),Pe=a(83188),Re=a(59882),ye=a(33971),U=a(92996),Fe=a(23294),Ee=a(50644),Te=a(6139);let Ie=(()=>{class o{systemParams=(0,r.WQX)(Te.B);tokenInfo=(0,r.WQX)(U.Z);localPathEnabled$=this.tokenInfo.myToken$.pipe((0,v.n)(t=>t.machineAdmin?this.systemParams.isHosted3CX$.pipe((0,j.T)(i=>!1===i)):(0,l.of)(!1)),(0,Fe.F)(),(0,Ee.H9)());static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var we=a(30646),$e=a(59004);let xe=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["app-calendar-alt-regular-icon"],["","app-calendar-alt-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"]],template:function(i,n){1&i&&(r.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return o})();var De=a(81134),Oe=a(36623),Ae=a(38969),Le=a(18345),Ve=a(534),je=a(68845),Ne=a(49769),Ge=a(62382),Je=a(64631),We=a(62564),Xe=a(52101);function Ue(o,k){if(1&o){const t=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){r.eBV(t);const n=e.XpG();return r.Njj(n.locationModal())}),e.nrm(1,"app-gear-solid-icon"),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&o&&(e.R7$(3),e.JRh(e.bMT(4,1,"_i18n.Settings")))}function Ye(o,k){if(1&o){const t=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){r.eBV(t);const n=e.XpG();return r.Njj(n.scheduleBackupModal())}),e.nrm(1,"app-calendar-alt-regular-icon"),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&o&&(e.R7$(3),e.JRh(e.bMT(4,1,"_i18n.BackupScheduling")))}function Qe(o,k){if(1&o){const t=e.RV6();e.j41(0,"div",8),e.nI1(1,"translate"),e.j41(2,"button",13),e.bIt("click",function(){r.eBV(t);const n=e.XpG();return r.Njj(n.failoverModal())}),e.nrm(3,"app-arrows-rotate-regular-regular-icon"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()}if(2&o){const t=e.XpG();e.Y8G("tooltip",t.isEnterprise?"":e.bMT(1,3,"_i18n.AvailableEnt")),e.R7$(2),e.Y8G("disabled",!t.isEnterprise),e.R7$(3),e.JRh(e.bMT(6,5,"_i18n.Failover"))}}function He(o,k){if(1&o){const t=e.RV6();e.j41(0,"tr",18),e.bIt("click",function(){const n=r.eBV(t).$implicit,u=e.XpG(2);
1return r.Njj(u.toggleBackupSelected(n))}),e.j41(1,"td",19),e.EFF(2),e.k0s(),e.j41(3,"td",20),e.EFF(4),e.nI1(5,"amLocal"),e.nI1(6,"amDateFormat"),e.k0s(),e.j41(7,"td",21),e.EFF(8),e.nI1(9,"fileSize"),e.k0s(),e.j41(10,"td",22),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.nrm(13,"td",23),e.k0s()}if(2&o){const t=k.$implicit,i=e.XpG(2);e.AVh("selected",i.isBackupSelected(t)),e.R7$(2),e.JRh(t.FileName),e.R7$(2),e.JRh(e.i5U(6,8,e.bMT(5,6,t.CreationTime),"L LT")),e.R7$(4),e.JRh(e.bMT(9,11,t.Size)),e.R7$(3),e.JRh(e.bMT(12,13,i.isRemoteBackup?"_i18n.RemotelyStored":"_i18n.LocallyStored"))}}function ze(o,k){1&o&&(e.j41(0,"tr")(1,"td",24),e.nrm(2,"div",25),e.k0s()())}function Ke(o,k){if(1&o){const t=e.RV6();e.j41(0,"tr")(1,"td",26)(2,"a",27),e.bIt("click",function(){r.eBV(t);const n=e.XpG(3);return r.Njj(n.nextPage$.next())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()}2&o&&(e.R7$(3),e.JRh(e.bMT(4,1,"_i18n.ReportsShowMore")))}function Ze(o,k){1&o&&(e.j41(0,"tr")(1,"td",26),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&o&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"_i18n.ReportsNoData")," "))}function qe(o,k){if(1&o&&(e.nVh(0,Ke,5,3,"tr"),e.nVh(1,Ze,4,3,"tr")),2&o){const t=e.XpG();e.vxM(t.hasMore?0:-1),e.R7$(),e.vxM(0!==t.data.length||t.hasMore?-1:1)}}function et(o,k){if(1&o&&(e.j41(0,"table",10)(1,"thead",14)(2,"tr")(3,"th"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"th",15),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",15),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",15),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"th",16),e.k0s()(),e.j41(16,"tbody"),e.Z7z(17,He,14,15,"tr",17,e.fX1),e.k0s(),e.j41(19,"tfoot"),e.nVh(20,ze,3,0,"tr")(21,qe,2,2),e.k0s()()),2&o){const t=k;e.R7$(4),e.JRh(e.bMT(5,5,"_i18n.Name")),e.R7$(3),e.JRh(e.bMT(8,7,"_i18n.ReportsDate")),e.R7$(3),e.JRh(e.bMT(11,9,"_i18n.Size")),e.R7$(3),e.JRh(e.bMT(14,11,"_i18n.Type")),e.R7$(4),e.Dyx(t.data),e.R7$(3),e.vxM(t.isLoading?20:21)}}let tt=(()=>{class o{tokenInfo=(0,r.WQX)(U.Z);locationStateService=(0,r.WQX)(Ie);modalService=(0,r.WQX)(c.B);backupsAndRestoreDataSource=(0,r.WQX)(X);backupsApiService=(0,r.WQX)(d.t);route=(0,r.WQX)(Re.nX);destroy$=(0,r.WQX)(r.abz);cd=(0,r.WQX)(h.gRc);search=new s.MJ("");paginator$;parameters$=new J.t(null);nextPage$=new J.t(void 0);reset$=new J.t(void 0);machineAdmin$=this.tokenInfo.myToken$.pipe((0,j.T)(t=>t.machineAdmin));resolvedData=this.route.snapshot.data;systemParameters=this.resolvedData.systemParameters;isEnterprise=this.resolvedData.isEnterprise;isHosted3CX=this.systemParameters.IsHosted3CX;isRemoteBackup=this.systemParameters.IsRemoteBackup??!1;remoteStorageEnabled=this.resolvedData.remoteArchivingFileSystemType!==T.C.Local;selectedBackup=null;constructor(){const t=this.destroy$;this.search.valueChanges.pipe((0,Se.B)(700),(0,E.pQ)(t)).subscribe(i=>{this.parameters$.next({search:i})}),this.paginator$=(0,ge.K)(this.modalService,t,this.parameters$,this.nextPage$,this.reset$,this.backupsAndRestoreDataSource.backupsDataFetcher,Be.z9),this.parameters$.next({search:this.search.value})}ngOnInit(){const{backupSchedule:t}=this.route.snapshot.queryParams;t&&this.scheduleBackupModal()}setBackupSelected(t){this.selectedBackup=this.selectedBackup?.FileName!==t.FileName?t:null,this.cd.markForCheck()}toggleBackupSelected(t){this.setBackupSelected(t)}isBackupSelected(t){return this.selectedBackup?.FileName===t.FileName}get isAtLeastOneSelected(){return!!this.selectedBackup}clearSelection(){this.selectedBackup=null,this.cd.markForCheck()}restoreSelected(){this.selectedBackup&&this.restore(this.selectedBackup)}deleteSelected(){this.selectedBackup&&this.deleteModal(this.selectedBackup)}downloadSelected(){this.selectedBackup&&this.downloadBtn(this.selectedBackup)}restore(t){this.backupsApiService.getBackupExtras({fileName:t.FileName}).pipe((0,v.n)(i=>i.IsEncrypted?this.modalService.showDialog(Me).pipe((0,S.Sf)(),(0,j.T)(n=>({restoreParams:n,extras:i}))):this.modalService.confirmation("_i18n.RestoreBackupConfirmation","_i18n.RestoreBackup").pipe((0,j.T)(()=>({restoreParams:{EncryptBackupPassword:""},extras:i})))),(0,v.n)(({restoreParams:i,extras:n})=>this.backupsApiService.restore({backupsBackupsRestoreRequestBody:{password:i.EncryptBackupPassword,footprint:n.Footprint??void 0},fileName:t.FileName})),(0,S.Tg)(this.modalService),(0,E.pQ)(this.destroy$)).subscribe({next:()=>{this.clearSelection()}})}downloadBtn(t){(0,ye.AE)(t.DownloadLink,t.FileName)}deleteModal(t){(0,Xe.qq)(this.modalService).pipe((0,v.n)(()=>this.backupsApiService.deleteBackups({fileName:t.FileName})),(0,S.Tg)(this.modalService),(0,Ce.j)(()=>this.clearSelection()),(0,E.pQ)(this.destroy$)).subscribe(()=>{this.reset$.next()})}locationModal(){(0,p.p)([this.backupsApiService.getBackupRepositorySettings(),this.locationStateService.localPathEnabled$.pipe((0,B.s)(1))]).pipe((0,v.n)(([t,i])=>this.modalService.showDialog(fe,{initialValue:t,allowLocalPathCh
1ange:i})),S.nx,(0,S.Tg)(this.modalService),(0,E.pQ)(this.destroy$)).subscribe(()=>this.reset$.next())}instantBackupModal(){this.modalService.showDialog(pe)}scheduleBackupModal(){this.backupsApiService.getBackupSettings().pipe((0,S.Tg)(this.modalService)).subscribe(t=>{this.modalService.showDialog(_e.K,{initialValue:t})})}failoverModal(){(0,p.p)([this.backupsApiService.getBackupFailoverSettings(),this.backupsApiService.getRestoreSettings()]).pipe((0,S.Tg)(this.modalService)).subscribe(([t,i])=>{this.modalService.showDialog(ne,{initialValue:{failoverSettings:t,restoreScheduleSettings:i}})})}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["app-backup-and-restore-list"]],features:[e.Jv_([X])],decls:29,vars:25,consts:[["header","_i18n.BackupAndRestore",3,"helpUrl"],["top-bar","",1,"button-group"],["type","button","data-qa","location",1,"btn","btn-primary"],["type","button","data-qa","instant-backup",1,"btn","btn-primary",3,"click"],["type","button","data-qa","schedule-backup",1,"btn","btn-primary"],["type","button","data-qa","restore-backup",1,"btn","btn-primary",3,"click","disabled"],["type","button","data-qa","download-backup",1,"btn","btn-primary",3,"click","disabled"],["type","button","data-qa","delete-backup",1,"btn","btn-primary",3,"click","disabled"],[3,"tooltip"],["top-bar","",3,"formControl"],["full-width","",1,"scrollable-table"],["type","button","data-qa","location",1,"btn","btn-primary",3,"click"],["type","button","data-qa","schedule-backup",1,"btn","btn-primary",3,"click"],["type","button","data-qa","failover",1,"btn","btn-primary",3,"click","disabled"],["id","tableHeader"],[1,"md-visible"],[1,"w-100"],["data-qa","backup-row",1,"clickable",3,"selected"],["data-qa","backup-row",1,"clickable",3,"click"],["nowrap","","data-qa","file-name",1,"pe-5"],["nowrap","","data-qa","creation-time",1,"md-visible","pe-5"],["nowrap","","data-qa","size",1,"md-visible","pe-5"],["nowrap","","data-qa","storage-type",1,"md-visible","pe-5"],["data-qa","actions",1,"actions"],["colspan","5"],[1,"loader"],["colspan","5",1,"text-center"],[1,"dashed","link",3,"click"]],template:function(i,n){if(1&i&&(e.j41(0,"app-page",0)(1,"div",1),e.nVh(2,Ue,5,3,"button",2),e.j41(3,"button",3),e.bIt("click",function(){return n.instantBackupModal()}),e.nrm(4,"app-arrow-alt-circle-down-regular-icon"),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.nVh(8,Ye,5,3,"button",4),e.j41(9,"button",5),e.bIt("click",function(){return n.restoreSelected()}),e.nrm(10,"app-pencil-alt-solid-icon"),e.j41(11,"span"),e.EFF(12),e.nI1(13,"translate"),e.k0s()(),e.j41(14,"button",6),e.bIt("click",function(){return n.downloadSelected()}),e.nrm(15,"app-download-solid-icon"),e.j41(16,"span"),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"button",7),e.bIt("click",function(){return n.deleteSelected()}),e.nrm(20,"app-trash-alt-solid-icon"),e.j41(21,"span"),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.nVh(24,Qe,7,7,"div",8),e.nI1(25,"async"),e.k0s(),e.nrm(26,"search-bar",9),e.nVh(27,et,22,13,"table",10),e.nI1(28,"async"),e.k0s()),2&i){let u;e.Y8G("helpUrl","_i18n.BackupUri"),e.R7$(2),e.vxM(n.isHosted3CX||n.isRemoteBackup?-1:2),e.R7$(4),e.JRh(e.bMT(7,13,"_i18n.CreateNewBackup")),e.R7$(2),e.vxM(n.remoteStorageEnabled?-1:8),e.R7$(),e.Y8G("disabled",!n.isAtLeastOneSelected),e.R7$(3),e.JRh(e.bMT(13,15,"_i18n.Restore")),e.R7$(2),e.Y8G("disabled",!n.isAtLeastOneSelected),e.R7$(3),e.JRh(e.bMT(18,17,"_i18n.Download")),e.R7$(2),e.Y8G("disabled",!n.isAtLeastOneSelected),e.R7$(3),e.JRh(e.bMT(23,19,"_i18n.Delete")),e.R7$(2),e.vxM(e.bMT(25,21,n.machineAdmin$)?24:-1),e.R7$(2),e.Y8G("formControl",n.search),e.R7$(),e.vxM((u=e.bMT(28,23,n.paginator$))?27:-1,u)}},dependencies:[Pe.H,we.n,$e.l,xe,De.Q,Oe.e,Ae.d,Ve.dg,Le.c,je.L,s.X1,s.BC,s.l_,Ge.a,Je.h,Ne.Jj,V.D9,We.s],encapsulation:2,changeDetection:0})}return o})()},18467(w,M,a){a.d(M,{o:()=>r});class r{data;isLoading;page;hasMore;constructor(s,d=!1,T=0,c=!1){this.data=s,this.isLoading=d,this.page=T,this.hasMore=c}}},79997(w,M,a){a.d(M,{K:()=>l});var r=a(28793),h=a(7673),s=a(57786),d=function(p){return p.Reset="Reset",p.NextPage="NextPage",p.ChunkLoading="ChunkLoading",p}(d||{}),T=a(65245),c=a(25558),b=a(5964),C=a(63489),I=a(96354),_=a(12498),$=a(44668),f=a(18467),R=a(89079);const l=(p,F,B,y,O,g,S)=>{const m=y.pipe((0,T.i)(1),(0,c.n)(()=>(0,r.x)((0,h.of)(d.ChunkLoading),(0,h.of)(d.NextPage)))),x=O.pipe((0,c.n)(()=>(0,r.x)((0,h.of)(d.Reset),(0,h.of)(d.NextPage))));return B.pipe((0,b.p)(E=>null!==E),(0,c.n)(E=>
1(0,s.h)(x,m).pipe((0,C.i)((P,D)=>P.hasMore||D!==d.ChunkLoading&&D!==d.NextPage?D===d.Reset?(0,h.of)(new f.o([],!0,0,!0)):D===d.ChunkLoading?(0,h.of)(new f.o(P.data,!0,P.page+1,P.hasMore)):D===d.NextPage?(0,h.of)(P.page).pipe(g(E,S),(0,I.T)(N=>new f.o(P.data.concat(N),!1,P.page,N.length===S))):(0,h.of)(P):(0,h.of)(P),new f.o([],!1,-1,!0),1))),(0,_.L)(v(p)),(0,R.pQ)(F),(0,$.t)({refCount:!0}))},v=p=>({delay:F=>p.confirmRetryAfterError(F).pipe((0,I.T)(()=>0))})},72788(w,M,a){a.d(M,{B:()=>$});var r=a(89417),h=a(84460),s=a(31755),d=a(95604),T=a(68018),c=a(35547);const b=[[["",8,"input-group-prepend"]],[["val-errors"]],[["","description",""]],[["",8,"input-group-append"]]],C=[".input-group-prepend","val-errors","[description]",".input-group-append"];function I(f,R){if(1&f&&(c.j41(0,"div",4)(1,"span",7),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&f){const l=c.XpG();c.R7$(2),c.JRh(c.bMT(3,1,l.units))}}function _(f,R){1&f&&c.SdG(0,3)}let $=(()=>{class f extends h.m{min;max=2147483647;integer=!0;units;get containerClass(){return this.label&&!this.inlineLabel||!this.max||this.placeholderText?this.units&&this.max?"min-length-"+this.max.toString().length:"":"max-length-"+this.max.toString().length}get placeholderText(){return this.indeterminate?this.indeterminatePlaceholder:this.placeholder||""}minlength;maxlength;preventInvalidInput(l){switch(l.key){case".":case",":(this.integer||this.units)&&l.preventDefault();break;case"-":(this.value&&this.value<0||null!=this.min&&this.min>=0)&&l.preventDefault();break;case"+":case"e":l.preventDefault()}if(this.integer&&/\d/.test(l.key)&&this.value){const v=(this.value>=0?this.max:-2147483648).toString().length;this.value.toString().length-(window.getSelection()?.toString()||"").length>=v&&l.preventDefault()}}validate(l){if(!l.value&&0!==l.value)return null;const v=+l.value;return isNaN(v)?this.integer||this.units?{invalidInteger:!0}:{invalidNumber:!0}:(this.integer||this.units)&&v!==Math.floor(v)?{invalidInteger:!0}:void 0!==this.min&&r.k0.min(this.min)(l)||void 0!==this.max&&r.k0.max(this.max)(l)||null}focus(){this.inputElement.nativeElement.focus()}static \u0275fac=(()=>{let l;return function(p){return(l||(l=c.xGo(f)))(p||f)}})();static \u0275cmp=c.VBU({type:f,selectors:[["field-input-number"]],hostVars:2,hostBindings:function(v,p){2&v&&c.HbH(p.containerClass)},inputs:{min:"min",max:"max",integer:"integer",units:"units"},features:[c.Jv_([{provide:r.kq,multi:!0,useExisting:f},{provide:r.cz,multi:!0,useExisting:f},{provide:s.b,useExisting:f}]),c.Vt3],ngContentSelectors:C,decls:12,vars:17,consts:[["inputElement",""],[3,"label","labelFor","inlineLabel","disabled","required","description","hint"],[1,"input-group","flex-nowrap"],["data-qa","input","type","number",1,"form-control",3,"ngModelChange","keydown","paste","focus","blur","id","name","disabled","readonly","placeholder","ngModel","autocomplete"],[1,"input-group-append"],["ngProjectAs","val-errors",5,["val-errors"]],["ngProjectAs","[description]",5,["","description",""]],[1,"input-group-text"]],template:function(v,p){1&v&&(c.NAR(b),c.j41(0,"field-wrapper",1)(1,"div",2),c.SdG(2),c.j41(3,"input",3,0),c.nI1(5,"translate"),c.bIt("ngModelChange",function(B){return p.valueChanged(B)})("keydown",function(B){return p.preventInvalidInput(B)})("paste",function(B){return p.onPaste(B)})("focus",function(){return p.onFocus()})("blur",function(B){return p.onBlur(B)}),c.k0s(),c.nVh(6,I,4,3,"div",4)(7,_,1,0),c.k0s(),c.qex(8,5),c.SdG(9,1),c.bVm(),c.qex(10,6),c.SdG(11,2),c.bVm(),c.k0s()),2&v&&(c.Y8G("label",p.label)("labelFor",p.id)("inlineLabel",p.inlineLabel)("disabled",p.disabled)("required",p.isRequired)("description",p.description)("hint",p.hint),c.R7$(3),c.Y8G("id",p.id)("name",p.name)("disabled",p.disabled)("readonly",p.readonly)("placeholder",c.bMT(5,15,p.placeholderText))("ngModel",p.value)("autocomplete",p.autocomplete),c.R7$(3),c.vxM(p.units?6:7))},dependencies:[d.z,r.X1,r.me,r.Q0,r.BC,r.YN,r.vS,T.D9],styles:["[_nghost-%COMP%]{display:block;margin-bottom:16px}[_nghost-%COMP%]   field-wrapper[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]     .input-group>.btn{border-left:0}.max-length-3[_nghost-%COMP%]     input[type=number]{max-width:calc(12px * 2 + .65em * 3);min-width:calc(12px * 2 + .65em * 3)}.max-length-4[_nghost-%COMP%]     input[type=number]{max-width:calc(24px + 2.6em);min-width:calc(24px + 2.6em)}.max-length-5[_nghost-%COMP%]     input[type=number]{max-width:calc(24px + 3.25em);min-width:calc(24px + 3.25em)}.max-length-6[_nghost-%COMP%]     input[type=number]{max-width:calc(12px * 2 + .65em * 6);min-width:calc(12px * 2 + .65em * 6)}.max-length-7[_nghost-%COMP%]     input[type=number]{max-width:calc(24px + 4.55em);min-width:calc(24px + 4.55em)}.min-length-3[_nghost-%COMP%]     input[type=number]{min-width:calc(12px * 2 + .65em * 3)}.min-length-4[_nghost-%COMP%]     input[type=number]{min-width:calc(24px + 2.6em)}.min-length-5[_nghost-%COMP%]     input[type=number]{min-width:calc(24px + 3.25em)}.min-length-6[_nghost-%COMP%]     input[type=number]{min-width:calc(12px * 2 + .65em * 6)}.min-length-7[_nghost-%COMP%]     input[type=number]{min-width:calc(24px + 4.55em)}[_nghost-%COMP%]   .clear[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;cursor:pointer;--svg-color: currentColor;--svg-vertical-align: baseline}"],changeDetection:0})}return f})()},17873(w,M,a){a.d(M,{f:()=>s});var r=a(35547),h=a(85802);let s=(()=>{class d{static \u0275fac=function(b){return new(b||d)};static \u0275cmp=r.VBU({type:d,selectors:[["app-arrow-alt-circle-up-solid-icon"],["","app-arrow-alt-circle-up-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"]],template:function(b,C){1&b&&(h.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return d})()},58571(w,M,a){function r(h,s="fileInput"){const d=new FormData;return d.append(s,h,h.name),d}a.d(M,{$:()=>r})},4115(w,M,a){a.d(M,{P:()=>s});var r=a(35547);const h=["*"];let s=(()=>{class d{disabled=!1;href;class="link";static \u0275fac=function(b){return new(b||d)};static \u0275cmp=r.VBU({type:d,selectors:[["app-external-link"]],inputs:{disabled:"disabled",href:"href",class:"class"},ngContentSelectors:h,decls:2,vars:5,consts:[["target","_blank","rel","noopener noreferrer",3,"click","href"]],template:function(b,C){1&b&&(r.NAR(),r.rj2(0,"a",0),r.VwU("click",function(_){return _.stopPropagation()}),r.SdG(1),r.eux()),2&b&&(r.HbH(C.class),r.AVh("disabled",C.disabled),r.Avn("href",C.href,r.B4B))},styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return d})()},68845(w,M,a){a.d(M,{L:()=>B});var r=a(17705),h=a(85802),s=a(32271),d=a(89417),T=a(70152),c=a(96106),b=a(35606),C=a(68018),I=a(58689),_=a(56998),$=a(98352),f=a(89079),R=a(8516),l=a(35547);const v=[[["","search-prepend",""]],[["","search-append",""]]],p=["[search-prepend]","[search-append]"];function F(y,O){if(1&y){const g=l.RV6();l.j41(0,"lucide-icon",4),l.bIt("click",function(m){h.eBV(g);const x=l.XpG();return h.Njj(x.clear(m))}),l.k0s()}if(2&y){const g=l.XpG();l.Y8G("img",g.XIcon)}}let B=(()=>{class y extends $.z{isNewDesignGlobal=(0,h.WQX)(I.T);newDesign=(0,r.hFB)();isNewDesign=(0,s.EW)(()=>this.newDesign()??this.isNewDesignGlobal());autofocus=!0;placeholder="_i18n.Search";debounceTime=c.tN;clearable;formControl=new d.MJ("",{nonNullable:!0});ngOnInit(){this.formControl.valueChanges.pipe((0,T.B)(this.debounceTime),(0,f.pQ)(this.destroyRef)).subscribe(g=>{this.valueChanged(g)})}writeValue(g){super.writeValue(g??""),this.formControl.setValue(this.value,{emitEvent:!1})}setDisabledState(g){super.setDisabledState(g),(0,_.TZ)(this.formControl,!g)}clear(g){g?.stopPropagation(),this.formControl.value&&(this.formControl.setValue(""),this.valueChanged(""))}Search=R.vji;XIcon=R.uv5;static \u0275fac=(()=>{let g;return function(m){return(g||(g=l.xGo(y)))(m||y)}})();static \u0275cmp=l.VBU({type:y,selectors:[["search-bar"]],hostVars:5,hostBindings:function(S,m){2&S&&(l.BMQ("data-qa","search-bar"),l.AVh("new-design",m.isNewDesign())("keep-old-design",!1===m.newDesign()))},inputs:{newDesign:[1,"newDesign"],autofocus:"autofocus",placeholder:"placeholder",debounceTime:"debounceTime",clearable:"clearable"},features:[l.Jv_([{provide:d.kq,useExisting:y,multi:!0}]),l.Vt3],ngContentSelectors:p,decls:7,vars:12,consts:[[1,"position-relative","flex-1"],["name","search","data-qa","input","wcAutofocus","","type","text",3,"keydown.enter","keydown.escape","wcAutofocusDisabled","maxlength","placeholder","formControl"],[1,"search-icon",3,"img"],["role","button",1,"clear-icon",3,"img"],["role","button",1,"clear-icon",3,"click","img"]],template:function(S,m){1&S&&(l.NAR(v),l.SdG(0),l.j41(1,"div",0)(2,"input",1),l.nI1(3,"translate"),l.bIt("keydown.enter",function(){return m.valueChanged(m.formControl.value)})("keydown.escape",function(){return m.clear()}
1),l.k0s(),l.nrm(4,"lucide-icon",2),l.nVh(5,F,1,1,"lucide-icon",3),l.k0s(),l.SdG(6,1)),2&S&&(l.R7$(2),l.HbH(l.VkB("",m.isNewDesign()?"form-control":"no-bg border-0"," w-100")),l.Y8G("placeholder",l.VkB("",l.bMT(3,10,m.placeholder),"..."))("wcAutofocusDisabled",!m.autofocus)("maxlength",255)("formControl",m.formControl),l.R7$(2),l.Y8G("img",m.Search),l.R7$(),l.vxM(m.clearable&&m.formControl.value?5:-1))},dependencies:[b.J,d.X1,d.me,d.BC,d.tU,d.l_,R.flO,R.WGl,C.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:flex;align-items:center;flex-wrap:wrap;padding:var(--spacer-xs);gap:var(--spacer-s);border-bottom:1px solid var(--border-color)}[top-bar][_nghost-%COMP%]{padding:0 var(--spacer) 0 calc(var(--spacer) - var(--spacer-xs));min-height:var(--aside-folded-nav-height)}[_nghost-%COMP%]   input[_ngcontent-%COMP%]{padding:var(--input-padding-y) var(--input-padding-x);height:var(--input-height)}[_nghost-%COMP%]   lucide-icon[_ngcontent-%COMP%]{--svg-color: var(--text-hint);--svg-size: var(--svg-size-sm);position:absolute;top:calc((var(--input-height) - var(--svg-size)) / 2);line-height:1}[_nghost-%COMP%]   lucide-icon[_ngcontent-%COMP%]:has(.search-icon), [_nghost-%COMP%]   lucide-icon.search-icon[_ngcontent-%COMP%]{left:var(--input-padding-x);pointer-events:none}[_nghost-%COMP%]   lucide-icon[_ngcontent-%COMP%]:has(.clear-icon), [_nghost-%COMP%]   lucide-icon.clear-icon[_ngcontent-%COMP%]{right:var(--input-padding-x)}[_nghost-%COMP%]:has(.search-icon)   input[_ngcontent-%COMP%]{padding-left:calc(var(--input-padding-x) + var(--svg-size) + var(--spacer-s))}[_nghost-%COMP%]:has(.clear-icon)   input[_ngcontent-%COMP%]{padding-right:calc(var(--input-padding-x) + var(--svg-size) + var(--spacer-s))}.new-design[_nghost-%COMP%]{border-bottom:none;padding:0;max-width:1200px}.new-design[_nghost-%COMP%]   input[_ngcontent-%COMP%]{min-width:150px}.new-design[_nghost-%COMP%]     [dropdownToggle]:after{display:none}"],changeDetection:0})}return y})()}}]);

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.