@duplicati/ngclient 0.0.142 → 0.0.144
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/dest-icons/aliyun.png +0 -0
- package/assets/dest-icons/aws.png +0 -0
- package/assets/dest-icons/azure.png +0 -0
- package/assets/dest-icons/backblaze.png +0 -0
- package/assets/dest-icons/box-com.png +0 -0
- package/assets/dest-icons/dropbox.png +0 -0
- package/assets/dest-icons/external-harddrive.png +0 -0
- package/assets/dest-icons/file-jump.png +0 -0
- package/assets/dest-icons/file-system.png +0 -0
- package/assets/dest-icons/filen.png +0 -0
- package/assets/dest-icons/ftp.png +0 -0
- package/assets/dest-icons/google-cloud.png +0 -0
- package/assets/dest-icons/google-drive.png +0 -0
- package/assets/dest-icons/idrive-e2.png +0 -0
- package/assets/dest-icons/jottacloud.png +0 -0
- package/assets/dest-icons/mega-nz.png +0 -0
- package/assets/dest-icons/nas.png +0 -0
- package/assets/dest-icons/office-365.png +0 -0
- package/assets/dest-icons/one-drive.png +0 -0
- package/assets/dest-icons/open-stack.png +0 -0
- package/assets/dest-icons/pcloud.png +0 -0
- package/assets/dest-icons/rackspace.png +0 -0
- package/assets/dest-icons/rclone.png +0 -0
- package/assets/dest-icons/sftp.png +0 -0
- package/assets/dest-icons/sharepoint.png +0 -0
- package/assets/dest-icons/sia-cloud.png +0 -0
- package/assets/dest-icons/sia_logo_dark.92db63f5.svg +6 -0
- package/assets/dest-icons/smb.png +0 -0
- package/assets/dest-icons/ssh.png +0 -0
- package/assets/dest-icons/storj.png +0 -0
- package/assets/dest-icons/tahoelafs.png +0 -0
- package/assets/dest-icons/tencent-cloud.png +0 -0
- package/assets/dest-icons/webdav.png +0 -0
- package/{chunk-SWLG7DS7.js → chunk-2CTSAUUN.js} +1 -1
- package/chunk-2NU5Y4V7.js +1 -0
- package/{chunk-JB75BUPF.js → chunk-3UN32GIC.js} +1 -1
- package/{chunk-GFSWKDRL.js → chunk-5PSLWJTF.js} +1 -1
- package/{chunk-OWAZS6AA.js → chunk-66BSPEOQ.js} +1 -1
- package/{chunk-3L3SGYRX.js → chunk-6GC5VKTI.js} +1 -1
- package/{chunk-UBFQDZB5.js → chunk-6WWCFRZ5.js} +1 -1
- package/{chunk-65QCOV7I.js → chunk-6XBSQDXR.js} +1 -1
- package/chunk-74NKDA4G.js +1 -0
- package/{chunk-PEWNHZLZ.js → chunk-7X7K5IXS.js} +1 -1
- package/chunk-AB2L3URR.js +1 -0
- package/{chunk-O2RJYKE4.js → chunk-AO4O42CM.js} +1 -1
- package/{chunk-DUKSWBLV.js → chunk-ARXKB7WH.js} +1 -1
- package/{chunk-GXARFIQG.js → chunk-B7NRTB6T.js} +1 -1
- package/{chunk-PWV3UKIW.js → chunk-BGUKMOKY.js} +1 -1
- package/{chunk-VMNRHHVY.js → chunk-BIETD4DI.js} +1 -1
- package/{chunk-3BODZQHK.js → chunk-BXRW2LGW.js} +1 -1
- package/chunk-C2L3SQU3.js +1 -0
- package/chunk-CDRDYQEV.js +1 -0
- package/{chunk-QIQH4ASK.js → chunk-CFNP4FBG.js} +1 -1
- package/{chunk-ZTHT3VVI.js → chunk-CTEFMU6N.js} +1 -1
- package/chunk-ERKYRXHP.js +8 -0
- package/chunk-ETCRT3EV.js +1 -0
- package/{chunk-WEAHBXR2.js → chunk-FFY3NRCC.js} +1 -1
- package/{chunk-Z2U5JI53.js → chunk-FVE45QKX.js} +1 -1
- package/{chunk-ERIXY2FW.js → chunk-GCZWFRPZ.js} +1 -1
- package/{chunk-LIJJPCCP.js → chunk-GDBU3Z7P.js} +1 -1
- package/{chunk-HBKQWKW7.js → chunk-GHFYBZHQ.js} +1 -1
- package/{chunk-X5ISYEI2.js → chunk-GO22DJ44.js} +1 -1
- package/chunk-HKZX6OB5.js +1 -0
- package/{chunk-2G6UXMJB.js → chunk-IGOZJJE3.js} +1 -1
- package/{chunk-C32RWSXV.js → chunk-J2MHNGNQ.js} +1 -1
- package/{chunk-QM6X5ZEC.js → chunk-J3BBLPAD.js} +1 -1
- package/{chunk-BMYQZKPC.js → chunk-J5PSMGKZ.js} +1 -1
- package/{chunk-QC2NBFUR.js → chunk-JA7OQSO3.js} +1 -1
- package/{chunk-EDW3WHAP.js → chunk-JIHMT35A.js} +1 -1
- package/{chunk-UV3WAAEX.js → chunk-K3ZQ67VT.js} +1 -1
- package/{chunk-QD2VHHZY.js → chunk-KGJAK6OP.js} +1 -1
- package/{chunk-PHIECUWX.js → chunk-KOVQRACM.js} +1 -1
- package/{chunk-LAUG2PZW.js → chunk-LEXA637O.js} +1 -1
- package/chunk-ODVCGM2O.js +1 -0
- package/{chunk-PMZGBC4U.js → chunk-OTMW34HV.js} +1 -1
- package/{chunk-P2DII6CV.js → chunk-OXOOR7I4.js} +1 -1
- package/{chunk-V7UTQSCX.js → chunk-PT7UQJD4.js} +1 -1
- package/chunk-QNOIURSX.js +1 -0
- package/{chunk-BVEALUGN.js → chunk-QY6E755W.js} +1 -1
- package/{chunk-CNUHBPET.js → chunk-SCOG2I64.js} +1 -1
- package/{chunk-PJBVFTZK.js → chunk-T4TFHAZT.js} +1 -1
- package/{chunk-OBJPWKDY.js → chunk-TJOWPBPB.js} +1 -1
- package/{chunk-X6QMUQPK.js → chunk-UGLRUY6T.js} +1 -1
- package/{chunk-UCZV35IF.js → chunk-UT6XGEMV.js} +1 -1
- package/chunk-UUODEERG.js +1 -0
- package/{chunk-OICFVPYU.js → chunk-UW4GBMEP.js} +1 -1
- package/{chunk-OAW2NFZX.js → chunk-WHKW5IYF.js} +1 -1
- package/{chunk-VC6TE2B6.js → chunk-WWFNG47J.js} +1 -1
- package/{chunk-ZGU7OKMF.js → chunk-X3IA226Q.js} +1 -1
- package/{chunk-TAPLSJ2K.js → chunk-XHUUCB2W.js} +1 -1
- package/{chunk-5SPGCYAQ.js → chunk-XNVRJH42.js} +1 -1
- package/{chunk-YIV6PKM7.js → chunk-XQ4CAUD4.js} +1 -1
- package/{chunk-47WDRGVN.js → chunk-ZGAC2JKG.js} +1 -1
- package/chunk-ZVIRETHC.js +1 -0
- package/index.html +1 -1
- package/locale/messages.cs.json +1 -0
- package/locale/messages.da.json +3 -20
- package/locale/messages.de.json +126 -104
- package/locale/messages.en_GB.json +1 -0
- package/locale/messages.es.json +1 -0
- package/locale/messages.fi.json +1 -0
- package/locale/messages.fr.json +1 -0
- package/locale/messages.hu.json +1 -0
- package/locale/messages.it.json +144 -112
- package/locale/messages.ja_JP.json +1 -0
- package/locale/messages.nl_NL.json +7 -106
- package/locale/messages.pl.json +29 -0
- package/locale/messages.pt.json +1 -0
- package/locale/messages.pt_BR.json +1 -0
- package/locale/messages.ru.json +1 -0
- package/locale/messages.sr_RS.json +1 -0
- package/locale/messages.sv_SE.json +1 -0
- package/locale/messages.zh-Hans.json +3 -97
- package/locale/messages.zh_CN.json +1 -88
- package/locale/messages.zh_TW.json +2 -0
- package/main-SUSCPR3H.js +1 -0
- package/package.json +1 -1
- package/chunk-4URGDROZ.js +0 -1
- package/chunk-5DO6JZVF.js +0 -1
- package/chunk-5OIM6PRU.js +0 -1
- package/chunk-5SH42EY6.js +0 -1
- package/chunk-7765XHNC.js +0 -8
- package/chunk-ATYS35R4.js +0 -1
- package/chunk-E6UP7FUD.js +0 -1
- package/chunk-JA5QSJM3.js +0 -1
- package/chunk-JF4IGUR6.js +0 -1
- package/chunk-LT2T7TXS.js +0 -1
- package/chunk-R3OYJX7V.js +0 -1
- package/chunk-YCTTQQ6B.js +0 -1
- package/main-TVE62AWE.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as Ie,b as De}from"./chunk-FPPZ4BUR.js";import{$ as ve,B as ne,C as Re,H as Te,P as $,S as N,V as v,Y as I,Z as R,_ as T,ba as Be,ca as Ve,f as ie,ja as Pe,ka as ke,kb as Oe,n as z,o as oe,qa as Ee,r as O,x as be,z as ge}from"./chunk-QDFCX6XE.js";import{a as E,b as Ae}from"./chunk-EUDKD2JW.js";var M=class{},C=class{},g=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
|
|
2
|
-
`).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),n=t.slice(r+1).trim();this.addHeaderEntry(o,n)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new s;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=(e.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let n=e.value;if(!n)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=this.headers.get(t);if(!i)return;i=i.filter(u=>n.indexOf(u)===-1),i.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}break}}addHeaderEntry(e,t){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(e,t){let r=(Array.isArray(t)?t:[t]).map(n=>n.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var Q=class{encodeKey(e){return we(e)}encodeValue(e){return we(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function He(s,e){let t=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{let n=o.indexOf("="),[i,u]=n==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,n)),e.decodeValue(o.slice(n+1))],d=t.get(i)||[];d.push(u),t.set(i,d)}),t}var Ye=/%(\d[a-f0-9])/gi,Qe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function we(s){return encodeURIComponent(s).replace(Ye,(e,t)=>Qe[t]??e)}function H(s){return`${s}`}var P=class s{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new Q,e.fromString){if(e.fromObject)throw new N(2805,!1);this.map=He(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let r=e.fromObject[t],o=Array.isArray(r)?r.map(H):[H(r)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(n=>{t.push({param:r,value:n,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new s({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(H(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(H(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Z=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ze(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Se(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function Ne(s){return typeof Blob<"u"&&s instanceof Blob}function xe(s){return typeof FormData<"u"&&s instanceof FormData}function et(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var J="Content-Type",ee="Accept",ce="X-Request-URL",Me="text/plain",Ce="application/json",Fe=`${Ce}, ${Me}, */*`,G=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(e,t,r,o){this.url=t,this.method=e.toUpperCase();let n;if(Ze(this.method)||o?(this.body=r!==void 0?r:null,n=o):n=r,n){if(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,this.keepalive=!!n.keepalive,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params),n.priority&&(this.priority=n.priority),n.cache&&(this.cache=n.cache),n.credentials&&(this.credentials=n.credentials),typeof n.timeout=="number"){if(n.timeout<1||!Number.isInteger(n.timeout))throw new Error("");this.timeout=n.timeout}n.mode&&(this.mode=n.mode),n.redirect&&(this.redirect=n.redirect),this.transferCache=n.transferCache}if(this.headers??=new g,this.context??=new Z,!this.params)this.params=new P,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let u=t.indexOf("?"),d=u===-1?"?":u<t.length-1?"&":"";this.urlWithParams=t+d+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Se(this.body)||Ne(this.body)||xe(this.body)||et(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||xe(this.body)?null:Ne(this.body)?this.body.type||null:Se(this.body)?null:typeof this.body=="string"?Me:this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ce:null}clone(e={}){let t=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,n=e.keepalive??this.keepalive,i=e.priority||this.priority,u=e.cache||this.cache,d=e.mode||this.mode,y=e.redirect||this.redirect,f=e.credentials||this.credentials,b=e.transferCache??this.transferCache,x=e.timeout??this.timeout,m=e.body!==void 0?e.body:this.body,D=e.withCredentials??this.withCredentials,w=e.reportProgress??this.reportProgress,c=e.headers||this.headers,l=e.params||this.params,A=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((V,h)=>V.set(h,e.setHeaders[h]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((V,h)=>V.set(h,e.setParams[h]),l)),new s(t,r,m,{params:l,headers:c,context:A,reportProgress:w,responseType:o,withCredentials:D,transferCache:b,keepalive:n,cache:u,priority:i,timeout:x,mode:d,redirect:y,credentials:f})}},k=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(k||{}),F=class{headers;status;statusText;url;ok;type;constructor(e,t=200,r="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},X=class s extends F{constructor(e={}){super(e)}type=k.ResponseHeader;clone(e={}){return new s({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},L=class s extends F{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=k.Response;clone(e={}){return new s({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},B=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Le=200,tt=204;function ae(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache,keepalive:s.keepalive,priority:s.priority,cache:s.cache,mode:s.mode,redirect:s.redirect}}var _=(()=>{class s{handler;constructor(t){this.handler=t}request(t,r,o={}){let n;if(t instanceof G)n=t;else{let d;o.headers instanceof g?d=o.headers:d=new g(o.headers);let y;o.params&&(o.params instanceof P?y=o.params:y=new P({fromObject:o.params})),n=new G(t,r,o.body!==void 0?o.body:null,{headers:d,context:o.context,params:y,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials})}let i=z(n).pipe(Re(d=>this.handler.handle(d)));if(t instanceof G||o.observe==="events")return i;let u=i.pipe(ge(d=>d instanceof L));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(O(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new N(2806,!1);return d.body}));case"blob":return u.pipe(O(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new N(2807,!1);return d.body}));case"text":return u.pipe(O(d=>{if(d.body!==null&&typeof d.body!="string")throw new N(2808,!1);return d.body}));case"json":default:return u.pipe(O(d=>d.body))}case"response":return u;default:throw new N(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new P().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,ae(o,r))}post(t,r,o={}){return this.request("POST",t,ae(o,r))}put(t,r,o={}){return this.request("PUT",t,ae(o,r))}static \u0275fac=function(r){return new(r||s)(R(M))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),st=/^\)\]\}',?\n/;function Ge(s){if(s.url)return s.url;let e=ce.toLocaleLowerCase();return s.headers.get(e)}var _e=new I(""),Y=(()=>{class s{fetchImpl=T(pe,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=T(Oe);destroyRef=T(ke);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(t){return new ie(r=>{let o=new AbortController;this.doRequest(t,o.signal,r).then(de,i=>r.error(new B({error:i})));let n;return t.timeout&&(n=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{n!==void 0&&clearTimeout(n),o.abort()}})}async doRequest(t,r,o){let n=this.createRequestInit(t),i;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,E({signal:r},n)));rt(m),o.next({type:k.Sent}),i=await m}catch(m){o.error(new B({error:m,status:m.status??0,statusText:m.statusText,url:t.urlWithParams,headers:m.headers}));return}let u=new g(i.headers),d=i.statusText,y=Ge(i)??t.urlWithParams,f=i.status,b=null;if(t.reportProgress&&o.next(new X({headers:u,status:f,statusText:d,url:y})),i.body){let m=i.headers.get("content-length"),D=[],w=i.body.getReader(),c=0,l,A,V=typeof Zone<"u"&&Zone.current,h=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyed){await w.cancel(),h=!0;break}let{done:S,value:q}=await w.read();if(S)break;if(D.push(q),c+=q.length,t.reportProgress){A=t.responseType==="text"?(A??"")+(l??=new TextDecoder).decode(q,{stream:!0}):void 0;let me=()=>o.next({type:k.DownloadProgress,total:m?+m:void 0,loaded:c,partialText:A});V?V.run(me):me()}}}),h){o.complete();return}let U=this.concatChunks(D,c);try{let S=i.headers.get(J)??"";b=this.parseBody(t,U,S,f)}catch(S){o.error(new B({error:S,headers:new g(i.headers),status:i.status,statusText:i.statusText,url:Ge(i)??t.urlWithParams}));return}}f===0&&(f=b?Le:0),f>=200&&f<300?(o.next(new L({body:b,headers:u,status:f,statusText:d,url:y})),o.complete()):o.error(new B({error:b,headers:u,status:f,statusText:d,url:y}))}parseBody(t,r,o,n){switch(t.responseType){case"json":let i=new TextDecoder().decode(r).replace(st,"");if(i==="")return null;try{return JSON.parse(i)}catch(u){if(n<200||n>=300)return i;throw u}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o;if(o=t.credentials,t.withCredentials&&(o="include"),t.headers.forEach((n,i)=>r[n]=i.join(",")),t.headers.has(ee)||(r[ee]=Fe),!t.headers.has(J)){let n=t.detectContentTypeHeader();n!==null&&(r[J]=n)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect}}concatChunks(t,r){let o=new Uint8Array(r),n=0;for(let i of t)o.set(i,n),n+=i.length;return o}static \u0275fac=function(r){return new(r||s)};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),pe=class{};function de(){}function rt(s){s.then(de,de)}function it(s,e){return e(s)}function ot(s,e,t){return(r,o)=>Ve(t,()=>e(r,n=>s(n,o)))}var le=new I(""),je=new I(""),Ue=new I("",{providedIn:"root",factory:()=>!0});var te=(()=>{class s extends M{backend;injector;chain=null;pendingTasks=T(Ee);contributeToStability=T(Ue);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(le),...this.injector.get(je,[])]));this.chain=r.reduceRight((o,n)=>ot(o,n,this.injector),it)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Te(r))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||s)(R(C),R(Be))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})();var nt=/^\)\]\}',?\n/,at=RegExp(`^${ce}:`,"m");function pt(s){return"responseURL"in s&&s.responseURL?s.responseURL:at.test(s.getAllResponseHeaders())?s.getResponseHeader(ce):null}var ue=(()=>{class s{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new N(-2800,!1);let r=this.xhrFactory;return z(null).pipe($(()=>new ie(n=>{let i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((c,l)=>i.setRequestHeader(c,l.join(","))),t.headers.has(ee)||i.setRequestHeader(ee,Fe),!t.headers.has(J)){let c=t.detectContentTypeHeader();c!==null&&i.setRequestHeader(J,c)}if(t.timeout&&(i.timeout=t.timeout),t.responseType){let c=t.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let u=t.serializeBody(),d=null,y=()=>{if(d!==null)return d;let c=i.statusText||"OK",l=new g(i.getAllResponseHeaders()),A=pt(i)||t.url;return d=new X({headers:l,status:i.status,statusText:c,url:A}),d},f=()=>{let{headers:c,status:l,statusText:A,url:V}=y(),h=null;l!==tt&&(h=typeof i.response>"u"?i.responseText:i.response),l===0&&(l=h?Le:0);let U=l>=200&&l<300;if(t.responseType==="json"&&typeof h=="string"){let S=h;h=h.replace(nt,"");try{h=h!==""?JSON.parse(h):null}catch(q){h=S,U&&(U=!1,h={error:q,text:h})}}U?(n.next(new L({body:h,headers:c,status:l,statusText:A,url:V||void 0})),n.complete()):n.error(new B({error:h,headers:c,status:l,statusText:A,url:V||void 0}))},b=c=>{let{url:l}=y(),A=new B({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:l||void 0});n.error(A)},x=b;t.timeout&&(x=c=>{let{url:l}=y(),A=new B({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:l||void 0});n.error(A)});let m=!1,D=c=>{m||(n.next(y()),m=!0);let l={type:k.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),t.responseType==="text"&&i.responseText&&(l.partialText=i.responseText),n.next(l)},w=c=>{let l={type:k.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.next(l)};return i.addEventListener("load",f),i.addEventListener("error",b),i.addEventListener("timeout",x),i.addEventListener("abort",b),t.reportProgress&&(i.addEventListener("progress",D),u!==null&&i.upload&&i.upload.addEventListener("progress",w)),i.send(u),n.next({type:k.Sent}),()=>{i.removeEventListener("error",b),i.removeEventListener("abort",b),i.removeEventListener("load",f),i.removeEventListener("timeout",x),t.reportProgress&&(i.removeEventListener("progress",D),u!==null&&i.upload&&i.upload.removeEventListener("progress",w)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||s)(R(De))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),qe=new I(""),dt="XSRF-TOKEN",ut=new I("",{providedIn:"root",factory:()=>dt}),ct="X-XSRF-TOKEN",lt=new I("",{providedIn:"root",factory:()=>ct}),K=class{},ht=(()=>{class s{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r){this.doc=t,this.cookieName=r}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ie(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||s)(R(Pe),R(ut))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})();function yt(s,e){let t=s.url.toLowerCase();if(!T(qe)||s.method==="GET"||s.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(s);let r=T(K).getToken(),o=T(lt);return r!=null&&!s.headers.has(o)&&(s=s.clone({headers:s.headers.set(o,r)})),e(s)}var se=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(se||{});function ze(s,e){return{\u0275kind:s,\u0275providers:e}}function ft(...s){let e=[_,ue,te,{provide:M,useExisting:te},{provide:C,useFactory:()=>T(_e,{optional:!0})??T(ue)},{provide:le,useValue:yt,multi:!0},{provide:qe,useValue:!0},{provide:K,useClass:ht}];for(let t of s)e.push(...t.\u0275providers);return ve(e)}function mt(s){return ze(se.Interceptors,s.map(e=>({provide:le,useValue:e,multi:!0})))}function At(){return ze(se.Fetch,[Y,{provide:_e,useExisting:Y},{provide:C,useExisting:Y}])}var he=class{_fns;constructor(){this._fns=[]}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},a={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new he}};var j=class extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var W=s=>typeof s=="string",ye=s=>W(s)&&s!=="",fe=s=>s instanceof Blob,$e=s=>s instanceof FormData,gt=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},Rt=s=>{let e=[],t=(o,n)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(n))}`)},r=(o,n)=>{n!=null&&(n instanceof Date?t(o,n.toISOString()):Array.isArray(n)?n.forEach(i=>r(o,i)):typeof n=="object"?Object.entries(n).forEach(([i,u])=>r(`${o}[${i}]`,u)):t(o,n))};return Object.entries(s).forEach(([o,n])=>r(o,n)),e.length?`?${e.join("&")}`:""},Tt=(s,e)=>{let t=s.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(n,i)=>e.path?.hasOwnProperty(i)?t(String(e.path[i])):n),o=s.BASE+r;return e.query?o+Rt(e.query):o},vt=s=>{if(s.formData){let e=new FormData,t=(r,o)=>{W(o)||fe(o)?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(s.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(n=>t(r,n)):t(r,o)}),e}},re=async(s,e)=>typeof e=="function"?e(s):e,Bt=(s,e)=>be({token:re(e,s.TOKEN),username:re(e,s.USERNAME),password:re(e,s.PASSWORD),additionalHeaders:re(e,s.HEADERS)}).pipe(O(({token:t,username:r,password:o,additionalHeaders:n})=>{let i=Object.entries(E(E({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[d,y])=>Ae(E({},u),{[d]:String(y)}),{});if(ye(t)&&(i.Authorization=`Bearer ${t}`),ye(r)&&ye(o)){let u=gt(`${r}:${o}`);i.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:fe(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":W(e.body)?i["Content-Type"]="text/plain":$e(e.body)||(i["Content-Type"]="application/json")),new g(i)})),Vt=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):W(s.body)||fe(s.body)||$e(s.body)?s.body:JSON.stringify(s.body)},Pt=(s,e,t,r,o,n,i)=>t.request(e.method,r,{headers:i,body:o??n,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),kt=(s,e)=>{if(e){let t=s.headers.get(e);if(W(t))return t}},Et=s=>{if(s.status!==204&&s.body!==null)return s.body},Ot=(s,e)=>{let r=E({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(r)throw new j(s,e,r);if(!e.ok){let o=e.status??"unknown",n=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new j(s,e,`Generic Error: status: ${o}; status text: ${n}; body: ${i}`)}},p=(s,e,t)=>{let r=Tt(s,t),o=vt(t),n=Vt(t);return Bt(s,t).pipe($(i=>Pt(s,t,e,r,n,o,i)),$(async i=>{for(let f of s.interceptors.response._fns)i=await f(i);let u=Et(i),d=kt(i,t.responseHeader),y=u;return t.responseTransformer&&i.ok&&(y=await t.responseTransformer(u)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:d??y}}),ne(i=>i.status?z({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):oe(()=>i)),O(i=>(Ot(t,i),i.body)),ne(i=>oe(()=>i)))};var Je=class s{constructor(e){this.http=e}getApiV1Commandline(){return p(a,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})},Xe=class s{constructor(e){this.http=e}postApiV1Commandline(e){return p(a,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return p(a,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return p(a,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return p(a,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return p(a,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return p(a,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return p(a,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return p(a,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return p(a,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return p(a,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return p(a,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return p(a,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return p(a,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return p(a,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return p(a,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return p(a,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return p(a,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return p(a,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return p(a,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return p(a,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return p(a,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return p(a,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return p(a,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return p(a,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return p(a,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return p(a,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return p(a,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return p(a,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return p(a,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return p(a,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return p(a,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return p(a,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return p(a,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return p(a,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return p(a,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return p(a,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return p(a,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return p(a,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return p(a,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdRun(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdReportRemoteSize(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return p(a,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return p(a,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return p(a,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})},Ke=class s{constructor(e){this.http=e}getApiV1Webmodules(){return p(a,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})};export{g as a,L as b,_ as c,ft as d,mt as e,At as f,Je as g,Xe as h,Ke as i};
|
|
2
|
+
`).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),n=t.slice(r+1).trim();this.addHeaderEntry(o,n)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new s;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=(e.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let n=e.value;if(!n)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=this.headers.get(t);if(!i)return;i=i.filter(u=>n.indexOf(u)===-1),i.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}break}}addHeaderEntry(e,t){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(e,t){let r=(Array.isArray(t)?t:[t]).map(n=>n.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var Q=class{encodeKey(e){return we(e)}encodeValue(e){return we(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function He(s,e){let t=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{let n=o.indexOf("="),[i,u]=n==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,n)),e.decodeValue(o.slice(n+1))],d=t.get(i)||[];d.push(u),t.set(i,d)}),t}var Ye=/%(\d[a-f0-9])/gi,Qe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function we(s){return encodeURIComponent(s).replace(Ye,(e,t)=>Qe[t]??e)}function H(s){return`${s}`}var P=class s{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new Q,e.fromString){if(e.fromObject)throw new N(2805,!1);this.map=He(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let r=e.fromObject[t],o=Array.isArray(r)?r.map(H):[H(r)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(n=>{t.push({param:r,value:n,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new s({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(H(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(H(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Z=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ze(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Se(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function Ne(s){return typeof Blob<"u"&&s instanceof Blob}function xe(s){return typeof FormData<"u"&&s instanceof FormData}function et(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var J="Content-Type",ee="Accept",ce="X-Request-URL",Me="text/plain",Ce="application/json",Fe=`${Ce}, ${Me}, */*`,G=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(e,t,r,o){this.url=t,this.method=e.toUpperCase();let n;if(Ze(this.method)||o?(this.body=r!==void 0?r:null,n=o):n=r,n){if(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,this.keepalive=!!n.keepalive,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params),n.priority&&(this.priority=n.priority),n.cache&&(this.cache=n.cache),n.credentials&&(this.credentials=n.credentials),typeof n.timeout=="number"){if(n.timeout<1||!Number.isInteger(n.timeout))throw new Error("");this.timeout=n.timeout}n.mode&&(this.mode=n.mode),n.redirect&&(this.redirect=n.redirect),this.transferCache=n.transferCache}if(this.headers??=new g,this.context??=new Z,!this.params)this.params=new P,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let u=t.indexOf("?"),d=u===-1?"?":u<t.length-1?"&":"";this.urlWithParams=t+d+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Se(this.body)||Ne(this.body)||xe(this.body)||et(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||xe(this.body)?null:Ne(this.body)?this.body.type||null:Se(this.body)?null:typeof this.body=="string"?Me:this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ce:null}clone(e={}){let t=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,n=e.keepalive??this.keepalive,i=e.priority||this.priority,u=e.cache||this.cache,d=e.mode||this.mode,y=e.redirect||this.redirect,f=e.credentials||this.credentials,b=e.transferCache??this.transferCache,x=e.timeout??this.timeout,m=e.body!==void 0?e.body:this.body,D=e.withCredentials??this.withCredentials,w=e.reportProgress??this.reportProgress,c=e.headers||this.headers,l=e.params||this.params,A=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((V,h)=>V.set(h,e.setHeaders[h]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((V,h)=>V.set(h,e.setParams[h]),l)),new s(t,r,m,{params:l,headers:c,context:A,reportProgress:w,responseType:o,withCredentials:D,transferCache:b,keepalive:n,cache:u,priority:i,timeout:x,mode:d,redirect:y,credentials:f})}},k=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(k||{}),F=class{headers;status;statusText;url;ok;type;constructor(e,t=200,r="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},X=class s extends F{constructor(e={}){super(e)}type=k.ResponseHeader;clone(e={}){return new s({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},L=class s extends F{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=k.Response;clone(e={}){return new s({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},B=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Le=200,tt=204;function ae(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache,keepalive:s.keepalive,priority:s.priority,cache:s.cache,mode:s.mode,redirect:s.redirect}}var _=(()=>{class s{handler;constructor(t){this.handler=t}request(t,r,o={}){let n;if(t instanceof G)n=t;else{let d;o.headers instanceof g?d=o.headers:d=new g(o.headers);let y;o.params&&(o.params instanceof P?y=o.params:y=new P({fromObject:o.params})),n=new G(t,r,o.body!==void 0?o.body:null,{headers:d,context:o.context,params:y,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials})}let i=z(n).pipe(Re(d=>this.handler.handle(d)));if(t instanceof G||o.observe==="events")return i;let u=i.pipe(ge(d=>d instanceof L));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(O(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new N(2806,!1);return d.body}));case"blob":return u.pipe(O(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new N(2807,!1);return d.body}));case"text":return u.pipe(O(d=>{if(d.body!==null&&typeof d.body!="string")throw new N(2808,!1);return d.body}));case"json":default:return u.pipe(O(d=>d.body))}case"response":return u;default:throw new N(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new P().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,ae(o,r))}post(t,r,o={}){return this.request("POST",t,ae(o,r))}put(t,r,o={}){return this.request("PUT",t,ae(o,r))}static \u0275fac=function(r){return new(r||s)(R(M))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),st=/^\)\]\}',?\n/;function Ge(s){if(s.url)return s.url;let e=ce.toLocaleLowerCase();return s.headers.get(e)}var _e=new I(""),Y=(()=>{class s{fetchImpl=T(pe,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=T(Oe);destroyRef=T(ke);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(t){return new ie(r=>{let o=new AbortController;this.doRequest(t,o.signal,r).then(de,i=>r.error(new B({error:i})));let n;return t.timeout&&(n=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{n!==void 0&&clearTimeout(n),o.abort()}})}async doRequest(t,r,o){let n=this.createRequestInit(t),i;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,E({signal:r},n)));rt(m),o.next({type:k.Sent}),i=await m}catch(m){o.error(new B({error:m,status:m.status??0,statusText:m.statusText,url:t.urlWithParams,headers:m.headers}));return}let u=new g(i.headers),d=i.statusText,y=Ge(i)??t.urlWithParams,f=i.status,b=null;if(t.reportProgress&&o.next(new X({headers:u,status:f,statusText:d,url:y})),i.body){let m=i.headers.get("content-length"),D=[],w=i.body.getReader(),c=0,l,A,V=typeof Zone<"u"&&Zone.current,h=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyed){await w.cancel(),h=!0;break}let{done:S,value:q}=await w.read();if(S)break;if(D.push(q),c+=q.length,t.reportProgress){A=t.responseType==="text"?(A??"")+(l??=new TextDecoder).decode(q,{stream:!0}):void 0;let me=()=>o.next({type:k.DownloadProgress,total:m?+m:void 0,loaded:c,partialText:A});V?V.run(me):me()}}}),h){o.complete();return}let U=this.concatChunks(D,c);try{let S=i.headers.get(J)??"";b=this.parseBody(t,U,S,f)}catch(S){o.error(new B({error:S,headers:new g(i.headers),status:i.status,statusText:i.statusText,url:Ge(i)??t.urlWithParams}));return}}f===0&&(f=b?Le:0),f>=200&&f<300?(o.next(new L({body:b,headers:u,status:f,statusText:d,url:y})),o.complete()):o.error(new B({error:b,headers:u,status:f,statusText:d,url:y}))}parseBody(t,r,o,n){switch(t.responseType){case"json":let i=new TextDecoder().decode(r).replace(st,"");if(i==="")return null;try{return JSON.parse(i)}catch(u){if(n<200||n>=300)return i;throw u}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o;if(o=t.credentials,t.withCredentials&&(o="include"),t.headers.forEach((n,i)=>r[n]=i.join(",")),t.headers.has(ee)||(r[ee]=Fe),!t.headers.has(J)){let n=t.detectContentTypeHeader();n!==null&&(r[J]=n)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect}}concatChunks(t,r){let o=new Uint8Array(r),n=0;for(let i of t)o.set(i,n),n+=i.length;return o}static \u0275fac=function(r){return new(r||s)};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),pe=class{};function de(){}function rt(s){s.then(de,de)}function it(s,e){return e(s)}function ot(s,e,t){return(r,o)=>Ve(t,()=>e(r,n=>s(n,o)))}var le=new I(""),je=new I(""),Ue=new I("",{providedIn:"root",factory:()=>!0});var te=(()=>{class s extends M{backend;injector;chain=null;pendingTasks=T(Ee);contributeToStability=T(Ue);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(le),...this.injector.get(je,[])]));this.chain=r.reduceRight((o,n)=>ot(o,n,this.injector),it)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Te(r))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||s)(R(C),R(Be))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})();var nt=/^\)\]\}',?\n/,at=RegExp(`^${ce}:`,"m");function pt(s){return"responseURL"in s&&s.responseURL?s.responseURL:at.test(s.getAllResponseHeaders())?s.getResponseHeader(ce):null}var ue=(()=>{class s{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new N(-2800,!1);let r=this.xhrFactory;return z(null).pipe($(()=>new ie(n=>{let i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((c,l)=>i.setRequestHeader(c,l.join(","))),t.headers.has(ee)||i.setRequestHeader(ee,Fe),!t.headers.has(J)){let c=t.detectContentTypeHeader();c!==null&&i.setRequestHeader(J,c)}if(t.timeout&&(i.timeout=t.timeout),t.responseType){let c=t.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let u=t.serializeBody(),d=null,y=()=>{if(d!==null)return d;let c=i.statusText||"OK",l=new g(i.getAllResponseHeaders()),A=pt(i)||t.url;return d=new X({headers:l,status:i.status,statusText:c,url:A}),d},f=()=>{let{headers:c,status:l,statusText:A,url:V}=y(),h=null;l!==tt&&(h=typeof i.response>"u"?i.responseText:i.response),l===0&&(l=h?Le:0);let U=l>=200&&l<300;if(t.responseType==="json"&&typeof h=="string"){let S=h;h=h.replace(nt,"");try{h=h!==""?JSON.parse(h):null}catch(q){h=S,U&&(U=!1,h={error:q,text:h})}}U?(n.next(new L({body:h,headers:c,status:l,statusText:A,url:V||void 0})),n.complete()):n.error(new B({error:h,headers:c,status:l,statusText:A,url:V||void 0}))},b=c=>{let{url:l}=y(),A=new B({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:l||void 0});n.error(A)},x=b;t.timeout&&(x=c=>{let{url:l}=y(),A=new B({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:l||void 0});n.error(A)});let m=!1,D=c=>{m||(n.next(y()),m=!0);let l={type:k.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),t.responseType==="text"&&i.responseText&&(l.partialText=i.responseText),n.next(l)},w=c=>{let l={type:k.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.next(l)};return i.addEventListener("load",f),i.addEventListener("error",b),i.addEventListener("timeout",x),i.addEventListener("abort",b),t.reportProgress&&(i.addEventListener("progress",D),u!==null&&i.upload&&i.upload.addEventListener("progress",w)),i.send(u),n.next({type:k.Sent}),()=>{i.removeEventListener("error",b),i.removeEventListener("abort",b),i.removeEventListener("load",f),i.removeEventListener("timeout",x),t.reportProgress&&(i.removeEventListener("progress",D),u!==null&&i.upload&&i.upload.removeEventListener("progress",w)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||s)(R(De))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})(),qe=new I(""),dt="XSRF-TOKEN",ut=new I("",{providedIn:"root",factory:()=>dt}),ct="X-XSRF-TOKEN",lt=new I("",{providedIn:"root",factory:()=>ct}),K=class{},ht=(()=>{class s{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r){this.doc=t,this.cookieName=r}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ie(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||s)(R(Pe),R(ut))};static \u0275prov=v({token:s,factory:s.\u0275fac})}return s})();function yt(s,e){let t=s.url.toLowerCase();if(!T(qe)||s.method==="GET"||s.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(s);let r=T(K).getToken(),o=T(lt);return r!=null&&!s.headers.has(o)&&(s=s.clone({headers:s.headers.set(o,r)})),e(s)}var se=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(se||{});function ze(s,e){return{\u0275kind:s,\u0275providers:e}}function ft(...s){let e=[_,ue,te,{provide:M,useExisting:te},{provide:C,useFactory:()=>T(_e,{optional:!0})??T(ue)},{provide:le,useValue:yt,multi:!0},{provide:qe,useValue:!0},{provide:K,useClass:ht}];for(let t of s)e.push(...t.\u0275providers);return ve(e)}function mt(s){return ze(se.Interceptors,s.map(e=>({provide:le,useValue:e,multi:!0})))}function At(){return ze(se.Fetch,[Y,{provide:_e,useExisting:Y},{provide:C,useExisting:Y}])}var he=class{_fns;constructor(){this._fns=[]}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},a={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new he}};var j=class extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var W=s=>typeof s=="string",ye=s=>W(s)&&s!=="",fe=s=>s instanceof Blob,$e=s=>s instanceof FormData,gt=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},Rt=s=>{let e=[],t=(o,n)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(n))}`)},r=(o,n)=>{n!=null&&(n instanceof Date?t(o,n.toISOString()):Array.isArray(n)?n.forEach(i=>r(o,i)):typeof n=="object"?Object.entries(n).forEach(([i,u])=>r(`${o}[${i}]`,u)):t(o,n))};return Object.entries(s).forEach(([o,n])=>r(o,n)),e.length?`?${e.join("&")}`:""},Tt=(s,e)=>{let t=s.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(n,i)=>e.path?.hasOwnProperty(i)?t(String(e.path[i])):n),o=s.BASE+r;return e.query?o+Rt(e.query):o},vt=s=>{if(s.formData){let e=new FormData,t=(r,o)=>{W(o)||fe(o)?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(s.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(n=>t(r,n)):t(r,o)}),e}},re=async(s,e)=>typeof e=="function"?e(s):e,Bt=(s,e)=>be({token:re(e,s.TOKEN),username:re(e,s.USERNAME),password:re(e,s.PASSWORD),additionalHeaders:re(e,s.HEADERS)}).pipe(O(({token:t,username:r,password:o,additionalHeaders:n})=>{let i=Object.entries(E(E({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[d,y])=>Ae(E({},u),{[d]:String(y)}),{});if(ye(t)&&(i.Authorization=`Bearer ${t}`),ye(r)&&ye(o)){let u=gt(`${r}:${o}`);i.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:fe(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":W(e.body)?i["Content-Type"]="text/plain":$e(e.body)||(i["Content-Type"]="application/json")),new g(i)})),Vt=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):W(s.body)||fe(s.body)||$e(s.body)?s.body:JSON.stringify(s.body)},Pt=(s,e,t,r,o,n,i)=>t.request(e.method,r,{headers:i,body:o??n,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),kt=(s,e)=>{if(e){let t=s.headers.get(e);if(W(t))return t}},Et=s=>{if(s.status!==204&&s.body!==null)return s.body},Ot=(s,e)=>{let r=E({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(r)throw new j(s,e,r);if(!e.ok){let o=e.status??"unknown",n=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new j(s,e,`Generic Error: status: ${o}; status text: ${n}; body: ${i}`)}},p=(s,e,t)=>{let r=Tt(s,t),o=vt(t),n=Vt(t);return Bt(s,t).pipe($(i=>Pt(s,t,e,r,n,o,i)),$(async i=>{for(let f of s.interceptors.response._fns)i=await f(i);let u=Et(i),d=kt(i,t.responseHeader),y=u;return t.responseTransformer&&i.ok&&(y=await t.responseTransformer(u)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:d??y}}),ne(i=>i.status?z({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):oe(()=>i)),O(i=>(Ot(t,i),i.body)),ne(i=>oe(()=>i)))};var Je=class s{constructor(e){this.http=e}getApiV1Commandline(){return p(a,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})},Xe=class s{constructor(e){this.http=e}postApiV1Commandline(e){return p(a,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return p(a,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(e={}){return p(a,this.http,{method:"POST",url:"/api/v1/auth/refresh",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthSignin(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(e={}){return p(a,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuetokenByOperation(e){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return p(a,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return p(a,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return p(a,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return p(a,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return p(a,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return p(a,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return p(a,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return p(a,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return p(a,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return p(a,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return p(a,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return p(a,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return p(a,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return p(a,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return p(a,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return p(a,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return p(a,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return p(a,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return p(a,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return p(a,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return p(a,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return p(a,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return p(a,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return p(a,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return p(a,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return p(a,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return p(a,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return p(a,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return p(a,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return p(a,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return p(a,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return p(a,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return p(a,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return p(a,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return p(a,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return p(a,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return p(a,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return p(a,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return p(a,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return p(a,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return p(a,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdRun(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdReportRemoteSize(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return p(a,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return p(a,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return p(a,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return p(a,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return p(a,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return p(a,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})},Ke=class s{constructor(e){this.http=e}getApiV1Webmodules(){return p(a,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(t){return new(t||s)(R(_))};static \u0275prov=v({token:s,factory:s.\u0275fac,providedIn:"root"})};export{g as a,L as b,_ as c,ft as d,mt as e,At as f,Je as g,Xe as h,Ke as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as P}from"./chunk-
|
|
1
|
+
import{h as P}from"./chunk-J3BBLPAD.js";import"./chunk-FPPZ4BUR.js";import{Db as n,Eb as i,H as p,Oc as x,Ra as s,V as h,Yb as L,_ as r,bb as u,hc as E,lc as a,mc as M,oa as c,ub as f,vb as C,wb as _,xb as v,yb as b}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var l=class e{#e=r(P);isLoaded=c(!1);crashLog=c(null);load(){this.isLoaded()||this.#e.getApiV1LogdataCrashlog().pipe(p(()=>this.isLoaded.set(!0))).subscribe({next:t=>{this.crashLog.set(t.Logdata??null)}})}static \u0275fac=function(o){return new(o||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})};function O(e,t){e&1&&(n(0,"div",0),a(1,"Loading ..."),i())}function S(e,t){e&1&&(n(0,"div",0),a(1,"No crash log found"),i())}function w(e,t){if(e&1&&(n(0,"li"),a(1),i()),e&2){let o=t.$implicit;s(),M(o)}}function D(e,t){if(e&1&&(n(0,"div",2)(1,"code")(2,"ol",3),v(3,w,2,1,"li",null,_),i()()()),e&2){let o=L();E("grid-column","1 / -1")("height","auto"),s(3),b(o.breakIntoLines(o.crashLog()))}}var m=class e{#e=r(l);logsLoading=x(()=>!this.#e.isLoaded());crashLog=this.#e.crashLog;ngOnInit(){this.#e.load()}breakIntoLines(t){return t?t.split(`
|
|
2
2
|
`):[]}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=u({type:e,selectors:[["app-crashlogs"]],decls:5,vars:1,consts:[[1,"loading"],[2,"white-space","pre-wrap",3,"grid-column","height"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]],template:function(o,d){if(o&1&&(n(0,"h3"),a(1,"Crash log"),i(),f(2,O,2,0,"div",0)(3,S,2,0,"div",0)(4,D,5,4,"div",1)),o&2){let g;s(2),C(d.logsLoading()?2:d.crashLog()==null||((g=d.crashLog())==null?null:g.length)===0?3:4)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-ZGAC2JKG.js";import{Pc as i,V as t,oa as s}from"./chunk-QDFCX6XE.js";var a=class e{#e=o("darkTheme",null,!0);#s=s(window?.innerWidth<=768);#t=s(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#t.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#e()===null&&this.setDarkMode(),i(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#i)}toggleNav(){this.#t.set(!this.isNavOpen())}toggleBodyClass(){this.#e.set(!this.isDarkMode())}setDarkMode(){this.#e.set(!0)}setLightMode(){this.#e.set(!1)}#i(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=t({token:e,factory:e.\u0275fac,providedIn:"root"})};export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as W}from"./chunk-
|
|
1
|
+
import{a as W}from"./chunk-WWFNG47J.js";import"./chunk-XNVRJH42.js";import{a as z}from"./chunk-3UN32GIC.js";import"./chunk-OXOOR7I4.js";import"./chunk-GUH5TMOS.js";import"./chunk-RHW5QVAY.js";import"./chunk-66BSPEOQ.js";import"./chunk-CWBEE627.js";import"./chunk-USU2EHJV.js";import"./chunk-ZGAC2JKG.js";import"./chunk-ETCRT3EV.js";import{e as S}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{a as g,g as E,h as R,k as G,p as w}from"./chunk-WRNQOX5R.js";import{h as X}from"./chunk-J3BBLPAD.js";import"./chunk-B5FUQFEQ.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-73RDJP55.js";import{Ab as t,Ac as v,Bb as i,Cb as s,Gb as D,Hb as y,Qb as A,Ra as a,Rb as I,Sb as l,Tb as b,Ub as B,Yb as d,_ as u,bb as O,hb as h,lc as r,oc as L,rb as M,sb as k,ub as F,vb as P,wb as N,xb as x,yb as $,zb as _,zc as m}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var j=()=>[R,E,g,S],H=()=>["/restore-from-files"],q=()=>["/restore/from-config"],V=n=>["/restore",n];function J(n,o){if(n&1&&(t(0,"sh-card",5),s(1,"img",10),t(2,"div",7)(3,"h3"),l(4,1),i(),t(5,"p"),r(6),i()(),t(7,"button",8),A(8,2),s(9,"sh-icon"),I(),i()()),n&2){let e=o.$implicit;a(4),b((e.Backup==null?null:e.Backup.Name)??"Backup name missing"),B(4),a(2),L(" ",(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceSizeString)??"-"," / ",(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount)??"-"," "),a(),_("routerLink",v(4,V,e.Backup==null?null:e.Backup.ID))}}function K(n,o){if(n&1&&x(0,J,10,6,"sh-card",5,N),n&2){let e=d(2);$(e.backups())}}function Q(n,o){n&1&&(D(0),l(1,3),y())}function U(n,o){if(n&1&&F(0,K,2,0)(1,Q,2,0,"ng-container"),n&2){let e=d();P(e.backups().length?0:1)}}function Y(n,o){n&1&&(t(0,"div",11),s(1,"sh-progress-bar",12),t(2,"div",7)(3,"h3"),l(4,4),i()()())}var f=class n{#e=u(z);#t=u(X);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups(!0)}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=O({type:n,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let o;o=$localize`Where do you want to restore from?`;let e;e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let C;C=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[o,e,c,C,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["shButton","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(e,c){e&1&&(s(0,"app-status-bar"),t(1,"section")(2,"h2"),l(3,0),i(),t(4,"sh-card",5),s(5,"img",6),t(6,"div",7)(7,"h3"),r(8,"Direct restore from backup files"),i(),t(9,"p"),r(10,"Point to your backup files and restore from there."),i()(),t(11,"button",8),r(12," Start "),t(13,"sh-icon"),r(14,"play-circle"),i()()(),t(15,"sh-card",5),s(16,"img",9),t(17,"div",7)(18,"h3"),r(19,"Restore from configuration"),i(),t(20,"p"),r(21,"Load destination from an exported job or a storage provider"),i()(),t(22,"button",8),r(23," Start "),t(24,"sh-icon"),r(25,"play-circle"),i()()(),t(26,"sh-divider"),r(27,"Or existing"),i(),h(28,U,2,1)(29,Y,5,0),M(30,28,j,null,29),i()),e&2&&(a(11),_("routerLink",m(3,H)),a(11),_("routerLink",m(4,q)),a(8),k(!c.backupsLoading()))},dependencies:[W,R,E,G,g,w,S],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}sh-divider[_ngcontent-%COMP%]{color:var(--base-8)}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{f as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as de,b as me}from"./chunk-CZLLEVMJ.js";import{a as ce}from"./chunk-BVEALUGN.js";import{a as oe}from"./chunk-OWAZS6AA.js";import{b as re,c as ae,e as le,i as se,k as _e,s as pe}from"./chunk-USU2EHJV.js";import{A as ne,C as ie,a as Q,g as W,l as Y,o as Z,t as ee,z as te}from"./chunk-WRNQOX5R.js";import{ea as J}from"./chunk-WJPLJKPQ.js";import{Ab as a,Bb as s,Cb as w,Gb as v,Hb as V,Hc as D,Ib as T,Jb as g,Oc as k,Qb as b,Ra as p,Rb as $,Sb as X,Uc as R,Wb as C,Xc as q,Yb as l,_ as K,bb as U,ea as m,fa as u,gb as f,gc as x,ic as B,lc as d,mc as G,nc as A,oa as M,tc as H,ub as h,uc as z,vb as O,vc as S,wb as N,xb as P,yb as E,zb as c,zc as j}from"./chunk-QDFCX6XE.js";import{a as I,b as L}from"./chunk-EUDKD2JW.js";var ge=()=>({updateOn:"blur"});function fe(t,i){if(t&1){let e=g();a(0,"button",13),C("click",function(){m(e);let n=l();return u(n.showTextArea.set(!1))}),b(1,5),w(2,"sh-icon"),$(),s()}}function xe(t,i){if(t&1){let e=g();a(0,"button",17,0),C("click",function(){let n=m(e).$implicit,r=l(3);return u(r.addSetting(n))}),d(2),s()}if(t&2){let e=i.$implicit;B("deprecated",e.deprecatedDescription),p(2),A(" ",e.name," ")}}function Se(t,i){if(t&1&&(a(0,"h3",9),d(1),s(),P(2,xe,3,3,"button",16,N)),t&2){let e=i.$implicit;p(),G(e.displayName),p(),E(e.options)}}function Te(t,i){if(t&1){let e=g();a(0,"sh-menu")(1,"button",18)(2,"sh-icon"),d(3,"dots-three-vertical"),s()(),v(4,15),a(5,"button",13),C("click",function(){m(e);let n=l(2);return u(n.addFreeTextSetting())}),b(6,7),w(7,"sh-icon"),$(),s(),a(8,"button",19),C("click",function(){m(e);let n=l(2);return u(n.showTextArea.set(!0))}),a(9,"sh-icon"),d(10,"link"),s(),d(11," Edit contents as text "),s(),V(),s()}}function he(t,i){if(t&1&&(a(0,"sh-menu",14)(1,"button",11),b(2,6),w(3,"sh-icon"),$(),s(),v(4,15),P(5,Se,4,1,null,null,N),V(),s(),h(7,Te,12,0,"sh-menu")),t&2){let e=l();c("searchable",!0),p(5),E(e.nonSelectedOptionsGrouped()),p(2),O(e.hasFreeTextSettings()?7:-1)}}function Oe(t,i){if(t&1){let e=g();a(0,"textarea",20),C("ngModelChange",function(n){m(e);let r=l();return u(r.updateSettingsFromText(n))}),s()}if(t&2){let e=l();c("ngModel",e.settingsAsText())("ngModelOptions",j(2,ge))}}function Fe(t,i){t&1&&(a(0,"div",21),d(1,"Add a setting above to get started."),s())}function we(t,i){t&1&&(a(0,"sh-icon",29),d(1," warning-octagon "),s())}function Ve(t,i){if(t&1&&(a(0,"sh-icon",30),d(1,"archive"),s()),t&2){let e=l(2).$implicit;c("shTooltip",e.FormView.deprecatedDescription)}}function ye(t,i){if(t&1&&(a(0,"sh-icon",31),d(1,"question"),s()),t&2){let e=l(2).$implicit;c("shTooltip",e.FormView.longDescription)}}function Ie(t,i){if(t&1&&(h(0,we,2,0,"sh-icon",29),a(1,"span"),d(2),s(),h(3,Ve,2,1,"sh-icon",30)(4,ye,2,1,"sh-icon",31)),t&2){let e=l().$implicit,o=S(1);O(o?0:-1),p(),B("deprecated",e.FormView.deprecatedDescription),p(),G(e.FormView.shortDescription),p(),O(e.FormView.deprecatedDescription?3:e.FormView.longDescription?4:-1)}}function Le(t,i){t&1&&T(0)}function Me(t,i){if(t&1){let e=g();a(0,"div",23)(1,"label"),f(2,Le,1,0,"ng-container",32),s(),a(3,"div")(4,"sh-form-field")(5,"input",33),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateFreeTextSettingName(r,n))}),s(),a(6,"sh-icon",34),d(7,"rectangle-dashed"),s()()(),a(8,"div")(9,"sh-form-field")(10,"input",33),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(11,"sh-icon",34),d(12,"textbox"),s()()()()}if(t&2){let e=l().$implicit,o=x(3);p(2),c("ngTemplateOutlet",o),p(3),c("ngModel",e.Name),p(5),c("ngModel",e.Value())}}function Ne(t,i){t&1&&T(0)}function Pe(t,i){if(t&1){let e=g();a(0,"app-file-tree",24)(1,"label",35),f(2,Ne,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function Ee(t,i){if(t&1){let e=g();a(0,"app-file-tree",25),w(1,"label",35),a(2,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=S(0);c("startingPath",e.Value()),p(),c("for",o),p(),c("id",o)("ngModel",e.Value())}}function ve(t,i){t&1&&T(0)}function be(t,i){t&1&&(a(0,"sh-icon",34),d(1,"link"),s())}function $e(t,i){t&1&&(a(0,"sh-icon",34),d(1,"textbox"),s())}function Ae(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,ve,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),h(4,be,2,0,"sh-icon",34)(5,$e,2,0,"sh-icon",34),s()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value()),p(),O(e.FormView.type==="Path"?4:5)}}function De(t,i){t&1&&T(0)}function ke(t,i){if(t&1){let e=g();a(0,"sh-icon",39),C("click",function(){m(e);let n=l(2).$implicit;return u(n.showPassword=!n.showPassword)}),d(1," eye "),s()}}function Re(t,i){if(t&1){let e=g();a(0,"sh-icon",39),C("click",function(){m(e);let n=l(2).$implicit;return u(n.showPassword=!n.showPassword)}),d(1," eye-slash "),s()}}function Be(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,De,1,0,"ng-container",32),s(),a(3,"input",37),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(4,"sh-icon",34),d(5,"password"),s(),h(6,ke,2,0,"sh-icon",38)(7,Re,2,0,"sh-icon",38),s()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),p(3),O(e.showPassword?6:7)}}function Ge(t,i){t&1&&T(0)}function ze(t,i){if(t&1&&d(0),t&2){let e=i.$implicit;A(" ",e," ")}}function Ke(t,i){if(t&1){let e=g();a(0,"sh-select",40)(1,"label",35),f(2,Ge,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()(),f(4,ze,1,1,"ng-template",null,2,D)}if(t&2){let e=x(5),o=l().$implicit,n=x(3),r=S(0);c("options",o.FormView.options)("isClearable",!1)("optionTemplate",e),p(),c("for",r),p(),c("ngTemplateOutlet",n),p(),c("id",r)("ngModel",o.Value())}}function Ue(t,i){t&1&&T(0)}function Xe(t,i){if(t&1){let e=g();a(0,"app-size",41),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),a(1,"label",35),f(2,Ue,1,0,"ng-container",32),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),p(),c("for",n),p(),c("ngTemplateOutlet",o)}}function He(t,i){t&1&&T(0)}function je(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,He,1,0,"ng-container",32),s(),a(3,"input",42),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(4,"sh-icon",34),d(5,"numpad"),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function qe(t,i){t&1&&T(0)}function Je(t,i){if(t&1){let e=g();a(0,"sh-toggle",27)(1,"label",35),f(2,qe,1,0,"ng-container",32),s(),a(3,"input",43),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function Qe(t,i){t&1&&T(0)}function We(t,i){if(t&1&&d(0),t&2){let e=i.$implicit;A(" ",e," ")}}function Ye(t,i){if(t&1){let e=g();a(0,"sh-select",44)(1,"label",35),f(2,Qe,1,0,"ng-container",32),s(),a(3,"input",45),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()(),f(4,We,1,1,"ng-template",null,3,D)}if(t&2){let e=x(5),o=l().$implicit,n=x(3),r=S(0);c("options",o.FormView.options)("selectMultiple",!0)("optionTemplate",e),p(),c("for",r),p(),c("ngTemplateOutlet",n),p(),c("ngModel",o.Value())}}function Ze(t,i){t&1&&T(0)}function et(t,i){if(t&1){let e=g();a(0,"app-timespan",41),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),a(1,"label",35),f(2,Ze,1,0,"ng-container",32),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),p(),c("for",n),p(),c("ngTemplateOutlet",o)}}function tt(t,i){if(t&1){let e=g();H(0)(1),f(2,Ie,5,5,"ng-template",null,1,D),a(4,"div",22),h(5,Me,13,3,"div",23)(6,Pe,4,9,"app-file-tree",24)(7,Ee,3,4,"app-file-tree",25)(8,Ae,6,5,"sh-form-field")(9,Be,8,6,"sh-form-field")(10,Ke,6,7)(11,Xe,3,5,"app-size",26)(12,je,6,4,"sh-form-field")(13,Je,4,4,"sh-toggle",27)(14,Ye,6,6)(15,et,3,5,"app-timespan",26),a(16,"button",28),C("click",function(){let n=m(e).$implicit,r=l(2);return u(r.removeSetting(n))}),a(17,"sh-icon"),d(18,"x-bold"),s()()()}if(t&2){let e=i.$implicit,o=i.$index,n=l(2);z("destination-"+e.Name+o),p(),z(n.inAppOptions(e.Name)),p(4),O(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1)}}function nt(t,i){if(t&1&&(h(0,Fe,2,0,"div",21),P(1,tt,19,3,null,null,N)),t&2){let e=l();O(e.selectedSettings().length===0?0:-1),p(),E(e.selectedSettings())}}var ue=class t{#e=K(oe);options=q.required();hiddenOptions=R([]);hasFreeTextSettings=R(!1);applicationOptions=R();showTextArea=M(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=k(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let r=this.allOptions().find(F=>F.name===n.Name?.replace("--","")),_=n.Value??"";if(r&&i.includes(r.name))return null;if(r){if(r.type==="Boolean"&&(_=this.isTrue(_)),r.type==="Integer"&&(_=parseInt(_)||0),r.type==="Enumeration"&&r.options){let F=_?.trim().toLowerCase(),y=r.options.find(Ce=>(Ce??"").trim().toLocaleLowerCase()===F);y&&(_=y)}return L(I({},n),{Value:M(_),FormView:r})}else if(this.hasFreeTextSettings())return L(I({},n),{Value:M(_),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=k(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>L(I({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=k(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
|
|
1
|
+
import{a as de,b as me}from"./chunk-CZLLEVMJ.js";import{a as ce}from"./chunk-QY6E755W.js";import{a as oe}from"./chunk-66BSPEOQ.js";import{b as re,c as ae,e as le,i as se,k as _e,s as pe}from"./chunk-USU2EHJV.js";import{A as ne,C as ie,a as Q,g as W,l as Y,o as Z,t as ee,z as te}from"./chunk-WRNQOX5R.js";import{ea as J}from"./chunk-WJPLJKPQ.js";import{Ab as a,Bb as s,Cb as w,Gb as v,Hb as V,Hc as D,Ib as T,Jb as g,Oc as k,Qb as b,Ra as p,Rb as $,Sb as X,Uc as R,Wb as C,Xc as q,Yb as l,_ as K,bb as U,ea as m,fa as u,gb as f,gc as x,ic as B,lc as d,mc as G,nc as A,oa as M,tc as H,ub as h,uc as z,vb as O,vc as S,wb as N,xb as P,yb as E,zb as c,zc as j}from"./chunk-QDFCX6XE.js";import{a as I,b as L}from"./chunk-EUDKD2JW.js";var ge=()=>({updateOn:"blur"});function fe(t,i){if(t&1){let e=g();a(0,"button",13),C("click",function(){m(e);let n=l();return u(n.showTextArea.set(!1))}),b(1,5),w(2,"sh-icon"),$(),s()}}function xe(t,i){if(t&1){let e=g();a(0,"button",17,0),C("click",function(){let n=m(e).$implicit,r=l(3);return u(r.addSetting(n))}),d(2),s()}if(t&2){let e=i.$implicit;B("deprecated",e.deprecatedDescription),p(2),A(" ",e.name," ")}}function Se(t,i){if(t&1&&(a(0,"h3",9),d(1),s(),P(2,xe,3,3,"button",16,N)),t&2){let e=i.$implicit;p(),G(e.displayName),p(),E(e.options)}}function Te(t,i){if(t&1){let e=g();a(0,"sh-menu")(1,"button",18)(2,"sh-icon"),d(3,"dots-three-vertical"),s()(),v(4,15),a(5,"button",13),C("click",function(){m(e);let n=l(2);return u(n.addFreeTextSetting())}),b(6,7),w(7,"sh-icon"),$(),s(),a(8,"button",19),C("click",function(){m(e);let n=l(2);return u(n.showTextArea.set(!0))}),a(9,"sh-icon"),d(10,"link"),s(),d(11," Edit contents as text "),s(),V(),s()}}function he(t,i){if(t&1&&(a(0,"sh-menu",14)(1,"button",11),b(2,6),w(3,"sh-icon"),$(),s(),v(4,15),P(5,Se,4,1,null,null,N),V(),s(),h(7,Te,12,0,"sh-menu")),t&2){let e=l();c("searchable",!0),p(5),E(e.nonSelectedOptionsGrouped()),p(2),O(e.hasFreeTextSettings()?7:-1)}}function Oe(t,i){if(t&1){let e=g();a(0,"textarea",20),C("ngModelChange",function(n){m(e);let r=l();return u(r.updateSettingsFromText(n))}),s()}if(t&2){let e=l();c("ngModel",e.settingsAsText())("ngModelOptions",j(2,ge))}}function Fe(t,i){t&1&&(a(0,"div",21),d(1,"Add a setting above to get started."),s())}function we(t,i){t&1&&(a(0,"sh-icon",29),d(1," warning-octagon "),s())}function Ve(t,i){if(t&1&&(a(0,"sh-icon",30),d(1,"archive"),s()),t&2){let e=l(2).$implicit;c("shTooltip",e.FormView.deprecatedDescription)}}function ye(t,i){if(t&1&&(a(0,"sh-icon",31),d(1,"question"),s()),t&2){let e=l(2).$implicit;c("shTooltip",e.FormView.longDescription)}}function Ie(t,i){if(t&1&&(h(0,we,2,0,"sh-icon",29),a(1,"span"),d(2),s(),h(3,Ve,2,1,"sh-icon",30)(4,ye,2,1,"sh-icon",31)),t&2){let e=l().$implicit,o=S(1);O(o?0:-1),p(),B("deprecated",e.FormView.deprecatedDescription),p(),G(e.FormView.shortDescription),p(),O(e.FormView.deprecatedDescription?3:e.FormView.longDescription?4:-1)}}function Le(t,i){t&1&&T(0)}function Me(t,i){if(t&1){let e=g();a(0,"div",23)(1,"label"),f(2,Le,1,0,"ng-container",32),s(),a(3,"div")(4,"sh-form-field")(5,"input",33),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateFreeTextSettingName(r,n))}),s(),a(6,"sh-icon",34),d(7,"rectangle-dashed"),s()()(),a(8,"div")(9,"sh-form-field")(10,"input",33),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(11,"sh-icon",34),d(12,"textbox"),s()()()()}if(t&2){let e=l().$implicit,o=x(3);p(2),c("ngTemplateOutlet",o),p(3),c("ngModel",e.Name),p(5),c("ngModel",e.Value())}}function Ne(t,i){t&1&&T(0)}function Pe(t,i){if(t&1){let e=g();a(0,"app-file-tree",24)(1,"label",35),f(2,Ne,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function Ee(t,i){if(t&1){let e=g();a(0,"app-file-tree",25),w(1,"label",35),a(2,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=S(0);c("startingPath",e.Value()),p(),c("for",o),p(),c("id",o)("ngModel",e.Value())}}function ve(t,i){t&1&&T(0)}function be(t,i){t&1&&(a(0,"sh-icon",34),d(1,"link"),s())}function $e(t,i){t&1&&(a(0,"sh-icon",34),d(1,"textbox"),s())}function Ae(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,ve,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),h(4,be,2,0,"sh-icon",34)(5,$e,2,0,"sh-icon",34),s()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value()),p(),O(e.FormView.type==="Path"?4:5)}}function De(t,i){t&1&&T(0)}function ke(t,i){if(t&1){let e=g();a(0,"sh-icon",39),C("click",function(){m(e);let n=l(2).$implicit;return u(n.showPassword=!n.showPassword)}),d(1," eye "),s()}}function Re(t,i){if(t&1){let e=g();a(0,"sh-icon",39),C("click",function(){m(e);let n=l(2).$implicit;return u(n.showPassword=!n.showPassword)}),d(1," eye-slash "),s()}}function Be(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,De,1,0,"ng-container",32),s(),a(3,"input",37),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(4,"sh-icon",34),d(5,"password"),s(),h(6,ke,2,0,"sh-icon",38)(7,Re,2,0,"sh-icon",38),s()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),p(3),O(e.showPassword?6:7)}}function Ge(t,i){t&1&&T(0)}function ze(t,i){if(t&1&&d(0),t&2){let e=i.$implicit;A(" ",e," ")}}function Ke(t,i){if(t&1){let e=g();a(0,"sh-select",40)(1,"label",35),f(2,Ge,1,0,"ng-container",32),s(),a(3,"input",36),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()(),f(4,ze,1,1,"ng-template",null,2,D)}if(t&2){let e=x(5),o=l().$implicit,n=x(3),r=S(0);c("options",o.FormView.options)("isClearable",!1)("optionTemplate",e),p(),c("for",r),p(),c("ngTemplateOutlet",n),p(),c("id",r)("ngModel",o.Value())}}function Ue(t,i){t&1&&T(0)}function Xe(t,i){if(t&1){let e=g();a(0,"app-size",41),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),a(1,"label",35),f(2,Ue,1,0,"ng-container",32),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),p(),c("for",n),p(),c("ngTemplateOutlet",o)}}function He(t,i){t&1&&T(0)}function je(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,He,1,0,"ng-container",32),s(),a(3,"input",42),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s(),a(4,"sh-icon",34),d(5,"numpad"),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function qe(t,i){t&1&&T(0)}function Je(t,i){if(t&1){let e=g();a(0,"sh-toggle",27)(1,"label",35),f(2,qe,1,0,"ng-container",32),s(),a(3,"input",43),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);p(),c("for",n),p(),c("ngTemplateOutlet",o),p(),c("id",n)("ngModel",e.Value())}}function Qe(t,i){t&1&&T(0)}function We(t,i){if(t&1&&d(0),t&2){let e=i.$implicit;A(" ",e," ")}}function Ye(t,i){if(t&1){let e=g();a(0,"sh-select",44)(1,"label",35),f(2,Qe,1,0,"ng-container",32),s(),a(3,"input",45),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),s()(),f(4,We,1,1,"ng-template",null,3,D)}if(t&2){let e=x(5),o=l().$implicit,n=x(3),r=S(0);c("options",o.FormView.options)("selectMultiple",!0)("optionTemplate",e),p(),c("for",r),p(),c("ngTemplateOutlet",n),p(),c("ngModel",o.Value())}}function Ze(t,i){t&1&&T(0)}function et(t,i){if(t&1){let e=g();a(0,"app-timespan",41),C("ngModelChange",function(n){m(e);let r=l().$implicit,_=l(2);return u(_.updateSettingValue(r,n))}),a(1,"label",35),f(2,Ze,1,0,"ng-container",32),s()()}if(t&2){let e=l().$implicit,o=x(3),n=S(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),p(),c("for",n),p(),c("ngTemplateOutlet",o)}}function tt(t,i){if(t&1){let e=g();H(0)(1),f(2,Ie,5,5,"ng-template",null,1,D),a(4,"div",22),h(5,Me,13,3,"div",23)(6,Pe,4,9,"app-file-tree",24)(7,Ee,3,4,"app-file-tree",25)(8,Ae,6,5,"sh-form-field")(9,Be,8,6,"sh-form-field")(10,Ke,6,7)(11,Xe,3,5,"app-size",26)(12,je,6,4,"sh-form-field")(13,Je,4,4,"sh-toggle",27)(14,Ye,6,6)(15,et,3,5,"app-timespan",26),a(16,"button",28),C("click",function(){let n=m(e).$implicit,r=l(2);return u(r.removeSetting(n))}),a(17,"sh-icon"),d(18,"x-bold"),s()()()}if(t&2){let e=i.$implicit,o=i.$index,n=l(2);z("destination-"+e.Name+o),p(),z(n.inAppOptions(e.Name)),p(4),O(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1)}}function nt(t,i){if(t&1&&(h(0,Fe,2,0,"div",21),P(1,tt,19,3,null,null,N)),t&2){let e=l();O(e.selectedSettings().length===0?0:-1),p(),E(e.selectedSettings())}}var ue=class t{#e=K(oe);options=q.required();hiddenOptions=R([]);hasFreeTextSettings=R(!1);applicationOptions=R();showTextArea=M(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=k(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let r=this.allOptions().find(F=>F.name===n.Name?.replace("--","")),_=n.Value??"";if(r&&i.includes(r.name))return null;if(r){if(r.type==="Boolean"&&(_=this.isTrue(_)),r.type==="Integer"&&(_=parseInt(_)||0),r.type==="Enumeration"&&r.options){let F=_?.trim().toLowerCase(),y=r.options.find(Ce=>(Ce??"").trim().toLocaleLowerCase()===F);y&&(_=y)}return L(I({},n),{Value:M(_),FormView:r})}else if(this.hasFreeTextSettings())return L(I({},n),{Value:M(_),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=k(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>L(I({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=k(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
|
|
2
2
|
`));updateSettingsFromText(i){if(typeof i!="string")return;let e=i.split(`
|
|
3
3
|
`).map(n=>n.trim()).filter(n=>n.length>0),o=[];for(let n of e){let[r,_]=n.split("=").map(F=>F.trim());r&&r.trim().length>0&&_!==void 0&&o.push({Name:`${r}`,Value:_})}this.options.update(()=>o)}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return!1}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?!1:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}])}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]})}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(_=>_.Name===i.Name);if(i.FormView.type==="Boolean")return n[r].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[r].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let _=e?.trim().toLowerCase()??"",F=i.FormView.options.find(y=>(y??"").trim().toLocaleLowerCase()===_);if(F)return n[r].Value=F,n}return n[r].Value=e,n})}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(_=>_.Name===i.Name);return n[r].Name=e,n})}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:9,vars:3,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let r;return r=$localize`By adding this option it will override the matching global option`,[["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,[3,"disallowToggle"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","remove-btn",3,"click"],["shTooltip",r,1,"error"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"]]},template:function(e,o){e&1&&(a(0,"sh-toggle-card",8),v(1,9)(2),X(3,4),V(),a(4,"div",10),h(5,fe,3,0,"button",11)(6,he,8,2),s(),V(),h(7,Oe,1,3,"textarea",12)(8,nt,3,1),s()),e&2&&(c("disallowToggle",!0),p(5),O(o.showTextArea()?5:6),p(2),O(o.showTextArea()?7:8))},dependencies:[pe,ae,_e,re,le,se,ce,te,Y,W,Z,ie,Q,ee,ne,de,me,J],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem;position:relative;z-index:1}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"],changeDetection:0})};export{ue as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as re}from"./chunk-QGFC5ZUR.js";import{a as ne}from"./chunk-
|
|
1
|
+
import{c as re}from"./chunk-QGFC5ZUR.js";import{a as ne}from"./chunk-3UN32GIC.js";import"./chunk-OXOOR7I4.js";import{a as ie}from"./chunk-GUH5TMOS.js";import"./chunk-RHW5QVAY.js";import"./chunk-66BSPEOQ.js";import{a as te}from"./chunk-CWBEE627.js";import{b as oe,e as ae,i as le,s as _e}from"./chunk-USU2EHJV.js";import"./chunk-ZGAC2JKG.js";import"./chunk-ETCRT3EV.js";import{d as q,e as H}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{a as J,e as Q,g as Y,i as Z}from"./chunk-WRNQOX5R.js";import{h as ee}from"./chunk-J3BBLPAD.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import{Ab as i,Ac as z,B as y,Bb as o,Dc as V,Gc as W,H as O,Jb as P,Oc as L,Ra as r,Sb as c,Tb as D,Ub as h,Uc as j,Vb as $,Wb as x,Yb as E,_ as d,bb as F,ea as C,fa as g,ic as I,lc as u,n as U,oa as m,qc as M,r as K,rc as S,sc as B,tc as w,ub as f,uc as v,vb as T,vc as G,zb as A,zc as X}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function ue(l,_){if(l&1){let t=P();i(0,"section")(1,"h4"),c(2,4),o(),i(3,"p"),c(4,5),o(),i(5,"sh-checkbox",11),u(6," Delete local database "),i(7,"input",12),B("ngModelChange",function(e){C(t);let a=E();return S(a.deleteLocalDb,e)||(a.deleteLocalDb=e),g(e)}),o()()()}if(l&2){let t=E();r(7),M("ngModel",t.deleteLocalDb)}}function de(l,_){if(l&1){let t=P();i(0,"section")(1,"h4"),c(2,6),o(),i(3,"p"),c(4,7),V(5,"bytes"),o(),i(6,"sh-checkbox",11),u(7," Delete remote files "),i(8,"input",12),B("ngModelChange",function(e){C(t);let a=E();return S(a.deleteRemoteFiles,e)||(a.deleteRemoteFiles=e),g(e)}),o()()()}if(l&2){let t=E(),n=G(0),e=(n==null||n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)??0;r(5),D(t.fileCount())(t.fileCount())(W(5,4,e,!0,!0)),h(4),r(3),M("ngModel",t.deleteRemoteFiles)}}var b=class l{#t=d(ee);#n=d(Q);#e=d(ne);#i=d(q);id=j.required();backup=L(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(K(()=>!0),y(()=>U(!1)))});fileCount=L(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=m(!1);deleteRemoteFiles=m(!1);isDeleting=m(!1);deleteBackup(){let _=this.id(),t=this.deleteLocalDb(),n=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#n.open(ie,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:e=>{e&&this.#e.deleteBackup({id:_,deleteLocalDb:t,deleteRemoteFiles:n}).pipe(O(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#i.navigate(["/"])}})}})}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=F({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;t=$localize`Export configuration`;let n;n=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let e;e=$localize`Cancel`;let a;a=$localize`Delete local database`;let N;N=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let k;k=$localize`Delete remote files`;let p;p=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,p=$(p,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let R;return R=$localize` Delete ${p}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,t,n,e,a,N,k,R,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(t,n){if(t&1){let e=P();w(0),i(1,"h3"),c(2,0),o(),f(3,ue,8,1,"section"),i(4,"section")(5,"h4"),c(6,1),o(),i(7,"p"),c(8,2),o(),i(9,"button",8),u(10," Export configuration "),i(11,"sh-icon"),u(12,"caret-right"),o()()(),f(13,de,9,8,"section"),i(14,"div",9)(15,"button",8),c(16,3),o(),i(17,"button",10),x("click",function(){return C(e),g(n.deleteBackup())}),u(18,"Delete backup"),o()()}if(t&2){let e=v(n.backup()),a=n.noLocalDbResource.value();r(2),D(e==null||e.Backup==null?null:e.Backup.Name),h(2),r(),T(a?3:-1),r(6),A("routerLink",z(8,ce,n.id())),r(4),T(a?13:-1),r(2),A("routerLink",X(10,se)),r(2),I("loader",n.isDeleting())}},dependencies:[Z,Y,J,_e,oe,ae,le,H,te],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"],changeDetection:0})};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as G}from"./chunk-
|
|
1
|
+
import{a as G}from"./chunk-WWFNG47J.js";import{h as T}from"./chunk-GDBU3Z7P.js";import"./chunk-QY6E755W.js";import"./chunk-UACX27D3.js";import"./chunk-VC72SWC4.js";import{b as m}from"./chunk-QGFC5ZUR.js";import"./chunk-XNVRJH42.js";import{a as L}from"./chunk-3UN32GIC.js";import"./chunk-OXOOR7I4.js";import"./chunk-GUH5TMOS.js";import"./chunk-RHW5QVAY.js";import"./chunk-66BSPEOQ.js";import"./chunk-CWBEE627.js";import"./chunk-USU2EHJV.js";import"./chunk-ZGAC2JKG.js";import"./chunk-ETCRT3EV.js";import{b as E,c as B,e as b,f as M}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{p as $,q as N,v as I}from"./chunk-WRNQOX5R.js";import{h as v}from"./chunk-J3BBLPAD.js";import"./chunk-B5FUQFEQ.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-73RDJP55.js";import{Ab as s,Bb as u,Bc as _,Cb as r,F as f,Pc as O,Qb as c,Ra as n,Rb as p,Yb as R,_ as l,bb as D,lc as A,nc as k,ub as h,vb as g,yc as P,zb as d}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var y=(a,e)=>[a,e,"general"],U=(a,e)=>[a,e,"destination"],K=(a,e)=>[a,e,"source-data"],w=(a,e)=>[a,e,"schedule"],H=(a,e)=>[a,e,"options"];function X(a,e){if(a&1&&(s(0,"p"),A(1),u()),a&2){let t=R();n(),k("Editing: ",t.backupName())}}function x(a,e){a&1&&r(0,"sh-progress-bar",7)}function z(a,e){a&1&&(s(0,"section"),r(1,"router-outlet"),u())}var C=class a{#t=l(E);#e=l(T);#a=l(L);#i=l(v);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=O(()=>{let e=this.#o()?.id,t=!!this.#n()?.find(i=>i.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(f(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,t=!1){let i=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup),this.#e.storeMetadata(o.Backup,t)),this.#e.finishedLoading.set(!0)};if(t){this.isDraft.set(t);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}i(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:i})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=D({type:a,selectors:[["app-backup"]],features:[P([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_RADIO: General `;let t;t=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_RADIO: Destination `;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_RADIO: Options `,[e,t,i,o,F,[1,"primary"],["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,i){t&1&&(r(0,"app-status-bar"),s(1,"header"),h(2,X,2,1,"p"),s(3,"sh-stepper",5)(4,"div",6),c(5,0),r(6,"sh-radio"),p(),u(),s(7,"div",6),c(8,1),r(9,"sh-radio"),p(),u(),s(10,"div",6),c(11,2),r(12,"sh-radio"),p(),u(),s(13,"div",6),c(14,3),r(15,"sh-radio"),p(),u(),s(16,"div",6),c(17,4),r(18,"sh-radio"),p(),u()()(),h(19,x,1,0,"sh-progress-bar",7)(20,z,2,0,"section")),t&2&&(n(2),g(i.isNew()?-1:2),n(2),d("routerLink",_(7,y,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(10,U,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(13,K,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(16,w,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(19,H,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),g(i.finishedLoading()?20:19))},dependencies:[B,b,M,G,N,I,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as le}from"./chunk-
|
|
1
|
+
import{a as le}from"./chunk-K3ZQ67VT.js";import{a as se,b as ae}from"./chunk-CZLLEVMJ.js";import{h as ie}from"./chunk-GDBU3Z7P.js";import"./chunk-QY6E755W.js";import"./chunk-UACX27D3.js";import"./chunk-VC72SWC4.js";import"./chunk-QGFC5ZUR.js";import"./chunk-GUH5TMOS.js";import"./chunk-RHW5QVAY.js";import"./chunk-66BSPEOQ.js";import{c as Z,e as J,i as ee,k as ne,s as te,t as oe}from"./chunk-USU2EHJV.js";import{b as V,d as H}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{a as q,g as Y,l as Q,t as j}from"./chunk-WRNQOX5R.js";import"./chunk-J3BBLPAD.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import{Ab as t,Bb as i,Cb as g,Jb as F,Oc as I,Qb as S,Ra as c,Rb as O,Sb as r,Vc as W,Wb as M,Yb as p,_ as C,bb as x,ea as P,ec as G,fa as f,fc as K,ic as U,oa as v,qc as u,rc as d,sc as m,ub as h,vb as N,zb as T,zc as X}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var _e=["formRef"],re=()=>["--skip-files-larger-than","dblock-size","encryption-module","no-encryption","--no-encryption","compression-module","--exclude-files-attributes","keep-time","keep-versions","retention-policy"];function ce(s,l){s&1&&(S(0,1,1),g(1,"sh-icon",20),O())}function pe(s,l){s&1&&(t(0,"p",21),r(1,6),i())}function ue(s,l){s&1&&(t(0,"p"),r(1,7),i())}function de(s,l){if(s&1){let n=F();t(0,"p"),r(1,8),i(),t(2,"app-timespan",18),m("ngModelChange",function(a){P(n);let o=p();return d(o.optionsFields.backupRetentionTime,a)||(o.optionsFields.backupRetentionTime=a),f(a)}),t(3,"label",30),r(4,9),i()()}if(s&2){let n=p();c(2),T("customId","backupRetentionTime"),u("ngModel",n.optionsFields.backupRetentionTime)}}function me(s,l){if(s&1){let n=F();t(0,"p"),r(1,10),i(),t(2,"sh-form-field")(3,"label",31),r(4,11),i(),t(5,"input",32),m("ngModelChange",function(a){P(n);let o=p();return d(o.optionsFields.backupRetentionVersions,a)||(o.optionsFields.backupRetentionVersions=a),f(a)}),i()()}if(s&2){let n=p();c(5),u("ngModel",n.optionsFields.backupRetentionVersions)}}function Se(s,l){s&1&&(t(0,"p"),r(1,12),i())}function Oe(s,l){if(s&1){let n=F();t(0,"p"),r(1,13),i(),t(2,"sh-form-field")(3,"p"),r(4,14),i(),t(5,"label",33),r(6,15),i(),t(7,"input",34),m("ngModelChange",function(a){P(n);let o=p();return d(o.optionsFields.backupRetentionCustom,a)||(o.optionsFields.backupRetentionCustom=a),f(a)}),i()()}if(s&2){let n=p();c(7),u("ngModel",n.optionsFields.backupRetentionCustom)}}var Te=["Bytes","KB","MB","GB","TB","PB"],ge=[{value:"all",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],Ce=1024*1024*1024*2,Pe=1024*1024*5,E=class s{#e=C(ie);#n=C(H);#t=C(V);formRef=W.required("formRef");selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;settings=this.#e.settings;optionsFields=this.#e.optionsFields;applicationOptions=this.#e.applicationOptions;retentionOptions=v(ge);sizeSplit=I(()=>{let n=this.optionsFields.remoteVolumeSize().match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);return{value:n?parseInt(n[1],10):0,unit:n?n[2].toUpperCase():"MB"}});exceededVolumeSize=I(()=>{let l=this.sizeSplit().value,n=this.sizeSplit().unit;if(l==null||n===null||n===void 0)return!1;let e=l*Math.pow(1024,Te.indexOf(n));return e>Ce||e<Pe});goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#t.parent})}submit(){this.#e.submit()}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=x({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(n,e){n&1&&G(e.formRef,_e,5),n&2&&K()},decls:30,vars:16,consts:()=>{let l;l=$localize`Options`;let n;n=$localize` Remote volume size ${"\uFFFD*7:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*7:1\uFFFD"}:CLOSE_BLOCK_IF:`;let e;e=$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#11\uFFFD"}:START_LINK: Read more ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-out${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#11\uFFFD"}:CLOSE_LINK:`;let a;a=$localize`Backup retention`;let o;o=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let b;b=$localize`${"\uFFFD#29\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let A;A=$localize` The chosen size is outside the recommended range. This may cause performance issues, excessively large temporary files or other problems. `;let R;R=$localize`Nothing will be deleted. The backup size will grow with each change.`;let y;y=$localize`If at least one newer backup is found, all backups older than this date are deleted.`;let $;$=$localize`Time to keep versions`;let k;k=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let w;w=$localize`Number of versions`;let D;D=$localize` Over time backups will be deleted automatically. There will remain one backup for each of the last 7 days, each of the last 4 weeks, each of the last 12 months. There will always be at least one remaining backup. `;let B;B=$localize` Enter a retention strategy manually. Placeholders are D/W/Y for days/weeks/years and U for unlimited. The syntax is: 7D:1D,4W:1W,36M:1M. This example keeps one backup for each of the next 7 days, one for each of the next 4 weeks, and one for each of the next 36 months. This can also be written as 1W:1D,1M:1W,3Y:1M. `;let L;L=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let z;return z=$localize`Retention expression`,[l,n,e,a,o,b,A,R,y,$,k,w,D,B,L,z,[1,"title-30"],[1,"remote-volume-wrap"],[3,"ngModelChange","customId","ngModel"],["for","size"],[1,"warning"],[1,"warn"],["href","https://forum.duplicati.com/t/choosing-sizes-in-duplicati/17683","target","_blank",1,"sh-primary"],["suffix",""],["value","value","label","name",3,"options","inlineSearch","isClearable"],["type","text",3,"ngModelChange","ngModel"],[3,"optionsChange","options","applicationOptions","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click"],["for","backupRetentionTime"],["for","backupRetentionVersions"],["type","number","id","backupRetentionVersions",3,"ngModelChange","ngModel"],["for","backupRetentionCustom"],["type","text","id","backupRetentionCustom",3,"ngModelChange","ngModel"]]},template:function(n,e){n&1&&(t(0,"section")(1,"h3",16),r(2,0),i(),t(3,"div",17)(4,"app-size",18),m("ngModelChange",function(o){return d(e.optionsFields.remoteVolumeSize,o)||(e.optionsFields.remoteVolumeSize=o),o}),t(5,"label",19),S(6,1),h(7,ce,2,0,"sh-icon",20),O(),i()(),h(8,pe,2,0,"p",21),t(9,"p"),S(10,2),t(11,"a",22),g(12,"sh-icon",23),i(),O(),i()(),t(13,"sh-select",24)(14,"label",19),r(15,3),i(),t(16,"input",25),m("ngModelChange",function(o){return d(e.optionsFields.backupRetention,o)||(e.optionsFields.backupRetention=o),o}),i()(),h(17,ue,2,0,"p")(18,de,5,2)(19,me,6,1)(20,Se,2,0,"p")(21,Oe,8,1),t(22,"app-options-list",26),m("optionsChange",function(o){return d(e.settings,o)||(e.settings=o),o}),i(),t(23,"div",27)(24,"button",28),M("click",function(){return e.goBack()}),S(25,4),g(26,"sh-icon"),O(),i(),t(27,"button",29),M("click",function(){return e.submit()}),S(28,5),g(29,"sh-icon"),O(),i()()()),n&2&&(c(4),T("customId","size"),u("ngModel",e.optionsFields.remoteVolumeSize),c(3),N(e.exceededVolumeSize()?7:-1),c(),N(e.exceededVolumeSize()?8:-1),c(5),T("options",e.retentionOptions())("inlineSearch",!0)("isClearable",!1),c(3),u("ngModel",e.optionsFields.backupRetention),c(),N(e.optionsFields.backupRetention()==="all"?17:e.optionsFields.backupRetention()==="time"?18:e.optionsFields.backupRetention()==="versions"?19:e.optionsFields.backupRetention()==="smart"?20:e.optionsFields.backupRetention()==="custom"?21:-1),c(5),u("options",e.settings),T("applicationOptions",e.applicationOptions())("hasFreeTextSettings",!0)("hiddenOptions",X(15,re)),c(5),U("loader",e.isSubmitting()))},dependencies:[te,Z,ne,J,ee,oe,le,Y,q,j,se,ae,Q],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}"],changeDetection:0})};export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-TJOWPBPB.js";import"./chunk-K3ZQ67VT.js";import"./chunk-CZLLEVMJ.js";import"./chunk-QY6E755W.js";import"./chunk-UACX27D3.js";import"./chunk-QGFC5ZUR.js";import"./chunk-OXOOR7I4.js";import"./chunk-GUH5TMOS.js";import"./chunk-66BSPEOQ.js";import"./chunk-CWBEE627.js";import"./chunk-USU2EHJV.js";import"./chunk-ETCRT3EV.js";import"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import"./chunk-WRNQOX5R.js";import"./chunk-J3BBLPAD.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-7AMBMWZP.js";import{b as A,c as G,d as T,e as R,f as V,j as q,o as $,q as B,r as Q,t as j}from"./chunk-USU2EHJV.js";import{a as k}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-7AMBMWZP.js";import{b as A,c as G,d as T,e as R,f as V,j as q,o as $,q as B,r as Q,t as j}from"./chunk-USU2EHJV.js";import{a as k}from"./chunk-ZGAC2JKG.js";import{d as D}from"./chunk-ETCRT3EV.js";import{d as x}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{a as E,b as O,g as P,i as I,l as F}from"./chunk-WRNQOX5R.js";import"./chunk-J3BBLPAD.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import{Ab as t,Bb as o,Cb as s,H as u,Jb as _,Pc as S,Ra as c,Vc as N,Wb as w,_ as p,bb as h,ea as g,ec as v,fa as f,fc as L,ic as y,lc as r,oa as m,ub as b,vb as C,zb as M}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";var H=["passwordInput"];function K(a,e){a&1&&(t(0,"sh-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),o())}var l=new Q,d=class a{#e=p(x);#t=p(D);rememberMe=k("rememberMe",!1,!0);failedLogin=m(!1);successLogin=m(!1);isLoading=m(!1);loginForm=l.group({user:l.control(""),pass:l.control("",T.required),rememberMe:l.control(this.rememberMe())});passwordInput=N("passwordInput");passwordEffect=S(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(e=>this.rememberMe.set(e??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass,n=this.loginForm.value.user;this.rememberMe.set(this.loginForm.value.rememberMe??!1),!n&&e&&(this.isLoading.set(!0),this.#t.login(e,this.rememberMe()).pipe(u(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=h({type:a,selectors:[["app-login"]],viewQuery:function(n,i){n&1&&v(i.passwordInput,H,5),n&2&&L()},decls:24,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(n,i){if(n&1){let X=_();t(0,"form",1),w("submit",function(){return g(X),f(i.submit())}),b(1,K,2,0,"sh-alert",2),t(2,"div",3),s(3,"app-logo"),o(),t(4,"div",4)(5,"div",5),s(6,"input",6),t(7,"sh-form-field")(8,"label",7),r(9," Password "),t(10,"a",8)(11,"sh-icon"),r(12,"question"),o()()(),s(13,"input",9,0),o(),t(15,"button",10),r(16," Login "),t(17,"sh-icon"),r(18,"arrow-right"),o()()(),t(19,"sh-checkbox",11),r(20," Keep me logged in "),s(21,"input",12),o(),t(22,"div",13),s(23,"label",14),o()()()}n&2&&(M("formGroup",i.loginForm),c(),C(i.failedLogin()&&!i.successLogin()?1:-1),c(14),y("loader",i.isLoading()))},dependencies:[j,q,G,A,R,V,$,B,z,F,E,P,O,I],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
1
|
+
import{a as v}from"./chunk-66BSPEOQ.js";import{b as L,d as j}from"./chunk-ETCRT3EV.js";import{e as f}from"./chunk-WRNQOX5R.js";import{h as b}from"./chunk-J3BBLPAD.js";import{qa as $}from"./chunk-WJPLJKPQ.js";import{Db as y,Dc as P,Eb as N,Fb as R,Fc as W,Oc as p,Pc as G,Q as E,Qb as I,Ra as O,Rb as _,Sb as w,Tb as A,Ub as F,V as h,_ as r,bb as M,f as m,i as k,oa as s}from"./chunk-QDFCX6XE.js";var S=class i{reconnectTimer=s(15e3);countdown=s(0);connectTimerEffect=G(()=>{let e=this.reconnectTimer();this.countdown.set(e/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let e;e=$localize`Reconnecting...`;let t;return t=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[e,t,["header",""],["content",""]]},template:function(t,n){t&1&&(y(0,"header",2)(1,"h3"),w(2,0),N()(),y(3,"div",3)(4,"p"),I(5,1),R(6,"strong"),P(7,"number"),_(),N()()),t&2&&(O(7),A(W(7,1,n.countdown(),"2.0-0")),F(5))},dependencies:[$],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var D=class i{dialog=r(f);#t=r(b);#i=s("disconnected");#n=s(null);#e=s(-1);#c=s(0);#l=s(!1);#u=new k;connectionStatus=this.#i.asReadonly();serverState=this.#n.asReadonly();#s=void 0;duration=r(L).relayIsEnabled()?"94s":"299s";start(){this.#l.set(!0),this.#u=new k,this.#o()}stop(){this.#u.next(),this.#u.complete(),this.#l.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){this.#l()||this.reconnect()}#o(){this.#i.set("connecting"),this.#t.getApiV1Serverstate({lastEventId:this.#e(),longpoll:this.#e()>=0,duration:this.duration}).pipe(E(this.#u)).subscribe({next:e=>{e&&this.#r(e),this.#a()},error:e=>{let n=this.#c()+1,a=Math.min(5e3*n,3e4);this.#c.set(n),n>3&&this.#i.set("disconnected"),this.#s||(this.#s=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#s.component.reconnectTimer.set(a),setTimeout(()=>{this.#o()},a)}})}#r(e){this.#i.set("connected"),this.#n.set(e),this.#e.set(e.LastEventID??-1),this.#c.set(0)}#a(){this.#l()&&this.#o()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};var u=!1,T=class i{#t=r(j);#i=r(v);dialog=r(f);#n=null;#e=s("disconnected");#c=s(null);#l=s(null);#u=s(null);#s=s(null);#o=void 0;#r=s({legacystatus:!0});shouldConnect=s(!0);connectionStatus=this.#e.asReadonly();serverState=this.#c.asReadonly();serverProgress=this.#l.asReadonly();subscriptions=this.#r.asReadonly();serverTaskQueue=this.#u.asReadonly();backupListState=this.#s.asReadonly();#a=null;taskCompleted=new m(e=>{this.#a=e});#h=0;start(){this.#d(),this.shouldConnect.set(!0)}#d(){let e=this.#t.token();if(!e){console.error("No access token available");return}let t=window.location.protocol==="https:"?"wss:":"ws:",n=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(n=":8200");let a=window.location.hostname,g=this.#i.hasWebSocketAuth()?`${t}//${a}${n}/notifications`:`${t}//${a}${n}/notifications?token=${e}`;this.#e.set("connecting"),this.#n=new WebSocket(g),this.#n.onopen=()=>{u&&console.log("WebSocket connection established"),this.#i.hasWebSocketAuth()?(this.#e.set("authenticating"),this.#n?.send(JSON.stringify({Version:1,Token:e}))):this.#p()},this.#n.onmessage=d=>{if(this.#e()==="authenticating")try{let o=JSON.parse(d.data);o.Success?(u&&console.log("WebSocket authentication successful"),this.#p()):(console.error("WebSocket authentication failed:",o.Message),this.#e.set("disconnected"));return}catch(o){console.error("Error parsing WebSocket authentication reply",o),this.#e.set("disconnected");return}try{let o=JSON.parse(d.data),l=o?.Type;if(l==="legacystatus"||l==null)u&&console.log("Received legacy status update:",o),this.#c.set(o);else if(l==="reply"){let c=o;c.Success||console.error("WebSocket reply error:",c.Message)}else if(l==="progress"){let c=o;u&&console.log("Received progress update:",c.Data),this.#l.set(c.Data)}else if(l==="taskqueue"){let c=o;u&&console.log("Received task update:",c.Data),this.#u.set(c.Data)}else if(l==="taskcompleted"){let c=o;u&&console.log("Received task completed:",c.Data),this.#a?.next(c.Data)}else if(l==="backuplist"){let c=o;u&&console.log("Received backup list update:",c.Data),this.#s.set(c.Data)}else console.warn("Unknown WebSocket message type:",l)}catch(o){console.error("Error parsing WebSocket message",o)}},this.#n.onclose=d=>{u&&console.log("WebSocket connection closed",d),this.#e.set("disconnected"),this.shouldConnect()&&(this.#o||(this.#o=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#o.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#d(),5e3))},this.#n.onerror=d=>{console.error("WebSocket error",d),this.#e.set("disconnected")}}#p(){this.#e.set("connected");let e=this.#r();Object.keys(e).length>0&&Object.entries(e).forEach(([t,n])=>{n!=null&&this.sendSubscribeRequest(t,n)}),this.#o&&this.#o.close()}stop(){this.shouldConnect.set(!1),this.#n?.close()}reconnect(){this.#n?.close(),this.start()}reconnectIfNeeded(){this.#n?.readyState!==WebSocket.OPEN&&this.reconnect()}sendSubscribeRequest(e,t){this.#n?.send(JSON.stringify({Version:1,Id:`req-${++this.#h}`,Action:"sub",Service:e,Data:t||null}))}subscribe(e,t=void 0){let n=this.#r(),a=n[e];(!a||JSON.stringify(a)!==JSON.stringify(t||!0))&&(n[e]=t||!0,this.#r.set(n),this.#e()=="connected"&&this.sendSubscribeRequest(e,t))}unsubscribe(e){let t=this.#r();t[e]&&(delete t[e],this.#r.set(t),this.#e()=="connected"&&this.#n?.send(JSON.stringify({Version:1,Id:`req-${++this.#h}`,Action:"unsub",Service:e})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};var x=10,q=class i{#t=r(T);#i=r(D);#n=r(b);#e=r(v);#c=s("longpoll");#l=s(!1);#u=p(()=>this.#e.hasTaskCompletedOption()&&this.#c()==="websocket");#s={};#o=null;#r=!1;#a=[];constructor(){this.#t.subscribe("taskcompleted"),this.#t.taskCompleted.subscribe(e=>{if(this.#a.unshift(e),this.#a.length>x&&this.#a.pop(),!e.ID)return;let t=this.#s[e.ID];t&&(t.forEach(n=>{n.next(e),n.complete()}),delete this.#s[e.ID])})}connectionStatus=p(()=>this.#c()==="websocket"?this.#t.connectionStatus():this.#i.connectionStatus());isConnectionMethodSet=this.#l.asReadonly();serverState=p(()=>this.#c()==="websocket"?this.#t.serverState():this.#i.serverState());progressState=this.#t.serverProgress;taskQueueState=this.#t.serverTaskQueue;activeTaskQueueState=p(()=>this.#c()==="websocket"?this.#t.serverTaskQueue()?.map(t=>t.ID).filter(t=>t)??[]:(this.#i.serverState()?.SchedulerQueueIds??[]).map(t=>t.Item1).filter(t=>t));backupListState=p(()=>this.#t.backupListState());setConnectionMethod(e){e==="websocket"?(this.#t.reconnectIfNeeded(),this.#i.stop()):(this.#i.reconnectIfNeeded(),this.#t.stop()),this.#c.set(e),this.#l.set(!0)}getConnectionMethod(){return this.#c()}subscribe(e,t=null){this.#t.subscribe(e,t)}unsubscribe(e){this.#t.unsubscribe(e)}waitForTaskToComplete(e){return new m(t=>{let n=this.#a.find(a=>a.ID===e);if(n){t.next(n),t.complete();return}this.#s[e]=this.#s[e]||[],this.#s[e].push(t),this.#h()})}#h(){this.#r||this.#u()||(this.#r=!0,this.#d())}#d(){let e=Object.keys(this.#s).map(n=>parseInt(n,10));if(e.length===0){this.#p();return}let t=Math.min(...e);this.#n.getApiV1TaskByTaskid({taskid:t}).subscribe({next:n=>{n.TaskFinished!=null&&(this.#a.unshift(n),this.#a.length>x&&this.#a.pop(),this.#s[t].forEach(g=>{g.next(n),g.complete()}),delete this.#s[t])},complete:()=>{this.#o=window.setTimeout(()=>{this.#d()},1e3)},error:n=>{this.#o=window.setTimeout(()=>{this.#d()},3e3)}})}#p(){this.#o!==null&&(clearTimeout(this.#o),this.#o=null),this.#r=!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R}from"./chunk-
|
|
1
|
+
import{a as R}from"./chunk-WWFNG47J.js";import{b}from"./chunk-QGFC5ZUR.js";import"./chunk-XNVRJH42.js";import"./chunk-3UN32GIC.js";import"./chunk-OXOOR7I4.js";import"./chunk-GUH5TMOS.js";import"./chunk-RHW5QVAY.js";import"./chunk-66BSPEOQ.js";import"./chunk-CWBEE627.js";import"./chunk-USU2EHJV.js";import"./chunk-ZGAC2JKG.js";import"./chunk-ETCRT3EV.js";import{b as N,e as B}from"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import{a as A,g as O}from"./chunk-WRNQOX5R.js";import{h}from"./chunk-J3BBLPAD.js";import"./chunk-B5FUQFEQ.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-73RDJP55.js";import{Ab as F,Bb as a,Cb as _,Oc as M,Qb as c,Ra as i,Rb as d,Sb as l,Vb as T,Wb as I,_ as D,bb as f,lc as E,nc as L,oa as r,ub as s,vb as u,wb as g,xb as S,yb as p}from"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";function $(e,t){e&1&&l(0,2,1)}function k(e,t){e&1&&l(0,2,2)}function P(e,t){e&1&&l(0,2,3)}function v(e,t){e&1&&l(0,2,4)}function U(e,t){if(e&1&&(E(0),_(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var C=class e{#t=D(h);#e=D(N);#n=b(this.#e.params);runId=M(()=>this.#n()?.runId);offset=r(0);status=r("starting");messageLog=r([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=f({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","shButton","","routerLink","../",1,"small"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(_(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),c(4,0),_(5,"sh-icon"),d(),a()(),F(6,"h3"),c(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),d(),a(),F(9,"div",6),c(10,2),s(11,$,1,0),s(12,k,1,0),s(13,P,1,0),s(14,v,1,0),d(),a(),F(15,"code"),S(16,U,2,1,null,null,g),a()()),n&2&&(i(11),u(o.status()==="starting"?11:-1),i(),u(o.status()==="started"?12:-1),i(),u(o.status()==="finished"?13:-1),i(),u(o.status()==="aborted"?14:-1),i(2),p(o.messageLog()))},dependencies:[R,A,O,B],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-TJOWPBPB.js";import"./chunk-K3ZQ67VT.js";import"./chunk-CZLLEVMJ.js";import"./chunk-QY6E755W.js";import"./chunk-UACX27D3.js";import"./chunk-QGFC5ZUR.js";import"./chunk-OXOOR7I4.js";import"./chunk-GUH5TMOS.js";import"./chunk-66BSPEOQ.js";import"./chunk-CWBEE627.js";import"./chunk-USU2EHJV.js";import"./chunk-ETCRT3EV.js";import"./chunk-L2EO4M4B.js";import"./chunk-4YL5DZVH.js";import"./chunk-WRNQOX5R.js";import"./chunk-J3BBLPAD.js";import"./chunk-WJPLJKPQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-QDFCX6XE.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreOptionsForm,b as default};
|