@duplicati/ngclient 0.0.66 → 0.0.68
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.
- package/assets/spk.woff2 +0 -0
- package/{chunk-I3KS7JEN.js → chunk-2WKUFTDI.js} +1 -1
- package/chunk-3ENWJFPQ.js +1 -0
- package/chunk-463RDJNA.js +1 -0
- package/{chunk-JWZZL2QQ.js → chunk-7FL7BKSK.js} +3 -3
- package/chunk-BYR5ESKA.js +1 -0
- package/chunk-CLWDOASW.js +1 -0
- package/chunk-CM2VLNFJ.js +1 -0
- package/chunk-CY7OE7LN.js +1 -0
- package/chunk-DG36NL4T.js +1 -0
- package/chunk-F7726SNN.js +1 -0
- package/{chunk-34N3NDDX.js → chunk-FC7IHW5V.js} +1 -1
- package/chunk-GZNEVVHC.js +1 -0
- package/chunk-IAWBIWRR.js +1 -0
- package/chunk-ICAVTIBO.js +1 -0
- package/chunk-IZGVBNDM.js +1 -0
- package/chunk-JHQY3IJK.js +1 -0
- package/chunk-K6NJFA6G.js +1 -0
- package/chunk-KMQU3ZBK.js +1 -0
- package/chunk-KYCK75MH.js +1 -0
- package/chunk-MCG7PVR2.js +1 -0
- package/chunk-N7TLL5YI.js +1 -0
- package/chunk-OC7KIUXG.js +6 -0
- package/chunk-OIRMDOOF.js +1 -0
- package/chunk-P4OQCLH3.js +1 -0
- package/chunk-UPSWAAP2.js +1 -0
- package/chunk-VRLSXAI3.js +1 -0
- package/chunk-VX3YYMRB.js +1 -0
- package/chunk-XAGJKCVP.js +3 -0
- package/index.html +1 -1
- package/main-M6C3T37C.js +1 -0
- package/package.json +1 -1
- package/chunk-2T3PBPBO.js +0 -3
- package/chunk-47KLTONZ.js +0 -1
- package/chunk-4C3R2PTH.js +0 -1
- package/chunk-4N2WKEQR.js +0 -1
- package/chunk-7R4NNENA.js +0 -1
- package/chunk-EQS5S7RI.js +0 -1
- package/chunk-EXAIEGUA.js +0 -1
- package/chunk-FCXKPHH2.js +0 -1
- package/chunk-FI43YAHP.js +0 -1
- package/chunk-HLEETTI2.js +0 -1
- package/chunk-HWBFYM4U.js +0 -1
- package/chunk-IQDBKRQV.js +0 -1
- package/chunk-KWC4F7OI.js +0 -1
- package/chunk-L7W4ZJTP.js +0 -1
- package/chunk-N4NGBPMJ.js +0 -1
- package/chunk-OIV6DYWR.js +0 -1
- package/chunk-PCWXZ2CU.js +0 -1
- package/chunk-PMCSEYJK.js +0 -6
- package/chunk-QPLDE6B2.js +0 -1
- package/chunk-SANIFXXF.js +0 -1
- package/chunk-ZNI74FWA.js +0 -1
- package/chunk-ZUGIRXAF.js +0 -1
- package/main-JPI7I2SR.js +0 -1
package/main-M6C3T37C.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as ie,c as ae}from"./chunk-M27H5SJL.js";import{a as L}from"./chunk-PD4M6YP7.js";import{a as re}from"./chunk-GZNEVVHC.js";import{a as y}from"./chunk-PIVMNQL6.js";import{a as I}from"./chunk-IZGVBNDM.js";import{a as oe}from"./chunk-BSZZLSIX.js";import{a as b,b as u}from"./chunk-OIRMDOOF.js";import"./chunk-GE3T3AG3.js";import{a as w}from"./chunk-T5I4AY74.js";import{d as te}from"./chunk-O2MZ5CAQ.js";import{b as Z,c as Q,f as Y,g as ee}from"./chunk-J76HBC5J.js";import{a as X}from"./chunk-MSK2MH2K.js";import{c as ne}from"./chunk-ZTSITRHY.js";import{a as $,b as K,d as z,e as _,f as q}from"./chunk-NJSJNACP.js";import{ua as B}from"./chunk-BUARZS4A.js";import{b as se}from"./chunk-O53NVQ2A.js";import{Bc as D,Cc as G,Eb as F,G as v,M as j,Mc as J,O as S,Q as H,U as R,Ya as d,_ as r,d as P,eb as W,ka as U,m as E,q as O,y as N,z as x}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var M=class e{#o=r(y);#s=r(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=W({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&F(0,"router-outlet")},dependencies:[Z],encapsulation:2})};var ce={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var T=class e{#o=r(te);isLoaded=d(!1);webmodules=d(null);preload(o=!1){let t=this.#o.getApiV1Webmodules().pipe(H(n=>this.webmodules.set(n)),v(()=>this.isLoaded.set(!0)));if(o)return t;t.subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var fe=()=>{let e=r(w);return e.token()?!0:e.refreshToken().pipe(O(()=>!0))},ge=()=>{let e=r(b),o=r(I),t=r(U),n=e.relayIsEnabled()?"longpoll":"websocket",p=[t.get(L).preload(!0),t.get(L).preloadFilterGroups(!0),t.get(T).preload(!0)];return e.configLoaded===null?N(p).pipe(O(()=>n)):e.configLoaded?.pipe(S(()=>N(p)))},le=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-FC7IHW5V.js")},{path:"logout",loadComponent:()=>import("./chunk-HARDXXQK.js")},{path:"",canActivate:[fe],children:[{path:"",canActivate:[ge],loadComponent:()=>import("./chunk-CM2VLNFJ.js"),children:[{path:"",loadComponent:()=>import("./chunk-3ENWJFPQ.js")},{path:"add-backup",loadComponent:()=>import("./chunk-KMQU3ZBK.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-F7726SNN.js")},{path:"backup/import",loadComponent:()=>import("./chunk-N7TLL5YI.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-DG36NL4T.js"),loadChildren:()=>import("./chunk-MCG7PVR2.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-DG36NL4T.js"),loadChildren:()=>import("./chunk-MCG7PVR2.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-K6NJFA6G.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-VX3YYMRB.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-XAGJKCVP.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-CLWDOASW.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-ICAVTIBO.js")},{path:"from-config",loadComponent:()=>import("./chunk-KBC4N47O.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-UPSWAAP2.js"),loadChildren:()=>import("./chunk-2WKUFTDI.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-UPSWAAP2.js"),loadChildren:()=>import("./chunk-2WKUFTDI.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-UPSWAAP2.js"),loadChildren:()=>import("./chunk-2WKUFTDI.js")},{path:"settings",loadComponent:()=>import("./chunk-P4OQCLH3.js")},{path:"about",loadComponent:()=>import("./chunk-U2NGUTAO.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-TSQCXGD7.js")},{path:"changelog",loadComponent:()=>import("./chunk-7YT4Y7C3.js")},{path:"libraries",loadComponent:()=>import("./chunk-GRR3LTVK.js")},{path:"system-info",loadComponent:()=>import("./chunk-3CXGKNYN.js")},{path:"logs",loadComponent:()=>import("./chunk-2HC23GJF.js")}]}]}]}]}];var A=null,me=(e,o)=>{let t=r(w),n=r(Q),p=r(y),i=r(u),m=p.getItem("locale"),s=r(ne),c=ie(m),f=e.url==="/api/v1/auth/login",l=e;if(t.token()&&e.url.startsWith(i.baseUrl)){let a=e.headers.set("Authorization",`Bearer ${t.token()}`);m&&m!=="en-US"&&(a=a.set("X-Ui-Language",c)),l=e.clone({headers:a})}return o(l).pipe(x(a=>{if(s.error(a.message),!f&&a.status===401&&!A&&(A=t.refreshToken().pipe(j())),!f&&a.status===401)return A.pipe(S(()=>o(e.clone({headers:e.headers.set("Authorization",`Bearer ${t.token()}`)}))),x(g=>(n.navigate(["/logout"]),E(()=>g))),v(()=>A=null));let h=`Error Code: ${a.status}, Message: ${a.message}`;return E(()=>({error:a,message:h}))}))};var ye="1.0.0",de="portal-proxy-client",be=1,k=class e{#o=1e3;#s=r(u);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=J(()=>{let o=this.#i(),t=this.#l(),n=this.#a();if(!n||!o||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(o){let t=Uint8Array.from(atob(o),p=>p.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(o,t){let n=t?.reconnect??!1;this.#e&&this.wsState()==="authenticated"&&!n||(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(o),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let s={token:o,publicKey:"",clientVersion:ye,protocolVersion:be},c=this.createResponse(i,"authportal",s);this.#t.set("welcome"),this.#e?.send(c)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var m=JSON.parse(i.payload??"");if(m.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let s=this.#p.pop();s&&this.#r[s.messageId]&&this.activateCommand(s)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let s=this.#r[i.messageId];if(s){if(i.errorMessage){s.reject(i.errorMessage);return}else{let c=JSON.parse(i.payload??"");c.body=c?.body==null?null:this.utf8Atob(c.body),s.resolve(c)}delete this.#r[i.messageId],window.clearTimeout(s.timer)}}})}disconnectFromMachineServer(o=null){o&&console.error(o),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(o,t,n){let p={from:de,to:o.from,type:t,messageId:o.messageId,payload:JSON.stringify(n)};return JSON.stringify(p)}sendCommand(o,t,n,p,i,m,s=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(o),new Promise((c,f)=>{let l=crypto.randomUUID(),h={from:de,to:t,type:"command",messageId:l,payload:JSON.stringify({method:n,path:p,body:i,headers:m})},g={resolve:c,reject:f,timer:window.setTimeout(()=>{let C=this.#r[l];C&&(delete this.#r[l],C.reject("Timeout"))},s)};this.#r[l]=g,this.#n()?this.activateCommand(h):this.#p.push(h)})}activateCommand(o){this.#e?.send(JSON.stringify(o))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ce(e){if(typeof e!="string")return null;let t=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...t))}var ue=(e,o)=>{let n=r(b).config(),p=r(u);if(n===null)return o(e);let i=r(k),m=Ce(e.body),s={};e.headers.keys().forEach(a=>{s[a]=e.headers.get(a)??""});let c=e.headers.get("timeout"),f=c!==null?parseInt(c):p.defaultTimeout,l=i.sendCommand(n.accessToken,n.clientId,e.method,e.url,m,s,f);return new P(a=>{l.then(h=>{let g=new $;s!=null&&Object.keys(s).forEach(V=>{g.set(V,s[V])});let C=new K({body:h.body,status:h.code,statusText:"OK",headers:g});a.next(C),a.complete()})})};var he={providers:[D(),Y(le,ee()),z(q(),_([ue,me])),y,{provide:u,useValue:ce},{provide:G,useValue:ae()},re,I,se,B,oe]};X(M,he);
|
package/package.json
CHANGED
package/chunk-2T3PBPBO.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{q as U}from"./chunk-JWZZL2QQ.js";import{a as Ve}from"./chunk-5NMYYKKU.js";import{a as Le}from"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import{b as R}from"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import{a as ve}from"./chunk-ZUGIRXAF.js";import"./chunk-GE3T3AG3.js";import{a as se,b as de,d as ce,e as ue,h as Ce,i as fe,k as Fe,l as ge,m as Ne,o as Te,p as Se,r as ke}from"./chunk-OROSSCXB.js";import{a as pe,b as _e}from"./chunk-O2MZ5CAQ.js";import{a as le,c as re,d as me}from"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import{a as Ee,g as Me,i as xe,k as De,l as Ie,n as Oe,o as Ae,q as $e,r as Pe,w as ye,x as we}from"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BSZZLSIX.js";import{ia as ae}from"./chunk-BUARZS4A.js";import"./chunk-O53NVQ2A.js";import{Ab as k,Bb as E,Cb as l,Db as o,Eb as s,Fb as $,Gb as P,Hb as Z,Ib as I,Mc as oe,Ob as y,Pb as w,Qb as M,Ra as a,Rb as B,Sb as G,Tb as J,Ub as O,Vb as m,Ya as h,Yb as N,Zb as Q,_ as A,_b as d,eb as j,fa as x,ga as D,gc as Y,hc as r,ic as v,jc as g,kb as u,qc as ee,sc as te,tb as p,tc as ne,vb as W,yb as C,yc as ie,zb as S}from"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";var be=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),he=n=>({$implicit:n});function Be(n,i){n&1&&s(0,"spk-progress-bar",16)}function Ge(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Re(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",43),o()),n&2){let e=i.$implicit,t=i.$index;a(),Q("id","filter-",t,""),p("formControl",e)}}function Ue(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function Ke(n,i){if(n&1){let e=I();y(0,12,1),l(1,"button",44,1),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.addNewOption(_))}),o(),w()}if(n&2){let e=i.$implicit;a(),B(e.name),G(0)}}function ze(n,i){n&1&&Z(0)}function Xe(n,i){if(n&1&&u(0,ze,1,0,"ng-container",45),n&2){let e=i.$implicit,t=i.$index;m();let _=Y(58);p("ngTemplateOutlet",_)("ngTemplateOutletContext",te(5,he,ne(2,be,t,e)))}}function qe(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function He(n,i){if(n&1&&(l(0,"app-file-tree",48)(1,"label",54),r(2),u(3,qe,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function je(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function We(n,i){if(n&1&&(l(0,"app-file-tree",49)(1,"label",54),r(2),u(3,je,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit,_=m(2);p("startingPath",_.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ze(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function Je(n,i){n&1&&(l(0,"spk-icon",57),r(1,"link"),o())}function Qe(n,i){n&1&&(l(0,"spk-icon",57),r(1,"textbox"),o())}function Ye(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Ze,3,1,"spk-tooltip",55),o(),s(4,"input",56),u(5,Je,2,0,"spk-icon",57)(6,Qe,2,0,"spk-icon",57),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),C(t.formView.type==="Path"?5:6)}}function et(n,i){if(n&1){let e=I();l(0,"span",61),O("click",function(){x(e);let _=m(2).$implicit,f=m(2);return D(f.oauthStartTokenCreation(_.formViewType))}),r(1,"AuthID"),o()}}function tt(n,i){n&1&&(l(0,"spk-icon",57),r(1,"password"),o())}function nt(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye "),o()}}function it(n,i){if(n&1){let e=I();l(0,"spk-icon",62),O("click",function(){x(e);let _=m(2).$implicit;return D(_.formView.showPassword=!_.formView.showPassword)}),r(1," eye-slash "),o()}}function ot(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),o(),s(3,"input",58),u(4,et,2,0,"span",59)(5,tt,2,0,"spk-icon",57)(6,nt,2,0,"spk-icon",60)(7,it,2,0,"spk-icon",60),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),p("type",t.formView.showPassword?"text":"password"),a(),C(t.oauthField===t.formView.name?4:5),a(2),C(t.formView.showPassword?6:7)}}function at(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function lt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function rt(n,i){if(n&1&&(l(0,"spk-select")(1,"label",54),r(2),u(3,at,3,1,"spk-tooltip",55),o(),s(4,"input",63),k(5,lt,2,2,"spk-option",20,S),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function mt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function pt(n,i){if(n&1&&(l(0,"spk-option",20),r(1),o()),n&2){let e=i.$implicit;p("value",e),a(),v(e)}}function _t(n,i){if(n&1&&(l(0,"div",50)(1,"label",54),r(2),u(3,mt,3,1,"spk-tooltip",55),o(),l(4,"div",64)(5,"spk-form-field"),s(6,"input",65),l(7,"spk-icon",57),r(8,"resize"),o()(),l(9,"spk-select"),s(10,"label")(11,"input",66),k(12,pt,2,2,"spk-option",20,S),o()()()),n&2){let e,t=m().$implicit,_=m(2);p("formGroupName",t.formView.name),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(3),d("id","destination-",t.formGroupName,"-",t.index,""),a(6),E(_.sizeOptions())}}function st(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function dt(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,st,3,1,"spk-tooltip",55),o(),s(4,"input",67),l(5,"spk-icon",57),r(6,"numpad"),o()()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ut(n,i){if(n&1&&(l(0,"spk-toggle",51)(1,"label",54),r(2),u(3,ct,3,1,"spk-tooltip",55),o(),s(4,"input",68),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function Ct(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function ft(n,i){n&1&&(l(0,"spk-option",70),r(1,"None"),o()),n&2&&p("value","None")}function Ft(n,i){if(n&1&&(l(0,"spk-option",20),r(1),s(2,"spk-checkbox",71),o()),n&2){let e=m().$implicit;p("value",e),a(),g(" ",e," ")}}function gt(n,i){if(n&1&&u(0,ft,2,1,"spk-option",70)(1,Ft,3,2,"spk-option",20),n&2){let e=i.$implicit;C(e==="None"?0:1)}}function Nt(n,i){if(n&1&&(l(0,"spk-select",52)(1,"label",54),r(2),u(3,Ct,3,1,"spk-tooltip",55),o(),s(4,"input",69),k(5,gt,2,1,null,null,S),o()),n&2){let e,t=m().$implicit;p("selectMultiple",!0),a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),N("formControlName",t.formView.name),a(),E(t.formView.options)}}function Tt(n,i){if(n&1&&(l(0,"spk-tooltip",55)(1,"spk-icon"),r(2,"question"),o()()),n&2){let e=m(2).$implicit;p("message",e.formView.longDescription)}}function St(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",54),r(2),u(3,Tt,3,1,"spk-tooltip",55),o(),s(4,"input",56),o()),n&2){let e,t=m().$implicit;a(),d("for","destination-",t.formGroupName,"-",t.index,""),a(),g(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),a(),C(t.formView.longDescription?3:-1),a(),d("id","destination-",t.formGroupName,"-",t.index,""),N("formControlName",t.formView.name)}}function kt(n,i){if(n&1){let e=I();l(0,"div",46),$(1,47),u(2,He,5,14,"app-file-tree",48)(3,We,5,10,"app-file-tree",49)(4,Ye,7,10,"spk-form-field")(5,ot,8,11,"spk-form-field")(6,rt,7,9,"spk-select")(7,_t,14,9,"div",50)(8,dt,7,9,"spk-form-field")(9,ut,5,9,"spk-toggle",51)(10,Nt,7,7,"spk-select",52)(11,St,5,9,"spk-form-field"),P(),l(12,"button",53),O("click",function(){let _=x(e).$implicit,f=m(2);return D(f.removeFormView(_.formView,0))}),l(13,"spk-icon"),r(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;a(),p("formGroupName",e.formGroupName),a(),C(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}function Et(n,i){if(n&1){let e=I();l(0,"form",17)(1,"spk-select")(2,"label",18),M(3,3),o(),s(4,"input",19),k(5,Ge,2,2,"spk-option",20,S),o(),l(7,"spk-form-field")(8,"label",21),M(9,4),o(),s(10,"textarea",22),o(),l(11,"spk-form-field")(12,"label",23),M(13,5),o(),s(14,"textarea",24),o()(),l(15,"spk-divider"),M(16,6),o(),l(17,"form",17)(18,"spk-form-field")(19,"label",25),M(20,7),o(),s(21,"input",26),o(),l(22,"spk-form-field")(23,"label",27),M(24,8),o(),s(25,"input",28),o(),l(26,"app-toggle-card",29),$(27,30),M(28,9),P(),$(29,31),k(30,Re,2,3,"spk-form-field",null,S),P(),o()(),l(32,"form",17)(33,"div",32)(34,"div",33)(35,"spk-form-field")(36,"label",34),M(37,10),o(),s(38,"input",35),o(),l(39,"spk-select"),s(40,"input",36),k(41,Ue,2,2,"spk-option",20,S),o()(),l(43,"p"),y(44,11),s(45,"a",37),w(),o()(),l(46,"app-toggle-card",29),$(47,30),y(48,12),l(49,"spk-menu")(50,"button",38),s(51,"spk-icon"),o(),$(52,39),k(53,Ke,3,1,"button",40,S),P(),o(),w(),P(),k(55,Xe,1,7,"ng-container",null,S),o(),u(57,kt,15,2,"ng-template",null,0,ie),l(59,"div",41)(60,"button",42),O("click",function(){x(e);let _=m();return D(_.submit())}),y(61,13),s(62,"spk-icon"),w(),o()()()}if(n&2){let e=m();p("formGroup",e.baseCmdForm),a(5),E(e.commandOptions()),a(12),p("formGroup",e.standardFields),a(9),p("disallowToggle",!0),a(4),E(e.standardFields.controls.filters.controls),a(2),p("formGroup",e.optionsForm),a(9),E(e.sizeOptions()),a(5),p("disallowToggle",!0),a(7),E(e.nonSelectedOptions()),a(2),E(e.selectedOptions()),a(5),W("loader",e.isSubmitting()),a(2),B(e.baseCmdForm.value.command),G(61)}}var T=new Se,Mt=["Bytes","KB","MB","GB","TB","PB"],K=class n{#e=A(U);#t=A(_e);#n=A(re);#i=A(le);#o=A(pe);#a=R(this.#i.params);commandOptions=R(this.#o.getApiV1Commandline());sizeOptions=h(Mt);isSubmitting=h(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=oe(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(e=>{this.standardFields.controls.filters.push(T.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,e=this.optionsForm.value,t=i.targetUrl??"",_=i.arguments?.split(`
|
|
2
|
-
`)??[],f=this.standardFields.value,V=f.filters??[],L=[i.command,t,..._,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...V.filter(c=>c).map(c=>c.startsWith("-")?`--exclude=${c?.slice(1)}`:`--include=${c}`),...this.#e.mapFormsToSettings().map(c=>c.Name.startsWith("--")?`${c.Name}=${c.Value}`:`--${c.Name}=${c.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:L}).subscribe(c=>{c.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",c.ID])})}mapBaseCmdToForm(i){let e=i.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:i.Sources?.join(`
|
|
3
|
-
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){console.log("option",i),this.#e.addOptionToFormGroup(i)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=j({type:n,selectors:[["app-commandline"]],features:[ee([U])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let t;t=$localize`Command`;let _;_=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let V;V=$localize`Advanced options`;let L;L=$localize`Backup ID`;let c;c=$localize`Backup Name`;let z;z=$localize`Filters`;let X;X=$localize`Remote volume size`;let q;q=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#45\uFFFD"}:START_LINK:Read more${"\uFFFD/#45\uFFFD"}:CLOSE_LINK:`;let b;b=$localize` Advanced options ${"\uFFFD#49\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#50\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#51\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#51\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#52\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*54:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#50\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*54:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SPK_MENU:`,b=J(b);let H;return H=$localize`${"\uFFFD#62\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#62\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],i,t,_,f,V,L,c,z,X,q,b,H,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["for","command"],["type","text","id","command","formControlName","command"],[3,"value"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder",e,"formControlName","unit"],["href","#",1,"spk-primary"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"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"],["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"]]},template:function(e,t){e&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",14)(3,"button",15),y(4,2),s(5,"spk-icon"),w(),o()(),u(6,Be,1,0,"spk-progress-bar",16)(7,Et,63,8),o()),e&2&&(a(6),C(t.finishedLoading()?7:6))},dependencies:[ve,Ve,Le,ke,Ce,de,fe,se,ce,ue,Fe,ge,Te,Ne,ae,me,Ie,Oe,Me,Pe,ye,$e,De,we,Ae,xe,Ee],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{K as default};
|
package/chunk-47KLTONZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as a,n as b}from"./chunk-JWZZL2QQ.js";import"./chunk-5NMYYKKU.js";import"./chunk-B6UDSTOM.js";import"./chunk-DNHLTHLR.js";import"./chunk-N3GBABZB.js";import"./chunk-PD4M6YP7.js";import"./chunk-OROSSCXB.js";import"./chunk-O2MZ5CAQ.js";import"./chunk-J76HBC5J.js";import"./chunk-MSK2MH2K.js";import"./chunk-ZTSITRHY.js";import"./chunk-NJSJNACP.js";import"./chunk-BUARZS4A.js";import"./chunk-VGQ6X3AL.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
package/chunk-4C3R2PTH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-PCWXZ2CU.js")},{path:"destination",loadComponent:()=>import("./chunk-HLEETTI2.js")},{path:"source-data",loadComponent:()=>import("./chunk-QPLDE6B2.js")},{path:"schedule",loadComponent:()=>import("./chunk-47KLTONZ.js")},{path:"options",loadComponent:()=>import("./chunk-ZNI74FWA.js")}];export{o as default};
|