@duplicati/ngclient 0.0.111 → 0.0.114

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 (83) hide show
  1. package/{chunk-WQLN5T4T.js → chunk-37GXHTIP.js} +1 -1
  2. package/{chunk-MHO7INGX.js → chunk-3IIFLG6J.js} +1 -1
  3. package/{chunk-TJS6O6KD.js → chunk-554T66WI.js} +1 -1
  4. package/chunk-5G5PH7FG.js +1 -0
  5. package/{chunk-RQSBT3TK.js → chunk-66Q4TXVX.js} +1 -1
  6. package/{chunk-YJSWEW6C.js → chunk-6FFPXENZ.js} +1 -1
  7. package/{chunk-2ZVLF3KW.js → chunk-7LU4D3GR.js} +1 -1
  8. package/{chunk-T33TACR6.js → chunk-7WFWZORV.js} +1 -1
  9. package/{chunk-4RGZG24K.js → chunk-CD3DB23J.js} +1 -1
  10. package/chunk-CFVPLY5R.js +1 -0
  11. package/{chunk-QKA2VJWD.js → chunk-CPPV6EJP.js} +1 -1
  12. package/{chunk-65OCE2TY.js → chunk-CTGMG44P.js} +1 -1
  13. package/chunk-DDMQ6BLY.js +1 -0
  14. package/{chunk-KEAH5JAH.js → chunk-E2UB3K6K.js} +1 -1
  15. package/{chunk-PFE36372.js → chunk-EKIPEIC4.js} +1 -1
  16. package/{chunk-6OKAWH4X.js → chunk-EXJKKQZX.js} +1 -1
  17. package/{chunk-CHRKPWRG.js → chunk-F4EEOSGJ.js} +1 -1
  18. package/chunk-F7HHSM2V.js +1 -0
  19. package/chunk-FKJJQJD5.js +1 -0
  20. package/{chunk-URU2SLPX.js → chunk-GJROCOAD.js} +1 -1
  21. package/chunk-HVT5TILQ.js +1 -0
  22. package/{chunk-QP4QZQOW.js → chunk-HXP5ZXIT.js} +1 -1
  23. package/{chunk-NP4VUDPK.js → chunk-IEH3LYA4.js} +1 -1
  24. package/{chunk-JIPJYOH5.js → chunk-JES5INM4.js} +1 -1
  25. package/{chunk-BOBAN442.js → chunk-JLDOA36R.js} +1 -1
  26. package/{chunk-4AECHE4W.js → chunk-JSGFZ2GA.js} +1 -1
  27. package/{chunk-YJNKW5ES.js → chunk-KIGBGT77.js} +1 -1
  28. package/chunk-L76NC2T6.js +1 -0
  29. package/chunk-LVUQRMAC.js +1 -0
  30. package/chunk-N3L3HC4J.js +1 -0
  31. package/{chunk-XJAEXNPS.js → chunk-NDU4DSOM.js} +1 -1
  32. package/{chunk-DDM4R5FN.js → chunk-NE2V7X4C.js} +1 -1
  33. package/{chunk-Z4MV4ZSL.js → chunk-NHQOHNI2.js} +1 -1
  34. package/chunk-NMXJMVL5.js +1 -0
  35. package/{chunk-GDHVQU56.js → chunk-OTLEEXAA.js} +1 -1
  36. package/{chunk-WEQQEKIH.js → chunk-PAS4EMZF.js} +1 -1
  37. package/chunk-PFWSXI4B.js +1 -0
  38. package/{chunk-CR4OKZPA.js → chunk-PPP3I2ZR.js} +1 -1
  39. package/{chunk-2MCIQSK2.js → chunk-PQVEQNEN.js} +1 -1
  40. package/{chunk-45RYC5NZ.js → chunk-Q2HZC6ZI.js} +1 -1
  41. package/{chunk-HLHNKLWF.js → chunk-QBFBFWG2.js} +1 -1
  42. package/chunk-QDH6LNFG.js +1 -0
  43. package/{chunk-3M3M4YXP.js → chunk-R6GGQ2GT.js} +1 -1
  44. package/chunk-R7CDA4HX.js +1 -0
  45. package/chunk-RCU74ULS.js +1 -0
  46. package/{chunk-LQ5ORNDI.js → chunk-RGVPD4PJ.js} +1 -1
  47. package/{chunk-XTWVXTYP.js → chunk-RJ4U6XAH.js} +1 -1
  48. package/chunk-RN7NMYKV.js +8 -0
  49. package/chunk-RZN7GZTZ.js +1 -0
  50. package/chunk-S3S677ZR.js +1 -0
  51. package/{chunk-2KUDLHPP.js → chunk-S47LQILW.js} +1 -1
  52. package/{chunk-VN7JM6M3.js → chunk-SPHWZHBB.js} +1 -1
  53. package/chunk-TZUFH3TN.js +1 -0
  54. package/{chunk-IIB7YCLW.js → chunk-UTVV2FB5.js} +1 -1
  55. package/chunk-V3LXB3BU.js +1 -0
  56. package/{chunk-UMP4YQXB.js → chunk-VSSZRSCG.js} +1 -1
  57. package/{chunk-SKJ6XSV3.js → chunk-W6OH3HBG.js} +1 -1
  58. package/{chunk-6DH6O5YE.js → chunk-Z2NFEFOH.js} +1 -1
  59. package/{chunk-ZMDK6XIQ.js → chunk-ZCC3C2X4.js} +1 -1
  60. package/index.html +2 -2
  61. package/{main-S6Q4T2BU.js → main-EVBG63XG.js} +1 -1
  62. package/package.json +1 -1
  63. package/styles-UL5PH77J.css +1 -0
  64. package/chunk-25ZZFR2F.js +0 -1
  65. package/chunk-3KSBRC3X.js +0 -1
  66. package/chunk-7S5SYCMV.js +0 -1
  67. package/chunk-AADIFDNE.js +0 -1
  68. package/chunk-D3I33UIQ.js +0 -1
  69. package/chunk-HPGYPP74.js +0 -1
  70. package/chunk-JD54W4UA.js +0 -8
  71. package/chunk-JV6DGJII.js +0 -1
  72. package/chunk-LZUCVLMF.js +0 -1
  73. package/chunk-MHHVE6AV.js +0 -1
  74. package/chunk-P5SS3OV3.js +0 -1
  75. package/chunk-PN73DZ2H.js +0 -1
  76. package/chunk-QJILVQSS.js +0 -1
  77. package/chunk-VLIGMNJX.js +0 -1
  78. package/chunk-W577IVOD.js +0 -1
  79. package/chunk-WX7L7V6J.js +0 -1
  80. package/chunk-X4SAPDOB.js +0 -1
  81. package/chunk-X5YRWKCW.js +0 -1
  82. package/chunk-YD7PS7OS.js +0 -1
  83. package/styles-V3SS5M3J.css +0 -1
@@ -1 +1 @@
1
- import{a as P,c as A}from"./chunk-CHRKPWRG.js";import{e as d}from"./chunk-WX7L7V6J.js";import{h as k}from"./chunk-4AECHE4W.js";import{l as M}from"./chunk-CKPICCFH.js";import{Ac as g,Bc as b,Gb as v,Hb as E,Ib as N,Jb as I,Kb as F,O as C,Qa as T,S as c,Y as s,ab as O,i as S,pc as w,rc as y,ua as n,wb as m,xb as f,yb as _}from"./chunk-W2F756OF.js";var r=class o{reconnectTimer=n(15e3);countdown=n(0);connectTimerEffect=b(()=>{let t=this.reconnectTimer();this.countdown.set(t/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let t;t=$localize`Reconnecting...`;let e;return e=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[t,e,["header",""],["content",""]]},template:function(e,i){e&1&&(m(0,"header",2)(1,"h3"),N(2,0),f()(),m(3,"div",3)(4,"p"),v(5,1),_(6,"strong"),w(7,"number"),E(),f()()),e&2&&(T(7),I(y(7,1,i.countdown(),"2.0-0")),F(5))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var h=class o{dialog=s(d);#o=s(k);#t=n("disconnected");#e=n(null);#s=n(-1);#n=n(0);#i=n(!1);#c=new S;connectionStatus=this.#t.asReadonly();serverState=this.#e.asReadonly();#r=void 0;duration=s(P).relayIsEnabled()?"94s":"299s";start(){this.#i.set(!0),this.#c=new S,this.#a()}stop(){this.#c.next(),this.#c.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#a(){this.#t.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#s(),longpoll:this.#s()>0,duration:this.duration}).pipe(C(this.#c)).subscribe({next:t=>{t&&this.#l(t),this.#d()},error:t=>{let i=this.#n()+1,l=Math.min(5e3*i,3e4);this.#n.set(i),i>3&&this.#t.set("disconnected"),this.#r||(this.#r=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#r.component.reconnectTimer.set(l),setTimeout(()=>{this.#a()},l)}})}#l(t){this.#t.set("connected"),this.#e.set(t),this.#s.set(t.LastEventID||-1),this.#n.set(0)}#d(){this.#i()&&this.#a()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var p=class o{#o=s(A);dialog=s(d);#t=null;#e=n("disconnected");#s=n(null);#n=void 0;shouldConnect=n(!0);connectionStatus=this.#e.asReadonly();serverState=this.#s.asReadonly();start(){this.#i(),this.shouldConnect.set(!0)}#i(){let t=this.#o.token();if(!t){console.error("No access token available");return}let e=window.location.protocol==="https:"?"wss:":"ws:",i=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(i=":8200");let l=window.location.hostname,$=`${e}//${l}${i}/notifications?token=${t}`;this.#e.set("connecting"),this.#t=new WebSocket($),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#e.set("connected"),this.#n&&this.#n.close()},this.#t.onmessage=a=>{try{let u=JSON.parse(a.data);this.#s.set(u)}catch(u){console.error("Error parsing WebSocket message",u)}},this.#t.onclose=a=>{console.log("WebSocket connection closed",a),this.#e.set("disconnected"),this.shouldConnect()&&(this.#n||(this.#n=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#n.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#i(),5e3))},this.#t.onerror=a=>{console.error("WebSocket error",a),this.#e.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var R=class o{#o=s(p);#t=s(h);#e=n("longpoll");connectionStatus=g(()=>this.#e()==="websocket"?this.#o.connectionStatus():this.#t.connectionStatus());serverState=g(()=>this.#e()==="websocket"?this.#o.serverState():this.#t.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#t.stop()):(this.#t.reconnectIfNeeded(),this.#o.stop()),this.#e.set(t)}getConnectionMethod(){return this.#e()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};export{R as a};
1
+ import{a as P,c as A}from"./chunk-F4EEOSGJ.js";import{e as d}from"./chunk-NMXJMVL5.js";import{h as k}from"./chunk-JSGFZ2GA.js";import{l as M}from"./chunk-CKPICCFH.js";import{Ac as g,Bc as b,Gb as v,Hb as E,Ib as N,Jb as I,Kb as F,O as C,Qa as T,S as c,Y as s,ab as O,i as S,pc as w,rc as y,ua as n,wb as m,xb as f,yb as _}from"./chunk-W2F756OF.js";var r=class o{reconnectTimer=n(15e3);countdown=n(0);connectTimerEffect=b(()=>{let t=this.reconnectTimer();this.countdown.set(t/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=O({type:o,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let t;t=$localize`Reconnecting...`;let e;return e=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[t,e,["header",""],["content",""]]},template:function(e,i){e&1&&(m(0,"header",2)(1,"h3"),N(2,0),f()(),m(3,"div",3)(4,"p"),v(5,1),_(6,"strong"),w(7,"number"),E(),f()()),e&2&&(T(7),I(y(7,1,i.countdown(),"2.0-0")),F(5))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var h=class o{dialog=s(d);#o=s(k);#t=n("disconnected");#e=n(null);#s=n(-1);#n=n(0);#i=n(!1);#c=new S;connectionStatus=this.#t.asReadonly();serverState=this.#e.asReadonly();#r=void 0;duration=s(P).relayIsEnabled()?"94s":"299s";start(){this.#i.set(!0),this.#c=new S,this.#a()}stop(){this.#c.next(),this.#c.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#a(){this.#t.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#s(),longpoll:this.#s()>0,duration:this.duration}).pipe(C(this.#c)).subscribe({next:t=>{t&&this.#l(t),this.#d()},error:t=>{let i=this.#n()+1,l=Math.min(5e3*i,3e4);this.#n.set(i),i>3&&this.#t.set("disconnected"),this.#r||(this.#r=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#r.component.reconnectTimer.set(l),setTimeout(()=>{this.#a()},l)}})}#l(t){this.#t.set("connected"),this.#e.set(t),this.#s.set(t.LastEventID||-1),this.#n.set(0)}#d(){this.#i()&&this.#a()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var p=class o{#o=s(A);dialog=s(d);#t=null;#e=n("disconnected");#s=n(null);#n=void 0;shouldConnect=n(!0);connectionStatus=this.#e.asReadonly();serverState=this.#s.asReadonly();start(){this.#i(),this.shouldConnect.set(!0)}#i(){let t=this.#o.token();if(!t){console.error("No access token available");return}let e=window.location.protocol==="https:"?"wss:":"ws:",i=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(i=":8200");let l=window.location.hostname,$=`${e}//${l}${i}/notifications?token=${t}`;this.#e.set("connecting"),this.#t=new WebSocket($),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#e.set("connected"),this.#n&&this.#n.close()},this.#t.onmessage=a=>{try{let u=JSON.parse(a.data);this.#s.set(u)}catch(u){console.error("Error parsing WebSocket message",u)}},this.#t.onclose=a=>{console.log("WebSocket connection closed",a),this.#e.set("disconnected"),this.shouldConnect()&&(this.#n||(this.#n=this.dialog.open(r,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#n.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#i(),5e3))},this.#t.onerror=a=>{console.error("WebSocket error",a),this.#e.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};var R=class o{#o=s(p);#t=s(h);#e=n("longpoll");connectionStatus=g(()=>this.#e()==="websocket"?this.#o.connectionStatus():this.#t.connectionStatus());serverState=g(()=>this.#e()==="websocket"?this.#o.serverState():this.#t.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#t.stop()):(this.#t.reconnectIfNeeded(),this.#o.stop()),this.#e.set(t)}getConnectionMethod(){return this.#e()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})};export{R as a};
@@ -1 +1 @@
1
- import{a as L}from"./chunk-I3C2AEHI.js";import{d as A}from"./chunk-QVIZK4WW.js";import{a as k,c as I,h as w}from"./chunk-4AECHE4W.js";import{B as m,E as o,F as y,P as l,S as a,Y as i,f as h,k as u,n as g,r as d,ua as n}from"./chunk-W2F756OF.js";var c=class s{#r=i(L);#i=n(null);#t=window.self!==window.top;#s=n(this.#t);relayIsEnabled=this.#s.asReadonly();config=this.#i.asReadonly();configLoaded=this.#t?new u:null;isLoading=n(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#n(),this.#t&&(this.#s.set(!0),this.parentIframeListner=new AbortController,this.#e("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),r=JSON.parse(t);if(!r?.accessToken||!r?.clientId){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof r.clientId!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof r.accessToken!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}let R=this.#r.getItem("locale")??"en-US",p=r.locale??"en-US";R!==p&&(this.#r.setItem("locale",p),window.location.reload()),this.#i.set(r),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#e("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#e(e){window.parent.postMessage(e,"*")}#n(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",b=class s{#r=i(A);#i=i(I);#t=i(w);#s=i(c);#e=n(null);#n=n(!1);token=this.#e.asReadonly();isLoggingOut=this.#n.asReadonly();login(e){return this.#t.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),l(t=>t.AccessToken&&this.#e.set(t.AccessToken)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#e.set(f),new h(e=>{e.next({AccessToken:f}),e.complete()})):this.#t.postApiV1AuthRefresh().pipe(o(1),l(e=>e.AccessToken&&this.#e.set(e.AccessToken)))}checkProxyAuthed(){let e=new k({"custom-proxy-check":"true"});return this.#i.get("/api/v1/systeminfo",{headers:e}).pipe(d(()=>(this.#e.set(f),!0)),m(()=>g(!1)))}logout(){this.#n.set(!0),this.#t.postApiV1AuthRefreshLogout().pipe(o(1),y(()=>{this.#n.set(!1),this.#e.set(null),this.#r.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{c as a,f as b,b as c};
1
+ import{a as L}from"./chunk-I3C2AEHI.js";import{d as A}from"./chunk-QVIZK4WW.js";import{a as k,c as I,h as w}from"./chunk-JSGFZ2GA.js";import{B as m,E as o,F as y,P as l,S as a,Y as i,f as h,k as u,n as g,r as d,ua as n}from"./chunk-W2F756OF.js";var c=class s{#r=i(L);#i=n(null);#t=window.self!==window.top;#s=n(this.#t);relayIsEnabled=this.#s.asReadonly();config=this.#i.asReadonly();configLoaded=this.#t?new u:null;isLoading=n(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#n(),this.#t&&(this.#s.set(!0),this.parentIframeListner=new AbortController,this.#e("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),r=JSON.parse(t);if(!r?.accessToken||!r?.clientId){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof r.clientId!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof r.accessToken!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}let R=this.#r.getItem("locale")??"en-US",p=r.locale??"en-US";R!==p&&(this.#r.setItem("locale",p),window.location.reload()),this.#i.set(r),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#e("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#e(e){window.parent.postMessage(e,"*")}#n(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",b=class s{#r=i(A);#i=i(I);#t=i(w);#s=i(c);#e=n(null);#n=n(!1);token=this.#e.asReadonly();isLoggingOut=this.#n.asReadonly();login(e){return this.#t.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),l(t=>t.AccessToken&&this.#e.set(t.AccessToken)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#e.set(f),new h(e=>{e.next({AccessToken:f}),e.complete()})):this.#t.postApiV1AuthRefresh().pipe(o(1),l(e=>e.AccessToken&&this.#e.set(e.AccessToken)))}checkProxyAuthed(){let e=new k({"custom-proxy-check":"true"});return this.#i.get("/api/v1/systeminfo",{headers:e}).pipe(d(()=>(this.#e.set(f),!0)),m(()=>g(!1)))}logout(){this.#n.set(!0),this.#t.postApiV1AuthRefreshLogout().pipe(o(1),y(()=>{this.#n.set(!1),this.#e.set(null),this.#r.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{c as a,f as b,b as c};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var o=[{path:"",loadComponent:()=>import("./chunk-JLDOA36R.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-VSSZRSCG.js")},{path:"live",loadComponent:()=>import("./chunk-HVT5TILQ.js")}]}],t=o;export{t as default};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import"./chunk-7L42EO7J.js";import"./chunk-RHW5QVAY.js";import"./chunk-T2OUHRUV.js";import"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -1 +1 @@
1
- import{h as u}from"./chunk-4AECHE4W.js";import{Ac as i,F as a,P as p,S as l,Y as m,ua as n}from"./chunk-W2F756OF.js";var d=class r{#s=m(u);isLoaded=n(!1);systemInfo=n(null);filterGroups=n(null);backendModules=i(()=>this.systemInfo()?.BackendModules??[]);allOptionsGrouped=i(()=>{let e={displayName:"Default",options:this.systemInfo()?.Options?.map(this.#e)??[]},s=this.systemInfo()?.GenericModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[],o=this.systemInfo()?.CompressionModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[];return[e,...s,...o]});allOptions=i(()=>this.allOptionsGrouped().reduce((e,s)=>[...e,...s.options],[]));hasV2ListOperations=i(()=>{let e=this.systemInfo()?.APIExtensions??[];return e.includes("v2:backup:list-filesets")&&e.includes("v2:backup:list-folder")});hasV2TestOperations=i(()=>(this.systemInfo()?.APIExtensions??[]).includes("v2:destination:test"));preload(e=!1){let s=this.#s.getApiV1Systeminfo().pipe(p(o=>{this.systemInfo.set(o)}),a(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}preloadFilterGroups(e=!1){let s=this.#s.getApiV1SysteminfoFiltergroups().pipe(p(o=>{this.filterGroups.set(o)}),a(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}#e(e){return{name:e.Name,type:e.Type,shortDescription:e.ShortDescription??void 0,longDescription:e.LongDescription??void 0,options:e.ValidValues}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{d as a};
1
+ import{h as u}from"./chunk-JSGFZ2GA.js";import{Ac as i,F as a,P as p,S as l,Y as m,ua as n}from"./chunk-W2F756OF.js";var d=class r{#s=m(u);isLoaded=n(!1);systemInfo=n(null);filterGroups=n(null);backendModules=i(()=>this.systemInfo()?.BackendModules??[]);allOptionsGrouped=i(()=>{let e={displayName:"Default",options:this.systemInfo()?.Options?.map(this.#e)??[]},s=this.systemInfo()?.GenericModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[],o=this.systemInfo()?.CompressionModules?.map(t=>({displayName:t.DisplayName??t.Key,options:t.Options?.map(this.#e)??[]}))??[];return[e,...s,...o]});allOptions=i(()=>this.allOptionsGrouped().reduce((e,s)=>[...e,...s.options],[]));hasV2ListOperations=i(()=>{let e=this.systemInfo()?.APIExtensions??[];return e.includes("v2:backup:list-filesets")&&e.includes("v2:backup:list-folder")});hasV2TestOperations=i(()=>(this.systemInfo()?.APIExtensions??[]).includes("v2:destination:test"));preload(e=!1){let s=this.#s.getApiV1Systeminfo().pipe(p(o=>{this.systemInfo.set(o)}),a(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}preloadFilterGroups(e=!1){let s=this.#s.getApiV1SysteminfoFiltergroups().pipe(p(o=>{this.filterGroups.set(o)}),a(()=>this.isLoaded.set(!0)));if(e)return s;s.subscribe()}#e(e){return{name:e.Name,type:e.Type,shortDescription:e.ShortDescription??void 0,longDescription:e.LongDescription??void 0,options:e.ValidValues}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{d as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-NE2V7X4C.js";import"./chunk-CD3DB23J.js";import"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";export{a as default};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-2ZVLF3KW.js";import{h as u}from"./chunk-4AECHE4W.js";import{B as h,Bc as N,E as s,F as p,P as d,S as l,Y as r,n as c,ua as o,x as f}from"./chunk-W2F756OF.js";var b=class a{#e=r(u);#s=r(m);serverState=this.#s.serverState;serverStateEffect=N(()=>{let t=this.#s.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID)});#o=-1;#a=o(!1);#t=o([]);#i=o([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o!==t&&(this.#o=t,this.getNotifications())}getNotifications(){this.#a.set(!0),this.#e.getApiV1Notifications().pipe(s(1),d(t=>this.#t.set(t)),p(()=>this.#a.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(s(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(s(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(h(()=>c(e))));f(i).pipe(s(1)).subscribe({next:e=>{let v=e.filter(n=>n!=null&&"ID"in n);this.#t.set(v),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=l({token:a,factory:a.\u0275fac,providedIn:"root"})};export{b as a};
1
+ import{a as m}from"./chunk-7LU4D3GR.js";import{h as u}from"./chunk-JSGFZ2GA.js";import{B as h,Bc as N,E as s,F as p,P as d,S as l,Y as r,n as c,ua as o,x as f}from"./chunk-W2F756OF.js";var b=class a{#e=r(u);#s=r(m);serverState=this.#s.serverState;serverStateEffect=N(()=>{let t=this.#s.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID)});#o=-1;#a=o(!1);#t=o([]);#i=o([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o!==t&&(this.#o=t,this.getNotifications())}getNotifications(){this.#a.set(!0),this.#e.getApiV1Notifications().pipe(s(1),d(t=>this.#t.set(t)),p(()=>this.#a.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(s(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(s(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(h(()=>c(e))));f(i).pipe(s(1)).subscribe({next:e=>{let v=e.filter(n=>n!=null&&"ID"in n);this.#t.set(v),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=l({token:a,factory:a.\u0275fac,providedIn:"root"})};export{b as a};
@@ -1,3 +1,3 @@
1
- import{a as fe}from"./chunk-VLIGMNJX.js";import{n as P}from"./chunk-JD54W4UA.js";import"./chunk-6DH6O5YE.js";import"./chunk-YJSWEW6C.js";import{a as Ne}from"./chunk-VN7JM6M3.js";import"./chunk-KSP3JQHY.js";import{a as T}from"./chunk-HTNYQE2B.js";import"./chunk-URU2SLPX.js";import{a as Me}from"./chunk-TJS6O6KD.js";import"./chunk-7L42EO7J.js";import"./chunk-2ZVLF3KW.js";import"./chunk-6OKAWH4X.js";import"./chunk-GDHVQU56.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as re,e as le,f as se,i as me,m as de,n as pe,o as _e,q as ce,r as ue,s as Ce,t as ge}from"./chunk-T2OUHRUV.js";import"./chunk-CHRKPWRG.js";import"./chunk-I3C2AEHI.js";import{b as q,d as Z,e as J}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as ee,g as te,k as ne,l as oe,p as ie,t as ae}from"./chunk-WX7L7V6J.js";import{g as Q,h as Y}from"./chunk-4AECHE4W.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Ab as O,Bc as H,Cb as G,Gb as M,Hb as N,Ib as _,Jb as x,Kb as U,Mb as K,Nb as f,Qa as m,Rb as w,Y as C,ab as $,da as S,ea as E,ec as X,fb as h,fc as z,gc as V,kc as W,lc as j,nb as u,pb as b,sb as B,tb as R,ua as F,ub as y,vb as v,wb as r,xb as o,yb as l,zb as A}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Se=()=>[];function Ee(s,t){s&1&&l(0,"spk-progress-bar",12)}function Fe(s,t){if(s&1&&(r(0,"spk-form-field"),l(1,"input",32),o()),s&2){let e=t.$implicit,i=t.$index;m(),w("id","filter-",i,""),u("formControl",e)}}function Ae(s,t){if(s&1){let e=G();r(0,"form",13)(1,"spk-select",14)(2,"label",15),_(3,1),o(),l(4,"input",16),o(),r(5,"spk-form-field")(6,"label",17),_(7,2),o(),l(8,"textarea",18),o(),r(9,"spk-form-field")(10,"label",19),_(11,3),o(),l(12,"textarea",20),o()(),r(13,"spk-divider"),_(14,4),o(),r(15,"form",13)(16,"spk-form-field")(17,"label",21),_(18,5),o(),l(19,"input",22),o(),r(20,"spk-form-field")(21,"label",23),_(22,6),o(),l(23,"input",24),o(),r(24,"app-toggle-card",25),A(25,26),_(26,7),O(),A(27,27),y(28,Fe,2,3,"spk-form-field",null,R),O(),o()(),r(30,"p"),M(31,8),l(32,"a",28),N(),o(),r(33,"app-options-list",29),V("optionsChange",function(a){S(e);let c=f();return z(c.settings,a)||(c.settings=a),E(a)}),o(),r(34,"div",30)(35,"button",31),K("click",function(){S(e);let a=f();return E(a.submit())}),M(36,9),l(37,"spk-icon"),N(),o()()}if(s&2){let e,i=f();u("formGroup",i.baseCmdForm),m(),u("options",(e=i.commandOptions())!==null&&e!==void 0?e:j(10,Se))("inlineSearch",!0),m(14),u("formGroup",i.standardFields),m(9),u("disallowToggle",!0),m(4),v(i.standardFields.controls.filters.controls),m(5),X("options",i.settings),u("hasFreeTextSettings",!0),m(2),b("loader",i.isSubmitting()),m(2),x(i.baseCmdForm.value.command),U(36)}}var d=new ue,Oe=["Bytes","KB","MB","GB","TB","PB"],I=class s{#e=C(P);#t=C(Y);#n=C(Z);#o=C(q);#i=C(Q);#a=T(this.#o.params);commandOptions=T(this.#i.getApiV1Commandline());sizeOptions=F(Oe);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=H(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",i=t.arguments?.split(`
1
+ import{a as fe}from"./chunk-5G5PH7FG.js";import{n as P}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import{a as Ne}from"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import{a as T}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as Me}from"./chunk-554T66WI.js";import"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as re,e as le,f as se,i as me,m as de,n as pe,o as _e,q as ce,r as ue,s as Ce,t as ge}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as q,d as Z,e as J}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as ee,g as te,k as ne,l as oe,p as ie,t as ae}from"./chunk-NMXJMVL5.js";import{g as Q,h as Y}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{Ab as O,Bc as H,Cb as G,Gb as M,Hb as N,Ib as _,Jb as x,Kb as U,Mb as K,Nb as f,Qa as m,Rb as w,Y as C,ab as $,da as S,ea as E,ec as X,fb as h,fc as z,gc as V,kc as W,lc as j,nb as u,pb as b,sb as B,tb as R,ua as F,ub as y,vb as v,wb as r,xb as o,yb as l,zb as A}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Se=()=>[];function Ee(s,t){s&1&&l(0,"spk-progress-bar",12)}function Fe(s,t){if(s&1&&(r(0,"spk-form-field"),l(1,"input",32),o()),s&2){let e=t.$implicit,i=t.$index;m(),w("id","filter-",i,""),u("formControl",e)}}function Ae(s,t){if(s&1){let e=G();r(0,"form",13)(1,"spk-select",14)(2,"label",15),_(3,1),o(),l(4,"input",16),o(),r(5,"spk-form-field")(6,"label",17),_(7,2),o(),l(8,"textarea",18),o(),r(9,"spk-form-field")(10,"label",19),_(11,3),o(),l(12,"textarea",20),o()(),r(13,"spk-divider"),_(14,4),o(),r(15,"form",13)(16,"spk-form-field")(17,"label",21),_(18,5),o(),l(19,"input",22),o(),r(20,"spk-form-field")(21,"label",23),_(22,6),o(),l(23,"input",24),o(),r(24,"app-toggle-card",25),A(25,26),_(26,7),O(),A(27,27),y(28,Fe,2,3,"spk-form-field",null,R),O(),o()(),r(30,"p"),M(31,8),l(32,"a",28),N(),o(),r(33,"app-options-list",29),V("optionsChange",function(a){S(e);let c=f();return z(c.settings,a)||(c.settings=a),E(a)}),o(),r(34,"div",30)(35,"button",31),K("click",function(){S(e);let a=f();return E(a.submit())}),M(36,9),l(37,"spk-icon"),N(),o()()}if(s&2){let e,i=f();u("formGroup",i.baseCmdForm),m(),u("options",(e=i.commandOptions())!==null&&e!==void 0?e:j(10,Se))("inlineSearch",!0),m(14),u("formGroup",i.standardFields),m(9),u("disallowToggle",!0),m(4),v(i.standardFields.controls.filters.controls),m(5),X("options",i.settings),u("hasFreeTextSettings",!0),m(2),b("loader",i.isSubmitting()),m(2),x(i.baseCmdForm.value.command),U(36)}}var d=new ue,Oe=["Bytes","KB","MB","GB","TB","PB"],I=class s{#e=C(P);#t=C(Y);#n=C(Z);#o=C(q);#i=C(Q);#a=T(this.#o.params);commandOptions=T(this.#i.getApiV1Commandline());sizeOptions=F(Oe);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=H(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",i=t.arguments?.split(`
2
2
  `).filter(n=>n.length>0)??[],a=this.standardFields.value,c=a.filters??[],g=[t.command,e,...i,`--backup-name=${a["backup-name"]}`,`--dbpath=${a.dbpath}`,`--backup-id=${a["backup-id"]}`,...c.filter(n=>n).map(n=>n.startsWith("-")?`--exclude=${n?.slice(1)}`:`--include=${n}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(n=>n.Name.startsWith("--")?`${n.Name}=${n.Value}`:`--${n.Name}=${n.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:g}).subscribe(n=>{n.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",n.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
3
3
  `)??""})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=$({type:s,selectors:[["app-commandline"]],features:[W([P])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Command`;let i;i=$localize`TargetUrl`;let a;a=$localize`Commandline Arguments`;let c;c=$localize`Advanced options`;let g;g=$localize`Backup ID`;let n;n=$localize`Backup Name`;let k;k=$localize`Filters`;let D;D=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#32\uFFFD"}:START_LINK:Read more${"\uFFFD/#32\uFFFD"}:CLOSE_LINK:`;let L;return L=$localize`${"\uFFFD#37\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#37\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,i,a,c,g,n,k,D,L,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],["href","#",1,"spk-primary"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,i){e&1&&(l(0,"app-status-bar"),r(1,"section")(2,"div",10)(3,"button",11),M(4,0),l(5,"spk-icon"),N(),o()(),h(6,Ee,1,0,"spk-progress-bar",12)(7,Ae,38,11),o()),e&2&&(m(6),B(i.finishedLoading()?7:6))},dependencies:[Ce,me,re,le,se,Me,fe,Ne,ge,de,pe,ce,_e,J,oe,te,ne,ae,ie,ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{I as default};
@@ -1 +1 @@
1
- import{a as De}from"./chunk-TJS6O6KD.js";import{a as Ae}from"./chunk-7L42EO7J.js";import"./chunk-2ZVLF3KW.js";import"./chunk-6OKAWH4X.js";import{a as fe}from"./chunk-GDHVQU56.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-CHRKPWRG.js";import"./chunk-I3C2AEHI.js";import{e as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as X,e as ke,g as z,h as Pe,j as Ne,k as $e,o as w,p as Ie}from"./chunk-WX7L7V6J.js";import{h as me}from"./chunk-4AECHE4W.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as S,Ab as T,Cb as x,F as D,Gb as p,Hb as d,Ib as s,Jb as I,Kb as f,Mb as M,Nb as u,Qa as c,Y as R,ab as Me,bc as N,da as O,ea as m,fb as C,kb as Ce,lb as Oe,lc as L,mc as P,nb as g,pb as $,pc as A,qc as G,rc as h,sb as k,tb as y,ua as H,ub as B,vb as b,wb as _,xb as t,yb as r,zb as E}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Re=()=>[v,z,X,Ne,$e,w,import("./chunk-SEA4YEEO.js").then(e=>e.DurationFormatPipe),import("./chunk-CETM57LL.js").then(e=>e.BytesPipe),import("./chunk-MHO7INGX.js").then(e=>e.RelativeTimePipe)],He=()=>["/add-backup"],ye=()=>["/restore"],Be=e=>["/backup",e],be=e=>["/restore",e],xe=e=>["/backup",e,"export"],Le=e=>["/backup",e,"database"],Ge=e=>["/backup",e,"commandline"],he=e=>["/backup",e,"log"];function ve(e,i){if(e&1){let o=x();_(0,"button",42),M("click",function(){let l=O(o).$implicit,F=u();return m(F.setOrderBy(l.value))}),s(1,11),t()}if(e&2){let o=i.$implicit,n=u();$("active",n.orderBy()===o.value),c(),I(o.label),f(1)}}function Xe(e,i){if(e&1&&(S(0),A(1,"durationFormat")),e&2){let o=u().$implicit,n=u(3);N(" ",h(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.LastBackupDuration,n.timeType()==="actual")," ")}}function ze(e,i){e&1&&(E(0),s(1,26),T())}function we(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceFilesSize)," ")}}function Ke(e,i){e&1&&(E(0),s(1,27),T())}function Ve(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.TargetFilesSize)," ")}}function je(e,i){e&1&&(E(0),s(1,28),T())}function qe(e,i){if(e&1&&(_(0,"spk-chip",46),s(1,29),t()),e&2){let o=u().$implicit;c(),I(o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount),f(1)}}function Ue(e,i){e&1&&(_(0,"spk-chip",47),s(1,30),t())}function We(e,i){e&1&&(_(0,"spk-icon"),S(1,"check"),t())}function Je(e,i){e&1&&(_(0,"spk-icon"),S(1,"dots-three-vertical"),t())}function Qe(e,i){if(e&1){let o=x();_(0,"div",45)(1,"div",35)(2,"h3"),S(3),_(4,"spk-icon"),S(5,"database"),t()(),_(6,"p")(7,"span"),s(8,12),t(),S(9),A(10,"relativeTime"),t(),_(11,"p")(12,"span"),s(13,13),t(),C(14,Xe,2,4)(15,ze,2,0,"ng-container"),t(),_(16,"p")(17,"span"),s(18,14),t(),C(19,we,2,3)(20,Ke,2,0,"ng-container"),t(),_(21,"p")(22,"span"),s(23,15),t(),C(24,Ve,2,3)(25,je,2,0,"ng-container"),t()(),C(26,qe,2,1,"spk-chip",46)(27,Ue,2,0,"spk-chip",47),_(28,"div",39)(29,"button",48),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.startBackup(l.Backup==null?null:l.Backup.ID))}),p(30,16),r(31,"spk-icon"),d(),t(),_(32,"button",49)(33,"spk-icon"),S(34,"pencil-simple"),t()(),_(35,"spk-menu",50)(36,"button",36),C(37,We,2,0,"spk-icon")(38,Je,2,0,"spk-icon"),t(),E(39,41),_(40,"h3",51),S(41,"Operations"),t(),_(42,"button",52),p(43,17),r(44,"spk-icon"),d(),t(),_(45,"button",52),p(46,18),r(47,"spk-icon"),d(),t(),_(48,"button",53),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.deleteBackup(l.Backup==null?null:l.Backup.ID))}),p(49,19),r(50,"spk-icon"),d(),t(),r(51,"spk-divider"),_(52,"h3",51),S(53,"Advanced"),t(),_(54,"button",52),p(55,20),r(56,"spk-icon"),d(),t(),_(57,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.verifyFiles(l.Backup==null?null:l.Backup.ID))}),p(58,21),r(59,"spk-icon"),d(),t(),_(60,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.compressBackup(l.Backup==null?null:l.Backup.ID))}),p(61,22),r(62,"spk-icon"),d(),t(),_(63,"button",52),p(64,23),r(65,"spk-icon"),d(),t(),r(66,"spk-divider"),_(67,"h3",51),S(68,"Reporting"),t(),_(69,"button",52),p(70,24),r(71,"spk-icon"),d(),t(),_(72,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.createErrorReport(l.Backup==null?null:l.Backup.ID))}),p(73,25),r(74,"spk-icon"),d(),t(),T(),t()()()}if(e&2){let o,n=i.$implicit,l=u(3);c(3),N(" ",(o=n.Backup==null?null:n.Backup.Name)!==null&&o!==void 0?o:l.MISSING_BACKUP_NAME," "),c(6),N(" ",h(10,22,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,l.timeType()==="actual")," "),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?14:15),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?19:20),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?24:25),c(2),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?26:27),c(3),$("loader",l.startingBackup()===(n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(25,Be,n.Backup==null?null:n.Backup.ID)),c(3),g("right",!0),c(),$("loader",l.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",l.successId()===(n.Backup==null?null:n.Backup.ID)),c(),k(l.successId()===(n.Backup==null?null:n.Backup.ID)?37:38),c(5),g("routerLink",P(27,be,n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(29,xe,n.Backup==null?null:n.Backup.ID)),c(3),$("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(31,Le,n.Backup==null?null:n.Backup.ID)),c(9),g("routerLink",P(33,Ge,n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(35,he,n.Backup==null?null:n.Backup.ID))}}function Ye(e,i){if(e&1&&B(0,Qe,75,37,"div",45,y),e&2){let o=u(2);b(o.backups())}}function Ze(e,i){e&1&&(E(0),s(1,31),T())}function en(e,i){if(e&1&&C(0,Ye,2,0)(1,Ze,2,0,"ng-container"),e&2){let o=u();k(o.backups().length?0:1)}}function nn(e,i){e&1&&(_(0,"div",54),r(1,"spk-progress-bar",55),_(2,"div",35)(3,"h3"),s(4,32),t()()())}var K=class e{#e=R(fe);#t=R(ke);#n=R(me);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;loadingId=H(null);successId=H(null);ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#e.startBackup(i)}deleteBackup(i){this.loadingId.set(i),this.#t.open(Ae,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.deleteBackup(i)}})}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Me({type:e,selectors:[["app-home"]],decls:51,vars:7,consts:()=>{let i;i=$localize`Backups`;let o;o=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let F;F=$localize`Restores allow you to restore your data from the cloud.`;let V;V=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let j;j=$localize`My backups`;let q;q=$localize` Time: ${"\uFFFD#31\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#32\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let U;U=$localize`Relative time`;let W;W=$localize`Actual time`;let J;J=$localize` Order by: ${"\uFFFD#41\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let Q;Q=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let Y;Y=$localize`Last successful backup:`;let Z;Z=$localize`Duration:`;let ee;ee=$localize`Source:`;let ne;ne=$localize`Destination:`;let te;te=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let oe;oe=$localize`${"\uFFFD#44\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#44\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let ie;ie=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let _e;_e=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let ae;ae=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#56\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let le;le=$localize`${"\uFFFD#59\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#59\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let ce;ce=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let re;re=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let se;se=$localize`${"\uFFFD#71\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#71\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let ue;ue=$localize`${"\uFFFD#74\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#74\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let pe;pe=$localize`N/A`;let de;de=$localize`N/A`;let Fe;Fe=$localize`N/A`;let Se;Se=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ge;ge=$localize`No version yet`;let Ee;Ee=$localize`No backups founds`;let Te;return Te=$localize`Loading backups...`,[i,o,n,l,F,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,ie,_e,ae,le,ce,re,se,ue,pe,de,Fe,Se,ge,Ee,Te,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(o,n){o&1&&(r(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",33),r(4,"img",34),_(5,"div",35)(6,"h3"),s(7,0),t(),_(8,"p"),s(9,1),t()(),_(10,"button",36),p(11,2),r(12,"spk-icon"),d(),t()(),_(13,"spk-card",33),r(14,"img",37),_(15,"div",35)(16,"h3"),s(17,3),t(),_(18,"p"),s(19,4),t()(),_(20,"button",36),p(21,5),r(22,"spk-icon"),d(),t()()(),_(23,"div",38)(24,"h2"),E(25),s(26,6),T(),_(27,"div",39)(28,"spk-menu")(29,"button",40),p(30,7),r(31,"strong")(32,"spk-icon"),d(),t(),E(33,41),_(34,"button",42),M("click",function(){return n.setTimeType("relative")}),s(35,8),t(),_(36,"button",42),M("click",function(){return n.setTimeType("actual")}),s(37,9),t(),T(),t(),_(38,"spk-menu")(39,"button",40),p(40,10),r(41,"strong")(42,"spk-icon"),d(),t(),E(43,41),B(44,ve,2,3,"button",43,y),T(),t()()(),_(46,"div",44),C(47,en,2,1)(48,nn,5,0),Ce(49,47,Re,null,48),t()()()),o&2&&(c(3),g("routerLink",L(5,He)),c(10),g("routerLink",L(6,ye)),c(19),I(n.timeType()),f(30),c(10),I(n.orderBy()),f(40),c(2),b(n.sortOrderOptions()),c(5),Oe(!n.backupsLoading()))},dependencies:[v,De,Pe,z,X,w,Ie],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{K as default};
1
+ import{a as De}from"./chunk-554T66WI.js";import{a as Ae}from"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as fe}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{e as v}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as X,e as ke,g as z,h as Pe,j as Ne,k as $e,o as w,p as Ie}from"./chunk-NMXJMVL5.js";import{h as me}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as S,Ab as T,Cb as x,F as D,Gb as p,Hb as d,Ib as s,Jb as I,Kb as f,Mb as M,Nb as u,Qa as c,Y as R,ab as Me,bc as N,da as O,ea as m,fb as C,kb as Ce,lb as Oe,lc as L,mc as P,nb as g,pb as $,pc as A,qc as G,rc as h,sb as k,tb as y,ua as H,ub as B,vb as b,wb as _,xb as t,yb as r,zb as E}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var Re=()=>[v,z,X,Ne,$e,w,import("./chunk-SEA4YEEO.js").then(e=>e.DurationFormatPipe),import("./chunk-CETM57LL.js").then(e=>e.BytesPipe),import("./chunk-3IIFLG6J.js").then(e=>e.RelativeTimePipe)],He=()=>["/add-backup"],ye=()=>["/restore"],Be=e=>["/backup",e],be=e=>["/restore",e],xe=e=>["/backup",e,"export"],Le=e=>["/backup",e,"database"],Ge=e=>["/backup",e,"commandline"],he=e=>["/backup",e,"log"];function ve(e,i){if(e&1){let o=x();_(0,"button",42),M("click",function(){let l=O(o).$implicit,F=u();return m(F.setOrderBy(l.value))}),s(1,11),t()}if(e&2){let o=i.$implicit,n=u();$("active",n.orderBy()===o.value),c(),I(o.label),f(1)}}function Xe(e,i){if(e&1&&(S(0),A(1,"durationFormat")),e&2){let o=u().$implicit,n=u(3);N(" ",h(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.LastBackupDuration,n.timeType()==="actual")," ")}}function ze(e,i){e&1&&(E(0),s(1,26),T())}function we(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceFilesSize)," ")}}function Ke(e,i){e&1&&(E(0),s(1,27),T())}function Ve(e,i){if(e&1&&(S(0),A(1,"bytes")),e&2){let o=u().$implicit;N(" ",G(1,1,o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.TargetFilesSize)," ")}}function je(e,i){e&1&&(E(0),s(1,28),T())}function qe(e,i){if(e&1&&(_(0,"spk-chip",46),s(1,29),t()),e&2){let o=u().$implicit;c(),I(o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount),f(1)}}function Ue(e,i){e&1&&(_(0,"spk-chip",47),s(1,30),t())}function We(e,i){e&1&&(_(0,"spk-icon"),S(1,"check"),t())}function Je(e,i){e&1&&(_(0,"spk-icon"),S(1,"dots-three-vertical"),t())}function Qe(e,i){if(e&1){let o=x();_(0,"div",45)(1,"div",35)(2,"h3"),S(3),_(4,"spk-icon"),S(5,"database"),t()(),_(6,"p")(7,"span"),s(8,12),t(),S(9),A(10,"relativeTime"),t(),_(11,"p")(12,"span"),s(13,13),t(),C(14,Xe,2,4)(15,ze,2,0,"ng-container"),t(),_(16,"p")(17,"span"),s(18,14),t(),C(19,we,2,3)(20,Ke,2,0,"ng-container"),t(),_(21,"p")(22,"span"),s(23,15),t(),C(24,Ve,2,3)(25,je,2,0,"ng-container"),t()(),C(26,qe,2,1,"spk-chip",46)(27,Ue,2,0,"spk-chip",47),_(28,"div",39)(29,"button",48),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.startBackup(l.Backup==null?null:l.Backup.ID))}),p(30,16),r(31,"spk-icon"),d(),t(),_(32,"button",49)(33,"spk-icon"),S(34,"pencil-simple"),t()(),_(35,"spk-menu",50)(36,"button",36),C(37,We,2,0,"spk-icon")(38,Je,2,0,"spk-icon"),t(),E(39,41),_(40,"h3",51),S(41,"Operations"),t(),_(42,"button",52),p(43,17),r(44,"spk-icon"),d(),t(),_(45,"button",52),p(46,18),r(47,"spk-icon"),d(),t(),_(48,"button",53),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.deleteBackup(l.Backup==null?null:l.Backup.ID))}),p(49,19),r(50,"spk-icon"),d(),t(),r(51,"spk-divider"),_(52,"h3",51),S(53,"Advanced"),t(),_(54,"button",52),p(55,20),r(56,"spk-icon"),d(),t(),_(57,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.verifyFiles(l.Backup==null?null:l.Backup.ID))}),p(58,21),r(59,"spk-icon"),d(),t(),_(60,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.compressBackup(l.Backup==null?null:l.Backup.ID))}),p(61,22),r(62,"spk-icon"),d(),t(),_(63,"button",52),p(64,23),r(65,"spk-icon"),d(),t(),r(66,"spk-divider"),_(67,"h3",51),S(68,"Reporting"),t(),_(69,"button",52),p(70,24),r(71,"spk-icon"),d(),t(),_(72,"button",42),M("click",function(){let l=O(o).$implicit,F=u(3);return m(F.createErrorReport(l.Backup==null?null:l.Backup.ID))}),p(73,25),r(74,"spk-icon"),d(),t(),T(),t()()()}if(e&2){let o,n=i.$implicit,l=u(3);c(3),N(" ",(o=n.Backup==null?null:n.Backup.Name)!==null&&o!==void 0?o:l.MISSING_BACKUP_NAME," "),c(6),N(" ",h(10,22,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,l.timeType()==="actual")," "),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?14:15),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?19:20),c(5),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?24:25),c(2),k(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?26:27),c(3),$("loader",l.startingBackup()===(n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(25,Be,n.Backup==null?null:n.Backup.ID)),c(3),g("right",!0),c(),$("loader",l.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",l.successId()===(n.Backup==null?null:n.Backup.ID)),c(),k(l.successId()===(n.Backup==null?null:n.Backup.ID)?37:38),c(5),g("routerLink",P(27,be,n.Backup==null?null:n.Backup.ID)),c(3),g("routerLink",P(29,xe,n.Backup==null?null:n.Backup.ID)),c(3),$("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(31,Le,n.Backup==null?null:n.Backup.ID)),c(9),g("routerLink",P(33,Ge,n.Backup==null?null:n.Backup.ID)),c(6),g("routerLink",P(35,he,n.Backup==null?null:n.Backup.ID))}}function Ye(e,i){if(e&1&&B(0,Qe,75,37,"div",45,y),e&2){let o=u(2);b(o.backups())}}function Ze(e,i){e&1&&(E(0),s(1,31),T())}function en(e,i){if(e&1&&C(0,Ye,2,0)(1,Ze,2,0,"ng-container"),e&2){let o=u();k(o.backups().length?0:1)}}function nn(e,i){e&1&&(_(0,"div",54),r(1,"spk-progress-bar",55),_(2,"div",35)(3,"h3"),s(4,32),t()()())}var K=class e{#e=R(fe);#t=R(ke);#n=R(me);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;loadingId=H(null);successId=H(null);ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#e.startBackup(i)}deleteBackup(i){this.loadingId.set(i),this.#t.open(Ae,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.deleteBackup(i)}})}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(D(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Me({type:e,selectors:[["app-home"]],decls:51,vars:7,consts:()=>{let i;i=$localize`Backups`;let o;o=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let F;F=$localize`Restores allow you to restore your data from the cloud.`;let V;V=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let j;j=$localize`My backups`;let q;q=$localize` Time: ${"\uFFFD#31\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#32\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let U;U=$localize`Relative time`;let W;W=$localize`Actual time`;let J;J=$localize` Order by: ${"\uFFFD#41\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let Q;Q=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let Y;Y=$localize`Last successful backup:`;let Z;Z=$localize`Duration:`;let ee;ee=$localize`Source:`;let ne;ne=$localize`Destination:`;let te;te=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let oe;oe=$localize`${"\uFFFD#44\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#44\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let ie;ie=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let _e;_e=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let ae;ae=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#56\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let le;le=$localize`${"\uFFFD#59\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#59\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let ce;ce=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let re;re=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let se;se=$localize`${"\uFFFD#71\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#71\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let ue;ue=$localize`${"\uFFFD#74\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#74\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let pe;pe=$localize`N/A`;let de;de=$localize`N/A`;let Fe;Fe=$localize`N/A`;let Se;Se=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ge;ge=$localize`No version yet`;let Ee;Ee=$localize`No backups founds`;let Te;return Te=$localize`Loading backups...`,[i,o,n,l,F,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,ie,_e,ae,le,ce,re,se,ue,pe,de,Fe,Se,ge,Ee,Te,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(o,n){o&1&&(r(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",33),r(4,"img",34),_(5,"div",35)(6,"h3"),s(7,0),t(),_(8,"p"),s(9,1),t()(),_(10,"button",36),p(11,2),r(12,"spk-icon"),d(),t()(),_(13,"spk-card",33),r(14,"img",37),_(15,"div",35)(16,"h3"),s(17,3),t(),_(18,"p"),s(19,4),t()(),_(20,"button",36),p(21,5),r(22,"spk-icon"),d(),t()()(),_(23,"div",38)(24,"h2"),E(25),s(26,6),T(),_(27,"div",39)(28,"spk-menu")(29,"button",40),p(30,7),r(31,"strong")(32,"spk-icon"),d(),t(),E(33,41),_(34,"button",42),M("click",function(){return n.setTimeType("relative")}),s(35,8),t(),_(36,"button",42),M("click",function(){return n.setTimeType("actual")}),s(37,9),t(),T(),t(),_(38,"spk-menu")(39,"button",40),p(40,10),r(41,"strong")(42,"spk-icon"),d(),t(),E(43,41),B(44,ve,2,3,"button",43,y),T(),t()()(),_(46,"div",44),C(47,en,2,1)(48,nn,5,0),Ce(49,47,Re,null,48),t()()()),o&2&&(c(3),g("routerLink",L(5,He)),c(10),g("routerLink",L(6,ye)),c(19),I(n.timeType()),f(30),c(10),I(n.orderBy()),f(40),c(2),b(n.sortOrderOptions()),c(5),Oe(!n.backupsLoading()))},dependencies:[v,De,Pe,z,X,w,Ie],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{K as default};
@@ -1 +1 @@
1
- import{a as z}from"./chunk-4RGZG24K.js";import{a as x,c as w,d as B,e as U,f as X}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as K,f as V,o as h}from"./chunk-WX7L7V6J.js";import"./chunk-4AECHE4W.js";import"./chunk-CKPICCFH.js";import{Ab as f,Cb as R,Gb as l,Hb as s,Ib as b,Jb as y,Kb as v,Mb as u,Nb as c,Qa as p,Y as T,ab as D,da as a,ea as S,fb as P,nb as N,sb as G,ua as $,wb as i,xb as t,yb as _,zb as M}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function W(g,F){if(g&1){let n=R();i(0,"spk-menu",15)(1,"button",16),b(2,2),t(),M(3,17),i(4,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Disabled"))}),l(5,3),_(6,"spk-icon"),s(),t(),i(7,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Verbose"))}),l(8,4),_(9,"spk-icon"),s(),t(),i(10,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("ExplicitOnly"))}),l(11,5),_(12,"spk-icon"),s(),t(),i(13,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Profiling"))}),l(14,6),_(15,"spk-icon"),s(),t(),i(16,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Retry"))}),l(17,7),_(18,"spk-icon"),s(),t(),i(19,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Information"))}),l(20,8),_(21,"spk-icon"),s(),t(),i(22,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("DryRun"))}),l(23,9),_(24,"spk-icon"),s(),t(),i(25,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Warning"))}),l(26,10),_(27,"spk-icon"),s(),t(),i(28,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Error"))}),l(29,11),_(30,"spk-icon"),s(),t(),f(),t()}if(g&2){let n=c();N("openIndicator",!0),p(2),y(n.logLevelByLabel()),v(2)}}var O=class g{#n=T(B);#e=T(z);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=$(this.#n.url);constructor(){this.#n.events.subscribe(F=>{F instanceof x&&this.currentUrl.set(F.urlAfterRedirects)})}updateLogLevel(F){this.#e.isPolling.set(!0),this.#e.updateLogLevel(F)}static \u0275fac=function(n){return new(n||g)};static \u0275cmp=D({type:g,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let F;F=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Disabled `;let C;C=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Explicit only `;let d;d=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Profiling `;let k;k=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_ICON: Retry `;let I;I=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Information `;let E;E=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SPK_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SPK_ICON: Dry run `;let A;A=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SPK_ICON: Warning `;let m;return m=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SPK_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SPK_ICON: Error `,[F,n,o,e,C,L,d,k,I,E,A,m,[1,"filters"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["spk-button","","type","button"],["menu",""],["spk-button","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(i(0,"div",12)(1,"spk-button-group")(2,"button",13),l(3,0),_(4,"spk-icon"),s(),t(),i(5,"button",14),l(6,1),_(7,"spk-icon"),s(),t()(),P(8,W,31,2,"spk-menu",15),t(),_(9,"router-outlet")),n&2&&(p(8),G(o.currentUrl().startsWith("/about/logs/live")?8:-1))},dependencies:[V,K,h,w,X,U],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem}"],changeDetection:0})};export{O as default};
1
+ import{a as z}from"./chunk-CD3DB23J.js";import{a as x,c as w,d as B,e as U,f as X}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as K,f as V,o as h}from"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{Ab as f,Cb as R,Gb as l,Hb as s,Ib as b,Jb as y,Kb as v,Mb as u,Nb as c,Qa as p,Y as T,ab as D,da as a,ea as S,fb as P,nb as N,sb as G,ua as $,wb as i,xb as t,yb as _,zb as M}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function W(g,F){if(g&1){let n=R();i(0,"spk-menu",15)(1,"button",16),b(2,2),t(),M(3,17),i(4,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Disabled"))}),l(5,3),_(6,"spk-icon"),s(),t(),i(7,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Verbose"))}),l(8,4),_(9,"spk-icon"),s(),t(),i(10,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("ExplicitOnly"))}),l(11,5),_(12,"spk-icon"),s(),t(),i(13,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Profiling"))}),l(14,6),_(15,"spk-icon"),s(),t(),i(16,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Retry"))}),l(17,7),_(18,"spk-icon"),s(),t(),i(19,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Information"))}),l(20,8),_(21,"spk-icon"),s(),t(),i(22,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("DryRun"))}),l(23,9),_(24,"spk-icon"),s(),t(),i(25,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Warning"))}),l(26,10),_(27,"spk-icon"),s(),t(),i(28,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Error"))}),l(29,11),_(30,"spk-icon"),s(),t(),f(),t()}if(g&2){let n=c();N("openIndicator",!0),p(2),y(n.logLevelByLabel()),v(2)}}var O=class g{#n=T(B);#e=T(z);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=$(this.#n.url);constructor(){this.#n.events.subscribe(F=>{F instanceof x&&this.currentUrl.set(F.urlAfterRedirects)})}updateLogLevel(F){this.#e.isPolling.set(!0),this.#e.updateLogLevel(F)}static \u0275fac=function(n){return new(n||g)};static \u0275cmp=D({type:g,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let F;F=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Disabled `;let C;C=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Explicit only `;let d;d=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Profiling `;let k;k=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_ICON: Retry `;let I;I=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Information `;let E;E=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SPK_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SPK_ICON: Dry run `;let A;A=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SPK_ICON: Warning `;let m;return m=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SPK_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SPK_ICON: Error `,[F,n,o,e,C,L,d,k,I,E,A,m,[1,"filters"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["spk-button","","type","button"],["menu",""],["spk-button","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(i(0,"div",12)(1,"spk-button-group")(2,"button",13),l(3,0),_(4,"spk-icon"),s(),t(),i(5,"button",14),l(6,1),_(7,"spk-icon"),s(),t()(),P(8,W,31,2,"spk-menu",15),t(),_(9,"router-outlet")),n&2&&(p(8),G(o.currentUrl().startsWith("/about/logs/live")?8:-1))},dependencies:[V,K,h,w,X,U],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem}"],changeDetection:0})};export{O as default};
@@ -1,2 +1,2 @@
1
1
  import{d as ke,h as Ee,p as Ie}from"./chunk-CKPICCFH.js";import{$ as Te,B as ee,C as be,F as ge,N as F,Q as w,S as R,V,X as b,Y as T,Z as Re,aa as ve,f as Z,la as Be,m as fe,n as L,na as Ve,o as H,r as B,x as me,ya as Pe,z as Ae}from"./chunk-W2F756OF.js";import{a as D,b as ye}from"./chunk-7CGTOI24.js";var U=class{},q=class{},g=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
- `).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),p=t.slice(r+1).trim();this.addHeaderEntry(o,p)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new s;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=(e.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let p=e.value;if(!p)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=this.headers.get(t);if(!i)return;i=i.filter(d=>p.indexOf(d)===-1),i.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}break}}addHeaderEntry(e,t){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(e,t){let r=(Array.isArray(t)?t:[t]).map(p=>p.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var re=class{encodeKey(e){return Oe(e)}encodeValue(e){return Oe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function We(s,e){let t=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{let p=o.indexOf("="),[i,d]=p==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,p)),e.decodeValue(o.slice(p+1))],u=t.get(i)||[];u.push(d),t.set(i,u)}),t}var Xe=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Oe(s){return encodeURIComponent(s).replace(Xe,(e,t)=>Ye[t]??e)}function J(s){return`${s}`}var k=class s{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new re,e.fromString){if(e.fromObject)throw new w(2805,!1);this.map=We(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let r=e.fromObject[t],o=Array.isArray(r)?r.map(J):[J(r)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(p=>{t.push({param:r,value:p,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new s({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}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 t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(J(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(J(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var ie=class{map=new Map;set(e,t){return this.map.set(e,t),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 Qe(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function De(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function we(s){return typeof Blob<"u"&&s instanceof Blob}function Se(s){return typeof FormData<"u"&&s instanceof FormData}function Ze(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var j="Content-Type",W="Accept",ae="X-Request-URL",Me="text/plain",Le="application/json",Fe=`${Le}, ${Me}, */*`,C=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,t,r,o){this.url=t,this.method=e.toUpperCase();let p;if(Qe(this.method)||o?(this.body=r!==void 0?r:null,p=o):p=r,p&&(this.reportProgress=!!p.reportProgress,this.withCredentials=!!p.withCredentials,p.responseType&&(this.responseType=p.responseType),p.headers&&(this.headers=p.headers),p.context&&(this.context=p.context),p.params&&(this.params=p.params),this.transferCache=p.transferCache),this.headers??=new g,this.context??=new ie,!this.params)this.params=new k,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let d=t.indexOf("?"),u=d===-1?"?":d<t.length-1?"&":"";this.urlWithParams=t+u+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||De(this.body)||we(this.body)||Se(this.body)||Ze(this.body)?this.body:this.body instanceof k?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||Se(this.body)?null:we(this.body)?this.body.type||null:De(this.body)?null:typeof this.body=="string"?Me:this.body instanceof k?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Le:null}clone(e={}){let t=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,p=e.transferCache??this.transferCache,i=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,h=e.headers||this.headers,m=e.params||this.params,A=e.context??this.context;return e.setHeaders!==void 0&&(h=Object.keys(e.setHeaders).reduce((I,y)=>I.set(y,e.setHeaders[y]),h)),e.setParams&&(m=Object.keys(e.setParams).reduce((I,y)=>I.set(y,e.setParams[y]),m)),new s(t,r,i,{params:m,headers:h,context:A,reportProgress:u,responseType:o,withCredentials:d,transferCache:p})}},E=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(E||{}),_=class{headers;status;statusText;url;ok;type;constructor(e,t=200,r="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},X=class s extends _{constructor(e={}){super(e)}type=E.ResponseHeader;clone(e={}){return new s({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})}},z=class s extends _{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=E.Response;clone(e={}){return new s({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})}},P=class extends _{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}},je=200,He=204;function te(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var K=(()=>{class s{handler;constructor(t){this.handler=t}request(t,r,o={}){let p;if(t instanceof C)p=t;else{let u;o.headers instanceof g?u=o.headers:u=new g(o.headers);let h;o.params&&(o.params instanceof k?h=o.params:h=new k({fromObject:o.params})),p=new C(t,r,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let i=L(p).pipe(be(u=>this.handler.handle(u)));if(t instanceof C||o.observe==="events")return i;let d=i.pipe(Ae(u=>u instanceof z));switch(o.observe||"body"){case"body":switch(p.responseType){case"arraybuffer":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new w(2806,!1);return u.body}));case"blob":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new w(2807,!1);return u.body}));case"text":return d.pipe(B(u=>{if(u.body!==null&&typeof u.body!="string")throw new w(2808,!1);return u.body}));case"json":default:return d.pipe(B(u=>u.body))}case"response":return d;default:throw new w(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new k().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,te(o,r))}post(t,r,o={}){return this.request("POST",t,te(o,r))}put(t,r,o={}){return this.request("PUT",t,te(o,r))}static \u0275fac=function(r){return new(r||s)(b(U))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),et=/^\)\]\}',?\n/;function Ne(s){if(s.url)return s.url;let e=ae.toLocaleLowerCase();return s.headers.get(e)}var Ce=new V(""),se=(()=>{class s{fetchImpl=T(oe,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=T(Ve);handle(t){return new Z(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(ne,p=>r.error(new P({error:p}))),()=>o.abort()})}async doRequest(t,r,o){let p=this.createRequestInit(t),i;try{let y=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,D({signal:r},p)));tt(y),o.next({type:E.Sent}),i=await y}catch(y){o.error(new P({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}));return}let d=new g(i.headers),u=i.statusText,h=Ne(i)??t.urlWithParams,m=i.status,A=null;if(t.reportProgress&&o.next(new X({headers:d,status:m,statusText:u,url:h})),i.body){let y=i.headers.get("content-length"),G=[],c=i.body.getReader(),l=0,v,S,f=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:O,value:M}=await c.read();if(O)break;if(G.push(M),l+=M.length,t.reportProgress){S=t.responseType==="text"?(S??"")+(v??=new TextDecoder).decode(M,{stream:!0}):void 0;let he=()=>o.next({type:E.DownloadProgress,total:y?+y:void 0,loaded:l,partialText:S});f?f.run(he):he()}}});let x=this.concatChunks(G,l);try{let O=i.headers.get(j)??"";A=this.parseBody(t,x,O)}catch(O){o.error(new P({error:O,headers:new g(i.headers),status:i.status,statusText:i.statusText,url:Ne(i)??t.urlWithParams}));return}}m===0&&(m=A?je:0),m>=200&&m<300?(o.next(new z({body:A,headers:d,status:m,statusText:u,url:h})),o.complete()):o.error(new P({error:A,headers:d,status:m,statusText:u,url:h}))}parseBody(t,r,o){switch(t.responseType){case"json":let p=new TextDecoder().decode(r).replace(et,"");return p===""?null:JSON.parse(p);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((p,i)=>r[p]=i.join(",")),t.headers.has(W)||(r[W]=Fe),!t.headers.has(j)){let p=t.detectContentTypeHeader();p!==null&&(r[j]=p)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),p=0;for(let i of t)o.set(i,p),p+=i.length;return o}static \u0275fac=function(r){return new(r||s)};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),oe=class{};function ne(){}function tt(s){s.then(ne,ne)}function st(s,e){return e(s)}function rt(s,e,t){return(r,o)=>ve(t,()=>e(r,p=>s(p,o)))}var pe=new V(""),it=new V(""),ot=new V("",{providedIn:"root",factory:()=>!0});var Ge=(()=>{class s extends U{backend;injector;chain=null;pendingTasks=T(Be);contributeToStability=T(ot);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(pe),...this.injector.get(it,[])]));this.chain=r.reduceRight((o,p)=>rt(o,p,this.injector),st)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(ge(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||s)(b(q),b(Te))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();var nt=/^\)\]\}',?\n/,at=RegExp(`^${ae}:`,"m");function pt(s){return"responseURL"in s&&s.responseURL?s.responseURL:at.test(s.getAllResponseHeaders())?s.getResponseHeader(ae):null}var xe=(()=>{class s{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?fe(r.\u0275loadImpl()):L(null)).pipe(F(()=>new Z(p=>{let i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((c,l)=>i.setRequestHeader(c,l.join(","))),t.headers.has(W)||i.setRequestHeader(W,Fe),!t.headers.has(j)){let c=t.detectContentTypeHeader();c!==null&&i.setRequestHeader(j,c)}if(t.responseType){let c=t.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let d=t.serializeBody(),u=null,h=()=>{if(u!==null)return u;let c=i.statusText||"OK",l=new g(i.getAllResponseHeaders()),v=pt(i)||t.url;return u=new X({headers:l,status:i.status,statusText:c,url:v}),u},m=()=>{let{headers:c,status:l,statusText:v,url:S}=h(),f=null;l!==He&&(f=typeof i.response>"u"?i.responseText:i.response),l===0&&(l=f?je:0);let x=l>=200&&l<300;if(t.responseType==="json"&&typeof f=="string"){let O=f;f=f.replace(nt,"");try{f=f!==""?JSON.parse(f):null}catch(M){f=O,x&&(x=!1,f={error:M,text:f})}}x?(p.next(new z({body:f,headers:c,status:l,statusText:v,url:S||void 0})),p.complete()):p.error(new P({error:f,headers:c,status:l,statusText:v,url:S||void 0}))},A=c=>{let{url:l}=h(),v=new P({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:l||void 0});p.error(v)},I=!1,y=c=>{I||(p.next(h()),I=!0);let l={type:E.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),t.responseType==="text"&&i.responseText&&(l.partialText=i.responseText),p.next(l)},G=c=>{let l={type:E.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),p.next(l)};return i.addEventListener("load",m),i.addEventListener("error",A),i.addEventListener("timeout",A),i.addEventListener("abort",A),t.reportProgress&&(i.addEventListener("progress",y),d!==null&&i.upload&&i.upload.addEventListener("progress",G)),i.send(d),p.next({type:E.Sent}),()=>{i.removeEventListener("error",A),i.removeEventListener("abort",A),i.removeEventListener("load",m),i.removeEventListener("timeout",A),t.reportProgress&&(i.removeEventListener("progress",y),d!==null&&i.upload&&i.upload.removeEventListener("progress",G)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||s)(b(Ie))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),Ue=new V(""),ut="XSRF-TOKEN",dt=new V("",{providedIn:"root",factory:()=>ut}),ct="X-XSRF-TOKEN",lt=new V("",{providedIn:"root",factory:()=>ct}),Y=class{},ht=(()=>{class s{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ee(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||s)(b(ke),b(Pe),b(dt))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();function yt(s,e){let t=s.url.toLowerCase();if(!T(Ue)||s.method==="GET"||s.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(s);let r=T(Y).getToken(),o=T(lt);return r!=null&&!s.headers.has(o)&&(s=s.clone({headers:s.headers.set(o,r)})),e(s)}var ue=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(ue||{});function qe(s,e){return{\u0275kind:s,\u0275providers:e}}function es(...s){let e=[K,xe,Ge,{provide:U,useExisting:Ge},{provide:q,useFactory:()=>T(Ce,{optional:!0})??T(xe)},{provide:pe,useValue:yt,multi:!0},{provide:Ue,useValue:!0},{provide:Y,useClass:ht}];for(let t of s)e.push(...t.\u0275providers);return Re(e)}function ts(s){return qe(ue.Interceptors,s.map(e=>({provide:pe,useValue:e,multi:!0})))}function ss(){return qe(ue.Fetch,[se,{provide:Ce,useExisting:se},{provide:q,useExisting:se}])}var de=class{_fns;constructor(){this._fns=[]}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},n={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new de}};var N=class extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var $=s=>typeof s=="string",ce=s=>$(s)&&s!=="",le=s=>s instanceof Blob,_e=s=>s instanceof FormData,mt=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},At=s=>{let e=[],t=(o,p)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(p))}`)},r=(o,p)=>{p!=null&&(p instanceof Date?t(o,p.toISOString()):Array.isArray(p)?p.forEach(i=>r(o,i)):typeof p=="object"?Object.entries(p).forEach(([i,d])=>r(`${o}[${i}]`,d)):t(o,p))};return Object.entries(s).forEach(([o,p])=>r(o,p)),e.length?`?${e.join("&")}`:""},bt=(s,e)=>{let t=s.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(p,i)=>e.path?.hasOwnProperty(i)?t(String(e.path[i])):p),o=s.BASE+r;return e.query?o+At(e.query):o},gt=s=>{if(s.formData){let e=new FormData,t=(r,o)=>{$(o)||le(o)?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(s.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(p=>t(r,p)):t(r,o)}),e}},Q=async(s,e)=>typeof e=="function"?e(s):e,Rt=(s,e)=>me({token:Q(e,s.TOKEN),username:Q(e,s.USERNAME),password:Q(e,s.PASSWORD),additionalHeaders:Q(e,s.HEADERS)}).pipe(B(({token:t,username:r,password:o,additionalHeaders:p})=>{let i=Object.entries(D(D({Accept:"application/json"},p),e.headers)).filter(([,d])=>d!=null).reduce((d,[u,h])=>ye(D({},d),{[u]:String(h)}),{});if(ce(t)&&(i.Authorization=`Bearer ${t}`),ce(r)&&ce(o)){let d=mt(`${r}:${o}`);i.Authorization=`Basic ${d}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:le(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":$(e.body)?i["Content-Type"]="text/plain":_e(e.body)||(i["Content-Type"]="application/json")),new g(i)})),Tt=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):$(s.body)||le(s.body)||_e(s.body)?s.body:JSON.stringify(s.body)},vt=(s,e,t,r,o,p,i)=>t.request(e.method,r,{headers:i,body:o??p,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),Bt=(s,e)=>{if(e){let t=s.headers.get(e);if($(t))return t}},Vt=s=>{if(s.status!==204&&s.body!==null)return s.body},Pt=(s,e)=>{let r=D({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(r)throw new N(s,e,r);if(!e.ok){let o=e.status??"unknown",p=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new N(s,e,`Generic Error: status: ${o}; status text: ${p}; body: ${i}`)}},a=(s,e,t)=>{let r=bt(s,t),o=gt(t),p=Tt(t);return Rt(s,t).pipe(F(i=>vt(s,t,e,r,p,o,i)),F(async i=>{for(let m of s.interceptors.response._fns)i=await m(i);let d=Vt(i),u=Bt(i,t.responseHeader),h=d;return t.responseTransformer&&i.ok&&(h=await t.responseTransformer(d)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:u??h}}),ee(i=>i.status?L({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):H(()=>i)),B(i=>(Pt(t,i),i.body)),ee(i=>H(()=>i)))};var ze=class s{constructor(e){this.http=e}getApiV1Commandline(){return a(n,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},Ke=class s{constructor(e){this.http=e}postApiV1Commandline(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return a(n,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return a(n,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return a(n,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return a(n,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return a(n,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return a(n,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return a(n,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return a(n,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return a(n,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return a(n,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return a(n,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return a(n,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return a(n,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return a(n,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return a(n,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return a(n,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return a(n,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return a(n,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return a(n,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},$e=class s{constructor(e){this.http=e}getApiV1Webmodules(){return a(n,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})};export{g as a,z as b,K as c,es as d,ts as e,ss as f,ze as g,Ke as h,$e as i};
2
+ `).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),p=t.slice(r+1).trim();this.addHeaderEntry(o,p)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new s;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=(e.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let p=e.value;if(!p)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=this.headers.get(t);if(!i)return;i=i.filter(d=>p.indexOf(d)===-1),i.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}break}}addHeaderEntry(e,t){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(e,t){let r=(Array.isArray(t)?t:[t]).map(p=>p.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var re=class{encodeKey(e){return Oe(e)}encodeValue(e){return Oe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function We(s,e){let t=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{let p=o.indexOf("="),[i,d]=p==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,p)),e.decodeValue(o.slice(p+1))],u=t.get(i)||[];u.push(d),t.set(i,u)}),t}var Xe=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Oe(s){return encodeURIComponent(s).replace(Xe,(e,t)=>Ye[t]??e)}function J(s){return`${s}`}var k=class s{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new re,e.fromString){if(e.fromObject)throw new w(2805,!1);this.map=We(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let r=e.fromObject[t],o=Array.isArray(r)?r.map(J):[J(r)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(p=>{t.push({param:r,value:p,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new s({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}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 t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(J(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(J(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var ie=class{map=new Map;set(e,t){return this.map.set(e,t),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 Qe(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function De(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function we(s){return typeof Blob<"u"&&s instanceof Blob}function Se(s){return typeof FormData<"u"&&s instanceof FormData}function Ze(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var j="Content-Type",W="Accept",ae="X-Request-URL",Me="text/plain",Le="application/json",Fe=`${Le}, ${Me}, */*`,C=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,t,r,o){this.url=t,this.method=e.toUpperCase();let p;if(Qe(this.method)||o?(this.body=r!==void 0?r:null,p=o):p=r,p&&(this.reportProgress=!!p.reportProgress,this.withCredentials=!!p.withCredentials,p.responseType&&(this.responseType=p.responseType),p.headers&&(this.headers=p.headers),p.context&&(this.context=p.context),p.params&&(this.params=p.params),this.transferCache=p.transferCache),this.headers??=new g,this.context??=new ie,!this.params)this.params=new k,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let d=t.indexOf("?"),u=d===-1?"?":d<t.length-1?"&":"";this.urlWithParams=t+u+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||De(this.body)||we(this.body)||Se(this.body)||Ze(this.body)?this.body:this.body instanceof k?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||Se(this.body)?null:we(this.body)?this.body.type||null:De(this.body)?null:typeof this.body=="string"?Me:this.body instanceof k?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Le:null}clone(e={}){let t=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,p=e.transferCache??this.transferCache,i=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,h=e.headers||this.headers,m=e.params||this.params,A=e.context??this.context;return e.setHeaders!==void 0&&(h=Object.keys(e.setHeaders).reduce((I,y)=>I.set(y,e.setHeaders[y]),h)),e.setParams&&(m=Object.keys(e.setParams).reduce((I,y)=>I.set(y,e.setParams[y]),m)),new s(t,r,i,{params:m,headers:h,context:A,reportProgress:u,responseType:o,withCredentials:d,transferCache:p})}},E=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(E||{}),_=class{headers;status;statusText;url;ok;type;constructor(e,t=200,r="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},X=class s extends _{constructor(e={}){super(e)}type=E.ResponseHeader;clone(e={}){return new s({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})}},z=class s extends _{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=E.Response;clone(e={}){return new s({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})}},P=class extends _{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}},je=200,He=204;function te(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var K=(()=>{class s{handler;constructor(t){this.handler=t}request(t,r,o={}){let p;if(t instanceof C)p=t;else{let u;o.headers instanceof g?u=o.headers:u=new g(o.headers);let h;o.params&&(o.params instanceof k?h=o.params:h=new k({fromObject:o.params})),p=new C(t,r,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let i=L(p).pipe(be(u=>this.handler.handle(u)));if(t instanceof C||o.observe==="events")return i;let d=i.pipe(Ae(u=>u instanceof z));switch(o.observe||"body"){case"body":switch(p.responseType){case"arraybuffer":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new w(2806,!1);return u.body}));case"blob":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new w(2807,!1);return u.body}));case"text":return d.pipe(B(u=>{if(u.body!==null&&typeof u.body!="string")throw new w(2808,!1);return u.body}));case"json":default:return d.pipe(B(u=>u.body))}case"response":return d;default:throw new w(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new k().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,te(o,r))}post(t,r,o={}){return this.request("POST",t,te(o,r))}put(t,r,o={}){return this.request("PUT",t,te(o,r))}static \u0275fac=function(r){return new(r||s)(b(U))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),et=/^\)\]\}',?\n/;function Ne(s){if(s.url)return s.url;let e=ae.toLocaleLowerCase();return s.headers.get(e)}var Ce=new V(""),se=(()=>{class s{fetchImpl=T(oe,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=T(Ve);handle(t){return new Z(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(ne,p=>r.error(new P({error:p}))),()=>o.abort()})}async doRequest(t,r,o){let p=this.createRequestInit(t),i;try{let y=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,D({signal:r},p)));tt(y),o.next({type:E.Sent}),i=await y}catch(y){o.error(new P({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}));return}let d=new g(i.headers),u=i.statusText,h=Ne(i)??t.urlWithParams,m=i.status,A=null;if(t.reportProgress&&o.next(new X({headers:d,status:m,statusText:u,url:h})),i.body){let y=i.headers.get("content-length"),G=[],c=i.body.getReader(),l=0,v,S,f=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:O,value:M}=await c.read();if(O)break;if(G.push(M),l+=M.length,t.reportProgress){S=t.responseType==="text"?(S??"")+(v??=new TextDecoder).decode(M,{stream:!0}):void 0;let he=()=>o.next({type:E.DownloadProgress,total:y?+y:void 0,loaded:l,partialText:S});f?f.run(he):he()}}});let x=this.concatChunks(G,l);try{let O=i.headers.get(j)??"";A=this.parseBody(t,x,O)}catch(O){o.error(new P({error:O,headers:new g(i.headers),status:i.status,statusText:i.statusText,url:Ne(i)??t.urlWithParams}));return}}m===0&&(m=A?je:0),m>=200&&m<300?(o.next(new z({body:A,headers:d,status:m,statusText:u,url:h})),o.complete()):o.error(new P({error:A,headers:d,status:m,statusText:u,url:h}))}parseBody(t,r,o){switch(t.responseType){case"json":let p=new TextDecoder().decode(r).replace(et,"");return p===""?null:JSON.parse(p);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((p,i)=>r[p]=i.join(",")),t.headers.has(W)||(r[W]=Fe),!t.headers.has(j)){let p=t.detectContentTypeHeader();p!==null&&(r[j]=p)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),p=0;for(let i of t)o.set(i,p),p+=i.length;return o}static \u0275fac=function(r){return new(r||s)};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),oe=class{};function ne(){}function tt(s){s.then(ne,ne)}function st(s,e){return e(s)}function rt(s,e,t){return(r,o)=>ve(t,()=>e(r,p=>s(p,o)))}var pe=new V(""),it=new V(""),ot=new V("",{providedIn:"root",factory:()=>!0});var Ge=(()=>{class s extends U{backend;injector;chain=null;pendingTasks=T(Be);contributeToStability=T(ot);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(pe),...this.injector.get(it,[])]));this.chain=r.reduceRight((o,p)=>rt(o,p,this.injector),st)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(ge(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||s)(b(q),b(Te))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();var nt=/^\)\]\}',?\n/,at=RegExp(`^${ae}:`,"m");function pt(s){return"responseURL"in s&&s.responseURL?s.responseURL:at.test(s.getAllResponseHeaders())?s.getResponseHeader(ae):null}var xe=(()=>{class s{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?fe(r.\u0275loadImpl()):L(null)).pipe(F(()=>new Z(p=>{let i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((c,l)=>i.setRequestHeader(c,l.join(","))),t.headers.has(W)||i.setRequestHeader(W,Fe),!t.headers.has(j)){let c=t.detectContentTypeHeader();c!==null&&i.setRequestHeader(j,c)}if(t.responseType){let c=t.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let d=t.serializeBody(),u=null,h=()=>{if(u!==null)return u;let c=i.statusText||"OK",l=new g(i.getAllResponseHeaders()),v=pt(i)||t.url;return u=new X({headers:l,status:i.status,statusText:c,url:v}),u},m=()=>{let{headers:c,status:l,statusText:v,url:S}=h(),f=null;l!==He&&(f=typeof i.response>"u"?i.responseText:i.response),l===0&&(l=f?je:0);let x=l>=200&&l<300;if(t.responseType==="json"&&typeof f=="string"){let O=f;f=f.replace(nt,"");try{f=f!==""?JSON.parse(f):null}catch(M){f=O,x&&(x=!1,f={error:M,text:f})}}x?(p.next(new z({body:f,headers:c,status:l,statusText:v,url:S||void 0})),p.complete()):p.error(new P({error:f,headers:c,status:l,statusText:v,url:S||void 0}))},A=c=>{let{url:l}=h(),v=new P({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:l||void 0});p.error(v)},I=!1,y=c=>{I||(p.next(h()),I=!0);let l={type:E.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),t.responseType==="text"&&i.responseText&&(l.partialText=i.responseText),p.next(l)},G=c=>{let l={type:E.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),p.next(l)};return i.addEventListener("load",m),i.addEventListener("error",A),i.addEventListener("timeout",A),i.addEventListener("abort",A),t.reportProgress&&(i.addEventListener("progress",y),d!==null&&i.upload&&i.upload.addEventListener("progress",G)),i.send(d),p.next({type:E.Sent}),()=>{i.removeEventListener("error",A),i.removeEventListener("abort",A),i.removeEventListener("load",m),i.removeEventListener("timeout",A),t.reportProgress&&(i.removeEventListener("progress",y),d!==null&&i.upload&&i.upload.removeEventListener("progress",G)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||s)(b(Ie))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),Ue=new V(""),ut="XSRF-TOKEN",dt=new V("",{providedIn:"root",factory:()=>ut}),ct="X-XSRF-TOKEN",lt=new V("",{providedIn:"root",factory:()=>ct}),Y=class{},ht=(()=>{class s{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ee(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||s)(b(ke),b(Pe),b(dt))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();function yt(s,e){let t=s.url.toLowerCase();if(!T(Ue)||s.method==="GET"||s.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(s);let r=T(Y).getToken(),o=T(lt);return r!=null&&!s.headers.has(o)&&(s=s.clone({headers:s.headers.set(o,r)})),e(s)}var ue=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(ue||{});function qe(s,e){return{\u0275kind:s,\u0275providers:e}}function es(...s){let e=[K,xe,Ge,{provide:U,useExisting:Ge},{provide:q,useFactory:()=>T(Ce,{optional:!0})??T(xe)},{provide:pe,useValue:yt,multi:!0},{provide:Ue,useValue:!0},{provide:Y,useClass:ht}];for(let t of s)e.push(...t.\u0275providers);return Re(e)}function ts(s){return qe(ue.Interceptors,s.map(e=>({provide:pe,useValue:e,multi:!0})))}function ss(){return qe(ue.Fetch,[se,{provide:Ce,useExisting:se},{provide:q,useExisting:se}])}var de=class{_fns;constructor(){this._fns=[]}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},n={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new de}};var N=class extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var $=s=>typeof s=="string",ce=s=>$(s)&&s!=="",le=s=>s instanceof Blob,_e=s=>s instanceof FormData,mt=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},At=s=>{let e=[],t=(o,p)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(p))}`)},r=(o,p)=>{p!=null&&(p instanceof Date?t(o,p.toISOString()):Array.isArray(p)?p.forEach(i=>r(o,i)):typeof p=="object"?Object.entries(p).forEach(([i,d])=>r(`${o}[${i}]`,d)):t(o,p))};return Object.entries(s).forEach(([o,p])=>r(o,p)),e.length?`?${e.join("&")}`:""},bt=(s,e)=>{let t=s.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(p,i)=>e.path?.hasOwnProperty(i)?t(String(e.path[i])):p),o=s.BASE+r;return e.query?o+At(e.query):o},gt=s=>{if(s.formData){let e=new FormData,t=(r,o)=>{$(o)||le(o)?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(s.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(p=>t(r,p)):t(r,o)}),e}},Q=async(s,e)=>typeof e=="function"?e(s):e,Rt=(s,e)=>me({token:Q(e,s.TOKEN),username:Q(e,s.USERNAME),password:Q(e,s.PASSWORD),additionalHeaders:Q(e,s.HEADERS)}).pipe(B(({token:t,username:r,password:o,additionalHeaders:p})=>{let i=Object.entries(D(D({Accept:"application/json"},p),e.headers)).filter(([,d])=>d!=null).reduce((d,[u,h])=>ye(D({},d),{[u]:String(h)}),{});if(ce(t)&&(i.Authorization=`Bearer ${t}`),ce(r)&&ce(o)){let d=mt(`${r}:${o}`);i.Authorization=`Basic ${d}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:le(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":$(e.body)?i["Content-Type"]="text/plain":_e(e.body)||(i["Content-Type"]="application/json")),new g(i)})),Tt=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):$(s.body)||le(s.body)||_e(s.body)?s.body:JSON.stringify(s.body)},vt=(s,e,t,r,o,p,i)=>t.request(e.method,r,{headers:i,body:o??p,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),Bt=(s,e)=>{if(e){let t=s.headers.get(e);if($(t))return t}},Vt=s=>{if(s.status!==204&&s.body!==null)return s.body},Pt=(s,e)=>{let r=D({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(r)throw new N(s,e,r);if(!e.ok){let o=e.status??"unknown",p=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new N(s,e,`Generic Error: status: ${o}; status text: ${p}; body: ${i}`)}},a=(s,e,t)=>{let r=bt(s,t),o=gt(t),p=Tt(t);return Rt(s,t).pipe(F(i=>vt(s,t,e,r,p,o,i)),F(async i=>{for(let m of s.interceptors.response._fns)i=await m(i);let d=Vt(i),u=Bt(i,t.responseHeader),h=d;return t.responseTransformer&&i.ok&&(h=await t.responseTransformer(d)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:u??h}}),ee(i=>i.status?L({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):H(()=>i)),B(i=>(Pt(t,i),i.body)),ee(i=>H(()=>i)))};var ze=class s{constructor(e){this.http=e}getApiV1Commandline(){return a(n,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},Ke=class s{constructor(e){this.http=e}postApiV1Commandline(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return a(n,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return a(n,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return a(n,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return a(n,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return a(n,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return a(n,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return a(n,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return a(n,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return a(n,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return a(n,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return a(n,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return a(n,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return a(n,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return a(n,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return a(n,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return a(n,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return a(n,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return a(n,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdRun(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdReportRemoteSize(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return a(n,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},$e=class s{constructor(e){this.http=e}getApiV1Webmodules(){return a(n,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})};export{g as a,z as b,K as c,es as d,ts as e,ss as f,ze as g,Ke as h,$e as i};
@@ -1 +1 @@
1
- import{a as Q}from"./chunk-ULHQZGHN.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-T2OUHRUV.js";import{c as x}from"./chunk-CHRKPWRG.js";import"./chunk-I3C2AEHI.js";import{d as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as I,b as k,g as O,l as P}from"./chunk-WX7L7V6J.js";import"./chunk-4AECHE4W.js";import"./chunk-CKPICCFH.js";import{$b as r,Bc as M,Cb as S,F as c,Mb as v,Qa as m,Xa as h,Y as l,Yb as b,Zb as E,ab as _,da as g,ea as f,fb as w,nb as C,pb as y,sb as L,ua as p,wb as o,xb as i,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
1
+ import{a as Q}from"./chunk-ULHQZGHN.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-T2OUHRUV.js";import{c as x}from"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{d as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as I,b as k,g as O,l as P}from"./chunk-NMXJMVL5.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as r,Bc as M,Cb as S,F as c,Mb as v,Qa as m,Xa as h,Y as l,Yb as b,Zb as E,ab as _,da as g,ea as f,fb as w,nb as C,pb as y,sb as L,ua as p,wb as o,xb as i,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
@@ -0,0 +1 @@
1
+ import{j as o}from"./chunk-CKPICCFH.js";import{a as s}from"./chunk-EF7JWRDC.js";import{Y as e,db as n}from"./chunk-W2F756OF.js";var m=class i{#t=e(s);#r=e(o);convertTimestamp(t){let r=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/.exec(t);if(r){let[a,p,f,c,d,u,h]=r;return`${p}-${f}-${c}T${d}:${u}:${h}Z`}return t}transform(t,r=!1,...a){return t?r?this.#r.transform(t,"short"):(this.#t.locale(),typeof t=="string"&&(t=this.convertTimestamp(t)),this.#t(t).fromNow()):"N/A"}static \u0275fac=function(r){return new(r||i)};static \u0275pipe=n({name:"relativeTime",type:i,pure:!0})};export{m as a};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-UTVV2FB5.js")},{path:"encryption",loadComponent:()=>import("./chunk-CFVPLY5R.js")},{path:"select-files",loadComponent:()=>import("./chunk-V3LXB3BU.js")},{path:"options",loadComponent:()=>import("./chunk-S3S677ZR.js")},{path:"progress",loadComponent:()=>import("./chunk-CTGMG44P.js")}],t=o;export{t as default};
@@ -0,0 +1 @@
1
+ import{n as T}from"./chunk-RN7NMYKV.js";import"./chunk-Z2NFEFOH.js";import"./chunk-6FFPXENZ.js";import"./chunk-SPHWZHBB.js";import"./chunk-KSP3JQHY.js";import{a as m}from"./chunk-HTNYQE2B.js";import"./chunk-GJROCOAD.js";import{a as L}from"./chunk-554T66WI.js";import"./chunk-7L42EO7J.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as v}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as O,c as B,e as b,f as $}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{p as N,q as I,v as K}from"./chunk-NMXJMVL5.js";import{h as M}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as A,Bc as E,E as C,Gb as d,Hb as c,Nb as R,Qa as n,Y as _,ab as D,bc as P,fb as k,kc as h,nb as u,nc as l,sb as g,wb as p,xb as s,yb as r}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var G=(i,e)=>[i,e,"general"],y=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],w=(i,e)=>[i,e,"schedule"],X=(i,e)=>[i,e,"options"];function x(i,e){if(i&1&&(p(0,"p"),A(1),s()),i&2){let a=R();n(),P("Editing: ",a.backupName(),"")}}function z(i,e){i&1&&r(0,"spk-progress-bar",6)}function V(i,e){i&1&&(p(0,"section"),r(1,"router-outlet"),s())}var f=class i{#t=_(O);#e=_(T);#a=_(v);#i=_(M);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=E(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(C(1)).subscribe({next:e=>{let a=e.Backup;a.Settings=[...a.Settings,...e.ApplicationOptions.map(t=>({Name:t.Name,Value:t.Value}))],this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(a),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=D({type:i,selectors:[["app-backup"]],features:[h([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(r(0,"app-status-bar"),p(1,"header"),k(2,x,2,1,"p"),p(3,"spk-stepper")(4,"div",5),d(5,0),r(6,"spk-radio"),c(),s(),p(7,"div",5),d(8,1),r(9,"spk-radio"),c(),s(),p(10,"div",5),d(11,2),r(12,"spk-radio"),c(),s(),p(13,"div",5),d(14,3),r(15,"spk-radio"),c(),s(),p(16,"div",5),d(17,4),r(18,"spk-radio"),c(),s()()(),k(19,z,1,0,"spk-progress-bar",6)(20,V,2,0,"section")),a&2&&(n(2),g(t.isNew()?-1:2),n(2),u("routerLink",l(7,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(10,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(13,U,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(16,w,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),u("routerLink",l(19,X,t.isDraft()?"/backup-draft":"/backup",t.backupId())),n(3),g(t.finishedLoading()?20:19))},dependencies:[B,b,$,L,I,K,N],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{f as default};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-HTNYQE2B.js";import{a as te}from"./chunk-TJS6O6KD.js";import"./chunk-2ZVLF3KW.js";import"./chunk-6OKAWH4X.js";import{a as Q}from"./chunk-GDHVQU56.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-T2OUHRUV.js";import"./chunk-CHRKPWRG.js";import"./chunk-I3C2AEHI.js";import{b as z,e as q}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as W,g as j,l as J}from"./chunk-WX7L7V6J.js";import{h as H}from"./chunk-4AECHE4W.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as C,Ac as k,Bc as h,E as g,F as u,Gb as p,Hb as r,Ib as F,Jb as L,Kb as U,Mb as A,N as E,Qa as s,Y as P,ab as y,ec as w,fb as v,fc as X,gc as V,nb as d,pb as D,r as O,rb as G,sb as K,ua as c,wb as i,xb as a,yb as l}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",19),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",19),C(1,"warning"),a())}var m=class S{#a=P(z);#i=P(Q);#e=P(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:17,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",17),A("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",18),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",19)(32,ne,2,0,"spk-icon",19),a(),i(33,"div",20)(34,"button",16),A("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),A("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),A("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),A("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),D("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()),s(3),D("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged())),s(3),d("disabled",!(e.isValidatedPath()&&e.pathHasChanged()))}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
1
+ import{a as ae}from"./chunk-HTNYQE2B.js";import{a as te}from"./chunk-554T66WI.js";import"./chunk-7LU4D3GR.js";import"./chunk-EXJKKQZX.js";import{a as Q}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as z,e as q}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as W,g as j,l as J}from"./chunk-NMXJMVL5.js";import{h as H}from"./chunk-JSGFZ2GA.js";import"./chunk-L76NC2T6.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as C,Ac as k,Bc as h,E as g,F as d,Gb as p,Hb as r,Ib as F,Jb as L,Kb as U,Mb as u,N as E,Qa as s,Y as D,ab as y,ec as w,fb as v,fc as X,gc as V,nb as A,pb as P,r as O,rb as G,sb as K,ua as c,wb as i,xb as a,yb as l}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),C(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),C(1,"warning"),a())}var m=class S{#a=D(z);#i=D(Q);#e=D(H);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=k(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=k(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=k(()=>this.backupFilePath()!==this.#t);backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),d(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),d(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(E(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),d(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(d(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:18,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintenance`;let T;T=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let b;b=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let f;f=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,T,b,f,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintenance"],["spk-button","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),p(4,0),l(5,"spk-icon"),r(),a()(),i(6,"article")(7,"h1"),F(8,1),a(),i(9,"p"),F(10,2),a()(),i(11,"article")(12,"h2"),F(13,3),a(),i(14,"p"),F(15,4),a(),i(16,"div",15)(17,"button",16),u("click",function(){return e.repairDatabase()}),p(18,5),l(19,"spk-icon"),r(),a(),i(20,"button",16),u("click",function(){return e.deleteDatabase()}),p(21,6),l(22,"spk-icon"),r(),a(),i(23,"button",16),u("click",function(){return e.restoreDatabase()}),p(24,7),l(25,"spk-icon"),r(),a()()(),i(26,"article")(27,"h2"),F(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(T){return X(e.backupFilePath,T)||(e.backupFilePath=T),T}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",16),u("click",function(){return e.resetDatabasePath()}),p(35,9),l(36,"spk-icon"),r(),a(),i(37,"button",16),u("click",function(){return e.saveDatabasePath()}),p(38,10),l(39,"spk-icon"),r(),a(),i(40,"button",16),u("click",function(){return e.saveAndRepairDatabasePath()}),p(41,11),l(42,"spk-icon"),r(),a(),i(43,"button",16),u("click",function(){return e.moveDatabasePath()}),p(44,12),l(45,"spk-icon"),r(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isDeleting()),A("disabled",!e.isValidatedPath()),s(3),P("loader",e.isRestoring()),A("disabled",e.pathHasChanged()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged()),s(3),A("disabled",!e.pathHasChanged())}},dependencies:[ee,Y,Z,x,te,j,J,W,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
@@ -1,2 +1,2 @@
1
- import{a as V}from"./chunk-4RGZG24K.js";import{a as A,n as R,w as F}from"./chunk-WX7L7V6J.js";import{j as N}from"./chunk-CKPICCFH.js";import{$b as s,Bc as x,Cb as w,Ib as m,Mb as y,Nb as r,Qa as l,Y as O,ab as h,ac as L,bc as d,da as b,ea as I,fb as u,nb as T,ob as P,pb as C,pc as G,ra as p,rc as $,sb as g,tb as S,ua as M,ub as v,vb as f,wb as o,xb as i,yb as k}from"./chunk-W2F756OF.js";function B(n,t){n&1&&(o(0,"div",4),m(1,0),i())}function D(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function U(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,D,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Exception))}}function X(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function z(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,X,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),s(4),i(),o(5,"div",14),s(6),i(),o(7,"div",14),s(8),i(),o(9,"div",14),s(10),i(),o(11,"div",14),s(12),i()(),u(13,U,4,0,"code")(14,z,4,0,"code"),i()()),n&2){let e=r().$implicit;l(4),d("ID: ",e.ID,""),l(2),d("Type: ",e.Type,""),l(2),d("Tag: ",e.Tag,""),l(2),d("TaskID: ",e.TaskID,""),l(2),d("MessageID: ",e.MessageID,""),l(),g(e.Exception?13:-1),l(),g(e.Message?14:-1)}}function j(n,t){if(n&1){let e=w();o(0,"tr",10),y("click",function(){let _=b(e).$index,c=r(2);return I(c.toggleRow(_))}),o(1,"td"),s(2),G(3,"date"),i(),o(4,"td"),s(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),s(9,"caret-down"),i()()()(),u(10,W,15,7,"tr")}if(n&2){let e=t.$implicit,a=t.$index,_=r(2);l(2),L($(3,5,e.When,"MMM dd. hh:mm")),l(3),L(_.subStringMessage(e.Message)),l(2),C("rotated-icon",a===_.openRowIndex()),l(3),g(a===_.openRowIndex()?10:-1)}}function H(n,t){if(n&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),m(3,1),i(),o(4,"th"),m(5,2),i(),k(6,"th",8),i(),v(7,j,11,8,null,null,S),o(9,"div",9),m(10,3),i()()),n&2){let e=r();P("grid-template-columns","auto 1fr auto"),C("type-b",e.asSimpleList()),T("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var E=class n{#e=O(V);whenFilter=p();backupIdFilter=p();asSimpleList=p();polling=p();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=x(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowIndex=M(null);whenEffect=x(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=x(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){this.openRowIndex.set(t===this.openRowIndex()?null:t)}breakIntoLines(t){return t?t.split(`
1
+ import{a as V}from"./chunk-CD3DB23J.js";import{a as A,n as R,w as F}from"./chunk-NMXJMVL5.js";import{j as N}from"./chunk-CKPICCFH.js";import{$b as s,Bc as x,Cb as w,Ib as m,Mb as y,Nb as r,Qa as l,Y as O,ab as h,ac as L,bc as d,da as b,ea as I,fb as u,nb as T,ob as P,pb as C,pc as G,ra as p,rc as $,sb as g,tb as S,ua as M,ub as v,vb as f,wb as o,xb as i,yb as k}from"./chunk-W2F756OF.js";function B(n,t){n&1&&(o(0,"div",4),m(1,0),i())}function D(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function U(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,D,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Exception))}}function X(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function z(n,t){if(n&1&&(o(0,"code")(1,"ol",15),v(2,X,2,1,"li",null,S),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),s(4),i(),o(5,"div",14),s(6),i(),o(7,"div",14),s(8),i(),o(9,"div",14),s(10),i(),o(11,"div",14),s(12),i()(),u(13,U,4,0,"code")(14,z,4,0,"code"),i()()),n&2){let e=r().$implicit;l(4),d("ID: ",e.ID,""),l(2),d("Type: ",e.Type,""),l(2),d("Tag: ",e.Tag,""),l(2),d("TaskID: ",e.TaskID,""),l(2),d("MessageID: ",e.MessageID,""),l(),g(e.Exception?13:-1),l(),g(e.Message?14:-1)}}function j(n,t){if(n&1){let e=w();o(0,"tr",10),y("click",function(){let _=b(e).$index,c=r(2);return I(c.toggleRow(_))}),o(1,"td"),s(2),G(3,"date"),i(),o(4,"td"),s(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),s(9,"caret-down"),i()()()(),u(10,W,15,7,"tr")}if(n&2){let e=t.$implicit,a=t.$index,_=r(2);l(2),L($(3,5,e.When,"MMM dd. hh:mm")),l(3),L(_.subStringMessage(e.Message)),l(2),C("rotated-icon",a===_.openRowIndex()),l(3),g(a===_.openRowIndex()?10:-1)}}function H(n,t){if(n&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),m(3,1),i(),o(4,"th"),m(5,2),i(),k(6,"th",8),i(),v(7,j,11,8,null,null,S),o(9,"div",9),m(10,3),i()()),n&2){let e=r();P("grid-template-columns","auto 1fr auto"),C("type-b",e.asSimpleList()),T("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var E=class n{#e=O(V);whenFilter=p();backupIdFilter=p();asSimpleList=p();polling=p();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=x(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowIndex=M(null);whenEffect=x(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=x(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){this.openRowIndex.set(t===this.openRowIndex()?null:t)}breakIntoLines(t){return t?t.split(`
2
2
  `):[]}subStringMessage(t){return t?t.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=h({type:n,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&C("simple-list",a.asSimpleList())},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],asSimpleList:[1,"asSimpleList"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let t;t=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let _;return _=$localize`No data available`,[t,e,a,_,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["table-header",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["spk-button","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&u(0,B,2,0,"div",4)(1,H,11,6,"spk-table",5),e&2&&g(a.logLevel()==="Disabled"?0:1)},dependencies:[F,A,R,N],styles:["[_nghost-%COMP%]{display:block}.simple-list[_nghost-%COMP%] spk-table[_ngcontent-%COMP%]{--table-td-bg: var(--base-level-20);height:100%}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-level-20);border:1px solid var(--base-level-30);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column}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;max-width:100%}"],changeDetection:0})};export{E as a};