@duplicati/ngclient 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-34N3NDDX.js +1 -0
- package/{chunk-FCXKPHH2.js → chunk-4LKWOYIM.js} +1 -1
- package/chunk-4OETIYIQ.js +1 -0
- package/{chunk-OIV6DYWR.js → chunk-737NFYPO.js} +1 -1
- package/{chunk-L7W4ZJTP.js → chunk-CP57LBQ6.js} +1 -1
- package/{chunk-SANIFXXF.js → chunk-FDU72LLR.js} +1 -1
- package/chunk-HARDXXQK.js +1 -0
- package/{chunk-7R4NNENA.js → chunk-IDRVDCZF.js} +1 -1
- package/{chunk-N4NGBPMJ.js → chunk-IJZSE545.js} +1 -1
- package/{chunk-2T3PBPBO.js → chunk-QZ4DM36I.js} +1 -1
- package/{chunk-FI43YAHP.js → chunk-RUBPUVDQ.js} +1 -1
- package/chunk-T5I4AY74.js +1 -0
- package/{chunk-IQDBKRQV.js → chunk-VFTH7UVW.js} +1 -1
- package/{chunk-EQS5S7RI.js → chunk-WCTVFZUZ.js} +1 -1
- package/index.html +1 -1
- package/main-UAJKIVXK.js +1 -0
- package/package.json +1 -1
- package/chunk-4MGFY2JV.js +0 -1
- package/chunk-AX4MPJ65.js +0 -1
- package/chunk-YT3L2PHL.js +0 -1
- package/chunk-ZUGIRXAF.js +0 -1
- package/main-ZCCISGLD.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as S}from"./chunk-T5I4AY74.js";import{b,c as L,d as N,e as M,h as k,l as v,o as P,p as O,r as x}from"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import{c as y}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as E,b as F,g as G,l as T}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as t,Db as i,Eb as p,G as c,Ra as l,Ub as w,Ya as m,_ as s,eb as g,hc as n,kb as f,tb as h,vb as _,yb as C}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function A(r,e){r&1&&(t(0,"spk-alert",1),n(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new O,d=class r{#e=s(y);#t=s(S);failedLogin=m(!1);isLoading=m(!1);loginForm=u.group({user:u.control(""),pass:u.control("",L.required)});submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=g({type:r,selectors:[["app-login"]],decls:15,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],["type","warning"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,a){o&1&&(t(0,"form",0),w("submit",function(){return a.submit()}),f(1,A,2,0,"spk-alert",1),t(2,"div",2),p(3,"input",3),t(4,"spk-form-field")(5,"label",4),n(6," Password "),t(7,"a",5)(8,"spk-icon"),n(9,"question"),i()()(),p(10,"input",6),i(),t(11,"button",7),n(12," Login "),t(13,"spk-icon"),n(14,"arrow-right"),i()()()()),o&2&&(h("formGroup",a.loginForm),l(),C(a.failedLogin()?1:-1),l(10),_("loader",a.isLoading()))},dependencies:[x,k,b,N,M,v,P,T,E,G,F],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as $}from"./chunk-N3GBABZB.js";import{a as R}from"./chunk-
|
|
1
|
+
import{b as $}from"./chunk-N3GBABZB.js";import{a as R}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as k}from"./chunk-O2MZ5CAQ.js";import{a as A,d as N}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as B,g as O}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Kc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Ya as l,_ as m,eb as C,hc as E,jc as L,kb as p,yb as s,zb as f}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ke}from"./chunk-GE3T3AG3.js";import{b as ce,d as ue,g as de,i as Se,q as $}from"./chunk-OROSSCXB.js";import{b as C,c as _e}from"./chunk-O2MZ5CAQ.js";import{a as me,b as Te,e as ge,g as fe,i as L,l as Ce,o as Pe,p as Ee,q as Oe,r as Ae}from"./chunk-ZTSITRHY.js";import{a as De}from"./chunk-BSZZLSIX.js";import{pa as pe}from"./chunk-BUARZS4A.js";import{a as he}from"./chunk-O53NVQ2A.js";import{Ab as A,Bb as k,Cb as l,Db as s,Eb as B,G as m,Ib as ie,Kc as N,Mc as W,O as J,Ob as b,Pb as v,Qb as c,Ra as r,Tb as ne,U as Y,Ub as u,Vb as E,Ya as p,_,eb as P,fa as Q,ga as ee,hb as te,hc as g,ic as X,jc as oe,kb as z,kc as ae,l as q,lc as se,mc as h,nc as D,oc as R,q as Z,ra as y,tb as T,vb as S,vc as H,wc as le,xc as re,yb as V,zb as O}from"./chunk-VGQ6X3AL.js";import{a as M,b as I}from"./chunk-C6Q5SG76.js";var G=class o{#e=_(he);transform(e,...t){return this.#e.locale(),this.#e(e).fromNow()}static \u0275fac=function(t){return new(t||o)};static \u0275pipe=te({name:"appRelativeTime",type:o,pure:!0})};function ye(o,e){if(o&1){let t=ie();l(0,"spk-radio",10),u("click",function(){let n=Q(t).$implicit,a=E();return ee(a.pauseOption.set(n.value))}),g(1),s()}if(o&2){let t=e.$implicit,i=E();S("active",i.pauseOption()===t.value),r(),oe(" ",t.label," ")}}var Be=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],x=class o{#e=_(C);pauseOptions=p(Be);closed=y();isSubmitting=p(!1);pauseTransfers=p(!1);pauseOption=p(void 0);submit(){this.isSubmitting.set(!0);let e=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:e}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=P({type:o,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let e;e=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let i;i=$localize`If you pause transfers they could time out and cause retries or failures.`;let n;n=$localize`Cancel`;let a;return a=$localize` Update settings `,[e,t,i,n,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",5)(1,"h3"),c(2,0),s()(),l(3,"div",6)(4,"div",7),A(5,ye,2,3,"spk-radio",8,O),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return i.pauseTransfers.set(!i.pauseTransfers())}),c(9,1),s(),l(10,"spk-alert",11),c(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return i.closed.emit()}),c(14,3),s(),l(15,"button",14),u("click",function(){return i.submit()}),c(16,4),s()()),t&2&&(r(5),k(i.pauseOptions()),r(3),S("active",i.pauseTransfers()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,Ee,L,Te],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var be={Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,"PurgeFiles_Begin,":$localize`Listing remote files for purge …`,"PurgeFiles_Process,":$localize`Purging files …`,"PurgeFiles_Compact,":$localize`Compacting remote data …`,"PurgeFiles_Complete,":$localize`Purging files complete!`,Error:$localize`Error!`},w=class o{#e=1e3;#t=_(De);#n=_(_e);#_=_(C);#s=_(ke);#i=p(!1);#l=p(!1);#c=p(this.#e);#u=p(null);#r=p(!1);#o=p(!1);#a=p(null);#m=p(!1);statusData=this.#u.asReadonly();serverState=N(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let i=t.Item1?this.#s.getBackupById(t.Item1):null;return I(M({},t),{backup:i})}),e):null});isFetching=this.#l.asReadonly();#p=null;#T=W(()=>{let e=this.#i(),t=this.#c();if(!e||!t||t<this.#e){this.#p&&window.clearInterval(this.#p);return}this.#p=window.setInterval(()=>{this.#S()},t)});start(){this.#r.set(!0),this.#d()}stop(){this.#r.set(!1)}startPollingProgress(){this.#S(),this.#i.set(!0)}stopPollingProgress(){this.#i.set(!1)}setProgressStatePollingInterval(e){if(e<this.#e){console.error(`Polling interval must be at least ${this.#e}ms`);return}this.#c.set(e)}serverStateEffect=W(()=>{if(this.#m()){this.stopPollingProgress();return}!this.#o()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#d()},1e3):this.stopPollingProgress()});calculateProgress(e){let t=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)t=0;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,n=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i;t=(e.ProcessedFileSize+i)/e.TotalFileSize,e.ProcessedFileCount===0?t=0:t>=.9&&(t=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?t=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?t=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?t=.98:e.Phase==="Backup_Complete"||e.Phase==="Backup_WaitForUpload"?t=1:e.OverallProgress>0&&(t=e.OverallProgress);return t}constructStatusText(e){let t="Running \u2026";if(e.task&&e&&(t=e.Phase?be[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"))if(e.StillCounting)t=`Counting (${e.TotalFileCount} files found, ${this.#t.transform(e.TotalFileSize)})`;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,n=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i,d=e.BackendSpeed<0?"":` at ${this.#t.transform(e.BackendSpeed)}/s`;t=`${e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":""}${n} files (${this.#t.transform(a)}) to go ${d}`}return t}#d(){if(this.#o())return;this.#o.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#_.getApiV1Serverstate(t).pipe(m(()=>this.#o.set(!1))).subscribe({next:i=>{this.#a()?.LastDataUpdateID!==i.LastDataUpdateID&&this.#s.getBackups(),this.#a.set(i)}})}#S(){this.#l.set(!0),this.#n.getApiV1Progressstate().pipe(J(e=>{let t=e.TaskID??null;return t===null?q(e):this.#_.getApiV1TaskByTaskid({taskid:t}).pipe(Z(i=>I(M({},e),{task:i??null})))}),m(()=>this.#l.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,i=e.BackupID??null;if(t!==null&&i!==null){let n=this.#s.getBackupById(i);e.backup=n}e.task?.Status==="Completed"?this.#i.set(!1):this.#i.set(!0),this.#u.set(I(M({},e),{progress:this.calculateProgress(e),statusText:this.constructStatusText(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))},error:e=>{e.status===404&&this.#i.set(!1)}})}static \u0275fac=function(t){return new(t||o)};static \u0275prov=Y({token:o,factory:o.\u0275fac,providedIn:"root"})};function ve(o,e){if(o&1&&(l(0,"spk-option",14),g(1),s()),o&2){let t=e.$implicit;T("value",t),r(),X(t)}}function $e(o,e){if(o&1&&(l(0,"spk-option",14),g(1),s()),o&2){let t=e.$implicit;T("value",t),r(),X(t)}}var Le=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],K={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ne=Object.entries(K).reduce((o,[e,t])=>(o[t]=e,o),{}),F=class o{#e=_(C);closed=y();isSubmitting=p(!1);sizeOptions=p(Le);maxUploadActive=p(!1);maxDownloadActive=p(!1);maxUpload=p(0);maxDownload=p(0);maxUploadUnit=p("MByte/s");maxDownloadUnit=p("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e?.["max-upload-speed"]?.split(/(\d+)/),i=e?.["max-download-speed"]?.split(/(\d+)/),n=t[1]??"",a=i[1]??"",d=t[2]??"MB",f=i[2]??"MB",Me=n===""?10:parseInt(n),Ie=a===""?10:parseInt(a);console.log(n),this.maxUploadUnit.set(Ne[d]+"/s"),this.maxDownloadUnit.set(Ne[f]+"/s"),this.maxUploadActive.set(n!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(Me),this.maxDownload.set(Ie)}})}blockDecimalKeys(e){if([".",","].includes(e.key))return e.preventDefault()}cleanupInputAfterPasting(e){e.preventDefault();let t=e.clipboardData?.getData("text/plain");if(!t)return;let i=t.replaceAll(/[\.,]/g,"");e.target.value=i}submit(){this.isSubmitting.set(!0);let e=this.maxUploadActive()?`${this.maxUpload()}${K[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${K[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":e,"max-download-speed":t}}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=P({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let e;e=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let i;i=$localize` Max download speed `;let n;n=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let d;return d=$localize` Update settings `,[e,t,i,n,a,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",6)(1,"h3"),c(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return i.maxUploadActive.set(!i.maxUploadActive())}),c(7,1),s(),l(8,"spk-form-field")(9,"input",11),u("paste",function(a){return i.cleanupInputAfterPasting(a)})("keydown",function(a){return i.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(i.maxUpload,a)||(i.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),R("ngModelChange",function(a){return D(i.maxUploadUnit,a)||(i.maxUploadUnit=a),a}),s(),A(12,ve,2,2,"spk-option",14,O),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return i.maxDownloadActive.set(!i.maxDownloadActive())}),c(16,2),s(),l(17,"spk-form-field")(18,"input",11),u("paste",function(a){return i.cleanupInputAfterPasting(a)})("keydown",function(a){return i.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(i.maxDownload,a)||(i.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),R("ngModelChange",function(a){return D(i.maxDownloadUnit,a)||(i.maxDownloadUnit=a),a}),s(),A(21,$e,2,2,"spk-option",14,O),s()(),l(23,"p"),c(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return i.closed.emit(!1)}),c(27,4),s(),l(28,"button",17),u("click",function(){return i.submit()}),c(29,5),s()()),t&2&&(r(6),S("active",i.maxUploadActive()),r(3),h("ngModel",i.maxUpload),T("disabled",!i.maxUploadActive()),r(),T("hideClearButton",!0),r(),h("ngModel",i.maxUploadUnit),r(),k(i.sizeOptions()),r(3),S("active",i.maxDownloadActive()),r(3),h("ngModel",i.maxDownload),T("disabled",!i.maxDownloadActive()),r(),T("hideClearButton",!0),r(),h("ngModel",i.maxDownloadUnit),r(),k(i.sizeOptions()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,ce,Se,ue,de,Ae,Oe,Ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ge(o,e){if(o&1&&(l(0,"div"),g(1),s(),B(2,"spk-progress-bar",7)),o&2){let t=E();r(),ae("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function Ue(o,e){if(o&1&&(l(0,"div",4),g(1),H(2,"appRelativeTime"),H(3,"date"),s()),o&2){let t,i=E();r(),se(" ",(t=i.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",le(2,3,i.nextBackup().time)," at ",re(3,5,i.nextBackup().time,"shortTime")," ")}}function xe(o,e){o&1&&(l(0,"div",4),c(1,1),s())}function we(o,e){o&1&&(b(0,0,1),B(1,"spk-icon"),v())}function ze(o,e){o&1&&(b(0,0,2),B(1,"spk-icon"),v())}var Fe=new Date,j=class o{#e=_(C);#t=_(w);#n=_(ge);minsAgo=Fe.setMinutes(Fe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=N(()=>this.serverState()?.ProgramState==="Running");isResuming=p(!1);nextBackup=N(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(F,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(m(()=>this.isResuming.set(!1))).subscribe()}ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=P({type:o,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let e;e=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,e=ne(e);let t;return t=$localize`Loading...`,[e,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,i){if(t&1&&(l(0,"div",2)(1,"div",3),z(2,Ge,3,3)(3,Ue,4,8,"div",4)(4,xe,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return i.pauseResume()}),b(7,0),z(8,we,2,0)(9,ze,2,0),v(),s(),l(10,"button",6),u("click",function(){return i.openThrottleSettingsDialog()}),l(11,"spk-icon"),g(12,"speedometer"),s()()()()),t&2){let n;r(2),V(!((n=i.statusData())==null||n.task==null)&&n.task.Status&&((n=i.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:i.nextBackup().backup||i.nextBackup().time?3:4),r(4),S("loader",i.isResuming()),r(2),V(i.isRunning()?8:9)}},dependencies:[Pe,G,pe,me,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import{d as S}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as T,g as M,h as f}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Cb as e,Db as n,Eb as _,Ob as s,Pb as l,Qb as i,Ra as c,eb as D,rc as d,tb as r}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ke}from"./chunk-ZUGIRXAF.js";import{a as Te}from"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as Se}from"./chunk-O2MZ5CAQ.js";import{d as R}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as H,g as b,h as Me,j as Ee,k as ge,n as Fe,o as Ce}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as ce,Bb as re,Cb as o,Db as i,Eb as r,Fb as F,Gb as C,Ib as pe,Ob as s,Pb as u,Qb as p,Ra as c,Rb as se,Sb as ue,Ub as P,Vb as d,_ as I,eb as ie,fa as k,ga as O,hc as S,jc as N,kb as g,qb as _e,rb as ae,rc as D,sc as T,tb as E,vb as A,vc as $,wc as f,xc as de,yb as m,zb as le}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var Oe=()=>[R,b,H,Ee,ge,Fe,import("./chunk-LREVYYY4.js").then(e=>e.DatePipe),import("./chunk-G2NEYTH2.js").then(e=>e.DurationFormatPipe),import("./chunk-34MR2IQN.js").then(e=>e.BytesPipe)],me=()=>["/add-backup"],Pe=()=>["/restore"],Ne=e=>["/backup",e],$e=e=>["/restore",e],fe=e=>["/backup",e,"export"],Ie=e=>["/backup",e,"database"],Ae=e=>["/backup",e,"commandline"],De=e=>["/backup",e,"log"];function Re(e,_){if(e&1&&(S(0," - "),F(1),p(2,21),C(),S(3),$(4,"durationFormat")),e&2){let t=d().$implicit;c(3),N(" ",f(4,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDuration)," ")}}function He(e,_){e&1&&(F(0),p(1,22),C())}function be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.SourceFilesSize)," ")}}function xe(e,_){e&1&&(F(0),p(1,23),C())}function Be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.TargetFilesSize)," ")}}function Le(e,_){e&1&&(F(0),p(1,24),C())}function ye(e,_){if(e&1&&(o(0,"spk-chip",37),p(1,25),i()),e&2){let t=d().$implicit;c(),se(t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount),ue(1)}}function Ge(e,_){e&1&&(o(0,"spk-chip",38),p(1,26),i())}function he(e,_){if(e&1){let t=pe();o(0,"div",36)(1,"div",31)(2,"h3"),S(3),o(4,"spk-icon"),S(5,"database"),i()(),o(6,"p")(7,"span"),p(8,8),i(),S(9),$(10,"date"),g(11,Re,5,3)(12,He,2,0,"ng-container"),i(),o(13,"p")(14,"span"),p(15,9),i(),g(16,be,2,3)(17,xe,2,0,"ng-container"),i(),o(18,"p")(19,"span"),p(20,10),i(),g(21,Be,2,3)(22,Le,2,0,"ng-container"),i()(),g(23,ye,2,1,"spk-chip",37)(24,Ge,2,0,"spk-chip",38),o(25,"div",39)(26,"button",40),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.startBackup(l.Backup==null?null:l.Backup.ID))}),s(27,11),r(28,"spk-icon"),u(),i(),o(29,"button",41)(30,"spk-icon"),S(31,"pencil-simple"),i()(),o(32,"spk-menu",42)(33,"button",32)(34,"spk-icon"),S(35,"dots-three-vertical"),i()(),F(36,43),o(37,"h3",44),S(38,"Operations"),i(),o(39,"button",45,0),s(41,12),r(42,"spk-icon"),u(),i(),o(43,"button",45,0),s(45,13),r(46,"spk-icon"),u(),i(),o(47,"button",46,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.deleteBackup(l.Backup==null?null:l.Backup.ID))}),s(49,14),r(50,"spk-icon"),u(),i(),r(51,"spk-divider"),o(52,"h3",44),S(53,"Advanced"),i(),o(54,"button",45,0),s(56,15),r(57,"spk-icon"),u(),i(),o(58,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(60,16),r(61,"spk-icon"),u(),i(),o(62,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(64,17),r(65,"spk-icon"),u(),i(),o(66,"button",45,0),s(68,18),r(69,"spk-icon"),u(),i(),r(70,"spk-divider"),o(71,"h3",44),S(72,"Reporting"),i(),o(73,"button",45,0),s(75,19),r(76,"spk-icon"),u(),i(),o(77,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(79,20),r(80,"spk-icon"),u(),i(),C(),i()()()}if(e&2){let t,n=_.$implicit,l=d(3);c(3),N(" ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:l.MISSING_BACKUP_NAME," "),c(6),N(" ",de(10,17,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,"short")," "),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?11:12),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?16:17),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?21:22),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?23:24),c(3),A("loader",l.startingBackup()),c(3),E("routerLink",T(20,Ne,n.Backup==null?null:n.Backup.ID)),c(3),E("right",!0),c(7),E("routerLink",T(22,$e,n.Backup==null?null:n.Backup.ID)),c(4),E("routerLink",T(24,fe,n.Backup==null?null:n.Backup.ID)),c(4),A("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(26,Ie,n.Backup==null?null:n.Backup.ID)),c(12),E("routerLink",T(28,Ae,n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(30,De,n.Backup==null?null:n.Backup.ID))}}function ve(e,_){if(e&1&&ce(0,he,81,32,"div",36,le),e&2){let t=d(2);re(t.backups())}}function Xe(e,_){e&1&&(F(0),p(1,27),C())}function we(e,_){if(e&1&&g(0,ve,2,0)(1,Xe,2,0,"ng-container"),e&2){let t=d();m(t.backups().length?0:1)}}function ze(e,_){e&1&&(o(0,"div",48),r(1,"spk-progress-bar",49),o(2,"div",31)(3,"h3"),p(4,28),i()()())}var x=class e{#e=I(Te);#n=I(Se);MISSING_BACKUP_NAME=$localize`Backup name missing`;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(_){this.#e.startBackup(_)}deleteBackup(_){window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(_)}verifyFiles(_){this.#n.postApiV1BackupByIdVerify({id:_}).subscribe()}compressBackup(_){this.#n.postApiV1BackupByIdCompact({id:_}).subscribe()}createErrorReport(_){this.#n.postApiV1BackupByIdCreatereport({id:_}).subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ie({type:e,selectors:[["app-home"]],decls:31,vars:5,consts:()=>{let _;_=$localize`Backups`;let t;t=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let M;M=$localize`Restores allow you to restore your data from the cloud.`;let B;B=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let L;L=$localize`My backups`;let y;y=$localize`Last successful backup:`;let G;G=$localize`Source:`;let h;h=$localize`Destination:`;let v;v=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let X;X=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let w;w=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let z;z=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let K;K=$localize`${"\uFFFD#57\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let V;V=$localize`${"\uFFFD#61\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#61\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let j;j=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let q;q=$localize`${"\uFFFD#69\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#69\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let U;U=$localize`${"\uFFFD#76\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#76\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let W;W=$localize`${"\uFFFD#80\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#80\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let J;J=$localize`took`;let Q;Q=$localize`N/A`;let Y;Y=$localize`N/A`;let Z;Z=$localize`N/A`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ne;ne=$localize`No version yet`;let te;te=$localize`No backups founds`;let oe;return oe=$localize`Loading backups...`,[["option",""],_,t,n,l,M,B,L,y,G,h,v,X,w,z,K,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["menu",""],["title",""],["type","button",3,"routerLink"],[3,"click"],["type","button",3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(r(0,"app-status-bar"),o(1,"section")(2,"header")(3,"spk-card",29),r(4,"img",30),o(5,"div",31)(6,"h3"),p(7,1),i(),o(8,"p"),p(9,2),i()(),o(10,"button",32),s(11,3),r(12,"spk-icon"),u(),i()(),o(13,"spk-card",29),r(14,"img",33),o(15,"div",31)(16,"h3"),p(17,4),i(),o(18,"p"),p(19,5),i()(),o(20,"button",32),s(21,6),r(22,"spk-icon"),u(),i()()(),o(23,"div",34)(24,"h2"),p(25,7),i(),o(26,"div",35),g(27,we,2,1)(28,ze,5,0),_e(29,27,Oe,null,28),i()()()),t&2&&(c(3),E("routerLink",D(3,me)),c(10),E("routerLink",D(4,Pe)),c(16),ae(!n.backupsLoading()))},dependencies:[R,ke,Me,b,H,Ce],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{x as default};
|
|
1
|
+
import{a as ke}from"./chunk-4OETIYIQ.js";import{a as Te}from"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as Se}from"./chunk-O2MZ5CAQ.js";import{d as R}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as H,g as b,h as Me,j as Ee,k as ge,n as Fe,o as Ce}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as ce,Bb as re,Cb as o,Db as i,Eb as r,Fb as F,Gb as C,Ib as pe,Ob as s,Pb as u,Qb as p,Ra as c,Rb as se,Sb as ue,Ub as P,Vb as d,_ as I,eb as ie,fa as k,ga as O,hc as S,jc as N,kb as g,qb as _e,rb as ae,rc as D,sc as T,tb as E,vb as A,vc as $,wc as f,xc as de,yb as m,zb as le}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var Oe=()=>[R,b,H,Ee,ge,Fe,import("./chunk-LREVYYY4.js").then(e=>e.DatePipe),import("./chunk-G2NEYTH2.js").then(e=>e.DurationFormatPipe),import("./chunk-34MR2IQN.js").then(e=>e.BytesPipe)],me=()=>["/add-backup"],Pe=()=>["/restore"],Ne=e=>["/backup",e],$e=e=>["/restore",e],fe=e=>["/backup",e,"export"],Ie=e=>["/backup",e,"database"],Ae=e=>["/backup",e,"commandline"],De=e=>["/backup",e,"log"];function Re(e,_){if(e&1&&(S(0," - "),F(1),p(2,21),C(),S(3),$(4,"durationFormat")),e&2){let t=d().$implicit;c(3),N(" ",f(4,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDuration)," ")}}function He(e,_){e&1&&(F(0),p(1,22),C())}function be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.SourceFilesSize)," ")}}function xe(e,_){e&1&&(F(0),p(1,23),C())}function Be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.TargetFilesSize)," ")}}function Le(e,_){e&1&&(F(0),p(1,24),C())}function ye(e,_){if(e&1&&(o(0,"spk-chip",37),p(1,25),i()),e&2){let t=d().$implicit;c(),se(t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount),ue(1)}}function Ge(e,_){e&1&&(o(0,"spk-chip",38),p(1,26),i())}function he(e,_){if(e&1){let t=pe();o(0,"div",36)(1,"div",31)(2,"h3"),S(3),o(4,"spk-icon"),S(5,"database"),i()(),o(6,"p")(7,"span"),p(8,8),i(),S(9),$(10,"date"),g(11,Re,5,3)(12,He,2,0,"ng-container"),i(),o(13,"p")(14,"span"),p(15,9),i(),g(16,be,2,3)(17,xe,2,0,"ng-container"),i(),o(18,"p")(19,"span"),p(20,10),i(),g(21,Be,2,3)(22,Le,2,0,"ng-container"),i()(),g(23,ye,2,1,"spk-chip",37)(24,Ge,2,0,"spk-chip",38),o(25,"div",39)(26,"button",40),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.startBackup(l.Backup==null?null:l.Backup.ID))}),s(27,11),r(28,"spk-icon"),u(),i(),o(29,"button",41)(30,"spk-icon"),S(31,"pencil-simple"),i()(),o(32,"spk-menu",42)(33,"button",32)(34,"spk-icon"),S(35,"dots-three-vertical"),i()(),F(36,43),o(37,"h3",44),S(38,"Operations"),i(),o(39,"button",45,0),s(41,12),r(42,"spk-icon"),u(),i(),o(43,"button",45,0),s(45,13),r(46,"spk-icon"),u(),i(),o(47,"button",46,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.deleteBackup(l.Backup==null?null:l.Backup.ID))}),s(49,14),r(50,"spk-icon"),u(),i(),r(51,"spk-divider"),o(52,"h3",44),S(53,"Advanced"),i(),o(54,"button",45,0),s(56,15),r(57,"spk-icon"),u(),i(),o(58,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(60,16),r(61,"spk-icon"),u(),i(),o(62,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(64,17),r(65,"spk-icon"),u(),i(),o(66,"button",45,0),s(68,18),r(69,"spk-icon"),u(),i(),r(70,"spk-divider"),o(71,"h3",44),S(72,"Reporting"),i(),o(73,"button",45,0),s(75,19),r(76,"spk-icon"),u(),i(),o(77,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(79,20),r(80,"spk-icon"),u(),i(),C(),i()()()}if(e&2){let t,n=_.$implicit,l=d(3);c(3),N(" ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:l.MISSING_BACKUP_NAME," "),c(6),N(" ",de(10,17,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,"short")," "),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?11:12),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?16:17),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?21:22),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?23:24),c(3),A("loader",l.startingBackup()),c(3),E("routerLink",T(20,Ne,n.Backup==null?null:n.Backup.ID)),c(3),E("right",!0),c(7),E("routerLink",T(22,$e,n.Backup==null?null:n.Backup.ID)),c(4),E("routerLink",T(24,fe,n.Backup==null?null:n.Backup.ID)),c(4),A("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(26,Ie,n.Backup==null?null:n.Backup.ID)),c(12),E("routerLink",T(28,Ae,n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(30,De,n.Backup==null?null:n.Backup.ID))}}function ve(e,_){if(e&1&&ce(0,he,81,32,"div",36,le),e&2){let t=d(2);re(t.backups())}}function Xe(e,_){e&1&&(F(0),p(1,27),C())}function we(e,_){if(e&1&&g(0,ve,2,0)(1,Xe,2,0,"ng-container"),e&2){let t=d();m(t.backups().length?0:1)}}function ze(e,_){e&1&&(o(0,"div",48),r(1,"spk-progress-bar",49),o(2,"div",31)(3,"h3"),p(4,28),i()()())}var x=class e{#e=I(Te);#n=I(Se);MISSING_BACKUP_NAME=$localize`Backup name missing`;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(_){this.#e.startBackup(_)}deleteBackup(_){window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(_)}verifyFiles(_){this.#n.postApiV1BackupByIdVerify({id:_}).subscribe()}compressBackup(_){this.#n.postApiV1BackupByIdCompact({id:_}).subscribe()}createErrorReport(_){this.#n.postApiV1BackupByIdCreatereport({id:_}).subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ie({type:e,selectors:[["app-home"]],decls:31,vars:5,consts:()=>{let _;_=$localize`Backups`;let t;t=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let M;M=$localize`Restores allow you to restore your data from the cloud.`;let B;B=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let L;L=$localize`My backups`;let y;y=$localize`Last successful backup:`;let G;G=$localize`Source:`;let h;h=$localize`Destination:`;let v;v=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let X;X=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let w;w=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let z;z=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let K;K=$localize`${"\uFFFD#57\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let V;V=$localize`${"\uFFFD#61\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#61\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let j;j=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let q;q=$localize`${"\uFFFD#69\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#69\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let U;U=$localize`${"\uFFFD#76\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#76\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let W;W=$localize`${"\uFFFD#80\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#80\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let J;J=$localize`took`;let Q;Q=$localize`N/A`;let Y;Y=$localize`N/A`;let Z;Z=$localize`N/A`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ne;ne=$localize`No version yet`;let te;te=$localize`No backups founds`;let oe;return oe=$localize`Loading backups...`,[["option",""],_,t,n,l,M,B,L,y,G,h,v,X,w,z,K,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["menu",""],["title",""],["type","button",3,"routerLink"],[3,"click"],["type","button",3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(r(0,"app-status-bar"),o(1,"section")(2,"header")(3,"spk-card",29),r(4,"img",30),o(5,"div",31)(6,"h3"),p(7,1),i(),o(8,"p"),p(9,2),i()(),o(10,"button",32),s(11,3),r(12,"spk-icon"),u(),i()(),o(13,"spk-card",29),r(14,"img",33),o(15,"div",31)(16,"h3"),p(17,4),i(),o(18,"p"),p(19,5),i()(),o(20,"button",32),s(21,6),r(22,"spk-icon"),u(),i()()(),o(23,"div",34)(24,"h2"),p(25,7),i(),o(26,"div",35),g(27,we,2,1)(28,ze,5,0),_e(29,27,Oe,null,28),i()()()),t&2&&(c(3),E("routerLink",D(3,me)),c(10),E("routerLink",D(4,Pe)),c(16),ae(!n.backupsLoading()))},dependencies:[R,ke,Me,b,H,Ce],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae}from"./chunk-N3GBABZB.js";import{a as te}from"./chunk-
|
|
1
|
+
import{b as ae}from"./chunk-N3GBABZB.js";import{a as te}from"./chunk-4OETIYIQ.js";import{a as ee}from"./chunk-GE3T3AG3.js";import{b as j,d as H,g as J,q as Q}from"./chunk-OROSSCXB.js";import{b as W}from"./chunk-O2MZ5CAQ.js";import{a as z,d as q}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as Y,g as Z,l as x}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Cb as i,D as g,Db as a,Eb as l,G as u,Kc as C,Mc as h,O as k,Ob as r,Pb as p,Qb as T,Ra as s,Rb as L,Sb as U,Ub as A,Ya as c,_ as D,eb as y,hc as E,kb as v,mc as w,nc as X,oc as V,q as O,tb as F,vb as P,xb as G,yb as K}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),E(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),E(1,"warning"),a())}var m=class S{#a=D(z);#i=D(ee);#e=D(W);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=C(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=C(()=>this.lastValidatedPath()===this.backupFilePath());backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:15,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"warn"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[Q,j,H,J,te,Z,x,Y,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-T5I4AY74.js";import"./chunk-O2MZ5CAQ.js";import"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{g as M}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as t,Db as i,Eb as g,Qb as l,Ra as u,Wb as C,Xb as c,_ as m,eb as s,hc as O,kb as _,yb as f}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(h);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,M],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as g}from"./chunk-JWZZL2QQ.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as I}from"./chunk-
|
|
1
|
+
import{q as g}from"./chunk-JWZZL2QQ.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as I}from"./chunk-4OETIYIQ.js";import{a as N}from"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as O}from"./chunk-O2MZ5CAQ.js";import{a as P,b as h,d as E,e as B}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{o as $,p as M,t as b}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Cb as s,D as m,Db as p,Eb as n,Mc as A,Ob as d,Pb as c,Ra as r,_ as F,eb as f,kb as C,qc as R,tb as u,tc as _,yb as D}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=F(P);#e=F(g);#a=F(N);#i=F(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(l=>l.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let l;return l=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,l,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,M,b,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow:hidden}"],changeDetection:0})};export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ye}from"./chunk-B6UDSTOM.js";import{b as ve,c as ee}from"./chunk-N3GBABZB.js";import{a as Ie}from"./chunk-INMFVRL6.js";import{a as fe}from"./chunk-ZUGIRXAF.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as Q}from"./chunk-O2MZ5CAQ.js";import{a as Pe,d as De}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as k,g as Y,k as Re,o as Z,v as Me}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import{a as $e}from"./chunk-BSZZLSIX.js";import{pa as J,sa as H}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as P,Bb as D,Cb as t,Db as n,Eb as s,Fb as x,Gb as b,Ib as j,Ob as T,Pb as A,Qb as r,Ra as i,Rb as p,Sb as F,Tb as y,Ub as R,Vb as E,Ya as L,_ as f,eb as I,fa as z,ga as V,hc as u,ic as M,jc as q,kb as O,lc as Ne,q as $,sa as W,tb as v,vb as S,vc as d,wc as c,xc as C,yb as g,zb as N}from"./chunk-VGQ6X3AL.js";import{a as w}from"./chunk-C6Q5SG76.js";function be(o,a){o&1&&s(0,"spk-progress-bar",31)}function Be(o,a){o&1&&s(0,"div",34)}function he(o,a){o&1&&s(0,"div",35)}function Ke(o,a){o&1&&s(0,"div",36)}function Ue(o,a){if(o&1&&u(0),o&2){let e=E().$implicit;q(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function Xe(o,a){if(o&1&&(t(0,"details",45)(1,"summary"),T(2,15),s(3,"spk-icon"),t(4,"div",46),s(5,"spk-icon",39),n(),A(),n(),t(6,"div",47)(7,"p"),r(8,16),d(9,"date"),n(),t(10,"p"),r(11,17),d(12,"date"),n(),t(13,"p"),r(14,18),d(15,"durationFormat"),n(),t(16,"p"),r(17,19),n(),s(18,"spk-divider"),t(19,"p"),r(20,20),n(),t(21,"p"),r(22,21),n()()(),t(23,"details",45)(24,"summary")(25,"spk-icon"),u(26,"file-archive"),n(),u(27," Compression phase "),t(28,"div",46)(29,"spk-icon",39),u(30,"caret-down"),n()()(),t(31,"div",47)(32,"p"),r(33,22),d(34,"date"),n(),t(35,"p"),r(36,23),d(37,"date"),n(),t(38,"p"),r(39,24),d(40,"durationFormat"),n(),s(41,"spk-divider"),t(42,"p"),r(43,25),d(44,"bytes"),n(),t(45,"p"),r(46,26),d(47,"bytes"),n(),t(48,"p"),r(49,27),d(50,"bytes"),n(),s(51,"spk-divider"),t(52,"p"),r(53,28),n(),t(54,"p"),r(55,29),n()()()),o&2){let e=E(2).$implicit;i(9),p(C(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),F(8),i(3),p(C(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),F(11),i(3),p(c(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),F(14),i(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),F(17),i(3),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),F(20),i(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),F(22),i(12),p(C(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),F(33),i(3),p(C(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),F(36),i(3),p(c(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),F(39),i(4),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(c(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),F(43),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(c(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),F(46),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(c(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),F(49),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),F(53),i(2),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),F(55)}}function we(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function ze(o,a){if(o&1&&(t(0,"details",45)(1,"summary"),T(2,30),s(3,"spk-icon"),t(4,"div",46),s(5,"spk-icon",39),n(),A(),n(),t(6,"div",47),P(7,we,3,3,"code",null,N),n()()),o&2){let e=E(2).$implicit;i(5),p(e.data.VerificationsActualLength),F(2),i(2),D(e.data.Verifications)}}function Ve(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function We(o,a){o&1&&(t(0,"p"),u(1,"No errors"),n())}function je(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function qe(o,a){if(o&1&&(t(0,"section",40)(1,"app-toggle-card",41),x(2,42),t(3,"h3"),r(4,0),n(),b(),x(5,43),t(6,"p"),r(7,1),d(8,"date"),n(),t(9,"p"),r(10,2),d(11,"date"),n(),t(12,"p"),r(13,3),d(14,"durationFormat"),n(),b(),n(),t(15,"app-toggle-card",41),x(16,42),t(17,"h3"),r(18,4),n(),b(),x(19,43),t(20,"p"),r(21,5),d(22,"bytes"),n(),t(23,"p"),r(24,6),d(25,"bytes"),n(),t(26,"p"),r(27,7),d(28,"bytes"),n(),t(29,"p"),r(30,8),d(31,"bytes"),n(),t(32,"p"),r(33,9),n(),t(34,"p"),r(35,10),n(),t(36,"p"),r(37,11),n(),b(),n(),t(38,"div",44),s(39,"spk-divider"),O(40,Xe,56,39)(41,ze,9,1,"details",45),t(42,"details",45)(43,"summary"),T(44,12),s(45,"spk-icon"),t(46,"div",46),s(47,"spk-icon",39),n(),A(),n(),t(48,"div",47),P(49,Ve,3,3,"code",null,N),n()(),t(51,"details",45)(52,"summary"),T(53,13),s(54,"spk-icon"),t(55,"div",46),s(56,"spk-icon",39),n(),A(),n(),t(57,"div",47),O(58,We,2,0,"p"),P(59,je,3,3,"code",null,N),n()(),s(61,"spk-divider"),t(62,"details")(63,"summary"),T(64,14),s(65,"spk-icon"),t(66,"div",46),s(67,"spk-icon",39),n(),A(),n(),t(68,"code")(69,"button",48),u(70,"Copy"),n(),u(71),d(72,"json"),n()()()()),o&2){let e=E().$implicit;i(),v("disallowToggle",!0),i(7),p(C(8,22,e.data==null?null:e.data.BeginTime,"medium")),F(7),i(3),p(C(11,25,e.data==null?null:e.data.EndTime,"medium")),F(10),i(3),p(c(14,28,e.data==null?null:e.data.Duration)),F(13),i(),v("disallowToggle",!0),i(7),p(e.data==null?null:e.data.ExaminedFiles)(c(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),F(21),i(3),p(e.data==null?null:e.data.OpenedFiles)(c(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),F(24),i(3),p(e.data==null?null:e.data.AddedFiles)(c(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),F(27),i(3),p(e.data==null?null:e.data.ModifiedFiles)(c(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),F(30),i(2),p(e.data==null?null:e.data.DeletedFiles),F(33),i(2),p(e.data==null?null:e.data.TooLargeFiles),F(35),i(2),p(e.data==null?null:e.data.FilesWithError),F(37),i(3),g((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),i(),g((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),i(6),p(e.data==null?null:e.data.WarningsActualLength),F(44),i(2),D(e.data==null?null:e.data.Warnings),i(7),p(e.data==null?null:e.data.ErrorsActualLength),F(53),i(2),g((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),i(),D(e.data==null?null:e.data.Errors),i(12),q(" ",c(72,38,e.data)," ")}}function Je(o,a){if(o&1){let e=j();t(0,"article",32)(1,"header",33),R("click",function(){let m=z(e).$implicit,G=E();return V(G.toggleOpenEntry(m.id))}),O(2,Be,1,0,"div",34)(3,he,1,0,"div",35)(4,Ke,1,0,"div",36),t(5,"h3"),u(6),d(7,"date"),n(),t(8,"p"),u(9),O(10,Ue,1,1),n(),s(11,"div",37),t(12,"div",38)(13,"spk-icon",39),u(14,"caret-down"),n()()(),O(15,qe,73,40,"section",40),n()}if(o&2){let e=a.$implicit,l=E();i(2),g(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),i(4),M(C(7,7,e.timestamp,"medium")),i(3),q(" ",e.data==null?null:e.data.MainOperation," "),i(),g(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),i(3),S("open",e.id===l.openEntry()),i(2),g(e.id===l.openEntry()?15:-1)}}var ne=class o{#e=f(Q);backupId=W.required();openEntry=L(null);pagination=L({offset:0,pagesize:100});resource=ee({request:()=>w({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe($(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let m;m=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let G;G=$localize`Source files`;let oe;oe=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let ae;ae=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let le;le=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let _e;_e=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let re;re=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let se;se=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let pe;pe=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let B;B=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,B=y(B);let h;h=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,h=y(h);let K;K=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,K=y(K);let U;U=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,U=y(U);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ue;ue=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ce;ce=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Te;Te=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ae;Ae=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Se;Se=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let X;return X=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,X=y(X),[a,e,l,m,G,oe,ae,le,_e,re,se,pe,B,h,K,U,Fe,de,ue,ce,ge,Ee,me,Oe,Ce,Le,Te,Ae,Ge,Se,X,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(O(0,be,1,0,"spk-progress-bar",31),P(1,Je,16,10,"article",32,N)),e&2&&(g(l.resource.isLoading()?0:-1),i(),D(l.resource.value()))},dependencies:[ye,Re,Z,Y,k,$e,J,Ie,H],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--warn-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--tertiary-500)}"],changeDetection:0})};function He(o,a){o&1&&s(0,"spk-progress-bar",0)}function Qe(o,a){if(o&1&&(t(0,"section",5)(1,"code"),u(2),d(3,"json"),n()()),o&2){let e=E().$implicit;i(2),M(c(3,1,e.data))}}function Ye(o,a){if(o&1){let e=j();t(0,"article",1)(1,"header",2),R("click",function(){let m=z(e).$implicit,G=E();return V(G.toggleOpenEntry(m.id))}),t(2,"h3"),u(3),d(4,"date"),n(),t(5,"div",3)(6,"spk-icon",4),u(7,"caret-down"),n()()(),O(8,Qe,4,3,"section",5),n()}if(o&2){let e=a.$implicit,l=E();i(3),Ne("",C(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),i(3),S("open",e.id===l.openEntry()),i(2),g(e.id===l.openEntry()?8:-1)}}var te=class o{#e=f(Q);backupId=W.required();openEntry=L(null);pagination=L({offset:0,pagesize:100});resource=ee({request:()=>w({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe($(e=>(console.log(e),e.map((l,m)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null})))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(O(0,He,1,0,"spk-progress-bar",0),P(1,Ye,9,9,"article",1,N)),e&2&&(g(l.resource.isLoading()?0:-1),i(),D(l.resource.value()))},dependencies:[H,Z,k,J],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function Ze(o,a){if(o&1&&s(0,"app-general-log",7),o&2){let e=E();v("backupId",e.backupId())}}function en(o,a){if(o&1&&s(0,"app-remote-log",7),o&2){let e=E();v("backupId",e.backupId())}}var ie=class o{#e=f(Pe);backupId=ve(this.#e.params.pipe($(a=>a.id)));activeTab=L("general");static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-log"]],decls:13,vars:6,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;return l=$localize` Destination `,[a,e,l,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"primary"],["tab","",3,"click"],[3,"backupId"]]},template:function(e,l){e&1&&(s(0,"app-status-bar"),t(1,"section")(2,"div",3)(3,"button",4),T(4,0),s(5,"spk-icon"),A(),n()(),t(6,"spk-tabs",5)(7,"button",6),R("click",function(){return l.activeTab.set("general")}),r(8,1),n(),t(9,"button",6),R("click",function(){return l.activeTab.set("destination")}),r(10,2),n()(),O(11,Ze,1,1,"app-general-log",7)(12,en,1,1,"app-remote-log",7),n()),e&2&&(i(7),S("active",l.activeTab()==="general"),i(2),S("active",l.activeTab()==="destination"),i(2),g(l.activeTab()==="general"?11:-1),i(),g(l.activeTab()==="destination"?12:-1))},dependencies:[Me,ne,te,De,fe,k,Y],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0})};export{ie as default};
|
|
1
|
+
import{a as ye}from"./chunk-B6UDSTOM.js";import{b as ve,c as ee}from"./chunk-N3GBABZB.js";import{a as Ie}from"./chunk-INMFVRL6.js";import{a as fe}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as Q}from"./chunk-O2MZ5CAQ.js";import{a as Pe,d as De}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as k,g as Y,k as Re,o as Z,v as Me}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import{a as $e}from"./chunk-BSZZLSIX.js";import{pa as J,sa as H}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as P,Bb as D,Cb as t,Db as n,Eb as s,Fb as x,Gb as b,Ib as j,Ob as T,Pb as A,Qb as r,Ra as i,Rb as p,Sb as F,Tb as y,Ub as R,Vb as E,Ya as L,_ as f,eb as I,fa as z,ga as V,hc as u,ic as M,jc as q,kb as O,lc as Ne,q as $,sa as W,tb as v,vb as S,vc as d,wc as c,xc as C,yb as g,zb as N}from"./chunk-VGQ6X3AL.js";import{a as w}from"./chunk-C6Q5SG76.js";function be(o,a){o&1&&s(0,"spk-progress-bar",31)}function Be(o,a){o&1&&s(0,"div",34)}function he(o,a){o&1&&s(0,"div",35)}function Ke(o,a){o&1&&s(0,"div",36)}function Ue(o,a){if(o&1&&u(0),o&2){let e=E().$implicit;q(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function Xe(o,a){if(o&1&&(t(0,"details",45)(1,"summary"),T(2,15),s(3,"spk-icon"),t(4,"div",46),s(5,"spk-icon",39),n(),A(),n(),t(6,"div",47)(7,"p"),r(8,16),d(9,"date"),n(),t(10,"p"),r(11,17),d(12,"date"),n(),t(13,"p"),r(14,18),d(15,"durationFormat"),n(),t(16,"p"),r(17,19),n(),s(18,"spk-divider"),t(19,"p"),r(20,20),n(),t(21,"p"),r(22,21),n()()(),t(23,"details",45)(24,"summary")(25,"spk-icon"),u(26,"file-archive"),n(),u(27," Compression phase "),t(28,"div",46)(29,"spk-icon",39),u(30,"caret-down"),n()()(),t(31,"div",47)(32,"p"),r(33,22),d(34,"date"),n(),t(35,"p"),r(36,23),d(37,"date"),n(),t(38,"p"),r(39,24),d(40,"durationFormat"),n(),s(41,"spk-divider"),t(42,"p"),r(43,25),d(44,"bytes"),n(),t(45,"p"),r(46,26),d(47,"bytes"),n(),t(48,"p"),r(49,27),d(50,"bytes"),n(),s(51,"spk-divider"),t(52,"p"),r(53,28),n(),t(54,"p"),r(55,29),n()()()),o&2){let e=E(2).$implicit;i(9),p(C(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),F(8),i(3),p(C(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),F(11),i(3),p(c(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),F(14),i(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),F(17),i(3),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),F(20),i(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),F(22),i(12),p(C(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),F(33),i(3),p(C(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),F(36),i(3),p(c(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),F(39),i(4),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(c(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),F(43),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(c(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),F(46),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(c(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),F(49),i(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),F(53),i(2),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),F(55)}}function we(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function ze(o,a){if(o&1&&(t(0,"details",45)(1,"summary"),T(2,30),s(3,"spk-icon"),t(4,"div",46),s(5,"spk-icon",39),n(),A(),n(),t(6,"div",47),P(7,we,3,3,"code",null,N),n()()),o&2){let e=E(2).$implicit;i(5),p(e.data.VerificationsActualLength),F(2),i(2),D(e.data.Verifications)}}function Ve(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function We(o,a){o&1&&(t(0,"p"),u(1,"No errors"),n())}function je(o,a){if(o&1&&(t(0,"code"),u(1),d(2,"json"),n()),o&2){let e=a.$implicit;i(),M(c(2,1,e))}}function qe(o,a){if(o&1&&(t(0,"section",40)(1,"app-toggle-card",41),x(2,42),t(3,"h3"),r(4,0),n(),b(),x(5,43),t(6,"p"),r(7,1),d(8,"date"),n(),t(9,"p"),r(10,2),d(11,"date"),n(),t(12,"p"),r(13,3),d(14,"durationFormat"),n(),b(),n(),t(15,"app-toggle-card",41),x(16,42),t(17,"h3"),r(18,4),n(),b(),x(19,43),t(20,"p"),r(21,5),d(22,"bytes"),n(),t(23,"p"),r(24,6),d(25,"bytes"),n(),t(26,"p"),r(27,7),d(28,"bytes"),n(),t(29,"p"),r(30,8),d(31,"bytes"),n(),t(32,"p"),r(33,9),n(),t(34,"p"),r(35,10),n(),t(36,"p"),r(37,11),n(),b(),n(),t(38,"div",44),s(39,"spk-divider"),O(40,Xe,56,39)(41,ze,9,1,"details",45),t(42,"details",45)(43,"summary"),T(44,12),s(45,"spk-icon"),t(46,"div",46),s(47,"spk-icon",39),n(),A(),n(),t(48,"div",47),P(49,Ve,3,3,"code",null,N),n()(),t(51,"details",45)(52,"summary"),T(53,13),s(54,"spk-icon"),t(55,"div",46),s(56,"spk-icon",39),n(),A(),n(),t(57,"div",47),O(58,We,2,0,"p"),P(59,je,3,3,"code",null,N),n()(),s(61,"spk-divider"),t(62,"details")(63,"summary"),T(64,14),s(65,"spk-icon"),t(66,"div",46),s(67,"spk-icon",39),n(),A(),n(),t(68,"code")(69,"button",48),u(70,"Copy"),n(),u(71),d(72,"json"),n()()()()),o&2){let e=E().$implicit;i(),v("disallowToggle",!0),i(7),p(C(8,22,e.data==null?null:e.data.BeginTime,"medium")),F(7),i(3),p(C(11,25,e.data==null?null:e.data.EndTime,"medium")),F(10),i(3),p(c(14,28,e.data==null?null:e.data.Duration)),F(13),i(),v("disallowToggle",!0),i(7),p(e.data==null?null:e.data.ExaminedFiles)(c(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),F(21),i(3),p(e.data==null?null:e.data.OpenedFiles)(c(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),F(24),i(3),p(e.data==null?null:e.data.AddedFiles)(c(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),F(27),i(3),p(e.data==null?null:e.data.ModifiedFiles)(c(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),F(30),i(2),p(e.data==null?null:e.data.DeletedFiles),F(33),i(2),p(e.data==null?null:e.data.TooLargeFiles),F(35),i(2),p(e.data==null?null:e.data.FilesWithError),F(37),i(3),g((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),i(),g((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),i(6),p(e.data==null?null:e.data.WarningsActualLength),F(44),i(2),D(e.data==null?null:e.data.Warnings),i(7),p(e.data==null?null:e.data.ErrorsActualLength),F(53),i(2),g((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),i(),D(e.data==null?null:e.data.Errors),i(12),q(" ",c(72,38,e.data)," ")}}function Je(o,a){if(o&1){let e=j();t(0,"article",32)(1,"header",33),R("click",function(){let m=z(e).$implicit,G=E();return V(G.toggleOpenEntry(m.id))}),O(2,Be,1,0,"div",34)(3,he,1,0,"div",35)(4,Ke,1,0,"div",36),t(5,"h3"),u(6),d(7,"date"),n(),t(8,"p"),u(9),O(10,Ue,1,1),n(),s(11,"div",37),t(12,"div",38)(13,"spk-icon",39),u(14,"caret-down"),n()()(),O(15,qe,73,40,"section",40),n()}if(o&2){let e=a.$implicit,l=E();i(2),g(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),i(4),M(C(7,7,e.timestamp,"medium")),i(3),q(" ",e.data==null?null:e.data.MainOperation," "),i(),g(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),i(3),S("open",e.id===l.openEntry()),i(2),g(e.id===l.openEntry()?15:-1)}}var ne=class o{#e=f(Q);backupId=W.required();openEntry=L(null);pagination=L({offset:0,pagesize:100});resource=ee({request:()=>w({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe($(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let m;m=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let G;G=$localize`Source files`;let oe;oe=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let ae;ae=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let le;le=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let _e;_e=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let re;re=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let se;se=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let pe;pe=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let B;B=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,B=y(B);let h;h=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,h=y(h);let K;K=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,K=y(K);let U;U=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,U=y(U);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ue;ue=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ce;ce=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Te;Te=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ae;Ae=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Se;Se=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let X;return X=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,X=y(X),[a,e,l,m,G,oe,ae,le,_e,re,se,pe,B,h,K,U,Fe,de,ue,ce,ge,Ee,me,Oe,Ce,Le,Te,Ae,Ge,Se,X,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(O(0,be,1,0,"spk-progress-bar",31),P(1,Je,16,10,"article",32,N)),e&2&&(g(l.resource.isLoading()?0:-1),i(),D(l.resource.value()))},dependencies:[ye,Re,Z,Y,k,$e,J,Ie,H],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--warn-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--tertiary-500)}"],changeDetection:0})};function He(o,a){o&1&&s(0,"spk-progress-bar",0)}function Qe(o,a){if(o&1&&(t(0,"section",5)(1,"code"),u(2),d(3,"json"),n()()),o&2){let e=E().$implicit;i(2),M(c(3,1,e.data))}}function Ye(o,a){if(o&1){let e=j();t(0,"article",1)(1,"header",2),R("click",function(){let m=z(e).$implicit,G=E();return V(G.toggleOpenEntry(m.id))}),t(2,"h3"),u(3),d(4,"date"),n(),t(5,"div",3)(6,"spk-icon",4),u(7,"caret-down"),n()()(),O(8,Qe,4,3,"section",5),n()}if(o&2){let e=a.$implicit,l=E();i(3),Ne("",C(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),i(3),S("open",e.id===l.openEntry()),i(2),g(e.id===l.openEntry()?8:-1)}}var te=class o{#e=f(Q);backupId=W.required();openEntry=L(null);pagination=L({offset:0,pagesize:100});resource=ee({request:()=>w({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe($(e=>(console.log(e),e.map((l,m)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null})))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(O(0,He,1,0,"spk-progress-bar",0),P(1,Ye,9,9,"article",1,N)),e&2&&(g(l.resource.isLoading()?0:-1),i(),D(l.resource.value()))},dependencies:[H,Z,k,J],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function Ze(o,a){if(o&1&&s(0,"app-general-log",7),o&2){let e=E();v("backupId",e.backupId())}}function en(o,a){if(o&1&&s(0,"app-remote-log",7),o&2){let e=E();v("backupId",e.backupId())}}var ie=class o{#e=f(Pe);backupId=ve(this.#e.params.pipe($(a=>a.id)));activeTab=L("general");static \u0275fac=function(e){return new(e||o)};static \u0275cmp=I({type:o,selectors:[["app-log"]],decls:13,vars:6,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;return l=$localize` Destination `,[a,e,l,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"primary"],["tab","",3,"click"],[3,"backupId"]]},template:function(e,l){e&1&&(s(0,"app-status-bar"),t(1,"section")(2,"div",3)(3,"button",4),T(4,0),s(5,"spk-icon"),A(),n()(),t(6,"spk-tabs",5)(7,"button",6),R("click",function(){return l.activeTab.set("general")}),r(8,1),n(),t(9,"button",6),R("click",function(){return l.activeTab.set("destination")}),r(10,2),n()(),O(11,Ze,1,1,"app-general-log",7)(12,en,1,1,"app-remote-log",7),n()),e&2&&(i(7),S("active",l.activeTab()==="general"),i(2),S("active",l.activeTab()==="destination"),i(2),g(l.activeTab()==="general"?11:-1),i(),g(l.activeTab()==="destination"?12:-1))},dependencies:[Me,ne,te,De,fe,k,Y],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0})};export{ie as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{q as U}from"./chunk-JWZZL2QQ.js";import{a as Ve}from"./chunk-5NMYYKKU.js";import{a as Le}from"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as R}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as ve}from"./chunk-ZUGIRXAF.js";import"./chunk-GE3T3AG3.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,k as Fe,l as ge,m as Ne,o as Te,p as Se,r as ke}from"./chunk-OROSSCXB.js";import{a as pe,b as _e}from"./chunk-O2MZ5CAQ.js";import{a as le,c as re,d as me}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as Ee,g as Me,i as xe,k as De,l as Ie,n as Oe,o as Ae,q as $e,r as Pe,w as ye,x as we}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import{ia as ae}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as k,Bb as E,Cb as l,Db as o,Eb as s,Fb as $,Gb as P,Hb as Z,Ib as I,Mc as oe,Ob as y,Pb as w,Qb as M,Ra as a,Rb as B,Sb as G,Tb as J,Ub as O,Vb as m,Ya as h,Yb as N,Zb as Q,_ as A,_b as d,eb as j,fa as x,ga as D,gc as Y,hc as r,ic as v,jc as g,kb as u,qc as ee,sc as te,tb as p,tc as ne,vb as W,yb as C,yc as ie,zb as S}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var be=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),he=n=>({$implicit:n});function Be(n,i){n&1&&s(0,"spk-progress-bar",16)}function Ge(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Re(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",43),o()),n&2){let e=i.$implicit,t=i.$index;a(),Q("id","filter-",t,""),p("formControl",e)}}function Ue(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Ke(n,i){if(n&1){let e=I();y(0,12,1),l(1,"button",44,1),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.addNewOption(_))}),o(),w()}if(n&2){let e=i.$implicit;a(),B(e.name),G(0)}}function ze(n,i){n&1&&Z(0)}function Xe(n,i){if(n&1&&u(0,ze,1,0,"ng-container",45),n&2){let e=i.$implicit,t=i.$index;m();let _=Y(58);p("ngTemplateOutlet",_)("ngTemplateOutletContext",te(5,he,ne(2,be,t,e)))}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function He(n,i){if(n&1&&(l(0,"app-file-tree",48)(1,"label",54),r(2),u(3,qe,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function je(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"app-file-tree",49)(1,"label",54),r(2),u(3,je,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ze(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function Je(n,i){n&1&&(l(0,"spk-icon",57),r(1,"link"),o())}function Qe(n,i){n&1&&(l(0,"spk-icon",57),r(1,"textbox"),o())}function Ye(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Ze,3,1,"spk-tooltip",55),o(),s(4,"input",56),u(5,Je,2,0,"spk-icon",57)(6,Qe,2,0,"spk-icon",57),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function et(n,i){if(n&1){let e=I();l(0,"span",61),O("click",function(){x(e);let _=m(2).$implicit,f=m(2);return D(f.oauthStartTokenCreation(_.formViewType))}),r(1,"AuthID"),o()}}function tt(n,i){n&1&&(l(0,"spk-icon",57),r(1,"password"),o())}function nt(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye "),o()}}function it(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye-slash "),o()}}function ot(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),o(),s(3,"input",58),u(4,et,2,0,"span",59)(5,tt,2,0,"spk-icon",57)(6,nt,2,0,"spk-icon",60)(7,it,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),p("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function rt(n,i){if(n&1&&(l(0,"spk-select")(1,"label",54),r(2),u(3,at,3,1,"spk-tooltip",55),o(),s(4,"input",63),k(5,lt,2,2,"spk-option",20,S),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function mt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function pt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function _t(n,i){if(n&1&&(l(0,"div",50)(1,"label",54),r(2),u(3,mt,3,1,"spk-tooltip",55),o(),l(4,"div",64)(5,"spk-form-field"),s(6,"input",65),l(7,"spk-icon",57),r(8,"resize"),o()(),l(9,"spk-select"),s(10,"label")(11,"input",66),k(12,pt,2,2,"spk-option",20,S),o()()()),n&2){let e,t=m().$implicit,_=m(2);p("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(6),E(_.sizeOptions())}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,st,3,1,"spk-tooltip",55),o(),s(4,"input",67),l(5,"spk-icon",57),r(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ut(n,i){if(n&1&&(l(0,"spk-toggle",51)(1,"label",54),r(2),u(3,ct,3,1,"spk-tooltip",55),o(),s(4,"input",68),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ft(n,i){n&1&&(l(0,"spk-option",70),r(1,"None"),o()),n&2&&p("value","None")}function Ft(n,i){if(n&1&&(l(0,"spk-option",20),r(1),s(2,"spk-checkbox",71),o()),n&2){let e=m().$implicit;p("value",e),a(),g(" ",e," ")}}function gt(n,i){if(n&1&&u(0,ft,2,1,"spk-option",70)(1,Ft,3,2,"spk-option",20),n&2){let e=i.$implicit;C(e==="None"?0:1)}}function Nt(n,i){if(n&1&&(l(0,"spk-select",52)(1,"label",54),r(2),u(3,Ct,3,1,"spk-tooltip",55),o(),s(4,"input",69),k(5,gt,2,1,null,null,S),o()),n&2){let e,t=m().$implicit;p("selectMultiple",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function Tt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function St(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Tt,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function kt(n,i){if(n&1){let e=I();l(0,"div",46),$(1,47),u(2,He,5,14,"app-file-tree",48)(3,We,5,10,"app-file-tree",49)(4,Ye,7,10,"spk-form-field")(5,ot,8,11,"spk-form-field")(6,rt,7,9,"spk-select")(7,_t,14,9,"div",50)(8,dt,7,9,"spk-form-field")(9,ut,5,9,"spk-toggle",51)(10,Nt,7,7,"spk-select",52)(11,St,5,9,"spk-form-field"),P(),l(12,"button",53),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.removeFormView(_.formView,0))}),l(13,"spk-icon"),r(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),p("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Et(n,i){if(n&1){let e=I();l(0,"form",17)(1,"spk-select")(2,"label",18),M(3,3),o(),s(4,"input",19),k(5,Ge,2,2,"spk-option",20,S),o(),l(7,"spk-form-field")(8,"label",21),M(9,4),o(),s(10,"textarea",22),o(),l(11,"spk-form-field")(12,"label",23),M(13,5),o(),s(14,"textarea",24),o()(),l(15,"spk-divider"),M(16,6),o(),l(17,"form",17)(18,"spk-form-field")(19,"label",25),M(20,7),o(),s(21,"input",26),o(),l(22,"spk-form-field")(23,"label",27),M(24,8),o(),s(25,"input",28),o(),l(26,"app-toggle-card",29),$(27,30),M(28,9),P(),$(29,31),k(30,Re,2,3,"spk-form-field",null,S),P(),o()(),l(32,"form",17)(33,"div",32)(34,"div",33)(35,"spk-form-field")(36,"label",34),M(37,10),o(),s(38,"input",35),o(),l(39,"spk-select"),s(40,"input",36),k(41,Ue,2,2,"spk-option",20,S),o()(),l(43,"p"),y(44,11),s(45,"a",37),w(),o()(),l(46,"app-toggle-card",29),$(47,30),y(48,12),l(49,"spk-menu")(50,"button",38),s(51,"spk-icon"),o(),$(52,39),k(53,Ke,3,1,"button",40,S),P(),o(),w(),P(),k(55,Xe,1,7,"ng-container",null,S),o(),u(57,kt,15,2,"ng-template",null,0,ie),l(59,"div",41)(60,"button",42),O("click",function(){x(e);let _=m();return D(_.submit())}),y(61,13),s(62,"spk-icon"),w(),o()()()}if(n&2){let e=m();p("formGroup",e.baseCmdForm),a(5),E(e.commandOptions()),a(12),p("formGroup",e.standardFields),a(9),p("disallowToggle",!0),a(4),E(e.standardFields.controls.filters.controls),a(2),p("formGroup",e.optionsForm),a(9),E(e.sizeOptions()),a(5),p("disallowToggle",!0),a(7),E(e.nonSelectedOptions()),a(2),E(e.selectedOptions()),a(5),W("loader",e.isSubmitting()),a(2),B(e.baseCmdForm.value.command),G(61)}}var T=new Se,Mt=["Bytes","KB","MB","GB","TB","PB"],K=class n{#e=A(U);#t=A(_e);#n=A(re);#i=A(le);#o=A(pe);#a=R(this.#i.params);commandOptions=R(this.#o.getApiV1Commandline());sizeOptions=h(Mt);isSubmitting=h(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",_=i.arguments?.split(`
|
|
1
|
+
import{q as U}from"./chunk-JWZZL2QQ.js";import{a as Ve}from"./chunk-5NMYYKKU.js";import{a as Le}from"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as R}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as ve}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,k as Fe,l as ge,m as Ne,o as Te,p as Se,r as ke}from"./chunk-OROSSCXB.js";import{a as pe,b as _e}from"./chunk-O2MZ5CAQ.js";import{a as le,c as re,d as me}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as Ee,g as Me,i as xe,k as De,l as Ie,n as Oe,o as Ae,q as $e,r as Pe,w as ye,x as we}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import{ia as ae}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as k,Bb as E,Cb as l,Db as o,Eb as s,Fb as $,Gb as P,Hb as Z,Ib as I,Mc as oe,Ob as y,Pb as w,Qb as M,Ra as a,Rb as B,Sb as G,Tb as J,Ub as O,Vb as m,Ya as h,Yb as N,Zb as Q,_ as A,_b as d,eb as j,fa as x,ga as D,gc as Y,hc as r,ic as v,jc as g,kb as u,qc as ee,sc as te,tb as p,tc as ne,vb as W,yb as C,yc as ie,zb as S}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var be=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),he=n=>({$implicit:n});function Be(n,i){n&1&&s(0,"spk-progress-bar",16)}function Ge(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Re(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",43),o()),n&2){let e=i.$implicit,t=i.$index;a(),Q("id","filter-",t,""),p("formControl",e)}}function Ue(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Ke(n,i){if(n&1){let e=I();y(0,12,1),l(1,"button",44,1),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.addNewOption(_))}),o(),w()}if(n&2){let e=i.$implicit;a(),B(e.name),G(0)}}function ze(n,i){n&1&&Z(0)}function Xe(n,i){if(n&1&&u(0,ze,1,0,"ng-container",45),n&2){let e=i.$implicit,t=i.$index;m();let _=Y(58);p("ngTemplateOutlet",_)("ngTemplateOutletContext",te(5,he,ne(2,be,t,e)))}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function He(n,i){if(n&1&&(l(0,"app-file-tree",48)(1,"label",54),r(2),u(3,qe,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function je(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"app-file-tree",49)(1,"label",54),r(2),u(3,je,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ze(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function Je(n,i){n&1&&(l(0,"spk-icon",57),r(1,"link"),o())}function Qe(n,i){n&1&&(l(0,"spk-icon",57),r(1,"textbox"),o())}function Ye(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Ze,3,1,"spk-tooltip",55),o(),s(4,"input",56),u(5,Je,2,0,"spk-icon",57)(6,Qe,2,0,"spk-icon",57),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function et(n,i){if(n&1){let e=I();l(0,"span",61),O("click",function(){x(e);let _=m(2).$implicit,f=m(2);return D(f.oauthStartTokenCreation(_.formViewType))}),r(1,"AuthID"),o()}}function tt(n,i){n&1&&(l(0,"spk-icon",57),r(1,"password"),o())}function nt(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye "),o()}}function it(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye-slash "),o()}}function ot(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),o(),s(3,"input",58),u(4,et,2,0,"span",59)(5,tt,2,0,"spk-icon",57)(6,nt,2,0,"spk-icon",60)(7,it,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),p("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function rt(n,i){if(n&1&&(l(0,"spk-select")(1,"label",54),r(2),u(3,at,3,1,"spk-tooltip",55),o(),s(4,"input",63),k(5,lt,2,2,"spk-option",20,S),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function mt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function pt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function _t(n,i){if(n&1&&(l(0,"div",50)(1,"label",54),r(2),u(3,mt,3,1,"spk-tooltip",55),o(),l(4,"div",64)(5,"spk-form-field"),s(6,"input",65),l(7,"spk-icon",57),r(8,"resize"),o()(),l(9,"spk-select"),s(10,"label")(11,"input",66),k(12,pt,2,2,"spk-option",20,S),o()()()),n&2){let e,t=m().$implicit,_=m(2);p("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(6),E(_.sizeOptions())}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,st,3,1,"spk-tooltip",55),o(),s(4,"input",67),l(5,"spk-icon",57),r(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ut(n,i){if(n&1&&(l(0,"spk-toggle",51)(1,"label",54),r(2),u(3,ct,3,1,"spk-tooltip",55),o(),s(4,"input",68),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ft(n,i){n&1&&(l(0,"spk-option",70),r(1,"None"),o()),n&2&&p("value","None")}function Ft(n,i){if(n&1&&(l(0,"spk-option",20),r(1),s(2,"spk-checkbox",71),o()),n&2){let e=m().$implicit;p("value",e),a(),g(" ",e," ")}}function gt(n,i){if(n&1&&u(0,ft,2,1,"spk-option",70)(1,Ft,3,2,"spk-option",20),n&2){let e=i.$implicit;C(e==="None"?0:1)}}function Nt(n,i){if(n&1&&(l(0,"spk-select",52)(1,"label",54),r(2),u(3,Ct,3,1,"spk-tooltip",55),o(),s(4,"input",69),k(5,gt,2,1,null,null,S),o()),n&2){let e,t=m().$implicit;p("selectMultiple",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function Tt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function St(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Tt,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function kt(n,i){if(n&1){let e=I();l(0,"div",46),$(1,47),u(2,He,5,14,"app-file-tree",48)(3,We,5,10,"app-file-tree",49)(4,Ye,7,10,"spk-form-field")(5,ot,8,11,"spk-form-field")(6,rt,7,9,"spk-select")(7,_t,14,9,"div",50)(8,dt,7,9,"spk-form-field")(9,ut,5,9,"spk-toggle",51)(10,Nt,7,7,"spk-select",52)(11,St,5,9,"spk-form-field"),P(),l(12,"button",53),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.removeFormView(_.formView,0))}),l(13,"spk-icon"),r(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),p("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Et(n,i){if(n&1){let e=I();l(0,"form",17)(1,"spk-select")(2,"label",18),M(3,3),o(),s(4,"input",19),k(5,Ge,2,2,"spk-option",20,S),o(),l(7,"spk-form-field")(8,"label",21),M(9,4),o(),s(10,"textarea",22),o(),l(11,"spk-form-field")(12,"label",23),M(13,5),o(),s(14,"textarea",24),o()(),l(15,"spk-divider"),M(16,6),o(),l(17,"form",17)(18,"spk-form-field")(19,"label",25),M(20,7),o(),s(21,"input",26),o(),l(22,"spk-form-field")(23,"label",27),M(24,8),o(),s(25,"input",28),o(),l(26,"app-toggle-card",29),$(27,30),M(28,9),P(),$(29,31),k(30,Re,2,3,"spk-form-field",null,S),P(),o()(),l(32,"form",17)(33,"div",32)(34,"div",33)(35,"spk-form-field")(36,"label",34),M(37,10),o(),s(38,"input",35),o(),l(39,"spk-select"),s(40,"input",36),k(41,Ue,2,2,"spk-option",20,S),o()(),l(43,"p"),y(44,11),s(45,"a",37),w(),o()(),l(46,"app-toggle-card",29),$(47,30),y(48,12),l(49,"spk-menu")(50,"button",38),s(51,"spk-icon"),o(),$(52,39),k(53,Ke,3,1,"button",40,S),P(),o(),w(),P(),k(55,Xe,1,7,"ng-container",null,S),o(),u(57,kt,15,2,"ng-template",null,0,ie),l(59,"div",41)(60,"button",42),O("click",function(){x(e);let _=m();return D(_.submit())}),y(61,13),s(62,"spk-icon"),w(),o()()()}if(n&2){let e=m();p("formGroup",e.baseCmdForm),a(5),E(e.commandOptions()),a(12),p("formGroup",e.standardFields),a(9),p("disallowToggle",!0),a(4),E(e.standardFields.controls.filters.controls),a(2),p("formGroup",e.optionsForm),a(9),E(e.sizeOptions()),a(5),p("disallowToggle",!0),a(7),E(e.nonSelectedOptions()),a(2),E(e.selectedOptions()),a(5),W("loader",e.isSubmitting()),a(2),B(e.baseCmdForm.value.command),G(61)}}var T=new Se,Mt=["Bytes","KB","MB","GB","TB","PB"],K=class n{#e=A(U);#t=A(_e);#n=A(re);#i=A(le);#o=A(pe);#a=R(this.#i.params);commandOptions=R(this.#o.getApiV1Commandline());sizeOptions=h(Mt);isSubmitting=h(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",_=i.arguments?.split(`
|
|
2
2
|
`)??[],f=this.standardFields.value,V=f.filters??[],L=[i.command,t,..._,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...V.filter(c=>c).map(c=>c.startsWith("-")?`--exclude=${c?.slice(1)}`:`--include=${c}`),...this.#e.mapFormsToSettings().map(c=>c.Name.startsWith("--")?`${c.Name}=${c.Value}`:`--${c.Name}=${c.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:L}).subscribe(c=>{c.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",c.ID])})}mapBaseCmdToForm(i){let e=i.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:i.Sources?.join(`
|
|
3
3
|
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){console.log("option",i),this.#e.addOptionToFormGroup(i)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=j({type:n,selectors:[["app-commandline"]],features:[ee([U])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let t;t=$localize`Command`;let _;_=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let V;V=$localize`Advanced options`;let L;L=$localize`Backup ID`;let c;c=$localize`Backup Name`;let z;z=$localize`Filters`;let X;X=$localize`Remote volume size`;let q;q=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#45\uFFFD"}:START_LINK:Read more${"\uFFFD/#45\uFFFD"}:CLOSE_LINK:`;let b;b=$localize` Advanced options ${"\uFFFD#49\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#50\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#51\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#51\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#52\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*54:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*54:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SPK_MENU:`,b=J(b);let H;return H=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],i,t,_,f,V,L,c,z,X,q,b,H,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["for","command"],["type","text","id","command","formControlName","command"],[3,"value"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder",e,"formControlName","unit"],["href","#",1,"spk-primary"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){e&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",14)(3,"button",15),y(4,2),s(5,"spk-icon"),w(),o()(),u(6,Be,1,0,"spk-progress-bar",16)(7,Et,63,8),o()),e&2&&(a(6),C(t.finishedLoading()?7:6))},dependencies:[ve,Ve,Le,ke,Ce,de,fe,se,ce,ue,Fe,ge,Te,Ne,ae,me,Ie,Oe,Me,Pe,ye,$e,De,we,Ae,xe,Ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se,b as ae}from"./chunk-N3GBABZB.js";import{a as Z}from"./chunk-M27H5SJL.js";import{a as W}from"./chunk-PD4M6YP7.js";import{a as ht}from"./chunk-IHYJHBCC.js";import{a as st}from"./chunk-PIVMNQL6.js";import{a as Pt}from"./chunk-ZUGIRXAF.js";import"./chunk-GE3T3AG3.js";import{b as q,d as K,e as at,g as J,h as lt,l as rt,m as _t,o as ct,p as dt,q as Q,r as pt}from"./chunk-OROSSCXB.js";import{b as j}from"./chunk-O2MZ5CAQ.js";import{a as St,b as Tt,g as ut,k as gt,l as Y,o as mt,p as Ct,q as Et,r as Nt,w as ft,x as Mt}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as x,Bb as X,Cb as i,Db as o,Eb as O,F as ne,G as b,Ib as M,Kc as w,Lc as it,Mc as ot,N as y,Oa as Je,Ob as Ye,Pb as Ze,Qb as r,Ra as l,Rb as ie,Sb as oe,Tb as et,U as je,Ub as p,Vb as d,Xa as Qe,Ya as S,Yb as tt,_ as N,b as Ve,c as ze,ca as We,da as qe,eb as H,fa as T,ga as u,hc as h,ic as D,jc as V,k as Ue,ka as Ke,kb as R,l as k,mc as G,n as Be,nc as A,oc as $,q as He,r as te,rc as nt,tb as C,vb as E,yb as g,z as L,zb as F}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function Rt(s,t,e){!t&&qe(s);let n=t??N(Ke);return e?We(n,e):n}function le(...s){let{normalizedSources:t,hasInitValue:e,operator:n,options:a}=Gt(s),c=Rt(le,a?.injector);return e?ae(te(t).pipe(n),{initialValue:a.initialValue,injector:c}):ae(te(t).pipe(n),{injector:c,requireSync:!0})}function Gt(s){if(!s||!s.length||typeof s[0]!="object")throw new TypeError("derivedFrom needs sources");let t=typeof s[1]=="function";if(s.length==3&&!t)throw new TypeError("derivedFrom needs pipeable operator as a second argument");t||s.splice(1,0,Ve);let[e,n,a]=s,c=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((P,[m,f])=>{if(Qe(f))P[m]=se(f,{injector:a?.injector}).pipe(y(it(f)));else if(Be(f))P[m]=f.pipe(ne());else if(typeof f=="function"){let U=w(f);P[m]=se(U,{injector:a?.injector}).pipe(y(f()))}else P[m]=Ue(f).pipe(ne());return P},Array.isArray(e)?[]:{}),operator:n,hasInitValue:c,options:a}}var v=class s{#e=N(j);#i=N(W);repeatRegisterTimer=null;state=S("unknown");claimUrl=S(null);registerUrl=S("");status=w(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=ot(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=je({token:s,factory:s.\u0275fac,providedIn:"root"})};function bt(s,t){if(s&1){let e=M();i(0,"spk-form-field",10)(1,"input",11),$("ngModelChange",function(a){T(e);let c=d(2);return A(c.registerUrl,a)||(c.registerUrl=a),u(a)}),o()(),i(2,"button",12),p("click",function(){T(e);let a=d(2);return u(a.register())}),r(3,0),o()}if(s&2){let e=d(2);l(),G("ngModel",e.registerUrl)}}function wt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",13),h(4),o()()),s&2){let e=d(2);l(3),tt("href",e.claimUrl(),Je),l(),D(e.claimUrl())}}function vt(s,t){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function kt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.cancel())}),r(1,3),o()}}function Lt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.disable())}),r(1,4),o()}}function Ft(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.enable())}),r(1,5),o(),i(2,"button",14),p("click",function(){T(e);let a=d(2);return u(a.delete())}),r(3,6),o()}}function xt(s,t){if(s&1&&(i(0,"div",7),R(1,bt,4,1)(2,wt,5,2,"div",8)(3,vt,3,0,"div",8)(4,kt,2,0,"button",9)(5,Lt,2,0,"button",9)(6,Ft,4,0),o()),s&2){let e=d();l(),g(e.state()==="inactive"?1:-1),l(),g(e.state()==="registered"?2:-1),l(),g(e.state()==="registering"?3:-1),l(),g(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),g(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),g(e.state()==="disabled"?6:-1)}}var ee=class s{#e=N(v);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=H({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let I;I=$localize`Enable remote control`;let P;return P=$localize`Delete remote control setup`,[t,e,n,a,c,I,P,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(e,n){e&1&&R(0,xt,7,6,"div",7),e&2&&g(n.state()!=="unknown"?0:-1)},dependencies:[Q,q,K,J,Y],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Xt=()=>({standalone:!0});function Dt(s,t){s&1&&(i(0,"spk-icon",72),h(1,"check"),o())}function Vt(s,t){s&1&&(i(0,"spk-icon",73),h(1,"prohibit"),o())}function zt(s,t){if(s&1){let e=M();i(0,"button",77),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(1,34),o()}if(s&2){let e=d(2);E("loader",e.isUpdating())}}function Ut(s,t){if(s&1){let e=M();i(0,"spk-tooltip",76)(1,"button",78),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(2,35),o()()}if(s&2){let e=d(2);l(),E("loader",e.isUpdating()),C("disabled",!0)}}function Bt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",68),r(2,31),o(),i(3,"input",69),$("ngModelChange",function(a){T(e);let c=d();return A(c.passphrase,a)||(c.passphrase=a),u(a)}),o()(),i(4,"spk-form-field")(5,"label",70),r(6,32),o(),i(7,"input",71),$("ngModelChange",function(a){T(e);let c=d();return A(c.repeatPassphrase,a)||(c.repeatPassphrase=a),u(a)}),o(),R(8,Dt,2,0,"spk-icon",72)(9,Vt,2,0,"spk-icon",73),o(),i(10,"div",49)(11,"button",74),p("click",function(){T(e);let a=d();return u(a.cancelPasswordChange())}),r(12,33),o(),R(13,zt,2,2,"button",75)(14,Ut,3,3,"spk-tooltip",76),o()}if(s&2){let e=d();l(3),G("ngModel",e.passphrase),l(4),C("disabled",e.passphrase().length===0),G("ngModel",e.repeatPassphrase),l(),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),E("loader",e.isUpdating()),l(2),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Ht(s,t){s&1&&(i(0,"spk-icon",79),h(1,"check"),o())}function jt(s,t){if(s&1){let e=M();i(0,"div",49)(1,"button",74),p("click",function(){T(e);let a=d();return u(a.openPassphraseForm())}),r(2,36),o(),R(3,Ht,2,0,"spk-icon",79),o()}if(s&2){let e=d();l(3),g(e.passwordUpdated()?3:-1)}}function Wt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function qt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",80),r(2,37),o(),i(3,"textarea",81),$("ngModelChange",function(a){T(e);let c=d();return A(c.allowedHostnames,a)||(c.allowedHostnames=a),u(a)}),o()(),i(4,"spk-alert",82),r(5,38),o(),i(6,"button",77),p("click",function(){T(e);let a=d();return u(a.updateAllowedHostnames())}),r(7,39),o()}if(s&2){let e=d();l(3),G("ngModel",e.allowedHostnames),l(3),E("loader",e.updatingAllowedHosts())}}function Kt(s,t){if(s&1&&h(0),s&2){let e,n=d();V(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Jt(s,t){s&1&&O(0,"spk-progress-bar",55)}function Qt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e),l(),D(e)}}function Yt(s,t){if(s&1){let e=M();i(0,"spk-option",83),p("click",function(){let a=T(e).$implicit,c=d();return u(c.pauseSettings.controls.timeType.setValue(a.value))}),h(1),o()}if(s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function Zt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}var z=new dt,Ot=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],yt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],re=class s{#e=N(ht);#i=N(W);#t=N(j);#n=N(v);#o=N(st);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=S("list");langCtrl=S(this.#s);remoteControlStatus=this.#n.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});updatingChannel=S(!1);updateChannel=S("");setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(b(()=>this.updatingChannel.set(!1)),L(()=>(this.updateChannel.set(e),k(null)))).subscribe()}allowRemoteAccess=S(!1);allowedHostnames=S("");loadedAllowedHostnames=S("");updatingRemoteAccess=S(!1);updatingAllowedHosts=S(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(b(()=>this.updatingRemoteAccess.set(!1)),L(()=>(this.allowRemoteAccess.set(t),k(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(b(()=>this.updatingAllowedHosts.set(!1)),L(()=>(this.allowedHostnames.set(t),k(null)))).subscribe()}updatingDisableTrayIconLogin=S(!1);disableTrayIconLogin=S(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(b(()=>this.updatingDisableTrayIconLogin.set(!1)),L(()=>(this.disableTrayIconLogin.set(t),k(null)))).subscribe()}showPassphraseForm=S(!1);isUpdating=S(!1);passphrase=S("");repeatPassphrase=S("");passwordUpdated=S(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(b(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=w(()=>{let t=this.langCtrl();return t?Z.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())):Z});usageStatisticsOptions=S(yt);timeTypeOptions=S(Ot);timeOptions=le([this.pauseSettings.controls.timeType.valueChanges.pipe(y("s")),this.pauseSettings.controls.time.valueChanges.pipe(y(null))],ze(He(([t,e])=>{let n=this.#a(t);return e!==null?n.filter(a=>a.toString().includes(e.toString())):n}),y([])));#a(t){let e=t==="h"?25:61;return new Array(e).fill(0).map((n,a)=>a)}ngOnInit(){this.getServerSettings()}saveLocale(t){this.#o.setItem("locale",t),window.location.reload()}submit(){let t=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":t==="0s"?"":t}}).subscribe()}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:t=>{let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),c=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:c.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]}),this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"])}})}languageDisplay(){let t=this;return()=>{let e=t.langCtrl();return e?Z.find(n=>n.value===e)?.label??null:null}}typeDisplay(){let t=this;return()=>{let e=t.settingsForm.value.pauseSettings?.timeType;return e==null?null:Ot.find(n=>n.value===e)?.label??null}}usageDisplay(){let t=this;return()=>{let e=t.settingsForm.value.usageStatistics;return e==null?null:yt.find(n=>n.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=H({type:s,selectors:[["app-settings"]],decls:134,vars:36,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let a;a=$localize`Remote access control`;let c;c=$localize`Color theme`;let I;I=$localize`Customize your application theme`;let P;P=$localize`Passwords`;let m;m=$localize`Change server passphrase`;let f;f=$localize`Language`;let U;U=$localize`Select a language for the platform`;let _e;_e=$localize`Allow remote access (requires restart)`;let ce;ce=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let de;de=$localize`Allow remote access`;let pe;pe=$localize`Prevent tray icon automatic log-in`;let Se;Se=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Te;Te=$localize`Prevent tray icon automatic log-in`;let ue;ue=$localize`Update channel`;let ge;ge=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let me;me=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Stable`;let Ee;Ee=$localize`Official releases`;let Ne;Ne=$localize`Beta`;let fe;fe=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Me;Me=$localize` Experimental `;let he;he=$localize`Specific builds for developers only. Not for use with important data.`;let Pe;Pe=$localize`Canary`;let Re;Re=$localize`Individual builds for developers only. Not for use with important data.`;let Ie;Ie=$localize`Pause after startup or hibernation`;let Oe;Oe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let ye;ye=$localize`Usage statistics`;let B;B=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#126\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#126\uFFFD"}:CLOSE_LINK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,B=et(B);let Ge;Ge=$localize`Enter new password`;let Ae;Ae=$localize`Repeat password`;let $e;$e=$localize`Password have to be filled and have to match`;let be;be=$localize`Passphrase`;let we;we=$localize`Repeat passphrase`;let ve;ve=$localize`Cancel`;let ke;ke=$localize` Update passphrase `;let Le;Le=$localize` Update passphrase `;let Fe;Fe=$localize`Change password`;let xe;xe=$localize`Allowed hostnames`;let Xe;Xe=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let De;return De=$localize` Update allowed hostnames `,[t,e,n,a,c,I,P,m,f,U,_e,ce,de,pe,Se,Te,ue,ge,me,Ce,Ee,Ne,fe,Me,he,Pe,Re,Ie,Oe,ye,B,be,we,ve,ke,Le,Fe,xe,Xe,De,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ge,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Ae,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",$e,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,n){if(e&1&&(O(0,"app-status-bar"),i(1,"div",40)(2,"header")(3,"div",41)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()(),i(8,"button",42),r(9,2),o()(),i(10,"section")(11,"div",43)(12,"h3"),r(13,3),o(),i(14,"p"),h(15),o()(),i(16,"div",44),O(17,"app-remote-control"),o()(),i(18,"section")(19,"div",43)(20,"h3"),r(21,4),o(),i(22,"p"),r(23,5),o()(),i(24,"div",44)(25,"div",45)(26,"img",46),p("click",function(){return n.setLightMode()}),o(),i(27,"img",47),p("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",43)(30,"h3"),r(31,6),o(),i(32,"p"),r(33,7),o()(),i(34,"div",48),R(35,Bt,15,7)(36,jt,4,1,"div",49),o()(),i(37,"section")(38,"div",43)(39,"h3"),r(40,8),o(),i(41,"p"),r(42,9),o()(),i(43,"div",44)(44,"spk-select",50),p("change",function(c){return n.saveLocale(c)}),i(45,"input",51),$("ngModelChange",function(c){return A(n.langCtrl,c)||(n.langCtrl=c),c}),o(),x(46,Wt,2,2,"spk-option",52,F),o()()(),i(48,"section")(49,"div",43)(50,"h3"),r(51,10),o(),i(52,"p"),r(53,11),o()(),i(54,"div",53)(55,"spk-toggle",54),p("click",function(){return n.updateRemoteAccess()}),i(56,"label"),r(57,12),o()(),R(58,qt,8,3),o()(),i(59,"section")(60,"div",43)(61,"h3"),r(62,13),o(),i(63,"p"),r(64,14),o()(),i(65,"div",44)(66,"spk-toggle",54),p("click",function(){return n.saveDisableTrayIconLogin()}),i(67,"label"),r(68,15),o()()()(),i(69,"section")(70,"div",43)(71,"h3"),r(72,16),o(),i(73,"p"),R(74,Kt,1,1),o(),R(75,Jt,1,0,"spk-progress-bar",55),o(),i(76,"div",56)(77,"div",57),p("click",function(){return n.setNewChannel("")}),i(78,"spk-radio",58),r(79,17),o(),i(80,"p"),r(81,18),o()(),i(82,"div",57),p("click",function(){return n.setNewChannel("stable")}),i(83,"spk-radio",58),r(84,19),o(),i(85,"p"),r(86,20),o()(),i(87,"div",57),p("click",function(){return n.setNewChannel("beta")}),i(88,"spk-radio",58),r(89,21),o(),i(90,"p"),r(91,22),o()(),i(92,"div",57),p("click",function(){return n.setNewChannel("experimental")}),i(93,"spk-radio",58),r(94,23),o(),i(95,"p"),r(96,24),o()(),i(97,"div",57),p("click",function(){return n.setNewChannel("canary")}),i(98,"spk-radio",58),r(99,25),o(),i(100,"p"),r(101,26),o()()()()(),O(102,"spk-divider"),i(103,"form",59),p("submit",function(){return n.submit()}),i(104,"section")(105,"div",43)(106,"h3"),r(107,27),o(),i(108,"p"),r(109,28),o()(),i(110,"div",44)(111,"div",60)(112,"spk-select",61),O(113,"input",62),x(114,Qt,2,2,"spk-option",52,F),o(),i(116,"spk-select",63),O(117,"input",64),x(118,Yt,2,2,"spk-option",52,F),o()()()(),i(120,"section")(121,"div",43)(122,"h3"),r(123,29),o(),i(124,"p"),Ye(125,30),O(126,"a",65)(127,"br")(128,"br"),Ze(),o()(),i(129,"div",44)(130,"spk-select",66),O(131,"input",67),x(132,Zt,2,2,"spk-option",52,F),o()()()()),e&2){let a,c,I;l(8),C("disabled",n.settingsForm.untouched),l(7),D(n.remoteControlStatus()),l(11),E("active",!n.isDarkMode()),l(),E("active",n.isDarkMode()),l(8),g(n.showPassphraseForm()?35:36),l(9),C("displayFn",n.languageDisplay())("hideClearButton",!0),l(),G("ngModel",n.langCtrl),C("ngModelOptions",nt(35,Xt)),l(),X(n.languageOptions()),l(9),E("active",n.allowRemoteAccess()),l(3),g(n.allowRemoteAccess()?58:-1),l(8),E("active",n.disableTrayIconLogin()),l(8),g(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?74:-1),l(),g(n.updatingChannel()?75:-1),l(3),E("active",n.updateChannel()===""),l(),ie((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),oe(79),l(2),ie((I=n.sysinfo())==null?null:I.ServerVersionType),oe(81),l(2),E("active",n.updateChannel()==="stable"),l(5),E("active",n.updateChannel()==="beta"),l(5),E("active",n.updateChannel()==="experimental"),l(5),E("active",n.updateChannel()==="canary"),l(5),C("formGroup",n.settingsForm),l(9),C("hideClearButton",!0),l(2),X(n.timeOptions()),l(2),C("displayFn",n.typeDisplay())("hideClearButton",!0),l(2),X(n.timeTypeOptions()),l(12),C("displayFn",n.usageDisplay()),l(2),X(n.usageStatisticsOptions())}},dependencies:[Q,lt,q,K,at,J,pt,rt,ct,_t,Pt,ee,Et,ut,Ct,Nt,mt,ft,Mt,Y,St,gt,Tt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{re as default};
|
|
1
|
+
import{a as se,b as ae}from"./chunk-N3GBABZB.js";import{a as Z}from"./chunk-M27H5SJL.js";import{a as W}from"./chunk-PD4M6YP7.js";import{a as ht}from"./chunk-IHYJHBCC.js";import{a as st}from"./chunk-PIVMNQL6.js";import{a as Pt}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import{b as q,d as K,e as at,g as J,h as lt,l as rt,m as _t,o as ct,p as dt,q as Q,r as pt}from"./chunk-OROSSCXB.js";import{b as j}from"./chunk-O2MZ5CAQ.js";import{a as St,b as Tt,g as ut,k as gt,l as Y,o as mt,p as Ct,q as Et,r as Nt,w as ft,x as Mt}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as x,Bb as X,Cb as i,Db as o,Eb as O,F as ne,G as b,Ib as M,Kc as w,Lc as it,Mc as ot,N as y,Oa as Je,Ob as Ye,Pb as Ze,Qb as r,Ra as l,Rb as ie,Sb as oe,Tb as et,U as je,Ub as p,Vb as d,Xa as Qe,Ya as S,Yb as tt,_ as N,b as Ve,c as ze,ca as We,da as qe,eb as H,fa as T,ga as u,hc as h,ic as D,jc as V,k as Ue,ka as Ke,kb as R,l as k,mc as G,n as Be,nc as A,oc as $,q as He,r as te,rc as nt,tb as C,vb as E,yb as g,z as L,zb as F}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";function Rt(s,t,e){!t&&qe(s);let n=t??N(Ke);return e?We(n,e):n}function le(...s){let{normalizedSources:t,hasInitValue:e,operator:n,options:a}=Gt(s),c=Rt(le,a?.injector);return e?ae(te(t).pipe(n),{initialValue:a.initialValue,injector:c}):ae(te(t).pipe(n),{injector:c,requireSync:!0})}function Gt(s){if(!s||!s.length||typeof s[0]!="object")throw new TypeError("derivedFrom needs sources");let t=typeof s[1]=="function";if(s.length==3&&!t)throw new TypeError("derivedFrom needs pipeable operator as a second argument");t||s.splice(1,0,Ve);let[e,n,a]=s,c=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((P,[m,f])=>{if(Qe(f))P[m]=se(f,{injector:a?.injector}).pipe(y(it(f)));else if(Be(f))P[m]=f.pipe(ne());else if(typeof f=="function"){let U=w(f);P[m]=se(U,{injector:a?.injector}).pipe(y(f()))}else P[m]=Ue(f).pipe(ne());return P},Array.isArray(e)?[]:{}),operator:n,hasInitValue:c,options:a}}var v=class s{#e=N(j);#i=N(W);repeatRegisterTimer=null;state=S("unknown");claimUrl=S(null);registerUrl=S("");status=w(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=ot(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=je({token:s,factory:s.\u0275fac,providedIn:"root"})};function bt(s,t){if(s&1){let e=M();i(0,"spk-form-field",10)(1,"input",11),$("ngModelChange",function(a){T(e);let c=d(2);return A(c.registerUrl,a)||(c.registerUrl=a),u(a)}),o()(),i(2,"button",12),p("click",function(){T(e);let a=d(2);return u(a.register())}),r(3,0),o()}if(s&2){let e=d(2);l(),G("ngModel",e.registerUrl)}}function wt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",13),h(4),o()()),s&2){let e=d(2);l(3),tt("href",e.claimUrl(),Je),l(),D(e.claimUrl())}}function vt(s,t){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function kt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.cancel())}),r(1,3),o()}}function Lt(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.disable())}),r(1,4),o()}}function Ft(s,t){if(s&1){let e=M();i(0,"button",12),p("click",function(){T(e);let a=d(2);return u(a.enable())}),r(1,5),o(),i(2,"button",14),p("click",function(){T(e);let a=d(2);return u(a.delete())}),r(3,6),o()}}function xt(s,t){if(s&1&&(i(0,"div",7),R(1,bt,4,1)(2,wt,5,2,"div",8)(3,vt,3,0,"div",8)(4,kt,2,0,"button",9)(5,Lt,2,0,"button",9)(6,Ft,4,0),o()),s&2){let e=d();l(),g(e.state()==="inactive"?1:-1),l(),g(e.state()==="registered"?2:-1),l(),g(e.state()==="registering"?3:-1),l(),g(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),g(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),g(e.state()==="disabled"?6:-1)}}var ee=class s{#e=N(v);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=H({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let I;I=$localize`Enable remote control`;let P;return P=$localize`Delete remote control setup`,[t,e,n,a,c,I,P,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(e,n){e&1&&R(0,xt,7,6,"div",7),e&2&&g(n.state()!=="unknown"?0:-1)},dependencies:[Q,q,K,J,Y],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Xt=()=>({standalone:!0});function Dt(s,t){s&1&&(i(0,"spk-icon",72),h(1,"check"),o())}function Vt(s,t){s&1&&(i(0,"spk-icon",73),h(1,"prohibit"),o())}function zt(s,t){if(s&1){let e=M();i(0,"button",77),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(1,34),o()}if(s&2){let e=d(2);E("loader",e.isUpdating())}}function Ut(s,t){if(s&1){let e=M();i(0,"spk-tooltip",76)(1,"button",78),p("click",function(){T(e);let a=d(2);return u(a.updatePassphrase())}),r(2,35),o()()}if(s&2){let e=d(2);l(),E("loader",e.isUpdating()),C("disabled",!0)}}function Bt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",68),r(2,31),o(),i(3,"input",69),$("ngModelChange",function(a){T(e);let c=d();return A(c.passphrase,a)||(c.passphrase=a),u(a)}),o()(),i(4,"spk-form-field")(5,"label",70),r(6,32),o(),i(7,"input",71),$("ngModelChange",function(a){T(e);let c=d();return A(c.repeatPassphrase,a)||(c.repeatPassphrase=a),u(a)}),o(),R(8,Dt,2,0,"spk-icon",72)(9,Vt,2,0,"spk-icon",73),o(),i(10,"div",49)(11,"button",74),p("click",function(){T(e);let a=d();return u(a.cancelPasswordChange())}),r(12,33),o(),R(13,zt,2,2,"button",75)(14,Ut,3,3,"spk-tooltip",76),o()}if(s&2){let e=d();l(3),G("ngModel",e.passphrase),l(4),C("disabled",e.passphrase().length===0),G("ngModel",e.repeatPassphrase),l(),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),E("loader",e.isUpdating()),l(2),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Ht(s,t){s&1&&(i(0,"spk-icon",79),h(1,"check"),o())}function jt(s,t){if(s&1){let e=M();i(0,"div",49)(1,"button",74),p("click",function(){T(e);let a=d();return u(a.openPassphraseForm())}),r(2,36),o(),R(3,Ht,2,0,"spk-icon",79),o()}if(s&2){let e=d();l(3),g(e.passwordUpdated()?3:-1)}}function Wt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function qt(s,t){if(s&1){let e=M();i(0,"spk-form-field")(1,"label",80),r(2,37),o(),i(3,"textarea",81),$("ngModelChange",function(a){T(e);let c=d();return A(c.allowedHostnames,a)||(c.allowedHostnames=a),u(a)}),o()(),i(4,"spk-alert",82),r(5,38),o(),i(6,"button",77),p("click",function(){T(e);let a=d();return u(a.updateAllowedHostnames())}),r(7,39),o()}if(s&2){let e=d();l(3),G("ngModel",e.allowedHostnames),l(3),E("loader",e.updatingAllowedHosts())}}function Kt(s,t){if(s&1&&h(0),s&2){let e,n=d();V(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Jt(s,t){s&1&&O(0,"spk-progress-bar",55)}function Qt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e),l(),D(e)}}function Yt(s,t){if(s&1){let e=M();i(0,"spk-option",83),p("click",function(){let a=T(e).$implicit,c=d();return u(c.pauseSettings.controls.timeType.setValue(a.value))}),h(1),o()}if(s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}function Zt(s,t){if(s&1&&(i(0,"spk-option",52),h(1),o()),s&2){let e=t.$implicit;C("value",e.value),l(),V(" ",e.label," ")}}var z=new dt,Ot=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],yt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],re=class s{#e=N(ht);#i=N(W);#t=N(j);#n=N(v);#o=N(st);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=S("list");langCtrl=S(this.#s);remoteControlStatus=this.#n.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});updatingChannel=S(!1);updateChannel=S("");setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(b(()=>this.updatingChannel.set(!1)),L(()=>(this.updateChannel.set(e),k(null)))).subscribe()}allowRemoteAccess=S(!1);allowedHostnames=S("");loadedAllowedHostnames=S("");updatingRemoteAccess=S(!1);updatingAllowedHosts=S(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(b(()=>this.updatingRemoteAccess.set(!1)),L(()=>(this.allowRemoteAccess.set(t),k(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(b(()=>this.updatingAllowedHosts.set(!1)),L(()=>(this.allowedHostnames.set(t),k(null)))).subscribe()}updatingDisableTrayIconLogin=S(!1);disableTrayIconLogin=S(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(b(()=>this.updatingDisableTrayIconLogin.set(!1)),L(()=>(this.disableTrayIconLogin.set(t),k(null)))).subscribe()}showPassphraseForm=S(!1);isUpdating=S(!1);passphrase=S("");repeatPassphrase=S("");passwordUpdated=S(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(b(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=w(()=>{let t=this.langCtrl();return t?Z.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())):Z});usageStatisticsOptions=S(yt);timeTypeOptions=S(Ot);timeOptions=le([this.pauseSettings.controls.timeType.valueChanges.pipe(y("s")),this.pauseSettings.controls.time.valueChanges.pipe(y(null))],ze(He(([t,e])=>{let n=this.#a(t);return e!==null?n.filter(a=>a.toString().includes(e.toString())):n}),y([])));#a(t){let e=t==="h"?25:61;return new Array(e).fill(0).map((n,a)=>a)}ngOnInit(){this.getServerSettings()}saveLocale(t){this.#o.setItem("locale",t),window.location.reload()}submit(){let t=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":t==="0s"?"":t}}).subscribe()}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:t=>{let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),c=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:c.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]}),this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"])}})}languageDisplay(){let t=this;return()=>{let e=t.langCtrl();return e?Z.find(n=>n.value===e)?.label??null:null}}typeDisplay(){let t=this;return()=>{let e=t.settingsForm.value.pauseSettings?.timeType;return e==null?null:Ot.find(n=>n.value===e)?.label??null}}usageDisplay(){let t=this;return()=>{let e=t.settingsForm.value.usageStatistics;return e==null?null:yt.find(n=>n.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=H({type:s,selectors:[["app-settings"]],decls:134,vars:36,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let a;a=$localize`Remote access control`;let c;c=$localize`Color theme`;let I;I=$localize`Customize your application theme`;let P;P=$localize`Passwords`;let m;m=$localize`Change server passphrase`;let f;f=$localize`Language`;let U;U=$localize`Select a language for the platform`;let _e;_e=$localize`Allow remote access (requires restart)`;let ce;ce=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let de;de=$localize`Allow remote access`;let pe;pe=$localize`Prevent tray icon automatic log-in`;let Se;Se=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Te;Te=$localize`Prevent tray icon automatic log-in`;let ue;ue=$localize`Update channel`;let ge;ge=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let me;me=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Stable`;let Ee;Ee=$localize`Official releases`;let Ne;Ne=$localize`Beta`;let fe;fe=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Me;Me=$localize` Experimental `;let he;he=$localize`Specific builds for developers only. Not for use with important data.`;let Pe;Pe=$localize`Canary`;let Re;Re=$localize`Individual builds for developers only. Not for use with important data.`;let Ie;Ie=$localize`Pause after startup or hibernation`;let Oe;Oe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let ye;ye=$localize`Usage statistics`;let B;B=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#126\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#126\uFFFD"}:CLOSE_LINK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,B=et(B);let Ge;Ge=$localize`Enter new password`;let Ae;Ae=$localize`Repeat password`;let $e;$e=$localize`Password have to be filled and have to match`;let be;be=$localize`Passphrase`;let we;we=$localize`Repeat passphrase`;let ve;ve=$localize`Cancel`;let ke;ke=$localize` Update passphrase `;let Le;Le=$localize` Update passphrase `;let Fe;Fe=$localize`Change password`;let xe;xe=$localize`Allowed hostnames`;let Xe;Xe=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let De;return De=$localize` Update allowed hostnames `,[t,e,n,a,c,I,P,m,f,U,_e,ce,de,pe,Se,Te,ue,ge,me,Ce,Ee,Ne,fe,Me,he,Pe,Re,Ie,Oe,ye,B,be,we,ve,ke,Le,Fe,xe,Xe,De,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ge,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Ae,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",$e,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,n){if(e&1&&(O(0,"app-status-bar"),i(1,"div",40)(2,"header")(3,"div",41)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()(),i(8,"button",42),r(9,2),o()(),i(10,"section")(11,"div",43)(12,"h3"),r(13,3),o(),i(14,"p"),h(15),o()(),i(16,"div",44),O(17,"app-remote-control"),o()(),i(18,"section")(19,"div",43)(20,"h3"),r(21,4),o(),i(22,"p"),r(23,5),o()(),i(24,"div",44)(25,"div",45)(26,"img",46),p("click",function(){return n.setLightMode()}),o(),i(27,"img",47),p("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",43)(30,"h3"),r(31,6),o(),i(32,"p"),r(33,7),o()(),i(34,"div",48),R(35,Bt,15,7)(36,jt,4,1,"div",49),o()(),i(37,"section")(38,"div",43)(39,"h3"),r(40,8),o(),i(41,"p"),r(42,9),o()(),i(43,"div",44)(44,"spk-select",50),p("change",function(c){return n.saveLocale(c)}),i(45,"input",51),$("ngModelChange",function(c){return A(n.langCtrl,c)||(n.langCtrl=c),c}),o(),x(46,Wt,2,2,"spk-option",52,F),o()()(),i(48,"section")(49,"div",43)(50,"h3"),r(51,10),o(),i(52,"p"),r(53,11),o()(),i(54,"div",53)(55,"spk-toggle",54),p("click",function(){return n.updateRemoteAccess()}),i(56,"label"),r(57,12),o()(),R(58,qt,8,3),o()(),i(59,"section")(60,"div",43)(61,"h3"),r(62,13),o(),i(63,"p"),r(64,14),o()(),i(65,"div",44)(66,"spk-toggle",54),p("click",function(){return n.saveDisableTrayIconLogin()}),i(67,"label"),r(68,15),o()()()(),i(69,"section")(70,"div",43)(71,"h3"),r(72,16),o(),i(73,"p"),R(74,Kt,1,1),o(),R(75,Jt,1,0,"spk-progress-bar",55),o(),i(76,"div",56)(77,"div",57),p("click",function(){return n.setNewChannel("")}),i(78,"spk-radio",58),r(79,17),o(),i(80,"p"),r(81,18),o()(),i(82,"div",57),p("click",function(){return n.setNewChannel("stable")}),i(83,"spk-radio",58),r(84,19),o(),i(85,"p"),r(86,20),o()(),i(87,"div",57),p("click",function(){return n.setNewChannel("beta")}),i(88,"spk-radio",58),r(89,21),o(),i(90,"p"),r(91,22),o()(),i(92,"div",57),p("click",function(){return n.setNewChannel("experimental")}),i(93,"spk-radio",58),r(94,23),o(),i(95,"p"),r(96,24),o()(),i(97,"div",57),p("click",function(){return n.setNewChannel("canary")}),i(98,"spk-radio",58),r(99,25),o(),i(100,"p"),r(101,26),o()()()()(),O(102,"spk-divider"),i(103,"form",59),p("submit",function(){return n.submit()}),i(104,"section")(105,"div",43)(106,"h3"),r(107,27),o(),i(108,"p"),r(109,28),o()(),i(110,"div",44)(111,"div",60)(112,"spk-select",61),O(113,"input",62),x(114,Qt,2,2,"spk-option",52,F),o(),i(116,"spk-select",63),O(117,"input",64),x(118,Yt,2,2,"spk-option",52,F),o()()()(),i(120,"section")(121,"div",43)(122,"h3"),r(123,29),o(),i(124,"p"),Ye(125,30),O(126,"a",65)(127,"br")(128,"br"),Ze(),o()(),i(129,"div",44)(130,"spk-select",66),O(131,"input",67),x(132,Zt,2,2,"spk-option",52,F),o()()()()),e&2){let a,c,I;l(8),C("disabled",n.settingsForm.untouched),l(7),D(n.remoteControlStatus()),l(11),E("active",!n.isDarkMode()),l(),E("active",n.isDarkMode()),l(8),g(n.showPassphraseForm()?35:36),l(9),C("displayFn",n.languageDisplay())("hideClearButton",!0),l(),G("ngModel",n.langCtrl),C("ngModelOptions",nt(35,Xt)),l(),X(n.languageOptions()),l(9),E("active",n.allowRemoteAccess()),l(3),g(n.allowRemoteAccess()?58:-1),l(8),E("active",n.disableTrayIconLogin()),l(8),g(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?74:-1),l(),g(n.updatingChannel()?75:-1),l(3),E("active",n.updateChannel()===""),l(),ie((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),oe(79),l(2),ie((I=n.sysinfo())==null?null:I.ServerVersionType),oe(81),l(2),E("active",n.updateChannel()==="stable"),l(5),E("active",n.updateChannel()==="beta"),l(5),E("active",n.updateChannel()==="experimental"),l(5),E("active",n.updateChannel()==="canary"),l(5),C("formGroup",n.settingsForm),l(9),C("hideClearButton",!0),l(2),X(n.timeOptions()),l(2),C("displayFn",n.typeDisplay())("hideClearButton",!0),l(2),X(n.timeTypeOptions()),l(12),C("displayFn",n.usageDisplay()),l(2),X(n.usageStatisticsOptions())}},dependencies:[Q,lt,q,K,at,J,pt,rt,ct,_t,Pt,ee,Et,ut,Ct,Nt,mt,ft,Mt,Y,St,gt,Tt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as p}from"./chunk-O2MZ5CAQ.js";import{c as l}from"./chunk-J76HBC5J.js";import{D as e,G as a,Q as o,U as u,Ya as n,_ as r}from"./chunk-VGQ6X3AL.js";var c=class i{#s=r(l);#e=r(p);#t=n(null);#i=n(!1);token=this.#t.asReadonly();isLoggingOut=this.#i.asReadonly();login(t){return this.#e.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),o(s=>this.#t.set(s.AccessToken??null)))}refreshToken(){return this.#e.postApiV1AuthRefresh().pipe(e(1),o(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#i.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(e(1),a(()=>{this.#i.set(!1),this.#t.set(null),this.#s.navigate(["/login"])})).subscribe()}static \u0275fac=function(s){return new(s||i)};static \u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-4OETIYIQ.js";import{a as X}from"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import{b as L}from"./chunk-O2MZ5CAQ.js";import{d as E}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as R,g as f,h as k,k as G,o as w}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,_ as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,rc as g,sc as v,tb as u,yb as F,zb as N}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(X);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,G,R,w,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as W}from"./chunk-WCXAIVYX.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import{b as E}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as G}from"./chunk-
|
|
1
|
+
import{g as W}from"./chunk-WCXAIVYX.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import{b as E}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as G}from"./chunk-4OETIYIQ.js";import"./chunk-GE3T3AG3.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import{a as $,b as P,d as L,e as M}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{p as N,t as I}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Cb as o,Db as i,Eb as n,Mc as A,Ob as F,Pb as r,Ra as R,Vb as u,_ as T,eb as m,kb as f,rc as p,sc as l,tb as _,yb as C}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
package/index.html
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
<style>:root{--font-size:16px;font-size:var(--font-size)}html body{--sparkle-light:initial;--sparkle-dark: ;color-scheme:light dark;--primary-50:#eff6ff;--primary-rgb-50:239,246,255;--primary-contrast-50:var(--dark-primary-text);--primary-100:#dbeafe;--primary-rgb-100:219,234,254;--primary-contrast-100:var(--dark-primary-text);--primary-200:#bfdbfe;--primary-rgb-200:191,219,254;--primary-contrast-200:var(--dark-primary-text);--primary-300:#93c5fd;--primary-rgb-300:147,197,253;--primary-contrast-300:var(--dark-primary-text);--primary-400:#60a5fa;--primary-rgb-400:96,165,250;--primary-contrast-400:var(--dark-primary-text);--primary-500:#3b82f6;--primary-rgb-500:59,130,246;--primary-contrast-500:var(--light-primary-text);--primary-600:#2563eb;--primary-rgb-600:37,99,235;--primary-contrast-600:var(--light-primary-text);--primary-700:#1d4ed8;--primary-rgb-700:29,78,216;--primary-contrast-700:var(--light-primary-text);--primary-800:#1e40af;--primary-rgb-800:30,64,175;--primary-contrast-800:var(--light-primary-text);--primary-900:#1e3a8a;--primary-rgb-900:30,58,138;--primary-contrast-900:var(--light-primary-text);--primary-950:#172554;--primary-rgb-950:23,37,84;--primary-contrast-950:var(--light-primary-text);--accent-50:#f5f3ff;--accent-rgb-50:245,243,255;--accent-contrast-50:var(--dark-primary-text);--accent-100:#ede9fe;--accent-rgb-100:237,233,254;--accent-contrast-100:var(--dark-primary-text);--accent-200:#ddd6fe;--accent-rgb-200:221,214,254;--accent-contrast-200:var(--dark-primary-text);--accent-300:#c4b5fd;--accent-rgb-300:196,181,253;--accent-contrast-300:var(--dark-primary-text);--accent-400:#a78bfa;--accent-rgb-400:167,139,250;--accent-contrast-400:var(--dark-primary-text);--accent-500:#8b5cf6;--accent-rgb-500:139,92,246;--accent-contrast-500:var(--light-primary-text);--accent-600:#7c3aed;--accent-rgb-600:124,58,237;--accent-contrast-600:var(--light-primary-text);--accent-700:#6d28d9;--accent-rgb-700:109,40,217;--accent-contrast-700:var(--light-primary-text);--accent-800:#5b21b6;--accent-rgb-800:91,33,182;--accent-contrast-800:var(--light-primary-text);--accent-900:#4c1d95;--accent-rgb-900:76,29,149;--accent-contrast-900:var(--light-primary-text);--accent-950:#2e1065;--accent-rgb-950:46,16,101;--accent-contrast-950:var(--light-primary-text);--tertiary-50:#fffbeb;--tertiary-rgb-50:255,251,235;--tertiary-contrast-50:var(--dark-primary-text);--tertiary-100:#fef3c7;--tertiary-rgb-100:254,243,199;--tertiary-contrast-100:var(--dark-primary-text);--tertiary-200:#fde68a;--tertiary-rgb-200:253,230,138;--tertiary-contrast-200:var(--dark-primary-text);--tertiary-300:#fcd34d;--tertiary-rgb-300:252,211,77;--tertiary-contrast-300:var(--dark-primary-text);--tertiary-400:#fbbf24;--tertiary-rgb-400:251,191,36;--tertiary-contrast-400:var(--light-primary-text);--tertiary-500:#f59e0b;--tertiary-rgb-500:245,158,11;--tertiary-contrast-500:var(--light-primary-text);--tertiary-600:#d97706;--tertiary-rgb-600:217,119,6;--tertiary-contrast-600:var(--light-primary-text);--tertiary-700:#b45309;--tertiary-rgb-700:180,83,9;--tertiary-contrast-700:var(--light-primary-text);--tertiary-800:#92400e;--tertiary-rgb-800:146,64,14;--tertiary-contrast-800:var(--light-primary-text);--tertiary-900:#78350f;--tertiary-rgb-900:120,53,15;--tertiary-contrast-900:var(--light-primary-text);--tertiary-950:#451a03;--tertiary-rgb-950:69,26,3;--tertiary-contrast-950:var(--light-primary-text);--grey-50:#fafafa;--grey-rgb-50:250,250,250;--grey-contrast-50:var(--dark-primary-text);--grey-100:#f4f4f5;--grey-rgb-100:244,244,245;--grey-contrast-100:var(--dark-primary-text);--grey-200:#e4e4e7;--grey-rgb-200:228,228,231;--grey-contrast-200:var(--dark-primary-text);--grey-300:#d4d4d8;--grey-rgb-300:212,212,216;--grey-contrast-300:var(--dark-primary-text);--grey-400:#a1a1aa;--grey-rgb-400:161,161,170;--grey-contrast-400:var(--dark-primary-text);--grey-500:#71717a;--grey-rgb-500:113,113,122;--grey-contrast-500:var(--light-primary-text);--grey-600:#52525b;--grey-rgb-600:82,82,91;--grey-contrast-600:var(--light-primary-text);--grey-700:#3f3f46;--grey-rgb-700:63,63,70;--grey-contrast-700:var(--light-primary-text);--grey-750:#2f2f31;--grey-rgb-750:47,47,49;--grey-contrast-750:var(--light-primary-text);--grey-800:#27272a;--grey-rgb-800:39,39,42;--grey-contrast-800:var(--light-primary-text);--grey-900:#18181b;--grey-rgb-900:24,24,27;--grey-contrast-900:var(--light-primary-text);--grey-950:#09090b;--grey-rgb-950:9,9,11;--grey-contrast-950:var(--light-primary-text);--warn-50:#fef2f2;--warn-rgb-50:254,242,242;--warn-contrast-50:var(--dark-primary-text);--warn-100:#fee2e2;--warn-rgb-100:254,226,226;--warn-contrast-100:var(--dark-primary-text);--warn-200:#fecaca;--warn-rgb-200:254,202,202;--warn-contrast-200:var(--dark-primary-text);--warn-300:#fca5a5;--warn-rgb-300:252,165,165;--warn-contrast-300:var(--dark-primary-text);--warn-400:#f87171;--warn-rgb-400:248,113,113;--warn-contrast-400:var(--light-primary-text);--warn-500:#ef4444;--warn-rgb-500:239,68,68;--warn-contrast-500:var(--light-primary-text);--warn-600:#dc2626;--warn-rgb-600:220,38,38;--warn-contrast-600:var(--light-primary-text);--warn-700:#b91c1c;--warn-rgb-700:185,28,28;--warn-contrast-700:var(--light-primary-text);--warn-800:#991b1b;--warn-rgb-800:153,27,27;--warn-contrast-800:var(--light-primary-text);--warn-900:#7f1d1d;--warn-rgb-900:127,29,29;--warn-contrast-900:var(--light-primary-text);--warn-950:#450a0a;--warn-rgb-950:69,10,10;--warn-contrast-950:var(--light-primary-text);--success-50:#ecfdf5;--success-rgb-50:236,253,245;--success-contrast-50:var(--dark-primary-text);--success-100:#d1fae5;--success-rgb-100:209,250,229;--success-contrast-100:var(--dark-primary-text);--success-200:#a7f3d0;--success-rgb-200:167,243,208;--success-contrast-200:var(--dark-primary-text);--success-300:#6ee7b7;--success-rgb-300:110,231,183;--success-contrast-300:var(--dark-primary-text);--success-400:#34d399;--success-rgb-400:52,211,153;--success-contrast-400:var(--light-primary-text);--success-500:#10b981;--success-rgb-500:16,185,129;--success-contrast-500:var(--light-primary-text);--success-600:#059669;--success-rgb-600:5,150,105;--success-contrast-600:var(--light-primary-text);--success-700:#047857;--success-rgb-700:4,120,87;--success-contrast-700:var(--light-primary-text);--success-800:#065f46;--success-rgb-800:6,95,70;--success-contrast-800:var(--light-primary-text);--success-900:#064e3b;--success-rgb-900:6,78,59;--success-contrast-900:var(--light-primary-text);--success-950:#022c22;--success-rgb-950:2,44,34;--success-contrast-950:var(--light-primary-text);--display-10:600 5rem / normal Inter Tight, sans-serif;--display-20:600 4.5rem / normal Inter Tight, sans-serif;--display-30:600 4rem / normal Inter Tight, sans-serif;--display-40:600 3.5rem / normal Inter Tight, sans-serif;--display-50:600 3rem / normal Inter Tight, sans-serif;--title-10:500 2.5rem / normal Inter Tight, sans-serif;--title-20:500 2rem / normal Inter Tight, sans-serif;--title-30:500 1.5rem / normal Inter Tight, sans-serif;--title-10B:600 2.5rem / normal Inter Tight, sans-serif;--title-20B:600 2rem / normal Inter Tight, sans-serif;--title-30B:600 1.5rem / normal Inter Tight, sans-serif;--paragraph-10:500 1.125rem / normal Inter Tight, sans-serif;--paragraph-20:500 1rem / normal Inter Tight, sans-serif;--paragraph-30:500 .875rem / normal Inter Tight, sans-serif;--paragraph-40:500 .75rem / normal Inter Tight, sans-serif;--paragraph-10B:600 1.125rem / normal Inter Tight, sans-serif;--paragraph-20B:600 1rem / normal Inter Tight, sans-serif;--paragraph-30B:600 .875rem / normal Inter Tight, sans-serif;--paragraph-40B:600 .75rem / normal Inter Tight, sans-serif;--shape-1:.25rem;--shape-2:.5rem;--shape-3:.75rem;--shape-4:1rem;--shape-5:1.25rem;--box-shadow-10:0 1px 2px 0 rgba(18, 18, 23, .07);--box-shadow-20:0 1px 3px 0 rgba(18, 18, 23, .1);--box-shadow-30:0 1px 4px -1px rgba(18, 18, 23, .08);--box-shadow-35:0 4px 6px -1px rgba(18, 18, 23, .08);--box-shadow-40:0 10px 15px -3px rgba(18, 18, 23, .08);--box-shadow-50:0 20px 25px -5px rgba(18, 18, 23, .1);--box-shadow-60:0 25px 50px -12px rgba(18, 18, 23, .25);--base-level-10:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-950));--base-level-20:var(--sparkle-light, var(--grey-50)) var(--sparkle-dark, var(--grey-900));--base-level-30:var(--sparkle-light, var(--grey-100)) var(--sparkle-dark, var(--grey-900));--base-level-30R:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, var(--grey-100));--base-level-40:var(--sparkle-light, var(--grey-200)) var(--sparkle-dark, var(--grey-700));--base-level-50:var(--sparkle-light, var(--grey-300)) var(--sparkle-dark, var(--grey-800));--base-level-60:var(--sparkle-light, var(--grey-500)) var(--sparkle-dark, var(--grey-400));--base-level-60R:var(--sparkle-light, var(--grey-400)) var(--sparkle-dark, var(--grey-500));--base-level-70:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, #fff);--base-level-70R:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-900));--base-gradient-20:linear-gradient(180deg, var(--grey-400) 0%, var(--grey-500) 50%);--base-gradient-30:linear-gradient(180deg, var(--grey-300) 0%, var(--grey-500) 50%);--base-gradient-60:linear-gradient(180deg, var(--grey-700) 0%, var(--grey-900) 50%);--base-gradient-70:linear-gradient(180deg, var(--grey-600) 0%, var(--grey-900) 50%);--primary-level-20:var(--sparkle-light, var(--primary-50)) var(--sparkle-dark, var(--primary-950));--primary-level-30:var(--sparkle-light, var(--primary-100)) var(--sparkle-dark, var(--primary-900));--primary-level-40:var(--sparkle-light, var(--primary-200)) var(--sparkle-dark, var(--primary-800));--primary-level-50:var(--sparkle-light, var(--primary-300)) var(--sparkle-dark, var(--primary-800));--primary-level-50R:var(--sparkle-light, var(--primary-800)) var(--sparkle-dark, var(--primary-300));--primary-level-80:var(--sparkle-light, var(--primary-900)) var(--sparkle-dark, var(--primary-300));--primary-gradient-20:linear-gradient(180deg, var(--primary-400) 0%, var(--primary-500) 50%);--primary-gradient-30:linear-gradient(180deg, var(--primary-300) 0%, var(--primary-500) 50%);--accent-level-20:var(--sparkle-light, var(--accent-50)) var(--sparkle-dark, var(--accent-950));--accent-level-30:var(--sparkle-light, var(--accent-100)) var(--sparkle-dark, var(--accent-900));--accent-level-40:var(--sparkle-light, var(--accent-200)) var(--sparkle-dark, var(--accent-800));--accent-level-50:var(--sparkle-light, var(--accent-300)) var(--sparkle-dark, var(--accent-800));--accent-level-50R:var(--sparkle-light, var(--accent-800)) var(--sparkle-dark, var(--accent-300));--accent-level-80:var(--sparkle-light, var(--accent-900)) var(--sparkle-dark, var(--accent-300));--accent-gradient-20:linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 50%);--accent-gradient-30:linear-gradient(180deg, var(--accent-300) 0%, var(--accent-500) 50%);--tertiary-level-20:var(--sparkle-light, var(--tertiary-50)) var(--sparkle-dark, var(--tertiary-950));--tertiary-level-30:var(--sparkle-light, var(--tertiary-100)) var(--sparkle-dark, var(--tertiary-900));--tertiary-level-40:var(--sparkle-light, var(--tertiary-200)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50:var(--sparkle-light, var(--tertiary-300)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50R:var(--sparkle-light, var(--tertiary-800)) var(--sparkle-dark, var(--tertiary-300));--tertiary-level-80:var(--sparkle-light, var(--tertiary-900)) var(--sparkle-dark, var(--tertiary-300));--tertiary-gradient-20:linear-gradient(180deg, var(--tertiary-400) 0%, var(--tertiary-500) 50%);--tertiary-gradient-30:linear-gradient(180deg, var(--tertiary-300) 0%, var(--tertiary-500) 50%);--warn-level-20:var(--sparkle-light, var(--warn-50)) var(--sparkle-dark, var(--warn-950));--warn-level-30:var(--sparkle-light, var(--warn-100)) var(--sparkle-dark, var(--warn-900));--warn-level-40:var(--sparkle-light, var(--warn-200)) var(--sparkle-dark, var(--warn-800));--warn-level-50:var(--sparkle-light, var(--warn-300)) var(--sparkle-dark, var(--warn-800));--warn-level-50R:var(--sparkle-light, var(--warn-800)) var(--sparkle-dark, var(--warn-300));--warn-level-80:var(--sparkle-light, var(--warn-900)) var(--sparkle-dark, var(--warn-300));--warn-gradient-20:linear-gradient(180deg, var(--warn-400) 0%, var(--warn-500) 50%);--warn-gradient-30:linear-gradient(180deg, var(--warn-300) 0%, var(--warn-500) 50%);--success-level-20:var(--sparkle-light, var(--success-50)) var(--sparkle-dark, var(--success-950));--success-level-30:var(--sparkle-light, var(--success-100)) var(--sparkle-dark, var(--success-900));--success-level-40:var(--sparkle-light, var(--success-200)) var(--sparkle-dark, var(--success-800));--success-level-50:var(--sparkle-light, var(--success-300)) var(--sparkle-dark, var(--success-800));--success-level-50R:var(--sparkle-light, var(--success-800)) var(--sparkle-dark, var(--success-300));--success-level-80:var(--sparkle-light, var(--success-900)) var(--sparkle-dark, var(--success-300));--success-gradient-20:linear-gradient(180deg, var(--success-400) 0%, var(--success-500) 50%);--success-gradient-30:linear-gradient(180deg, var(--success-300) 0%, var(--success-500) 50%);--dark-primary-text:var(--grey-900);--light-primary-text:#fff}*{box-sizing:border-box}html,body,app-root{width:100vw;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--base-level-20)}body{margin:0;font:var(--paragraph-30);color:var(--base-level-70)}</style><link rel="stylesheet" href="styles-AIQ3E4AK.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-AIQ3E4AK.css"></noscript></head>
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<link rel="modulepreload" href="chunk-M27H5SJL.js"><link rel="modulepreload" href="chunk-PD4M6YP7.js"><link rel="modulepreload" href="chunk-
|
|
23
|
+
<link rel="modulepreload" href="chunk-M27H5SJL.js"><link rel="modulepreload" href="chunk-PD4M6YP7.js"><link rel="modulepreload" href="chunk-T5I4AY74.js"><link rel="modulepreload" href="chunk-EXAIEGUA.js"><link rel="modulepreload" href="chunk-PIVMNQL6.js"><link rel="modulepreload" href="chunk-O2MZ5CAQ.js"><link rel="modulepreload" href="chunk-J76HBC5J.js"><link rel="modulepreload" href="chunk-MSK2MH2K.js"><link rel="modulepreload" href="chunk-ZTSITRHY.js"><link rel="modulepreload" href="chunk-NJSJNACP.js"><script src="polyfills-DUGKNACR.js" type="module"></script><script src="main-UAJKIVXK.js" type="module"></script></body>
|
|
24
24
|
</html>
|
package/main-UAJKIVXK.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as se,c as ie}from"./chunk-M27H5SJL.js";import{a as N}from"./chunk-PD4M6YP7.js";import{a as w}from"./chunk-T5I4AY74.js";import{a as b}from"./chunk-EXAIEGUA.js";import{a as y}from"./chunk-PIVMNQL6.js";import{d as te}from"./chunk-O2MZ5CAQ.js";import{b as Z,c as Q,f as Y,g as ee}from"./chunk-J76HBC5J.js";import{a as X}from"./chunk-MSK2MH2K.js";import{c as oe}from"./chunk-ZTSITRHY.js";import{a as $,b as z,d as B,e as _,f as q}from"./chunk-NJSJNACP.js";import{a as re}from"./chunk-BSZZLSIX.js";import{ua as K}from"./chunk-BUARZS4A.js";import{b as ne}from"./chunk-O53NVQ2A.js";import{Bc as D,Cc as G,Eb as F,G as C,M as j,Mc as J,O as S,Q as P,U as R,X as H,Ya as d,_ as n,d as L,eb as W,ka as U,m as k,q as V,y as E,z as O}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var T=class e{#o=n(y);#s=n(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=W({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){t&1&&F(0,"router-outlet")},dependencies:[Z],encapsulation:2})};var pe={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var u=new H("ENVIRONMENT");var I=class e{#o=n(te);isLoaded=d(!1);webmodules=d(null);preload(o=!1){let t=this.#o.getApiV1Webmodules().pipe(P(r=>this.webmodules.set(r)),C(()=>this.isLoaded.set(!0)));if(o)return t;t.subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var he=()=>{let e=n(w);return e.token()?!0:e.refreshToken().pipe(V(()=>!0))},fe=()=>{let e=n(b),o=n(U),t=[o.get(N).preload(!0),o.get(N).preloadFilterGroups(!0),o.get(I).preload(!0)];return e.configLoaded===null?E(t):e.configLoaded?.pipe(S(()=>E(t)))},ce=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-34N3NDDX.js")},{path:"logout",loadComponent:()=>import("./chunk-HARDXXQK.js")},{path:"",canActivate:[he],children:[{path:"",canActivate:[fe],loadComponent:()=>import("./chunk-4N2WKEQR.js"),children:[{path:"",loadComponent:()=>import("./chunk-CP57LBQ6.js")},{path:"add-backup",loadComponent:()=>import("./chunk-737NFYPO.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-KWC4F7OI.js")},{path:"backup/import",loadComponent:()=>import("./chunk-HWBFYM4U.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-IDRVDCZF.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-IDRVDCZF.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-IJZSE545.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-FDU72LLR.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-QZ4DM36I.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-4LKWOYIM.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-VFTH7UVW.js")},{path:"from-config",loadComponent:()=>import("./chunk-KBC4N47O.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-WCTVFZUZ.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"settings",loadComponent:()=>import("./chunk-RUBPUVDQ.js")},{path:"about",loadComponent:()=>import("./chunk-U2NGUTAO.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-TSQCXGD7.js")},{path:"changelog",loadComponent:()=>import("./chunk-7YT4Y7C3.js")},{path:"libraries",loadComponent:()=>import("./chunk-GRR3LTVK.js")},{path:"system-info",loadComponent:()=>import("./chunk-3CXGKNYN.js")},{path:"logs",loadComponent:()=>import("./chunk-2HC23GJF.js")}]}]}]}]}];var M=null,le=(e,o)=>{let t=n(w),r=n(Q),c=n(y),i=n(u),m=c.getItem("locale"),s=n(oe),p=se(m),f=e.url==="/api/v1/auth/login",l=e;if(t.token()&&e.url.startsWith(i.baseUrl)){let a=e.headers.set("Authorization",`Bearer ${t.token()}`);m&&m!=="en-US"&&(a=a.set("X-Ui-Language",p)),l=e.clone({headers:a})}return o(l).pipe(O(a=>{if(s.error(a.message),!f&&a.status===401&&!M&&(M=t.refreshToken().pipe(j())),!f&&a.status===401)return M.pipe(S(()=>o(e.clone({headers:e.headers.set("Authorization",`Bearer ${t.token()}`)}))),O(g=>(r.navigate(["/logout"]),k(()=>g))),C(()=>M=null));let h=`Error Code: ${a.status}, Message: ${a.message}`;return k(()=>({error:a,message:h}))}))};var ge="1.0.0",me="portal-proxy-client",ye=1,A=class e{#o=1e3;#s=n(u);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=J(()=>{let o=this.#i(),t=this.#l(),r=this.#a();if(!r||!o||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(r)},t)});utf8Atob(o){let t=Uint8Array.from(atob(o),c=>c.charCodeAt(0)),r=this.#m.decode(t);return r?JSON.parse(r):null}connectToMachineServer(o,t){let r=t?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!r||(this.#e&&this.wsState()!=="authenticated"&&this.#e.close(),this.#e=new WebSocket(this.#s.machineServerUrl),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(o),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let i=JSON.parse(c.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let s={token:o,publicKey:"",clientVersion:ge,protocolVersion:ye},p=this.createResponse(i,"authportal",s);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var m=JSON.parse(i.payload??"");if(m.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let s=this.#p.pop();s&&this.#r[s.messageId]&&this.activateCommand(s)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let s=this.#r[i.messageId];if(s){if(i.errorMessage){s.reject(i.errorMessage);return}else{let p=JSON.parse(i.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),s.resolve(p)}delete this.#r[i.messageId],window.clearTimeout(s.timer)}}})}disconnectFromMachineServer(o=null){o&&console.error(o),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(o,t,r){let c={from:me,to:o.from,type:t,messageId:o.messageId,payload:JSON.stringify(r)};return JSON.stringify(c)}sendCommand(o,t,r,c,i,m,s=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(o),new Promise((p,f)=>{let l=crypto.randomUUID(),h={from:me,to:t,type:"command",messageId:l,payload:JSON.stringify({method:r,path:c,body:i,headers:m})},g={resolve:p,reject:f,timer:window.setTimeout(()=>{let v=this.#r[l];v&&(delete this.#r[l],v.reject("Timeout"))},s)};this.#r[l]=g,this.#n()?this.activateCommand(h):this.#p.push(h)})}activateCommand(o){this.#e?.send(JSON.stringify(o))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};function be(e){if(typeof e!="string")return null;let t=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...t))}var de=(e,o)=>{let r=n(b).config(),c=n(u);if(r===null)return o(e);let i=n(A),m=be(e.body),s={};e.headers.keys().forEach(a=>{s[a]=e.headers.get(a)??""});let p=e.headers.get("timeout"),f=p!==null?parseInt(p):c.defaultTimeout,l=i.sendCommand(r.accessToken,r.clientId,e.method,e.url,m,s,f);return new L(a=>{l.then(h=>{let g=new $;s!=null&&Object.keys(s).forEach(x=>{g.set(x,s[x])});let v=new z({body:h.body,status:h.code,statusText:"OK",headers:g});a.next(v),a.complete()})})};var ue={providers:[D(),Y(ce,ee()),B(q(),_([de,le])),y,{provide:u,useValue:pe},{provide:G,useValue:ie()},ne,K,re]};X(T,ue);
|
package/package.json
CHANGED
package/chunk-4MGFY2JV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-YT3L2PHL.js";import"./chunk-PIVMNQL6.js";import"./chunk-O2MZ5CAQ.js";import"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{g as h}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as t,Db as i,Eb as g,Qb as l,Ra as u,Wb as C,Xb as c,_ as m,eb as s,hc as O,kb as _,yb as f}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
|
package/chunk-AX4MPJ65.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as F}from"./chunk-YT3L2PHL.js";import"./chunk-PIVMNQL6.js";import{b as h,c as N,d as S,e as b,h as w,l as y,o as L,p as M,r as P}from"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import{c as C}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as v,g as O,l as E}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import{Cb as t,Db as i,Eb as f,G as p,Ra as m,Ub as _,Ya as d,_ as s,eb as c,hc as n,tb as u,vb as g}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var G=new M,a=class l{#e=s(C);#t=s(F);isLoading=d(!1);loginForm=G.group({pass:G.control("",N.required)});submit(){let e=this.loginForm.value.pass;e&&(this.isLoading.set(!0),this.#t.login(e).pipe(p(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=c({type:l,selectors:[["app-login"]],decls:13,vars:3,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,r){o&1&&(t(0,"form",0),_("submit",function(){return r.submit()}),t(1,"div",1)(2,"spk-form-field")(3,"label",2),n(4," Password "),t(5,"a",3)(6,"spk-icon"),n(7,"question"),i()()(),f(8,"input",4),i(),t(9,"button",5),n(10," Login "),t(11,"spk-icon"),n(12,"arrow-right"),i()()()()),o&2&&(u("formGroup",r.loginForm),m(9),g("loader",r.isLoading()))},dependencies:[P,w,h,S,b,y,L,E,v,O],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
|
package/chunk-YT3L2PHL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-PIVMNQL6.js";import{b as m}from"./chunk-O2MZ5CAQ.js";import{c as u}from"./chunk-J76HBC5J.js";import{D as e,G as l,Mc as h,Q as i,U as a,Ya as o,_ as s}from"./chunk-VGQ6X3AL.js";var p=class r{#e=s(c);#i=s(u);#s=s(m);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
|
package/chunk-ZUGIRXAF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as he}from"./chunk-GE3T3AG3.js";import{b as ce,d as ue,g as de,i as Se,q as $}from"./chunk-OROSSCXB.js";import{b as C,c as _e}from"./chunk-O2MZ5CAQ.js";import{a as me,b as Te,e as ge,g as fe,i as L,l as Ce,o as Pe,p as Ee,q as Oe,r as Ae}from"./chunk-ZTSITRHY.js";import{a as Re}from"./chunk-BSZZLSIX.js";import{pa as pe}from"./chunk-BUARZS4A.js";import{a as ke}from"./chunk-O53NVQ2A.js";import{Ab as A,Bb as h,Cb as l,Db as s,Eb as y,G as m,Ib as ie,Kc as N,Mc as W,O as J,Ob as b,Pb as v,Qb as c,Ra as r,Tb as ne,U as Y,Ub as u,Vb as E,Ya as p,_,eb as P,fa as Q,ga as ee,hb as te,hc as g,ic as X,jc as oe,kb as w,kc as ae,l as q,lc as se,mc as k,nc as R,oc as D,q as Z,ra as B,tb as T,vb as S,vc as H,wc as le,xc as re,yb as V,zb as O}from"./chunk-VGQ6X3AL.js";import{a as M,b as I}from"./chunk-C6Q5SG76.js";var G=class n{#e=_(ke);transform(e,...t){return this.#e.locale(),this.#e(e).fromNow()}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=te({name:"appRelativeTime",type:n,pure:!0})};function Be(n,e){if(n&1){let t=ie();l(0,"spk-radio",10),u("click",function(){let o=Q(t).$implicit,a=E();return ee(a.pauseOption.set(o.value))}),g(1),s()}if(n&2){let t=e.$implicit,i=E();S("active",i.pauseOption()===t.value),r(),oe(" ",t.label," ")}}var ye=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],x=class n{#e=_(C);pauseOptions=p(ye);closed=B();isSubmitting=p(!1);pauseTransfers=p(!1);pauseOption=p(void 0);submit(){this.isSubmitting.set(!0);let e=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:e}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let e;e=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let i;i=$localize`If you pause transfers they could time out and cause retries or failures.`;let o;o=$localize`Cancel`;let a;return a=$localize` Update settings `,[e,t,i,o,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",5)(1,"h3"),c(2,0),s()(),l(3,"div",6)(4,"div",7),A(5,Be,2,3,"spk-radio",8,O),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return i.pauseTransfers.set(!i.pauseTransfers())}),c(9,1),s(),l(10,"spk-alert",11),c(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return i.closed.emit()}),c(14,3),s(),l(15,"button",14),u("click",function(){return i.submit()}),c(16,4),s()()),t&2&&(r(5),h(i.pauseOptions()),r(3),S("active",i.pauseTransfers()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,Ee,L,Te],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var be={Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,"PurgeFiles_Begin,":$localize`Listing remote files for purge …`,"PurgeFiles_Process,":$localize`Purging files …`,"PurgeFiles_Compact,":$localize`Compacting remote data …`,"PurgeFiles_Complete,":$localize`Purging files complete!`,Error:$localize`Error!`},z=class n{#e=1e3;#t=_(Re);#n=_(_e);#_=_(C);#s=_(he);#i=p(!1);#l=p(!1);#c=p(this.#e);#u=p(null);#r=p(!1);#o=p(!1);#a=p(null);#m=p(!1);statusData=this.#u.asReadonly();serverState=N(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let i=t.Item1?this.#s.getBackupById(t.Item1):null;return I(M({},t),{backup:i})}),e):null});isFetching=this.#l.asReadonly();#p=null;#T=W(()=>{let e=this.#i(),t=this.#c();if(!e||!t||t<this.#e){this.#p&&window.clearInterval(this.#p);return}this.#p=window.setInterval(()=>{this.#S()},t)});start(){this.#r.set(!0),this.#d()}stop(){this.#r.set(!1)}startPollingProgress(){this.#S(),this.#i.set(!0)}stopPollingProgress(){this.#i.set(!1)}setProgressStatePollingInterval(e){if(e<this.#e){console.error(`Polling interval must be at least ${this.#e}ms`);return}this.#c.set(e)}serverStateEffect=W(()=>{if(this.#m()){this.stopPollingProgress();return}!this.#o()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#d()},1e3):this.stopPollingProgress()});calculateProgress(e){let t=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)t=0;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i;t=(e.ProcessedFileSize+i)/e.TotalFileSize,e.ProcessedFileCount===0?t=0:t>=.9&&(t=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?t=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?t=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?t=.98:e.Phase==="Backup_Complete"||e.Phase==="Backup_WaitForUpload"?t=1:e.OverallProgress>0&&(t=e.OverallProgress);return t}constructStatusText(e){let t="Running \u2026";if(e.task&&e&&(t=e.Phase?be[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"))if(e.StillCounting)t=`Counting (${e.TotalFileCount} files found, ${this.#t.transform(e.TotalFileSize)})`;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i,d=e.BackendSpeed<0?"":` at ${this.#t.transform(e.BackendSpeed)}/s`;t=`${e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":""}${o} files (${this.#t.transform(a)}) to go ${d}`}return t}#d(){if(this.#o())return;this.#o.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#_.getApiV1Serverstate(t).pipe(m(()=>this.#o.set(!1))).subscribe({next:i=>{this.#a()?.LastDataUpdateID!==i.LastDataUpdateID&&this.#s.getBackups(),this.#a.set(i)}})}#S(){this.#l.set(!0),this.#n.getApiV1Progressstate().pipe(J(e=>{let t=e.TaskID??null;return t===null?q(e):this.#_.getApiV1TaskByTaskid({taskid:t}).pipe(Z(i=>I(M({},e),{task:i??null})))}),m(()=>this.#l.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,i=e.BackupID??null;if(t!==null&&i!==null){let o=this.#s.getBackupById(i);e.backup=o}e.task?.Status==="Completed"?this.#i.set(!1):this.#i.set(!0),this.#u.set(I(M({},e),{progress:this.calculateProgress(e),statusText:this.constructStatusText(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))},error:e=>{e.status===404&&this.#i.set(!1)}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})};function ve(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}function $e(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}var Le=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],K={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ne=Object.entries(K).reduce((n,[e,t])=>(n[t]=e,n),{}),F=class n{#e=_(C);closed=B();isSubmitting=p(!1);sizeOptions=p(Le);maxUploadActive=p(!1);maxDownloadActive=p(!1);maxUpload=p(0);maxDownload=p(0);maxUploadUnit=p("MByte/s");maxDownloadUnit=p("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e?.["max-upload-speed"]?.split(/(\d+)/),i=e?.["max-download-speed"]?.split(/(\d+)/),o=t[1]??"",a=i[1]??"",d=t[2]??"MB",f=i[2]??"MB",Me=o===""?10:parseInt(o),Ie=a===""?10:parseInt(a);console.log(o),this.maxUploadUnit.set(Ne[d]+"/s"),this.maxDownloadUnit.set(Ne[f]+"/s"),this.maxUploadActive.set(o!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(Me),this.maxDownload.set(Ie)}})}submit(){this.isSubmitting.set(!0);let e=this.maxUploadActive()?`${this.maxUpload()}${K[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${K[this.maxDownloadUnit().replace("/s","")]}`:"";console.log(e,t),this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":e,"max-download-speed":t}}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let e;e=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let i;i=$localize` Max download speed `;let o;o=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let d;return d=$localize` Update settings `,[e,t,i,o,a,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",6)(1,"h3"),c(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return i.maxUploadActive.set(!i.maxUploadActive())}),c(7,1),s(),l(8,"spk-form-field")(9,"input",11),D("ngModelChange",function(a){return R(i.maxUpload,a)||(i.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),D("ngModelChange",function(a){return R(i.maxUploadUnit,a)||(i.maxUploadUnit=a),a}),s(),A(12,ve,2,2,"spk-option",14,O),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return i.maxDownloadActive.set(!i.maxDownloadActive())}),c(16,2),s(),l(17,"spk-form-field")(18,"input",11),D("ngModelChange",function(a){return R(i.maxDownload,a)||(i.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),D("ngModelChange",function(a){return R(i.maxDownloadUnit,a)||(i.maxDownloadUnit=a),a}),s(),A(21,$e,2,2,"spk-option",14,O),s()(),l(23,"p"),c(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return i.closed.emit(!1)}),c(27,4),s(),l(28,"button",17),u("click",function(){return i.submit()}),c(29,5),s()()),t&2&&(r(6),S("active",i.maxUploadActive()),r(3),k("ngModel",i.maxUpload),T("disabled",!i.maxUploadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxUploadUnit),r(),h(i.sizeOptions()),r(3),S("active",i.maxDownloadActive()),r(3),k("ngModel",i.maxDownload),T("disabled",!i.maxDownloadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxDownloadUnit),r(),h(i.sizeOptions()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,ce,Se,ue,de,Ae,Oe,Ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ge(n,e){if(n&1&&(l(0,"div"),g(1),s(),y(2,"spk-progress-bar",7)),n&2){let t=E();r(),ae("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function Ue(n,e){if(n&1&&(l(0,"div",4),g(1),H(2,"appRelativeTime"),H(3,"date"),s()),n&2){let t,i=E();r(),se(" ",(t=i.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",le(2,3,i.nextBackup().time)," at ",re(3,5,i.nextBackup().time,"shortTime")," ")}}function xe(n,e){n&1&&(l(0,"div",4),c(1,1),s())}function ze(n,e){n&1&&(b(0,0,1),y(1,"spk-icon"),v())}function we(n,e){n&1&&(b(0,0,2),y(1,"spk-icon"),v())}var Fe=new Date,j=class n{#e=_(C);#t=_(z);#n=_(ge);minsAgo=Fe.setMinutes(Fe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=N(()=>this.serverState()?.ProgramState==="Running");isResuming=p(!1);nextBackup=N(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(F,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(m(()=>this.isResuming.set(!1))).subscribe()}ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let e;e=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,e=ne(e);let t;return t=$localize`Loading...`,[e,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,i){if(t&1&&(l(0,"div",2)(1,"div",3),w(2,Ge,3,3)(3,Ue,4,8,"div",4)(4,xe,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return i.pauseResume()}),b(7,0),w(8,ze,2,0)(9,we,2,0),v(),s(),l(10,"button",6),u("click",function(){return i.openThrottleSettingsDialog()}),l(11,"spk-icon"),g(12,"speedometer"),s()()()()),t&2){let o;r(2),V(!((o=i.statusData())==null||o.task==null)&&o.task.Status&&((o=i.statusData())==null||o.task==null?null:o.task.Status)!=="Completed"?2:i.nextBackup().backup||i.nextBackup().time?3:4),r(4),S("loader",i.isResuming()),r(2),V(i.isRunning()?8:9)}},dependencies:[Pe,G,pe,me,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{j as a};
|
package/main-ZCCISGLD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as re,c as se}from"./chunk-M27H5SJL.js";import{a as O}from"./chunk-PD4M6YP7.js";import{a as te}from"./chunk-YT3L2PHL.js";import{a as y}from"./chunk-EXAIEGUA.js";import{a as g}from"./chunk-PIVMNQL6.js";import{d as Y}from"./chunk-O2MZ5CAQ.js";import{b as q,c as X,f as Z,g as Q}from"./chunk-J76HBC5J.js";import{a as _}from"./chunk-MSK2MH2K.js";import{c as ee}from"./chunk-ZTSITRHY.js";import{a as G,b as K,d as $,e as z,f as B}from"./chunk-NJSJNACP.js";import{a as ne}from"./chunk-BSZZLSIX.js";import{ua as J}from"./chunk-BUARZS4A.js";import{b as oe}from"./chunk-O53NVQ2A.js";import{Bc as W,Cc as F,Eb as U,G as C,M as L,Mc as D,O as S,Q as V,U as R,X as j,Ya as l,_ as s,d as x,eb as H,ka as P,m as A,y as E,z as k}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var w=class o{#o=s(g);#s=s(y);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=H({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(e,r){e&1&&U(0,"router-outlet")},dependencies:[q],encapsulation:2})};var ae={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var d=new j("ENVIRONMENT");var I=class o{#o=s(Y);isLoaded=l(!1);webmodules=l(null);preload(t=!1){let e=this.#o.getApiV1Webmodules().pipe(V(r=>this.webmodules.set(r)),C(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};var ue=()=>{let o=s(y),t=s(P),e=[t.get(O).preload(!0),t.get(O).preloadFilterGroups(!0),t.get(I).preload(!0)];return o.configLoaded===null?E(e):o.configLoaded?.pipe(S(()=>E(e)))},pe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-AX4MPJ65.js")},{path:"logout",loadComponent:()=>import("./chunk-4MGFY2JV.js")},{path:"",canActivate:[ue],loadComponent:()=>import("./chunk-4N2WKEQR.js"),children:[{path:"",loadComponent:()=>import("./chunk-L7W4ZJTP.js")},{path:"add-backup",loadComponent:()=>import("./chunk-OIV6DYWR.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-KWC4F7OI.js")},{path:"backup/import",loadComponent:()=>import("./chunk-HWBFYM4U.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-7R4NNENA.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-7R4NNENA.js"),loadChildren:()=>import("./chunk-4C3R2PTH.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-N4NGBPMJ.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-SANIFXXF.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-2T3PBPBO.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-FCXKPHH2.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-IQDBKRQV.js")},{path:"from-config",loadComponent:()=>import("./chunk-KBC4N47O.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-EQS5S7RI.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-EQS5S7RI.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-EQS5S7RI.js"),loadChildren:()=>import("./chunk-I3KS7JEN.js")},{path:"settings",loadComponent:()=>import("./chunk-FI43YAHP.js")},{path:"about",loadComponent:()=>import("./chunk-U2NGUTAO.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-TSQCXGD7.js")},{path:"changelog",loadComponent:()=>import("./chunk-7YT4Y7C3.js")},{path:"libraries",loadComponent:()=>import("./chunk-GRR3LTVK.js")},{path:"system-info",loadComponent:()=>import("./chunk-3CXGKNYN.js")},{path:"logs",loadComponent:()=>import("./chunk-2HC23GJF.js")}]}]}]}];var T=null,ce=(o,t)=>{let e=s(te),r=s(X),c=s(g),i=s(d),u=s(ee),n=c.getItem("locale"),p=re(n),h=o;if(e.token()&&o.url.startsWith(i.baseUrl)){let a=o.headers.set("Authorization",`Bearer ${e.token()}`);n&&n!=="en-US"&&(a=a.set("X-Ui-Language",p)),h=o.clone({headers:a})}return t(h).pipe(k(a=>{if(u.error(a.message),a.status===401&&!T&&(T=e.refreshToken().pipe(L())),a.status===401)return T.pipe(S(()=>t(o.clone({headers:o.headers.set("Authorization",`Bearer ${e.token()}`)}))),k(f=>(r.navigate(["/logout"]),A(()=>f))),C(()=>T=null));let m=`Error Code: ${a.status}, Message: ${a.message}`;return A(()=>({error:a,message:m}))}))};var he="1.0.0",le="portal-proxy-client",fe=1,M=class o{#o=1e3;#s=s(d);#t=l("disconnected");#l=l(this.#o);#i=l(!1);#n=l(!1);#a=l(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=D(()=>{let t=this.#i(),e=this.#l(),r=this.#a();if(!r||!t||!e||e<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(r)},e)});utf8Atob(t){let e=Uint8Array.from(atob(t),c=>c.charCodeAt(0)),r=this.#m.decode(e);return r?JSON.parse(r):null}connectToMachineServer(t,e){let r=e?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!r||(this.#e&&this.wsState()!=="authenticated"&&this.#e.close(),this.#e=new WebSocket(this.#s.machineServerUrl),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let i=JSON.parse(c.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let n={token:t,publicKey:"",clientVersion:he,protocolVersion:fe},p=this.createResponse(i,"authportal",n);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var u=JSON.parse(i.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let n=this.#p.pop();n&&this.#r[n.messageId]&&this.activateCommand(n)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let n=this.#r[i.messageId];if(n){if(i.errorMessage){n.reject(i.errorMessage);return}else{let p=JSON.parse(i.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),n.resolve(p)}delete this.#r[i.messageId],window.clearTimeout(n.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,e,r){let c={from:le,to:t.from,type:e,messageId:t.messageId,payload:JSON.stringify(r)};return JSON.stringify(c)}sendCommand(t,e,r,c,i,u,n=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((p,h)=>{let a=crypto.randomUUID(),f={from:le,to:e,type:"command",messageId:a,payload:JSON.stringify({method:r,path:c,body:i,headers:u})},b={resolve:p,reject:h,timer:window.setTimeout(()=>{let v=this.#r[a];v&&(delete this.#r[a],v.reject("Timeout"))},n)};this.#r[a]=b,this.#n()?this.activateCommand(f):this.#p.push(f)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};function ge(o){if(typeof o!="string")return null;let e=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...e))}var me=(o,t)=>{let r=s(y).config(),c=s(d);if(r===null)return t(o);let i=s(M),u=ge(o.body),n={};o.headers.keys().forEach(m=>{n[m]=o.headers.get(m)??""});let p=o.headers.get("timeout"),h=p!==null?parseInt(p):c.defaultTimeout,a=i.sendCommand(r.accessToken,r.clientId,o.method,o.url,u,n,h);return new x(m=>{a.then(f=>{let b=new G;n!=null&&Object.keys(n).forEach(N=>{b.set(N,n[N])});let v=new K({body:f.body,status:f.code,statusText:"OK",headers:b});m.next(v),m.complete()})})};var de={providers:[W(),Z(pe,Q()),$(B(),z([me,ce])),g,{provide:d,useValue:ae},{provide:F,useValue:se()},oe,J,ne]};_(w,de);
|