@duplicati/ngclient 0.0.178 → 0.0.181

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 (151) hide show
  1. package/assets/dest-icons/dincloud.png +0 -0
  2. package/assets/dest-icons/dreamhost.png +0 -0
  3. package/assets/dest-icons/dunkel.png +0 -0
  4. package/assets/dest-icons/duplicati.png +0 -0
  5. package/assets/dest-icons/hosteurope.png +0 -0
  6. package/assets/dest-icons/ibmcos.png +0 -0
  7. package/assets/dest-icons/impossiblecloud.png +0 -0
  8. package/assets/dest-icons/infomaniak.png +0 -0
  9. package/assets/dest-icons/internxt.png +0 -0
  10. package/assets/dest-icons/polisystems.png +0 -0
  11. package/assets/dest-icons/rabata.png +0 -0
  12. package/assets/dest-icons/sakuracloud.png +0 -0
  13. package/assets/dest-icons/scaleway.png +0 -0
  14. package/assets/dest-icons/seagatelyve.png +0 -0
  15. package/assets/dest-icons/storadera.png +0 -0
  16. package/assets/dest-icons/wasabi.png +0 -0
  17. package/assets/sh.woff2 +0 -0
  18. package/chunk-2JD6CIZ4.js +1 -0
  19. package/chunk-2PAQOFN3.js +1 -0
  20. package/chunk-2QP2Y5QS.js +1 -0
  21. package/chunk-2XXH473G.js +1 -0
  22. package/chunk-3BGJPVDV.js +1 -0
  23. package/chunk-3U36LG4E.js +1 -0
  24. package/{chunk-66GTW6AR.js → chunk-44TUAFTV.js} +1 -1
  25. package/chunk-4BAHV6VO.js +1 -0
  26. package/{chunk-5HQJVUNE.js → chunk-4N3AWKEK.js} +1 -1
  27. package/chunk-4NN5ZM73.js +1 -0
  28. package/chunk-4QGMMHYT.js +1 -0
  29. package/chunk-4VEFX5WQ.js +2 -0
  30. package/{chunk-WILUKPQ3.js → chunk-5DJAX2HH.js} +1 -1
  31. package/{chunk-6KSFCVWH.js → chunk-5JYCHNFV.js} +1 -1
  32. package/chunk-5QAV2WXY.js +1 -0
  33. package/chunk-5QZIKR6A.js +1 -0
  34. package/chunk-5YSRDRTE.js +7 -0
  35. package/{chunk-UT542KNO.js → chunk-6AJQBDVV.js} +1 -1
  36. package/chunk-6ALGXRIS.js +1 -0
  37. package/chunk-6GC4UPHS.js +1 -0
  38. package/{chunk-6KLZAB4D.js → chunk-7XS6T6TX.js} +1 -1
  39. package/{chunk-GO4NSDR6.js → chunk-A4LPGPDU.js} +1 -1
  40. package/chunk-AABUGLWU.js +1 -0
  41. package/{chunk-T5LLH46J.js → chunk-AS6Z56AD.js} +1 -1
  42. package/{chunk-GH6EHG4Z.js → chunk-B2Y54P3R.js} +1 -1
  43. package/{chunk-BKANUILG.js → chunk-BGTK25UG.js} +1 -1
  44. package/{chunk-OWEK4OHZ.js → chunk-CR3C6XYB.js} +1 -1
  45. package/{chunk-5MXXIFJM.js → chunk-DI73L7JI.js} +1 -1
  46. package/{chunk-FBWFZMGL.js → chunk-DW332N2S.js} +1 -1
  47. package/{chunk-WHLIHNEE.js → chunk-EBQRGLJL.js} +1 -1
  48. package/{chunk-Y4IW22ZU.js → chunk-ETAHWUMY.js} +1 -1
  49. package/{chunk-U63HBLGG.js → chunk-FK7JFD5B.js} +1 -1
  50. package/{chunk-AJXTVI3H.js → chunk-FOQJA6X2.js} +1 -1
  51. package/chunk-FQYMMYS4.js +1 -0
  52. package/{chunk-6Y3RYZEE.js → chunk-FQZFKTPW.js} +1 -1
  53. package/chunk-H4TNKM4Y.js +1 -0
  54. package/chunk-HPNLQHW6.js +1 -0
  55. package/{chunk-EIZKIIDW.js → chunk-HSUSP2MR.js} +1 -1
  56. package/chunk-IW4RDAIN.js +2 -0
  57. package/{chunk-AJMSZFGR.js → chunk-JGQOVZKK.js} +1 -1
  58. package/{chunk-WLXOWWZB.js → chunk-JJJ5UALU.js} +1 -1
  59. package/{chunk-YQSTMC2K.js → chunk-JW4235US.js} +1 -1
  60. package/{chunk-SD4AWG7T.js → chunk-JWO4FPWJ.js} +1 -1
  61. package/{chunk-D7TCA6E7.js → chunk-KRXQDBGB.js} +1 -1
  62. package/chunk-KSMDO4WE.js +1 -0
  63. package/{chunk-JTQDY6AH.js → chunk-LDLSFKM4.js} +1 -1
  64. package/chunk-LFISHZZP.js +1 -0
  65. package/{chunk-M7SLT3MF.js → chunk-LMCAVLBO.js} +1 -1
  66. package/{chunk-PW55LN2T.js → chunk-LX37357J.js} +1 -1
  67. package/{chunk-AGPZBYW6.js → chunk-ME77WZZI.js} +1 -1
  68. package/{chunk-TJYZBTTS.js → chunk-MHRECQ5Y.js} +1 -1
  69. package/chunk-MRAKGZE6.js +1 -0
  70. package/{chunk-NEQW3H7F.js → chunk-MXH4QJKB.js} +1 -1
  71. package/{chunk-PJLZ7V22.js → chunk-NDPFWL4Y.js} +1 -1
  72. package/{chunk-PTSGXV6M.js → chunk-NJ2XZSM6.js} +1 -1
  73. package/{chunk-GMNCWLGX.js → chunk-O4OTZE5N.js} +1 -1
  74. package/chunk-OTPG7USH.js +1 -0
  75. package/{chunk-6CYY2QG6.js → chunk-PAMKTLG5.js} +1 -1
  76. package/chunk-PCFTQ4BE.js +1 -0
  77. package/{chunk-56FBKSBN.js → chunk-PKPBSTZA.js} +1 -1
  78. package/{chunk-G4FG3YUE.js → chunk-PUV7YKEQ.js} +1 -1
  79. package/chunk-QG566HCB.js +1 -0
  80. package/chunk-QHQQ5BDV.js +1 -0
  81. package/{chunk-FIBRO5I3.js → chunk-QPTSKQZ2.js} +2 -2
  82. package/{chunk-CGKL2MHM.js → chunk-QZRRXR3V.js} +1 -1
  83. package/{chunk-MIUFEQ3S.js → chunk-RXVG6AZW.js} +1 -1
  84. package/chunk-SBWCJMHH.js +1 -0
  85. package/chunk-SFR3XMV4.js +1 -0
  86. package/chunk-T2WO6CVD.js +4 -0
  87. package/{chunk-CHUTAXTB.js → chunk-T7WSF7RL.js} +1 -1
  88. package/chunk-TEGY2W63.js +1 -0
  89. package/{chunk-NEV6JB5M.js → chunk-TELPJYLN.js} +1 -1
  90. package/chunk-TT3S63BX.js +1 -0
  91. package/{chunk-JTZ2JEV4.js → chunk-TT4FAVLM.js} +1 -1
  92. package/{chunk-OC3JR7EH.js → chunk-VEWX3KXN.js} +1 -1
  93. package/{chunk-LF24JF3M.js → chunk-VHOAXFIJ.js} +1 -1
  94. package/chunk-VW35MTSI.js +1 -0
  95. package/{chunk-FXF5TO2Q.js → chunk-VYJNNEM5.js} +1 -1
  96. package/chunk-WIVARGP6.js +1 -0
  97. package/chunk-XADL5RYU.js +1 -0
  98. package/chunk-XKHIN6T2.js +2 -0
  99. package/{chunk-WA7KEG63.js → chunk-XZ35H3QB.js} +1 -1
  100. package/chunk-XZ37OAYY.js +1 -0
  101. package/chunk-YDDSLDHZ.js +1 -0
  102. package/chunk-YEYDDZIG.js +1 -0
  103. package/chunk-YV32N6PE.js +1 -0
  104. package/chunk-ZHTPSBYJ.js +1 -0
  105. package/{chunk-IH4WNUW5.js → chunk-ZXVCNNR6.js} +1 -1
  106. package/index.html +43 -1
  107. package/main-RYFYCW3E.js +1 -0
  108. package/package.json +1 -1
  109. package/assets/favicon.ico +0 -0
  110. package/chunk-27UON6YV.js +0 -2
  111. package/chunk-3CJTIOP4.js +0 -1
  112. package/chunk-4IUPBI2K.js +0 -1
  113. package/chunk-5UXRNNTT.js +0 -1
  114. package/chunk-6O5DBV6Y.js +0 -1
  115. package/chunk-76LEHUPM.js +0 -1
  116. package/chunk-7IQ5FSGI.js +0 -1
  117. package/chunk-AO4ZIHUL.js +0 -1
  118. package/chunk-AYN5EDSZ.js +0 -1
  119. package/chunk-B5LH4P4E.js +0 -1
  120. package/chunk-BGYXB4MY.js +0 -1
  121. package/chunk-BUO6CCKF.js +0 -1
  122. package/chunk-EBKB4YCL.js +0 -1
  123. package/chunk-F3RWB4I6.js +0 -1
  124. package/chunk-FCCYQZ63.js +0 -1
  125. package/chunk-H6UYYWCU.js +0 -1
  126. package/chunk-J5LEAYPL.js +0 -1
  127. package/chunk-KR56GPXG.js +0 -2
  128. package/chunk-LUQFHR44.js +0 -1
  129. package/chunk-N4ADMNNU.js +0 -1
  130. package/chunk-PCLJOXMF.js +0 -1
  131. package/chunk-PF2QQ2YW.js +0 -1
  132. package/chunk-PNECF7JS.js +0 -1
  133. package/chunk-PUOOECEB.js +0 -1
  134. package/chunk-QF5K4MHH.js +0 -1
  135. package/chunk-QWNOPLJC.js +0 -1
  136. package/chunk-QZJ7QZZ4.js +0 -1
  137. package/chunk-R6XDJFPE.js +0 -1
  138. package/chunk-RMOTUTEQ.js +0 -1
  139. package/chunk-RYXU2QDS.js +0 -1
  140. package/chunk-SS7TCWY5.js +0 -1
  141. package/chunk-TXPM764C.js +0 -1
  142. package/chunk-U4T4BSPF.js +0 -1
  143. package/chunk-VSLN6R7K.js +0 -1
  144. package/chunk-WNOXOC4X.js +0 -1
  145. package/chunk-WS7QWRRY.js +0 -1
  146. package/chunk-WWIKIIGV.js +0 -7
  147. package/chunk-WWIXPGSZ.js +0 -1
  148. package/chunk-XRXXVFJ4.js +0 -1
  149. package/chunk-XYHHESIX.js +0 -4
  150. package/chunk-XZZDJCRM.js +0 -1
  151. package/main-OOXK65IC.js +0 -1
@@ -1,2 +1,2 @@
1
- import{a as ge,b as Te}from"./chunk-QF5K4MHH.js";import{A as ae,E as ce,K as de,O as D,R as w,Sa as me,U as O,V as I,W as y,X as le,Z as Q,_ as ue,ea as he,f as q,fa as fe,ia as pe,l as Z,ma as ye,p as L,x as ie}from"./chunk-XYHHESIX.js";import{a as Y}from"./chunk-7CGTOI24.js";var v=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
2
- `).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),s=e.slice(n+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let o=(r.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let s=r.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(l=>s.indexOf(l)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=r.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(r,o)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var X=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},J=class{encodeKey(r){return ve(r)}encodeValue(r){return ve(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function xe(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,l]=s==-1?[r.decodeKey(o),""]:[r.decodeKey(o.slice(0,s)),r.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(l),e.set(i,a)}),e}var Fe=/%(\d[a-f0-9])/gi,je={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ve(t){return encodeURIComponent(t).replace(Fe,(r,e)=>je[e]??r)}function B(t){return`${t}`}var R=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new J,r.fromString){if(r.fromObject)throw new D(2805,!1);this.map=xe(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],o=Array.isArray(n)?n.map(B):[B(n)];this.map.set(e,o)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let o=r[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(B(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],o=n.indexOf(B(r.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function Ce(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ee(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function we(t){return typeof Blob<"u"&&t instanceof Blob}function Re(t){return typeof FormData<"u"&&t instanceof FormData}function Le(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var U="Content-Type",V="Accept",be="text/plain",Pe="application/json",Me=`${Pe}, ${be}, */*`,x=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,e,n,o){this.url=e,this.method=r.toUpperCase();let s;if(Ce(this.method)||o?(this.body=n!==void 0?n:null,s=o):s=n,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new D(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new v,this.context??=new X,!this.params)this.params=new R,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),a=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Ee(this.body)||we(this.body)||Re(this.body)||Le(this.body)?this.body:this.body instanceof R?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||Re(this.body)?null:we(this.body)?this.body.type||null:Ee(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,o=r.responseType||this.responseType,s=r.keepalive??this.keepalive,i=r.priority||this.priority,l=r.cache||this.cache,a=r.mode||this.mode,f=r.redirect||this.redirect,m=r.credentials||this.credentials,g=r.referrer||this.referrer,A=r.integrity||this.integrity,k=r.referrerPolicy||this.referrerPolicy,_=r.transferCache??this.transferCache,h=r.timeout??this.timeout,c=r.body!==void 0?r.body:this.body,d=r.withCredentials??this.withCredentials,p=r.reportProgress??this.reportProgress,P=r.headers||this.headers,u=r.params||this.params,M=r.context??this.context;return r.setHeaders!==void 0&&(P=Object.keys(r.setHeaders).reduce((N,E)=>N.set(E,r.setHeaders[E]),P)),r.setParams&&(u=Object.keys(r.setParams).reduce((N,E)=>N.set(E,r.setParams[E]),u)),new t(e,n,c,{params:u,headers:P,context:M,reportProgress:p,responseType:o,withCredentials:d,transferCache:_,keepalive:s,cache:l,priority:i,timeout:h,mode:a,redirect:f,credentials:m,referrer:g,integrity:A,referrerPolicy:k})}},b=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(b||{}),F=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,e=200,n="OK"){this.headers=r.headers||new v,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},S=class t extends F{constructor(r={}){super(r)}type=b.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},j=class t extends F{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=b.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},T=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},Ne=200,Ue=204;var Se=/^\)\]\}',?\n/,De=new O(""),z=(()=>{class t{fetchImpl=y(ee,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=y(pe);destroyRef=y(fe);handle(e){return new q(n=>{let o=new AbortController;this.doRequest(e,o.signal,n).then(re,i=>n.error(new T({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort()}})}async doRequest(e,n,o){let s=this.createRequestInit(e),i;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,Y({signal:n},s)));Be(h),o.next({type:b.Sent}),i=await h}catch(h){o.error(new T({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let l=new v(i.headers),a=i.statusText,f=i.url||e.urlWithParams,m=i.status,g=null;if(e.reportProgress&&o.next(new S({headers:l,status:m,statusText:a,url:f})),i.body){let h=i.headers.get("content-length"),c=[],d=i.body.getReader(),p=0,P,u,M=typeof Zone<"u"&&Zone.current,N=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await d.cancel(),N=!0;break}let{done:C,value:K}=await d.read();if(C)break;if(c.push(K),p+=K.length,e.reportProgress){u=e.responseType==="text"?(u??"")+(P??=new TextDecoder).decode(K,{stream:!0}):void 0;let se=()=>o.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:p,partialText:u});M?M.run(se):se()}}}),N){o.complete();return}let E=this.concatChunks(c,p);try{let C=i.headers.get(U)??"";g=this.parseBody(e,E,C,m)}catch(C){o.error(new T({error:C,headers:new v(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}m===0&&(m=g?Ne:0);let A=m>=200&&m<300,k=i.redirected,_=i.type;A?(o.next(new j({body:g,headers:l,status:m,statusText:a,url:f,redirected:k,responseType:_})),o.complete()):o.error(new T({error:g,headers:l,status:m,statusText:a,url:f,redirected:k,responseType:_}))}parseBody(e,n,o,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(n).replace(Se,"");if(i==="")return null;try{return JSON.parse(i)}catch(l){if(s<200||s>=300)return i;throw l}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>n[s]=i.join(",")),e.headers.has(V)||(n[V]=Me),!e.headers.has(U)){let s=e.detectContentTypeHeader();s!==null&&(n[U]=s)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,n){let o=new Uint8Array(n),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),ee=class{};function re(){}function Be(t){t.then(re,re)}var ze=/^\)\]\}',?\n/;var te=(()=>{class t{xhrFactory;tracingService=y(me,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new D(-2800,!1);let n=this.xhrFactory;return Z(null).pipe(de(()=>new q(s=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((c,d)=>i.setRequestHeader(c,d.join(","))),e.headers.has(V)||i.setRequestHeader(V,Me),!e.headers.has(U)){let c=e.detectContentTypeHeader();c!==null&&i.setRequestHeader(U,c)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let c=e.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let l=e.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=i.statusText||"OK",d=new v(i.getAllResponseHeaders()),p=i.responseURL||e.url;return a=new S({headers:d,status:i.status,statusText:c,url:p}),a},m=this.maybePropagateTrace(()=>{let{headers:c,status:d,statusText:p,url:P}=f(),u=null;d!==Ue&&(u=typeof i.response>"u"?i.responseText:i.response),d===0&&(d=u?Ne:0);let M=d>=200&&d<300;if(e.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(ze,"");try{u=u!==""?JSON.parse(u):null}catch(E){u=N,M&&(M=!1,u={error:E,text:u})}}M?(s.next(new j({body:u,headers:c,status:d,statusText:p,url:P||void 0})),s.complete()):s.error(new T({error:u,headers:c,status:d,statusText:p,url:P||void 0}))}),g=this.maybePropagateTrace(c=>{let{url:d}=f(),p=new T({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:d||void 0});s.error(p)}),A=g;e.timeout&&(A=this.maybePropagateTrace(c=>{let{url:d}=f(),p=new T({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:d||void 0});s.error(p)}));let k=!1,_=this.maybePropagateTrace(c=>{k||(s.next(f()),k=!0);let d={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),e.responseType==="text"&&i.responseText&&(d.partialText=i.responseText),s.next(d)}),h=this.maybePropagateTrace(c=>{let d={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),s.next(d)});return i.addEventListener("load",m),i.addEventListener("error",g),i.addEventListener("timeout",A),i.addEventListener("abort",g),e.reportProgress&&(i.addEventListener("progress",_),l!==null&&i.upload&&i.upload.addEventListener("progress",h)),i.send(l),s.next({type:b.Sent}),()=>{i.removeEventListener("error",g),i.removeEventListener("abort",g),i.removeEventListener("load",m),i.removeEventListener("timeout",A),e.reportProgress&&(i.removeEventListener("progress",_),l!==null&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||t)(I(Te))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xe(t,r){return r(t)}function Je(t,r,e){return(n,o)=>ue(e,()=>r(n,s=>t(s,o)))}var ne=new O("",{factory:()=>[]}),Oe=new O(""),Ie=new O("",{providedIn:"root",factory:()=>!0});var G=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I(te),o},providedIn:"root"})}return t})();var $=(()=>{class t{backend;injector;chain=null;pendingTasks=y(ye);contributeToStability=y(Ie);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(ne),...this.injector.get(Oe,[])]));this.chain=n.reduceRight((o,s)=>Je(o,s,this.injector),Xe)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(ce(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(I(G),I(Q))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I($),o},providedIn:"root"})}return t})();function H(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Ae=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof x)s=e;else{let a;o.headers instanceof v?a=o.headers:a=new v(o.headers);let f;o.params&&(o.params instanceof R?f=o.params:f=new R({fromObject:o.params})),s=new x(e,n,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=Z(s).pipe(ae(a=>this.handler.handle(a)));if(e instanceof x||o.observe==="events")return i;let l=i.pipe(ie(a=>a instanceof j));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(L(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new D(2806,!1);return a.body}));case"blob":return l.pipe(L(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new D(2807,!1);return a.body}));case"text":return l.pipe(L(a=>{if(a.body!==null&&typeof a.body!="string")throw new D(2808,!1);return a.body}));case"json":default:return l.pipe(L(a=>a.body))}case"response":return l;default:throw new D(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new R().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,H(o,n))}post(e,n,o={}){return this.request("POST",e,H(o,n))}put(e,n,o={}){return this.request("PUT",e,H(o,n))}static \u0275fac=function(n){return new(n||t)(I(oe))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ve=new O("",{factory:()=>!0}),$e="XSRF-TOKEN",Ge=new O("",{providedIn:"root",factory:()=>$e}),We="X-XSRF-TOKEN",Ke=new O("",{providedIn:"root",factory:()=>We}),Ye=(()=>{class t{cookieName=y(Ge);doc=y(he);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ge(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I(Ye),o},providedIn:"root"})}return t})();function qe(t,r){let e=t.url.toLowerCase();if(!y(Ve)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=y(ke).getToken(),o=y(Ke);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),r(t)}var W=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(W||{});function _e(t,r){return{\u0275kind:t,\u0275providers:r}}function Ze(...t){let r=[Ae,$,{provide:oe,useExisting:$},{provide:G,useFactory:()=>y(De,{optional:!0})??y(te)},{provide:ne,useValue:qe,multi:!0}];for(let e of t)r.push(...e.\u0275providers);return le(r)}function Qe(t){return _e(W.Interceptors,t.map(r=>({provide:ne,useValue:r,multi:!0})))}function He(){return _e(W.Fetch,[z,{provide:De,useExisting:z},{provide:G,useExisting:z}])}export{v as a,j as b,T as c,Ae as d,Ze as e,Qe as f,He as g};
1
+ import{d as ge,g as Te,h as ve}from"./chunk-TT3S63BX.js";import{A as ae,E as ce,K as de,O,R as w,Sa as me,U as D,V as I,W as f,X as le,Z as Q,_ as ue,ea as he,f as q,fa as fe,ia as pe,l as Z,ma as ye,p as C,x as ie}from"./chunk-T2WO6CVD.js";import{a as Y}from"./chunk-7CGTOI24.js";var v=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
2
+ `).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),s=e.slice(n+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let o=(r.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let s=r.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(l=>s.indexOf(l)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=r.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(r,o)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var X=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},J=class{encodeKey(r){return Ee(r)}encodeValue(r){return Ee(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Fe(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,l]=s==-1?[r.decodeKey(o),""]:[r.decodeKey(o.slice(0,s)),r.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(l),e.set(i,a)}),e}var je=/%(\d[a-f0-9])/gi,Le={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ee(t){return encodeURIComponent(t).replace(je,(r,e)=>Le[e]??r)}function B(t){return`${t}`}var b=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new J,r.fromString){if(r.fromObject)throw new O(2805,!1);this.map=Fe(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],o=Array.isArray(n)?n.map(B):[B(n)];this.map.set(e,o)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let o=r[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(B(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],o=n.indexOf(B(r.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function Ce(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function we(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function be(t){return typeof Blob<"u"&&t instanceof Blob}function Re(t){return typeof FormData<"u"&&t instanceof FormData}function Ue(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var U="Content-Type",V="Accept",Pe="text/plain",Me="application/json",Ne=`${Me}, ${Pe}, */*`,x=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,e,n,o){this.url=e,this.method=r.toUpperCase();let s;if(Ce(this.method)||o?(this.body=n!==void 0?n:null,s=o):s=n,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new O(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new v,this.context??=new X,!this.params)this.params=new b,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),a=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||we(this.body)||be(this.body)||Re(this.body)||Ue(this.body)?this.body:this.body instanceof b?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||Re(this.body)?null:be(this.body)?this.body.type||null:we(this.body)?null:typeof this.body=="string"?Pe:this.body instanceof b?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Me:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,o=r.responseType||this.responseType,s=r.keepalive??this.keepalive,i=r.priority||this.priority,l=r.cache||this.cache,a=r.mode||this.mode,p=r.redirect||this.redirect,m=r.credentials||this.credentials,g=r.referrer||this.referrer,A=r.integrity||this.integrity,k=r.referrerPolicy||this.referrerPolicy,_=r.transferCache??this.transferCache,h=r.timeout??this.timeout,c=r.body!==void 0?r.body:this.body,d=r.withCredentials??this.withCredentials,y=r.reportProgress??this.reportProgress,P=r.headers||this.headers,u=r.params||this.params,M=r.context??this.context;return r.setHeaders!==void 0&&(P=Object.keys(r.setHeaders).reduce((N,E)=>N.set(E,r.setHeaders[E]),P)),r.setParams&&(u=Object.keys(r.setParams).reduce((N,E)=>N.set(E,r.setParams[E]),u)),new t(e,n,c,{params:u,headers:P,context:M,reportProgress:y,responseType:o,withCredentials:d,transferCache:_,keepalive:s,cache:l,priority:i,timeout:h,mode:a,redirect:p,credentials:m,referrer:g,integrity:A,referrerPolicy:k})}},R=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(R||{}),F=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,e=200,n="OK"){this.headers=r.headers||new v,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},S=class t extends F{constructor(r={}){super(r)}type=R.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},j=class t extends F{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=R.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},T=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},Oe=200,Se=204;var Be=/^\)\]\}',?\n/,De=new D(""),z=(()=>{class t{fetchImpl=f(ee,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=f(pe);destroyRef=f(fe);handle(e){return new q(n=>{let o=new AbortController;this.doRequest(e,o.signal,n).then(re,i=>n.error(new T({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort()}})}async doRequest(e,n,o){let s=this.createRequestInit(e),i;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,Y({signal:n},s)));ze(h),o.next({type:R.Sent}),i=await h}catch(h){o.error(new T({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let l=new v(i.headers),a=i.statusText,p=i.url||e.urlWithParams,m=i.status,g=null;if(e.reportProgress&&o.next(new S({headers:l,status:m,statusText:a,url:p})),i.body){let h=i.headers.get("content-length"),c=[],d=i.body.getReader(),y=0,P,u,M=typeof Zone<"u"&&Zone.current,N=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await d.cancel(),N=!0;break}let{done:L,value:K}=await d.read();if(L)break;if(c.push(K),y+=K.length,e.reportProgress){u=e.responseType==="text"?(u??"")+(P??=new TextDecoder).decode(K,{stream:!0}):void 0;let se=()=>o.next({type:R.DownloadProgress,total:h?+h:void 0,loaded:y,partialText:u});M?M.run(se):se()}}}),N){o.complete();return}let E=this.concatChunks(c,y);try{let L=i.headers.get(U)??"";g=this.parseBody(e,E,L,m)}catch(L){o.error(new T({error:L,headers:new v(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}m===0&&(m=g?Oe:0);let A=m>=200&&m<300,k=i.redirected,_=i.type;A?(o.next(new j({body:g,headers:l,status:m,statusText:a,url:p,redirected:k,responseType:_})),o.complete()):o.error(new T({error:g,headers:l,status:m,statusText:a,url:p,redirected:k,responseType:_}))}parseBody(e,n,o,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(n).replace(Be,"");if(i==="")return null;try{return JSON.parse(i)}catch(l){if(s<200||s>=300)return i;throw l}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>n[s]=i.join(",")),e.headers.has(V)||(n[V]=Ne),!e.headers.has(U)){let s=e.detectContentTypeHeader();s!==null&&(n[U]=s)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,n){let o=new Uint8Array(n),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),ee=class{};function re(){}function ze(t){t.then(re,re)}var Xe=/^\)\]\}',?\n/;var te=(()=>{class t{xhrFactory;tracingService=f(me,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new O(-2800,!1);let n=this.xhrFactory;return Z(null).pipe(de(()=>new q(s=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((c,d)=>i.setRequestHeader(c,d.join(","))),e.headers.has(V)||i.setRequestHeader(V,Ne),!e.headers.has(U)){let c=e.detectContentTypeHeader();c!==null&&i.setRequestHeader(U,c)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let c=e.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let l=e.serializeBody(),a=null,p=()=>{if(a!==null)return a;let c=i.statusText||"OK",d=new v(i.getAllResponseHeaders()),y=i.responseURL||e.url;return a=new S({headers:d,status:i.status,statusText:c,url:y}),a},m=this.maybePropagateTrace(()=>{let{headers:c,status:d,statusText:y,url:P}=p(),u=null;d!==Se&&(u=typeof i.response>"u"?i.responseText:i.response),d===0&&(d=u?Oe:0);let M=d>=200&&d<300;if(e.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(Xe,"");try{u=u!==""?JSON.parse(u):null}catch(E){u=N,M&&(M=!1,u={error:E,text:u})}}M?(s.next(new j({body:u,headers:c,status:d,statusText:y,url:P||void 0})),s.complete()):s.error(new T({error:u,headers:c,status:d,statusText:y,url:P||void 0}))}),g=this.maybePropagateTrace(c=>{let{url:d}=p(),y=new T({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:d||void 0});s.error(y)}),A=g;e.timeout&&(A=this.maybePropagateTrace(c=>{let{url:d}=p(),y=new T({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:d||void 0});s.error(y)}));let k=!1,_=this.maybePropagateTrace(c=>{k||(s.next(p()),k=!0);let d={type:R.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),e.responseType==="text"&&i.responseText&&(d.partialText=i.responseText),s.next(d)}),h=this.maybePropagateTrace(c=>{let d={type:R.UploadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),s.next(d)});return i.addEventListener("load",m),i.addEventListener("error",g),i.addEventListener("timeout",A),i.addEventListener("abort",g),e.reportProgress&&(i.addEventListener("progress",_),l!==null&&i.upload&&i.upload.addEventListener("progress",h)),i.send(l),s.next({type:R.Sent}),()=>{i.removeEventListener("error",g),i.removeEventListener("abort",g),i.removeEventListener("load",m),i.removeEventListener("timeout",A),e.reportProgress&&(i.removeEventListener("progress",_),l!==null&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||t)(I(ve))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Je(t,r){return r(t)}function Ve(t,r,e){return(n,o)=>ue(e,()=>r(n,s=>t(s,o)))}var ne=new D("",{factory:()=>[]}),Ie=new D(""),Ae=new D("",{providedIn:"root",factory:()=>!0});var G=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I(te),o},providedIn:"root"})}return t})();var $=(()=>{class t{backend;injector;chain=null;pendingTasks=f(ye);contributeToStability=f(Ae);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(ne),...this.injector.get(Ie,[])]));this.chain=n.reduceRight((o,s)=>Ve(o,s,this.injector),Je)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(ce(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(I(G),I(Q))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I($),o},providedIn:"root"})}return t})();function H(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var ke=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof x)s=e;else{let a;o.headers instanceof v?a=o.headers:a=new v(o.headers);let p;o.params&&(o.params instanceof b?p=o.params:p=new b({fromObject:o.params})),s=new x(e,n,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:p,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=Z(s).pipe(ae(a=>this.handler.handle(a)));if(e instanceof x||o.observe==="events")return i;let l=i.pipe(ie(a=>a instanceof j));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(C(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new O(2806,!1);return a.body}));case"blob":return l.pipe(C(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new O(2807,!1);return a.body}));case"text":return l.pipe(C(a=>{if(a.body!==null&&typeof a.body!="string")throw new O(2808,!1);return a.body}));case"json":default:return l.pipe(C(a=>a.body))}case"response":return l;default:throw new O(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new b().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,H(o,n))}post(e,n,o={}){return this.request("POST",e,H(o,n))}put(e,n,o={}){return this.request("PUT",e,H(o,n))}static \u0275fac=function(n){return new(n||t)(I(oe))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $e=new D("",{factory:()=>!0}),Ge="XSRF-TOKEN",We=new D("",{providedIn:"root",factory:()=>Ge}),Ke="X-XSRF-TOKEN",Ye=new D("",{providedIn:"root",factory:()=>Ke}),qe=(()=>{class t{cookieName=f(We);doc=f(he);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Te(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=I(qe),o},providedIn:"root"})}return t})();function Ze(t,r){if(!f($e)||t.method==="GET"||t.method==="HEAD")return r(t);try{let o=f(ge).href,{origin:s}=new URL(o),{origin:i}=new URL(t.url,s);if(s!==i)return r(t)}catch{return r(t)}let e=f(_e).getToken(),n=f(Ye);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),r(t)}var W=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(W||{});function xe(t,r){return{\u0275kind:t,\u0275providers:r}}function Qe(...t){let r=[ke,$,{provide:oe,useExisting:$},{provide:G,useFactory:()=>f(De,{optional:!0})??f(te)},{provide:ne,useValue:Ze,multi:!0}];for(let e of t)r.push(...e.\u0275providers);return le(r)}function He(t){return xe(W.Interceptors,t.map(r=>({provide:ne,useValue:r,multi:!0})))}function er(){return xe(W.Fetch,[z,{provide:De,useExisting:z},{provide:G,useExisting:z}])}export{v as a,j as b,T as c,ke as d,Qe as e,He as f,er as g};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-QWNOPLJC.js";import{W as m,a as S,b as i,la as c}from"./chunk-XYHHESIX.js";function u(...a){let e=c(...a);return Object.defineProperty(e,"value",{get:e.asReadonly(),set:e.set.bind(e)})}function A(a,e,o=!1,s){let l=m(f);e=l.getItemParsed(a,o)??e;let n=u(e),r=n[S];s?.equal&&(r.equal=s.equal);function g(t){t==null?l.removeItem(a):l.setItemParsed(a,t,o)}return n.set=t=>{g(t),i(r,t)},n.update=t=>{let T=t(n());g(T),i(r,T)},n}export{A as a};
1
+ import{a as f}from"./chunk-5QZIKR6A.js";import{W as m,a as S,b as i,la as c}from"./chunk-T2WO6CVD.js";function u(...a){let e=c(...a);return Object.defineProperty(e,"value",{get:e.asReadonly(),set:e.set.bind(e)})}function A(a,e,o=!1,s){let l=m(f);e=l.getItemParsed(a,o)??e;let n=u(e),r=n[S];s?.equal&&(r.equal=s.equal);function g(t){t==null?l.removeItem(a):l.setItemParsed(a,t,o)}return n.set=t=>{g(t),i(r,t)},n.update=t=>{let T=t(n());g(T),i(r,T)},n}export{A as a};
@@ -1 +1 @@
1
- import{a as le}from"./chunk-AO4ZIHUL.js";import"./chunk-SS7TCWY5.js";import"./chunk-6Q6SSTBK.js";import{a as ae}from"./chunk-U63HBLGG.js";import{a as _e}from"./chunk-WILUKPQ3.js";import"./chunk-NEV6JB5M.js";import"./chunk-CGKL2MHM.js";import"./chunk-QWNOPLJC.js";import{c as re}from"./chunk-FBWFZMGL.js";import{B as ie,D as ne,b as H,e as Q,i as Y,s as Z,u as ee,z as te}from"./chunk-RYXU2QDS.js";import{b as oe}from"./chunk-BKANUILG.js";import{d as j,e as q}from"./chunk-GO4NSDR6.js";import"./chunk-56FBKSBN.js";import"./chunk-FIBRO5I3.js";import"./chunk-RMOTUTEQ.js";import"./chunk-QF5K4MHH.js";import{$ as p,Ab as o,Cc as z,E as K,Fc as V,Ib as g,Mc as M,Pa as r,Rb as c,Rc as W,Sb as A,Tb as L,Ub as F,Vb as $,W as u,Xb as C,aa as P,cb as y,gc as x,jc as E,l as k,la as T,oc as S,p as U,pc as D,qc as h,rc as G,sb as m,sc as w,tb as f,tc as v,xc as J,yb as N,yc as X,z as I,zb as n}from"./chunk-XYHHESIX.js";import"./chunk-7CGTOI24.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function Ee(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,4),o(),n(3,"p"),c(4,5),o(),n(5,"sh-checkbox",11),E(6," Delete local database "),n(7,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteLocalDb,e)||(a.deleteLocalDb=e),P(e)}),o()()()}if(l&2){let t=C();r(7),S("ngModel",t.deleteLocalDb)}}function ue(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,6),o(),n(3,"p"),c(4,7),z(5,"bytes"),o(),n(6,"sh-checkbox",11),E(7," Delete remote files "),n(8,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteRemoteFiles,e)||(a.deleteRemoteFiles=e),P(e)}),o()()()}if(l&2){let t=C(),i=v(0),e=(i==null||i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.TargetFilesSize)??0;r(5),A(t.fileCount())(t.fileCount())(V(5,4,e,!0,!0)),L(4),r(3),S("ngModel",t.deleteRemoteFiles)}}var B=class l{#t=u(oe);#i=u(te);#e=u(le);#n=u(j);id=W.required();backup=M(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(U(()=>!0),I(()=>k(!1)))});fileCount=M(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=T(!1);deleteRemoteFiles=T(!1);isDeleting=T(!1);deleteBackup(){let _=this.id(),t=this.deleteLocalDb(),i=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#i.open(_e,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:e=>{e&&this.#e.deleteBackup({id:_,deleteLocalDb:t,deleteRemoteFiles:i}).pipe(K(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#n.navigate(["/"])}})}})}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=y({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;t=$localize`Export configuration`;let i;i=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let e;e=$localize`Cancel`;let a;a=$localize`Delete local database`;let b;b=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let R;R=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=F(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let O;return O=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,t,i,e,a,b,R,O,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(t,i){if(t&1){let e=g();G(0),n(1,"h3"),c(2,0),o(),m(3,Ee,8,1,"section"),n(4,"section")(5,"h4"),c(6,1),o(),n(7,"p"),c(8,2),o(),n(9,"button",8),E(10," Export configuration "),n(11,"sh-icon"),E(12,"caret-right"),o()()(),m(13,ue,9,8,"section"),n(14,"div",9)(15,"button",8),c(16,3),o(),n(17,"button",10),$("click",function(){return p(e),P(i.deleteBackup())}),E(18,"Delete backup"),o()()}if(t&2){let e=w(i.backup()),a=i.noLocalDbResource.value();r(2),A(e==null||e.Backup==null?null:e.Backup.Name),L(2),r(),f(a?3:-1),r(6),N("routerLink",X(8,ce,i.id())),r(4),f(a?13:-1),r(2),N("routerLink",J(10,se)),r(2),x("loader",i.isDeleting())}},dependencies:[ne,ie,ee,Z,H,Q,Y,q,ae],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"],changeDetection:0})};export{B as default};
1
+ import{a as le}from"./chunk-4NN5ZM73.js";import"./chunk-6Q6SSTBK.js";import{a as ae}from"./chunk-FK7JFD5B.js";import{a as _e}from"./chunk-5DJAX2HH.js";import"./chunk-QZRRXR3V.js";import{c as re}from"./chunk-DW332N2S.js";import"./chunk-AABUGLWU.js";import"./chunk-TELPJYLN.js";import"./chunk-5QZIKR6A.js";import{B as ie,D as ne,b as H,e as Q,i as Y,s as Z,u as ee,z as te}from"./chunk-HPNLQHW6.js";import{c as oe}from"./chunk-BGTK25UG.js";import{d as j,e as q}from"./chunk-A4LPGPDU.js";import"./chunk-PKPBSTZA.js";import"./chunk-QPTSKQZ2.js";import"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{$ as p,Ab as o,Cc as z,E as K,Fc as V,Ib as g,Mc as M,Pa as r,Rb as c,Rc as W,Sb as A,Tb as L,Ub as F,Vb as $,W as u,Xb as C,aa as P,cb as y,gc as x,jc as E,l as k,la as T,oc as S,p as U,pc as D,qc as h,rc as G,sb as m,sc as w,tb as f,tc as v,xc as J,yb as N,yc as X,z as I,zb as n}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function Ee(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,4),o(),n(3,"p"),c(4,5),o(),n(5,"sh-checkbox",11),E(6," Delete local database "),n(7,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteLocalDb,e)||(a.deleteLocalDb=e),P(e)}),o()()()}if(l&2){let t=C();r(7),S("ngModel",t.deleteLocalDb)}}function ue(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,6),o(),n(3,"p"),c(4,7),z(5,"bytes"),o(),n(6,"sh-checkbox",11),E(7," Delete remote files "),n(8,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteRemoteFiles,e)||(a.deleteRemoteFiles=e),P(e)}),o()()()}if(l&2){let t=C(),i=v(0),e=(i==null||i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.TargetFilesSize)??0;r(5),A(t.fileCount())(t.fileCount())(V(5,4,e,!0,!0)),L(4),r(3),S("ngModel",t.deleteRemoteFiles)}}var B=class l{#t=u(oe);#i=u(te);#e=u(le);#n=u(j);id=W.required();backup=M(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(U(()=>!0),I(()=>k(!1)))});fileCount=M(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=T(!1);deleteRemoteFiles=T(!1);isDeleting=T(!1);deleteBackup(){let _=this.id(),t=this.deleteLocalDb(),i=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#i.open(_e,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:e=>{e&&this.#e.deleteBackup({id:_,deleteLocalDb:t,deleteRemoteFiles:i}).pipe(K(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#n.navigate(["/"])}})}})}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=y({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;t=$localize`Export configuration`;let i;i=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let e;e=$localize`Cancel`;let a;a=$localize`Delete local database`;let b;b=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let R;R=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=F(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let O;return O=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,t,i,e,a,b,R,O,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(t,i){if(t&1){let e=g();G(0),n(1,"h3"),c(2,0),o(),m(3,Ee,8,1,"section"),n(4,"section")(5,"h4"),c(6,1),o(),n(7,"p"),c(8,2),o(),n(9,"button",8),E(10," Export configuration "),n(11,"sh-icon"),E(12,"caret-right"),o()()(),m(13,ue,9,8,"section"),n(14,"div",9)(15,"button",8),c(16,3),o(),n(17,"button",10),$("click",function(){return p(e),P(i.deleteBackup())}),E(18,"Delete backup"),o()()}if(t&2){let e=w(i.backup()),a=i.noLocalDbResource.value();r(2),A(e==null||e.Backup==null?null:e.Backup.Name),L(2),r(),f(a?3:-1),r(6),N("routerLink",X(8,ce,i.id())),r(4),f(a?13:-1),r(2),N("routerLink",J(10,se)),r(2),x("loader",i.isDeleting())}},dependencies:[ne,ie,ee,Z,H,Q,Y,q,ae],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"],changeDetection:0})};export{B as default};
@@ -0,0 +1 @@
1
+ import{e as a,f as b}from"./chunk-4N3AWKEK.js";import"./chunk-4VEFX5WQ.js";import"./chunk-AS6Z56AD.js";import"./chunk-IW4RDAIN.js";import"./chunk-O4OTZE5N.js";import"./chunk-WIVARGP6.js";import"./chunk-FK7JFD5B.js";import"./chunk-5DJAX2HH.js";import"./chunk-DW332N2S.js";import"./chunk-AABUGLWU.js";import"./chunk-TELPJYLN.js";import"./chunk-5QZIKR6A.js";import"./chunk-HPNLQHW6.js";import"./chunk-BGTK25UG.js";import"./chunk-A4LPGPDU.js";import"./chunk-PKPBSTZA.js";import"./chunk-QPTSKQZ2.js";import"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
@@ -0,0 +1 @@
1
+ import{a as w}from"./chunk-TELPJYLN.js";import{J as k,u as D}from"./chunk-HPNLQHW6.js";import"./chunk-BGTK25UG.js";import"./chunk-QPTSKQZ2.js";import{_ as A}from"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{$ as h,Ab as l,Gc as R,Hb as u,Ib as M,Mc as b,Pa as r,Rb as N,Vb as E,W as T,Xb as s,aa as y,cb as x,ec as C,fc as P,gc as S,hb as m,jc as a,kc as F,la as p,sb as d,tb as f,wb as I,xb as v,yb as g,yc as _,zb as c,zc as $}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,t)=>({children:e,level:t}),V=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"sh-icon"),a(1,"caret-down"),l()),e&2){let n=s().$implicit;S("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"sh-icon"),a(1,"dot"),l())}function J(e,t){e&1&&u(0)}function U(e,t){if(e&1&&m(0,J,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);g("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,L,$(2,j,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=M();c(0,"div",4,1),E("click",function(){let i=h(n).$implicit,G=s(2);return y(i.children.length>0&&G.toggleNode(i))}),d(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),c(4,"div",6),a(5),l()(),d(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;S("cannot-toggle",n.children.length===0)("open",n.isOpen()),r(2),f(n.children.length>0?2:3),r(3),F(n.text),r(),f(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"sh-list"),I(1,X,7,7,null,null,V),l()),e&2){let n=t.$implicit;P("padding-left",n.level*.25,"rem"),r(),v(n.children)}}function H(e,t){e&1&&u(0)}var O=class e{#e=T(w);treeStructure=b(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:p(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:p(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=x({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),N(1,2),l(),m(2,q,3,2,"ng-template",null,0,R)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);r(4),g("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,L,_(2,Y,o.treeStructure())))}},dependencies:[k,D,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{O as default};