@duplicati/ngclient 0.0.55 → 0.0.56

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.
Files changed (77) hide show
  1. package/chunk-2GC7SBMS.js +1 -0
  2. package/{chunk-RNJTHHRX.js → chunk-2SBFQL4K.js} +1 -1
  3. package/{chunk-YZWWCZIN.js → chunk-3FAE4RKT.js} +1 -1
  4. package/{chunk-7TAPZ3BZ.js → chunk-56AHOWAU.js} +1 -1
  5. package/{chunk-4ZZ73XVH.js → chunk-5FDI5MU5.js} +1 -1
  6. package/{chunk-4VCVYKCF.js → chunk-6H65UZ2P.js} +1 -1
  7. package/{chunk-X6YI2XBN.js → chunk-7C6ILTIP.js} +1 -1
  8. package/{chunk-ZXOBCX33.js → chunk-7JAY2YPN.js} +1 -1
  9. package/{chunk-UZD4ZUGC.js → chunk-7M6UFI5Y.js} +1 -1
  10. package/{chunk-RV5XJ2ME.js → chunk-ACQPX6N4.js} +1 -1
  11. package/{chunk-ZYWPO4S4.js → chunk-AX44W3BG.js} +1 -1
  12. package/{chunk-5FQGT7TQ.js → chunk-BUB2XBZH.js} +1 -1
  13. package/chunk-C5SNUVEC.js +1 -0
  14. package/{chunk-MOOX7YVA.js → chunk-CL6W3OLS.js} +1 -1
  15. package/{chunk-V3LU4BS4.js → chunk-CVMGHPI7.js} +1 -1
  16. package/{chunk-QR6M6QC2.js → chunk-DC7QVFBV.js} +1 -1
  17. package/chunk-DKRZJC7X.js +1 -0
  18. package/{chunk-HDRLFXSE.js → chunk-E4ISBSEL.js} +1 -1
  19. package/{chunk-A5RIRRJV.js → chunk-EAZGURHW.js} +1 -1
  20. package/{chunk-6MJTJEIZ.js → chunk-ENRVPUCB.js} +1 -1
  21. package/{chunk-PJ62WHUK.js → chunk-ERIN7FXX.js} +1 -1
  22. package/{chunk-XVRZCAFX.js → chunk-F4ZWNDPA.js} +1 -1
  23. package/{chunk-4M2KOHSQ.js → chunk-F6O4P5W4.js} +1 -1
  24. package/chunk-GFJZ5IJI.js +1 -0
  25. package/chunk-HFDDJLAI.js +1 -0
  26. package/{chunk-XQXVGMTX.js → chunk-ICXLTN4I.js} +1 -1
  27. package/{chunk-7XODEO3O.js → chunk-IOBGL3RY.js} +1 -1
  28. package/{chunk-GJPBEQ2P.js → chunk-K24PCFFN.js} +1 -1
  29. package/{chunk-2BX44Q6S.js → chunk-KY2RQ76O.js} +1 -1
  30. package/{chunk-4O464SE6.js → chunk-LBTXWNGE.js} +1 -1
  31. package/{chunk-76SXOHIV.js → chunk-LE75M3F5.js} +1 -1
  32. package/{chunk-LVAGIPHT.js → chunk-LEG3VUID.js} +1 -1
  33. package/chunk-LVU6VV6K.js +1 -0
  34. package/{chunk-UV6ZII6K.js → chunk-MBLB2X2V.js} +1 -1
  35. package/{chunk-P6JGC4A4.js → chunk-MJKHWRNQ.js} +1 -1
  36. package/{chunk-WBW4QTRC.js → chunk-MJMYUASP.js} +1 -1
  37. package/chunk-NEGT6KCV.js +1 -0
  38. package/{chunk-OJRUAAHE.js → chunk-NXFYBS5S.js} +1 -1
  39. package/{chunk-ZFWDSFTH.js → chunk-PLUKKU2C.js} +1 -1
  40. package/{chunk-UKNW3WA3.js → chunk-PUIARLRJ.js} +1 -1
  41. package/{chunk-LOSE4Q45.js → chunk-PYT62D3C.js} +1 -1
  42. package/{chunk-RMTDIYIF.js → chunk-RHYYHNXZ.js} +1 -1
  43. package/{chunk-MSLFDCH4.js → chunk-RQA4DOFL.js} +1 -1
  44. package/{chunk-M5PKXXDJ.js → chunk-S3X5GKHD.js} +1 -1
  45. package/{chunk-FYAAUQ4U.js → chunk-SD7AY2JD.js} +1 -1
  46. package/{chunk-XW3ZLB27.js → chunk-T5UIDW4M.js} +1 -1
  47. package/{chunk-NOXE2MQS.js → chunk-TH3GTINR.js} +1 -1
  48. package/{chunk-KFC3H4KB.js → chunk-TOLFT34P.js} +1 -1
  49. package/chunk-TOM6TEW4.js +1 -0
  50. package/{chunk-QPPZDOB4.js → chunk-UI7YZPLW.js} +2 -2
  51. package/{chunk-6R7AFT3Y.js → chunk-V3IF26PI.js} +1 -1
  52. package/chunk-V3SQQA7U.js +1 -0
  53. package/chunk-VC4Z6LFJ.js +1 -0
  54. package/chunk-VWFTXKNS.js +1 -0
  55. package/chunk-VWTABONU.js +1 -0
  56. package/chunk-WZYTVL3C.js +1 -0
  57. package/{chunk-WT7OD7CA.js → chunk-YGBHA2P6.js} +1 -1
  58. package/{chunk-VOKGT6LJ.js → chunk-YMACEDTD.js} +1 -1
  59. package/{chunk-2FIPFMHZ.js → chunk-Z6DKPRZO.js} +1 -1
  60. package/{chunk-LD6C6SVM.js → chunk-ZFV5KH42.js} +1 -1
  61. package/{chunk-5ZPDNNPN.js → chunk-ZG5RYKT7.js} +1 -1
  62. package/index.html +1 -1
  63. package/{main-EIMKMMIB.js → main-BYCXTMII.js} +1 -1
  64. package/package.json +1 -1
  65. package/chunk-2HDJ7RRK.js +0 -1
  66. package/chunk-ARY5C3CH.js +0 -1
  67. package/chunk-CC5NDKWK.js +0 -1
  68. package/chunk-CRRYENSB.js +0 -1
  69. package/chunk-FZOTDUVE.js +0 -1
  70. package/chunk-IDDKN7DJ.js +0 -1
  71. package/chunk-IOUIIMYX.js +0 -1
  72. package/chunk-NQNIYQJE.js +0 -1
  73. package/chunk-Q6OGCUFH.js +0 -1
  74. package/chunk-RPZN4LUB.js +0 -1
  75. package/chunk-TTKHY4MZ.js +0 -1
  76. package/chunk-Y4FDCCMH.js +0 -1
  77. package/chunk-YQGVSH43.js +0 -1
@@ -1,2 +1,2 @@
1
- import{b as B}from"./chunk-YZWWCZIN.js";import{a as D,u as U}from"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import{pa as R}from"./chunk-QR6M6QC2.js";import{Ab as I,Bb as o,Cb as a,Db as u,F as S,Hb as v,Ma as T,Pb as p,Qa as l,Tb as A,Ub as c,Xa as d,Z as O,db as f,ea as M,fa as L,gc as _,hc as g,jb as E,lc as $,mc as k,nc as y,sb as m,tb as P,ub as h,uc as G,wc as w,xb as b,yb as N,zb as x}from"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
1
+ import{b as B}from"./chunk-3FAE4RKT.js";import{a as D,u as U}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import{pa as R}from"./chunk-DC7QVFBV.js";import{Ab as I,Bb as o,Cb as a,Db as u,F as S,Hb as v,Ma as T,Pb as p,Qa as l,Tb as A,Ub as c,Xa as d,Z as O,db as f,ea as M,fa as L,gc as _,hc as g,jb as E,lc as $,mc as k,nc as y,sb as m,tb as P,ub as h,uc as G,wc as w,xb as b,yb as N,zb as x}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
2
2
  `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) 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{C as default};
@@ -0,0 +1 @@
1
+ import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-RHYYHNXZ.js")},{path:"encryption",loadComponent:()=>import("./chunk-HFDDJLAI.js")},{path:"select-files",loadComponent:()=>import("./chunk-2GC7SBMS.js")},{path:"options",loadComponent:()=>import("./chunk-WZYTVL3C.js")}],o=t;export{o as default};
@@ -0,0 +1 @@
1
+ import{j as a,k as b,l as c}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -0,0 +1 @@
1
+ import{a as ze}from"./chunk-KY2RQ76O.js";import"./chunk-Z6DKPRZO.js";import{a as q}from"./chunk-MJMYUASP.js";import{a as U}from"./chunk-TH3GTINR.js";import{a as De}from"./chunk-AX44W3BG.js";import{a as he}from"./chunk-ZG5RYKT7.js";import{a as Xe}from"./chunk-RQA4DOFL.js";import"./chunk-MJKHWRNQ.js";import{b as V,d as B,e as Pe,g as W,h as Ie,l as ye,m as be,o as Ge,p as $e,q as j,r as ve}from"./chunk-NXFYBS5S.js";import{b as z}from"./chunk-3FAE4RKT.js";import{g as Ae,l as Fe,o as Le,p as ke,q as we,r as xe}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-7C6ILTIP.js";import"./chunk-DC7QVFBV.js";import"./chunk-BUB2XBZH.js";import{Ab as G,Bb as i,Cb as o,Db as O,F as me,Hb as R,Jc as X,Lc as Re,M as L,Na as Ce,Nb as Ee,Ob as fe,Pb as a,Qa as s,Qb as H,Rb as J,Sb as Ne,T as ge,Tb as p,Ub as u,Xa as T,Xb as Me,Z as S,c as ue,db as k,ea as C,fa as E,gc as f,hc as $,ic as v,jb as h,l as de,lc as w,mc as x,nc as D,q as Se,qc as Oe,sb as d,ub as M,xb as m,yb as y,z as Te,zb as b}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var P=class r{#e=S(z);#i=S(U);repeatRegisterTimer=null;state=T("unknown");claimUrl=T(null);registerUrl=T("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Re(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=ge({token:r,factory:r.\u0275fac,providedIn:"root"})};function qe(r,e){if(r&1){let t=R();i(0,"spk-form-field",10)(1,"input",11),D("ngModelChange",function(l){C(t);let c=u(2);return x(c.registerUrl,l)||(c.registerUrl=l),E(l)}),o()(),i(2,"button",12),p("click",function(){C(t);let l=u(2);return E(l.register())}),a(3,0),o()}if(r&2){let t=u(2);s(),w("ngModel",t.registerUrl)}}function Ke(r,e){if(r&1&&(i(0,"div",8)(1,"label"),a(2,1),o(),i(3,"a",13),f(4),o()()),r&2){let t=u(2);s(3),Me("href",t.claimUrl(),Ce),s(),$(t.claimUrl())}}function He(r,e){r&1&&(i(0,"div",8)(1,"label"),a(2,2),o()())}function Je(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.cancel())}),a(1,3),o()}}function Qe(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.disable())}),a(1,4),o()}}function Ye(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.enable())}),a(1,5),o(),i(2,"button",14),p("click",function(){C(t);let l=u(2);return E(l.delete())}),a(3,6),o()}}function Ze(r,e){if(r&1&&(i(0,"div",7),h(1,qe,4,1)(2,Ke,5,2,"div",8)(3,He,3,0,"div",8)(4,Je,2,0,"button",9)(5,Qe,2,0,"button",9)(6,Ye,4,0),o()),r&2){let t=u();s(),m(t.state()==="inactive"?1:-1),s(),m(t.state()==="registered"?2:-1),s(),m(t.state()==="registering"?3:-1),s(),m(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),s(),m(t.state()==="connected"||t.state()==="enabled"?5:-1),s(),m(t.state()==="disabled"?6:-1)}}var K=class r{#e=S(P);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(t){return new(t||r)};static \u0275cmp=k({type:r,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let l;l=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let N;N=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,l,c,N,I,[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(t,n){t&1&&h(0,Ze,7,6,"div",7),t&2&&m(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,Fe],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 et=()=>({standalone:!0});function tt(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t),s(),$(t)}}function nt(r,e){if(r&1){let t=R();i(0,"spk-option",46),p("click",function(){let l=C(t).$implicit,c=u();return E(c.pauseSettings.controls.timeType.setValue(l.value))}),f(1),o()}if(r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}function it(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}function ot(r,e){if(r&1&&f(0),r&2){let t,n=u();v(" ",(t=n.sysinfo())==null?null:t.ServerVersion," ")}}function rt(r,e){r&1&&O(0,"spk-progress-bar",39)}function lt(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}var A=new $e,Ve=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Be=[{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`}],Q=class r{#e=S(De);#i=S(U);#t=S(z);#n=S(P);#o=S(he);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=T("list");langCtrl=T(this.#r);remoteControlStatus=this.#n.status;settingsForm=A.group({pauseSettings:A.group({time:A.control(0),timeType:A.control("s")}),usageStatistics:A.control("")});updatingChannel=T(!1);updateChannel=T("");setNewChannel(e){let t=this.updateChannel();this.updateChannel.set(e),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":e}}).pipe(me(()=>this.updatingChannel.set(!1)),Te(()=>(this.updateChannel.set(t),de(null)))).subscribe()}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?q.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):q});usageStatisticsOptions=T(Be);timeTypeOptions=T(Ve);timeOptions=ze([this.pauseSettings.controls.timeType.valueChanges.pipe(L("s")),this.pauseSettings.controls.time.valueChanges.pipe(L(null))],ue(Se(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(l=>l.toString().includes(t.toString())):n}),L([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,l)=>l)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).subscribe()}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),l=t.slice(0,-1),c=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(l==""?"0":l),timeType:c.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"]}),this.updateChannel.set(e["update-channel"])}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?q.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ve.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:Be.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=k({type:r,selectors:[["app-settings"]],decls:102,vars:30,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let l;l=$localize`Remote access control`;let c;c=$localize`Pause after startup or hibernation`;let N;N=$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 I;I=$localize`Color theme`;let g;g=$localize`Customize your application theme`;let Y;Y=$localize`Language`;let Z;Z=$localize`Select a language for the platform`;let ee;ee=$localize`Update channel`;let te;te=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ne;ne=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ie;ie=$localize`Stable`;let oe;oe=$localize`Official releases`;let re;re=$localize`Beta`;let le;le=$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 se;se=$localize` Experimental `;let ae;ae=$localize`Specific builds for developers only. Not for use with important data.`;let _e;_e=$localize`Canary`;let ce;ce=$localize`Individual builds for developers only. Not for use with important data.`;let pe;pe=$localize`Usage statistics`;let F;return F=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#94\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#94\uFFFD"}:CLOSE_LINK:${"[\uFFFD#95\uFFFD\uFFFD/#95\uFFFD|\uFFFD#96\uFFFD\uFFFD/#96\uFFFD]"}:LINE_BREAK:${"[\uFFFD#95\uFFFD\uFFFD/#95\uFFFD|\uFFFD#96\uFFFD\uFFFD/#96\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. `,F=Ne(F),[e,t,n,l,c,N,I,g,Y,Z,ee,te,ne,ie,oe,re,le,se,ae,_e,ce,pe,F,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(O(0,"app-status-bar"),i(1,"form",23),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",24)(4,"h2"),a(5,0),o(),i(6,"p"),a(7,1),o()(),i(8,"button",25),a(9,2),o()(),i(10,"section")(11,"div",26)(12,"h3"),a(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",27),O(17,"app-remote-control"),o()(),i(18,"section")(19,"div",26)(20,"h3"),a(21,4),o(),i(22,"p"),a(23,5),o()(),i(24,"div",27)(25,"div",28)(26,"spk-select",29),O(27,"input",30),b(28,tt,2,2,"spk-option",31,y),o(),i(30,"spk-select",32),O(31,"input",33),b(32,nt,2,2,"spk-option",31,y),o()()()(),i(34,"section")(35,"div",26)(36,"h3"),a(37,6),o(),i(38,"p"),a(39,7),o()(),i(40,"div",27)(41,"div",34)(42,"img",35),p("click",function(){return n.setLightMode()}),o(),i(43,"img",36),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",26)(46,"h3"),a(47,8),o(),i(48,"p"),a(49,9),o()(),i(50,"div",27)(51,"spk-select",37),p("change",function(c){return n.saveLocale(c)}),i(52,"input",38),D("ngModelChange",function(c){return x(n.langCtrl,c)||(n.langCtrl=c),c}),o(),b(53,it,2,2,"spk-option",31,y),o()()(),i(55,"section")(56,"div",26)(57,"h3"),a(58,10),o(),i(59,"p"),h(60,ot,1,1),o(),h(61,rt,1,0,"spk-progress-bar",39),o(),i(62,"div",40)(63,"div",41),p("click",function(){return n.setNewChannel("")}),i(64,"spk-radio",42),a(65,11),o(),i(66,"p"),a(67,12),o()(),i(68,"div",41),p("click",function(){return n.setNewChannel("stable")}),i(69,"spk-radio",42),a(70,13),o(),i(71,"p"),a(72,14),o()(),i(73,"div",41),p("click",function(){return n.setNewChannel("beta")}),i(74,"spk-radio",42),a(75,15),o(),i(76,"p"),a(77,16),o()(),i(78,"div",41),p("click",function(){return n.setNewChannel("experimental")}),i(79,"spk-radio",42),a(80,17),o(),i(81,"p"),a(82,18),o()(),i(83,"div",41),p("click",function(){return n.setNewChannel("canary")}),i(84,"spk-radio",42),a(85,19),o(),i(86,"p"),a(87,20),o()()()(),i(88,"section")(89,"div",26)(90,"h3"),a(91,21),o(),i(92,"p"),Ee(93,22),O(94,"a",43)(95,"br")(96,"br"),fe(),o()(),i(97,"div",27)(98,"spk-select",44),O(99,"input",45),b(100,lt,2,2,"spk-option",31,y),o()()()()),t&2){let l,c,N;s(),d("formGroup",n.settingsForm),s(7),d("disabled",n.settingsForm.untouched),s(7),$(n.remoteControlStatus()),s(11),d("hideClearButton",!0),s(2),G(n.timeOptions()),s(2),d("displayFn",n.typeDisplay())("hideClearButton",!0),s(2),G(n.timeTypeOptions()),s(10),M("active",!n.isDarkMode()),s(),M("active",n.isDarkMode()),s(8),d("displayFn",n.languageDisplay())("hideClearButton",!0),s(),w("ngModel",n.langCtrl),d("ngModelOptions",Oe(29,et)),s(),G(n.languageOptions()),s(7),m(n.updateChannel()!==""&&((l=n.sysinfo())!=null&&l.ServerVersion)?60:-1),s(),m(n.updatingChannel()?61:-1),s(3),M("active",n.updateChannel()===""),s(),H((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),J(65),s(2),H((N=n.sysinfo())==null?null:N.ServerVersionType),J(67),s(2),M("active",n.updateChannel()==="stable"),s(5),M("active",n.updateChannel()==="beta"),s(5),M("active",n.updateChannel()==="experimental"),s(5),M("active",n.updateChannel()==="canary"),s(14),d("displayFn",n.usageDisplay()),s(2),G(n.usageStatisticsOptions())}},dependencies:[j,Ie,V,B,Pe,W,ve,ye,Ge,be,Xe,K,we,Ae,ke,xe,Le],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%}.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{Q as default};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
@@ -1 +1 @@
1
- import{a as j}from"./chunk-P6JGC4A4.js";import{a as b,b as $,d as y,e as B,h,l as v,o as G,p as L,r as U}from"./chunk-OJRUAAHE.js";import{b as N}from"./chunk-YZWWCZIN.js";import{c as E,d as R}from"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import{a as K,c as w,g as X,l as x,w as V,y as z}from"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import{Bb as r,Cb as n,Db as l,F as g,Nb as I,Ob as M,Pb as u,Qa as F,Sb as O,Tb as f,Xa as m,Z as p,db as S,gc as A,jb as D,qc as k,sb as d,ub as C,xb as P}from"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";var q=()=>["/"];function H(c,e){c&1&&(r(0,"spk-form-field")(1,"label",18),u(2,4),n(),l(3,"input",19),n())}var s=new L,T=class c{#e=p(w);#t=p(N);#o=p(j);#n=p(E);isImporting=m(!1);isSecureFile=m(!1);importForm=s.group({config:s.control(""),cmdline:s.control(!1),importMetadata:s.control(!1),direct:s.control(!1),passphrase:s.control("")});selectedFile=m(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let i=new FileReader;this.isSecureFile.set(t.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(t)}}#i(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,i="";for(let a=0;a<t;a++)i+=String.fromCharCode(o[a]);return btoa(i)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{let o=this.#o.addDraftBackup(e.data);this.#n.navigate(["/backup-draft",o])},error:e=>{this.#e.error(e.message)}})}static \u0275fac=function(o){return new(o||c)};static \u0275cmp=S({type:c,selectors:[["app-import"]],decls:24,vars:7,consts:()=>{let e;e=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=O(e);let o;o=$localize`Select a configuration file`;let t;t=$localize`Import Metadata`;let i;i=$localize`Save now`;let a;return a=$localize`Passphrase`,[e,o,t,i,a,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(r(0,"header")(1,"h3"),I(2,0),r(3,"div",5)(4,"button",6),l(5,"spk-icon"),n(),r(6,"button",7),f("click",function(){return t.submit()}),l(7,"spk-icon"),n()(),M(),n()(),r(8,"form",8)(9,"spk-form-field",9),f("fileDropped",function(a){return t.onFileDropped(a)}),r(10,"label",10),u(11,1),n(),r(12,"input",11),f("change",function(a){return t.onFileDropped(a)}),n(),r(13,"spk-icon",12),A(14,"upload"),n()(),D(15,H,4,0,"spk-form-field"),r(16,"spk-toggle",13)(17,"label",14),u(18,2),n(),l(19,"input",15),n(),r(20,"spk-toggle",13)(21,"label",16),u(22,3),n(),l(23,"input",17),n()()),o&2&&(F(4),d("routerLink",k(6,q)),F(2),C("loader",t.isImporting()),d("disabled",t.isImporting()),F(2),d("formGroup",t.importForm),F(7),P(t.isSecureFile()?15:-1))},dependencies:[U,h,$,b,y,B,v,G,R,z,x,K,X,V],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{T as default};
1
+ import{a as j}from"./chunk-MJKHWRNQ.js";import{a as b,b as $,d as y,e as B,h,l as v,o as G,p as L,r as U}from"./chunk-NXFYBS5S.js";import{b as N}from"./chunk-3FAE4RKT.js";import{c as E,d as R}from"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import{a as K,c as w,g as X,l as x,w as V,y as z}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import{Bb as r,Cb as n,Db as l,F as g,Nb as I,Ob as M,Pb as u,Qa as F,Sb as O,Tb as f,Xa as m,Z as p,db as S,gc as A,jb as D,qc as k,sb as d,ub as C,xb as P}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var q=()=>["/"];function H(c,e){c&1&&(r(0,"spk-form-field")(1,"label",18),u(2,4),n(),l(3,"input",19),n())}var s=new L,T=class c{#e=p(w);#t=p(N);#o=p(j);#n=p(E);isImporting=m(!1);isSecureFile=m(!1);importForm=s.group({config:s.control(""),cmdline:s.control(!1),importMetadata:s.control(!1),direct:s.control(!1),passphrase:s.control("")});selectedFile=m(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let i=new FileReader;this.isSecureFile.set(t.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(t)}}#i(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,i="";for(let a=0;a<t;a++)i+=String.fromCharCode(o[a]);return btoa(i)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{let o=this.#o.addDraftBackup(e.data);this.#n.navigate(["/backup-draft",o])},error:e=>{this.#e.error(e.message)}})}static \u0275fac=function(o){return new(o||c)};static \u0275cmp=S({type:c,selectors:[["app-import"]],decls:24,vars:7,consts:()=>{let e;e=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=O(e);let o;o=$localize`Select a configuration file`;let t;t=$localize`Import Metadata`;let i;i=$localize`Save now`;let a;return a=$localize`Passphrase`,[e,o,t,i,a,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(r(0,"header")(1,"h3"),I(2,0),r(3,"div",5)(4,"button",6),l(5,"spk-icon"),n(),r(6,"button",7),f("click",function(){return t.submit()}),l(7,"spk-icon"),n()(),M(),n()(),r(8,"form",8)(9,"spk-form-field",9),f("fileDropped",function(a){return t.onFileDropped(a)}),r(10,"label",10),u(11,1),n(),r(12,"input",11),f("change",function(a){return t.onFileDropped(a)}),n(),r(13,"spk-icon",12),A(14,"upload"),n()(),D(15,H,4,0,"spk-form-field"),r(16,"spk-toggle",13)(17,"label",14),u(18,2),n(),l(19,"input",15),n(),r(20,"spk-toggle",13)(21,"label",16),u(22,3),n(),l(23,"input",17),n()()),o&2&&(F(4),d("routerLink",k(6,q)),F(2),C("loader",t.isImporting()),d("disabled",t.isImporting()),F(2),d("formGroup",t.importForm),F(7),P(t.isSecureFile()?15:-1))},dependencies:[U,h,$,b,y,B,v,G,R,z,x,K,X,V],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{T as default};
@@ -1 +1 @@
1
- import{a as M}from"./chunk-XVRZCAFX.js";import"./chunk-5ZPDNNPN.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import{g as h}from"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import{Bb as t,Cb as i,Db as g,Pb as l,Qa as u,Vb as C,Wb as c,Z as m,db as s,gc as O,jb as _,xb as f}from"./chunk-QPPZDOB4.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};
1
+ import{a as M}from"./chunk-F4ZWNDPA.js";import"./chunk-ZG5RYKT7.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import{g as h}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import{Bb as t,Cb as i,Db as g,Pb as l,Qa as u,Vb as C,Wb as c,Z as m,db as s,gc as O,jb as _,xb as f}from"./chunk-UI7YZPLW.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};
@@ -1 +1 @@
1
- import{C as m,Jc as k,Kc as f,Lc as x,Mc as j,O as w,Q as l,Xa as b,Z as d,ca as i,g as p,i as g,ja as h,ka as a}from"./chunk-QPPZDOB4.js";import{a as v,b as y}from"./chunk-C6Q5SG76.js";function D(n,e){!e?.injector&&i(D);let t=e?.injector??d(h),o=new g(1),u=x(()=>{let r;try{r=n()}catch(c){f(()=>o.error(c));return}f(()=>o.next(r))},{injector:t,manualCleanup:!0});return t.get(a).onDestroy(()=>{u.destroy(),o.complete()}),o.asObservable()}function S(n,e){let t=!e?.manualCleanup;t&&!e?.injector&&i(S);let o=t?e?.injector?.get(a)??d(a):null,u=O(e?.equal),r;e?.requireSync?r=b({kind:0},{equal:u}):r=b({kind:1,value:e?.initialValue},{equal:u});let c=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;r.set({kind:2,error:s})}});if(e?.requireSync&&r().kind===0)throw new l(601,!1);return o?.onDestroy(c.unsubscribe.bind(c)),k(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new l(601,!1)}},{equal:e?.equal})}function O(n=Object.is){return(e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}function R(n){return n?.injector||i(R),j(y(v({},n),{loader:e=>{let t=new p;return e.abortSignal.addEventListener("abort",()=>t.next()),new Promise((o,u)=>{n.loader(e).pipe(m(1),w(t)).subscribe({next:o,error:u,complete:()=>u(new Error("Resource completed before producing a value"))})})}}))}export{D as a,S as b,R as c};
1
+ import{C as m,Jc as k,Kc as f,Lc as x,Mc as j,O as w,Q as l,Xa as b,Z as d,ca as i,g as p,i as g,ja as h,ka as a}from"./chunk-UI7YZPLW.js";import{a as v,b as y}from"./chunk-C6Q5SG76.js";function D(n,e){!e?.injector&&i(D);let t=e?.injector??d(h),o=new g(1),u=x(()=>{let r;try{r=n()}catch(c){f(()=>o.error(c));return}f(()=>o.next(r))},{injector:t,manualCleanup:!0});return t.get(a).onDestroy(()=>{u.destroy(),o.complete()}),o.asObservable()}function S(n,e){let t=!e?.manualCleanup;t&&!e?.injector&&i(S);let o=t?e?.injector?.get(a)??d(a):null,u=O(e?.equal),r;e?.requireSync?r=b({kind:0},{equal:u}):r=b({kind:1,value:e?.initialValue},{equal:u});let c=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;r.set({kind:2,error:s})}});if(e?.requireSync&&r().kind===0)throw new l(601,!1);return o?.onDestroy(c.unsubscribe.bind(c)),k(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new l(601,!1)}},{equal:e?.equal})}function O(n=Object.is){return(e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}function R(n){return n?.injector||i(R),j(y(v({},n),{loader:e=>{let t=new p;return e.abortSignal.addEventListener("abort",()=>t.next()),new Promise((o,u)=>{n.loader(e).pipe(m(1),w(t)).subscribe({next:o,error:u,complete:()=>u(new Error("Resource completed before producing a value"))})})}}))}export{D as a,S as b,R as c};
@@ -1,2 +1,2 @@
1
- import{Ga as ue,X as he,e as de}from"./chunk-QR6M6QC2.js";import{A as ee,F as ne,N as re,Q as te,T as O,W as N,Y as w,Z as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,q as D,wa as le,x as H}from"./chunk-QPPZDOB4.js";import{a as Z}from"./chunk-C6Q5SG76.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as ue,X as he,e as de}from"./chunk-DC7QVFBV.js";import{A as ee,F as ne,N as re,Q as te,T as O,W as N,Y as w,Z as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,q as D,wa as le,x as H}from"./chunk-UI7YZPLW.js";import{a as Z}from"./chunk-C6Q5SG76.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var C=class{encodeKey(e){return fe(e)}encodeValue(e){return fe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Re(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var Pe=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fe(r){return encodeURIComponent(r).replace(Pe,(e,n)=>Ne[n]??e)}function _(r){return`${r}`}var v=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new C,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Re(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(_):[_(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(_(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(_(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ae(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function pe(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ye(r){return typeof Blob<"u"&&r instanceof Blob}function me(r){return typeof FormData<"u"&&r instanceof FormData}function Oe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var x=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(Ae(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new V,!this.params)this.params=new v,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||pe(this.body)||ye(this.body)||me(this.body)||Oe(this.body)?this.body:this.body instanceof v?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||me(this.body)?null:ye(this.body)?this.body.type||null:pe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((R,h)=>R.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((R,h)=>R.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},B=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},U=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},E=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ee=200,Ie=204;function J(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Me=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof x)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof v?f=s.params:f=new v({fromObject:s.params})),i=new x(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=X(i).pipe(ee(a=>this.handler.handle(a)));if(n instanceof x||s.observe==="events")return o;let d=o.pipe(H(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(D(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return d.pipe(D(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return d.pipe(D(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return d.pipe(D(a=>a.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new v().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,J(s,t))}post(n,t,s={}){return this.request("POST",n,J(s,t))}put(n,t,s={}){return this.request("PUT",n,J(s,t))}static \u0275fac=function(t){return new(t||r)(w(F))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ke=/^\)\]\}',?\n/,De="X-Request-URL";function ge(r){if(r.url)return r.url;let e=De.toLocaleLowerCase();return r.headers.get(e)}var $=(()=>{class r{fetchImpl=m(G,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ce);handle(n){return new S(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(W,i=>t.error(new E({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Z({signal:t},i)));xe(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new E({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ge(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new B({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,A,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:P,value:k}=await c.read();if(P)break;if(I.push(k),l+=k.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let Y=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:A});u?u.run(Y):Y()}}});let M=this.concatChunks(I,l);try{let P=o.headers.get("Content-Type")??"";y=this.parseBody(n,M,P)}catch(P){s.error(new E({error:P,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ge(o)??n.urlWithParams}));return}}p===0&&(p=y?Ee:0),p>=200&&p<300?(s.next(new U({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new E({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(ke,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),G=class{};function W(){}function xe(r){r.then(W,W)}function Fe(r,e){return e(r)}function Le(r,e,n){return(t,s)=>ie(n,()=>e(t,i=>r(i,s)))}var K=new N(""),je=new N(""),Ue=new N("",{providedIn:"root",factory:()=>!0});var Te=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=m(ae);contributeToStability=m(Ue);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(K),...this.injector.get(je,[])]));this.chain=t.reduceRight((s,i)=>Le(s,i,this.injector),Fe)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ne(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(w(L),w(oe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var _e=/^\)\]\}',?\n/;function Be(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var we=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new te(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Q(t.\u0275loadImpl()):X(null)).pipe(re(()=>new S(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=Be(o)||n.url;return a=new B({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:A}=f(),u=null;l!==Ie&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ee:0);let M=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let P=u;u=u.replace(_e,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=P,M&&(M=!1,u={error:k,text:u})}}M?(i.next(new U({body:u,headers:c,status:l,statusText:T,url:A||void 0})),i.complete()):i.error(new E({error:u,headers:c,status:l,statusText:T,url:A||void 0}))},y=c=>{let{url:l}=f(),T=new E({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},R=!1,h=c=>{R||(i.next(f()),R=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(w(ue))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ve=new N(""),ze="XSRF-TOKEN",Se=new N("",{providedIn:"root",factory:()=>ze}),Xe="X-XSRF-TOKEN",Je=new N("",{providedIn:"root",factory:()=>Xe}),z=class{},Ce=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=he(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(w(de),w(le),w(Se))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Ve(r,e){let n=r.url.toLowerCase();if(!m(ve)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(z).getToken(),s=m(Je);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var q=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(q||{});function be(r,e){return{\u0275kind:r,\u0275providers:e}}function pn(...r){let e=[Me,we,Te,{provide:F,useExisting:Te},{provide:L,useFactory:()=>m($,{optional:!0})??m(we)},{provide:K,useValue:Ve,multi:!0},{provide:ve,useValue:!0},{provide:z,useClass:Ce}];for(let n of r)e.push(...n.\u0275providers);return se(e)}function yn(r){return be(q.Interceptors,r.map(e=>({provide:K,useValue:e,multi:!0})))}function mn(){return be(q.Fetch,[$,{provide:L,useExisting:$}])}export{g as a,U as b,Me as c,pn as d,yn as e,mn as f};
@@ -1 +1 @@
1
- import{Ba as s,Ca as r}from"./chunk-QR6M6QC2.js";import{T as l,Z as a,wa as o}from"./chunk-QPPZDOB4.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{Ba as s,Ca as r}from"./chunk-DC7QVFBV.js";import{T as l,Z as a,wa as o}from"./chunk-UI7YZPLW.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
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-WBW4QTRC.js"><link rel="modulepreload" href="chunk-NOXE2MQS.js"><link rel="modulepreload" href="chunk-XVRZCAFX.js"><link rel="modulepreload" href="chunk-UV6ZII6K.js"><link rel="modulepreload" href="chunk-5ZPDNNPN.js"><link rel="modulepreload" href="chunk-YZWWCZIN.js"><link rel="modulepreload" href="chunk-RV5XJ2ME.js"><link rel="modulepreload" href="chunk-M5PKXXDJ.js"><link rel="modulepreload" href="chunk-LVAGIPHT.js"><link rel="modulepreload" href="chunk-LD6C6SVM.js"><script src="polyfills-DUGKNACR.js" type="module"></script><script src="main-EIMKMMIB.js" type="module"></script></body>
23
+ <link rel="modulepreload" href="chunk-MJMYUASP.js"><link rel="modulepreload" href="chunk-TH3GTINR.js"><link rel="modulepreload" href="chunk-F4ZWNDPA.js"><link rel="modulepreload" href="chunk-MBLB2X2V.js"><link rel="modulepreload" href="chunk-ZG5RYKT7.js"><link rel="modulepreload" href="chunk-3FAE4RKT.js"><link rel="modulepreload" href="chunk-ACQPX6N4.js"><link rel="modulepreload" href="chunk-S3X5GKHD.js"><link rel="modulepreload" href="chunk-LEG3VUID.js"><link rel="modulepreload" href="chunk-ZFV5KH42.js"><script src="polyfills-DUGKNACR.js" type="module"></script><script src="main-BYCXTMII.js" type="module"></script></body>
24
24
  </html>
@@ -1 +1 @@
1
- import{b as re,c as se}from"./chunk-WBW4QTRC.js";import{a as O}from"./chunk-NOXE2MQS.js";import{a as te}from"./chunk-XVRZCAFX.js";import{a as y}from"./chunk-UV6ZII6K.js";import{a as g}from"./chunk-5ZPDNNPN.js";import{d as Y}from"./chunk-YZWWCZIN.js";import{b as q,c as X,f as Z,g as Q}from"./chunk-RV5XJ2ME.js";import{a as _}from"./chunk-M5PKXXDJ.js";import{c as ee}from"./chunk-LVAGIPHT.js";import{a as G,b as K,d as $,e as z,f as B}from"./chunk-LD6C6SVM.js";import{a as ne}from"./chunk-X6YI2XBN.js";import{ua as J}from"./chunk-QR6M6QC2.js";import{b as oe}from"./chunk-5FQGT7TQ.js";import{Ac as W,Bc as F,Db as U,F as C,L,Lc as D,N as S,P as V,T as R,W as j,Xa as l,Z as s,d as x,db as H,ja as P,m as A,y as E,z as k}from"./chunk-QPPZDOB4.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-4VCVYKCF.js")},{path:"logout",loadComponent:()=>import("./chunk-VOKGT6LJ.js")},{path:"",canActivate:[ue],loadComponent:()=>import("./chunk-7TAPZ3BZ.js"),children:[{path:"",loadComponent:()=>import("./chunk-4O464SE6.js")},{path:"add-backup",loadComponent:()=>import("./chunk-LOSE4Q45.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-ZXOBCX33.js")},{path:"backup/import",loadComponent:()=>import("./chunk-WT7OD7CA.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-UZD4ZUGC.js"),loadChildren:()=>import("./chunk-RPZN4LUB.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-UZD4ZUGC.js"),loadChildren:()=>import("./chunk-RPZN4LUB.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-A5RIRRJV.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-XQXVGMTX.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-XW3ZLB27.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-GJPBEQ2P.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-4M2KOHSQ.js")},{path:"from-config",loadComponent:()=>import("./chunk-RNJTHHRX.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-6MJTJEIZ.js"),loadChildren:()=>import("./chunk-CRRYENSB.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-6MJTJEIZ.js"),loadChildren:()=>import("./chunk-CRRYENSB.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-6MJTJEIZ.js"),loadChildren:()=>import("./chunk-CRRYENSB.js")},{path:"settings",loadComponent:()=>import("./chunk-CC5NDKWK.js")},{path:"about",loadComponent:()=>import("./chunk-76SXOHIV.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-FYAAUQ4U.js")},{path:"changelog",loadComponent:()=>import("./chunk-HDRLFXSE.js")},{path:"libraries",loadComponent:()=>import("./chunk-7XODEO3O.js")},{path:"system-info",loadComponent:()=>import("./chunk-4ZZ73XVH.js")},{path:"logs",loadComponent:()=>import("./chunk-6R7AFT3Y.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);
1
+ import{b as re,c as se}from"./chunk-MJMYUASP.js";import{a as O}from"./chunk-TH3GTINR.js";import{a as te}from"./chunk-F4ZWNDPA.js";import{a as y}from"./chunk-MBLB2X2V.js";import{a as g}from"./chunk-ZG5RYKT7.js";import{d as Y}from"./chunk-3FAE4RKT.js";import{b as q,c as X,f as Z,g as Q}from"./chunk-ACQPX6N4.js";import{a as _}from"./chunk-S3X5GKHD.js";import{c as ee}from"./chunk-LEG3VUID.js";import{a as G,b as K,d as $,e as z,f as B}from"./chunk-ZFV5KH42.js";import{a as ne}from"./chunk-7C6ILTIP.js";import{ua as J}from"./chunk-DC7QVFBV.js";import{b as oe}from"./chunk-BUB2XBZH.js";import{Ac as W,Bc as F,Db as U,F as C,L,Lc as D,N as S,P as V,T as R,W as j,Xa as l,Z as s,d as x,db as H,ja as P,m as A,y as E,z as k}from"./chunk-UI7YZPLW.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-6H65UZ2P.js")},{path:"logout",loadComponent:()=>import("./chunk-YMACEDTD.js")},{path:"",canActivate:[ue],loadComponent:()=>import("./chunk-56AHOWAU.js"),children:[{path:"",loadComponent:()=>import("./chunk-LBTXWNGE.js")},{path:"add-backup",loadComponent:()=>import("./chunk-PYT62D3C.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-7JAY2YPN.js")},{path:"backup/import",loadComponent:()=>import("./chunk-YGBHA2P6.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-7M6UFI5Y.js"),loadChildren:()=>import("./chunk-C5SNUVEC.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-7M6UFI5Y.js"),loadChildren:()=>import("./chunk-C5SNUVEC.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-EAZGURHW.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-ICXLTN4I.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-T5UIDW4M.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-K24PCFFN.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-F6O4P5W4.js")},{path:"from-config",loadComponent:()=>import("./chunk-2SBFQL4K.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"settings",loadComponent:()=>import("./chunk-VWTABONU.js")},{path:"about",loadComponent:()=>import("./chunk-LE75M3F5.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-SD7AY2JD.js")},{path:"changelog",loadComponent:()=>import("./chunk-E4ISBSEL.js")},{path:"libraries",loadComponent:()=>import("./chunk-IOBGL3RY.js")},{path:"system-info",loadComponent:()=>import("./chunk-5FDI5MU5.js")},{path:"logs",loadComponent:()=>import("./chunk-V3IF26PI.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);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.55",
2
+ "version": "0.0.56",
3
3
  "name": "@duplicati/ngclient",
4
4
  "license": "MIT",
5
5
  "contributors": [
package/chunk-2HDJ7RRK.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-MOOX7YVA.js";import"./chunk-2BX44Q6S.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-ARY5C3CH.js DELETED
@@ -1 +0,0 @@
1
- import{j as a,k as b,l as c}from"./chunk-UKNW3WA3.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-DNHLTHLR.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
package/chunk-CC5NDKWK.js DELETED
@@ -1 +0,0 @@
1
- import{a as xe}from"./chunk-2BX44Q6S.js";import"./chunk-2FIPFMHZ.js";import{a as K}from"./chunk-WBW4QTRC.js";import{a as z}from"./chunk-NOXE2MQS.js";import{a as ke}from"./chunk-ZYWPO4S4.js";import{a as Oe}from"./chunk-5ZPDNNPN.js";import{a as we}from"./chunk-MSLFDCH4.js";import"./chunk-P6JGC4A4.js";import{b as V,d as B,e as Re,g as W,h as Fe,j as he,l as Pe,m as Ie,o as ye,p as $e,q as j,r as Ge}from"./chunk-OJRUAAHE.js";import{b as U}from"./chunk-YZWWCZIN.js";import{g as be,l as ve,p as Ae,q as De,r as Le}from"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-X6YI2XBN.js";import"./chunk-QR6M6QC2.js";import"./chunk-5FQGT7TQ.js";import{Ab as G,Bb as i,Cb as o,Db as d,Hb as M,Jc as X,Lc as Me,M as A,Na as Ce,Nb as O,Ob as R,Pb as a,Qa as s,Qb as Q,Rb as Y,Sb as Ee,T as ge,Tb as p,Ub as S,Xa as E,Xb as Ne,Z as m,c as me,db as D,ea as g,fa as C,gc as f,hc as b,ic as L,jb as H,lc as k,mc as w,nc as x,q as Te,qc as fe,sb as c,ub as J,xb as N,yb as y,zb as $}from"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";var F=class l{#e=m(U);#i=m(z);repeatRegisterTimer=null;state=E("unknown");claimUrl=E(null);registerUrl=E("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Me(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ge({token:l,factory:l.\u0275fac,providedIn:"root"})};function We(l,e){if(l&1){let t=M();i(0,"spk-form-field",10)(1,"input",11),x("ngModelChange",function(r){g(t);let u=S(2);return w(u.registerUrl,r)||(u.registerUrl=r),C(r)}),o()(),i(2,"button",12),p("click",function(){g(t);let r=S(2);return C(r.register())}),a(3,0),o()}if(l&2){let t=S(2);s(),k("ngModel",t.registerUrl)}}function je(l,e){if(l&1&&(i(0,"div",8)(1,"label"),a(2,1),o(),i(3,"a",13),f(4),o()()),l&2){let t=S(2);s(3),Ne("href",t.claimUrl(),Ce),s(),b(t.claimUrl())}}function Ke(l,e){l&1&&(i(0,"div",8)(1,"label"),a(2,2),o()())}function qe(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=S(2);return C(r.cancel())}),a(1,3),o()}}function He(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=S(2);return C(r.disable())}),a(1,4),o()}}function Je(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=S(2);return C(r.enable())}),a(1,5),o(),i(2,"button",14),p("click",function(){g(t);let r=S(2);return C(r.delete())}),a(3,6),o()}}function Qe(l,e){if(l&1&&(i(0,"div",7),H(1,We,4,1)(2,je,5,2,"div",8)(3,Ke,3,0,"div",8)(4,qe,2,0,"button",9)(5,He,2,0,"button",9)(6,Je,4,0),o()),l&2){let t=S();s(),N(t.state()==="inactive"?1:-1),s(),N(t.state()==="registered"?2:-1),s(),N(t.state()==="registering"?3:-1),s(),N(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),s(),N(t.state()==="connected"||t.state()==="enabled"?5:-1),s(),N(t.state()==="disabled"?6:-1)}}var q=class l{#e=m(F);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(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let u;u=$localize`Disable remote control`;let P;P=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,r,u,P,I,[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(t,n){t&1&&H(0,Qe,7,6,"div",7),t&2&&N(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,ve],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 Ye=()=>({standalone:!0});function Ze(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;c("value",t),s(),b(t)}}function et(l,e){if(l&1){let t=M();i(0,"spk-option",51),p("click",function(){let r=g(t).$implicit,u=S();return C(u.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;c("value",t.value),s(),L(" ",t.label," ")}}function tt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;c("value",t.value),s(),L(" ",t.label," ")}}function nt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;c("value",t.value),s(),L(" ",t.label," ")}}var h=new $e,Ue=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ze=[{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`}],Z=class l{#e=m(ke);#i=m(z);#t=m(U);#n=m(F);#o=m(Oe);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=E("list");langCtrl=E(this.#r);remoteControlStatus=this.#n.status;settingsForm=h.group({pauseSettings:h.group({time:h.control(0),timeType:h.control("s")}),usageStatistics:h.control(""),updateChannel:h.control("")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?K.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):K});usageStatisticsOptions=E(ze);timeTypeOptions=E(Ue);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(A("s")),this.pauseSettings.controls.time.valueChanges.pipe(A(null))],me(Te(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),A([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),u=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:u.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?K.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ue.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:ze.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-settings"]],decls:106,vars:18,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let r;r=$localize`Remote access control`;let u;u=$localize`Pause after startup or hibernation`;let P;P=$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 I;I=$localize`Color theme`;let T;T=$localize`Customize your application theme`;let ee;ee=$localize`Language`;let te;te=$localize`Select a language for the platform`;let ne;ne=$localize`Update channel`;let ie;ie=$localize`Update channel selection is not implemented yet.`;let oe;oe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#65\uFFFD\uFFFD/#65\uFFFD"}:TAG_INPUT:`;let re;re=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let le;le=$localize` Stable ${"\uFFFD#71\uFFFD\uFFFD/#71\uFFFD"}:TAG_INPUT:`;let se;se=$localize`Official releases`;let ae;ae=$localize` Beta ${"\uFFFD#77\uFFFD\uFFFD/#77\uFFFD"}:TAG_INPUT:`;let _e;_e=$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 ue;ue=$localize` Experimental ${"\uFFFD#83\uFFFD\uFFFD/#83\uFFFD"}:TAG_INPUT:`;let pe;pe=$localize`Specific builds for developers only. Not for use with important data.`;let ce;ce=$localize` Canary ${"\uFFFD#89\uFFFD\uFFFD/#89\uFFFD"}:TAG_INPUT:`;let de;de=$localize`Individual builds for developers only. Not for use with important data.`;let Se;Se=$localize`Usage statistics`;let v;return v=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#98\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#98\uFFFD"}:CLOSE_LINK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\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. `,v=Ee(v),[e,t,n,r,u,P,I,T,ee,te,ne,ie,oe,re,le,se,ae,_e,ue,pe,ce,de,Se,v,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(d(0,"app-status-bar"),i(1,"form",24),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",25)(4,"h2"),a(5,0),o(),i(6,"p"),a(7,1),o()(),i(8,"button",26),a(9,2),o()(),i(10,"section")(11,"div",27)(12,"h3"),a(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",28),d(17,"app-remote-control"),o()(),i(18,"section")(19,"div",27)(20,"h3"),a(21,4),o(),i(22,"p"),a(23,5),o()(),i(24,"div",28)(25,"div",29)(26,"spk-select",30),d(27,"input",31),$(28,Ze,2,2,"spk-option",32,y),o(),i(30,"spk-select",33),d(31,"input",34),$(32,et,2,2,"spk-option",32,y),o()()()(),i(34,"section")(35,"div",27)(36,"h3"),a(37,6),o(),i(38,"p"),a(39,7),o()(),i(40,"div",28)(41,"div",35)(42,"img",36),p("click",function(){return n.setLightMode()}),o(),i(43,"img",37),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",27)(46,"h3"),a(47,8),o(),i(48,"p"),a(49,9),o()(),i(50,"div",28)(51,"spk-select",38),p("change",function(u){return n.saveLocale(u)}),i(52,"input",39),x("ngModelChange",function(u){return w(n.langCtrl,u)||(n.langCtrl=u),u}),o(),$(53,tt,2,2,"spk-option",32,y),o()()(),i(55,"section")(56,"div",27)(57,"h3"),a(58,10),o(),i(59,"p"),a(60,11),o()(),i(61,"div",40)(62,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(63,"spk-radio",42),O(64,12),d(65,"input",43),R(),o(),i(66,"p"),a(67,13),o()(),i(68,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(69,"spk-radio",42),O(70,14),d(71,"input",44),R(),o(),i(72,"p"),a(73,15),o()(),i(74,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(75,"spk-radio",42),O(76,16),d(77,"input",45),R(),o(),i(78,"p"),a(79,17),o()(),i(80,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(81,"spk-radio",42),O(82,18),d(83,"input",46),R(),o(),i(84,"p"),a(85,19),o()(),i(86,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(87,"spk-radio",42),O(88,20),d(89,"input",47),R(),o(),i(90,"p"),a(91,21),o()()()(),i(92,"section")(93,"div",27)(94,"h3"),a(95,22),o(),i(96,"p"),O(97,23),d(98,"a",48)(99,"br")(100,"br"),R(),o()(),i(101,"div",28)(102,"spk-select",49),d(103,"input",50),$(104,nt,2,2,"spk-option",32,y),o()()()()),t&2){let r,u;s(),c("formGroup",n.settingsForm),s(7),c("disabled",n.settingsForm.untouched),s(7),b(n.remoteControlStatus()),s(11),c("hideClearButton",!0),s(2),G(n.timeOptions()),s(2),c("displayFn",n.typeDisplay())("hideClearButton",!0),s(2),G(n.timeTypeOptions()),s(10),J("active",!n.isDarkMode()),s(),J("active",n.isDarkMode()),s(8),c("displayFn",n.languageDisplay())("hideClearButton",!0),s(),k("ngModel",n.langCtrl),c("ngModelOptions",fe(17,Ye)),s(),G(n.languageOptions()),s(12),Q((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),Y(64),s(2),Q((u=n.sysinfo())==null?null:u.ServerVersionType),Y(67),s(35),c("displayFn",n.usageDisplay()),s(2),G(n.usageStatisticsOptions())}},dependencies:[j,Fe,V,he,B,Re,W,Ge,Pe,ye,Ie,we,q,De,be,Ae,Le],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%}.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{Z as default};
package/chunk-CRRYENSB.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-RMTDIYIF.js")},{path:"encryption",loadComponent:()=>import("./chunk-Q6OGCUFH.js")},{path:"select-files",loadComponent:()=>import("./chunk-IDDKN7DJ.js")},{path:"options",loadComponent:()=>import("./chunk-2HDJ7RRK.js")}],o=t;export{o as default};
package/chunk-FZOTDUVE.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,e as b,f as c}from"./chunk-UKNW3WA3.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-DNHLTHLR.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
package/chunk-IDDKN7DJ.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b}from"./chunk-MOOX7YVA.js";import"./chunk-2BX44Q6S.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
package/chunk-IOUIIMYX.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-X6YI2XBN.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as BytesPipe};
package/chunk-NQNIYQJE.js DELETED
@@ -1 +0,0 @@
1
- import{g as a,h as b,i as c}from"./chunk-UKNW3WA3.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-DNHLTHLR.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
package/chunk-Q6OGCUFH.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-MOOX7YVA.js";import"./chunk-2BX44Q6S.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
package/chunk-RPZN4LUB.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-NQNIYQJE.js")},{path:"destination",loadComponent:()=>import("./chunk-FZOTDUVE.js")},{path:"source-data",loadComponent:()=>import("./chunk-TTKHY4MZ.js")},{path:"schedule",loadComponent:()=>import("./chunk-YQGVSH43.js")},{path:"options",loadComponent:()=>import("./chunk-ARY5C3CH.js")}];export{o as default};
package/chunk-TTKHY4MZ.js DELETED
@@ -1 +0,0 @@
1
- import{o as a,p as b}from"./chunk-UKNW3WA3.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-DNHLTHLR.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
package/chunk-Y4FDCCMH.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-PJ62WHUK.js";import"./chunk-5FQGT7TQ.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as DurationFormatPipe};
package/chunk-YQGVSH43.js DELETED
@@ -1 +0,0 @@
1
- import{m as a,n as b}from"./chunk-UKNW3WA3.js";import"./chunk-ZFWDSFTH.js";import"./chunk-V3LU4BS4.js";import"./chunk-DNHLTHLR.js";import"./chunk-2FIPFMHZ.js";import"./chunk-NOXE2MQS.js";import"./chunk-OJRUAAHE.js";import"./chunk-YZWWCZIN.js";import"./chunk-RV5XJ2ME.js";import"./chunk-M5PKXXDJ.js";import"./chunk-LVAGIPHT.js";import"./chunk-LD6C6SVM.js";import"./chunk-QR6M6QC2.js";import"./chunk-QPPZDOB4.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};