@duplicati/ngclient 0.0.99 → 0.0.101
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-GNTO7EKM.js → chunk-2VHTET54.js} +1 -1
- package/{chunk-X4FOF7ZO.js → chunk-4DZRXRA3.js} +1 -1
- package/chunk-5SLAQVCB.js +3 -0
- package/chunk-6UVVDGKQ.js +8 -0
- package/{chunk-7NPADQLG.js → chunk-7QUJNAXH.js} +1 -1
- package/{chunk-22CSSCKZ.js → chunk-BA7NYTFR.js} +1 -1
- package/chunk-CQTSWNP2.js +8 -0
- package/chunk-LBZ753XE.js +1 -0
- package/chunk-LHTAXP73.js +1 -0
- package/chunk-MM22YS5Z.js +1 -0
- package/{chunk-ASEBN4DE.js → chunk-NEZX7ARK.js} +1 -1
- package/{chunk-EKIFJPZJ.js → chunk-ONSJL7VA.js} +1 -1
- package/chunk-PWLZT57L.js +1 -0
- package/chunk-QFKEUN2J.js +1 -0
- package/{chunk-47OESBLR.js → chunk-RQSCZC6C.js} +1 -1
- package/chunk-TLY4PQBT.js +1 -0
- package/chunk-TUR6D3AC.js +1 -0
- package/{chunk-EQCQL7A4.js → chunk-UH6BCOA6.js} +1 -1
- package/chunk-ULTH3Z7H.js +1 -0
- package/chunk-VDQCSHBX.js +1 -0
- package/{chunk-WVVXCHHS.js → chunk-YBLCACKN.js} +1 -1
- package/{chunk-ZDBNCA7O.js → chunk-YOTPPWSO.js} +1 -1
- package/{chunk-H6IX2D2G.js → chunk-YTJB3DGU.js} +1 -1
- package/index.html +1 -1
- package/{main-73DNRGWN.js → main-CVAZAPFI.js} +1 -1
- package/package.json +1 -1
- package/chunk-23KHTRDM.js +0 -1
- package/chunk-2ZK7AAG4.js +0 -1
- package/chunk-AKXOFDEQ.js +0 -8
- package/chunk-AMJ2CM2Q.js +0 -1
- package/chunk-JIPY2BNJ.js +0 -1
- package/chunk-LU4LP7JL.js +0 -3
- package/chunk-PX6A6XCQ.js +0 -1
- package/chunk-QMMXH5TN.js +0 -1
- package/chunk-QRVYPTC6.js +0 -8
- package/chunk-VP44CSPI.js +0 -1
- package/chunk-XITZBHPE.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ae}from"./chunk-3V622MYY.js";import{a as te}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import{a as Q}from"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as z,e as q}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as j,g as H,l as J}from"./chunk-XQKR67WI.js";import{b as W}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{C as g,D as u,Db as r,Eb as p,Fb as T,Gb as L,Hb as U,Jb as A,L as k,Na as s,W as D,Yb as E,Za as y,bc as w,cb as v,cc as X,dc as V,kb as F,mb as P,ob as G,p as O,pb as K,ra as c,tb as i,ub as a,vb as l,xc as C,yc as h}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.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(Q);#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`
|
|
1
|
+
import{a as ae}from"./chunk-3V622MYY.js";import{a as te}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import{a as Q}from"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{c as Y,e as Z,h as x,s as ee}from"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as z,e as q}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as j,g as H,l as J}from"./chunk-XQKR67WI.js";import{b as W}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{C as g,D as u,Db as r,Eb as p,Fb as T,Gb as L,Hb as U,Jb as A,L as k,Na as s,W as D,Yb as E,Za as y,bc as w,cb as v,cc as X,dc as V,kb as F,mb as P,ob as G,p as O,pb as K,ra as c,tb as i,ub as a,vb as l,xc as C,yc as h}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.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(Q);#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`Maintenance`;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","maintenance"],["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:[ee,Y,Z,x,te,H,J,j,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{m as _e}from"./chunk-6UVVDGKQ.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import{a as oe}from"./chunk-3V622MYY.js";import{a as Mt}from"./chunk-DJWNLIDJ.js";import{a as J}from"./chunk-WCLOWI5G.js";import{a as ft}from"./chunk-FKTH6XCB.js";import"./chunk-MM22YS5Z.js";import{a as Nt}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import{c as Y,e as ee,f as St,h as te,i as gt,l as Tt,n as ut,o as mt,q as Ct,r as Et,s as ne,t as ie}from"./chunk-JJQARMUD.js";import{a as st}from"./chunk-3UJUWE5B.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{A as pt,a as j,b as K,g as Q,k as at,l as Z,p as rt,q as lt,r as _t,t as ct,z as dt}from"./chunk-XQKR67WI.js";import{b as A}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{A as je,D as R,Db as B,Eb as H,Fb as r,Gb as re,Hb as le,Ib as et,Jb as S,Ka as Qe,Kb as p,N as Ke,Na as l,Nb as tt,Q as U,Ua as Ze,Vb as nt,W as u,Wb as it,Yb as I,Za as w,Zb as q,_b as W,ba as m,bc as y,c as We,ca as C,cb as E,cc as G,dc as v,hb as Je,hc as ot,ib as Ye,ic as D,kb as P,l as $,mb as f,pb as T,ra as c,tb as i,ub as o,vb as N,xc as k,y as b,yc as L,zb as O}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var F=class s{#e=u(A);#i=oe(this.#e.getApiV1Serversettings());#t=c(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:t=>{this.#t.set(t)}})}withRefresh(){return We(R(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};var Ot=["formRef"],Rt=()=>[import("./chunk-QFKEUN2J.js").then(s=>s.OptionsListComponent)],It=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function yt(s,t){s&1&&(i(0,"spk-alert",3),r(1,1),o())}function Gt(s,t){if(s&1){let e=O();i(0,"app-options-list",5),v("optionsChange",function(a){m(e);let d=p();return G(d.settings,a)||(d.settings=a),C(a)}),o()}if(s&2){let e=p();y("options",e.settings),P("hasFreeTextSettings",!0)("hiddenOptions",D(3,It))}}var vt=["Bytes","KB","MB","GB","TB","PB"],X=class s{#e=u(_e);#i=u(F);#t=u(A);formRef=Ze.required("formRef");settings=this.#e.settings;isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);sizeOptions=c(vt);lastRecievedServerSettings=c({});serverSettingsEffect=L(()=>{let t=this.#i.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([n,a],d)=>{if(n.startsWith("--")){let M=n.replace("--","");this.settings.update(g=>(g.some(h=>h.Name===M)||g.push({Name:M,Value:a}),g))}d===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(g=>g.Name),d=Object.keys(e).filter(g=>!n.includes(g.replace("--",""))),M=t.reduce((g,h)=>(g[`--${h.Name}`]=h.Value,g),{});d.forEach(g=>{M[g]=null}),this.#t.patchApiV1Serversettings({requestBody:M}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#i.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&nt(n.formRef,Ot,5),e&2&&it()},features:[ot([_e])],decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["spk-button","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"]]},template:function(e,n){e&1&&(i(0,"div",2),E(1,yt,2,0,"spk-alert",3),i(2,"button",4),S("click",function(){return n.submit()}),B(3,0),N(4,"spk-icon"),H(),o()(),E(5,Gt,1,4),Je(6,5,Rt)),e&2&&(l(),T(n.saved()?1:-1),l(),f("loader",n.isSubmitting()),l(4),Ye(!n.isLoadingOptions()))},dependencies:[ie,Q,j,K],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}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 x=class s{#e=u(A);#i=u(J);repeatRegisterTimer=null;state=c("unknown");claimUrl=c(null);registerUrl=c("");status=k(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=L(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.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:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};function $t(s,t){if(s&1){let e=O();i(0,"spk-form-field",10)(1,"input",11),v("ngModelChange",function(a){m(e);let d=p(2);return G(d.registerUrl,a)||(d.registerUrl=a),C(a)}),o()(),i(2,"button",12),S("click",function(){m(e);let a=p(2);return C(a.register())}),r(3,0),o()}if(s&2){let e=p(2);l(),y("ngModel",e.registerUrl)}}function bt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",13),I(4),o()()),s&2){let e=p(2);l(3),tt("href",e.claimUrl(),Qe),l(),q(e.claimUrl())}}function wt(s,t){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function kt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.cancel())}),r(1,3),o()}}function Lt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.disable())}),r(1,4),o()}}function Ft(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let a=p(2);return C(a.enable())}),r(1,5),o(),i(2,"button",14),S("click",function(){m(e);let a=p(2);return C(a.delete())}),r(3,6),o()}}function xt(s,t){if(s&1&&(i(0,"div",7),E(1,$t,4,1)(2,bt,5,2,"div",8)(3,wt,3,0,"div",8)(4,kt,2,0,"button",9)(5,Lt,2,0,"button",9)(6,Ft,4,0),o()),s&2){let e=p();l(),T(e.state()==="inactive"?1:-1),l(),T(e.state()==="registered"?2:-1),l(),T(e.state()==="registering"?3:-1),l(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),T(e.state()==="disabled"?6:-1)}}var ae=class s{#e=u(x);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||s)};static \u0275cmp=w({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let d;d=$localize`Disable remote control`;let M;M=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[t,e,n,a,d,M,g,[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,n){e&1&&E(0,xt,7,6,"div",7),e&2&&T(n.state()!=="unknown"?0:-1)},dependencies:[ne,Y,ee,te,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 Pt=()=>({standalone:!0});function Dt(s,t){s&1&&(i(0,"spk-icon",73),I(1,"check"),o())}function Xt(s,t){s&1&&(i(0,"spk-icon",74),I(1,"prohibit"),o())}function zt(s,t){if(s&1){let e=O();i(0,"button",78),S("click",function(){m(e);let a=p(2);return C(a.updatePassphrase())}),r(1,36),o()}if(s&2){let e=p(2);f("loader",e.isUpdating())}}function Vt(s,t){if(s&1){let e=O();i(0,"spk-tooltip",77)(1,"button",79),S("click",function(){m(e);let a=p(2);return C(a.updatePassphrase())}),r(2,37),o()()}if(s&2){let e=p(2);l(),f("loader",e.isUpdating()),P("disabled",!0)}}function Ut(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",69),r(2,33),o(),i(3,"input",70),v("ngModelChange",function(a){m(e);let d=p();return G(d.passphrase,a)||(d.passphrase=a),C(a)}),o()(),i(4,"spk-form-field")(5,"label",71),r(6,34),o(),i(7,"input",72),v("ngModelChange",function(a){m(e);let d=p();return G(d.repeatPassphrase,a)||(d.repeatPassphrase=a),C(a)}),o(),E(8,Dt,2,0,"spk-icon",73)(9,Xt,2,0,"spk-icon",74),o(),i(10,"div",50)(11,"button",75),S("click",function(){m(e);let a=p();return C(a.cancelPasswordChange())}),r(12,35),o(),E(13,zt,2,2,"button",76)(14,Vt,3,3,"spk-tooltip",77),o()}if(s&2){let e=p();l(3),y("ngModel",e.passphrase),l(4),P("disabled",e.passphrase().length===0),y("ngModel",e.repeatPassphrase),l(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),f("loader",e.isUpdating()),l(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Bt(s,t){s&1&&(i(0,"spk-icon",80),I(1,"check"),o())}function Ht(s,t){if(s&1){let e=O();i(0,"div",50)(1,"button",75),S("click",function(){m(e);let a=p();return C(a.openPassphraseForm())}),r(2,38),o(),E(3,Bt,2,0,"spk-icon",80),o()}if(s&2){let e=p();l(3),T(e.passwordUpdated()?3:-1)}}function qt(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",81),r(2,39),o(),i(3,"textarea",82),v("ngModelChange",function(a){m(e);let d=p();return G(d.allowedHostnames,a)||(d.allowedHostnames=a),C(a)}),o()(),i(4,"spk-alert",83),r(5,40),o(),i(6,"button",78),S("click",function(){m(e);let a=p();return C(a.updateAllowedHostnames())}),r(7,41),o()}if(s&2){let e=p();l(3),y("ngModel",e.allowedHostnames),l(3),f("loader",e.updatingAllowedHosts())}}function Wt(s,t){s&1&&N(0,"spk-progress-bar",55)}function jt(s,t){if(s&1&&I(0),s&2){let e,n=p();W(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Kt(s,t){s&1&&N(0,"spk-progress-bar",55)}function Qt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}function Zt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}var z=new Et,Jt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Yt=[{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`}],en=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (decending)`},{value:"-name",label:$localize`Backup name (decending)`},{value:"-lastrun",label:$localize`Last run time (decending)`},{value:"-nextrun",label:$localize`Next run time (decending)`},{value:"-schedule",label:$localize`Is scheduled (decending)`},{value:"-backend",label:$localize`Destination type (decending)`},{value:"-sourcesize",label:$localize`Source size (decending)`},{value:"-destinationsize",label:$localize`Destination size (decending)`},{value:"-duration",label:$localize`Duration (decending)`}],ce=class s{#e=u(ft);#i=u(J);#t=u(A);#n=u(F);#a=u(x);#o=u(st);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=c("list");previousLang=this.#s;langCtrl=c(this.#s);sortOrderCtrl=c("");remoteControlStatus=this.#a.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});ngOnInit(){this.settingsForm.controls.pauseSettings.valueChanges.pipe(je(300),Ke(()=>this.updateStartupDelay())).subscribe()}updatingChannel=c(!1);updateChannel=c("");prevSortOrder=c("");updatingSortOrder=c(!1);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(this.#n.withRefresh(),R(()=>this.updatingChannel.set(!1)),b(()=>(this.updateChannel.set(e),$(null)))).subscribe()}allowRemoteAccess=c(!1);allowedHostnames=c("");loadedAllowedHostnames=c("");updatingRemoteAccess=c(!1);updatingAllowedHosts=c(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingRemoteAccess.set(!1)),b(()=>(this.allowRemoteAccess.set(t),$(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),R(()=>this.updatingAllowedHosts.set(!1)),b(()=>(this.allowedHostnames.set(t),$(null)))).subscribe()}updateSortOrder(t){let n=t[0]?.value??"";if(!n||n===""||n===this.prevSortOrder())return;let a=this.prevSortOrder();this.updatingSortOrder.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"backup-list-sort-order":n}}).pipe(this.#n.withRefresh(),R(()=>this.updatingSortOrder.set(!1)),b(()=>(this.sortOrderCtrl.set(a),$(null)))).subscribe()}updatingDisableTrayIconLogin=c(!1);disableTrayIconLogin=c(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingDisableTrayIconLogin.set(!1)),b(()=>(this.disableTrayIconLogin.set(t),$(null)))).subscribe()}showPassphraseForm=c(!1);isUpdating=c(!1);passphrase=c("");repeatPassphrase=c("");passwordUpdated=c(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),R(()=>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}sortOptions=c(en);languageOptions=c(Mt);usageStatisticsOptions=c(Yt);timeTypeOptions=c(Jt);timeTypeSignal=oe(this.pauseSettings.controls.timeType.valueChanges);timeRange=k(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);updateLocale(t){let n=t[0]?.value??"";!n||n===""||n===this.previousLang||(this.#o.setItem("locale",n),window.location.reload())}updateStartupDelay(){let t=this.pauseSettings.value,e=`${t.time}${t.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}updateUsageStatistics(){this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let t=this.#n.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),d=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.prevSortOrder.set(t["backup-list-sort-order"]),this.sortOrderCtrl.set(this.prevSortOrder()),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:d.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]??""})})});setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-settings"]],decls:142,vars:45,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Remote access control`;let a;a=$localize`Color theme`;let d;d=$localize`Customize your application theme`;let M;M=$localize`Passwords`;let g;g=$localize`Change server passphrase`;let h;h=$localize`Language`;let de;de=$localize`Select a language for the platform`;let pe;pe=$localize`Allow remote access (requires restart)`;let Se;Se=$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 ge;ge=$localize`Allow remote access`;let Te;Te=$localize`Prevent tray icon automatic log-in`;let ue;ue=$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 me;me=$localize`Prevent tray icon automatic log-in`;let Ce;Ce=$localize`Backup list sort order`;let Ee;Ee=$localize`Choose the order to display backups on the starting page in`;let fe;fe=$localize`Update channel`;let Ne;Ne=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Me;Me=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Stable`;let Pe;Pe=$localize`Official releases`;let Oe;Oe=$localize`Beta`;let Re;Re=$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 Ie;Ie=$localize` Experimental `;let ye;ye=$localize`Specific builds for developers only. Not for use with important data.`;let Ge;Ge=$localize`Canary`;let ve;ve=$localize`Individual builds for developers only. Not for use with important data.`;let Ae;Ae=$localize`Pause after startup or hibernation`;let $e;$e=$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 be;be=$localize`Usage statistics`;let V;V=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#129\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#129\uFFFD"}:CLOSE_LINK:${"[\uFFFD#130\uFFFD\uFFFD/#130\uFFFD|\uFFFD#131\uFFFD\uFFFD/#131\uFFFD]"}:LINE_BREAK:${"[\uFFFD#130\uFFFD\uFFFD/#130\uFFFD|\uFFFD#131\uFFFD\uFFFD/#131\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. `,V=et(V);let we;we=$localize`Advanced options`;let ke;ke=$localize`Enter new password`;let Le;Le=$localize`Repeat password`;let Fe;Fe=$localize`Password have to be filled and have to match`;let xe;xe=$localize`Passphrase`;let De;De=$localize`Repeat passphrase`;let Xe;Xe=$localize`Cancel`;let ze;ze=$localize` Update passphrase `;let Ve;Ve=$localize` Update passphrase `;let Ue;Ue=$localize`Change password`;let Be;Be=$localize`Allowed hostnames`;let He;He=$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 qe;return qe=$localize` Update allowed hostnames `,[t,e,n,a,d,M,g,h,de,pe,Se,ge,Te,ue,me,Ce,Ee,fe,Ne,Me,he,Pe,Oe,Re,Ie,ye,Ge,ve,Ae,$e,be,V,we,xe,De,Xe,ze,Ve,Ue,Be,He,qe,[1,"content"],[1,"title"],[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,"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,"selectedOptionsChange","options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",ke,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Le,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",Fe,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,n){if(e&1&&(N(0,"app-status-bar"),i(1,"div",42)(2,"header")(3,"div",43)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()()(),i(8,"section")(9,"div",44)(10,"h3"),r(11,2),o(),i(12,"p"),I(13),o()(),i(14,"div",45),N(15,"app-remote-control"),o()(),i(16,"section")(17,"div",44)(18,"h3"),r(19,3),o(),i(20,"p"),r(21,4),o()(),i(22,"div",45)(23,"div",46)(24,"img",47),S("click",function(){return n.setLightMode()}),o(),i(25,"img",48),S("click",function(){return n.setDarkMode()}),o()()()(),i(26,"section")(27,"div",44)(28,"h3"),r(29,5),o(),i(30,"p"),r(31,6),o()(),i(32,"div",49),E(33,Ut,15,7)(34,Ht,4,1,"div",50),o()(),i(35,"section")(36,"div",44)(37,"h3"),r(38,7),o(),i(39,"p"),r(40,8),o()(),i(41,"div",45)(42,"spk-select",51),S("selectedOptionsChange",function(d){return n.updateLocale(d)}),N(43,"input",52),o()()(),i(44,"section")(45,"div",44)(46,"h3"),r(47,9),o(),i(48,"p"),r(49,10),o()(),i(50,"div",53)(51,"spk-toggle",54),S("click",function(){return n.updateRemoteAccess()}),i(52,"label"),r(53,11),o()(),E(54,qt,8,3),o()(),i(55,"section")(56,"div",44)(57,"h3"),r(58,12),o(),i(59,"p"),r(60,13),o()(),i(61,"div",45)(62,"spk-toggle",54),S("click",function(){return n.saveDisableTrayIconLogin()}),i(63,"label"),r(64,14),o()()()(),i(65,"section")(66,"div",44)(67,"h3"),r(68,15),o(),i(69,"p"),r(70,16),o(),E(71,Wt,1,0,"spk-progress-bar",55),o(),i(72,"div",45)(73,"spk-select",51),S("selectedOptionsChange",function(d){return n.updateSortOrder(d)}),N(74,"input",52),o()()(),i(75,"section")(76,"div",44)(77,"h3"),r(78,17),o(),i(79,"p"),E(80,jt,1,1),o(),E(81,Kt,1,0,"spk-progress-bar",55),o(),i(82,"div",56)(83,"div",57),S("click",function(){return n.setNewChannel("")}),i(84,"spk-radio",58),r(85,18),o(),i(86,"p"),r(87,19),o()(),i(88,"div",57),S("click",function(){return n.setNewChannel("stable")}),i(89,"spk-radio",58),r(90,20),o(),i(91,"p"),r(92,21),o()(),i(93,"div",57),S("click",function(){return n.setNewChannel("beta")}),i(94,"spk-radio",58),r(95,22),o(),i(96,"p"),r(97,23),o()(),i(98,"div",57),S("click",function(){return n.setNewChannel("experimental")}),i(99,"spk-radio",58),r(100,24),o(),i(101,"p"),r(102,25),o()(),i(103,"div",57),S("click",function(){return n.setNewChannel("canary")}),i(104,"spk-radio",58),r(105,26),o(),i(106,"p"),r(107,27),o()()()()(),N(108,"spk-divider"),i(109,"form",59)(110,"section")(111,"div",44)(112,"h3"),r(113,28),o(),i(114,"p"),r(115,29),o()(),i(116,"div",45)(117,"div",60)(118,"spk-range-slider",61),N(119,"input",62),o(),i(120,"spk-select",63),N(121,"input",64),E(122,Qt,1,1,"ng-template"),o()()()(),i(123,"section")(124,"div",44)(125,"h3"),r(126,30),o(),i(127,"p"),B(128,31),N(129,"a",65)(130,"br")(131,"br"),H(),o()(),i(132,"div",45)(133,"spk-select",66),S("selectedOptionsChange",function(){return n.updateUsageStatistics()}),N(134,"input",67),E(135,Zt,1,1,"ng-template"),o()()()(),i(136,"div",42)(137,"section")(138,"div",68)(139,"h3"),r(140,32),o(),N(141,"app-advanced-options-settings"),o()()()),e&2){let a,d,M,g;l(13),q(n.remoteControlStatus()),l(11),f("active",!n.isDarkMode()),l(),f("active",n.isDarkMode()),l(8),T(n.showPassphraseForm()?33:34),l(9),P("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),P("ngModel",n.langCtrl())("ngModelOptions",D(43,Pt)),l(8),f("active",n.allowRemoteAccess()),l(3),T(n.allowRemoteAccess()?54:-1),l(8),f("active",n.disableTrayIconLogin()),l(9),T(n.updatingSortOrder()?71:-1),l(2),P("options",n.sortOptions())("isClearable",!1)("inlineSearch",!0),l(),P("ngModel",n.sortOrderCtrl())("ngModelOptions",D(44,Pt)),l(6),T(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?80:-1),l(),T(n.updatingChannel()?81:-1),l(3),f("active",n.updateChannel()===""),l(),re((d=n.sysinfo())==null?null:d.DefaultUpdateChannel),le(85),l(2),re((M=n.sysinfo())==null?null:M.ServerVersionType),le(87),l(2),f("active",n.updateChannel()==="stable"),l(5),f("active",n.updateChannel()==="beta"),l(5),f("active",n.updateChannel()==="experimental"),l(5),f("active",n.updateChannel()==="canary"),l(5),P("formGroup",n.settingsForm),l(9),P("unit",(g=n.timeTypeSignal())!==null&&g!==void 0?g:""),l(),P("min",n.timeRange()[0])("max",n.timeRange()[1]),l(),P("options",n.timeTypeOptions())("isClearable",!1),l(13),P("options",n.usageStatisticsOptions())}},dependencies:[ne,gt,Y,Tt,ee,St,te,ie,ut,Ct,mt,Nt,ae,X,Q,lt,_t,rt,dt,pt,Z,j,at,K,ct],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{ce as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-TLY4PQBT.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-WCLOWI5G.js";import"./chunk-JJQARMUD.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as W}from"./chunk-
|
|
1
|
+
import{g as W}from"./chunk-BA7NYTFR.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import{a as E}from"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import{a as G}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as $,c as P,e as L,f as M}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{q as N,v as I}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{Db as F,Eb as r,Kb as u,Na as R,W as T,Za as m,cb as f,ic as p,jc as l,kb as _,pb as C,tb as o,ub as i,vb as n,yc as A}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var y=()=>["/restore-from-files/destination"],v=()=>["/restore-from-files/encryption"],h=()=>["/restore-from-files/select-files"],K=()=>["/restore-from-files/options"],X=e=>["/restore-draft",e],w=e=>["/restore-draft",e,"options"],b=e=>["/restore",e],x=e=>["/restore",e,"options"];function z(e,a){e&1&&(o(0,"div",8),F(1,0),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,1),n(5,"spk-radio"),r(),i(),o(6,"div",8),F(7,2),n(8,"spk-radio"),r(),i(),o(9,"div",8),F(10,3),n(11,"spk-radio"),r(),i()),e&2&&(_("routerLink",p(4,y)),R(3),_("routerLink",p(5,v)),R(3),_("routerLink",p(6,h)),R(3),_("routerLink",p(7,K)))}function j(e,a){if(e&1&&(o(0,"div",8),F(1,4),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,5),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,X,t.backupId())),R(3),_("routerLink",l(4,w,t.backupId()))}}function B(e,a){if(e&1&&(o(0,"div",8),F(1,6),n(2,"spk-radio"),r(),i(),o(3,"div",8),F(4,7),n(5,"spk-radio"),r(),i()),e&2){let t=u();_("routerLink",l(2,b,t.backupId())),R(3),_("routerLink",l(4,x,t.backupId()))}}var c=class e{#t=T($);#e=T(W);#i=E(this.#t.params);#o=E(this.#t.url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;paramsChanged=A(()=>{let a=this.#i()?.id,t=!!this.#o()?.find(d=>d.path==="restore-draft"),s=!!this.#o()?.find(d=>d.path==="restore-from-files");this.#e.init(a,s,s||t)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["app-restore-flow"]],decls:7,vars:1,consts:()=>{let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let d;d=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let O;O=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let g;g=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let D;return D=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[a,t,s,d,O,g,k,D,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(t,s){t&1&&(n(0,"app-status-bar"),o(1,"spk-stepper"),f(2,z,12,8)(3,j,6,6)(4,B,6,6),i(),o(5,"section"),n(6,"router-outlet"),i()),t&2&&(R(2),C(s.isFileRestore()?2:s.isDraft()?3:4))},dependencies:[I,N,G,P,L,M],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as le,b as pe}from"./chunk-LBZ753XE.js";import{a as re}from"./chunk-XH2A67YP.js";import{a as Q}from"./chunk-WCLOWI5G.js";import{b as Y,c as ee,e as te,h as ie,j as ne,s as oe}from"./chunk-JJQARMUD.js";import{A as J,a as q,g as U,l as W,o as X,t as j,y as H,z as Z}from"./chunk-XQKR67WI.js";import{Db as $,Eb as P,Fb as K,Jb as f,Kb as s,Na as l,Pb as g,W as R,Wa as G,Xb as E,Yb as m,Za as z,Zb as L,_b as F,ba as d,bc as v,ca as u,cb as C,cc as D,dc as b,kb as _,oa as k,pb as S,pc as A,qb as V,ra as h,rb as O,sb as y,tb as p,ub as a,vb as M,wb as N,xb as I,xc as B,zb as x}from"./chunk-XGARKXE4.js";import{a as T,b as w}from"./chunk-7CGTOI24.js";function se(n,o){if(n&1){let e=x();p(0,"button",14),f("click",function(){d(e);let t=s();return u(t.addFreeTextSetting())}),$(1,5),M(2,"spk-icon"),P(),a()}}function me(n,o){if(n&1){let e=x();p(0,"button",16,0),f("click",function(){let t=d(e).$implicit,r=s(2);return u(r.addSetting(t))}),m(2),a()}if(n&2){let e=o.$implicit;l(2),L(e.name)}}function _e(n,o){if(n&1&&(p(0,"h3",7),m(1),a(),O(2,me,3,1,"button",15,V)),n&2){let e=o.$implicit;l(),L(e.displayName),l(),y(e.options)}}function ce(n,o){n&1&&(p(0,"div",12),m(1,"Add a setting above to get started."),a())}function de(n,o){if(n&1){let e=x();p(0,"div",17)(1,"label"),m(2),a(),p(3,"div",23)(4,"spk-form-field")(5,"input",24),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateFreeTextSettingName(r,t))}),a(),p(6,"spk-icon",25),m(7,"rectangle-dashed"),a()(),p(8,"spk-form-field")(9,"input",24),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a(),p(10,"spk-icon",25),m(11,"textbox"),a()()()()}if(n&2){let e=s().$implicit;l(2),F(" ",e.FormView.shortDescription," "),l(3),_("ngModel",e.Name),l(4),_("ngModel",e.Value())}}function ue(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function ge(n,o){if(n&1){let e=x();p(0,"app-file-tree",18)(1,"label",26),m(2),C(3,ue,3,1,"spk-tooltip",27),a(),p(4,"input",28),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a()()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;_("startingPath",i.Value())("accepts",i.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),S(i.FormView.longDescription?3:-1),l(),g("id","destination-",i.Name,"-",t,""),_("ngModel",i.Value())}}function Ce(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function xe(n,o){if(n&1){let e=x();p(0,"app-file-tree",19)(1,"label",26),m(2),C(3,Ce,3,1,"spk-tooltip",27),a(),p(4,"input",28),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a()()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;_("startingPath",i.Value()),l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),S(i.FormView.longDescription?3:-1),l(),g("id","destination-",i.Name,"-",t,""),_("ngModel",i.Value())}}function fe(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function Se(n,o){n&1&&(p(0,"spk-icon",25),m(1,"link"),a())}function Fe(n,o){n&1&&(p(0,"spk-icon",25),m(1,"textbox"),a())}function Te(n,o){if(n&1){let e=x();p(0,"spk-form-field")(1,"label",26),m(2),C(3,fe,3,1,"spk-tooltip",27),a(),p(4,"input",28),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a(),C(5,Se,2,0,"spk-icon",25)(6,Fe,2,0,"spk-icon",25),a()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),S(i.FormView.longDescription?3:-1),l(),g("id","destination-",i.Name,"-",t,""),_("ngModel",i.Value()),l(),S(i.FormView.type==="Path"?5:6)}}function we(n,o){if(n&1){let e=x();p(0,"spk-icon",31),f("click",function(){d(e);let t=s(2).$implicit;return u(t.showPassword=!t.showPassword)}),m(1," eye "),a()}}function Ve(n,o){if(n&1){let e=x();p(0,"spk-icon",31),f("click",function(){d(e);let t=s(2).$implicit;return u(t.showPassword=!t.showPassword)}),m(1," eye-slash "),a()}}function Oe(n,o){if(n&1){let e=x();p(0,"spk-form-field")(1,"label",26),m(2),a(),p(3,"input",29),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a(),p(4,"spk-icon",25),m(5,"password"),a(),C(6,we,2,0,"spk-icon",30)(7,Ve,2,0,"spk-icon",30),a()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),g("id","destination-",i.Name,"-",t,""),_("type",i.showPassword?"text":"password")("ngModel",i.Value()),l(3),S(i.showPassword?6:7)}}function ye(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function Ie(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;F(" ",e," ")}}function ke(n,o){if(n&1){let e=x();p(0,"spk-select",32)(1,"label",26),m(2),C(3,ye,3,1,"spk-tooltip",27),a(),p(4,"input",28),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a()(),C(5,Ie,1,1,"ng-template",null,1,A)}if(n&2){let e=E(6),i=s(),t=i.$implicit,r=i.$index;_("options",t.FormView.options)("isClearable",!1)("optionTemplate",e),l(),g("for","destination-",t.Name,"-",r,""),l(),F(" ",t.FormView.shortDescription," "),l(),S(t.FormView.longDescription?3:-1),l(),g("id","destination-",t.Name,"-",r,""),_("ngModel",t.Value())}}function he(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function Me(n,o){if(n&1){let e=x();p(0,"app-size",33),b("ngModelChange",function(t){d(e);let r=s().$implicit;return D(r.Value,t)||(r.Value=t),u(t)}),p(1,"label",26),m(2),C(3,he,3,1,"spk-tooltip",27),a()()}if(n&2){let e,i=s(),t=i.$implicit,r=i.$index;_("inputType",t.Name),v("ngModel",t.Value),_("customId","destination-{{ item.Name }}-{{ $index }}"),l(),g("for","destination-",t.Name,"-",r,""),l(),F(" ",(e=t.FormView.shortDescription)!==null&&e!==void 0?e:t.FormView.name," "),l(),S(t.FormView.longDescription?3:-1)}}function Ne(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function $e(n,o){if(n&1){let e=x();p(0,"spk-form-field")(1,"label",26),m(2),C(3,Ne,3,1,"spk-tooltip",27),a(),p(4,"input",34),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a(),p(5,"spk-icon",25),m(6,"numpad"),a()()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),S(i.FormView.longDescription?3:-1),l(),g("id","destination-",i.Name,"-",t,""),_("ngModel",i.Value())}}function Pe(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function Ee(n,o){if(n&1){let e=x();p(0,"spk-toggle",21)(1,"label",26),m(2),C(3,Pe,3,1,"spk-tooltip",27),a(),p(4,"input",35),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a()()}if(n&2){let e=s(),i=e.$implicit,t=e.$index;l(),g("for","destination-",i.Name,"-",t,""),l(),F(" ",i.FormView.shortDescription," "),l(),S(i.FormView.longDescription?3:-1),l(),g("id","destination-",i.Name,"-",t,""),_("ngModel",i.Value())}}function Le(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function ve(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;F(" ",e," ")}}function De(n,o){if(n&1){let e=x();p(0,"spk-select",36)(1,"label",26),m(2),C(3,Le,3,1,"spk-tooltip",27),a(),p(4,"input",37),f("ngModelChange",function(t){d(e);let r=s().$implicit,c=s();return u(c.updateSettingValue(r,t))}),a()(),C(5,ve,1,1,"ng-template",null,2,A)}if(n&2){let e=E(6),i=s(),t=i.$implicit,r=i.$index;_("options",t.FormView.options)("selectMultiple",!0)("optionTemplate",e),l(),g("for","destination-",t.Name,"-",r,""),l(),F(" ",t.FormView.shortDescription," "),l(),S(t.FormView.longDescription?3:-1),l(),_("ngModel",t.Value())}}function be(n,o){if(n&1&&(p(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=s(2).$implicit;_("message",e.FormView.longDescription)}}function Ae(n,o){if(n&1){let e=x();p(0,"app-timespan",33),b("ngModelChange",function(t){d(e);let r=s().$implicit;return D(r.Value,t)||(r.Value=t),u(t)}),p(1,"label",26),m(2),C(3,be,3,1,"spk-tooltip",27),a()()}if(n&2){let e,i=s(),t=i.$implicit,r=i.$index;_("inputType",t.Name),v("ngModel",t.Value),_("customId","destination-{{ item.Name }}-{{ $index }}"),l(),g("for","destination-",t.Name,"-",r,""),l(),F(" ",(e=t.FormView.shortDescription)!==null&&e!==void 0?e:t.FormView.name," "),l(),S(t.FormView.longDescription?3:-1)}}function Be(n,o){if(n&1){let e=x();p(0,"div",13),C(1,de,12,3,"div",17)(2,ge,5,14,"app-file-tree",18)(3,xe,5,10,"app-file-tree",19)(4,Te,7,10,"spk-form-field")(5,Oe,8,10,"spk-form-field")(6,ke,7,12)(7,Me,4,8,"app-size",20)(8,$e,7,9,"spk-form-field")(9,Ee,5,9,"spk-toggle",21)(10,De,7,9)(11,Ae,4,8,"app-timespan",20),p(12,"button",22),f("click",function(){let t=d(e).$implicit,r=s();return u(r.removeSetting(t))}),p(13,"spk-icon"),m(14,"x-bold"),a()()()}if(n&2){let e=o.$implicit;l(),S(e.FormView.type==="FreeText"?1:e.FormView.type==="FileTree"?2:e.FormView.type==="FolderTree"?3:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"?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"||e.FormView.type==="DateTime"?11:-1)}}var ae=class n{#e=R(Q);options=G.required();hiddenOptions=k([]);hasFreeTextSettings=k(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=B(()=>{let o=this.hiddenOptions();return this.options().map(i=>{let t=this.allOptions().find(r=>r.name===i.Name);if(t&&!o.includes(t.name)){let r=i.Value??"";t.type==="Boolean"&&(r=r&&r.toLowerCase()==="true"||!1),t.type==="Integer"&&(r=parseInt(r)||0);let c=h(r);return w(T({},i),{Value:c,FormView:t})}else if(this.hasFreeTextSettings())return w(T({},i),{Value:h(i.Value),FormView:{name:i.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(i=>i!==null)});nonSelectedOptionsGrouped=B(()=>{let o=this.options().map(i=>i.Name),e=this.hiddenOptions();return this.allOptionsGrouped().map(i=>w(T({},i),{options:i.options.filter(t=>!o.includes(t.name)&&!e.includes(t.name))})).filter(i=>i.options.length>0)});addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(o=>[...o,{Filter:null,Name:"",Value:""}])}addSetting(o){this.options.update(e=>{let i=o.defaultValue??"";return o.type==="Boolean"&&(i=i.toLowerCase()==="true"||!1),o.type==="Integer"&&(i=parseInt(i)||0),[...e,{Name:o.name,Value:i}]})}updateSettingValue(o,e){this.options.update(i=>{let t=[...i],r=t.findIndex(c=>c.Name===o.Name);return o.FormView.type==="Boolean"?(t[r].Value=e?"True":"False",t):o.FormView.type==="Integer"?(t[r].Value=e.toString(),t):(t[r].Value=e,t)})}updateFreeTextSettingName(o,e){this.options.update(i=>{let t=[...i],r=t.findIndex(c=>c.Name===o.Name);return t[r].Name=e,t})}removeSetting(o){this.options.update(e=>e.filter(i=>i.Name!==o.Name))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=z({type:n,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"]},outputs:{options:"optionsChange"},decls:16,vars:4,consts:()=>{let o;o=$localize`Advanced options`;let e;e=$localize` Add advanced option ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let i;return i=$localize` New custom option ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:pen${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["option",""],["enumOptionTemplate",""],["optionTemplate",""],o,e,i,[3,"disallowToggle"],["title",""],[1,"actions"],["spk-button","","type","button",1,"outlined","small"],[3,"searchable"],["menu",""],[1,"placeholder"],[1,"field-row"],["spk-button","","type","button",1,"outlined","small",3,"click"],["type","button"],["type","button",3,"click"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined","remove-btn",3,"click"],[1,"form-row"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],[1,"primary",3,"message"],["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,i){e&1&&(p(0,"spk-toggle-card",6),N(1,7)(2),K(3,3),I(),p(4,"div",8),C(5,se,3,0,"button",9),p(6,"spk-menu",10)(7,"button",9),$(8,4),M(9,"spk-icon"),P(),a(),N(10,11),O(11,_e,4,1,null,null,V),I(),a()(),I(),C(13,ce,2,0,"div",12),O(14,Be,15,1,"div",13,V),a()),e&2&&(_("disallowToggle",!0),l(5),S(i.hasFreeTextSettings()?5:-1),l(),_("searchable",!0),l(5),y(i.nonSelectedOptionsGrouped()),l(2),S(i.selectedSettings().length===0?13:-1),l(),y(i.selectedSettings()))},dependencies:[oe,ee,ne,Y,te,ie,re,H,W,U,X,J,q,j,Z,le,pe],styles:["[_nghost-%COMP%]{display:block}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}spk-toggle[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-level-60R);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}"],changeDetection:0})};export{ae as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as a,j as b}from"./chunk-6UVVDGKQ.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-MM22YS5Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{m as g}from"./chunk-6UVVDGKQ.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import{a as k}from"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-MM22YS5Z.js";import{a as I}from"./chunk-SFWQDWHT.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import{a as N}from"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import{b as P,c as h,e as E,f as B}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{p as $,q as M,v as b}from"./chunk-XQKR67WI.js";import{b as O}from"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-O6GWHO26.js";import"./chunk-M7VDIUGU.js";import"./chunk-BWYJMRKB.js";import{C as m,Db as d,Eb as c,Na as r,W as l,Za as f,cb as C,hc as R,kb as u,kc as _,pb as D,tb as s,ub as p,vb as n,yc as A}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l(N);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=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.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,M,b,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-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{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ae}from"./chunk-TLY4PQBT.js";import{m as le}from"./chunk-6UVVDGKQ.js";import{a as ie,b as se}from"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-MM22YS5Z.js";import"./chunk-RHW5QVAY.js";import{c as Z,e as J,h as ee,j as ne,s as te,t as oe}from"./chunk-JJQARMUD.js";import{b as V,d as q}from"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import{a as Y,g as H,l as Q,t as j}from"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import{Db as S,Eb as O,Fb as r,Jb as I,Kb as c,Na as p,Ua as v,Vb as U,W as C,Wb as X,Za as K,ba as P,bc as u,ca as f,cb as N,cc as d,dc as m,ic as W,kb as g,mb as G,pb as F,ra as x,tb as t,ub as i,vb as T,xc as k,zb as M}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var _e=["formRef"],re=()=>["encryption-module","--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption","keep-time","keep-versions","retention-policy"];function pe(s,a){s&1&&(S(0,1,1),T(1,"spk-icon",20),O())}function ce(s,a){s&1&&(t(0,"p",20),r(1,6),i())}function ue(s,a){s&1&&(t(0,"p"),r(1,7),i())}function de(s,a){if(s&1){let e=M();t(0,"p"),r(1,8),i(),t(2,"app-timespan",18),m("ngModelChange",function(l){P(e);let o=c();return d(o.optionsFields.backupRetentionTime,l)||(o.optionsFields.backupRetentionTime=l),f(l)}),t(3,"label",29),r(4,9),i()()}if(s&2){let e=c();p(2),g("customId","backupRetentionTime"),u("ngModel",e.optionsFields.backupRetentionTime)}}function me(s,a){if(s&1){let e=M();t(0,"p"),r(1,10),i(),t(2,"spk-form-field")(3,"label",30),r(4,11),i(),t(5,"input",31),m("ngModelChange",function(l){P(e);let o=c();return d(o.optionsFields.backupRetentionVersions,l)||(o.optionsFields.backupRetentionVersions=l),f(l)}),i()()}if(s&2){let e=c();p(5),u("ngModel",e.optionsFields.backupRetentionVersions)}}function Se(s,a){s&1&&(t(0,"p"),r(1,12),i())}function Oe(s,a){if(s&1){let e=M();t(0,"p"),r(1,13),i(),t(2,"spk-form-field")(3,"p"),r(4,14),i(),t(5,"label",32),r(6,15),i(),t(7,"input",33),m("ngModelChange",function(l){P(e);let o=c();return d(o.optionsFields.backupRetentionCustom,l)||(o.optionsFields.backupRetentionCustom=l),f(l)}),i()()}if(s&2){let e=c();p(7),u("ngModel",e.optionsFields.backupRetentionCustom)}}var ge=["Bytes","KB","MB","GB","TB","PB"],Te=[{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,h=class s{#e=C(le);#n=C(q);#t=C(V);formRef=v.required("formRef");selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;settings=this.#e.settings;optionsFields=this.#e.optionsFields;retentionOptions=x(Te);sizeSplit=k(()=>{let e=this.optionsFields.remoteVolumeSize().match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);return{value:e?parseInt(e[1],10):0,unit:e?e[2].toUpperCase():"MB"}});exceededVolumeSize=k(()=>{let a=this.sizeSplit().value,e=this.sizeSplit().unit;if(a==null||e===null||e===void 0)return!1;let n=a*Math.pow(1024,ge.indexOf(e));return n>Ce||n<Pe});goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#t.parent})}submit(){this.#e.submit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=K({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&U(n.formRef,_e,5),e&2&&X()},decls:30,vars:14,consts:()=>{let a;a=$localize`Options`;let e;e=$localize` Remote volume size ${"\uFFFD*7:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/*7:1\uFFFD"}:CLOSE_BLOCK_IF:`;let n;n=$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_SPK_ICON:arrow-square-out${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#11\uFFFD"}:CLOSE_LINK:`;let l;l=$localize`Backup retention`;let o;o=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let E;E=$localize`${"\uFFFD#29\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `;let b;b=$localize` The chosen size is outside the recommended range. This may cause performance issues, excessively large temporary files or other problems. `;let A;A=$localize`Nothing will be deleted. The backup size will grow with each change.`;let R;R=$localize`If at least one newer backup is found, all backups older than this date are deleted.`;let y;y=$localize`Time to keep versions`;let $;$=$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`,[a,e,n,l,o,E,b,A,R,y,$,w,D,B,L,z,[1,"title-30"],[1,"remote-volume-wrap"],[3,"ngModelChange","customId","ngModel"],["for","size"],[1,"warning"],["href","https://forum.duplicati.com/t/choosing-sizes-in-duplicati/17683","target","_blank",1,"spk-primary"],["suffix",""],["value","value","label","name",3,"options","inlineSearch","isClearable"],["type","text",3,"ngModelChange","ngModel"],[3,"optionsChange","options","hiddenOptions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","",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(e,n){e&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(n.optionsFields.remoteVolumeSize,o)||(n.optionsFields.remoteVolumeSize=o),o}),t(5,"label",19),S(6,1),N(7,pe,2,0,"spk-icon",20),O(),i()(),N(8,ce,2,0,"p",20),t(9,"p"),S(10,2),t(11,"a",21),T(12,"spk-icon",22),i(),O(),i()(),t(13,"spk-select",23)(14,"label",19),r(15,3),i(),t(16,"input",24),m("ngModelChange",function(o){return d(n.optionsFields.backupRetention,o)||(n.optionsFields.backupRetention=o),o}),i()(),N(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",25),m("optionsChange",function(o){return d(n.settings,o)||(n.settings=o),o}),i(),t(23,"div",26)(24,"button",27),I("click",function(){return n.goBack()}),S(25,4),T(26,"spk-icon"),O(),i(),t(27,"button",28),I("click",function(){return n.submit()}),S(28,5),T(29,"spk-icon"),O(),i()()()),e&2&&(p(4),g("customId","size"),u("ngModel",n.optionsFields.remoteVolumeSize),p(3),F(n.exceededVolumeSize()?7:-1),p(),F(n.exceededVolumeSize()?8:-1),p(5),g("options",n.retentionOptions())("inlineSearch",!0)("isClearable",!1),p(3),u("ngModel",n.optionsFields.backupRetention),p(),F(n.optionsFields.backupRetention()==="all"?17:n.optionsFields.backupRetention()==="time"?18:n.optionsFields.backupRetention()==="versions"?19:n.optionsFields.backupRetention()==="smart"?20:n.optionsFields.backupRetention()==="custom"?21:-1),p(5),u("options",n.settings),g("hiddenOptions",W(13,re)),p(5),G("loader",n.isSubmitting()))},dependencies:[te,Z,ne,J,ee,oe,ae,H,Y,j,ie,se,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-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}.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}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}"],changeDetection:0})};export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-4DZRXRA3.js")},{path:"destination",loadComponent:()=>import("./chunk-YOTPPWSO.js")},{path:"source-data",loadComponent:()=>import("./chunk-YBLCACKN.js")},{path:"schedule",loadComponent:()=>import("./chunk-TUR6D3AC.js")},{path:"options",loadComponent:()=>import("./chunk-ULTH3Z7H.js")}];export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{k as a,l as b}from"./chunk-6UVVDGKQ.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-MM22YS5Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b,e as c}from"./chunk-
|
|
1
|
+
import{c as a,d as b,e as c}from"./chunk-6UVVDGKQ.js";import"./chunk-LBZ753XE.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-DNHLTHLR.js";import"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-MM22YS5Z.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-
|
|
1
|
+
import{e as a,f as b}from"./chunk-BA7NYTFR.js";import"./chunk-XH2A67YP.js";import"./chunk-ISRMJKPG.js";import"./chunk-3V622MYY.js";import"./chunk-WCLOWI5G.js";import"./chunk-ZP273LXY.js";import"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import"./chunk-RHW5QVAY.js";import"./chunk-JJQARMUD.js";import"./chunk-3UJUWE5B.js";import"./chunk-I3TLRILF.js";import"./chunk-2SGDSXNW.js";import"./chunk-XQKR67WI.js";import"./chunk-CEOO3F5U.js";import"./chunk-K3CYM6ID.js";import"./chunk-M7VDIUGU.js";import"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/index.html
CHANGED
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
<body>
|
|
37
37
|
<app-root></app-root>
|
|
38
38
|
<div class="loading">Loading ...</div>
|
|
39
|
-
<link rel="modulepreload" href="chunk-DJWNLIDJ.js"><link rel="modulepreload" href="chunk-WCLOWI5G.js"><link rel="modulepreload" href="chunk-KABJYPCP.js"><link rel="modulepreload" href="chunk-UXWTPWS6.js"><link rel="modulepreload" href="chunk-ZP273LXY.js"><link rel="modulepreload" href="chunk-D5WIWFNP.js"><link rel="modulepreload" href="chunk-WSLU6K4D.js"><link rel="modulepreload" href="chunk-UJZB6UQE.js"><link rel="modulepreload" href="chunk-RHW5QVAY.js"><link rel="modulepreload" href="chunk-3UJUWE5B.js"><script src="polyfills-BZ5XXHZK.js" type="module"></script><script src="main-
|
|
39
|
+
<link rel="modulepreload" href="chunk-DJWNLIDJ.js"><link rel="modulepreload" href="chunk-WCLOWI5G.js"><link rel="modulepreload" href="chunk-KABJYPCP.js"><link rel="modulepreload" href="chunk-UXWTPWS6.js"><link rel="modulepreload" href="chunk-ZP273LXY.js"><link rel="modulepreload" href="chunk-D5WIWFNP.js"><link rel="modulepreload" href="chunk-WSLU6K4D.js"><link rel="modulepreload" href="chunk-UJZB6UQE.js"><link rel="modulepreload" href="chunk-RHW5QVAY.js"><link rel="modulepreload" href="chunk-3UJUWE5B.js"><script src="polyfills-BZ5XXHZK.js" type="module"></script><script src="main-CVAZAPFI.js" type="module"></script></body>
|
|
40
40
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as fe,c as ge}from"./chunk-DJWNLIDJ.js";import{a as x}from"./chunk-WCLOWI5G.js";import{a as me}from"./chunk-KABJYPCP.js";import{a as he}from"./chunk-UXWTPWS6.js";import{a as k}from"./chunk-ZP273LXY.js";import{a as pe}from"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import{a as N}from"./chunk-RHW5QVAY.js";import{a as y,b,c as le,d as w}from"./chunk-3UJUWE5B.js";import{c as ne,d as re,g as se,h as ie}from"./chunk-I3TLRILF.js";import{a as oe}from"./chunk-2SGDSXNW.js";import{c as ce}from"./chunk-XQKR67WI.js";import{d as ae}from"./chunk-CEOO3F5U.js";import{a as Q,b as Y,d as Z,e as ee,f as te}from"./chunk-K3CYM6ID.js";import{a as ue}from"./chunk-O6GWHO26.js";import{j as q,l as X}from"./chunk-M7VDIUGU.js";import{b as de}from"./chunk-BWYJMRKB.js";import{D as R,J as F,L as S,N as U,Q as T,T as G,W as s,Za as B,d as H,g as V,ga as J,l as j,m as W,p as A,ra as d,rc as K,sc as _,vb as $,x as O,y as D,yc as z}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var I=class o{#o=s(y);#s=s(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=B({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&$(0,"router-outlet")},dependencies:[ne],encapsulation:2})};var be={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new G("ENVIRONMENT");var M=class o{#o=s(ae);isLoaded=d(!1);webmodules=d(null);preload(e=!1){let t=this.#o.getApiV1Webmodules().pipe(U(n=>this.webmodules.set(n)),R(()=>this.isLoaded.set(!0)));if(e)return t;t.subscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ie=()=>{let o=s(w);return o.token()?!0:o.checkProxyAuthed().pipe(S(e=>e?j(!0):o.refreshToken().pipe(A(()=>!0))))},Me=()=>{let o=s(b),e=s(k),t=s(J),n=o.relayIsEnabled()?"longpoll":"websocket",i=[t.get(x).preload(!0),t.get(x).preloadFilterGroups(!0),t.get(M).preload(!0)];return o.configLoaded===null?O(i).pipe(A(()=>n)):o.configLoaded?.pipe(S(()=>O(i)))},ve=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-PFAU4FFV.js")},{path:"logout",loadComponent:()=>import("./chunk-NFME267J.js")},{path:"",canActivate:[Ie],children:[{path:"",canActivate:[Me],loadComponent:()=>import("./chunk-
|
|
1
|
+
import{b as fe,c as ge}from"./chunk-DJWNLIDJ.js";import{a as x}from"./chunk-WCLOWI5G.js";import{a as me}from"./chunk-KABJYPCP.js";import{a as he}from"./chunk-UXWTPWS6.js";import{a as k}from"./chunk-ZP273LXY.js";import{a as pe}from"./chunk-D5WIWFNP.js";import"./chunk-WSLU6K4D.js";import"./chunk-UJZB6UQE.js";import{a as N}from"./chunk-RHW5QVAY.js";import{a as y,b,c as le,d as w}from"./chunk-3UJUWE5B.js";import{c as ne,d as re,g as se,h as ie}from"./chunk-I3TLRILF.js";import{a as oe}from"./chunk-2SGDSXNW.js";import{c as ce}from"./chunk-XQKR67WI.js";import{d as ae}from"./chunk-CEOO3F5U.js";import{a as Q,b as Y,d as Z,e as ee,f as te}from"./chunk-K3CYM6ID.js";import{a as ue}from"./chunk-O6GWHO26.js";import{j as q,l as X}from"./chunk-M7VDIUGU.js";import{b as de}from"./chunk-BWYJMRKB.js";import{D as R,J as F,L as S,N as U,Q as T,T as G,W as s,Za as B,d as H,g as V,ga as J,l as j,m as W,p as A,ra as d,rc as K,sc as _,vb as $,x as O,y as D,yc as z}from"./chunk-XGARKXE4.js";import"./chunk-7CGTOI24.js";var I=class o{#o=s(y);#s=s(b);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=B({type:o,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&$(0,"router-outlet")},dependencies:[ne],encapsulation:2})};var be={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new G("ENVIRONMENT");var M=class o{#o=s(ae);isLoaded=d(!1);webmodules=d(null);preload(e=!1){let t=this.#o.getApiV1Webmodules().pipe(U(n=>this.webmodules.set(n)),R(()=>this.isLoaded.set(!0)));if(e)return t;t.subscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ie=()=>{let o=s(w);return o.token()?!0:o.checkProxyAuthed().pipe(S(e=>e?j(!0):o.refreshToken().pipe(A(()=>!0))))},Me=()=>{let o=s(b),e=s(k),t=s(J),n=o.relayIsEnabled()?"longpoll":"websocket",i=[t.get(x).preload(!0),t.get(x).preloadFilterGroups(!0),t.get(M).preload(!0)];return o.configLoaded===null?O(i).pipe(A(()=>n)):o.configLoaded?.pipe(S(()=>O(i)))},ve=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-PFAU4FFV.js")},{path:"logout",loadComponent:()=>import("./chunk-NFME267J.js")},{path:"",canActivate:[Ie],children:[{path:"",canActivate:[Me],loadComponent:()=>import("./chunk-NEZX7ARK.js"),children:[{path:"",loadComponent:()=>import("./chunk-FRXAEGHW.js")},{path:"add-backup",loadComponent:()=>import("./chunk-OH33D663.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-YPSSTA3J.js")},{path:"backup/import",loadComponent:()=>import("./chunk-MYK7A3PZ.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-UH6BCOA6.js"),loadChildren:()=>import("./chunk-VDQCSHBX.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-UH6BCOA6.js"),loadChildren:()=>import("./chunk-VDQCSHBX.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-DRBDCRHV.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-ONSJL7VA.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-5SLAQVCB.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-ZHAXIU33.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-3NDOYD25.js")},{path:"from-config",loadComponent:()=>import("./chunk-E2LHQGCK.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-RQSCZC6C.js"),loadChildren:()=>import("./chunk-LHTAXP73.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-RQSCZC6C.js"),loadChildren:()=>import("./chunk-LHTAXP73.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-RQSCZC6C.js"),loadChildren:()=>import("./chunk-LHTAXP73.js")},{path:"settings",loadComponent:()=>import("./chunk-PWLZT57L.js")},{path:"about",loadComponent:()=>import("./chunk-EO2PLY2Q.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-FDMBNUIK.js")},{path:"changelog",loadComponent:()=>import("./chunk-4FF7PF7J.js")},{path:"libraries",loadComponent:()=>import("./chunk-3IZBE2NA.js")},{path:"system-info",loadComponent:()=>import("./chunk-BKWTKAB4.js")},{path:"logs",loadChildren:()=>import("./chunk-54SNAQYD.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-VRGLHRK2.js")}]}]}]}]}];var L=null,Ce=(o,e)=>{let t=s(w),n=s(re),i=s(y),c=s(f),r=i.getItem("locale"),u=s(ce),a=fe(r),p=o.url==="/api/v1/auth/login",m=o.url==="/api/v1/auth/refresh",v=o.url==="/api/v1/progressstate",g=o.url==="/api/v1/remoteoperation/test",h=t.token(),C=o,P=o.headers.has("custom-proxy-check")||h===le;if(h&&o.url.startsWith(c.baseUrl)&&!P){let l=o.headers.set("Authorization",`Bearer ${h}`);r&&r!=="en-US"&&(l=l.set("X-Ui-Language",a)),C=o.clone({headers:l})}return e(C).pipe(D(l=>{if(!P&&(v&&l.status===404||g||u.error(l.message),m&&l.status===401&&(t.logout(),n.navigate(["/logout"])),!p&&!m&&l.status===401))return L??=t.refreshToken().pipe(F()),L.pipe(S(()=>e(o.clone({headers:o.headers.set("Authorization",`Bearer ${t.token()}`)}))),R(()=>L=null));let ke=`Error Code: ${l.status}, Message: ${l.message}`;return W(()=>({error:l,message:ke}))}))};var Ee="1.0.0",Se=`portal-proxy-client-${N()}`,Ae=1,E=class o{#o=1e3;#s=s(f);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=z(()=>{let e=this.#i(),t=this.#l(),n=this.#a();if(!n||!e||!t||t<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},t)});utf8Atob(e){let t=Uint8Array.from(atob(e),i=>i.charCodeAt(0)),n=this.#m.decode(t);return n?JSON.parse(n):null}connectToMachineServer(e,t){let n=t?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(e),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=c=>{let r=JSON.parse(c.data);if(this.wsState()==="connect"){if(r.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${r.type}'`);return}let a={token:e,publicKey:"",clientVersion:Ee,protocolVersion:Ae},p=this.createResponse(r,"authportal",a);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(r.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${r.type}'`);return}var u=JSON.parse(r.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let a=this.#p.pop();a&&this.#r[a.messageId]&&this.activateCommand(a)}}else if(this.wsState()==="authenticated"){if(r.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${r.type}'`);return}let a=this.#r[r.messageId];if(a){if(r.errorMessage){a.reject(r.errorMessage);return}else{let p=JSON.parse(r.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),a.resolve(p)}delete this.#r[r.messageId],window.clearTimeout(a.timer)}}})}disconnectFromMachineServer(e=null){e&&console.error(e),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(e,t,n){let i={from:Se,to:e.from,type:t,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(e,t,n,i,c,r,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e),new Promise((a,p)=>{let m=N(),g={from:Se,to:t,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:c,headers:r})},h={resolve:a,reject:p,timer:window.setTimeout(()=>{let C=this.#r[m];C&&(delete this.#r[m],C.reject("Timeout"))},u)};this.#r[m]=h,this.#n()?this.activateCommand(g):this.#p.push(g)})}activateCommand(e){this.#e?.send(JSON.stringify(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"})};function Oe(o){if(typeof o!="string")return null;let t=new TextEncoder().encode(o);return window.btoa(String.fromCharCode(...t))}function Re(o,e,t){let n=o.relayconfigState.config();if(n===null)return t(e);let i=Oe(e.body),c={};e.headers.keys().forEach(p=>{c[p]=e.headers.get(p)??""});let r=e.headers.get("timeout"),u=r!==null?parseInt(r):o.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(u=1e3*99);let a=o.relayWebsocket.sendCommand(n.accessToken,n.clientId,e.method,e.url,i,c,u);return new H(p=>{a.then(m=>{let v=new Q;c!=null&&Object.keys(c).forEach(h=>{v.set(h,c[h])});let g=new Y({body:m.body,status:m.code,statusText:"OK",headers:v});p.next(g),p.complete()})})}var Te=(o,e)=>{let t={relayconfigState:s(b),defaultTimeout:s(f).defaultTimeout,relayWebsocket:s(E)},n=t.relayconfigState.config();if(t.relayconfigState.configLoaded!==null&&n===null){let i=new V;return t.relayconfigState.configLoaded.subscribe(c=>{c&&Re(t,o,e).subscribe(i)}),i}return Re(t,o,e)};var we={providers:[K(),se(ve,ie()),Z(te(),ee([Te,Ce])),y,{provide:f,useValue:be},{provide:_,useValue:ge()},me,k,de,X,pe,q,ue,he]};oe(I,we);
|
package/package.json
CHANGED
package/chunk-23KHTRDM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-XH2A67YP.js";import{a as _e}from"./chunk-WCLOWI5G.js";import{a as q,b as ue,c as v,e as N,h as b,j as E,s as $}from"./chunk-JJQARMUD.js";import{A as de,a as ae,g as se,l as k,o as pe,t as P,y as me,z as ce}from"./chunk-XQKR67WI.js";import{$b as le,Db as J,Eb as Q,Fb as re,Jb as x,Kb as p,Lb as j,Mb as V,Na as l,Pb as C,W as ne,Wa as oe,Xb as ee,Yb as m,Za as I,Zb as te,_b as S,ba as u,bc as F,ca as g,cb as _,cc as O,dc as w,hc as U,jb as B,kb as c,lb as z,oa as h,pb as T,pc as ie,qb as R,ra as y,rb as G,sb as W,tb as s,ub as a,vb as Y,wb as Z,xb as K,xc as M,yc as L,zb as f}from"./chunk-XGARKXE4.js";import{a as D,b as A}from"./chunk-7CGTOI24.js";var Te=[[["label"]],[["","prefix",""]],[["","suffix",""]]],ye=["label","[prefix]","[suffix]"];function he(n,o){if(n&1&&m(0),n&2){let e=o.$implicit,t=p();le("",e.label,"",t.hasPerSecond()?"/s":"","")}}var Fe=[{value:"bytes",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],Oe=["throttle-upload","throttle-download"],X=class n{customId=h();inputType=h();timespan=y(0);unit=y("MB");sizeOptions=y(Fe);readonly=y(!1);hasPerSecond=M(()=>{let o=this.inputType();return o&&Oe.includes(o)});onChange=()=>{};onTouched=()=>{};onChangeEffect=L(()=>{this.onChange(this.getValue())});writeValue(o){if(o){let e=o.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);e?(this.timespan.set(parseInt(e[1],10)),this.unit.set(e[2].toUpperCase())):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.readonly.set(o)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[U([{provide:q,useExisting:n,multi:!0}])],ngContentSelectors:ye,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,t){e&1&&(j(Te),s(0,"div",0),V(1,0,["ngProjectAs","label",5,["label"]]),a(),s(2,"spk-form-field")(3,"input",1),w("ngModelChange",function(r){return O(t.timespan,r)||(t.timespan=r),r}),a(),V(4,1),V(5,2),a(),s(6,"spk-select",2)(7,"input",3),w("ngModelChange",function(r){return O(t.unit,r)||(t.unit=r),r}),a(),_(8,he,1,2,"ng-template"),a()),e&2&&(l(2),B("readonly",t.readonly()||void 0),l(),c("id",t.customId()),F("ngModel",t.timespan),c("disabled",t.readonly()),l(3),z("--miw",0),c("options",t.sizeOptions())("readonly",t.readonly())("isClearable",!1),l(),F("ngModel",t.unit))},dependencies:[P,k,$,v,E,N,b],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var we=[[["label"]],[["","prefix",""]],[["","suffix",""]]],Ve=["label","[prefix]","[suffix]"];function Me(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;S(" ",e.label," ")}}var Ie=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ke=[{value:"y",label:$localize`Years`},{value:"m",label:$localize`Months`},{value:"w",label:$localize`Weeks`},{value:"d",label:$localize`Days`}];var H=class n{customId=h();inputType=h();timespan=y(0);#e="d";unit=y("d");isShortTime=M(()=>this.inputType()==="timespan");timeOptions=M(()=>this.isShortTime()?Ie:ke);readonly=y(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=L(()=>{this.onChange(this.getValue())});inputTypeEffect=L(()=>{let o=this.timeOptions(),e=this.isShortTime()?"s":"d";this.#e=e,this.unit.set(e)});writeValue(o){let e=this.isShortTime();if(o){let t=e?/(\d+)([smh])/i:/^(\d+)([ymwd])$/i,i=o.match(t);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.readonly.set(o)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[U([{provide:q,useExisting:n,multi:!0}])],ngContentSelectors:Ve,decls:8,vars:10,consts:()=>{let o;return o=$localize`Select an item...`,[["type","number",3,"ngModelChange","id","ngModel","disabled"],["placeholder",o,"value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]]},template:function(e,t){e&1&&(j(we),V(0,0,["ngProjectAs","label",5,["label"]]),s(1,"spk-form-field")(2,"input",0),w("ngModelChange",function(r){return O(t.timespan,r)||(t.timespan=r),r}),a(),V(3,1),V(4,2),a(),s(5,"spk-select",1)(6,"input",2),w("ngModelChange",function(r){return O(t.unit,r)||(t.unit=r),r}),a(),_(7,Me,1,1,"ng-template"),a()),e&2&&(l(),B("readonly",t.readonly()||void 0),l(),c("id",t.customId()),F("ngModel",t.timespan),c("disabled",t.readonly()),l(3),z("--miw",0),c("options",t.timeOptions())("readonly",t.readonly())("isClearable",!1),l(),F("ngModel",t.unit))},dependencies:[P,k,$,v,E,N,b],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};function Pe(n,o){if(n&1){let e=f();s(0,"button",14),x("click",function(){u(e);let i=p();return g(i.addFreeTextSetting())}),J(1,5),Y(2,"spk-icon"),Q(),a()}}function ve(n,o){if(n&1){let e=f();s(0,"button",16,0),x("click",function(){let i=u(e).$implicit,r=p(2);return g(r.addSetting(i))}),m(2),a()}if(n&2){let e=o.$implicit;l(2),te(e.name)}}function Ne(n,o){if(n&1&&(s(0,"h3",7),m(1),a(),G(2,ve,3,1,"button",15,R)),n&2){let e=o.$implicit;l(),te(e.displayName),l(),W(e.options)}}function be(n,o){n&1&&(s(0,"div",12),m(1,"Add a setting above to get started."),a())}function Ee(n,o){if(n&1){let e=f();s(0,"div",17)(1,"label"),m(2),a(),s(3,"div",23)(4,"spk-form-field")(5,"input",24),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateFreeTextSettingName(r,i))}),a(),s(6,"spk-icon",25),m(7,"rectangle-dashed"),a()(),s(8,"spk-form-field")(9,"input",24),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a(),s(10,"spk-icon",25),m(11,"textbox"),a()()()()}if(n&2){let e=p().$implicit;l(2),S(" ",e.FormView.shortDescription," "),l(3),c("ngModel",e.Name),l(4),c("ngModel",e.Value())}}function $e(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function Le(n,o){if(n&1){let e=f();s(0,"app-file-tree",18)(1,"label",26),m(2),_(3,$e,3,1,"spk-tooltip",27),a(),s(4,"input",28),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a()()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;c("startingPath",t.Value())("accepts",t.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),T(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function De(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function Ae(n,o){if(n&1){let e=f();s(0,"app-file-tree",19)(1,"label",26),m(2),_(3,De,3,1,"spk-tooltip",27),a(),s(4,"input",28),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a()()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;c("startingPath",t.Value()),l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),T(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function Be(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function ze(n,o){n&1&&(s(0,"spk-icon",25),m(1,"link"),a())}function Re(n,o){n&1&&(s(0,"spk-icon",25),m(1,"textbox"),a())}function Ge(n,o){if(n&1){let e=f();s(0,"spk-form-field")(1,"label",26),m(2),_(3,Be,3,1,"spk-tooltip",27),a(),s(4,"input",28),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a(),_(5,ze,2,0,"spk-icon",25)(6,Re,2,0,"spk-icon",25),a()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),T(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value()),l(),T(t.FormView.type==="Path"?5:6)}}function We(n,o){if(n&1){let e=f();s(0,"spk-icon",31),x("click",function(){u(e);let i=p(2).$implicit;return g(i.showPassword=!i.showPassword)}),m(1," eye "),a()}}function Ke(n,o){if(n&1){let e=f();s(0,"spk-icon",31),x("click",function(){u(e);let i=p(2).$implicit;return g(i.showPassword=!i.showPassword)}),m(1," eye-slash "),a()}}function je(n,o){if(n&1){let e=f();s(0,"spk-form-field")(1,"label",26),m(2),a(),s(3,"input",29),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a(),s(4,"spk-icon",25),m(5,"password"),a(),_(6,We,2,0,"spk-icon",30)(7,Ke,2,0,"spk-icon",30),a()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),C("id","destination-",t.Name,"-",i,""),c("type",t.showPassword?"text":"password")("ngModel",t.Value()),l(3),T(t.showPassword?6:7)}}function Ue(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function qe(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;S(" ",e," ")}}function Xe(n,o){if(n&1){let e=f();s(0,"spk-select",32)(1,"label",26),m(2),_(3,Ue,3,1,"spk-tooltip",27),a(),s(4,"input",28),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a()(),_(5,qe,1,1,"ng-template",null,1,ie)}if(n&2){let e=ee(6),t=p(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("isClearable",!1)("optionTemplate",e),l(),C("for","destination-",i.Name,"-",r,""),l(),S(" ",i.FormView.shortDescription," "),l(),T(i.FormView.longDescription?3:-1),l(),C("id","destination-",i.Name,"-",r,""),c("ngModel",i.Value())}}function He(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function Ye(n,o){if(n&1){let e=f();s(0,"app-size",33),w("ngModelChange",function(i){u(e);let r=p().$implicit;return O(r.Value,i)||(r.Value=i),g(i)}),s(1,"label",26),m(2),_(3,He,3,1,"spk-tooltip",27),a()()}if(n&2){let e,t=p(),i=t.$implicit,r=t.$index;c("inputType",i.Name),F("ngModel",i.Value),c("customId","destination-{{ item.Name }}-{{ $index }}"),l(),C("for","destination-",i.Name,"-",r,""),l(),S(" ",(e=i.FormView.shortDescription)!==null&&e!==void 0?e:i.FormView.name," "),l(),T(i.FormView.longDescription?3:-1)}}function Ze(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function Je(n,o){if(n&1){let e=f();s(0,"spk-form-field")(1,"label",26),m(2),_(3,Ze,3,1,"spk-tooltip",27),a(),s(4,"input",34),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a(),s(5,"spk-icon",25),m(6,"numpad"),a()()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),T(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function Qe(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function et(n,o){if(n&1){let e=f();s(0,"spk-toggle",21)(1,"label",26),m(2),_(3,Qe,3,1,"spk-tooltip",27),a(),s(4,"input",35),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a()()}if(n&2){let e=p(),t=e.$implicit,i=e.$index;l(),C("for","destination-",t.Name,"-",i,""),l(),S(" ",t.FormView.shortDescription," "),l(),T(t.FormView.longDescription?3:-1),l(),C("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function tt(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function it(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;S(" ",e," ")}}function nt(n,o){if(n&1){let e=f();s(0,"spk-select",36)(1,"label",26),m(2),_(3,tt,3,1,"spk-tooltip",27),a(),s(4,"input",37),x("ngModelChange",function(i){u(e);let r=p().$implicit,d=p();return g(d.updateSettingValue(r,i))}),a()(),_(5,it,1,1,"ng-template",null,2,ie)}if(n&2){let e=ee(6),t=p(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("selectMultiple",!0)("optionTemplate",e),l(),C("for","destination-",i.Name,"-",r,""),l(),S(" ",i.FormView.shortDescription," "),l(),T(i.FormView.longDescription?3:-1),l(),c("ngModel",i.Value())}}function ot(n,o){if(n&1&&(s(0,"spk-tooltip",27)(1,"spk-icon"),m(2,"question"),a()()),n&2){let e=p(2).$implicit;c("message",e.FormView.longDescription)}}function rt(n,o){if(n&1){let e=f();s(0,"app-timespan",33),w("ngModelChange",function(i){u(e);let r=p().$implicit;return O(r.Value,i)||(r.Value=i),g(i)}),s(1,"label",26),m(2),_(3,ot,3,1,"spk-tooltip",27),a()()}if(n&2){let e,t=p(),i=t.$implicit,r=t.$index;c("inputType",i.Name),F("ngModel",i.Value),c("customId","destination-{{ item.Name }}-{{ $index }}"),l(),C("for","destination-",i.Name,"-",r,""),l(),S(" ",(e=i.FormView.shortDescription)!==null&&e!==void 0?e:i.FormView.name," "),l(),T(i.FormView.longDescription?3:-1)}}function lt(n,o){if(n&1){let e=f();s(0,"div",13),_(1,Ee,12,3,"div",17)(2,Le,5,14,"app-file-tree",18)(3,Ae,5,10,"app-file-tree",19)(4,Ge,7,10,"spk-form-field")(5,je,8,10,"spk-form-field")(6,Xe,7,12)(7,Ye,4,8,"app-size",20)(8,Je,7,9,"spk-form-field")(9,et,5,9,"spk-toggle",21)(10,nt,7,9)(11,rt,4,8,"app-timespan",20),s(12,"button",22),x("click",function(){let i=u(e).$implicit,r=p();return g(r.removeSetting(i))}),s(13,"spk-icon"),m(14,"x-bold"),a()()()}if(n&2){let e=o.$implicit;l(),T(e.FormView.type==="FreeText"?1:e.FormView.type==="FileTree"?2:e.FormView.type==="FolderTree"?3:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"?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"||e.FormView.type==="DateTime"?11:-1)}}var Se=class n{#e=ne(_e);options=oe.required();hiddenOptions=h([]);hasFreeTextSettings=h(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=M(()=>{let o=this.hiddenOptions();return this.options().map(t=>{let i=this.allOptions().find(r=>r.name===t.Name);if(i&&!o.includes(i.name)){let r=t.Value??"";i.type==="Boolean"&&(r=r&&r.toLowerCase()==="true"||!1),i.type==="Integer"&&(r=parseInt(r)||0);let d=y(r);return A(D({},t),{Value:d,FormView:i})}else if(this.hasFreeTextSettings())return A(D({},t),{Value:y(t.Value),FormView:{name:t.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(t=>t!==null)});nonSelectedOptionsGrouped=M(()=>{let o=this.options().map(t=>t.Name),e=this.hiddenOptions();return this.allOptionsGrouped().map(t=>A(D({},t),{options:t.options.filter(i=>!o.includes(i.name)&&!e.includes(i.name))})).filter(t=>t.options.length>0)});addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(o=>[...o,{Filter:null,Name:"",Value:""}])}addSetting(o){this.options.update(e=>{let t=o.defaultValue??"";return o.type==="Boolean"&&(t=t.toLowerCase()==="true"||!1),o.type==="Integer"&&(t=parseInt(t)||0),[...e,{Name:o.name,Value:t}]})}updateSettingValue(o,e){this.options.update(t=>{let i=[...t],r=i.findIndex(d=>d.Name===o.Name);return o.FormView.type==="Boolean"?(i[r].Value=e?"True":"False",i):o.FormView.type==="Integer"?(i[r].Value=e.toString(),i):(i[r].Value=e,i)})}updateFreeTextSettingName(o,e){this.options.update(t=>{let i=[...t],r=i.findIndex(d=>d.Name===o.Name);return i[r].Name=e,i})}removeSetting(o){this.options.update(e=>e.filter(t=>t.Name!==o.Name))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"]},outputs:{options:"optionsChange"},decls:16,vars:4,consts:()=>{let o;o=$localize`Advanced options`;let e;e=$localize` Add advanced option ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let t;return t=$localize` New custom option ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:pen${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["option",""],["enumOptionTemplate",""],["optionTemplate",""],o,e,t,[3,"disallowToggle"],["title",""],[1,"actions"],["spk-button","","type","button",1,"outlined","small"],[3,"searchable"],["menu",""],[1,"placeholder"],[1,"field-row"],["spk-button","","type","button",1,"outlined","small",3,"click"],["type","button"],["type","button",3,"click"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["spk-button","","type","button",1,"outlined","remove-btn",3,"click"],[1,"form-row"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],[1,"primary",3,"message"],["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,t){e&1&&(s(0,"spk-toggle-card",6),Z(1,7)(2),re(3,3),K(),s(4,"div",8),_(5,Pe,3,0,"button",9),s(6,"spk-menu",10)(7,"button",9),J(8,4),Y(9,"spk-icon"),Q(),a(),Z(10,11),G(11,Ne,4,1,null,null,R),K(),a()(),K(),_(13,be,2,0,"div",12),G(14,lt,15,1,"div",13,R),a()),e&2&&(c("disallowToggle",!0),l(5),T(t.hasFreeTextSettings()?5:-1),l(),c("searchable",!0),l(5),W(t.nonSelectedOptionsGrouped()),l(2),T(t.selectedSettings().length===0?13:-1),l(),W(t.selectedSettings()))},dependencies:[$,v,E,ue,N,b,ge,me,k,se,pe,de,ae,P,ce,X,H],styles:["[_nghost-%COMP%]{display:block}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}spk-toggle[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-level-60R);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}"],changeDetection:0})};export{X as a,H as b,Se as c};
|
package/chunk-2ZK7AAG4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-7CGTOI24.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-QRVYPTC6.js")},{path:"encryption",loadComponent:()=>import("./chunk-GNTO7EKM.js")},{path:"select-files",loadComponent:()=>import("./chunk-H6IX2D2G.js")},{path:"options",loadComponent:()=>import("./chunk-7NPADQLG.js")}],o=t;export{o as default};
|