@duplicati/ngclient 0.0.19 → 0.0.21

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 (57) hide show
  1. package/{chunk-RIQNVCIL.js → chunk-24SCDXOT.js} +1 -1
  2. package/{chunk-EYBBW4ID.js → chunk-3ZII4VBA.js} +1 -1
  3. package/{chunk-DE7MHNNM.js → chunk-4I2FZHFA.js} +1 -1
  4. package/{chunk-VLWUJXM4.js → chunk-4UMXA6ZN.js} +1 -1
  5. package/{chunk-PY26LA4W.js → chunk-5P5MCIGV.js} +1 -1
  6. package/chunk-5XTTHY4J.js +1 -0
  7. package/{chunk-SHLX3F4G.js → chunk-6FMOBX4W.js} +1 -1
  8. package/{chunk-CZTXCP6Y.js → chunk-72GO2ZEM.js} +1 -1
  9. package/{chunk-CTPVCKDU.js → chunk-AE4UH7UP.js} +1 -1
  10. package/{chunk-IGECPMHY.js → chunk-APGFOGYB.js} +1 -1
  11. package/chunk-AT2YMZPR.js +1 -0
  12. package/chunk-BGMX7SZ6.js +1 -0
  13. package/chunk-CBPKRHET.js +1 -0
  14. package/{chunk-2VM3Z6G6.js → chunk-D3SNAEYH.js} +1 -1
  15. package/{chunk-YL6USNFS.js → chunk-DUEP5NWI.js} +1 -1
  16. package/{chunk-DFNMN5CZ.js → chunk-EC4YV54D.js} +1 -1
  17. package/{chunk-RODVNO2L.js → chunk-EE44D7EI.js} +1 -1
  18. package/{chunk-SGVVLQ22.js → chunk-ETZPVGXX.js} +1 -1
  19. package/{chunk-6DRN2RKF.js → chunk-HAGEM2KU.js} +1 -1
  20. package/{chunk-V2UAC7MF.js → chunk-HK24NYRP.js} +1 -1
  21. package/{chunk-Y7U5EP7T.js → chunk-HQEL6ET4.js} +1 -1
  22. package/{chunk-4UKPKNC6.js → chunk-I62MTURC.js} +1 -1
  23. package/{chunk-GSP4D4JM.js → chunk-ICX4A35N.js} +1 -1
  24. package/{chunk-RNBIMN7E.js → chunk-KOIUHATU.js} +1 -1
  25. package/chunk-M6XAG6QD.js +1 -0
  26. package/{chunk-AN53EBZI.js → chunk-NN4VOZJP.js} +1 -1
  27. package/chunk-NUWA7AOR.js +8 -0
  28. package/{chunk-C7JVFVNG.js → chunk-OLR3NLBF.js} +1 -1
  29. package/chunk-PB775LH4.js +1 -0
  30. package/{chunk-VWLF6BH7.js → chunk-PJY2UW7Y.js} +1 -1
  31. package/{chunk-QX7KUJGE.js → chunk-QILG6324.js} +1 -1
  32. package/{chunk-AAWW7ZXJ.js → chunk-S4TH7BUT.js} +1 -1
  33. package/{chunk-NQ2MPIB6.js → chunk-SCOHUUYQ.js} +1 -1
  34. package/{chunk-OUSJF6ZB.js → chunk-THXSJ5EB.js} +1 -1
  35. package/{chunk-IPONHS64.js → chunk-VCWCJ6GK.js} +1 -1
  36. package/chunk-VLYQWE2X.js +1 -0
  37. package/{chunk-ZNDBPUVN.js → chunk-WIE3F2D2.js} +1 -1
  38. package/chunk-XG5WW7WW.js +1 -0
  39. package/{chunk-VIVSHAAZ.js → chunk-XWP5J7FY.js} +1 -1
  40. package/{chunk-YPNP3GF5.js → chunk-XX4XT5RQ.js} +1 -1
  41. package/{chunk-AM4UDAZB.js → chunk-ZCCVAPLP.js} +1 -1
  42. package/{chunk-BX543SH4.js → chunk-ZHM55NRD.js} +1 -1
  43. package/chunk-ZMHOWC7A.js +1 -0
  44. package/index.html +1 -1
  45. package/main-WNZU6MTP.js +1 -0
  46. package/package.json +1 -1
  47. package/chunk-4WBYIJ5H.js +0 -1
  48. package/chunk-6EXVTV2W.js +0 -1
  49. package/chunk-6T7HOYTW.js +0 -1
  50. package/chunk-F2BE3CLI.js +0 -1
  51. package/chunk-FKB7BVQE.js +0 -8
  52. package/chunk-H63BMAXL.js +0 -1
  53. package/chunk-JNR6OW5L.js +0 -1
  54. package/chunk-L2WWHQPN.js +0 -1
  55. package/chunk-RPSHZTVR.js +0 -1
  56. package/chunk-WNQNTT5I.js +0 -1
  57. package/main-CJNFWE4Y.js +0 -1
@@ -0,0 +1 @@
1
+ import{Aa as G,Ba as Y,Ca as K,Da as q,Ea as W,Fa as X,Ga as J,Ha as m,La as M,N as y,Oa as Q,P as l,S as O,U as a,W as E,aa as $,bc as ee,hc as L,ic as te,jc as ne,kc as f,nc as re,oa as S,pa as I,rc as oe,ta as Z,tc as P,ua as N,uc as se,va as z,wa as w,xa as _,ya as g,za as v}from"./chunk-NUWA7AOR.js";import{a as b,b as V}from"./chunk-7CGTOI24.js";var j=class extends ne{constructor(){super(...arguments),this.supportsDOMEvents=!0}},x=class r extends j{static makeCurrent(){te(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=pe();return e==null?null:me(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return re(document.cookie,n)}},T=null;function pe(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function me(r){return new URL(r,document.baseURI).pathname}var ye=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),U=new O(""),ue=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||r)(a(U),a(S))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),C=class{constructor(n){this._doc=n}},H="ng-app-id",de=(()=>{class r{constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(o=>o.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${H}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(o=>{o.textContent!=null&&t.set(o.textContent,o)}),t}return null}changeUsageCount(e,t){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=t,s.usage}return o.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let o=this.styleNodesInDOM,s=o?.get(t);if(s?.parentNode===e)return o.delete(t),s.removeAttribute(H),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(H,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let o=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(o):s.set(t,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||r)(a(f),a(N),a(_,8),a(w))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},B=/%COMP%/g,le="%COMP%",ge=`_nghost-${le}`,ve=`_ngcontent-${le}`,Ee=!0,Se=new O("",{providedIn:"root",factory:()=>Ee});function we(r){return ve.replace(B,r)}function Me(r){return ge.replace(B,r)}function fe(r,n){return n.map(e=>e.replace(B,r))}var ie=(()=>{class r{constructor(e,t,o,s,i,c,u,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new D(e,i,u,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===E.ShadowDom&&(t=V(b({},t),{encapsulation:E.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(t.encapsulation){case E.Emulated:s=new A(u,d,t,this.appId,h,i,c,p);break;case E.ShadowDom:return new F(u,d,e,t,i,c,this.nonce,p);default:s=new R(u,d,t,h,i,c,p);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||r)(a(ue),a(de),a(N),a(Se),a(f),a(w),a(S),a(_))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),D=class{constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ae(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ae(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=L().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ae(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var F=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=fe(o.id,o.styles);for(let h of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{constructor(n,e,t,o,s,i,c,u){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?fe(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},A=class extends R{constructor(n,e,t,o,s,i,c,u){let d=o+"-"+t.id;super(n,e,t,s,i,c,u,d),this.contentAttr=we(d),this.hostAttr=Me(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Te=(()=>{class r extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})(),ce=["alt","control","meta","shift"],De={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ce=(()=>{class r extends C{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ce.forEach(d=>{let h=t.indexOf(d);h>-1&&(t.splice(h,1),i+=d+".")}),i+=s,t.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=i,u}static matchEventFullKeyCode(e,t){let o=De[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ce.forEach(i=>{if(i!==o){let c=Re[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();function ft(r,n){return ee(b({rootComponent:r},Ae(n)))}function Ae(r){return{appProviders:[..._e,...r?.providers??[]],platformProviders:Ne}}function be(){x.makeCurrent()}function Oe(){return new I}function Ie(){return Z(document),document}var Ne=[{provide:w,useValue:oe},{provide:z,useValue:be,multi:!0},{provide:f,useFactory:Ie,deps:[]}];var _e=[{provide:$,useValue:"root"},{provide:I,useFactory:Oe,deps:[]},{provide:U,useClass:Te,multi:!0,deps:[f,S,w]},{provide:U,useClass:Ce,multi:!0,deps:[f]},ie,de,ue,{provide:Q,useExisting:ie},{provide:se,useClass:ye,deps:[]},[]];var ht=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Pe),o},providedIn:"root"})}}return r})(),Pe=(()=>{class r extends Le{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return v(t,"HTML")?g(t):J(this._doc,String(t)).toString();case m.STYLE:return v(t,"Style")?g(t):t;case m.SCRIPT:if(v(t,"Script"))return g(t);throw new y(5200,!1);case m.URL:return v(t,"URL")?g(t):X(String(t));case m.RESOURCE_URL:if(v(t,"ResourceURL"))return g(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return G(e)}bypassSecurityTrustStyle(e){return Y(e)}bypassSecurityTrustScript(e){return K(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return W(e)}static{this.\u0275fac=function(t){return new(t||r)(a(f))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{ft as a,ht as b,Le as c};
@@ -1 +1 @@
1
- import{a as P}from"./chunk-YL6USNFS.js";import"./chunk-QX7KUJGE.js";import{a as I}from"./chunk-GSP4D4JM.js";import{a as M,e as D,f as R,l as O}from"./chunk-EYBBW4ID.js";import{d as v}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import{a as y}from"./chunk-PY26LA4W.js";import{$a as k,Db as r,Fb as B,Gb as S,La as l,Mb as b,Ob as h,U as s,W as m,Za as d,eb as f,fb as g,gb as C,hb as _,ib as i,jb as p,kb as c,qb as x}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var w=e=>["/restore-flow",e];function L(e,o){e&1&&c(0,"spk-progress-bar",0)}function T(e,o){if(e&1&&(i(0,"spk-card",1),c(1,"img",2),i(2,"div",3)(3,"h3"),r(4),p(),i(5,"p"),r(6),p()(),i(7,"button",4),r(8," Restore "),i(9,"spk-icon"),r(10,"arrow-right"),p()()()),e&2){let t,a,n=o.$implicit;l(4),B("Restore ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:"Backup name missing",""),l(2),S(" ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),l(),k("routerLink",h(4,w,n.Backup==null?null:n.Backup.ID))}}function E(e,o){if(e&1&&C(0,T,11,6,"spk-card",1,g),e&2){let t=x();_(t.backups())}}function N(e,o){e&1&&r(0," No backups found ")}var u=class e{#e=s(I);#t=s(y);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore"]],standalone:!0,features:[b],decls:7,vars:1,consts:[[1,"indeterminate","primary"],[1,"type-a"],["src","assets/images/folder.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"]],template:function(t,a){t&1&&(c(0,"app-status-bar"),i(1,"section")(2,"h2"),r(3,"Where do you want to restore from?"),p(),d(4,L,1,0,"spk-progress-bar",0)(5,E,2,0)(6,N,1,0),p()),t&2&&(l(4),f(a.backupsLoading()?4:a.backups().length?5:6))},dependencies:[P,R,D,M,O,v],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{u as default};
1
+ import{a as P}from"./chunk-DUEP5NWI.js";import"./chunk-QILG6324.js";import{a as I}from"./chunk-ICX4A35N.js";import{a as M,e as D,f as R,l as O}from"./chunk-3ZII4VBA.js";import{d as v}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import{a as y}from"./chunk-5P5MCIGV.js";import{Eb as r,Gb as B,Hb as S,Ma as l,Nb as b,Pb as h,V as s,X as m,_a as d,ab as k,fb as f,gb as g,hb as C,ib as _,jb as i,kb as p,lb as c,rb as x}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var w=e=>["/restore-flow",e];function L(e,o){e&1&&c(0,"spk-progress-bar",0)}function T(e,o){if(e&1&&(i(0,"spk-card",1),c(1,"img",2),i(2,"div",3)(3,"h3"),r(4),p(),i(5,"p"),r(6),p()(),i(7,"button",4),r(8," Restore "),i(9,"spk-icon"),r(10,"arrow-right"),p()()()),e&2){let t,a,n=o.$implicit;l(4),B("Restore ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:"Backup name missing",""),l(2),S(" ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),l(),k("routerLink",h(4,w,n.Backup==null?null:n.Backup.ID))}}function E(e,o){if(e&1&&C(0,T,11,6,"spk-card",1,g),e&2){let t=x();_(t.backups())}}function N(e,o){e&1&&r(0," No backups found ")}var u=class e{#e=s(I);#t=s(y);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore"]],standalone:!0,features:[b],decls:7,vars:1,consts:[[1,"indeterminate","primary"],[1,"type-a"],["src","assets/images/folder.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"]],template:function(t,a){t&1&&(c(0,"app-status-bar"),i(1,"section")(2,"h2"),r(3,"Where do you want to restore from?"),p(),d(4,L,1,0,"spk-progress-bar",0)(5,E,2,0)(6,N,1,0),p()),t&2&&(l(4),f(a.backupsLoading()?4:a.backups().length?5:6))},dependencies:[P,R,D,M,O,v],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{u as default};
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-4UKPKNC6.js";import"./chunk-AM4UDAZB.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{Db as e,Mb as l,U as a,W as i,ib as s,jb as p}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var o=class n{#t=a(r);ngOnInit(){this.#t.logout()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=i({type:n,selectors:[["app-logout"]],standalone:!0,features:[l],decls:3,vars:0,template:function(t,c){t&1&&(s(0,"p"),e(1,"logout works!"),p(),e(2,`,
1
+ import{a as r}from"./chunk-I62MTURC.js";import"./chunk-ZCCVAPLP.js";import"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{Eb as e,Nb as l,V as a,X as i,jb as s,kb as p}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var o=class n{#t=a(r);ngOnInit(){this.#t.logout()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=i({type:n,selectors:[["app-logout"]],standalone:!0,features:[l],decls:3,vars:0,template:function(t,c){t&1&&(s(0,"p"),e(1,"logout works!"),p(),e(2,`,
2
2
  `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{o as default};
@@ -1 +1 @@
1
- import{O as l,U as a,rc as s,sc as r,va as o}from"./chunk-FKB7BVQE.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{P as l,V as a,sc as s,tc as r,wa as o}from"./chunk-NUWA7AOR.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -1 +1 @@
1
- import{M as a,Ra as b,U as d,ca as l,cc as g,dc as y,ec as h,i as f,ja as v,ka as c}from"./chunk-FKB7BVQE.js";function p(s,e){!e?.injector&&l(p);let n=e?.injector??d(v),o=new f(1),i=h(()=>{let t;try{t=s()}catch(u){y(()=>o.error(u));return}y(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(c).onDestroy(()=>{i.destroy(),o.complete()}),o.asObservable()}function m(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&l(m);let o=n?e?.injector?.get(c)??d(c):null,i=w(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(u.unsubscribe.bind(u)),g(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function w(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{p as a,m as b};
1
+ import{N as a,Sa as b,V as d,da as l,dc as g,ec as y,fc as h,i as f,ka as v,la as c}from"./chunk-NUWA7AOR.js";function p(s,e){!e?.injector&&l(p);let n=e?.injector??d(v),o=new f(1),i=h(()=>{let t;try{t=s()}catch(u){y(()=>o.error(u));return}y(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(c).onDestroy(()=>{i.destroy(),o.complete()}),o.asObservable()}function m(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&l(m);let o=n?e?.injector?.get(c)??d(c):null,i=w(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(u.unsubscribe.bind(u)),g(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function w(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{p as a,m as b};
@@ -0,0 +1 @@
1
+ import{g as a,h as b,i as c}from"./chunk-S4TH7BUT.js";import"./chunk-KOIUHATU.js";import"./chunk-NN4VOZJP.js";import"./chunk-DNHLTHLR.js";import"./chunk-ZHM55NRD.js";import"./chunk-4I2FZHFA.js";import"./chunk-ICX4A35N.js";import"./chunk-3ZII4VBA.js";import"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
package/index.html CHANGED
@@ -20,5 +20,5 @@
20
20
  <style>:root{--font-size:16px;font-size:var(--font-size)}html body{--sparkle-light:initial;--sparkle-dark: ;color-scheme:light dark;--primary-50:#eff6ff;--primary-rgb-50:239,246,255;--primary-contrast-50:var(--dark-primary-text);--primary-100:#dbeafe;--primary-rgb-100:219,234,254;--primary-contrast-100:var(--dark-primary-text);--primary-200:#bfdbfe;--primary-rgb-200:191,219,254;--primary-contrast-200:var(--dark-primary-text);--primary-300:#93c5fd;--primary-rgb-300:147,197,253;--primary-contrast-300:var(--dark-primary-text);--primary-400:#60a5fa;--primary-rgb-400:96,165,250;--primary-contrast-400:var(--dark-primary-text);--primary-500:#3b82f6;--primary-rgb-500:59,130,246;--primary-contrast-500:var(--light-primary-text);--primary-600:#2563eb;--primary-rgb-600:37,99,235;--primary-contrast-600:var(--light-primary-text);--primary-700:#1d4ed8;--primary-rgb-700:29,78,216;--primary-contrast-700:var(--light-primary-text);--primary-800:#1e40af;--primary-rgb-800:30,64,175;--primary-contrast-800:var(--light-primary-text);--primary-900:#1e3a8a;--primary-rgb-900:30,58,138;--primary-contrast-900:var(--light-primary-text);--primary-950:#172554;--primary-rgb-950:23,37,84;--primary-contrast-950:var(--light-primary-text);--accent-50:#f5f3ff;--accent-rgb-50:245,243,255;--accent-contrast-50:var(--dark-primary-text);--accent-100:#ede9fe;--accent-rgb-100:237,233,254;--accent-contrast-100:var(--dark-primary-text);--accent-200:#ddd6fe;--accent-rgb-200:221,214,254;--accent-contrast-200:var(--dark-primary-text);--accent-300:#c4b5fd;--accent-rgb-300:196,181,253;--accent-contrast-300:var(--dark-primary-text);--accent-400:#a78bfa;--accent-rgb-400:167,139,250;--accent-contrast-400:var(--dark-primary-text);--accent-500:#8b5cf6;--accent-rgb-500:139,92,246;--accent-contrast-500:var(--light-primary-text);--accent-600:#7c3aed;--accent-rgb-600:124,58,237;--accent-contrast-600:var(--light-primary-text);--accent-700:#6d28d9;--accent-rgb-700:109,40,217;--accent-contrast-700:var(--light-primary-text);--accent-800:#5b21b6;--accent-rgb-800:91,33,182;--accent-contrast-800:var(--light-primary-text);--accent-900:#4c1d95;--accent-rgb-900:76,29,149;--accent-contrast-900:var(--light-primary-text);--accent-950:#2e1065;--accent-rgb-950:46,16,101;--accent-contrast-950:var(--light-primary-text);--tertiary-50:#fffbeb;--tertiary-rgb-50:255,251,235;--tertiary-contrast-50:var(--dark-primary-text);--tertiary-100:#fef3c7;--tertiary-rgb-100:254,243,199;--tertiary-contrast-100:var(--dark-primary-text);--tertiary-200:#fde68a;--tertiary-rgb-200:253,230,138;--tertiary-contrast-200:var(--dark-primary-text);--tertiary-300:#fcd34d;--tertiary-rgb-300:252,211,77;--tertiary-contrast-300:var(--dark-primary-text);--tertiary-400:#fbbf24;--tertiary-rgb-400:251,191,36;--tertiary-contrast-400:var(--light-primary-text);--tertiary-500:#f59e0b;--tertiary-rgb-500:245,158,11;--tertiary-contrast-500:var(--light-primary-text);--tertiary-600:#d97706;--tertiary-rgb-600:217,119,6;--tertiary-contrast-600:var(--light-primary-text);--tertiary-700:#b45309;--tertiary-rgb-700:180,83,9;--tertiary-contrast-700:var(--light-primary-text);--tertiary-800:#92400e;--tertiary-rgb-800:146,64,14;--tertiary-contrast-800:var(--light-primary-text);--tertiary-900:#78350f;--tertiary-rgb-900:120,53,15;--tertiary-contrast-900:var(--light-primary-text);--tertiary-950:#451a03;--tertiary-rgb-950:69,26,3;--tertiary-contrast-950:var(--light-primary-text);--grey-50:#fafafa;--grey-rgb-50:250,250,250;--grey-contrast-50:var(--dark-primary-text);--grey-100:#f4f4f5;--grey-rgb-100:244,244,245;--grey-contrast-100:var(--dark-primary-text);--grey-200:#e4e4e7;--grey-rgb-200:228,228,231;--grey-contrast-200:var(--dark-primary-text);--grey-300:#d4d4d8;--grey-rgb-300:212,212,216;--grey-contrast-300:var(--dark-primary-text);--grey-400:#a1a1aa;--grey-rgb-400:161,161,170;--grey-contrast-400:var(--dark-primary-text);--grey-500:#71717a;--grey-rgb-500:113,113,122;--grey-contrast-500:var(--light-primary-text);--grey-600:#52525b;--grey-rgb-600:82,82,91;--grey-contrast-600:var(--light-primary-text);--grey-700:#3f3f46;--grey-rgb-700:63,63,70;--grey-contrast-700:var(--light-primary-text);--grey-750:#2f2f31;--grey-rgb-750:47,47,49;--grey-contrast-750:var(--light-primary-text);--grey-800:#27272a;--grey-rgb-800:39,39,42;--grey-contrast-800:var(--light-primary-text);--grey-900:#18181b;--grey-rgb-900:24,24,27;--grey-contrast-900:var(--light-primary-text);--grey-950:#09090b;--grey-rgb-950:9,9,11;--grey-contrast-950:var(--light-primary-text);--warn-50:#fef2f2;--warn-rgb-50:254,242,242;--warn-contrast-50:var(--dark-primary-text);--warn-100:#fee2e2;--warn-rgb-100:254,226,226;--warn-contrast-100:var(--dark-primary-text);--warn-200:#fecaca;--warn-rgb-200:254,202,202;--warn-contrast-200:var(--dark-primary-text);--warn-300:#fca5a5;--warn-rgb-300:252,165,165;--warn-contrast-300:var(--dark-primary-text);--warn-400:#f87171;--warn-rgb-400:248,113,113;--warn-contrast-400:var(--light-primary-text);--warn-500:#ef4444;--warn-rgb-500:239,68,68;--warn-contrast-500:var(--light-primary-text);--warn-600:#dc2626;--warn-rgb-600:220,38,38;--warn-contrast-600:var(--light-primary-text);--warn-700:#b91c1c;--warn-rgb-700:185,28,28;--warn-contrast-700:var(--light-primary-text);--warn-800:#991b1b;--warn-rgb-800:153,27,27;--warn-contrast-800:var(--light-primary-text);--warn-900:#7f1d1d;--warn-rgb-900:127,29,29;--warn-contrast-900:var(--light-primary-text);--warn-950:#450a0a;--warn-rgb-950:69,10,10;--warn-contrast-950:var(--light-primary-text);--success-50:#ecfdf5;--success-rgb-50:236,253,245;--success-contrast-50:var(--dark-primary-text);--success-100:#d1fae5;--success-rgb-100:209,250,229;--success-contrast-100:var(--dark-primary-text);--success-200:#a7f3d0;--success-rgb-200:167,243,208;--success-contrast-200:var(--dark-primary-text);--success-300:#6ee7b7;--success-rgb-300:110,231,183;--success-contrast-300:var(--dark-primary-text);--success-400:#34d399;--success-rgb-400:52,211,153;--success-contrast-400:var(--light-primary-text);--success-500:#10b981;--success-rgb-500:16,185,129;--success-contrast-500:var(--light-primary-text);--success-600:#059669;--success-rgb-600:5,150,105;--success-contrast-600:var(--light-primary-text);--success-700:#047857;--success-rgb-700:4,120,87;--success-contrast-700:var(--light-primary-text);--success-800:#065f46;--success-rgb-800:6,95,70;--success-contrast-800:var(--light-primary-text);--success-900:#064e3b;--success-rgb-900:6,78,59;--success-contrast-900:var(--light-primary-text);--success-950:#022c22;--success-rgb-950:2,44,34;--success-contrast-950:var(--light-primary-text);--display-10:600 5rem / normal Inter Tight, sans-serif;--display-20:600 4.5rem / normal Inter Tight, sans-serif;--display-30:600 4rem / normal Inter Tight, sans-serif;--display-40:600 3.5rem / normal Inter Tight, sans-serif;--display-50:600 3rem / normal Inter Tight, sans-serif;--title-10:500 2.5rem / normal Inter Tight, sans-serif;--title-20:500 2rem / normal Inter Tight, sans-serif;--title-30:500 1.5rem / normal Inter Tight, sans-serif;--title-10B:600 2.5rem / normal Inter Tight, sans-serif;--title-20B:600 2rem / normal Inter Tight, sans-serif;--title-30B:600 1.5rem / normal Inter Tight, sans-serif;--paragraph-10:500 1.125rem / normal Inter Tight, sans-serif;--paragraph-20:500 1rem / normal Inter Tight, sans-serif;--paragraph-30:500 .875rem / normal Inter Tight, sans-serif;--paragraph-40:500 .75rem / normal Inter Tight, sans-serif;--paragraph-10B:600 1.125rem / normal Inter Tight, sans-serif;--paragraph-20B:600 1rem / normal Inter Tight, sans-serif;--paragraph-30B:600 .875rem / normal Inter Tight, sans-serif;--paragraph-40B:600 .75rem / normal Inter Tight, sans-serif;--shape-1:.25rem;--shape-2:.5rem;--shape-3:.75rem;--shape-4:1rem;--shape-5:1.25rem;--box-shadow-10:0 1px 2px 0 rgba(18, 18, 23, .07);--box-shadow-20:0 1px 3px 0 rgba(18, 18, 23, .1);--box-shadow-30:0 1px 4px -1px rgba(18, 18, 23, .08);--box-shadow-35:0 4px 6px -1px rgba(18, 18, 23, .08);--box-shadow-40:0 10px 15px -3px rgba(18, 18, 23, .08);--box-shadow-50:0 20px 25px -5px rgba(18, 18, 23, .1);--box-shadow-60:0 25px 50px -12px rgba(18, 18, 23, .25);--base-level-10:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-950));--base-level-20:var(--sparkle-light, var(--grey-50)) var(--sparkle-dark, var(--grey-900));--base-level-30:var(--sparkle-light, var(--grey-100)) var(--sparkle-dark, var(--grey-900));--base-level-30R:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, var(--grey-100));--base-level-40:var(--sparkle-light, var(--grey-200)) var(--sparkle-dark, var(--grey-700));--base-level-50:var(--sparkle-light, var(--grey-300)) var(--sparkle-dark, var(--grey-800));--base-level-60:var(--sparkle-light, var(--grey-500)) var(--sparkle-dark, var(--grey-400));--base-level-60R:var(--sparkle-light, var(--grey-400)) var(--sparkle-dark, var(--grey-500));--base-level-70:var(--sparkle-light, var(--grey-900)) var(--sparkle-dark, #fff);--base-level-70R:var(--sparkle-light, #fff) var(--sparkle-dark, var(--grey-900));--base-gradient-20:linear-gradient(180deg, var(--grey-400) 0%, var(--grey-500) 50%);--base-gradient-30:linear-gradient(180deg, var(--grey-300) 0%, var(--grey-500) 50%);--base-gradient-60:linear-gradient(180deg, var(--grey-700) 0%, var(--grey-900) 50%);--base-gradient-70:linear-gradient(180deg, var(--grey-600) 0%, var(--grey-900) 50%);--primary-level-20:var(--sparkle-light, var(--primary-50)) var(--sparkle-dark, var(--primary-950));--primary-level-30:var(--sparkle-light, var(--primary-100)) var(--sparkle-dark, var(--primary-900));--primary-level-40:var(--sparkle-light, var(--primary-200)) var(--sparkle-dark, var(--primary-800));--primary-level-50:var(--sparkle-light, var(--primary-300)) var(--sparkle-dark, var(--primary-800));--primary-level-50R:var(--sparkle-light, var(--primary-800)) var(--sparkle-dark, var(--primary-300));--primary-level-80:var(--sparkle-light, var(--primary-900)) var(--sparkle-dark, var(--primary-300));--primary-gradient-20:linear-gradient(180deg, var(--primary-400) 0%, var(--primary-500) 50%);--primary-gradient-30:linear-gradient(180deg, var(--primary-300) 0%, var(--primary-500) 50%);--accent-level-20:var(--sparkle-light, var(--accent-50)) var(--sparkle-dark, var(--accent-950));--accent-level-30:var(--sparkle-light, var(--accent-100)) var(--sparkle-dark, var(--accent-900));--accent-level-40:var(--sparkle-light, var(--accent-200)) var(--sparkle-dark, var(--accent-800));--accent-level-50:var(--sparkle-light, var(--accent-300)) var(--sparkle-dark, var(--accent-800));--accent-level-50R:var(--sparkle-light, var(--accent-800)) var(--sparkle-dark, var(--accent-300));--accent-level-80:var(--sparkle-light, var(--accent-900)) var(--sparkle-dark, var(--accent-300));--accent-gradient-20:linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 50%);--accent-gradient-30:linear-gradient(180deg, var(--accent-300) 0%, var(--accent-500) 50%);--tertiary-level-20:var(--sparkle-light, var(--tertiary-50)) var(--sparkle-dark, var(--tertiary-950));--tertiary-level-30:var(--sparkle-light, var(--tertiary-100)) var(--sparkle-dark, var(--tertiary-900));--tertiary-level-40:var(--sparkle-light, var(--tertiary-200)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50:var(--sparkle-light, var(--tertiary-300)) var(--sparkle-dark, var(--tertiary-800));--tertiary-level-50R:var(--sparkle-light, var(--tertiary-800)) var(--sparkle-dark, var(--tertiary-300));--tertiary-level-80:var(--sparkle-light, var(--tertiary-900)) var(--sparkle-dark, var(--tertiary-300));--tertiary-gradient-20:linear-gradient(180deg, var(--tertiary-400) 0%, var(--tertiary-500) 50%);--tertiary-gradient-30:linear-gradient(180deg, var(--tertiary-300) 0%, var(--tertiary-500) 50%);--warn-level-20:var(--sparkle-light, var(--warn-50)) var(--sparkle-dark, var(--warn-950));--warn-level-30:var(--sparkle-light, var(--warn-100)) var(--sparkle-dark, var(--warn-900));--warn-level-40:var(--sparkle-light, var(--warn-200)) var(--sparkle-dark, var(--warn-800));--warn-level-50:var(--sparkle-light, var(--warn-300)) var(--sparkle-dark, var(--warn-800));--warn-level-50R:var(--sparkle-light, var(--warn-800)) var(--sparkle-dark, var(--warn-300));--warn-level-80:var(--sparkle-light, var(--warn-900)) var(--sparkle-dark, var(--warn-300));--warn-gradient-20:linear-gradient(180deg, var(--warn-400) 0%, var(--warn-500) 50%);--warn-gradient-30:linear-gradient(180deg, var(--warn-300) 0%, var(--warn-500) 50%);--success-level-20:var(--sparkle-light, var(--success-50)) var(--sparkle-dark, var(--success-950));--success-level-30:var(--sparkle-light, var(--success-100)) var(--sparkle-dark, var(--success-900));--success-level-40:var(--sparkle-light, var(--success-200)) var(--sparkle-dark, var(--success-800));--success-level-50:var(--sparkle-light, var(--success-300)) var(--sparkle-dark, var(--success-800));--success-level-50R:var(--sparkle-light, var(--success-800)) var(--sparkle-dark, var(--success-300));--success-level-80:var(--sparkle-light, var(--success-900)) var(--sparkle-dark, var(--success-300));--success-gradient-20:linear-gradient(180deg, var(--success-400) 0%, var(--success-500) 50%);--success-gradient-30:linear-gradient(180deg, var(--success-300) 0%, var(--success-500) 50%);--dark-primary-text:var(--grey-900);--light-primary-text:#fff}*{box-sizing:border-box}html,body,app-root{width:100vw;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--base-level-20)}body{margin:0;font:var(--paragraph-30);color:var(--base-level-70)}</style><link rel="stylesheet" href="styles-EYLEETOZ.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-EYLEETOZ.css"></noscript></head>
21
21
  <body>
22
22
  <app-root></app-root>
23
- <link rel="modulepreload" href="chunk-4UKPKNC6.js"><link rel="modulepreload" href="chunk-AN53EBZI.js"><link rel="modulepreload" href="chunk-AM4UDAZB.js"><link rel="modulepreload" href="chunk-QX7KUJGE.js"><link rel="modulepreload" href="chunk-BX543SH4.js"><link rel="modulepreload" href="chunk-EYBBW4ID.js"><link rel="modulepreload" href="chunk-IGECPMHY.js"><link rel="modulepreload" href="chunk-L2WWHQPN.js"><link rel="modulepreload" href="chunk-PY26LA4W.js"><link rel="modulepreload" href="chunk-FKB7BVQE.js"><script src="main-CJNFWE4Y.js" type="module"></script></body>
23
+ <link rel="modulepreload" href="chunk-I62MTURC.js"><link rel="modulepreload" href="chunk-NN4VOZJP.js"><link rel="modulepreload" href="chunk-ZCCVAPLP.js"><link rel="modulepreload" href="chunk-QILG6324.js"><link rel="modulepreload" href="chunk-ZHM55NRD.js"><link rel="modulepreload" href="chunk-3ZII4VBA.js"><link rel="modulepreload" href="chunk-APGFOGYB.js"><link rel="modulepreload" href="chunk-XG5WW7WW.js"><link rel="modulepreload" href="chunk-5P5MCIGV.js"><link rel="modulepreload" href="chunk-NUWA7AOR.js"><script src="main-WNZU6MTP.js" type="module"></script></body>
24
24
  </html>
@@ -0,0 +1 @@
1
+ import{a as S}from"./chunk-I62MTURC.js";import{a as E}from"./chunk-NN4VOZJP.js";import{a as R}from"./chunk-ZCCVAPLP.js";import{b as Q}from"./chunk-QILG6324.js";import"./chunk-ZHM55NRD.js";import{c as Z}from"./chunk-3ZII4VBA.js";import{a as q,b as _,c as C,f as z,g as G}from"./chunk-APGFOGYB.js";import{a as B}from"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{$b as H,Ac as $,D as N,I as x,K as L,Nb as F,P as b,S as V,Sa as l,V as s,X as P,d as O,fc as U,lb as j,m as M,vc as D,wc as J,x as k,yc as W,zc as K}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var X={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var m=new V("ENVIRONMENT");var Y=[{path:"",children:[{path:"login",canActivate:[()=>s(S).token()!==null?s(C).navigate(["/"]):!0],loadComponent:()=>import("./chunk-HQEL6ET4.js")},{path:"logout",loadComponent:()=>import("./chunk-XX4XT5RQ.js")},{path:"",loadComponent:()=>import("./chunk-WIE3F2D2.js"),children:[{path:"",loadComponent:()=>import("./chunk-HAGEM2KU.js")},{path:"add-backup",loadComponent:()=>import("./chunk-HK24NYRP.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-SCOHUUYQ.js")},{path:"backup/import",loadComponent:()=>import("./chunk-AE4UH7UP.js")},{path:"backup-draft/:id",canActivate:[()=>s(E).sysInfoObservable()],loadComponent:()=>import("./chunk-PJY2UW7Y.js"),loadChildren:()=>import("./chunk-VLYQWE2X.js")},{path:"backup/:id",canActivateChild:[()=>s(E).sysInfoObservable()],loadComponent:()=>import("./chunk-PJY2UW7Y.js"),loadChildren:()=>import("./chunk-VLYQWE2X.js")},{path:"restore",loadComponent:()=>import("./chunk-XWP5J7FY.js")},{path:"restore-flow/:id",loadComponent:()=>import("./chunk-EE44D7EI.js"),children:[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"select-files",loadComponent:()=>import("./chunk-M6XAG6QD.js")},{path:"options",loadComponent:()=>import("./chunk-CBPKRHET.js")}]},{path:"settings",loadComponent:()=>import("./chunk-THXSJ5EB.js")},{path:"about",loadComponent:()=>import("./chunk-VCWCJ6GK.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-4UMXA6ZN.js")},{path:"changelog",loadComponent:()=>import("./chunk-24SCDXOT.js")},{path:"libraries",loadComponent:()=>import("./chunk-D3SNAEYH.js")},{path:"system-info",loadComponent:()=>import("./chunk-72GO2ZEM.js")},{path:"logs",loadComponent:()=>import("./chunk-EC4YV54D.js")}]}]}]}];var w=null,ee=(o,e)=>{let t=s(S),n=s(C),p=s(m),i=s(Z),c=o;return t.token()&&o.url.startsWith(p.baseUrl)&&(c=o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)})),e(c).pipe(k(r=>{if(i.error(r.message),r.status===401&&!w&&(w=t.refreshToken().pipe(x())),r.status===401)return w.pipe(L(()=>e(o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)}))),k(f=>(n.navigate(["/logout"]),M(()=>f))),N(()=>w=null));let a=`Error Code: ${r.status}, Message: ${r.message}`;return M(()=>a)}))};var se="1.0.0",te="portal-proxy-client",ie=1,I=class o{#o=1e3;#n=s(m);#e=l("disconnected");#l=l(this.#o);#i=l(!1);#r=l(!1);#a=l(null);isConnectedToMachineServer=this.#r.asReadonly();wsState=this.#e.asReadonly();#p=[];#s={};#t=null;#m=new TextDecoder("utf-8");#c=null;#d=U(()=>{let e=this.#i(),t=this.#l(),n=this.#a();if(!n||!e||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(e){let t=Uint8Array.from(atob(e),p=>p.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(e,t){let n=t?.reconnect??!1;this.#t&&this.wsState()==="authenticated"&&!n||(this.#t&&this.wsState()!=="authenticated"&&this.#t.close(),this.#t=new WebSocket(this.#n.machineServerUrl),this.#t.onopen=()=>{this.#e.set("connect"),this.#r.set(!0),this.#i.set(!1),this.#a.set(null)},this.#t.onclose=()=>{this.#e.set("disconnected"),this.#r.set(!1),this.#a.set(e),this.#i.set(!0)},this.#t.onerror=()=>{this.#e.set("error")},this.#t.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let r={token:e,publicKey:"",clientVersion:se,protocolVersion:ie},a=this.createResponse(i,"authportal",r);this.#e.set("welcome"),this.#t?.send(a)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var c=JSON.parse(i.payload??"");if(c.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#e.set("authenticated"),this.#r.set(!0);this.#p.length>0;){let r=this.#p.pop();r&&this.#s[r.messageId]&&this.activateCommand(r)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let r=this.#s[i.messageId];if(r){if(i.errorMessage){r.reject(i.errorMessage);return}else{let a=JSON.parse(i.payload??"");a.body=a?.body==null?null:this.utf8Atob(a.body),r.resolve(a)}delete this.#s[i.messageId],window.clearTimeout(r.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#e.set("disconnected"),this.#r.set(!1)}createResponse(e,t,n){let p={from:te,to:e.from,type:t,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(p)}sendCommand(e,t,n,p,i,c,r=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,f)=>{let d=crypto.randomUUID(),g={from:te,to:t,type:"command",messageId:d,payload:JSON.stringify({method:n,path:p,body:i,headers:c})},y={resolve:a,reject:f,timer:window.setTimeout(()=>{let v=this.#s[d];v&&(delete this.#s[d],v.reject("Timeout"))},r)};this.#s[d]=y,this.#r()?this.activateCommand(g):this.#p.push(g)})}activateCommand(e){this.#t?.send(JSON.stringify(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})};var u=class o{#o=l(null);config=this.#o.asReadonly();parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#e(),this.parentIframeListner=new AbortController,this.#n("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),n=JSON.parse(t);if(!n?.accessToken||!n?.clientId){this.#n("error:invalid-config");return}if(typeof n.clientId!="string"){this.#n("error:invalid-config");return}if(typeof n.accessToken!="string"){this.#n("error:invalid-config");return}console.info("postMessage config set"),this.#o.set(n)}},{signal:this.parentIframeListner.signal})}#n(e){window.parent.postMessage(e,"*")}#e(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#o.set(e)}clearConfig(){this.#o.set(null)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})};function ae(o){if(typeof o!="string")return null;let t=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...t))}var ne=(o,e)=>{let n=s(u).config(),p=s(m);if(n===null)return e(o);let i=s(I),c=ae(o.body),r={};o.headers.keys().forEach(h=>{r[h]=o.headers.get(h)??""});let a=o.headers.get("timeout"),f=a!==null?parseInt(a):p.defaultTimeout,d=i.sendCommand(n.accessToken,n.clientId,o.method,o.url,c,r,f);return new O(h=>{d.then(g=>{let y=new D;r!=null&&Object.keys(r).forEach(A=>{y.set(A,r[A])});let v=new J({body:g.body,status:g.code,statusText:"OK",headers:y});h.next(v),h.complete()})})};var re={providers:[H(),z(Y,G()),W($(),K([ne,ee])),R,{provide:m,useValue:X},Q]};var T=class o{#o=s(R);#n=s(q);#e=s(u);sub=null;ngOnInit(){this.#e.fetchConfig(),this.sub=this.#n.queryParams.subscribe(({accessToken:e,clientId:t})=>{e?.length&&t?.length&&this.#e.setConfig({accessToken:e,clientId:t})}),this.#o.clearAllNotCurrentVersion()}ngOnDestroy(){this.sub?.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=P({type:o,selectors:[["app-root"]],standalone:!0,features:[F],decls:1,vars:0,template:function(t,n){t&1&&j(0,"router-outlet")},dependencies:[_],encapsulation:2})};B(T,re).catch(o=>console.error(o));
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.19",
2
+ "version": "0.0.21",
3
3
  "name": "@duplicati/ngclient",
4
4
  "license": "MIT",
5
5
  "contributors": [
package/chunk-4WBYIJ5H.js DELETED
@@ -1 +0,0 @@
1
- import{l as a,m as b}from"./chunk-AAWW7ZXJ.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
package/chunk-6EXVTV2W.js DELETED
@@ -1 +0,0 @@
1
- import{j as a,k as b}from"./chunk-AAWW7ZXJ.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
package/chunk-6T7HOYTW.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-C7JVFVNG.js";import"./chunk-SHLX3F4G.js";import"./chunk-RNBIMN7E.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-F2BE3CLI.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,e as b,f as c}from"./chunk-AAWW7ZXJ.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};