@duplicati/ngclient 0.0.85 → 0.0.88
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/chunk-25GEPULG.js +1 -0
- package/{chunk-DNDOALN6.js → chunk-2D7EACVA.js} +1 -1
- package/{chunk-SWGKS3QC.js → chunk-3BNXVXL5.js} +1 -1
- package/{chunk-7G6LF4RE.js → chunk-3CXMAX4S.js} +1 -1
- package/{chunk-AYWJL6PH.js → chunk-3T23UBO4.js} +1 -1
- package/{chunk-WWJFELTU.js → chunk-453FQ4EQ.js} +1 -1
- package/{chunk-C5EHOW7U.js → chunk-4RXMJUN5.js} +1 -1
- package/{chunk-DALX7AMG.js → chunk-5JYSV4UD.js} +1 -1
- package/chunk-5KNWZI2J.js +3 -0
- package/chunk-5OX72VKG.js +1 -0
- package/{chunk-IZYAOMPF.js → chunk-5XP5TOQE.js} +1 -1
- package/chunk-7CDKTUA7.js +6 -0
- package/chunk-AM4I6XHR.js +1 -0
- package/{chunk-W4MEGIZH.js → chunk-AUVMOLMG.js} +1 -1
- package/{chunk-DW725235.js → chunk-BIVRH4JH.js} +1 -1
- package/{chunk-RTVM3BJK.js → chunk-BRWHKZV2.js} +1 -1
- package/{chunk-L5D4JLN3.js → chunk-C2JCNHTZ.js} +1 -1
- package/chunk-CDH4KG7H.js +1 -0
- package/{chunk-7LP2EQ7M.js → chunk-CKQFBLHP.js} +1 -1
- package/chunk-CLJTLGUH.js +1 -0
- package/chunk-DJD73EPX.js +1 -0
- package/{chunk-XFS2LSEM.js → chunk-F4QKO25T.js} +1 -1
- package/chunk-FDQ7IWYZ.js +1 -0
- package/{chunk-XB5GDNN5.js → chunk-G3LEXMG4.js} +1 -1
- package/{chunk-KIB4MYBL.js → chunk-G76GVTZW.js} +1 -1
- package/{chunk-7IPKE42T.js → chunk-GLM4XFEI.js} +1 -1
- package/chunk-GMW5Y454.js +1 -0
- package/{chunk-OQ3EADZK.js → chunk-GUJTHKVP.js} +1 -1
- package/{chunk-RGSJ6UVN.js → chunk-GWK5ZGTC.js} +1 -1
- package/chunk-H3MGI3SF.js +1 -0
- package/chunk-IOCSGWZ3.js +1 -0
- package/chunk-JJOXLPZI.js +1 -0
- package/{chunk-4A4CWPH7.js → chunk-K3LOA2DX.js} +1 -1
- package/chunk-KD4DXWHW.js +1 -0
- package/{chunk-YOP6HOXH.js → chunk-KDCTRSPO.js} +1 -1
- package/chunk-KL4KTR4Z.js +1 -0
- package/chunk-KTUAPEOD.js +1 -0
- package/chunk-LVA7V7CT.js +1 -0
- package/chunk-M5PD5WBV.js +1 -0
- package/{chunk-P6HOXQHE.js → chunk-MHTKXCYS.js} +1 -1
- package/chunk-N7DO2BHU.js +1 -0
- package/chunk-N7MNI34K.js +1 -0
- package/{chunk-Y5WADXF5.js → chunk-O4ZJY3TF.js} +1 -1
- package/chunk-ODIN2IGP.js +1 -0
- package/chunk-OEVX57MC.js +1 -0
- package/{chunk-PHQM25ND.js → chunk-Q3SDBZEH.js} +1 -1
- package/{chunk-IYQIIJKE.js → chunk-RZ4FUSBJ.js} +1 -1
- package/{chunk-Y2422GIA.js → chunk-SK5UJPNU.js} +1 -1
- package/{chunk-G3KME6QI.js → chunk-SXPBIWPS.js} +1 -1
- package/{chunk-PPRHD3ZV.js → chunk-UIOTKB6J.js} +1 -1
- package/{chunk-AO6V5EDZ.js → chunk-UJMJKY2E.js} +1 -1
- package/{chunk-MNR2YI5Q.js → chunk-UK7OJJ5S.js} +1 -1
- package/{chunk-UXQIJ2H5.js → chunk-UUNZQKSW.js} +1 -1
- package/{chunk-AXHB6A4N.js → chunk-W3VTD2H4.js} +1 -1
- package/{chunk-MCLDJCPW.js → chunk-W4YAOQRI.js} +1 -1
- package/chunk-W7Y2VKMS.js +6 -0
- package/{chunk-7LRQSKYZ.js → chunk-WJQN3BOF.js} +1 -1
- package/{chunk-7IRVNC4S.js → chunk-WYTHNCNI.js} +1 -1
- package/{chunk-7QNL2MJX.js → chunk-Z4U4LDKL.js} +1 -1
- package/{chunk-JGOWJDLZ.js → chunk-Z55AE6ZP.js} +1 -1
- package/{chunk-NNUHZ2L7.js → chunk-ZHFVGIIO.js} +1 -1
- package/{chunk-2M52SFS6.js → chunk-ZSSQBIRK.js} +6 -6
- package/chunk-ZZPLRWQP.js +1 -0
- package/index.html +2 -2
- package/{main-JZ3UOPVL.js → main-QHLXX2KA.js} +1 -1
- package/package.json +1 -1
- package/styles-EJ7NNNKB.css +1 -0
- package/chunk-2VH4NDQH.js +0 -1
- package/chunk-2WZR3NHU.js +0 -6
- package/chunk-4WK5KLP3.js +0 -1
- package/chunk-6RMLOIRD.js +0 -1
- package/chunk-CI7PYMKD.js +0 -1
- package/chunk-DTCM7OB2.js +0 -1
- package/chunk-FMSANFAF.js +0 -1
- package/chunk-FQPMHKLD.js +0 -1
- package/chunk-FXXGCONI.js +0 -1
- package/chunk-G56SHWBZ.js +0 -1
- package/chunk-LJ3ULEOG.js +0 -1
- package/chunk-MADB4EX7.js +0 -1
- package/chunk-OKERRNQC.js +0 -6
- package/chunk-PNJEVGID.js +0 -1
- package/chunk-R2HH6TYJ.js +0 -1
- package/chunk-TO5QMMUQ.js +0 -1
- package/chunk-UIC2LGAH.js +0 -1
- package/chunk-WLQUMVWA.js +0 -1
- package/chunk-WQDSSB2V.js +0 -3
- package/chunk-X6SCWL5V.js +0 -1
- package/chunk-XKAASYKO.js +0 -1
- package/chunk-YO6IQOER.js +0 -1
- package/chunk-ZLMSSTXT.js +0 -1
- package/chunk-ZNTSJUHI.js +0 -1
- package/styles-HDO6WYV2.css +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{W as T}from"./chunk-
|
|
1
|
+
import{W as T}from"./chunk-WYTHNCNI.js";var h=":",M="|",B="@@",R="\u241F",A;function U(t){A??=new TextEncoder;let e=A.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=L(n,e.length,0),s=L(n,e.length,102072);return i==0&&(s==0||s==1)&&(i=i^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(i))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function j(t,e=""){let n=U(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=U(e)),BigInt.asUintN(63,n).toString()}function L(t,e,n){let i=2654435769,s=2654435769,r=0,u=e-12;for(;r<=u;r+=12){i+=t.getUint32(r,!0),s+=t.getUint32(r+4,!0),n+=t.getUint32(r+8,!0);let o=N(i,s,n);i=o[0],s=o[1],n=o[2]}let a=e-r;return n+=e,a>=4?(i+=t.getUint32(r,!0),r+=4,a>=8?(s+=t.getUint32(r,!0),r+=4,a>=9&&(n+=t.getUint8(r++)<<8),a>=10&&(n+=t.getUint8(r++)<<16),a===11&&(n+=t.getUint8(r++)<<24)):(a>=5&&(s+=t.getUint8(r++)),a>=6&&(s+=t.getUint8(r++)<<8),a===7&&(s+=t.getUint8(r++)<<16))):(a>=1&&(i+=t.getUint8(r++)),a>=2&&(i+=t.getUint8(r++)<<8),a===3&&(i+=t.getUint8(r++)<<16)),N(i,s,n)[2]}function N(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function v(t,e,n,i,s=[]){let r={},u={},a={},o=k(t[0],t.raw[0]),c=[o.text],m=[],d=o.text;for(let l=1;l<t.length;l++){let{messagePart:x,placeholderName:f=b(l),associatedMessageId:I}=w(t[l],t.raw[l]);d+=`{$${f}}${x}`,e!==void 0&&(r[f]=e[l-1],u[f]=s[l-1]),m.push(f),I!==void 0&&(a[f]=I),c.push(x)}let $=o.customId||j(d,o.meaning||""),D=o.legacyIds?o.legacyIds.filter(l=>l!==$):[];return{id:$,legacyIds:D,substitutions:r,substitutionLocations:u,text:d,customId:o.customId,meaning:o.meaning||"",description:o.description||"",messageParts:c,messagePartLocations:i,placeholderNames:m,associatedMessageIds:a,location:n}}function k(t,e){let{text:n,block:i}=E(t,e);if(i===void 0)return{text:n};{let[s,...r]=i.split(R),[u,a]=s.split(B,2),[o,c]=u.split(M,2);return c===void 0&&(c=o,o=void 0),c===""&&(c=void 0),{text:n,meaning:o,description:c,customId:a,legacyIds:r}}}function w(t,e){let{text:n,block:i}=E(t,e);if(i===void 0)return{messagePart:n};{let[s,r]=i.split(B);return{messagePart:n,placeholderName:s,associatedMessageId:r}}}function E(t,e){if(e.charAt(0)!==h)return{text:t};{let n=z(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function b(t){return t===1?"PH":`PH_${t-1}`}function z(t,e){for(let n=1,i=1;n<t.length;n++,i++)if(e[i]==="\\")i++;else if(t[n]===h)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var g=class extends Error{parsedMessage;type="MissingTranslationError";constructor(e){super(`No translation found for ${O(e)}.`),this.parsedMessage=e}};function C(t,e,n){let i=v(e,n),s=t[i.id];if(i.legacyIds!==void 0)for(let r=0;r<i.legacyIds.length&&s===void 0;r++)s=t[i.legacyIds[r]];if(s===void 0)throw new g(i);return[s.messageParts,s.placeholderNames.map(r=>{if(i.substitutions.hasOwnProperty(r))return i.substitutions[r];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${O(i)}.
|
|
2
2
|
The translation contains a placeholder with name ${r}, which does not exist in the message.`)})]}function P(t){let e=t.split(/{\$([^}]*)}/),n=[e[0]],i=[];for(let r=1;r<e.length-1;r+=2)i.push(e[r]),n.push(`${e[r+1]}`);let s=n.map(r=>r.charAt(0)===h?"\\"+r:r);return{text:t,messageParts:G(n,s),placeholderNames:i}}function G(t,e){return Object.defineProperty(t,"raw",{value:e}),t}function O(t){let e=t.meaning&&` - "${t.meaning}"`,n=t.legacyIds&&t.legacyIds.length>0?` [${t.legacyIds.map(i=>`"${i}"`).join(", ")}]`:"";return`"${t.id}"${n} ("${t.text}"${e})`}function S(t){$localize.translate||($localize.translate=_),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=P(t[e])})}function _(t,e){try{return C($localize.TRANSLATIONS,t,e)}catch(n){return console.warn(n.message),[t,e]}}var p="en-US",F=["en-US","en-GB","de-DE","fr-FR","da-DK"],y={"en-US":"en","en-GB":"en-GB","da-DK":"da","de-DE":"de","fr-FR":"fr"},W=[{value:"en-US",label:"English (en-US)"},{value:"en-GB",label:"English (en-GB)"},{value:"fr-FR",label:"French"},{value:"de-DE",label:"German"},{value:"da-DK",label:"Danish"}];function Y(t){return t?y[t]??"en":"en"}function q(){let t=localStorage.getItem("v1:duplicati:locale")||p,e=F.find(i=>i===t)??p,n=y[e];return e===p||(import(`/locale/angular/${n}.mjs`).then(i=>T(i.default)),fetch(`/locale/messages.${e}.json`).then(i=>i.json()).then(i=>{S(i.translations),$localize.locale=e})),e}export{W as a,Y as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as $}from"./chunk-ODIN2IGP.js";import{a as R}from"./chunk-25GEPULG.js";import"./chunk-WJQN3BOF.js";import"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import"./chunk-W3VTD2H4.js";import"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{b as k}from"./chunk-UIOTKB6J.js";import{a as A,d as N}from"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as B,g as O}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as a,Bb as r,Jc as M,Lb as _,Mb as c,Nb as u,Pa as i,Qb as T,Rb as I,W as m,cb as C,ec as E,gc as L,hb as p,sa as l,vb as s,wb as f,xb as S,yb as g,zb as F}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);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=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_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","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],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:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as K}from"./chunk-3T23UBO4.js";import{a as Ie}from"./chunk-BIVRH4JH.js";import{a as U}from"./chunk-ODIN2IGP.js";import{a as Ee,b as h,d as k,e as M,h as L,j as de,m as $,p as D,q as y,r as Oe,s as A}from"./chunk-5OX72VKG.js";import{b as I}from"./chunk-UIOTKB6J.js";import{a as P,c as d}from"./chunk-N7DO2BHU.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,w as Pe}from"./chunk-CDH4KG7H.js";import{pa as Y}from"./chunk-WYTHNCNI.js";import{Ab as a,B as ae,Bb as l,C as E,Cb as V,Db as X,Fb as x,G as le,L as _e,Lb as c,Lc as q,Mb as u,Nb as g,Ob as ue,Pa as F,Pb as Fe,Q as pe,Rb as T,Sb as B,W as _,ba as C,ca as R,cb as N,ec as z,f as re,hb as w,hc as Se,pc as me,qb as S,sa as p,sb as ce,u as se,uc as ge,vb as G,wc as Te,zb as s}from"./chunk-ZSSQBIRK.js";var he=new y,Le=()=>he.group({passphrase:he.control("")}),H=class n{#t=_(I);#e=_(O);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(E(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let r=i.ID;this.#e.getBackup(r),this.#o.navigate([`/restore-draft/${r}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(s(0,"form",3),T("submit",function(){return o.next()}),s(1,"spk-form-field")(2,"label",4),g(3,0),a(),l(4,"input",5),a(),s(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),s(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&S("formGroup",o.encryptionForm)},dependencies:[A,L,h,k,M,$,D,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function ye(n,t){n&1&&l(0,"spk-progress-bar",7)}function Ae(n,t){if(n&1&&(s(0,"div",13),z(1),ge(2,"date"),a()),n&2){let e=t.$implicit;F(),Se("",e.Version,": ",Te(2,2,e.Time,"medium"),"")}}function be(n,t){n&1&&l(0,"spk-progress-bar",7)}function ve(n,t){if(n&1&&(s(0,"app-file-tree",14)(1,"label",15),g(2,4),a(),l(3,"input",16),a()),n&2){let e=B(3);S("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function we(n,t){if(n&1&&w(0,ve,4,4,"app-file-tree",14),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function Ge(n,t){if(n&1){let e=x();s(0,"spk-select-new",11),T("cleared",function(){C(e);let i=B();return R(i.abortLoading())}),l(1,"input",12),w(2,Ae,3,5,"ng-template"),a(),w(3,be,1,0,"spk-progress-bar",7)(4,we,1,1)}if(n&2){let e=B();S("options",e.versionOptions())("isClearable",!0),F(3),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),F(),G(e.showFileTree()?4:-1)}}var j=new y,$e=()=>j.group({filesToRestore:j.control(""),selectedOption:j.control(null),passphrase:j.control(null)}),Q=class n{#t=_(I);#e=_(O);#o=_(d);#i=_(P);#n=_(Y);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);rootPath=p(void 0);loadingRootPath=p(!1);isRepairing=p(!1);backupSettingsEffect=q(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(r=>r.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let r={id:t+"",time:i};this.backupSettings.set(r),this.getRootPath(r)}))});repairEffect=q(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(E(()=>this.isRepairing.set(!1))).subscribe()}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(_e(this.abortLoading$),E(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}abortLoading$=new re;abortLoading(){this.showFileTree.set(!1),this.loadingRootPath.set(!1),this.abortLoading$.next(!0)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[me([Y])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let r;return r=$localize`Path`,[["formRef",""],t,e,o,r,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",i,"formControlName","selectedOption"],[1,"custom-option"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();s(0,"form",5,0),T("submit",function(){return C(i),R(o.next())}),s(2,"h3",6),g(3,1),a(),w(4,ye,1,0,"spk-progress-bar",7)(5,Ge,5,4),s(6,"div",8)(7,"button",9),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),s(10,"button",10),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(S("formGroup",o.selectFilesForm),F(4),G(o.versionOptionsLoading()?4:5),F(5),ue(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[Oe,L,h,k,M,A,$,D,Y,K,v,b,Ne,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var O=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=$e();optionsForm=De();encryptionForm=Le();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(r=>r.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(r=>`${r}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:r=>{console.error("restore error",r)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),se([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(le(3))]).pipe(ae(1),E(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=pe({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new y,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),Z=class n{#t=_(O);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let r;r=$localize`How do you want to handle existing files?`;let f;f=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let ee;ee=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,r,f,ee,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();s(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),s(2,"h3",13),g(3,1),a(),s(4,"app-toggle-card",14),V(5,15),g(6,2),X(),s(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),s(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),s(13,"app-file-tree",19)(14,"label",20),z(15,"Path"),a(),l(16,"input",21),a()(),s(17,"app-toggle-card",14),V(18,15),g(19,5),X(),s(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),s(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),s(26,"app-toggle-card"),V(27,15),g(28,8),X(),s(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),s(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),s(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;S("formGroup",o.optionsForm),F(4),S("disallowToggle",!0),F(9),S("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),F(4),S("disallowToggle",!0),F(19),ce("loader",o.isSubmitting())}},dependencies:[A,L,h,Ee,de,k,M,$,D,Ie,K,Pe,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,Z as b,Le as c,H as d,$e as e,Q as f,O as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-KDCTRSPO.js";import"./chunk-UIOTKB6J.js";import{a as w,m as D}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import{ia as A}from"./chunk-WYTHNCNI.js";import{Ab as r,Eb as u,Fb as v,Jc as $,Nb as P,Pa as l,Rb as k,Sb as s,W as y,ba as O,ca as x,cb as T,dc as C,ec as p,fc as E,hb as a,qb as d,rb as h,rc as _,sa as m,sb as f,sc as N,vb as g,xb as I,xc as F,yb as M,zb as c}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as ae}from"./chunk-ODIN2IGP.js";import{a as te}from"./chunk-25GEPULG.js";import"./chunk-WJQN3BOF.js";import"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import{a as j}from"./chunk-W3VTD2H4.js";import{b as H,d as J,g as Q,r as Y}from"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{b as W}from"./chunk-UIOTKB6J.js";import{a as z,d as q}from"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as Z,g as x,l as ee}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as a,B as g,Bb as l,C as u,Jc as C,K as k,Lb as r,Lc as h,Mb as p,Nb as T,Ob as L,Pa as s,Pb as U,Rb as A,W as D,cb as y,ec as E,hb as v,jc as w,kc as X,lc as V,o as O,qb as F,sa as c,sb as P,ub as G,vb as K,zb as i}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),E(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),E(1,"warning"),a())}var m=class S{#a=D(z);#i=D(j);#e=D(W);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=C(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=C(()=>this.lastValidatedPath()===this.backupFilePath());backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:15,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[Y,H,J,Q,te,x,ee,Z,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as a,j as b}from"./chunk-W7Y2VKMS.js";import"./chunk-3T23UBO4.js";import"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b,e as c}from"./chunk-W7Y2VKMS.js";import"./chunk-3T23UBO4.js";import"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-AM4I6XHR.js")},{path:"destination",loadComponent:()=>import("./chunk-IOCSGWZ3.js")},{path:"source-data",loadComponent:()=>import("./chunk-KD4DXWHW.js")},{path:"schedule",loadComponent:()=>import("./chunk-KL4KTR4Z.js")},{path:"options",loadComponent:()=>import("./chunk-H3MGI3SF.js")}];export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-
|
|
1
|
+
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-WYTHNCNI.js";import{za as a}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as a,n as b}from"./chunk-W7Y2VKMS.js";import"./chunk-3T23UBO4.js";import"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-UIOTKB6J.js";import{C as i,Jc as p,M as l,Q as n,W as a,sa as s}from"./chunk-ZSSQBIRK.js";var f=class r{#e=a(u);isLoaded=s(!1);systemInfo=s(null);filterGroups=s(null);backendModules=p(()=>this.systemInfo()?.BackendModules??[]);preload(t=!1){let e=this.#e.getApiV1Systeminfo().pipe(l(o=>{this.systemInfo.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}preloadFilterGroups(t=!1){let e=this.#e.getApiV1SysteminfoFiltergroups().pipe(l(o=>{this.filterGroups.set(o)}),i(()=>this.isLoaded.set(!0)));if(t)return e;e.subscribe()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})};export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as a,l as b}from"./chunk-W7Y2VKMS.js";import"./chunk-3T23UBO4.js";import"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-BRWHKZV2.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as ye}from"./chunk-W7Y2VKMS.js";import{a as xt}from"./chunk-3T23UBO4.js";import{a as bt}from"./chunk-BIVRH4JH.js";import"./chunk-DNHLTHLR.js";import{a as Ne}from"./chunk-ODIN2IGP.js";import{a as Fe}from"./chunk-G76GVTZW.js";import{a as ae}from"./chunk-KDCTRSPO.js";import{a as Gt}from"./chunk-453FQ4EQ.js";import"./chunk-BRWHKZV2.js";import{a as Mt}from"./chunk-CKQFBLHP.js";import{a as $t}from"./chunk-25GEPULG.js";import"./chunk-WJQN3BOF.js";import"./chunk-C2JCNHTZ.js";import"./chunk-AUVMOLMG.js";import"./chunk-W3VTD2H4.js";import{a as ht,b as V,d as X,e as re,g as le,h as _e,i as Pt,k as It,m as pe,n as ce,p as me,q as de,r as ue,s as Se}from"./chunk-5OX72VKG.js";import"./chunk-ZZPLRWQP.js";import{b as A}from"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import{a as ge,b as Rt,g as Te,k as yt,l as z,n as Ft,o as vt,p as At,q as wt,r as fe,w as Ce,x as Ee}from"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-2D7EACVA.js";import{Ab as o,Bb as f,C as v,Cb as ee,Db as te,Eb as gt,Fb as O,Jc as D,Lb as G,Lc as L,Mb as $,Na as mt,Nb as _,Ob as W,Pa as r,Pb as K,Q as Y,Qb as ne,Rb as S,Sb as l,Vb as y,W as N,Wa as dt,Xb as M,Yb as Re,b as ct,ba as C,bc as Tt,ca as E,cb as w,cc as ft,dc as ie,ec as c,fc as oe,gc as h,hb as u,jc as x,k as q,kc as b,lc as k,nb as ut,ob as St,pc as Ct,qb as d,qc as Et,rc as Nt,sa as g,sb as P,sc as Ot,vb as T,wb as he,x as H,xb as Pe,xc as se,yb as Ie,zb as s}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";var U=class i{#e=N(A);#i=Ne(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=D(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return ct(v(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};var Xt=["formRef"],zt=()=>[import("./chunk-K3LOA2DX.js").then(i=>i.NgTemplateOutlet)],Ut=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Bt=i=>({$implicit:i});function qt(i,n){if(i&1){let e=O();G(0,5,1),s(1,"button",16,2),S("click",function(){let a=C(e).$implicit,m=l();return E(m.addNewOption(a))}),o(),$()}if(i&2){let e=n.$implicit;r(),W(e.name),K(0)}}function Ht(i,n){i&1&>(0)}function Wt(i,n){if(i&1&&u(0,Ht,1,0,"ng-container",17),i&2){let e=n.$implicit,t=n.$index;l(2);let a=ie(15);d("ngTemplateOutlet",a)("ngTemplateOutletContext",Nt(5,Bt,Ot(2,Ut,t,e)))}}function Kt(i,n){if(i&1&&Pe(0,Wt,1,7,"ng-container",null,he),i&2){let e=l();Ie(e.selectedOptions())}}function jt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Qt(i,n){if(i&1&&(s(0,"app-file-tree",20)(1,"label",25),c(2),u(3,jt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Zt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Jt(i,n){if(i&1&&(s(0,"app-file-tree",21)(1,"label",25),c(2),u(3,Zt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Yt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function en(i,n){i&1&&(s(0,"spk-icon",28),c(1,"link"),o())}function tn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"textbox"),o())}function nn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Yt,3,1,"spk-tooltip",26),o(),f(4,"input",27),u(5,en,2,0,"spk-icon",28)(6,tn,2,0,"spk-icon",28),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function on(i,n){if(i&1){let e=O();s(0,"span",32),S("click",function(){C(e);let a=l(2).$implicit,m=l();return E(m.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function sn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"password"),o())}function an(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function rn(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function ln(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),o(),f(3,"input",29),u(4,on,2,0,"span",30)(5,sn,2,0,"spk-icon",28)(6,an,2,0,"spk-icon",31)(7,rn,2,0,"spk-icon",31),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),d("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function _n(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function pn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function cn(i,n){if(i&1&&(s(0,"spk-select-new",34)(1,"label",25),c(2),u(3,_n,3,1,"spk-tooltip",26),o(),f(4,"input",27),o(),u(5,pn,1,1,"ng-template",null,3,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("isClearable",!1)("optionTemplate",t),r(),Re("for","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),Re("id","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),y("formControlName",a.formView.name)}}function mn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(s(0,"div",22)(1,"label",25),c(2),u(3,mn,3,1,"spk-tooltip",26),o(),s(4,"div",35)(5,"spk-form-field"),f(6,"input",36),s(7,"spk-icon",28),c(8,"resize"),o()(),s(9,"spk-select-new",37),f(10,"input",38),o()()()),i&2){let e,t=l().$implicit,a=l();d("formGroupName",t.formView.name),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),M("id","destination-",t.formGroupName,"-",t.index,""),r(3),d("options",a.sizeOptions())("inlineSearch",!0)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,un,3,1,"spk-tooltip",26),o(),f(4,"input",39),s(5,"spk-icon",28),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Tn(i,n){if(i&1&&(s(0,"spk-toggle",23)(1,"label",25),c(2),u(3,gn,3,1,"spk-tooltip",26),o(),f(4,"input",40),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function fn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Cn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function En(i,n){if(i&1&&(s(0,"spk-select-new",41)(1,"label",25),c(2),u(3,fn,3,1,"spk-tooltip",26),o(),f(4,"input",42),o(),u(5,Cn,1,1,"ng-template",null,4,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("selectMultiple",!0)("optionTemplate",t),r(),M("for","destination-",a.formGroupName,"-",a.index,""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),y("formControlName",a.formView.name)}}function Nn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function On(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Nn,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Mn(i,n){if(i&1){let e=O();s(0,"div",18),ee(1,19),u(2,Qt,5,14,"app-file-tree",20)(3,Jt,5,10,"app-file-tree",21)(4,nn,7,10,"spk-form-field")(5,ln,8,11,"spk-form-field")(6,cn,7,14)(7,dn,11,11,"div",22)(8,Sn,7,9,"spk-form-field")(9,Tn,5,9,"spk-toggle",23)(10,En,7,9)(11,On,5,9,"spk-form-field"),te(),s(12,"button",24),S("click",function(){let a=C(e).$implicit,m=l();return E(m.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),d("formGroupName",e.formGroupName),r(),T(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var pi=new de,hn=["Bytes","KB","MB","GB","TB","PB"],ci=[{value:"",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`}],mi=1024*1024*1024*2,di=1024*1024*5;var j=class i{#e=N(ye);#i=N(U);#t=N(A);formRef=dt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(hn);serverSettingsEffect=L(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,m],F)=>{if(a.startsWith("--")){let I=a.replace("--",""),R=e.find(Z=>Z.name===I);R!==void 0?this.addNewOption(R,m):this.addFreeTextOption(I,m)}F===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(v(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=w({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Tt(t.formRef,Xt,5),e&2&&ft()},features:[Ct([ye])],decls:20,vars:6,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=ne(n);let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let t;return t=$localize`Select an option...`,[["formRef",""],["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],[3,"searchable"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",t,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(e,t){if(e&1){let a=O();s(0,"form",7,0),S("submit",function(){return C(a),E(t.submit())}),s(2,"app-toggle-card",8),ee(3,9),G(4,5),s(5,"spk-menu",10)(6,"button",11),f(7,"spk-icon"),o(),ee(8,12),Pe(9,qt,3,1,"button",13,he),te(),o(),$(),te(),u(11,Kt,2,0),ut(12,11,zt),o(),u(14,Mn,15,2,"ng-template",null,1,se),s(16,"div",14)(17,"button",15),G(18,6),f(19,"spk-icon"),$(),o()()()}e&2&&(d("formGroup",t.optionsForm),r(2),d("disallowToggle",!0),r(3),d("searchable",!0),r(4),Ie(t.nonSelectedOptions()),r(3),St(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Se,_e,V,Pt,ht,X,re,pe,me,ce,Ft,Te,ge,z,Ce,Ee,fe,xt,bt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.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}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var B=class i{#e=N(A);#i=N(ae);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=D(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=L(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};function Pn(i,n){if(i&1){let e=O();s(0,"spk-form-field",10)(1,"input",11),k("ngModelChange",function(a){C(e);let m=l(2);return b(m.registerUrl,a)||(m.registerUrl=a),E(a)}),o()(),s(2,"button",12),S("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);r(),x("ngModel",e.registerUrl)}}function In(i,n){if(i&1&&(s(0,"div",8)(1,"label"),_(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),y("href",e.claimUrl(),mt),r(),oe(e.claimUrl())}}function Rn(i,n){i&1&&(s(0,"div",8)(1,"label"),_(2,2),o()())}function yn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Fn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function vn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),s(2,"button",14),S("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function An(i,n){if(i&1&&(s(0,"div",7),u(1,Pn,4,1)(2,In,5,2,"div",8)(3,Rn,3,0,"div",8)(4,yn,2,0,"button",9)(5,Fn,2,0,"button",9)(6,vn,4,0),o()),i&2){let e=l();r(),T(e.state()==="inactive"?1:-1),r(),T(e.state()==="registered"?2:-1),r(),T(e.state()==="registering"?3:-1),r(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),r(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),r(),T(e.state()==="disabled"?6:-1)}}var Me=class i{#e=N(B);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=w({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let m;m=$localize`Disable remote control`;let F;F=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[n,e,t,a,m,F,I,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,t){e&1&&u(0,An,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[ue,V,X,le,z],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var wn=()=>({standalone:!0});function Gn(i,n){i&1&&(s(0,"spk-icon",73),c(1,"check"),o())}function $n(i,n){i&1&&(s(0,"spk-icon",74),c(1,"prohibit"),o())}function xn(i,n){if(i&1){let e=O();s(0,"button",78),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function bn(i,n){if(i&1){let e=O();s(0,"spk-tooltip",77)(1,"button",79),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),d("disabled",!0)}}function kn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",69),_(2,32),o(),s(3,"input",70),k("ngModelChange",function(a){C(e);let m=l();return b(m.passphrase,a)||(m.passphrase=a),E(a)}),o()(),s(4,"spk-form-field")(5,"label",71),_(6,33),o(),s(7,"input",72),k("ngModelChange",function(a){C(e);let m=l();return b(m.repeatPassphrase,a)||(m.repeatPassphrase=a),E(a)}),o(),u(8,Gn,2,0,"spk-icon",73)(9,$n,2,0,"spk-icon",74),o(),s(10,"div",50)(11,"button",75),S("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),u(13,xn,2,2,"button",76)(14,bn,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();r(3),x("ngModel",e.passphrase),r(4),d("disabled",e.passphrase().length===0),x("ngModel",e.repeatPassphrase),r(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),r(3),P("loader",e.isUpdating()),r(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Dn(i,n){i&1&&(s(0,"spk-icon",80),c(1,"check"),o())}function Ln(i,n){if(i&1){let e=O();s(0,"div",50)(1,"button",75),S("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),u(3,Dn,2,0,"spk-icon",80),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function Vn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",81),_(2,38),o(),s(3,"textarea",82),k("ngModelChange",function(a){C(e);let m=l();return b(m.allowedHostnames,a)||(m.allowedHostnames=a),E(a)}),o()(),s(4,"spk-alert",83),_(5,39),o(),s(6,"button",78),S("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();r(3),x("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function Xn(i,n){if(i&1&&c(0),i&2){let e,t=l();h(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function zn(i,n){i&1&&f(0,"spk-progress-bar",55)}function Un(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}function Bn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}var Q=new de,Lt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Vt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],ve=class i{#e=N(Gt);#i=N(ae);#t=N(A);#n=N(U);#a=N(B);#o=N(Mt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");previousLang=this.#s;langCtrl=g(this.#s);remoteControlStatus=this.#a.status;settingsForm=Q.group({pauseSettings:Q.group({time:Q.control(0),timeType:Q.control("s")}),usageStatistics:Q.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),v(()=>this.updatingChannel.set(!1)),H(()=>(this.updateChannel.set(e),q(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),v(()=>this.updatingRemoteAccess.set(!1)),H(()=>(this.allowRemoteAccess.set(n),q(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),v(()=>this.updatingAllowedHosts.set(!1)),H(()=>(this.allowedHostnames.set(n),q(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),v(()=>this.updatingDisableTrayIconLogin.set(!1)),H(()=>(this.disableTrayIconLogin.set(n),q(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),v(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=g(Fe);usageStatisticsOptions=g(Vt);timeTypeOptions=g(Lt);timeTypeSignal=Ne(this.pauseSettings.controls.timeType.valueChanges);timeRange=D(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);#r(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}updateLocale(n){let t=n[0]?.value??"";!t||t===""||t===this.previousLang||(this.#o.setItem("locale",t),window.location.reload())}submit(){let n=this.pauseSettings.value,e=`${n.time}${n.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),m=["s","m","h"];this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"]),console.log(n["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:m.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]??""})})});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Fe.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Lt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:Vt.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=w({type:i,selectors:[["app-settings"]],decls:133,vars:39,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let m;m=$localize`Color theme`;let F;F=$localize`Customize your application theme`;let I;I=$localize`Passwords`;let R;R=$localize`Change server passphrase`;let Z;Z=$localize`Language`;let Ae;Ae=$localize`Select a language for the platform`;let we;we=$localize`Allow remote access (requires restart)`;let Ge;Ge=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let $e;$e=$localize`Allow remote access`;let xe;xe=$localize`Prevent tray icon automatic log-in`;let be;be=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let ke;ke=$localize`Prevent tray icon automatic log-in`;let De;De=$localize`Update channel`;let Le;Le=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ve;Ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`Stable`;let ze;ze=$localize`Official releases`;let Ue;Ue=$localize`Beta`;let Be;Be=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let qe;qe=$localize` Experimental `;let He;He=$localize`Specific builds for developers only. Not for use with important data.`;let We;We=$localize`Canary`;let Ke;Ke=$localize`Individual builds for developers only. Not for use with important data.`;let je;je=$localize`Pause after startup or hibernation`;let Qe;Qe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let Ze;Ze=$localize`Usage statistics`;let J;J=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#121\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#121\uFFFD"}:CLOSE_LINK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,J=ne(J);let Je;Je=$localize`Advanced options`;let Ye;Ye=$localize`Enter new password`;let et;et=$localize`Repeat password`;let tt;tt=$localize`Password have to be filled and have to match`;let nt;nt=$localize`Passphrase`;let it;it=$localize`Repeat passphrase`;let ot;ot=$localize`Cancel`;let st;st=$localize` Update passphrase `;let at;at=$localize` Update passphrase `;let rt;rt=$localize`Change password`;let lt;lt=$localize`Allowed hostnames`;let _t;_t=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let pt;return pt=$localize` Update allowed hostnames `,[n,e,t,a,m,F,I,R,Z,Ae,we,Ge,$e,xe,be,ke,De,Le,Ve,Xe,ze,Ue,Be,qe,He,We,Ke,je,Qe,Ze,J,Je,nt,it,ot,st,at,rt,lt,_t,pt,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ye,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",tt,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),s(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()(),s(8,"button",43),S("click",function(){return t.submit()}),_(9,2),o()(),s(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),s(14,"p"),c(15),o()(),s(16,"div",45),f(17,"app-remote-control"),o()(),s(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),s(22,"p"),_(23,5),o()(),s(24,"div",45)(25,"div",46)(26,"img",47),S("click",function(){return t.setLightMode()}),o(),s(27,"img",48),S("click",function(){return t.setDarkMode()}),o()()()(),s(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",49),u(35,kn,15,7)(36,Ln,4,1,"div",50),o()(),s(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",45)(44,"spk-select-new",51),S("selectedOptionsChange",function(m){return t.updateLocale(m)}),f(45,"input",52),o()()(),s(46,"section")(47,"div",44)(48,"h3"),_(49,10),o(),s(50,"p"),_(51,11),o()(),s(52,"div",53)(53,"spk-toggle",54),S("click",function(){return t.updateRemoteAccess()}),s(54,"label"),_(55,12),o()(),u(56,Vn,8,3),o()(),s(57,"section")(58,"div",44)(59,"h3"),_(60,13),o(),s(61,"p"),_(62,14),o()(),s(63,"div",45)(64,"spk-toggle",54),S("click",function(){return t.saveDisableTrayIconLogin()}),s(65,"label"),_(66,15),o()()()(),s(67,"section")(68,"div",44)(69,"h3"),_(70,16),o(),s(71,"p"),u(72,Xn,1,1),o(),u(73,zn,1,0,"spk-progress-bar",55),o(),s(74,"div",56)(75,"div",57),S("click",function(){return t.setNewChannel("")}),s(76,"spk-radio",58),_(77,17),o(),s(78,"p"),_(79,18),o()(),s(80,"div",57),S("click",function(){return t.setNewChannel("stable")}),s(81,"spk-radio",58),_(82,19),o(),s(83,"p"),_(84,20),o()(),s(85,"div",57),S("click",function(){return t.setNewChannel("beta")}),s(86,"spk-radio",58),_(87,21),o(),s(88,"p"),_(89,22),o()(),s(90,"div",57),S("click",function(){return t.setNewChannel("experimental")}),s(91,"spk-radio",58),_(92,23),o(),s(93,"p"),_(94,24),o()(),s(95,"div",57),S("click",function(){return t.setNewChannel("canary")}),s(96,"spk-radio",58),_(97,25),o(),s(98,"p"),_(99,26),o()()()()(),f(100,"spk-divider"),s(101,"form",59),S("submit",function(){return t.submit()}),s(102,"section")(103,"div",44)(104,"h3"),_(105,27),o(),s(106,"p"),_(107,28),o()(),s(108,"div",45)(109,"div",60)(110,"spk-range-slider",61),f(111,"input",62),o(),s(112,"spk-select-new",63),f(113,"input",64),u(114,Un,1,1,"ng-template"),o()()()(),s(115,"section")(116,"div",44)(117,"h3"),_(118,29),o(),s(119,"p"),G(120,30),f(121,"a",65)(122,"br")(123,"br"),$(),o()(),s(124,"div",45)(125,"spk-select-new",66),f(126,"input",67),u(127,Bn,1,1,"ng-template"),o()()(),s(128,"section")(129,"div",68)(130,"h3"),_(131,31),o(),f(132,"app-advanced-options-settings"),o()()()),e&2){let a,m,F,I;r(8),d("disabled",t.settingsForm.untouched),r(7),oe(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),d("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),d("ngModel",t.langCtrl())("ngModelOptions",Et(38,wn)),r(8),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?56:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?72:-1),r(),T(t.updatingChannel()?73:-1),r(3),P("active",t.updateChannel()===""),r(),W((m=t.sysinfo())==null?null:m.DefaultUpdateChannel),K(77),r(2),W((F=t.sysinfo())==null?null:F.ServerVersionType),K(79),r(2),P("active",t.updateChannel()==="stable"),r(5),P("active",t.updateChannel()==="beta"),r(5),P("active",t.updateChannel()==="experimental"),r(5),P("active",t.updateChannel()==="canary"),r(5),d("formGroup",t.settingsForm),r(9),d("unit",(I=t.timeTypeSignal())!==null&&I!==void 0?I:""),r(),d("min",t.timeRange()[0])("max",t.timeRange()[1]),r(),d("options",t.timeTypeOptions())("isClearable",!1),r(13),d("options",t.usageStatisticsOptions())}},dependencies:[ue,_e,V,It,X,re,le,Se,pe,me,ce,$t,Me,j,Te,At,wt,vt,Ce,Ee,z,ge,yt,Rt,fe],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{ve as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-C2JCNHTZ.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as BytesPipe};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-GMW5Y454.js";import"./chunk-3T23UBO4.js";import"./chunk-BIVRH4JH.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-CDH4KG7H.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
|