PageSourceSearch

https://bark.tools/8528.7adb3cd777e83255.js

js bark.tools collected 2026-10-08 11:35:27 UTC 16,181 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[8528],{88256(w,E,t){t.d(E,{O:()=>S});var _=t(19781),i=t(49764),c=t(89417),n=t(68018),g=t(24708),C=t(5595),o=t(35547);function v(a,p){1&a&&o.nrm(0,"field-input-concealed-password",5),2&a&&o.Y8G("maxlength",50)}function e(a,p){1&a&&o.nrm(0,"field-input-password",5),2&a&&o.Y8G("maxlength",50)}function y(a,p){1&a&&(o.EFF(0),o.nI1(1,"translate")),2&a&&o.JRh(o.bMT(1,1,"_i18n.PasswordWeak"))}let S=(()=>{class a{formGroup;passwordConcealed;static \u0275fac=function(b){return new(b||a)};static \u0275cmp=o.VBU({type:a,selectors:[["app-backup-options"]],inputs:{formGroup:"formGroup",passwordConcealed:"passwordConcealed"},decls:9,vars:2,consts:[[3,"formGroup"],["label","_i18n.IncludeLocalRecordings","formControlName","Recordings"],["label","_i18n.DisableBackupCompression","formControlName","DisableBackupCompression","description","_i18n.DisableBackupCompressionNotice"],[1,"d-flex","flex-wrap","gap-2","align-items-center"],["label","_i18n.BackupEncryptionPassword","formControlName","EncryptBackup",1,"mb-0"],["formControlName","EncryptBackupPassword",1,"mb-0",3,"maxlength"],["controlName","EncryptBackupPassword","label","_i18n.BackupEncryptionPassword",1,"form-control-validation"],["valError","pattern"]],template:function(b,D){1&b&&(o.qex(0,0),o.nrm(1,"field-checkbox",1)(2,"field-checkbox",2),o.j41(3,"div",3),o.nrm(4,"field-checkbox",4),o.nVh(5,v,1,1,"field-input-concealed-password",5)(6,e,1,1,"field-input-password",5),o.k0s(),o.j41(7,"val-errors",6),o.DNE(8,y,2,3,"ng-template",7),o.k0s(),o.bVm()),2&b&&(o.Y8G("formGroup",D.formGroup),o.R7$(5),o.vxM(D.passwordConcealed?5:6))},dependencies:[_.t,i.$,c.X1,c.BC,c.cb,c.tU,c.j4,c.JD,g.VI,g.IH,C.p,n.D9],encapsulation:2})}return a})()},28468(w,E,t){t.d(E,{K:()=>l});var _=t(17705),i=t(85802),c=t(22972),n=t(89417),g=t(54999),C=t(19928),o=t(59053),v=t(41029),e=t(56998),y=t(23294),S=t(89079),a=t(40953),p=t(19781),h=t(95604),b=t(23375),D=t(24708),O=t(72788),R=t(88256),m=t(35547);function F(f,u){1&f&&(m.nrm(0,"field-checkbox",2),m.j41(1,"div",3)(2,"div",4)(3,"field-wrapper"),m.nrm(4,"app-schedule",5)(5,"val-errors",6),m.k0s()(),m.j41(6,"div",7)(7,"field-input-number",8),m.nrm(8,"val-errors",9),m.k0s()()()),2&f&&(m.R7$(4),m.Y8G("enableHourly",!0),m.R7$(3),m.Y8G("inlineLabel",!0)("min",1)("max",30))}let l=(()=>{class f extends c.m{backupsApi=(0,i.WQX)(C.t);cd=(0,i.WQX)(_.gRc);xapiError=(0,i.WQX)(v.Ko);destroy$=(0,i.WQX)(i.abz);buttons=g.P.OkCancel;initialValue;openedFromStorage=!1;form=new n.gE({ScheduleEnabled:new n.MJ(!1,{nonNullable:!0}),Rotation:new n.MJ(3,{nonNullable:!0}),Schedule:new n.MJ(null),Contents:new n.gE({Recordings:new n.MJ(!0,{nonNullable:!0}),EncryptBackup:new n.MJ(!1,{nonNullable:!0}),EncryptBackupPassword:new n.MJ({Value:""},{nonNullable:!0,validators:o.ln.map(o.ys)}),FQDN:new n.MJ(!0),CallHistory:new n.MJ(!0),License:new n.MJ(!0),PhoneProvisioning:new n.MJ(!0),Prompts:new n.MJ(!0),VoiceMails:new n.MJ(!0),DisableBackupCompression:new n.MJ(!1,{nonNullable:!0})})});validateBeforeSubmit=this.createDialogValidate(this.form,this.cd);get f(){return this.form.controls}ngOnInit(){const{Schedule:r,ScheduleEnabled:s,Contents:d,Rotation:P}=this.initialValue;this.form.patchValue({ScheduleEnabled:s??!1,Rotation:P??3,Schedule:r??null,Contents:{Recordings:d?.Recordings??!0,EncryptBackup:d?.EncryptBackup??!1,EncryptBackupPassword:d?.EncryptBackupPassword,DisableBackupCompression:d?.DisableBackupCompression??!1}}),(0,e.XP)(this.form).pipe((0,y.F)((M,B)=>M.ScheduleEnabled===B.ScheduleEnabled&&M.Contents?.EncryptBackup===B.Contents?.EncryptBackup),(0,S.pQ)(this.destroy$)).subscribe(M=>{(0,e.sS)([this.f.Schedule,this.f.Contents,this.f.Rotation],M.ScheduleEnabled),(0,e.TZ)(this.f.Contents.controls.EncryptBackupPassword,this.form.value.Contents?.EncryptBackup)})}submit$=()=>this.backupsApi.setBackupSettings({backupsSetBackupSettingsRequestBody:{settings:this.openedFromStorage?{Contents:this.form.value.Contents}:this.form.value}}).pipe(this.handleError(this.xapiError,this.cd,this.form));static \u0275fac=(()=>{let r;return function(d){return(r||(r=m.xGo(f)))(d||f)}})();static \u0275cmp=m.VBU({type:f,selectors:[["app-schedule-backup-modal"]],hostVars:2,hostBindings:function(s,d){2&s&&m.AVh("modal-lg",!0)},inputs:{initialValue:"initialValue",openedFromStorage:"openedFromStorage"},features:[m.Vt3],decls:3,vars:8,consts:[["header","_i18n.BackupScheduling",3,"buttons","waitRecalculationsBeforeSave","submit$","formGroup","validateBeforeSubmit"],[3,"formGroup","passwordConcealed"],["label","_i18n.BackupScheduleEnabled","formControlName","ScheduleEnabled"],[1,"row"],[1,"col-12"],["formControlName","Schedule",3,"enableHourly"],["controlName","Schedule"],[1,"col-6"],["label","_i18n.Rotation","formControlName","Rotation",3,"inlineLabel","min","max"],["controlName","Rotation"]],template:function(s,d){1&s&&(m.j41(0,"app-modal-dialog",0),m.nVh(1,F,9,4),m.nrm(2,"app-backup-options",1),m.k0s()),2&s&&(m.Y8G("buttons",d.buttons)("waitRecalculationsBeforeSave",!0)("submit$",d.submit$)("formGroup",d.form)("validateBeforeSubmit",d.validateBeforeSubmit),m.R7$(),m.vxM(d.openedFromStorage?-1:1),m.R7$(),m.Y8G("formGroup",d.form.controls.Contents)("passwordConcealed",!0))},dependencies:[a.p,n.X1,n.BC,n.cb,n.j4,n.JD,p.t,h.z,b.b,D.IH,O.B,R.O],encapsulation:2,changeDetection:0})}return f})()},43636(w,E,t){t.d(E,{s:()=>_});class _{cd;disabled=!1;touched=!1;onChange=c=>{};onTouched=()=>{};constructor(c){this.cd=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}markAsTouched(c=!1){(!this.touched||c)&&(this.onTouched(),this.touched=!0),this.cd.markForCheck()}setDisabledState(c){this.disabled=c,this.cd.markForCheck()}onBlur(c){this.markAsTouched(!0)}}},89479(w,E,t){t.d(E,{x:()=>F});var _=t(22972),i=t(40953),c=t(99421),n=t(85802),g=t(17705),C=t(89417),o=t(43636),v=t(4499),e=t(35547);let y=(()=>{class l extends v.d{getDirectoryInfo(u,r="body"){const s=u?.actionImportGetDirectoryInfoRequestBody;if(null==s)throw new Error("Required parameter actionImportGetDirectoryInfoRequestBody was null or undefined when calling getDirectoryInfo.");let d=this.defaultHeaders;d=this.configuration.addCredentialToHeaders("Application","Authorization",d,"Bearer ");const P=this.configuration.selectHeaderAccept(["application/json"]);void 0!==P&&(d=d.set("Accept",P));const B=this.configuration.selectHeaderContentType(["application/json"]);void 0!==B&&(d=d.set("Content-Type",B));let T="json";P&&(T=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob");const{basePath:L,withCredentials:I}=this.configuration;return this.httpClient.request("post",`${L}/GetDirectoryInfo`,{body:s,responseType:T,...I?{withCredentials:I}:{},headers:d,observe:r})}
1getDirectoryInfoQuery(u,r="body",s=!1,d){if(null==u.actionImportGetDirectoryInfoRequestBody)throw new Error("Required parameter actionImportGetDirectoryInfoRequestBody was null or undefined when calling getDirectoryInfo.");return"/GetDirectoryInfo"}static \u0275fac=(()=>{let u;return function(s){return(u||(u=e.xGo(l)))(s||l)}})();static \u0275prov=n.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var S=t(68018);function a(l,f){if(1&l){const u=e.RV6();e.j41(0,"li",5)(1,"a",6),e.bIt("click",function(s){const d=n.eBV(u),P=d.$implicit,M=d.$index,B=d.$count,T=e.XpG();return n.Njj(T.goToPath(s,P,M===B-1))}),e.EFF(2),e.k0s()()}if(2&l){const u=f.$implicit;e.AVh("active",f.$index===f.$count-1),e.R7$(2),e.JRh(u.crumb)}}function p(l,f){if(1&l&&(e.j41(0,"option",3),e.EFF(1),e.k0s()),2&l){const u=f.$implicit;e.Y8G("ngValue",u),e.R7$(),e.JRh(u)}}function h(l,f){1&l&&(e.j41(0,"p",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&l&&(e.R7$(),e.JRh(e.bMT(2,1,"_i18n.ErrorUnableToReadDirectory")))}function b(l){let f=l.replace(/\\/g,"/");for(;f.endsWith("/")&&f.length>1;)f=f.substring(0,f.length-1);return f}function O(l,f){return"."!==f&&".."!==f&&f?l?`${function D(l){return`${l}${l.endsWith("/")||l.endsWith("\\")?"":"/"}`}(l)}${f}`:f:l}let R=(()=>{class l extends o.s{directoriesApiService=(0,n.WQX)(y);basePath;breadCrumbs=[];filesystem;json;dir="";dirs=[""];error;constructor(){super((0,n.WQX)(g.gRc))}updateBreadcrumbs(){const u=this.basePath??"",r=u.includes("/")?"/":"\\",s=u.split(r).filter(P=>!!P),d=s.map((P,M)=>({path:s.slice(0,M+1).join(r),crumb:P}));d.unshift({crumb:"..",path:""}),this.breadCrumbs=d,this.cd.markForCheck()}goToPath(u,r,s){u.preventDefault(),!s&&this.readDirectories(r.path)}readDirectories(u){this.directoriesApiService.getDirectoryInfo({actionImportGetDirectoryInfoRequestBody:{parameters:{Path:u,Filesystem:this.filesystem,Json:this.json}}}).subscribe({next:r=>{this.error=!1,this.basePath=b(r.Path??""),r.Dirs?.sort(),""!==this.basePath?(r.Dirs?.unshift(".."),this.dir=".."):this.filesystem===c.C.GoogleBucket||this.filesystem===c.C.SharePoint?(r.Dirs?.unshift("/"),this.dir="/"):this.dir=r.Dirs?r.Dirs[0]:"",this.dirs=r.Dirs??[],this.valueChanged(),this.updateBreadcrumbs()},error:()=>{this.error=!0,this.cd.markForCheck()}})}onKeyDown(u,r){u.stopPropagation(),"Enter"===u.code&&this.onDirectoryDblClick(r)}onDirectoryDblClick(u){let r;r=".."===u?this.basePath.substring(0,this.basePath.lastIndexOf("/"))+"/":O(this.basePath,u),this.readDirectories(r)}writeValue(u){null!=u&&(this.basePath=b(u),this.readDirectories(this.basePath),this.dir="",this.cd.markForCheck())}valueChanged(){this.onChange(O(this.basePath,this.dir))}static \u0275fac=function(r){return new(r||l)};static \u0275cmp=e.VBU({type:l,selectors:[["app-location-path"]],inputs:{filesystem:"filesystem",json:"json"},features:[e.Jv_([{provide:C.kq,useExisting:l,multi:!0}]),e.Vt3],decls:7,vars:2,consts:[[1,"breadcrumb"],[1,"breadcrumb-item",3,"active"],["size","10",1,"form-select","list-box","w-100",3,"dblclick","ngModelChange","keydown","ngModel"],[3,"ngValue"],[1,"val-errors"],[1,"breadcrumb-item"],["href","#","type","button",3,"click"]],template:function(r,s){1&r&&(e.j41(0,"ol",0),e.Z7z(1,a,3,3,"li",1,e.fX1),e.k0s(),e.j41(3,"select",2),e.bIt("dblclick",function(){return s.onDirectoryDblClick(s.dir)}),e.mxI("ngModelChange",function(P){return e.DH7(s.dir,P)||(s.dir=P),P}),e.bIt("ngModelChange",function(){return s.valueChanged()})("keydown",function(P){return s.onKeyDown(P,s.dir)}),e.Z7z(4,p,2,2,"option",3,e.fX1),e.k0s(),e.nVh(6,h,3,3,"p",4)),2&r&&(e.R7$(),e.Dyx(s.breadCrumbs),e.R7$(2),e.R50("ngModel",s.dir),e.R7$(),e.Dyx(s.dirs),e.R7$(2),e.vxM(s.error?6:-1))},dependencies:[C.YN,C.xH,C.y7,C.wz,C.BC,C.vS,S.D9],encapsulation:2,changeDetection:0})}return l})();var m=t(54999);let F=(()=>{class l extends _.m{buttons=m.P.Ok;fileSystem=c.C.Local;path="";json;getPayload(){return this.path}static \u0275fac=(()=>{let u;return function(s){return(u||(u=e.xGo(l)))(s||l)}})();static \u0275cmp=e.VBU({type:l,selectors:[["ng-component"]],inputs:{fileSystem:"fileSystem",path:"path",json:"json"},features:[e.Vt3],decls:2,vars:4,consts:[["header","_i18n.SelectDirectory",3,"submitted","buttons"],[3,"ngModelChange","ngModel","json","filesystem"]],template:function(r,s){1&r&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return s.onSubmit()}),e.j41(1,"app-location-path",1),e.mxI("ngModelChange",function(P){return e.DH7(s.path,P)||(s.path=P),P}),e.k0s()()),2&r&&(e.Y8G("buttons",s.buttons),e.R7$(),e.R50("ngModel",s.path),e.Y8G("json",s.json)("filesystem",s.fileSystem))},dependencies:[i.p,R,C.YN,C.BC,C.vS],encapsulation:2,changeDetection:0})}return l})()},18584(w,E,t){t.d(E,{C6:()=>v,Z3:()=>S,sP:()=>y,ut:()=>e,y$:()=>o});var _=t(99421),i=t(89417),c=t(59053),n=t(56998),g=t(13372);const o={FtpPath:[i.k0.required,(0,c.iM)("ftp://","ftps://","ftpes://"),c.QO,(0,c.hx)("ftp://","ftps://","ftpes://"),(0,c.IF)(!0)],NsPath:[i.k0.required,(0,c.iM)("smb://"),c.QO],SftpPath:[i.k0.required,
1c.QO,(0,c.iM)("sftp://"),(0,c.IF)(!0)],SharePointPath:[i.k0.required],LocalPath:[i.k0.required],GbJsonFile:[i.k0.required],GbPath:[i.k0.required],S3Path:[i.k0.required]};function v(a){const p=y(a);return new i.gE({FileSystemType:new i.MJ(p.FileSystemType,{nonNullable:!0}),FtpPassword:new i.MJ(p.FtpPassword,{nonNullable:!0}),FtpPath:new i.MJ(p.FtpPath,{nonNullable:!0,validators:o.FtpPath}),FtpUser:new i.MJ(p.FtpUser,{nonNullable:!0}),GbJsonFile:new i.MJ(p.GbJsonFile,{nonNullable:!0,validators:o.GbJsonFile}),GbPath:new i.MJ(p.GbPath,{nonNullable:!0,validators:o.GbPath}),LocalPath:new i.MJ(p.LocalPath,{nonNullable:!0,validators:o.LocalPath}),NsDomain:new i.MJ(p.NsDomain,{nonNullable:!0}),NsPassword:new i.MJ(p.NsPassword,{nonNullable:!0}),NsPath:new i.MJ(p.NsPath,{nonNullable:!0,validators:o.NsPath}),NsUser:new i.MJ(p.NsUser,{nonNullable:!0}),S3Path:new i.MJ(p.S3Path,{nonNullable:!0,validators:o.S3Path}),SftpPassword:new i.MJ(p.SftpPassword,{nonNullable:!0}),SftpPath:new i.MJ(p.SftpPath,{nonNullable:!0,validators:o.SftpPath}),SftpPrivateKeyFile:new i.MJ(p.SftpPrivateKeyFile,{nonNullable:!0}),SftpUser:new i.MJ(p.SftpUser,{nonNullable:!0}),SharePointPath:new i.MJ(p.SharePointPath,{nonNullable:!0,validators:o.SharePointPath}),FtpValidateCertificate:new i.MJ(p.FtpValidateCertificate,{nonNullable:!0})})}function e(a,p){if(a.disabled)return;const h=a.controls,b=h.FileSystemType.value;(0,n.sS)([h.FtpPath,h.FtpPassword,h.FtpUser,h.FtpValidateCertificate],b===_.C.Ftp),(0,n.sS)([h.GbJsonFile,h.GbPath],b===_.C.GoogleBucket),(0,n.sS)([h.NsDomain,h.NsUser,h.NsPath,h.NsPassword],b===_.C.NetworkShare),(0,n.sS)([h.SftpPrivateKeyFile,h.SftpPassword,h.SftpPath,h.SftpUser],b===_.C.Sftp),(0,n.TZ)(h.SharePointPath,b===_.C.SharePoint),(0,n.TZ)(h.S3Path,b===_.C.AmazonS3),(0,n.TZ)(h.LocalPath,b===_.C.Local&&p),(0,n.TZ)(h.GbPath,"VALID"===h.GbJsonFile.status)}function y(a){const{GbJson:p,SftpPrivateKey:h,...b}=function C(a){return{FileSystemType:a?.FileSystemType??_.C.Local,FtpPassword:a?.FtpPassword??{Value:""},FtpPath:a?.FtpPath??"",FtpUser:a?.FtpUser??"",GbJson:a?.GbJson??{Contents:""},GbPath:a?.GbPath??"",LocalPath:a?.LocalPath??"",NsDomain:a?.NsDomain??"",NsPassword:a?.NsPassword??{Value:""},NsPath:a?.NsPath??"",NsUser:a?.NsUser??"",S3Path:a?.S3Path??"",SftpPassword:a?.SftpPassword??{Value:""},SftpPath:a?.SftpPath??"",SftpPrivateKey:a?.SftpPrivateKey??{Contents:""},SftpUser:a?.SftpUser??"",SharePointPath:a?.SharePointPath??"",FtpValidateCertificate:a?.FtpValidateCertificate??!1}}(a);return{...b,GbJsonFile:(0,g.s)(p),SftpPrivateKeyFile:(0,g.s)(h)}}function S(a){const{GbJsonFile:p,GbPath:h,SftpPrivateKeyFile:b,...D}=a;return{...D,...D.FileSystemType===_.C.GoogleBucket&&{GbJson:(0,g.W)(p??{name:"",content:""}),GbPath:h||""},...D.FileSystemType===_.C.Sftp&&{SftpPrivateKey:(0,g.W)(b??{name:"",content:""})}}}},70312(w,E,t){t.d(E,{S:()=>c});var _=t(35547),i=t(85802);let c=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275cmp=_.VBU({type:n,selectors:[["app-ellipsis-h-regular-icon"],["","app-ellipsis-h-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"]],template:function(o,v){1&o&&(i.qSk(),_.rj2(0,"svg",0),_.Hgh(1,"path",1),_.eux())},encapsulation:2})}return n})()},81134(w,E,t){t.d(E,{Q:()=>c});var _=t(35547),i=t(85802);let c=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275cmp=_.VBU({type:n,selectors:[["app-pencil-alt-solid-icon"],["","app-pencil-alt-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","m497.9 142.1-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8 21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]],template:function(o,v){1&o&&(i.qSk(),_.rj2(0,"svg",0),_.Hgh(1,"path",1),_.eux())},encapsulation:2})}return n})()}}]);

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.