@duplicati/ngclient 0.0.57 → 0.0.59

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 (81) hide show
  1. package/{chunk-6H65UZ2P.js → chunk-23D2KKGK.js} +1 -1
  2. package/{chunk-CVMGHPI7.js → chunk-3UJYR3C3.js} +1 -1
  3. package/{chunk-TOLFT34P.js → chunk-3YZ3SEGY.js} +1 -1
  4. package/{chunk-IOBGL3RY.js → chunk-4IQIYT3R.js} +1 -1
  5. package/chunk-4YJMUITD.js +1 -0
  6. package/{chunk-RQA4DOFL.js → chunk-6FMUWDFQ.js} +1 -1
  7. package/chunk-6Z44FGYG.js +6 -0
  8. package/{chunk-SD7AY2JD.js → chunk-7BFB2JZ7.js} +1 -1
  9. package/{chunk-PUIARLRJ.js → chunk-7CHRY23V.js} +1 -1
  10. package/{chunk-S3X5GKHD.js → chunk-7EROSQ6G.js} +1 -1
  11. package/{chunk-ACQPX6N4.js → chunk-7NOLIW3Y.js} +1 -1
  12. package/chunk-AKDOPLUE.js +1 -0
  13. package/{chunk-LEG3VUID.js → chunk-BNW7MJ4U.js} +1 -1
  14. package/chunk-BV5HWLOE.js +1 -0
  15. package/{chunk-UI7YZPLW.js → chunk-CFESGUGK.js} +4 -4
  16. package/{chunk-MJKHWRNQ.js → chunk-CPSIM3A5.js} +1 -1
  17. package/chunk-D352OHOH.js +1 -0
  18. package/{chunk-NXFYBS5S.js → chunk-DGRMASPQ.js} +1 -1
  19. package/chunk-DSHXBMXU.js +1 -0
  20. package/chunk-E2E7PU5Q.js +1 -0
  21. package/{chunk-2SBFQL4K.js → chunk-EB76BK3U.js} +1 -1
  22. package/chunk-EHTLINLH.js +1 -0
  23. package/{chunk-ERIN7FXX.js → chunk-ETMZA3IQ.js} +1 -1
  24. package/{chunk-YGBHA2P6.js → chunk-F76JBXBH.js} +1 -1
  25. package/{chunk-56AHOWAU.js → chunk-FQKYQMUA.js} +1 -1
  26. package/{chunk-YMACEDTD.js → chunk-FW56L7EH.js} +1 -1
  27. package/{chunk-PYT62D3C.js → chunk-GCHBD6DX.js} +1 -1
  28. package/{chunk-K24PCFFN.js → chunk-HQ5RBM4W.js} +1 -1
  29. package/{chunk-ZFV5KH42.js → chunk-HYRUU7RC.js} +1 -1
  30. package/{chunk-TH3GTINR.js → chunk-IQHACOOA.js} +1 -1
  31. package/{chunk-MBLB2X2V.js → chunk-JNHK2HQC.js} +1 -1
  32. package/{chunk-T5UIDW4M.js → chunk-JQUPEFDH.js} +1 -1
  33. package/{chunk-7C6ILTIP.js → chunk-KBOYFSOY.js} +1 -1
  34. package/chunk-NA2TSIGD.js +1 -0
  35. package/chunk-NILIJMJS.js +1 -0
  36. package/{chunk-7JAY2YPN.js → chunk-NROZTSQC.js} +1 -1
  37. package/{chunk-DC7QVFBV.js → chunk-NW7VZHBJ.js} +1 -1
  38. package/chunk-OIJ4GD7L.js +1 -0
  39. package/{chunk-5FDI5MU5.js → chunk-OKMKAFJO.js} +1 -1
  40. package/chunk-PQEMNH5E.js +1 -0
  41. package/{chunk-Z6DKPRZO.js → chunk-QBFOFC2S.js} +1 -1
  42. package/{chunk-EAZGURHW.js → chunk-RMEEJUB4.js} +1 -1
  43. package/{chunk-3FAE4RKT.js → chunk-S4KMY7LU.js} +1 -1
  44. package/chunk-S52BCEO2.js +1 -0
  45. package/{chunk-7M6UFI5Y.js → chunk-SGBX6SKP.js} +1 -1
  46. package/{chunk-F4ZWNDPA.js → chunk-SQBOV6A2.js} +1 -1
  47. package/{chunk-F6O4P5W4.js → chunk-T7HBYYKH.js} +1 -1
  48. package/chunk-V6A4XGAP.js +1 -0
  49. package/{chunk-LE75M3F5.js → chunk-VHPPFUTX.js} +1 -1
  50. package/{chunk-E4ISBSEL.js → chunk-VMEJ2INK.js} +1 -1
  51. package/{chunk-BUB2XBZH.js → chunk-VPWPYB3Z.js} +1 -1
  52. package/{chunk-ZG5RYKT7.js → chunk-W4Z2WCQT.js} +1 -1
  53. package/{chunk-ICXLTN4I.js → chunk-WLAPUWZH.js} +1 -1
  54. package/{chunk-V3IF26PI.js → chunk-WNGVUHIX.js} +1 -1
  55. package/{chunk-MJMYUASP.js → chunk-XCGZAJSF.js} +1 -1
  56. package/{chunk-AX44W3BG.js → chunk-XG3VY7EY.js} +1 -1
  57. package/chunk-XLGJTP25.js +1 -0
  58. package/chunk-XRV2G4UG.js +1 -0
  59. package/chunk-XZ2Z3I76.js +1 -0
  60. package/{chunk-LBTXWNGE.js → chunk-YZWMWYPX.js} +1 -1
  61. package/index.html +1 -1
  62. package/{main-BYCXTMII.js → main-XKSLPMUE.js} +1 -1
  63. package/package.json +1 -1
  64. package/chunk-2GC7SBMS.js +0 -1
  65. package/chunk-C5SNUVEC.js +0 -1
  66. package/chunk-CL6W3OLS.js +0 -1
  67. package/chunk-DKRZJC7X.js +0 -1
  68. package/chunk-ENRVPUCB.js +0 -1
  69. package/chunk-GFJZ5IJI.js +0 -1
  70. package/chunk-HFDDJLAI.js +0 -1
  71. package/chunk-KY2RQ76O.js +0 -1
  72. package/chunk-LVU6VV6K.js +0 -1
  73. package/chunk-NEGT6KCV.js +0 -1
  74. package/chunk-PLUKKU2C.js +0 -1
  75. package/chunk-RHYYHNXZ.js +0 -6
  76. package/chunk-TOM6TEW4.js +0 -1
  77. package/chunk-V3SQQA7U.js +0 -1
  78. package/chunk-VC4Z6LFJ.js +0 -1
  79. package/chunk-VWFTXKNS.js +0 -1
  80. package/chunk-VWTABONU.js +0 -1
  81. package/chunk-WZYTVL3C.js +0 -1
@@ -1 +1 @@
1
- import{b as re,c as se}from"./chunk-MJMYUASP.js";import{a as O}from"./chunk-TH3GTINR.js";import{a as te}from"./chunk-F4ZWNDPA.js";import{a as y}from"./chunk-MBLB2X2V.js";import{a as g}from"./chunk-ZG5RYKT7.js";import{d as Y}from"./chunk-3FAE4RKT.js";import{b as q,c as X,f as Z,g as Q}from"./chunk-ACQPX6N4.js";import{a as _}from"./chunk-S3X5GKHD.js";import{c as ee}from"./chunk-LEG3VUID.js";import{a as G,b as K,d as $,e as z,f as B}from"./chunk-ZFV5KH42.js";import{a as ne}from"./chunk-7C6ILTIP.js";import{ua as J}from"./chunk-DC7QVFBV.js";import{b as oe}from"./chunk-BUB2XBZH.js";import{Ac as W,Bc as F,Db as U,F as C,L,Lc as D,N as S,P as V,T as R,W as j,Xa as l,Z as s,d as x,db as H,ja as P,m as A,y as E,z as k}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var w=class o{#o=s(g);#s=s(y);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=H({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(e,r){e&1&&U(0,"router-outlet")},dependencies:[q],encapsulation:2})};var ae={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var d=new j("ENVIRONMENT");var I=class o{#o=s(Y);isLoaded=l(!1);webmodules=l(null);preload(t=!1){let e=this.#o.getApiV1Webmodules().pipe(V(r=>this.webmodules.set(r)),C(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};var ue=()=>{let o=s(y),t=s(P),e=[t.get(O).preload(!0),t.get(O).preloadFilterGroups(!0),t.get(I).preload(!0)];return o.configLoaded===null?E(e):o.configLoaded?.pipe(S(()=>E(e)))},pe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-6H65UZ2P.js")},{path:"logout",loadComponent:()=>import("./chunk-YMACEDTD.js")},{path:"",canActivate:[ue],loadComponent:()=>import("./chunk-56AHOWAU.js"),children:[{path:"",loadComponent:()=>import("./chunk-LBTXWNGE.js")},{path:"add-backup",loadComponent:()=>import("./chunk-PYT62D3C.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-7JAY2YPN.js")},{path:"backup/import",loadComponent:()=>import("./chunk-YGBHA2P6.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-7M6UFI5Y.js"),loadChildren:()=>import("./chunk-C5SNUVEC.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-7M6UFI5Y.js"),loadChildren:()=>import("./chunk-C5SNUVEC.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-EAZGURHW.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-ICXLTN4I.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-T5UIDW4M.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-K24PCFFN.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-F6O4P5W4.js")},{path:"from-config",loadComponent:()=>import("./chunk-2SBFQL4K.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-ENRVPUCB.js"),loadChildren:()=>import("./chunk-V3SQQA7U.js")},{path:"settings",loadComponent:()=>import("./chunk-VWTABONU.js")},{path:"about",loadComponent:()=>import("./chunk-LE75M3F5.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-SD7AY2JD.js")},{path:"changelog",loadComponent:()=>import("./chunk-E4ISBSEL.js")},{path:"libraries",loadComponent:()=>import("./chunk-IOBGL3RY.js")},{path:"system-info",loadComponent:()=>import("./chunk-5FDI5MU5.js")},{path:"logs",loadComponent:()=>import("./chunk-V3IF26PI.js")}]}]}]}];var T=null,ce=(o,t)=>{let e=s(te),r=s(X),c=s(g),i=s(d),u=s(ee),n=c.getItem("locale"),p=re(n),h=o;if(e.token()&&o.url.startsWith(i.baseUrl)){let a=o.headers.set("Authorization",`Bearer ${e.token()}`);n&&n!=="en-US"&&(a=a.set("X-Ui-Language",p)),h=o.clone({headers:a})}return t(h).pipe(k(a=>{if(u.error(a.message),a.status===401&&!T&&(T=e.refreshToken().pipe(L())),a.status===401)return T.pipe(S(()=>t(o.clone({headers:o.headers.set("Authorization",`Bearer ${e.token()}`)}))),k(f=>(r.navigate(["/logout"]),A(()=>f))),C(()=>T=null));let m=`Error Code: ${a.status}, Message: ${a.message}`;return A(()=>({error:a,message:m}))}))};var he="1.0.0",le="portal-proxy-client",fe=1,M=class o{#o=1e3;#s=s(d);#t=l("disconnected");#l=l(this.#o);#i=l(!1);#n=l(!1);#a=l(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=D(()=>{let t=this.#i(),e=this.#l(),r=this.#a();if(!r||!t||!e||e<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(r)},e)});utf8Atob(t){let e=Uint8Array.from(atob(t),c=>c.charCodeAt(0)),r=this.#m.decode(e);return r?JSON.parse(r):null}connectToMachineServer(t,e){let r=e?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!r||(this.#e&&this.wsState()!=="authenticated"&&this.#e.close(),this.#e=new WebSocket(this.#s.machineServerUrl),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let i=JSON.parse(c.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let n={token:t,publicKey:"",clientVersion:he,protocolVersion:fe},p=this.createResponse(i,"authportal",n);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var u=JSON.parse(i.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let n=this.#p.pop();n&&this.#r[n.messageId]&&this.activateCommand(n)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let n=this.#r[i.messageId];if(n){if(i.errorMessage){n.reject(i.errorMessage);return}else{let p=JSON.parse(i.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),n.resolve(p)}delete this.#r[i.messageId],window.clearTimeout(n.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,e,r){let c={from:le,to:t.from,type:e,messageId:t.messageId,payload:JSON.stringify(r)};return JSON.stringify(c)}sendCommand(t,e,r,c,i,u,n=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((p,h)=>{let a=crypto.randomUUID(),f={from:le,to:e,type:"command",messageId:a,payload:JSON.stringify({method:r,path:c,body:i,headers:u})},b={resolve:p,reject:h,timer:window.setTimeout(()=>{let v=this.#r[a];v&&(delete this.#r[a],v.reject("Timeout"))},n)};this.#r[a]=b,this.#n()?this.activateCommand(f):this.#p.push(f)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};function ge(o){if(typeof o!="string")return null;let e=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...e))}var me=(o,t)=>{let r=s(y).config(),c=s(d);if(r===null)return t(o);let i=s(M),u=ge(o.body),n={};o.headers.keys().forEach(m=>{n[m]=o.headers.get(m)??""});let p=o.headers.get("timeout"),h=p!==null?parseInt(p):c.defaultTimeout,a=i.sendCommand(r.accessToken,r.clientId,o.method,o.url,u,n,h);return new x(m=>{a.then(f=>{let b=new G;n!=null&&Object.keys(n).forEach(N=>{b.set(N,n[N])});let v=new K({body:f.body,status:f.code,statusText:"OK",headers:b});m.next(v),m.complete()})})};var de={providers:[W(),Z(pe,Q()),$(B(),z([me,ce])),g,{provide:d,useValue:ae},{provide:F,useValue:se()},oe,J,ne]};_(w,de);
1
+ import{b as re,c as se}from"./chunk-XCGZAJSF.js";import{a as O}from"./chunk-IQHACOOA.js";import{a as te}from"./chunk-SQBOV6A2.js";import{a as y}from"./chunk-JNHK2HQC.js";import{a as g}from"./chunk-W4Z2WCQT.js";import{d as Y}from"./chunk-S4KMY7LU.js";import{b as q,c as X,f as Z,g as Q}from"./chunk-7NOLIW3Y.js";import{a as _}from"./chunk-7EROSQ6G.js";import{c as ee}from"./chunk-BNW7MJ4U.js";import{a as G,b as K,d as $,e as z,f as B}from"./chunk-HYRUU7RC.js";import{a as ne}from"./chunk-KBOYFSOY.js";import{ua as J}from"./chunk-NW7VZHBJ.js";import{b as oe}from"./chunk-VPWPYB3Z.js";import{Ac as W,Bc as F,Db as U,F as C,L,Lc as D,N as S,P as V,T as R,W as j,Xa as l,Z as s,d as x,db as H,ja as P,m as A,y as E,z as k}from"./chunk-CFESGUGK.js";import"./chunk-C6Q5SG76.js";var w=class o{#o=s(g);#s=s(y);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=H({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(e,r){e&1&&U(0,"router-outlet")},dependencies:[q],encapsulation:2})};var ae={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var d=new j("ENVIRONMENT");var I=class o{#o=s(Y);isLoaded=l(!1);webmodules=l(null);preload(t=!1){let e=this.#o.getApiV1Webmodules().pipe(V(r=>this.webmodules.set(r)),C(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};var ue=()=>{let o=s(y),t=s(P),e=[t.get(O).preload(!0),t.get(O).preloadFilterGroups(!0),t.get(I).preload(!0)];return o.configLoaded===null?E(e):o.configLoaded?.pipe(S(()=>E(e)))},pe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-23D2KKGK.js")},{path:"logout",loadComponent:()=>import("./chunk-FW56L7EH.js")},{path:"",canActivate:[ue],loadComponent:()=>import("./chunk-FQKYQMUA.js"),children:[{path:"",loadComponent:()=>import("./chunk-YZWMWYPX.js")},{path:"add-backup",loadComponent:()=>import("./chunk-GCHBD6DX.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-NROZTSQC.js")},{path:"backup/import",loadComponent:()=>import("./chunk-F76JBXBH.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-SGBX6SKP.js"),loadChildren:()=>import("./chunk-D352OHOH.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-SGBX6SKP.js"),loadChildren:()=>import("./chunk-D352OHOH.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-RMEEJUB4.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-WLAPUWZH.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-JQUPEFDH.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-HQ5RBM4W.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-T7HBYYKH.js")},{path:"from-config",loadComponent:()=>import("./chunk-EB76BK3U.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-OIJ4GD7L.js"),loadChildren:()=>import("./chunk-AKDOPLUE.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-OIJ4GD7L.js"),loadChildren:()=>import("./chunk-AKDOPLUE.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-OIJ4GD7L.js"),loadChildren:()=>import("./chunk-AKDOPLUE.js")},{path:"settings",loadComponent:()=>import("./chunk-DSHXBMXU.js")},{path:"about",loadComponent:()=>import("./chunk-VHPPFUTX.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-7BFB2JZ7.js")},{path:"changelog",loadComponent:()=>import("./chunk-VMEJ2INK.js")},{path:"libraries",loadComponent:()=>import("./chunk-4IQIYT3R.js")},{path:"system-info",loadComponent:()=>import("./chunk-OKMKAFJO.js")},{path:"logs",loadComponent:()=>import("./chunk-WNGVUHIX.js")}]}]}]}];var T=null,ce=(o,t)=>{let e=s(te),r=s(X),c=s(g),i=s(d),u=s(ee),n=c.getItem("locale"),p=re(n),h=o;if(e.token()&&o.url.startsWith(i.baseUrl)){let a=o.headers.set("Authorization",`Bearer ${e.token()}`);n&&n!=="en-US"&&(a=a.set("X-Ui-Language",p)),h=o.clone({headers:a})}return t(h).pipe(k(a=>{if(u.error(a.message),a.status===401&&!T&&(T=e.refreshToken().pipe(L())),a.status===401)return T.pipe(S(()=>t(o.clone({headers:o.headers.set("Authorization",`Bearer ${e.token()}`)}))),k(f=>(r.navigate(["/logout"]),A(()=>f))),C(()=>T=null));let m=`Error Code: ${a.status}, Message: ${a.message}`;return A(()=>({error:a,message:m}))}))};var he="1.0.0",le="portal-proxy-client",fe=1,M=class o{#o=1e3;#s=s(d);#t=l("disconnected");#l=l(this.#o);#i=l(!1);#n=l(!1);#a=l(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=D(()=>{let t=this.#i(),e=this.#l(),r=this.#a();if(!r||!t||!e||e<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(r)},e)});utf8Atob(t){let e=Uint8Array.from(atob(t),c=>c.charCodeAt(0)),r=this.#m.decode(e);return r?JSON.parse(r):null}connectToMachineServer(t,e){let r=e?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!r||(this.#e&&this.wsState()!=="authenticated"&&this.#e.close(),this.#e=new WebSocket(this.#s.machineServerUrl),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let i=JSON.parse(c.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let n={token:t,publicKey:"",clientVersion:he,protocolVersion:fe},p=this.createResponse(i,"authportal",n);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var u=JSON.parse(i.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let n=this.#p.pop();n&&this.#r[n.messageId]&&this.activateCommand(n)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let n=this.#r[i.messageId];if(n){if(i.errorMessage){n.reject(i.errorMessage);return}else{let p=JSON.parse(i.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),n.resolve(p)}delete this.#r[i.messageId],window.clearTimeout(n.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,e,r){let c={from:le,to:t.from,type:e,messageId:t.messageId,payload:JSON.stringify(r)};return JSON.stringify(c)}sendCommand(t,e,r,c,i,u,n=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((p,h)=>{let a=crypto.randomUUID(),f={from:le,to:e,type:"command",messageId:a,payload:JSON.stringify({method:r,path:c,body:i,headers:u})},b={resolve:p,reject:h,timer:window.setTimeout(()=>{let v=this.#r[a];v&&(delete this.#r[a],v.reject("Timeout"))},n)};this.#r[a]=b,this.#n()?this.activateCommand(f):this.#p.push(f)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})};function ge(o){if(typeof o!="string")return null;let e=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...e))}var me=(o,t)=>{let r=s(y).config(),c=s(d);if(r===null)return t(o);let i=s(M),u=ge(o.body),n={};o.headers.keys().forEach(m=>{n[m]=o.headers.get(m)??""});let p=o.headers.get("timeout"),h=p!==null?parseInt(p):c.defaultTimeout,a=i.sendCommand(r.accessToken,r.clientId,o.method,o.url,u,n,h);return new x(m=>{a.then(f=>{let b=new G;n!=null&&Object.keys(n).forEach(N=>{b.set(N,n[N])});let v=new K({body:f.body,status:f.code,statusText:"OK",headers:b});m.next(v),m.complete()})})};var de={providers:[W(),Z(pe,Q()),$(B(),z([me,ce])),g,{provide:d,useValue:ae},{provide:F,useValue:se()},oe,J,ne]};_(w,de);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.57",
2
+ "version": "0.0.59",
3
3
  "name": "@duplicati/ngclient",
4
4
  "license": "MIT",
5
5
  "contributors": [
package/chunk-2GC7SBMS.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
package/chunk-C5SNUVEC.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-GFJZ5IJI.js")},{path:"destination",loadComponent:()=>import("./chunk-VWFTXKNS.js")},{path:"source-data",loadComponent:()=>import("./chunk-TOM6TEW4.js")},{path:"schedule",loadComponent:()=>import("./chunk-DKRZJC7X.js")},{path:"options",loadComponent:()=>import("./chunk-VC4Z6LFJ.js")}];export{o as default};
package/chunk-CL6W3OLS.js DELETED
@@ -1 +0,0 @@
1
- import{a as ve}from"./chunk-KY2RQ76O.js";import{a as K}from"./chunk-PLUKKU2C.js";import{a as be}from"./chunk-CVMGHPI7.js";import{b as x}from"./chunk-Z6DKPRZO.js";import{a as Me,b as h,d as L,e as k,h as $,j as he,l as y,o as D,p as A,r as b}from"./chunk-NXFYBS5S.js";import{b as M}from"./chunk-3FAE4RKT.js";import{a as I,c as f}from"./chunk-ACQPX6N4.js";import{a as v,g as w,l as Le,o as ke,p as $e,q as ye,r as De,w as Ae}from"./chunk-LEG3VUID.js";import{pa as U}from"./chunk-DC7QVFBV.js";import{Ab as de,Bb as n,C as _e,Cb as l,Db as a,Eb as X,F as g,Fb as B,Hb as G,J as pe,Jc as Pe,Lc as Ie,M as ce,N as ue,Nb as c,O as Fe,Ob as u,Pb as E,Qa as F,Qb as Oe,Rb as ge,T as Se,Tb as d,Ub as z,Xa as p,Z as _,c as ne,db as P,ea as R,fa as N,gc as Y,jb as q,jc as fe,l as re,p as se,pc as Ce,q as le,sb as S,ub as me,uc as Re,w as ae,wc as Ne,xb as V,yb as Ee,zb as Te}from"./chunk-UI7YZPLW.js";var we=new A,We=()=>we.group({passphrase:we.control("")}),H=class s{#t=_(M);#e=_(C);#o=_(f);#i=_(I);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let o=this.#e.destinationTargetUrl();if(!o)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,t=[{Name:"--no-encryption",Value:"true"}];e&&(t=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:o,Settings:t}},temporary:!0}).pipe(g(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let r=i.ID;this.#e.getBackup(r),this.#o.navigate([`/restore-draft/${r}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=P({type:s,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let o;o=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let t;t=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,t,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",o,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){e&1&&(n(0,"form",3),d("submit",function(){return t.next()}),n(1,"spk-form-field")(2,"label",4),E(3,0),l(),a(4,"input",5),l(),n(5,"div",6)(6,"button",7),d("click",function(){return t.back()}),c(7,1),a(8,"spk-icon"),u(),l(),n(9,"button",8),c(10,2),a(11,"spk-icon"),u(),l()()()),e&2&&S("formGroup",t.encryptionForm)},dependencies:[b,$,h,L,k,y,D,Le,v,w],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Be(s,o){s&1&&a(0,"spk-progress-bar",8)}function ze(s,o){if(s&1&&(n(0,"spk-option",14),Y(1),Re(2,"date"),l()),s&2){let e=o.$implicit;S("value",e.Version),F(),fe("",e.Version,": ",Ne(2,3,e.Time,"medium"),"")}}function Ye(s,o){if(s&1){let e=G();a(0,"spk-progress-bar",8),n(1,"button",10),d("click",function(){R(e);let i=z(2);return N(i.abortLoading())}),E(2,4),l()}}function Ue(s,o){if(s&1&&(n(0,"app-file-tree",15)(1,"label",16),E(2,5),l(),a(3,"input",17),l()),s&2){let e=z(2);S("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ke(s,o){if(s&1&&(n(0,"spk-select",12),a(1,"input",13),Te(2,ze,3,6,"spk-option",14,Ee),l(),q(4,Ye,3,0)(5,Ue,4,4,"app-file-tree",15)),s&2){let e,t=z();S("displayFn",t.displayFn())("hideClearButton",!0),F(2),de(t.versionOptions()),F(2),V(t.isDraft()&&t.isRepairing()||!t.rootPathLoaded()?4:-1),F(),V(t.rootPathLoaded()&&((e=t.selectFilesFormSignal())==null?null:e.selectedOption)!==null&&(t.isDraft()&&!t.isRepairing()||!t.isDraft())&&((e=t.selectFilesFormSignal())!=null&&e.selectedOption)?5:-1)}}var j=new A,Ve=()=>j.group({filesToRestore:j.control(""),selectedOption:j.control(null),passphrase:j.control(null)}),Q=class s{#t=_(M);#e=_(C);#o=_(f);#i=_(I);#n=_(U);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectedOptionSignal=x(this.selectFilesForm.controls.selectedOption.valueChanges);backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;backupSettings=Pe(()=>{let o=this.backupId(),e=this.selectFilesFormSignal(),t=e?.selectedOption?parseInt(e?.selectedOption):null;if(typeof t!="number"||!o)return null;let r=this.versionOptions()?.find(m=>m.Version===t)?.Time??null;return r?{id:o,time:r}:null});isRepairing=p(!1);repairEffect=Ie(()=>{let o=this.#e.isDraft(),e=this.selectedOptionSignal();if(o&&e){let t=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:t,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(g(()=>this.isRepairing.set(!1))).subscribe()}});rootPathLoaded=p(!1);rootPath=ve([this.selectFilesFormSignal,this.backupId],ne(ce([null,null]),ue(([o,e])=>{let t=o?.selectedOption?parseInt(o?.selectedOption):null,i=e;if(typeof t!="number"||!i)return re("/");this.rootPathLoaded.set(!1);let r=this.versionOptions()?.find(m=>m.Version===t);return this.#t.getApiV1BackupByIdFiles({id:i,time:r?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(Fe(this.selectFilesForm.controls.selectedOption.valueChanges),le(m=>m.Files[0].Path),g(()=>{this.rootPathLoaded.set(!0)}))})));abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let o=this.versionOptions();return e=>{if(!e)return"";let t=o?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return t?`${t.Version}: ${this.#n.transform(t.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=P({type:s,selectors:[["app-select-files"]],features:[Ce([U])],decls:13,vars:3,consts:()=>{let o;o=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let r;r=$localize`Cancel`;let m;return m=$localize`Path`,[["formRef",""],o,e,t,r,m,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,t){if(e&1){let i=G();n(0,"form",6,0),d("submit",function(){return R(i),N(t.next())}),n(2,"h3",7),E(3,1),l(),q(4,Be,1,0,"spk-progress-bar",8)(5,Ke,6,4),n(6,"div",9)(7,"button",10),d("click",function(){return R(i),N(t.back())}),c(8,2),a(9,"spk-icon"),u(),l(),n(10,"button",11),c(11,3),a(12,"spk-icon"),u(),l()()()}e&2&&(S("formGroup",t.selectFilesForm),F(4),V(t.versionOptionsLoading()?4:5),F(5),Oe(t.isFileRestore()?"Back":"Exit"),ge(8))},dependencies:[b,$,h,L,k,y,D,U,K,w,ye,v,De,ke],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var C=class s{#t=_(f);#e=_(M);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=Ve();optionsForm=Xe();encryptionForm=We();optionsFormSignal=x(this.optionsForm.valueChanges);selectFilesFormSignal=x(this.selectFilesForm.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(o,e=!1,t=!1){this.backupId.set(o),this.isFileRestore.set(e),this.isDraft.set(t),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(o,!0)}updateTargetUrl(o){this.destinationTargetUrl.set(o)}submit(){this.isSubmitting.set(!0);let o=this.backupId(),e=this.optionsForm.value,t=this.selectFilesForm.value,i=this.versionOptions()?.find(r=>r.Version===t.selectedOption);console.log(i),this.#e.postApiV1BackupByIdRestore({id:o??"",requestBody:{paths:t.filesToRestore?.split("\0").map(r=>`${r}*`)??[],passphrase:t.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:r=>{console.error("restore error",r)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(o,e=!1){this.versionOptionsLoading.set(!0),ae([this.#e.getApiV1BackupById({id:o}),this.#e.getApiV1BackupByIdFilesets({id:o}).pipe(se(1e4),pe())]).pipe(_e(1),g(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([t,i])=>{this.versionOptions.set(i),this.backup.set(t),e&&i.length>0&&this.selectFilesForm.controls.selectedOption.setValue(i[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=Se({token:s,factory:s.\u0275fac,providedIn:"root"})};var W=new A,Xe=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),Z=class s{#t=_(C);#e=_(f);#o=_(I);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=P({type:s,selectors:[["app-options"]],decls:39,vars:6,consts:()=>{let o;o=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let t;t=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let r;r=$localize`How do you want to handle existing files?`;let m;m=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let O;O=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let ee;ee=$localize`Permissions`;let te;te=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let oe;oe=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ie;return ie=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],o,e,t,i,r,m,O,ee,te,oe,ie,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,t){if(e&1){let i=G();n(0,"form",12,0),d("submit",function(){return R(i),N(t.submit())}),n(2,"h3",13),E(3,1),l(),n(4,"app-toggle-card",14),X(5,15),E(6,2),B(),n(7,"spk-radio",16),c(8,3),a(9,"input",17),u(),l(),n(10,"spk-radio",16),c(11,4),a(12,"input",18),u(),l(),n(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),l(),a(16,"input",21),l()(),n(17,"app-toggle-card",14),X(18,15),E(19,5),B(),n(20,"spk-radio",16),c(21,6),a(22,"input",22),u(),l(),n(23,"spk-radio",16),c(24,7),a(25,"input",23),u(),l()(),n(26,"app-toggle-card"),X(27,15),E(28,8),B(),n(29,"spk-toggle",24),c(30,9),a(31,"input",25),u(),l()(),n(32,"div",26)(33,"button",27),d("click",function(){return R(i),N(t.goBack())}),c(34,10),a(35,"spk-icon"),u(),l(),n(36,"button",28),c(37,11),a(38,"spk-icon"),u(),l()()()}if(e&2){let i;S("formGroup",t.optionsForm),F(4),S("disallowToggle",!0),F(9),S("disabled",((i=t.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),F(4),S("disallowToggle",!0),F(19),me("loader",t.isSubmitting())}},dependencies:[b,$,h,Me,he,L,k,y,D,be,K,Ae,$e,w,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{Xe as a,Z as b,We as c,H as d,Ve as e,Q as f,C as g};
package/chunk-DKRZJC7X.js DELETED
@@ -1 +0,0 @@
1
- import{m as a,n as b}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
package/chunk-ENRVPUCB.js DELETED
@@ -1 +0,0 @@
1
- import{g as W}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import{b as E}from"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import{a as G}from"./chunk-RQA4DOFL.js";import"./chunk-MJKHWRNQ.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import{a as $,b as P,d as L,e as M}from"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import{p as N,t as I}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-7C6ILTIP.js";import"./chunk-DC7QVFBV.js";import"./chunk-BUB2XBZH.js";import{Bb as o,Cb as i,Db as n,Lc as A,Nb as F,Ob as r,Qa as R,Ub as u,Z as T,db as m,jb as f,qc as p,rc as l,sb as _,xb as C}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
package/chunk-GFJZ5IJI.js DELETED
@@ -1 +0,0 @@
1
- import{g as a,h as b,i as c}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
package/chunk-HFDDJLAI.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
package/chunk-KY2RQ76O.js DELETED
@@ -1 +0,0 @@
1
- import{a as f,b as u}from"./chunk-Z6DKPRZO.js";import{E as l,Jc as V,Kc as w,M as m,Wa as v,Z as b,b as d,ba as I,ca as y,ja as S,k as j,n as h,r as c}from"./chunk-UI7YZPLW.js";function z(e,n,i){!n&&y(e);let r=n??b(S);return i?I(r,i):r}function C(...e){let{normalizedSources:n,hasInitValue:i,operator:r,options:o}=E(e),s=z(C,o?.injector);return i?u(c(n).pipe(r),{initialValue:o.initialValue,injector:s}):u(c(n).pipe(r),{injector:s,requireSync:!0})}function E(e){if(!e||!e.length||typeof e[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof e[1]=="function";if(e.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||e.splice(1,0,d);let[i,r,o]=e,s=!!o&&"initialValue"in o;return{normalizedSources:Object.entries(i).reduce((p,[a,t])=>{if(v(t))p[a]=f(t,{injector:o?.injector}).pipe(m(w(t)));else if(h(t))p[a]=t.pipe(l());else if(typeof t=="function"){let A=V(t);p[a]=f(A,{injector:o?.injector}).pipe(m(t()))}else p[a]=j(t).pipe(l());return p},Array.isArray(i)?[]:{}),operator:r,hasInitValue:s,options:o}}export{C as a};
package/chunk-LVU6VV6K.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ERIN7FXX.js";import"./chunk-BUB2XBZH.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as DurationFormatPipe};
package/chunk-NEGT6KCV.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-7C6ILTIP.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as BytesPipe};
package/chunk-PLUKKU2C.js DELETED
@@ -1 +0,0 @@
1
- import{a as ce}from"./chunk-TH3GTINR.js";import{q as de}from"./chunk-NXFYBS5S.js";import{b as ae}from"./chunk-3FAE4RKT.js";import{a as pe,f as ue,l as he,m as _e,o as fe,w as ge}from"./chunk-LEG3VUID.js";import{ia as le}from"./chunk-DC7QVFBV.js";import{Ab as Y,Bb as _,Cb as g,Db as Z,F as B,Gb as G,Hb as k,Jc as A,Lc as w,Pb as R,Qa as f,Qb as ee,Rb as te,Tb as N,Ub as p,Vb as ne,Wb as I,Xa as x,Ya as H,Z as D,db as K,dc as q,ea as F,ec as ie,fa as O,fc as X,gc as y,ic as oe,jb as v,qa as V,ra as C,rc as L,sb as j,sc as re,tb as U,ub as P,w as z,xb as b,xc as se,zb as J}from"./chunk-UI7YZPLW.js";import{a as W,b as $}from"./chunk-C6Q5SG76.js";var Pe=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=(r,t)=>t.id,Se=r=>({children:r,level:0}),me=r=>({$implicit:r}),Fe=(r,t)=>({children:r,level:t});function Oe(r,t){if(r&1){let e=k();_(0,"spk-button-group")(1,"button",13),N("click",function(){F(e);let s=p();return O(s.pathDiscoveryMethod.set("browse"))}),R(2,4),g(),_(3,"button",13),N("click",function(){F(e);let s=p();return O(s.pathDiscoveryMethod.set("path"))}),R(4,5),g()()}if(r&2){let e=p();f(),P("active",e.pathDiscoveryMethod()==="browse"),f(2),P("active",e.pathDiscoveryMethod()==="path")}}function Ne(r,t){r&1&&Z(0,"spk-progress-bar",9)}function ye(r,t){r&1&&(_(0,"spk-icon",16),y(1,"folder-open"),g())}function we(r,t){r&1&&(_(0,"spk-icon"),y(1,"file"),g())}function ke(r,t){r&1&&(_(0,"spk-icon",16),y(1,"folder"),g())}function Re(r,t){if(r&1&&v(0,ye,2,0,"spk-icon",16)(1,we,2,0,"spk-icon")(2,ke,2,0,"spk-icon",16),r&2){let e=p(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(r,t){r&1&&(_(0,"spk-icon",16),y(1,"desktop-tower"),g())}function Le(r,t){r&1&&G(0)}function Ae(r,t){if(r&1&&v(0,Le,1,0,"ng-container",10),r&2){let e=p(2).$implicit,n=p().$implicit;p();let s=X(7);j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(5,me,re(2,Fe,e.children,n.level+1)))}}function We(r,t){if(r&1){let e=k();_(0,"div",14,3),N("click",function(){F(e);let s=p().$implicit,i=p(2);return O(i.toggleNode(s.id,s))}),_(2,"div",15),v(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),g(),_(5,"div",17),N("click",function(s){F(e);let i=p().$implicit,o=p(2);return O(o.toggleSelectedNode(s,i))}),y(6),g()(),v(7,Ae,1,7,"ng-container")}if(r&2){let e=p().$implicit,n=p(2);P("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),f(3),b(e.id!=="/"?3:4),f(3),oe(" ",e.text," "),f(),b(e.children.length>0?7:-1)}}function $e(r,t){if(r&1&&v(0,We,8,13),r&2){let e=t.$implicit,n=p(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Be(r,t){if(r&1&&(_(0,"spk-list"),J(1,$e,1,1,null,null,Me),g()),r&2){let e=t.$implicit;U("padding-left",e.level*.25,"rem"),f(),Y(e.children)}}function De(r,t){r&1&&G(0)}function Ve(r,t){if(r&1){let e=k();_(0,"spk-toggle",18),N("click",function(){F(e);let s=p();return O(s._showHiddenNodes.set(!s._showHiddenNodes()))}),R(1,6),g()}if(r&2){let e=p();P("active",e._showHiddenNodes()),f(),ee(e.showFiles()?"files":"folders"),te(1)}}var Ce=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Ce||{}),Q=class r{#t=D(ae);#r=D(ce);multiSelect=C(!1);disabled=C(!1);showFiles=C(!1);selectFiles=C(!1);accepts=C(null);startingPath=C(null);rootPath=C(void 0);backupSettings=C(null);showHiddenNodes=C(!1);hideShortcuts=C(!1);includes=V();excludes=V();_showHiddenNodes=x(!1);treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=x("browse");isLoading=x(!1);currentPath=x("/");#e=x(null);treeSearchQuery=x("");treeNodes=x([]);filterGroups=this.#r.filterGroups();isByBackupSettings=A(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=A(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Ce;treeStructure=A(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let u=n[a].slice(1);if(u.startsWith("{")&&u.endsWith("}")){let h=u.slice(1,-1),d=this.filterGroups?.FilterGroups[h];if(d&&d.length){let T=d.map(E=>`-${E}`);n.splice(a,1,...T)}}}let s=this.searchableTreeNodes(),i=new Map,o=this.rootPath(),m=this.accepts(),l=o?{id:o,resolvedpath:o,text:o?.replaceAll("/",""),parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};m&&(l.accepted=!0),i.set("/",l);for(let a of s){let u=a.id.replace(o??"","").split("/").filter(Boolean),h="",d=l;for(let T of u){if(h+="/"+T,!i.has(h)){let E=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),M={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:E,parentPath:h,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":h,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};m&&(M.accepted=this.matchAccepts(m,M)),i.set(h,M),d.children.push(M)}d=i.get(h)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let i=0,o=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),m=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(o.length===0)return i;for(let l=0;l<o.length;l++){let a=o[l];if(e?.startsWith(a)){i=1;break}}if(m.length===0)return i;for(let l=0;l<m.length;l++){let a=m[l],c=a.slice(1),u=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){i=u==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){i=u==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){i=u==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),T=this.translateCSharpRegex(d);if(new RegExp(`${T}`).test(e)){i=u==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){i=u==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){i=u==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,i,o)=>`(${o})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=w(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=w(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(i=>s.endsWith(i)):!1}currentPathEffect=w(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=w(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(console.log(t),this.currentPath.set(t),this.#p(t)):this.#o(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(o=>o!==""&&o!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(o=>o!==e.id).join("\0")):s.some(o=>o.startsWith(i))?this.currentPath.set(s.filter(o=>o!==i).join("\0")):this.currentPath.set([...s,i].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(o=>o!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#o(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(t){let e=this.backupSettings(),n={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(n.filter="@"+t),this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),n=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=n.map(o=>o.split("/").filter(Boolean)),i=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((m,l)=>{let a=o.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;i.includes(c)||i.push(c)})}),this.isLoading.set(!0),z([...i.map(o=>this.#i(o))]).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(m=>{let l=o.flatMap(c=>c.map(u=>{let h=u.id,d=h&&h.split("/").filter(Boolean).slice(0,-1).join("/"),E="/"+(h&&h.split("/").filter(Boolean).join("/")),M=n.findIndex(S=>this.multiSelect()?E.startsWith(S):E===S)>-1,Ee=n.findIndex(S=>S===h)>-1,ve=e.findIndex(S=>S===E)>-1;return $(W({},u),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:M&&!ve||Ee})})),a=[...new Map([...m,...l].map(c=>[c.resolvedpath??c.id,c])).values()];return this.#l(),a})}})}#o(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(o=>o!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let o=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return $(W({},l),{cls:a,parentPath:e})}),m=[...new Map([...i,...o].map(l=>[l.resolvedpath??l.id,l])).values()];return this.hideShortcuts()?m.filter(l=>!l.id.startsWith("%")):m})}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=K({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(q(n.treeContainerRef,Pe,5),q(n.formRef,Te,5)),e&2&&ie(2)},hostVars:2,hostBindings:function(e,n){e&2&&P("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(ne(xe),v(0,Oe,5,4,"spk-button-group"),_(1,"div",7),I(2,0,["ngProjectAs","label",5,["label"]]),_(3,"div",8,0),v(5,Ne,1,0,"spk-progress-bar",9)(6,Be,3,2,"ng-template",null,1,se)(8,De,1,0,"ng-container",10),g(),v(9,Ve,2,3,"spk-toggle",11),g(),_(10,"div",12,2)(12,"spk-form-field"),I(13,1,["ngProjectAs","label",5,["label"]]),I(14,2,["ngProjectAs","input",5,["input"]]),g()()),e&2){let s=X(7);b(n.multiSelect()?-1:0),f(),P("hidden",n.pathDiscoveryMethod()!=="browse"),f(2),P("visualize-accepted",n.accepts()),f(2),b(n.isLoading()?5:-1),f(3),j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(13,me,L(11,Se,n.treeStructure()))),f(),b(n.accepts()?-1:9),f(),P("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ue,ge,pe,he,_e,fe,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{Q as a};
package/chunk-RHYYHNXZ.js DELETED
@@ -1,6 +0,0 @@
1
- import{g as Xt}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import{a as U,b as Wt,c as zt,q as Z}from"./chunk-PUIARLRJ.js";import{a as Ht}from"./chunk-PLUKKU2C.js";import{a as Kt}from"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-NXFYBS5S.js";import{b as Ct}from"./chunk-3FAE4RKT.js";import{a as ut,c as Tt}from"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,q as Gt,r as Bt,w as Lt,x as Ut}from"./chunk-LEG3VUID.js";import{c as dt}from"./chunk-ZFV5KH42.js";import{ia as Ft}from"./chunk-DC7QVFBV.js";import{Ab as E,Bb as r,Cb as a,Db as u,Eb as v,F as tt,Fb as A,Gb as M,Hb as x,Jc as K,Lc as mt,Nb as N,Ob as R,Pb as b,Qa as o,Qb as q,Rb as j,Sb as H,Tb as g,Ub as s,Xa as h,Xb as y,Ya as nt,Z as w,_b as T,db as it,dc as ot,ea as C,ec as at,fa as f,fc as G,gc as p,hc as V,ic as O,ja as et,jb as F,jc as Q,lc as rt,mc as lt,nc as st,pc as pt,qc as _t,rc as B,sb as c,tc as L,ub as X,xb as d,xc as ct,yb as D,zb as S}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
- If this is a self-signed certificate, you can choose to trust this certificate.
3
- The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(_.startsWith("incorrect-host-key:")){let m=_.split('incorrect-host-key:"')[1].split('",')[0],k=_.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
- otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
- Do you want to REPLACE your CURRENT host key ${k}
6
- with the REPORTED host key: ${m}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${m}`,confirmText:"Approve",cancelText:"Cancel"},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}})}}})}mapToTargetUrl(i){return Wt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=h("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=h(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=h(!1);#_=h(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,l=this.#o()+"?type="+i+"&token="+this.#a(),_=screen.width/2-t/2,m=screen.height/2-e/2,k=window.open(l,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+_+",top="+m);k?.addEventListener("blur",I=>{console.log("event blur",I)}),k?.addEventListener("beforeunload",I=>{console.log("event beforeunload",I),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(tt(()=>this.#r.set(!1))).subscribe({next:P=>{console.log("res",P),P?.authid&&this.#_.set(P.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=it({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&ot(e.formRef,qt,5),t&2&&at()},features:[pt([Z])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let l;l=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let _;_=$localize`Other destinations`;let m;m=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=H(m);let k;k=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,k=H(k);let I;I=$localize`Edit target URL`;let P;P=$localize` Be careful, this will overwrite everything you have in your destination. `;let Y;return Y=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["fieldTemplate",""],i,t,e,l,_,m,k,I,P,Y,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],["spk-button","","type","button",1,"outlined"],["item","","type","button"],[1,"tile",3,"click"],["item","","type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"value"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let l=x();r(0,"form",12,0),g("submit",function(){return C(l),f(e.next())}),r(2,"header")(3,"h3",13),N(4,2),r(5,"div",14),F(6,ne,4,3,"button",15),r(7,"spk-menu")(8,"button",16),u(9,"spk-icon"),a(),v(10,17),r(11,"button",18),g("click",function(){return C(l),f(e.openTargetUrlDialog())}),u(12,"spk-icon"),a(),A(),a()(),R(),a(),F(13,ie,3,0,"p"),a(),F(14,re,9,0)(15,rn,30,4,"ng-container",19),r(16,"div",20)(17,"button",21),g("click",function(){return C(l),f(e.goBack())}),N(18,3),u(19,"spk-icon"),R(),a(),r(20,"button",22),N(21,4),u(22,"spk-icon"),R(),a()()(),F(23,ln,15,4,"spk-dialog",23)}if(t&2){let l;c("formGroup",e.destinationForm),o(6),d(e.destinationCount()>0?6:-1),o(7),d(e.destinationCount()>0?13:-1),o(),d(e.destinationCount()===0?14:-1),o(),d(!((l=e.destinationFormSignal())==null||l.destinations==null)&&l.destinations.length?15:-1),o(8),d(e.targetUrlDialogOpen()?23:-1)}},dependencies:[$t,Ot,gt,xt,ft,Dt,St,kt,Nt,yt,Rt,ht,Ft,Mt,Bt,bt,Vt,Gt,wt,Lt,Ut,At,vt,Kt,Ht],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{vn as createDestinationForm,An as createDestinationFormGroup,J as default};
package/chunk-TOM6TEW4.js DELETED
@@ -1 +0,0 @@
1
- import{o as a,p as b}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
package/chunk-V3SQQA7U.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-RHYYHNXZ.js")},{path:"encryption",loadComponent:()=>import("./chunk-HFDDJLAI.js")},{path:"select-files",loadComponent:()=>import("./chunk-2GC7SBMS.js")},{path:"options",loadComponent:()=>import("./chunk-WZYTVL3C.js")}],o=t;export{o as default};
package/chunk-VC4Z6LFJ.js DELETED
@@ -1 +0,0 @@
1
- import{j as a,k as b,l as c}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
package/chunk-VWFTXKNS.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,e as b,f as c}from"./chunk-PUIARLRJ.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-DNHLTHLR.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
package/chunk-VWTABONU.js DELETED
@@ -1 +0,0 @@
1
- import{a as ze}from"./chunk-KY2RQ76O.js";import"./chunk-Z6DKPRZO.js";import{a as q}from"./chunk-MJMYUASP.js";import{a as U}from"./chunk-TH3GTINR.js";import{a as De}from"./chunk-AX44W3BG.js";import{a as he}from"./chunk-ZG5RYKT7.js";import{a as Xe}from"./chunk-RQA4DOFL.js";import"./chunk-MJKHWRNQ.js";import{b as V,d as B,e as Pe,g as W,h as Ie,l as ye,m as be,o as Ge,p as $e,q as j,r as ve}from"./chunk-NXFYBS5S.js";import{b as z}from"./chunk-3FAE4RKT.js";import{g as Ae,l as Fe,o as Le,p as ke,q as we,r as xe}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-7C6ILTIP.js";import"./chunk-DC7QVFBV.js";import"./chunk-BUB2XBZH.js";import{Ab as G,Bb as i,Cb as o,Db as O,F as me,Hb as R,Jc as X,Lc as Re,M as L,Na as Ce,Nb as Ee,Ob as fe,Pb as a,Qa as s,Qb as H,Rb as J,Sb as Ne,T as ge,Tb as p,Ub as u,Xa as T,Xb as Me,Z as S,c as ue,db as k,ea as C,fa as E,gc as f,hc as $,ic as v,jb as h,l as de,lc as w,mc as x,nc as D,q as Se,qc as Oe,sb as d,ub as M,xb as m,yb as y,z as Te,zb as b}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var P=class r{#e=S(z);#i=S(U);repeatRegisterTimer=null;state=T("unknown");claimUrl=T(null);registerUrl=T("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Re(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=ge({token:r,factory:r.\u0275fac,providedIn:"root"})};function qe(r,e){if(r&1){let t=R();i(0,"spk-form-field",10)(1,"input",11),D("ngModelChange",function(l){C(t);let c=u(2);return x(c.registerUrl,l)||(c.registerUrl=l),E(l)}),o()(),i(2,"button",12),p("click",function(){C(t);let l=u(2);return E(l.register())}),a(3,0),o()}if(r&2){let t=u(2);s(),w("ngModel",t.registerUrl)}}function Ke(r,e){if(r&1&&(i(0,"div",8)(1,"label"),a(2,1),o(),i(3,"a",13),f(4),o()()),r&2){let t=u(2);s(3),Me("href",t.claimUrl(),Ce),s(),$(t.claimUrl())}}function He(r,e){r&1&&(i(0,"div",8)(1,"label"),a(2,2),o()())}function Je(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.cancel())}),a(1,3),o()}}function Qe(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.disable())}),a(1,4),o()}}function Ye(r,e){if(r&1){let t=R();i(0,"button",12),p("click",function(){C(t);let l=u(2);return E(l.enable())}),a(1,5),o(),i(2,"button",14),p("click",function(){C(t);let l=u(2);return E(l.delete())}),a(3,6),o()}}function Ze(r,e){if(r&1&&(i(0,"div",7),h(1,qe,4,1)(2,Ke,5,2,"div",8)(3,He,3,0,"div",8)(4,Je,2,0,"button",9)(5,Qe,2,0,"button",9)(6,Ye,4,0),o()),r&2){let t=u();s(),m(t.state()==="inactive"?1:-1),s(),m(t.state()==="registered"?2:-1),s(),m(t.state()==="registering"?3:-1),s(),m(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),s(),m(t.state()==="connected"||t.state()==="enabled"?5:-1),s(),m(t.state()==="disabled"?6:-1)}}var K=class r{#e=S(P);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=k({type:r,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let l;l=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let N;N=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,l,c,N,I,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(t,n){t&1&&h(0,Ze,7,6,"div",7),t&2&&m(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,Fe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var et=()=>({standalone:!0});function tt(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t),s(),$(t)}}function nt(r,e){if(r&1){let t=R();i(0,"spk-option",46),p("click",function(){let l=C(t).$implicit,c=u();return E(c.pauseSettings.controls.timeType.setValue(l.value))}),f(1),o()}if(r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}function it(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}function ot(r,e){if(r&1&&f(0),r&2){let t,n=u();v(" ",(t=n.sysinfo())==null?null:t.ServerVersion," ")}}function rt(r,e){r&1&&O(0,"spk-progress-bar",39)}function lt(r,e){if(r&1&&(i(0,"spk-option",31),f(1),o()),r&2){let t=e.$implicit;d("value",t.value),s(),v(" ",t.label," ")}}var A=new $e,Ve=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Be=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Q=class r{#e=S(De);#i=S(U);#t=S(z);#n=S(P);#o=S(he);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=T("list");langCtrl=T(this.#r);remoteControlStatus=this.#n.status;settingsForm=A.group({pauseSettings:A.group({time:A.control(0),timeType:A.control("s")}),usageStatistics:A.control("")});updatingChannel=T(!1);updateChannel=T("");setNewChannel(e){let t=this.updateChannel();this.updateChannel.set(e),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":e}}).pipe(me(()=>this.updatingChannel.set(!1)),Te(()=>(this.updateChannel.set(t),de(null)))).subscribe()}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?q.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):q});usageStatisticsOptions=T(Be);timeTypeOptions=T(Ve);timeOptions=ze([this.pauseSettings.controls.timeType.valueChanges.pipe(L("s")),this.pauseSettings.controls.time.valueChanges.pipe(L(null))],ue(Se(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(l=>l.toString().includes(t.toString())):n}),L([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,l)=>l)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).subscribe()}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),l=t.slice(0,-1),c=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(l==""?"0":l),timeType:c.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"]}),this.updateChannel.set(e["update-channel"])}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?q.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ve.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:Be.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=k({type:r,selectors:[["app-settings"]],decls:102,vars:30,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let l;l=$localize`Remote access control`;let c;c=$localize`Pause after startup or hibernation`;let N;N=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let I;I=$localize`Color theme`;let g;g=$localize`Customize your application theme`;let Y;Y=$localize`Language`;let Z;Z=$localize`Select a language for the platform`;let ee;ee=$localize`Update channel`;let te;te=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ne;ne=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ie;ie=$localize`Stable`;let oe;oe=$localize`Official releases`;let re;re=$localize`Beta`;let le;le=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let se;se=$localize` Experimental `;let ae;ae=$localize`Specific builds for developers only. Not for use with important data.`;let _e;_e=$localize`Canary`;let ce;ce=$localize`Individual builds for developers only. Not for use with important data.`;let pe;pe=$localize`Usage statistics`;let F;return F=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#94\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#94\uFFFD"}:CLOSE_LINK:${"[\uFFFD#95\uFFFD\uFFFD/#95\uFFFD|\uFFFD#96\uFFFD\uFFFD/#96\uFFFD]"}:LINE_BREAK:${"[\uFFFD#95\uFFFD\uFFFD/#95\uFFFD|\uFFFD#96\uFFFD\uFFFD/#96\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,F=Ne(F),[e,t,n,l,c,N,I,g,Y,Z,ee,te,ne,ie,oe,re,le,se,ae,_e,ce,pe,F,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"disabled"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(O(0,"app-status-bar"),i(1,"form",23),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",24)(4,"h2"),a(5,0),o(),i(6,"p"),a(7,1),o()(),i(8,"button",25),a(9,2),o()(),i(10,"section")(11,"div",26)(12,"h3"),a(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",27),O(17,"app-remote-control"),o()(),i(18,"section")(19,"div",26)(20,"h3"),a(21,4),o(),i(22,"p"),a(23,5),o()(),i(24,"div",27)(25,"div",28)(26,"spk-select",29),O(27,"input",30),b(28,tt,2,2,"spk-option",31,y),o(),i(30,"spk-select",32),O(31,"input",33),b(32,nt,2,2,"spk-option",31,y),o()()()(),i(34,"section")(35,"div",26)(36,"h3"),a(37,6),o(),i(38,"p"),a(39,7),o()(),i(40,"div",27)(41,"div",34)(42,"img",35),p("click",function(){return n.setLightMode()}),o(),i(43,"img",36),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",26)(46,"h3"),a(47,8),o(),i(48,"p"),a(49,9),o()(),i(50,"div",27)(51,"spk-select",37),p("change",function(c){return n.saveLocale(c)}),i(52,"input",38),D("ngModelChange",function(c){return x(n.langCtrl,c)||(n.langCtrl=c),c}),o(),b(53,it,2,2,"spk-option",31,y),o()()(),i(55,"section")(56,"div",26)(57,"h3"),a(58,10),o(),i(59,"p"),h(60,ot,1,1),o(),h(61,rt,1,0,"spk-progress-bar",39),o(),i(62,"div",40)(63,"div",41),p("click",function(){return n.setNewChannel("")}),i(64,"spk-radio",42),a(65,11),o(),i(66,"p"),a(67,12),o()(),i(68,"div",41),p("click",function(){return n.setNewChannel("stable")}),i(69,"spk-radio",42),a(70,13),o(),i(71,"p"),a(72,14),o()(),i(73,"div",41),p("click",function(){return n.setNewChannel("beta")}),i(74,"spk-radio",42),a(75,15),o(),i(76,"p"),a(77,16),o()(),i(78,"div",41),p("click",function(){return n.setNewChannel("experimental")}),i(79,"spk-radio",42),a(80,17),o(),i(81,"p"),a(82,18),o()(),i(83,"div",41),p("click",function(){return n.setNewChannel("canary")}),i(84,"spk-radio",42),a(85,19),o(),i(86,"p"),a(87,20),o()()()(),i(88,"section")(89,"div",26)(90,"h3"),a(91,21),o(),i(92,"p"),Ee(93,22),O(94,"a",43)(95,"br")(96,"br"),fe(),o()(),i(97,"div",27)(98,"spk-select",44),O(99,"input",45),b(100,lt,2,2,"spk-option",31,y),o()()()()),t&2){let l,c,N;s(),d("formGroup",n.settingsForm),s(7),d("disabled",n.settingsForm.untouched),s(7),$(n.remoteControlStatus()),s(11),d("hideClearButton",!0),s(2),G(n.timeOptions()),s(2),d("displayFn",n.typeDisplay())("hideClearButton",!0),s(2),G(n.timeTypeOptions()),s(10),M("active",!n.isDarkMode()),s(),M("active",n.isDarkMode()),s(8),d("displayFn",n.languageDisplay())("hideClearButton",!0),s(),w("ngModel",n.langCtrl),d("ngModelOptions",Oe(29,et)),s(),G(n.languageOptions()),s(7),m(n.updateChannel()!==""&&((l=n.sysinfo())!=null&&l.ServerVersion)?60:-1),s(),m(n.updatingChannel()?61:-1),s(3),M("active",n.updateChannel()===""),s(),H((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),J(65),s(2),H((N=n.sysinfo())==null?null:N.ServerVersionType),J(67),s(2),M("active",n.updateChannel()==="stable"),s(5),M("active",n.updateChannel()==="beta"),s(5),M("active",n.updateChannel()==="experimental"),s(5),M("active",n.updateChannel()==="canary"),s(14),d("displayFn",n.usageDisplay()),s(2),G(n.usageStatisticsOptions())}},dependencies:[j,Ie,V,B,Pe,W,ve,ye,Ge,be,Xe,K,we,Ae,ke,xe,Le],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{Q as default};
package/chunk-WZYTVL3C.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-CL6W3OLS.js";import"./chunk-KY2RQ76O.js";import"./chunk-PLUKKU2C.js";import"./chunk-CVMGHPI7.js";import"./chunk-Z6DKPRZO.js";import"./chunk-TH3GTINR.js";import"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};