@duplicati/ngclient 0.0.97 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/chunk-22CSSCKZ.js +1 -0
  3. package/chunk-23KHTRDM.js +1 -0
  4. package/chunk-2SGDSXNW.js +1 -0
  5. package/chunk-2ZK7AAG4.js +1 -0
  6. package/chunk-36ZZ3COU.js +1 -0
  7. package/{chunk-QPO2N2OR.js → chunk-3IZBE2NA.js} +1 -1
  8. package/chunk-3NDOYD25.js +1 -0
  9. package/chunk-3UJUWE5B.js +1 -0
  10. package/chunk-3V622MYY.js +1 -0
  11. package/chunk-436ZVGPO.js +1 -0
  12. package/chunk-47OESBLR.js +1 -0
  13. package/{chunk-LO4MUZS2.js → chunk-4FF7PF7J.js} +1 -1
  14. package/chunk-54SNAQYD.js +1 -0
  15. package/chunk-7NPADQLG.js +1 -0
  16. package/chunk-AKXOFDEQ.js +8 -0
  17. package/chunk-AMJ2CM2Q.js +1 -0
  18. package/chunk-ASEBN4DE.js +1 -0
  19. package/chunk-BKWTKAB4.js +1 -0
  20. package/{chunk-CHZ7TMI7.js → chunk-BWYJMRKB.js} +1 -1
  21. package/chunk-CEOO3F5U.js +1 -0
  22. package/chunk-D5WIWFNP.js +1 -0
  23. package/{chunk-W5YK2JJZ.js → chunk-DJWNLIDJ.js} +1 -1
  24. package/chunk-DRBDCRHV.js +1 -0
  25. package/{chunk-MJUYFS7O.js → chunk-E2LHQGCK.js} +1 -1
  26. package/chunk-EKIFJPZJ.js +1 -0
  27. package/chunk-EO2PLY2Q.js +1 -0
  28. package/chunk-EQCQL7A4.js +1 -0
  29. package/{chunk-6LVGSIUU.js → chunk-FDMBNUIK.js} +1 -1
  30. package/{chunk-7NEOVOUN.js → chunk-FKTH6XCB.js} +1 -1
  31. package/chunk-FQPH5MIV.js +2 -0
  32. package/chunk-FRXAEGHW.js +1 -0
  33. package/chunk-GNTO7EKM.js +1 -0
  34. package/chunk-H6IX2D2G.js +1 -0
  35. package/chunk-I3TLRILF.js +1 -0
  36. package/chunk-I457VUEG.js +1 -0
  37. package/{chunk-XC6KYSRC.js → chunk-ISRMJKPG.js} +1 -1
  38. package/chunk-J6XKFGF5.js +2 -0
  39. package/chunk-JIPY2BNJ.js +1 -0
  40. package/{chunk-LHSJLKCF.js → chunk-JJQARMUD.js} +1 -1
  41. package/{chunk-4XPN5ZGE.js → chunk-K3CYM6ID.js} +1 -1
  42. package/{chunk-Q6U2NFPI.js → chunk-KABJYPCP.js} +1 -1
  43. package/chunk-LU4LP7JL.js +3 -0
  44. package/chunk-M7VDIUGU.js +1 -0
  45. package/chunk-MEQPT4C3.js +1 -0
  46. package/chunk-MYK7A3PZ.js +1 -0
  47. package/{chunk-S5VSZG5H.js → chunk-NFME267J.js} +1 -1
  48. package/chunk-O6GWHO26.js +1 -0
  49. package/chunk-OH33D663.js +1 -0
  50. package/{chunk-FWWMGA32.js → chunk-PFAU4FFV.js} +1 -1
  51. package/chunk-PGUALKQ6.js +1 -0
  52. package/{chunk-OS4AAJLB.js → chunk-PX6A6XCQ.js} +1 -1
  53. package/chunk-QMMXH5TN.js +1 -0
  54. package/chunk-QRVYPTC6.js +8 -0
  55. package/chunk-RHW5QVAY.js +1 -0
  56. package/chunk-SFWQDWHT.js +1 -0
  57. package/chunk-UJZB6UQE.js +1 -0
  58. package/chunk-UXWTPWS6.js +1 -0
  59. package/chunk-VP44CSPI.js +1 -0
  60. package/chunk-VRGLHRK2.js +2 -0
  61. package/{chunk-CMXSHXAU.js → chunk-WCLOWI5G.js} +1 -1
  62. package/chunk-WSLU6K4D.js +1 -0
  63. package/chunk-WVVXCHHS.js +1 -0
  64. package/chunk-X4FOF7ZO.js +1 -0
  65. package/chunk-XGARKXE4.js +7 -0
  66. package/chunk-XH2A67YP.js +1 -0
  67. package/chunk-XITZBHPE.js +1 -0
  68. package/chunk-XQKR67WI.js +1 -0
  69. package/chunk-YPSSTA3J.js +1 -0
  70. package/chunk-ZDBNCA7O.js +1 -0
  71. package/chunk-ZHAXIU33.js +1 -0
  72. package/chunk-ZP273LXY.js +1 -0
  73. package/index.html +2 -2
  74. package/main-73DNRGWN.js +1 -0
  75. package/package.json +1 -1
  76. package/styles-2KPDWK5U.css +1 -0
  77. package/chunk-2SYN2ATG.js +0 -1
  78. package/chunk-3GK4TNUH.js +0 -1
  79. package/chunk-3WEATDBM.js +0 -1
  80. package/chunk-3WKC2CFC.js +0 -1
  81. package/chunk-3YOT5OAB.js +0 -1
  82. package/chunk-4ERW7ITN.js +0 -1
  83. package/chunk-4SOUVJR6.js +0 -1
  84. package/chunk-5COOM7FC.js +0 -6
  85. package/chunk-5UL3RRQI.js +0 -2
  86. package/chunk-7EPQLKGD.js +0 -1
  87. package/chunk-7JZ5LA6R.js +0 -1
  88. package/chunk-7XGYQRKR.js +0 -1
  89. package/chunk-BYMCE7VW.js +0 -1
  90. package/chunk-C2PMOZWR.js +0 -1
  91. package/chunk-CPOAOTIS.js +0 -1
  92. package/chunk-CR2UB7UZ.js +0 -1
  93. package/chunk-G3YJXHRY.js +0 -1
  94. package/chunk-GI6WORKU.js +0 -1
  95. package/chunk-HE6PHO5B.js +0 -1
  96. package/chunk-HGERKLOF.js +0 -1
  97. package/chunk-HLLAB5VQ.js +0 -3
  98. package/chunk-HYBV36HG.js +0 -1
  99. package/chunk-IAVOZTCR.js +0 -1
  100. package/chunk-IHYIT4I3.js +0 -1
  101. package/chunk-ILQK4A72.js +0 -1
  102. package/chunk-INK3KQF2.js +0 -1
  103. package/chunk-L3T52MCL.js +0 -1
  104. package/chunk-MJI6X5KH.js +0 -1
  105. package/chunk-N7UCCMLS.js +0 -1
  106. package/chunk-NL7QPU6R.js +0 -1
  107. package/chunk-NV2YMSSM.js +0 -1
  108. package/chunk-OL4IJVKD.js +0 -1
  109. package/chunk-PTC4N7TU.js +0 -7
  110. package/chunk-PUSUA4U7.js +0 -1
  111. package/chunk-Q3FF4WG3.js +0 -1
  112. package/chunk-QX5XWUM2.js +0 -1
  113. package/chunk-RIGBDLYY.js +0 -1
  114. package/chunk-UMUPSIIL.js +0 -1
  115. package/chunk-USGQSK2Z.js +0 -1
  116. package/chunk-V6OHLKTK.js +0 -1
  117. package/chunk-VYKAGJXY.js +0 -1
  118. package/chunk-WBNOGAKJ.js +0 -1
  119. package/chunk-WNWGY2FM.js +0 -1
  120. package/chunk-XBZX6CUW.js +0 -1
  121. package/chunk-YIWL3QAP.js +0 -1
  122. package/chunk-ZFE5M6M3.js +0 -6
  123. package/chunk-ZOUY24KQ.js +0 -1
  124. package/chunk-ZRXUUC26.js +0 -1
  125. package/chunk-ZTJALQGT.js +0 -1
  126. package/main-GMFQCDBZ.js +0 -1
  127. package/styles-IOWRSZHV.css +0 -1
package/chunk-C2PMOZWR.js DELETED
@@ -1 +0,0 @@
1
- import{f as a,g as b,h as c}from"./chunk-5COOM7FC.js";import"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import"./chunk-NV2YMSSM.js";import"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-OS4AAJLB.js";import"./chunk-LHSJLKCF.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
package/chunk-CPOAOTIS.js DELETED
@@ -1 +0,0 @@
1
- import{a as ae}from"./chunk-NV2YMSSM.js";import{a as te}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import{a as Q}from"./chunk-QX5XWUM2.js";import{b as Y,d as Z,g as x,r as ee}from"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{a as z,d as q}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as j,g as H,l as J}from"./chunk-PUSUA4U7.js";import{b as W}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as i,Bb as a,C as g,Cb as l,D as u,L as k,Lc as C,Mb as r,Mc as h,Nb as p,Ob as T,Pb as L,Qa as s,Qb as U,Sb as A,X as D,db as y,fc as E,ib as v,kc as w,lc as X,mc as V,p as O,rb as F,sa as c,tb as P,vb as G,wb as K}from"./chunk-PTC4N7TU.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`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[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};
package/chunk-CR2UB7UZ.js DELETED
@@ -1 +0,0 @@
1
- import{a as le}from"./chunk-3YOT5OAB.js";import{a as Y}from"./chunk-CMXSHXAU.js";import{a as ee,b as te,d as ie,g as ne,i as oe,r as re}from"./chunk-LHSJLKCF.js";import{a as U,g as X,l as j,n as H,r as Z,w as J,x as Q,y as W}from"./chunk-PUSUA4U7.js";import{Ab as a,Bb as p,Cb as P,Db as E,Eb as N,Gb as S,Lc as M,Mb as v,Nb as L,Ob as q,Qa as l,Sb as C,Tb as s,X as B,Yb as d,_a as G,ca as u,da as g,db as K,ec as D,fc as m,gc as b,hc as F,ib as x,pa as $,rb as c,sa as O,wb as f,xb as y,yb as k,yc as A,zb as h}from"./chunk-PTC4N7TU.js";import{a as w,b as I}from"./chunk-7CGTOI24.js";function pe(n,o){if(n&1){let e=S();a(0,"button",14),C("click",function(){u(e);let i=s();return g(i.addFreeTextSetting())}),v(1,5),P(2,"spk-icon"),L(),p()}}function se(n,o){if(n&1){let e=S();a(0,"button",16,0),C("click",function(){let i=u(e).$implicit,r=s(2);return g(r.addSetting(i))}),m(2),p()}if(n&2){let e=o.$implicit;l(2),b(e.name)}}function _e(n,o){if(n&1&&(a(0,"h3",7),m(1),p(),k(2,se,3,1,"button",15,y)),n&2){let e=o.$implicit;l(),b(e.displayName),l(),h(e.options)}}function me(n,o){n&1&&(a(0,"div",12),m(1,"Add a setting above to get started."),p())}function ce(n,o){if(n&1){let e=S();a(0,"div",17)(1,"label"),m(2),p(),a(3,"div",22)(4,"spk-form-field")(5,"input",23),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateFreeTextSettingName(r,i))}),p(),a(6,"spk-icon",24),m(7,"rectangle-dashed"),p()(),a(8,"spk-form-field")(9,"input",23),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p(),a(10,"spk-icon",24),m(11,"textbox"),p()()()()}if(n&2){let e=s().$implicit;l(2),F(" ",e.FormView.shortDescription," "),l(3),c("ngModel",e.Name),l(4),c("ngModel",e.Value())}}function de(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function ue(n,o){if(n&1){let e=S();a(0,"app-file-tree",18)(1,"label",25),m(2),x(3,de,3,1,"spk-tooltip",26),p(),a(4,"input",27),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;c("startingPath",t.Value())("accepts",t.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function ge(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Ce(n,o){if(n&1){let e=S();a(0,"app-file-tree",19)(1,"label",25),m(2),x(3,ge,3,1,"spk-tooltip",26),p(),a(4,"input",27),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;c("startingPath",t.Value()),l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function xe(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Se(n,o){n&1&&(a(0,"spk-icon",24),m(1,"link"),p())}function fe(n,o){n&1&&(a(0,"spk-icon",24),m(1,"textbox"),p())}function Fe(n,o){if(n&1){let e=S();a(0,"spk-form-field")(1,"label",25),m(2),x(3,xe,3,1,"spk-tooltip",26),p(),a(4,"input",27),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p(),x(5,Se,2,0,"spk-icon",24)(6,fe,2,0,"spk-icon",24),p()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value()),l(),f(t.FormView.type==="Path"?5:6)}}function Te(n,o){if(n&1){let e=S();a(0,"spk-icon",30),C("click",function(){u(e);let i=s(2).$implicit;return g(i.showPassword=!i.showPassword)}),m(1," eye "),p()}}function Oe(n,o){if(n&1){let e=S();a(0,"spk-icon",30),C("click",function(){u(e);let i=s(2).$implicit;return g(i.showPassword=!i.showPassword)}),m(1," eye-slash "),p()}}function Ve(n,o){if(n&1){let e=S();a(0,"spk-form-field")(1,"label",25),m(2),p(),a(3,"input",28),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p(),a(4,"spk-icon",24),m(5,"password"),p(),x(6,Te,2,0,"spk-icon",29)(7,Oe,2,0,"spk-icon",29),p()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),d("id","destination-",t.Name,"-",i,""),c("type",t.showPassword?"text":"password")("ngModel",t.Value()),l(3),f(t.showPassword?6:7)}}function we(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Ie(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;F(" ",e," ")}}function ye(n,o){if(n&1){let e=S();a(0,"spk-select",31)(1,"label",25),m(2),x(3,we,3,1,"spk-tooltip",26),p(),a(4,"input",27),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()(),x(5,Ie,1,1,"ng-template",null,1,A)}if(n&2){let e=D(6),t=s(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("isClearable",!1)("optionTemplate",e),l(),d("for","destination-",i.Name,"-",r,""),l(),F(" ",i.FormView.shortDescription," "),l(),f(i.FormView.longDescription?3:-1),l(),d("id","destination-",i.Name,"-",r,""),c("ngModel",i.Value())}}function ke(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function he(n,o){if(n&1){let e=S();a(0,"div",17)(1,"label",25),m(2),x(3,ke,3,1,"spk-tooltip",26),p(),a(4,"div",22)(5,"spk-form-field")(6,"input",32),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSizeSetting(r,i,"size"))}),p(),a(7,"spk-icon",24),m(8,"resize"),p()(),a(9,"spk-select",33)(10,"input",23),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSizeSetting(r,i,"unit"))}),p()()()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index,r=s();l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(3),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.size()),l(3),c("options",r.sizeOptions())("isClearable",!1),l(),c("ngModel",t.unit())}}function Ne(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Me(n,o){if(n&1){let e=S();a(0,"spk-form-field")(1,"label",25),m(2),x(3,Ne,3,1,"spk-tooltip",26),p(),a(4,"input",32),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p(),a(5,"spk-icon",24),m(6,"numpad"),p()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function $e(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function Pe(n,o){if(n&1){let e=S();a(0,"spk-toggle",20)(1,"label",25),m(2),x(3,$e,3,1,"spk-tooltip",26),p(),a(4,"input",34),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function Ee(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function ve(n,o){if(n&1&&m(0),n&2){let e=o.$implicit;F(" ",e," ")}}function Le(n,o){if(n&1){let e=S();a(0,"spk-select",35)(1,"label",25),m(2),x(3,Ee,3,1,"spk-tooltip",26),p(),a(4,"input",36),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()(),x(5,ve,1,1,"ng-template",null,2,A)}if(n&2){let e=D(6),t=s(),i=t.$implicit,r=t.$index;c("options",i.FormView.options)("selectMultiple",!0)("optionTemplate",e),l(),d("for","destination-",i.Name,"-",r,""),l(),F(" ",i.FormView.shortDescription," "),l(),f(i.FormView.longDescription?3:-1),l(),c("ngModel",i.Value())}}function De(n,o){if(n&1&&(a(0,"spk-tooltip",26)(1,"spk-icon"),m(2,"question"),p()()),n&2){let e=s(2).$implicit;c("message",e.FormView.longDescription)}}function be(n,o){if(n&1){let e=S();a(0,"spk-form-field")(1,"label",25),m(2),x(3,De,3,1,"spk-tooltip",26),p(),a(4,"input",27),C("ngModelChange",function(i){u(e);let r=s().$implicit,_=s();return g(_.updateSettingValue(r,i))}),p()()}if(n&2){let e=s(),t=e.$implicit,i=e.$index;l(),d("for","destination-",t.Name,"-",i,""),l(),F(" ",t.FormView.shortDescription," "),l(),f(t.FormView.longDescription?3:-1),l(),d("id","destination-",t.Name,"-",i,""),c("ngModel",t.Value())}}function Ae(n,o){if(n&1){let e=S();a(0,"div",13),x(1,ce,12,3,"div",17)(2,ue,5,14,"app-file-tree",18)(3,Ce,5,10,"app-file-tree",19)(4,Fe,7,10,"spk-form-field")(5,Ve,8,10,"spk-form-field")(6,ye,7,12)(7,he,11,12,"div",17)(8,Me,7,9,"spk-form-field")(9,Pe,5,9,"spk-toggle",20)(10,Le,7,9)(11,be,5,9,"spk-form-field"),a(12,"button",21),C("click",function(){let i=u(e).$implicit,r=s();return g(r.removeSetting(i))}),a(13,"spk-icon"),m(14,"x-bold"),p()()()}if(n&2){let e=o.$implicit;l(),f(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"?11:-1)}}var ze=["Bytes","KB","MB","GB","TB","PB"],ae=class n{#e=B(Y);options=G.required();hiddenOptions=$([]);hasFreeTextSettings=$(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;sizeOptions=O(ze);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)){if(i.type==="Size"){let T=t.Value?.replace(/[0-9]/g,""),V=t.Value?.replace(/[^0-9]/g,""),z=O(T&&T!==""?T:"MB"),R=O(V&&V!==""?parseInt(V):"");return I(w({},t),{Value:M(()=>R()+z()),unit:z,size:R,FormView:i})}let r=t.Value??"";i.type==="Boolean"&&(r=r&&r.toLowerCase()==="true"||!1),i.type==="Integer"&&(r=parseInt(r)||0);let _=O(r);return I(w({},t),{Value:_,FormView:i})}else if(this.hasFreeTextSettings())return I(w({},t),{Value:O(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=>I(w({},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(_=>_.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(_=>_.Name===o.Name);return i[r].Name=e,i})}updateSizeSetting(o,e,t){let i=o;this.options.update(r=>{let _=[...r],T=_.findIndex(V=>V.Name===i.Name);return t==="size"&&(_[T].Value=`${e}${i.unit()}`),t==="unit"&&(_[T].Value=`${i.size()}${e}`),_})}removeSetting(o){this.options.update(e=>e.filter(t=>t.Name!==o.Name))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=K({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;t=$localize` New custom option ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:pen${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let i;return i=$localize`Select an item...`,[["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"],[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"],["type","number",3,"ngModelChange","id","ngModel"],["placeholder",i,3,"options","isClearable"],["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&&(a(0,"spk-toggle-card",6),E(1,7)(2),q(3,3),N(),a(4,"div",8),x(5,pe,3,0,"button",9),a(6,"spk-menu",10)(7,"button",9),v(8,4),P(9,"spk-icon"),L(),p(),E(10,11),k(11,_e,4,1,null,null,y),N(),p()(),N(),x(13,me,2,0,"div",12),k(14,Ae,15,1,"div",13,y),p()),e&2&&(c("disallowToggle",!0),l(5),f(t.hasFreeTextSettings()?5:-1),l(),c("searchable",!0),l(5),h(t.nonSelectedOptionsGrouped()),l(2),f(t.selectedSettings().length===0?13:-1),l(),h(t.selectedSettings()))},dependencies:[re,te,oe,ee,ie,ne,le,J,j,X,H,W,U,Z,Q],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};
package/chunk-G3YJXHRY.js DELETED
@@ -1 +0,0 @@
1
- import{Ca as j,Ga as le,X as ae,a as k,b as se,c as ie,e as p,za as ce}from"./chunk-3GK4TNUH.js";import{Aa as X,Ca as w,Da as E,Ea as S,Fa as K,Ga as q,Ha as J,Hc as oe,Ia as Q,Ja as ee,Ka as te,La as ne,Ma as g,O as y,R as f,Ra as M,Ta as re,U as L,W as c,Z as G,la as C,ma as H,ta as Y,ua as N,va as W,wa as b,xa as P}from"./chunk-PTC4N7TU.js";import{a as I,b as z}from"./chunk-7CGTOI24.js";var x=class extends ie{supportsDOMEvents=!0},B=class r extends x{static makeCurrent(){se(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Se();return e==null?null:we(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ae(document.cookie,n)}},T=null;function Se(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function we(r){return new URL(r,document.baseURI).pathname}var Me=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),F=new L(""),me=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(F),c(C))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),_=class{_doc;constructor(n){this._doc=n}manager},A="ng-app-id";function de(r){for(let n of r)n.remove()}function ue(r,n){let e=n.createElement("style");return e.textContent=r,e}function Te(r,n,e,t){let o=r.head?.querySelectorAll(`style[${A}="${n}"],link[${A}="${n}"]`);if(o)for(let s of o)s.removeAttribute(A),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function $(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ge=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=j(s),Te(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ue);t?.forEach(o=>this.addUsage(o,this.external,$))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(de(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])de(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ue(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,$(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(A,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(p),c(N),c(P,8),c(b))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var ve="%COMP%",De=`_nghost-${ve}`,Re=`_ngcontent-${ve}`,Ce=!0,be=new L("",{providedIn:"root",factory:()=>Ce});function Ae(r){return Re.replace(Z,r)}function _e(r){return De.replace(Z,r)}function ye(r,n){return n.map(e=>e.replace(Z,r))}var fe=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,d,u=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.tracingService=l,this.platformIsServer=j(a),this.defaultRenderer=new D(e,i,d,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=z(I({},t),{encapsulation:w.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(t.encapsulation){case w.Emulated:s=new O(d,u,t,this.appId,l,i,a,m,h);break;case w.ShadowDom:return new V(d,u,e,t,i,a,this.nonce,m,h);default:s=new R(d,u,t,l,i,a,m,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(me),c(ge),c(N),c(be),c(p),c(b),c(C),c(P),c(X,8))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),D=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(U[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=U[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=U[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let s=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends D{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,d,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=ye(o.id,l);for(let h of l){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}let m=o.getExternalStyles?.();if(m)for(let h of m){let v=$(h,s);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,a,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=u?ye(u,l):l,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,d,u){let l=o+"-"+t.id;super(n,e,t,s,i,a,d,u,l),this.contentAttr=Ae(l),this.hostAttr=_e(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Oe=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),he=["alt","control","meta","shift"],Ie={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},He=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),he.forEach(u=>{let l=t.indexOf(u);l>-1&&(t.splice(l,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ie[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),he.forEach(i=>{if(i!==o){let a=Le[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();function St(r,n){return oe(I({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:Ue}}function Pe(){B.makeCurrent()}function ke(){return new H}function je(){return Y(document),document}var Ue=[{provide:b,useValue:ce},{provide:W,useValue:Pe,multi:!0},{provide:p,useFactory:je,deps:[]}];var xe=[{provide:G,useValue:"root"},{provide:H,useFactory:ke,deps:[]},{provide:F,useClass:Oe,multi:!0,deps:[p]},{provide:F,useClass:He,multi:!0,deps:[p]},fe,ge,me,{provide:re,useExisting:fe},{provide:le,useClass:Me,deps:[]},[]];var wt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Be=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Fe),o},providedIn:"root"})}return r})(),Fe=(()=>{class r extends Be{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):ne(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):te(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return q(e)}bypassSecurityTrustScript(e){return J(e)}bypassSecurityTrustUrl(e){return Q(e)}bypassSecurityTrustResourceUrl(e){return ee(e)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{St as a,wt as b,Be as c};
package/chunk-GI6WORKU.js DELETED
@@ -1 +0,0 @@
1
- import{a as R,b as oe}from"./chunk-DNHLTHLR.js";import{a as te}from"./chunk-NV2YMSSM.js";import{a as j}from"./chunk-QX5XWUM2.js";import{a as V,b as q,c as S,d as H,e as Q,h as W,m as J,p as Y,q as Z,s as ee}from"./chunk-LHSJLKCF.js";import{a as b,c as w,d as B}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as G,f as L,g as K,l as U,x as z}from"./chunk-PUSUA4U7.js";import{b as v}from"./chunk-L3T52MCL.js";import{c as h}from"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import{Ab as r,Bb as n,Cb as a,D as E,L as M,Lc as O,Mb as l,Nb as c,Ob as f,Qa as s,Sb as P,X as _,db as I,fc as k,ib as x,ic as y,rb as C,rc as X,sa as T,tb as g,wb as D}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var ne=()=>["/"];function ie(d,e){d&1&&(r(0,"spk-form-field")(1,"label",17),f(2,6),n(),a(3,"input",18),n(),r(4,"spk-form-field")(5,"label",19),f(6,7),n(),a(7,"input",20),n())}var u=new Z,N=class d{#t=_(v);#e=_(b);#o=_(w);#n=_(h);#i=_(j);isExporting=T(!1);exportType=T("file");exportedCmd=T(null);exportForm=u.group({exportPasswords:u.control(!0),encryption:u.control(!1,[S.required,oe()]),password:u.control("",[R(e=>e?.value.encryption,[S.required])]),repeatPassword:u.control("",[R(e=>e?.value.encryption,[S.required])])});exportFormSignal=te(this.exportForm.valueChanges);encryptionFieldSignal=O(()=>this.exportFormSignal()?.encryption??!1);activeBackup=O(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(M(e=>{let i=o=>{let t=Object.entries(o);return t?"?"+t.map(([F,m])=>`${F}=${m}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${i({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),E(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(E(()=>this.isExporting.set(!1))).subscribe({next:e=>{this.exportedCmd.set(e.Command??null)},error:e=>{}})}downloadFile(e,i){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=i,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(i){return new(i||d)};static \u0275cmp=I({type:d,selectors:[["app-export"]],decls:27,vars:12,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;i=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let o;o=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let F;F=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let m;m=$localize` Encrypt file ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let A;A=$localize`Password`;let $;return $=$localize`Repeat password`,[e,i,o,t,F,m,A,$,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]]},template:function(i,o){if(i&1&&(r(0,"header")(1,"h3"),k(2," Export backup configuration "),r(3,"div",8)(4,"button",9),l(5,0),a(6,"spk-icon"),c(),n(),r(7,"button",10),P("click",function(){return o.submit()}),l(8,1),a(9,"spk-icon"),c(),n()()(),r(10,"p"),k(11),n()(),r(12,"form",11)(13,"spk-button-group")(14,"button",12),P("click",function(){return o.exportType.set("cmd")}),l(15,2),a(16,"spk-icon"),c(),n(),r(17,"button",12),P("click",function(){return o.exportType.set("file")}),l(18,3),a(19,"spk-icon"),c(),n()(),r(20,"spk-toggle",13),l(21,4),a(22,"input",14),c(),n(),r(23,"spk-toggle",15),l(24,5),a(25,"input",16),c(),n(),x(26,ie,8,0),n()),i&2){let t;s(4),C("routerLink",X(11,ne)),s(3),g("loading",o.isExporting()),s(4),y("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),s(),C("formGroup",o.exportForm),s(2),g("active",o.exportType()==="cmd"),s(3),g("active",o.exportType()==="file"),s(9),D(o.encryptionFieldSignal()?26:-1)}},dependencies:[ee,W,q,V,H,Q,J,Y,B,L,z,G,U,K],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{N as default};
package/chunk-HE6PHO5B.js DELETED
@@ -1 +0,0 @@
1
- import{o as _e}from"./chunk-5COOM7FC.js";import"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import{a as oe}from"./chunk-NV2YMSSM.js";import"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import{a as Et}from"./chunk-W5YK2JJZ.js";import{a as J}from"./chunk-CMXSHXAU.js";import{a as ut}from"./chunk-7NEOVOUN.js";import"./chunk-OS4AAJLB.js";import{a as Ct}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import{b as Y,d as ee,e as ct,g as te,h as dt,k as St,m as pt,n as gt,p as Tt,q as mt,r as ne,s as ie}from"./chunk-LHSJLKCF.js";import{a as nt}from"./chunk-N7UCCMLS.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as j,b as K,g as Q,k as it,l as Z,o as ot,p as st,q as rt,r as at,x as lt,y as _t}from"./chunk-PUSUA4U7.js";import{b as v}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as i,Bb as o,Cb as P,D as R,Gb as O,Lc as b,Mb as U,Mc as w,Nb as B,Oa as qe,Ob as a,Pb as ae,Qa as l,Qb as le,R as z,Rb as Ze,Sb as p,Tb as S,Wb as Je,X as T,Xa as je,c as We,ca as m,cc as Ye,da as u,db as $,dc as et,fc as I,gc as H,hc as W,ib as E,kc as y,l as L,lc as G,mc as A,ob as Ke,pb as Qe,qc as tt,rb as h,rc as q,sa as c,tb as f,wb as C,y as x}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var k=class s{#e=T(v);#i=oe(this.#e.getApiV1Serversettings());#t=c(void 0);serverSettings=b(()=>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=z({token:s,factory:s.\u0275fac,providedIn:"root"})};var Nt=["formRef"],Mt=()=>[import("./chunk-Q3FF4WG3.js").then(s=>s.OptionsListComponent)],ht=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function Pt(s,t){s&1&&(i(0,"spk-alert",3),a(1,1),o())}function Ot(s,t){if(s&1){let e=O();i(0,"app-options-list",5),A("optionsChange",function(r){m(e);let d=S();return G(d.settings,r)||(d.settings=r),u(r)}),o()}if(s&2){let e=S();y("options",e.settings),h("hasFreeTextSettings",!0)("hiddenOptions",q(3,ht))}}var Rt=["Bytes","KB","MB","GB","TB","PB"],D=class s{#e=T(_e);#i=T(k);#t=T(v);formRef=je.required("formRef");optionsForm=this.#e.optionsForm;settings=this.#e.settings;isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);sizeOptions=c(Rt);lastRecievedServerSettings=c({});serverSettingsEffect=w(()=>{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,r],d)=>{if(n.startsWith("--")){let N=n.replace("--","");this.settings.update(g=>(g.some(M=>M.Name===N)||g.push({Name:N,Value:r}),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("--",""))),N=t.reduce((g,M)=>(g[`--${M.Name}`]=M.Value,g),{});d.forEach(g=>{N[g]=null}),this.#t.patchApiV1Serversettings({requestBody:N}).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=$({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&Ye(n.formRef,Nt,5),e&2&&et()},features:[tt([_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,Pt,2,0,"spk-alert",3),i(2,"button",4),p("click",function(){return n.submit()}),U(3,0),P(4,"spk-icon"),B(),o()(),E(5,Ot,1,4),Ke(6,5,Mt)),e&2&&(l(),C(n.saved()?1:-1),l(),f("loader",n.isSubmitting()),l(4),Qe(!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 F=class s{#e=T(v);#i=T(J);repeatRegisterTimer=null;state=c("unknown");claimUrl=c(null);registerUrl=c("");status=b(()=>{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=w(()=>{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=z({token:s,factory:s.\u0275fac,providedIn:"root"})};function yt(s,t){if(s&1){let e=O();i(0,"spk-form-field",10)(1,"input",11),A("ngModelChange",function(r){m(e);let d=S(2);return G(d.registerUrl,r)||(d.registerUrl=r),u(r)}),o()(),i(2,"button",12),p("click",function(){m(e);let r=S(2);return u(r.register())}),a(3,0),o()}if(s&2){let e=S(2);l(),y("ngModel",e.registerUrl)}}function Gt(s,t){if(s&1&&(i(0,"div",8)(1,"label"),a(2,1),o(),i(3,"a",13),I(4),o()()),s&2){let e=S(2);l(3),Je("href",e.claimUrl(),qe),l(),H(e.claimUrl())}}function At(s,t){s&1&&(i(0,"div",8)(1,"label"),a(2,2),o()())}function vt(s,t){if(s&1){let e=O();i(0,"button",12),p("click",function(){m(e);let r=S(2);return u(r.cancel())}),a(1,3),o()}}function $t(s,t){if(s&1){let e=O();i(0,"button",12),p("click",function(){m(e);let r=S(2);return u(r.disable())}),a(1,4),o()}}function bt(s,t){if(s&1){let e=O();i(0,"button",12),p("click",function(){m(e);let r=S(2);return u(r.enable())}),a(1,5),o(),i(2,"button",14),p("click",function(){m(e);let r=S(2);return u(r.delete())}),a(3,6),o()}}function wt(s,t){if(s&1&&(i(0,"div",7),E(1,yt,4,1)(2,Gt,5,2,"div",8)(3,At,3,0,"div",8)(4,vt,2,0,"button",9)(5,$t,2,0,"button",9)(6,bt,4,0),o()),s&2){let e=S();l(),C(e.state()==="inactive"?1:-1),l(),C(e.state()==="registered"?2:-1),l(),C(e.state()==="registering"?3:-1),l(),C(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),C(e.state()==="connected"||e.state()==="enabled"?5:-1),l(),C(e.state()==="disabled"?6:-1)}}var re=class s{#e=T(F);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=$({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 r;r=$localize`Cancel registration`;let d;d=$localize`Disable remote control`;let N;N=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[t,e,n,r,d,N,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,wt,7,6,"div",7),e&2&&C(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 kt=()=>({standalone:!0});function Ft(s,t){s&1&&(i(0,"spk-icon",73),I(1,"check"),o())}function Lt(s,t){s&1&&(i(0,"spk-icon",74),I(1,"prohibit"),o())}function xt(s,t){if(s&1){let e=O();i(0,"button",78),p("click",function(){m(e);let r=S(2);return u(r.updatePassphrase())}),a(1,35),o()}if(s&2){let e=S(2);f("loader",e.isUpdating())}}function Dt(s,t){if(s&1){let e=O();i(0,"spk-tooltip",77)(1,"button",79),p("click",function(){m(e);let r=S(2);return u(r.updatePassphrase())}),a(2,36),o()()}if(s&2){let e=S(2);l(),f("loader",e.isUpdating()),h("disabled",!0)}}function Xt(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",69),a(2,32),o(),i(3,"input",70),A("ngModelChange",function(r){m(e);let d=S();return G(d.passphrase,r)||(d.passphrase=r),u(r)}),o()(),i(4,"spk-form-field")(5,"label",71),a(6,33),o(),i(7,"input",72),A("ngModelChange",function(r){m(e);let d=S();return G(d.repeatPassphrase,r)||(d.repeatPassphrase=r),u(r)}),o(),E(8,Ft,2,0,"spk-icon",73)(9,Lt,2,0,"spk-icon",74),o(),i(10,"div",50)(11,"button",75),p("click",function(){m(e);let r=S();return u(r.cancelPasswordChange())}),a(12,34),o(),E(13,xt,2,2,"button",76)(14,Dt,3,3,"spk-tooltip",77),o()}if(s&2){let e=S();l(3),y("ngModel",e.passphrase),l(4),h("disabled",e.passphrase().length===0),y("ngModel",e.repeatPassphrase),l(),C(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),f("loader",e.isUpdating()),l(2),C(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Vt(s,t){s&1&&(i(0,"spk-icon",80),I(1,"check"),o())}function zt(s,t){if(s&1){let e=O();i(0,"div",50)(1,"button",75),p("click",function(){m(e);let r=S();return u(r.openPassphraseForm())}),a(2,37),o(),E(3,Vt,2,0,"spk-icon",80),o()}if(s&2){let e=S();l(3),C(e.passwordUpdated()?3:-1)}}function Ut(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",81),a(2,38),o(),i(3,"textarea",82),A("ngModelChange",function(r){m(e);let d=S();return G(d.allowedHostnames,r)||(d.allowedHostnames=r),u(r)}),o()(),i(4,"spk-alert",83),a(5,39),o(),i(6,"button",78),p("click",function(){m(e);let r=S();return u(r.updateAllowedHostnames())}),a(7,40),o()}if(s&2){let e=S();l(3),y("ngModel",e.allowedHostnames),l(3),f("loader",e.updatingAllowedHosts())}}function Bt(s,t){if(s&1&&I(0),s&2){let e,n=S();W(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function Ht(s,t){s&1&&P(0,"spk-progress-bar",55)}function Wt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}function qt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;W(" ",e.label," ")}}var X=new mt,jt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Kt=[{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`}],ce=class s{#e=T(ut);#i=T(J);#t=T(v);#n=T(k);#r=T(F);#o=T(nt);#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);remoteControlStatus=this.#r.status;settingsForm=X.group({pauseSettings:X.group({time:X.control(0),timeType:X.control("s")}),usageStatistics:X.control("")});updatingChannel=c(!1);updateChannel=c("");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)),x(()=>(this.updateChannel.set(e),L(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),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingRemoteAccess.set(!1)),x(()=>(this.allowRemoteAccess.set(t),L(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)),x(()=>(this.allowedHostnames.set(t),L(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)),x(()=>(this.disableTrayIconLogin.set(t),L(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}languageOptions=c(Et);usageStatisticsOptions=c(Kt);timeTypeOptions=c(jt);timeTypeSignal=oe(this.pauseSettings.controls.timeType.valueChanges);timeRange=b(()=>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())}submit(){let t=this.pauseSettings.value,e=`${t.time}${t.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=w(()=>{let t=this.#n.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),r=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"]),console.log(t["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),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=$({type:s,selectors:[["app-settings"]],decls:134,vars:39,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let r;r=$localize`Remote access control`;let d;d=$localize`Color theme`;let N;N=$localize`Customize your application theme`;let g;g=$localize`Passwords`;let M;M=$localize`Change server passphrase`;let de;de=$localize`Language`;let Se;Se=$localize`Select a language for the platform`;let pe;pe=$localize`Allow remote access (requires restart)`;let ge;ge=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Te;Te=$localize`Allow remote access`;let me;me=$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 Ce;Ce=$localize`Prevent tray icon automatic log-in`;let Ee;Ee=$localize`Update channel`;let fe;fe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ne;Ne=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Stable`;let he;he=$localize`Official releases`;let Pe;Pe=$localize`Beta`;let Oe;Oe=$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 Re;Re=$localize` Experimental `;let Ie;Ie=$localize`Specific builds for developers only. Not for use with important data.`;let ye;ye=$localize`Canary`;let Ge;Ge=$localize`Individual builds for developers only. Not for use with important data.`;let Ae;Ae=$localize`Pause after startup or hibernation`;let ve;ve=$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 $e;$e=$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#121\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#121\uFFFD"}:CLOSE_LINK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,V=Ze(V);let be;be=$localize`Advanced options`;let we;we=$localize`Enter new password`;let ke;ke=$localize`Repeat password`;let Fe;Fe=$localize`Password have to be filled and have to match`;let Le;Le=$localize`Passphrase`;let xe;xe=$localize`Repeat passphrase`;let De;De=$localize`Cancel`;let Xe;Xe=$localize` Update passphrase `;let Ve;Ve=$localize` Update passphrase `;let ze;ze=$localize`Change password`;let Ue;Ue=$localize`Allowed hostnames`;let Be;Be=$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 He;return He=$localize` Update allowed hostnames `,[t,e,n,r,d,N,g,M,de,Se,pe,ge,Te,me,ue,Ce,Ee,fe,Ne,Me,he,Pe,Oe,Re,Ie,ye,Ge,Ae,ve,$e,V,be,Le,xe,De,Xe,Ve,ze,Ue,Be,He,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",we,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ke,"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&&(P(0,"app-status-bar"),i(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),a(5,0),o(),i(6,"p"),a(7,1),o()(),i(8,"button",43),p("click",function(){return n.submit()}),a(9,2),o()(),i(10,"section")(11,"div",44)(12,"h3"),a(13,3),o(),i(14,"p"),I(15),o()(),i(16,"div",45),P(17,"app-remote-control"),o()(),i(18,"section")(19,"div",44)(20,"h3"),a(21,4),o(),i(22,"p"),a(23,5),o()(),i(24,"div",45)(25,"div",46)(26,"img",47),p("click",function(){return n.setLightMode()}),o(),i(27,"img",48),p("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",44)(30,"h3"),a(31,6),o(),i(32,"p"),a(33,7),o()(),i(34,"div",49),E(35,Xt,15,7)(36,zt,4,1,"div",50),o()(),i(37,"section")(38,"div",44)(39,"h3"),a(40,8),o(),i(41,"p"),a(42,9),o()(),i(43,"div",45)(44,"spk-select",51),p("selectedOptionsChange",function(d){return n.updateLocale(d)}),P(45,"input",52),o()()(),i(46,"section")(47,"div",44)(48,"h3"),a(49,10),o(),i(50,"p"),a(51,11),o()(),i(52,"div",53)(53,"spk-toggle",54),p("click",function(){return n.updateRemoteAccess()}),i(54,"label"),a(55,12),o()(),E(56,Ut,8,3),o()(),i(57,"section")(58,"div",44)(59,"h3"),a(60,13),o(),i(61,"p"),a(62,14),o()(),i(63,"div",45)(64,"spk-toggle",54),p("click",function(){return n.saveDisableTrayIconLogin()}),i(65,"label"),a(66,15),o()()()(),i(67,"section")(68,"div",44)(69,"h3"),a(70,16),o(),i(71,"p"),E(72,Bt,1,1),o(),E(73,Ht,1,0,"spk-progress-bar",55),o(),i(74,"div",56)(75,"div",57),p("click",function(){return n.setNewChannel("")}),i(76,"spk-radio",58),a(77,17),o(),i(78,"p"),a(79,18),o()(),i(80,"div",57),p("click",function(){return n.setNewChannel("stable")}),i(81,"spk-radio",58),a(82,19),o(),i(83,"p"),a(84,20),o()(),i(85,"div",57),p("click",function(){return n.setNewChannel("beta")}),i(86,"spk-radio",58),a(87,21),o(),i(88,"p"),a(89,22),o()(),i(90,"div",57),p("click",function(){return n.setNewChannel("experimental")}),i(91,"spk-radio",58),a(92,23),o(),i(93,"p"),a(94,24),o()(),i(95,"div",57),p("click",function(){return n.setNewChannel("canary")}),i(96,"spk-radio",58),a(97,25),o(),i(98,"p"),a(99,26),o()()()()(),P(100,"spk-divider"),i(101,"form",59),p("submit",function(){return n.submit()}),i(102,"section")(103,"div",44)(104,"h3"),a(105,27),o(),i(106,"p"),a(107,28),o()(),i(108,"div",45)(109,"div",60)(110,"spk-range-slider",61),P(111,"input",62),o(),i(112,"spk-select",63),P(113,"input",64),E(114,Wt,1,1,"ng-template"),o()()()(),i(115,"section")(116,"div",44)(117,"h3"),a(118,29),o(),i(119,"p"),U(120,30),P(121,"a",65)(122,"br")(123,"br"),B(),o()(),i(124,"div",45)(125,"spk-select",66),P(126,"input",67),E(127,qt,1,1,"ng-template"),o()()()(),i(128,"div",41)(129,"section")(130,"div",68)(131,"h3"),a(132,31),o(),P(133,"app-advanced-options-settings"),o()()()),e&2){let r,d,N,g;l(8),h("disabled",n.settingsForm.untouched),l(7),H(n.remoteControlStatus()),l(11),f("active",!n.isDarkMode()),l(),f("active",n.isDarkMode()),l(8),C(n.showPassphraseForm()?35:36),l(9),h("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),h("ngModel",n.langCtrl())("ngModelOptions",q(38,kt)),l(8),f("active",n.allowRemoteAccess()),l(3),C(n.allowRemoteAccess()?56:-1),l(8),f("active",n.disableTrayIconLogin()),l(8),C(n.updateChannel()!==""&&((r=n.sysinfo())!=null&&r.ServerVersion)?72:-1),l(),C(n.updatingChannel()?73:-1),l(3),f("active",n.updateChannel()===""),l(),ae((d=n.sysinfo())==null?null:d.DefaultUpdateChannel),le(77),l(2),ae((N=n.sysinfo())==null?null:N.ServerVersionType),le(79),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),h("formGroup",n.settingsForm),l(9),h("unit",(g=n.timeTypeSignal())!==null&&g!==void 0?g:""),l(),h("min",n.timeRange()[0])("max",n.timeRange()[1]),l(),h("options",n.timeTypeOptions())("isClearable",!1),l(13),h("options",n.usageStatisticsOptions())}},dependencies:[ne,dt,Y,St,ee,ct,te,ie,pt,Tt,gt,Ct,re,D,Q,st,rt,ot,lt,_t,Z,j,it,K,at],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};
package/chunk-HGERKLOF.js DELETED
@@ -1 +0,0 @@
1
- import{ua as m}from"./chunk-3GK4TNUH.js";import{X as s,gb as p}from"./chunk-PTC4N7TU.js";var f=class a{decimalPipe=s(m);transform(t,e=!1){if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let r=this.#t(),n=r?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(r?1e3:1024));i=Math.min(i,n.length-1);let l=t/Math.pow(r?1e3:1024,i),o=this.decimalPipe.transform(l,"1.0-2");return o?`${o} ${e?n[i]:n[i].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(r=>e.includes(r)):!1}static \u0275fac=function(e){return new(e||a)};static \u0275pipe=p({name:"bytes",type:a,pure:!0})};export{f as a};
package/chunk-HLLAB5VQ.js DELETED
@@ -1,3 +0,0 @@
1
- import{o as k}from"./chunk-5COOM7FC.js";import{a as Se}from"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import{a as I}from"./chunk-NV2YMSSM.js";import{a as Ee}from"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-OS4AAJLB.js";import{a as fe}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import{b as se,d as me,e as _e,h as pe,i as de,l as ce,m as ue,n as Ce,p as Ne,q as Me,s as ge}from"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{a as J,c as Q,d as Y}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as ne,g as oe,k as ie,l as ae,o as re,r as le}from"./chunk-PUSUA4U7.js";import{a as ee,b as te}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as a,Bb as n,Cb as r,Db as O,Eb as P,Gb as K,Mb as g,Mc as Z,Nb as f,Ob as u,Pb as w,Qa as l,Qb as z,Sb as X,Tb as S,X as C,Xb as V,ca as E,da as A,db as R,ib as B,kc as W,lc as j,mc as H,qc as q,rb as c,rc as T,sa as F,tb as y,wb as v,xb as G,yb as x,zb as U}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var Ae=()=>[],Fe=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function Oe(m,t){m&1&&r(0,"spk-progress-bar",13)}function Pe(m,t){if(m&1&&(a(0,"spk-form-field"),r(1,"input",39),n()),m&2){let e=t.$implicit,o=t.$index;l(),V("id","filter-",o,""),c("formControl",e)}}function Te(m,t){if(m&1){let e=K();a(0,"form",14)(1,"spk-select",15)(2,"label",16),u(3,1),n(),r(4,"input",17),n(),a(5,"spk-form-field")(6,"label",18),u(7,2),n(),r(8,"textarea",19),n(),a(9,"spk-form-field")(10,"label",20),u(11,3),n(),r(12,"textarea",21),n()(),a(13,"spk-divider"),u(14,4),n(),a(15,"form",14)(16,"spk-form-field")(17,"label",22),u(18,5),n(),r(19,"input",23),n(),a(20,"spk-form-field")(21,"label",24),u(22,6),n(),r(23,"input",25),n(),a(24,"app-toggle-card",26),O(25,27),u(26,7),P(),O(27,28),x(28,Pe,2,3,"spk-form-field",null,G),P(),n()(),a(30,"form",14)(31,"div",29)(32,"div",30)(33,"spk-form-field")(34,"label",31),u(35,8),n(),r(36,"input",32),n(),a(37,"spk-select",33),r(38,"input",34),n()(),a(39,"p"),g(40,9),r(41,"a",35),f(),n()(),a(42,"app-options-list",36),H("optionsChange",function(_){E(e);let p=S();return j(p.settings,_)||(p.settings=_),A(_)}),n(),a(43,"div",37)(44,"button",38),X("click",function(){E(e);let _=S();return A(_.submit())}),g(45,10),r(46,"spk-icon"),f(),n()()()}if(m&2){let e,o=S();c("formGroup",o.baseCmdForm),l(),c("options",(e=o.commandOptions())!==null&&e!==void 0?e:T(14,Ae))("inlineSearch",!0),l(14),c("formGroup",o.standardFields),l(9),c("disallowToggle",!0),l(4),U(o.standardFields.controls.filters.controls),l(2),c("formGroup",o.optionsForm),l(7),c("options",o.sizeOptions())("inlineSearch",!0),l(5),W("options",o.settings),c("hasFreeTextSettings",!0)("hiddenOptions",T(15,Fe)),l(2),y("loader",o.isSubmitting()),l(2),w(o.baseCmdForm.value.command),z(45)}}var d=new Me,Ie=["Bytes","KB","MB","GB","TB","PB"],D=class m{#e=C(k);#t=C(te);#n=C(Q);#o=C(J);#i=C(ee);#a=I(this.#o.params);commandOptions=I(this.#i.getApiV1Commandline());sizeOptions=F(Ie);isSubmitting=F(!1);standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});optionsForm=this.#e.optionsForm;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#r=Z(()=>{let t=this.#a()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=this.optionsForm.value,o=t.targetUrl??"",_=t.arguments?.split(`
2
- `)??[],p=this.standardFields.value,N=p.filters??[],M=[t.command,o,..._,`--backup-name=${p["backup-name"]}`,`--dbpath=${p.dbpath}`,`--backup-id=${p["backup-id"]}`,...N.filter(i=>i).map(i=>i.startsWith("-")?`--exclude=${i?.slice(1)}`:`--include=${i}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(i=>i.Name.startsWith("--")?`${i.Name}=${i.Value}`:`--${i.Name}=${i.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:M}).subscribe(i=>{i.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",i.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
3
- `)??""})}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=R({type:m,selectors:[["app-commandline"]],features:[q([k])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Select an option...`;let o;o=$localize`Command`;let _;_=$localize`TargetUrl`;let p;p=$localize`Commandline Arguments`;let N;N=$localize`Advanced options`;let M;M=$localize`Backup ID`;let i;i=$localize`Backup Name`;let L;L=$localize`Filters`;let $;$=$localize`Remote volume size`;let h;h=$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#41\uFFFD"}:START_LINK:Read more${"\uFFFD/#41\uFFFD"}:CLOSE_LINK:`;let b;return b=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,o,_,p,N,M,i,L,$,h,b,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["placeholder",e,3,"options","inlineSearch"],["type","text","formControlName","unit"],["href","#",1,"spk-primary"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,o){e&1&&(r(0,"app-status-bar"),a(1,"section")(2,"div",11)(3,"button",12),g(4,0),r(5,"spk-icon"),f(),n()(),B(6,Oe,1,0,"spk-progress-bar",13)(7,Te,47,16),n()),e&2&&(l(6),v(o.finishedLoading()?7:6))},dependencies:[fe,Ee,Se,ge,pe,se,de,me,_e,ce,ue,Ne,Ce,Y,ae,oe,ie,le,re,ne],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{D as default};
package/chunk-HYBV36HG.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-ZRXUUC26.js";import"./chunk-XC6KYSRC.js";import"./chunk-NV2YMSSM.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
package/chunk-IAVOZTCR.js DELETED
@@ -1 +0,0 @@
1
- import{a as D}from"./chunk-CMXSHXAU.js";import{a as b,m as w}from"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import{ia as A}from"./chunk-3GK4TNUH.js";import{Ab as c,Bb as r,Fb as u,Gb as v,Lc as $,Ob as P,Qa as l,Sb as k,Tb as s,X as y,ca as O,da as x,db as T,ec as C,fc as p,gc as E,ib as a,rb as d,sa as m,sb as h,sc as _,tb as f,tc as N,wb as g,yb as I,yc as F,zb as M}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(D);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[w,b,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
package/chunk-IHYIT4I3.js DELETED
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-CHZ7TMI7.js";import{X as i,gb as s}from"./chunk-PTC4N7TU.js";var p=class r{#t=i(o);transform(t,...e){if(!t)return"";let n=t.split(".")[0],a=parseInt(n.split(":")[0])??0,m=parseInt(n.split(":")[1])??0,u=parseInt(n.split(":")[2])??0;return this.#t.duration({hours:a,minutes:m,seconds:u}).humanize()}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=s({name:"durationFormat",type:r,pure:!0})};export{p as a};
package/chunk-ILQK4A72.js DELETED
@@ -1 +0,0 @@
1
- import{a as z}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import{a as X}from"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{d as E}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as R,g as f,h as k,k as G,o as w}from"./chunk-PUSUA4U7.js";import{b as L}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as e,Bb as i,Cb as s,Db as D,Eb as b,Mb as h,Nb as y,Ob as c,Pb as A,Qa as p,Qb as I,Tb as S,X as d,db as O,fc as l,ib as m,ic as B,ob as M,pb as P,rb as u,rc as g,sc as v,wb as F,xb as N,yb as x,zb as $}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(X);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,G,R,w,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
package/chunk-INK3KQF2.js DELETED
@@ -1 +0,0 @@
1
- import{a as k}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{d as S}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as T,g as M,h as f}from"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as e,Bb as n,Cb as _,Mb as s,Nb as l,Ob as i,Qa as c,db as D,rb as r,rc as d}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
package/chunk-L3T52MCL.js DELETED
@@ -1 +0,0 @@
1
- import{a as D,c}from"./chunk-4XPN5ZGE.js";import{L as g,R as d,W as l,l as I,m as B,p as R,v as O,y as k}from"./chunk-PTC4N7TU.js";import{a as y,b as T}from"./chunk-7CGTOI24.js";var v=class{_fns;constructor(){this._fns=[]}eject(e){let i=this._fns.indexOf(e);i!==-1&&(this._fns=[...this._fns.slice(0,i),...this._fns.slice(i+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new v}};var A=class extends Error{url;status;statusText;body;request;constructor(e,i,a){super(a),this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=e}};var h=p=>typeof p=="string",P=p=>h(p)&&p!=="",f=p=>p instanceof Blob,G=p=>p instanceof FormData,j=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},F=p=>{let e=[],i=(r,n)=>{e.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`)},a=(r,n)=>{n!=null&&(n instanceof Date?i(r,n.toISOString()):Array.isArray(n)?n.forEach(o=>a(r,o)):typeof n=="object"?Object.entries(n).forEach(([o,u])=>a(`${r}[${o}]`,u)):i(r,n))};return Object.entries(p).forEach(([r,n])=>a(r,n)),e.length?`?${e.join("&")}`:""},L=(p,e)=>{let i=p.ENCODE_PATH||encodeURI,a=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?i(String(e.path[o])):n),r=p.BASE+a;return e.query?r+F(e.query):r},N=p=>{if(p.formData){let e=new FormData,i=(a,r)=>{h(r)||f(r)?e.append(a,r):e.append(a,JSON.stringify(r))};return Object.entries(p.formData).filter(([,a])=>a!=null).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>i(a,n)):i(a,r)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,U=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:i,username:a,password:r,additionalHeaders:n})=>{let o=Object.entries(y(y({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[m,b])=>T(y({},u),{[m]:String(b)}),{});if(P(i)&&(o.Authorization=`Bearer ${i}`),P(a)&&P(r)){let u=j(`${a}:${r}`);o.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:f(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":h(e.body)?o["Content-Type"]="text/plain":G(e.body)||(o["Content-Type"]="application/json")),new D(o)})),M=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):h(p.body)||f(p.body)||G(p.body)?p.body:JSON.stringify(p.body)},K=(p,e,i,a,r,n,o)=>i.request(e.method,a,{headers:o,body:r??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),z=(p,e)=>{if(e){let i=p.headers.get(e);if(h(i))return i}},W=p=>{if(p.status!==204&&p.body!==null)return p.body},$=(p,e)=>{let a=y({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(a)throw new A(p,e,a);if(!e.ok){let r=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new A(p,e,`Generic Error: status: ${r}; status text: ${n}; body: ${o}`)}},s=(p,e,i)=>{let a=L(p,i),r=N(i),n=M(i);return U(p,i).pipe(g(o=>K(p,i,e,a,n,r,o)),g(async o=>{for(let w of p.interceptors.response._fns)o=await w(o);let u=W(o),m=z(o,i.responseHeader),b=u;return i.responseTransformer&&o.ok&&(b=await i.responseTransformer(u)),{url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:m??b}}),k(o=>o.status?I({url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),R(o=>($(i,o),o.body)),k(o=>B(()=>o)))};var S=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},q=class p{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},x=class p{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},H=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})};export{S as a,E as b,C as c,H as d};
package/chunk-MJI6X5KH.js DELETED
@@ -1 +0,0 @@
1
- import{i as a,j as b}from"./chunk-5COOM7FC.js";import"./chunk-XC6KYSRC.js";import"./chunk-DNHLTHLR.js";import"./chunk-NV2YMSSM.js";import"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-OS4AAJLB.js";import"./chunk-LHSJLKCF.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{a as createOptionsForm,b as default};
package/chunk-N7UCCMLS.js DELETED
@@ -1 +0,0 @@
1
- import{c as O}from"./chunk-WBNOGAKJ.js";import{b as P}from"./chunk-L3T52MCL.js";import{a as R,c as y}from"./chunk-4XPN5ZGE.js";import{Ba as v,Ca as i}from"./chunk-3GK4TNUH.js";import{C as l,D as S,N as p,R as a,X as s,d as g,i as m,l as d,p as I,sa as o,wa as E,y as A}from"./chunk-PTC4N7TU.js";var c=class r{platformId=s(E);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return i(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,n=!1){if(!i(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${n?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return v(this.platformId)?localStorage.length:0}getItem(t){return i(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!i(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){i(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!i(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){i(this.platformId)||localStorage.clear()}clear(){if(!i(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return i(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=a({token:r,factory:r.\u0275fac})};var f=class r{#n=s(c);#i=o(null);#e=window.self!==window.top;#r=o(this.#e);relayIsEnabled=this.#r.asReadonly();config=this.#i.asReadonly();configLoaded=this.#e?new m:null;isLoading=o(this.#e);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#s(),this.#e&&(this.#r.set(!0),this.parentIframeListner=new AbortController,this.#t("connected"),window.addEventListener("message",t=>{if(t.data.startsWith("access:")){let e=t.data.replace("access:",""),n=JSON.parse(e);if(!n?.accessToken||!n?.clientId){this.#t("error:invalid-config"),this.#r.set(!1);return}if(typeof n.clientId!="string"){this.#t("error:invalid-config"),this.#r.set(!1);return}if(typeof n.accessToken!="string"){this.#t("error:invalid-config"),this.#r.set(!1);return}console.info("postMessage config set");let w=this.#n.getItem("locale")??"en-US",h=n.locale??"en-US";w!==h&&(this.#n.setItem("locale",h),window.location.reload()),this.#i.set(n),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#t("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#t(t){window.parent.postMessage(t,"*")}#s(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(t){this.#i.set(t)}clearConfig(){this.#i.set(null)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};var u="PROXY_AUTHED_FAKE_TOKEN",k=class r{#n=s(O);#i=s(y);#e=s(P);#r=s(f);#t=o(null);#s=o(!1);token=this.#t.asReadonly();isLoggingOut=this.#s.asReadonly();login(t){return this.#e.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(l(1),p(e=>e.AccessToken&&this.#t.set(e.AccessToken)))}refreshToken(){return this.#r.relayIsEnabled()?(this.#t.set(u),new g(t=>{t.next({AccessToken:u}),t.complete()})):this.#e.postApiV1AuthRefresh().pipe(l(1),p(t=>t.AccessToken&&this.#t.set(t.AccessToken)))}checkProxyAuthed(){let t=new R({"custom-proxy-check":"true"});return this.#i.get("/api/v1/systeminfo",{headers:t}).pipe(I(()=>(this.#t.set(u),!0)),A(()=>d(!1)))}logout(){this.#s.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(l(1),S(()=>{this.#s.set(!1),this.#t.set(null),this.#n.navigate(["/login"])})).subscribe()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{c as a,f as b,u as c,k as d};
package/chunk-NL7QPU6R.js DELETED
@@ -1 +0,0 @@
1
- import{a as $}from"./chunk-NV2YMSSM.js";import{a as R}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{a as A,d as N}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as B,g as O}from"./chunk-PUSUA4U7.js";import{b as k}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as F,Bb as a,Cb as r,Lc as M,Mb as _,Nb as c,Ob as u,Qa as i,Rb as T,Sb as I,X as m,db as C,fc as E,hc as L,ib as p,sa as l,wb as s,xb as f,yb as S,zb as g}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
package/chunk-NV2YMSSM.js DELETED
@@ -1 +0,0 @@
1
- import{Lc as m,Nc as g,O as d,X as y,aa as l,ia as b,sa as a}from"./chunk-PTC4N7TU.js";import{a as f,b as v}from"./chunk-7CGTOI24.js";function p(o,e){let r=!e?.manualCleanup;r&&!e?.injector&&l(p);let c=r?e?.injector?.get(b)??y(b):null,u=h(e?.equal),n;e?.requireSync?n=a({kind:0},{equal:u}):n=a({kind:1,value:e?.initialValue},{equal:u});let i=o.subscribe({next:t=>n.set({kind:1,value:t}),error:t=>{if(e?.rejectErrors)throw t;n.set({kind:2,error:t})}});if(e?.requireSync&&n().kind===0)throw new d(601,!1);return c?.onDestroy(i.unsubscribe.bind(i)),m(()=>{let t=n();switch(t.kind){case 1:return t.value;case 2:throw t.error;case 0:throw new d(601,!1)}},{equal:e?.equal})}function h(o=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&o(e.value,r.value)}function w(o){return o?.injector||l(w),g(v(f({},o),{loader:void 0,stream:e=>{let r,c=()=>r.unsubscribe();e.abortSignal.addEventListener("abort",c);let u=a({value:void 0}),n,i=new Promise(s=>n=s);function t(s){u.set(s),n?.(u),n=void 0}return r=o.loader(e).subscribe({next:s=>t({value:s}),error:s=>t({error:s}),complete:()=>{n&&t({error:new Error("Resource completed before producing a value")}),e.abortSignal.removeEventListener("abort",c)}}),i}}))}export{p as a,w as b};
package/chunk-OL4IJVKD.js DELETED
@@ -1 +0,0 @@
1
- import{a as ke}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import{a as Te}from"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{d as R}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as H,g as b,h as Me,j as Ee,k as ge,n as Fe,o as Ce}from"./chunk-PUSUA4U7.js";import{b as Se}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as o,Bb as i,Cb as r,Db as F,Eb as C,Gb as pe,Mb as s,Nb as u,Ob as p,Pb as se,Qa as c,Qb as ue,Sb as P,Tb as d,X as I,ca as k,da as O,db as ie,fc as S,hc as N,ib as g,ob as _e,pb as ae,rb as E,rc as D,sc as T,tb as A,vc as $,wb as m,wc as f,xb as le,xc as de,yb as ce,zb as re}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var Oe=()=>[R,b,H,Ee,ge,Fe,import("./chunk-YIWL3QAP.js").then(e=>e.DatePipe),import("./chunk-ZTJALQGT.js").then(e=>e.DurationFormatPipe),import("./chunk-4ERW7ITN.js").then(e=>e.BytesPipe)],me=()=>["/add-backup"],Pe=()=>["/restore"],Ne=e=>["/backup",e],$e=e=>["/restore",e],fe=e=>["/backup",e,"export"],Ie=e=>["/backup",e,"database"],Ae=e=>["/backup",e,"commandline"],De=e=>["/backup",e,"log"];function Re(e,_){if(e&1&&(S(0," - "),F(1),p(2,21),C(),S(3),$(4,"durationFormat")),e&2){let t=d().$implicit;c(3),N(" ",f(4,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDuration)," ")}}function He(e,_){e&1&&(F(0),p(1,22),C())}function be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.SourceFilesSize)," ")}}function xe(e,_){e&1&&(F(0),p(1,23),C())}function Be(e,_){if(e&1&&(S(0),$(1,"bytes")),e&2){let t=d().$implicit;N(" ",f(1,1,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.TargetFilesSize)," ")}}function Le(e,_){e&1&&(F(0),p(1,24),C())}function ye(e,_){if(e&1&&(o(0,"spk-chip",37),p(1,25),i()),e&2){let t=d().$implicit;c(),se(t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount),ue(1)}}function Ge(e,_){e&1&&(o(0,"spk-chip",38),p(1,26),i())}function he(e,_){if(e&1){let t=pe();o(0,"div",36)(1,"div",31)(2,"h3"),S(3),o(4,"spk-icon"),S(5,"database"),i()(),o(6,"p")(7,"span"),p(8,8),i(),S(9),$(10,"date"),g(11,Re,5,3)(12,He,2,0,"ng-container"),i(),o(13,"p")(14,"span"),p(15,9),i(),g(16,be,2,3)(17,xe,2,0,"ng-container"),i(),o(18,"p")(19,"span"),p(20,10),i(),g(21,Be,2,3)(22,Le,2,0,"ng-container"),i()(),g(23,ye,2,1,"spk-chip",37)(24,Ge,2,0,"spk-chip",38),o(25,"div",39)(26,"button",40),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.startBackup(l.Backup==null?null:l.Backup.ID))}),s(27,11),r(28,"spk-icon"),u(),i(),o(29,"button",41)(30,"spk-icon"),S(31,"pencil-simple"),i()(),o(32,"spk-menu",42)(33,"button",32)(34,"spk-icon"),S(35,"dots-three-vertical"),i()(),F(36,43),o(37,"h3",44),S(38,"Operations"),i(),o(39,"button",45,0),s(41,12),r(42,"spk-icon"),u(),i(),o(43,"button",45,0),s(45,13),r(46,"spk-icon"),u(),i(),o(47,"button",46,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.deleteBackup(l.Backup==null?null:l.Backup.ID))}),s(49,14),r(50,"spk-icon"),u(),i(),r(51,"spk-divider"),o(52,"h3",44),S(53,"Advanced"),i(),o(54,"button",45,0),s(56,15),r(57,"spk-icon"),u(),i(),o(58,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.verifyFiles(l.Backup==null?null:l.Backup.ID))}),s(60,16),r(61,"spk-icon"),u(),i(),o(62,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.compressBackup(l.Backup==null?null:l.Backup.ID))}),s(64,17),r(65,"spk-icon"),u(),i(),o(66,"button",45,0),s(68,18),r(69,"spk-icon"),u(),i(),r(70,"spk-divider"),o(71,"h3",44),S(72,"Reporting"),i(),o(73,"button",45,0),s(75,19),r(76,"spk-icon"),u(),i(),o(77,"button",47,0),P("click",function(){let l=k(t).$implicit,M=d(3);return O(M.createErrorReport(l.Backup==null?null:l.Backup.ID))}),s(79,20),r(80,"spk-icon"),u(),i(),C(),i()()()}if(e&2){let t,n=_.$implicit,l=d(3);c(3),N(" ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:l.MISSING_BACKUP_NAME," "),c(6),N(" ",de(10,17,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,"short")," "),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.LastBackupDuration?11:12),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.SourceFilesSize?16:17),c(5),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.TargetFilesSize?21:22),c(2),m(!(n.Backup==null||n.Backup.Metadata==null)&&n.Backup.Metadata.BackupListCount?23:24),c(3),A("loader",l.startingBackup()),c(3),E("routerLink",T(20,Ne,n.Backup==null?null:n.Backup.ID)),c(3),E("right",!0),c(7),E("routerLink",T(22,$e,n.Backup==null?null:n.Backup.ID)),c(4),E("routerLink",T(24,fe,n.Backup==null?null:n.Backup.ID)),c(4),A("loader",l.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(26,Ie,n.Backup==null?null:n.Backup.ID)),c(12),E("routerLink",T(28,Ae,n.Backup==null?null:n.Backup.ID)),c(7),E("routerLink",T(30,De,n.Backup==null?null:n.Backup.ID))}}function ve(e,_){if(e&1&&ce(0,he,81,32,"div",36,le),e&2){let t=d(2);re(t.backups())}}function Xe(e,_){e&1&&(F(0),p(1,27),C())}function we(e,_){if(e&1&&g(0,ve,2,0)(1,Xe,2,0,"ng-container"),e&2){let t=d();m(t.backups().length?0:1)}}function ze(e,_){e&1&&(o(0,"div",48),r(1,"spk-progress-bar",49),o(2,"div",31)(3,"h3"),p(4,28),i()()())}var x=class e{#e=I(Te);#n=I(Se);MISSING_BACKUP_NAME=$localize`Backup name missing`;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(_){this.#e.startBackup(_)}deleteBackup(_){window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(_)}verifyFiles(_){this.#n.postApiV1BackupByIdVerify({id:_}).subscribe()}compressBackup(_){this.#n.postApiV1BackupByIdCompact({id:_}).subscribe()}createErrorReport(_){this.#n.postApiV1BackupByIdCreatereport({id:_}).subscribe()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ie({type:e,selectors:[["app-home"]],decls:31,vars:5,consts:()=>{let _;_=$localize`Backups`;let t;t=$localize`Backups are stored in the cloud and can be restored at any time.`;let n;n=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let l;l=$localize`Restores`;let M;M=$localize`Restores allow you to restore your data from the cloud.`;let B;B=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let L;L=$localize`My backups`;let y;y=$localize`Last successful backup:`;let G;G=$localize`Source:`;let h;h=$localize`Destination:`;let v;v=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let X;X=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let w;w=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let z;z=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let K;K=$localize`${"\uFFFD#57\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let V;V=$localize`${"\uFFFD#61\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#61\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let j;j=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#65\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let q;q=$localize`${"\uFFFD#69\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#69\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let U;U=$localize`${"\uFFFD#76\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#76\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let W;W=$localize`${"\uFFFD#80\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#80\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `;let J;J=$localize`took`;let Q;Q=$localize`N/A`;let Y;Y=$localize`N/A`;let Z;Z=$localize`N/A`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ne;ne=$localize`No version yet`;let te;te=$localize`No backups founds`;let oe;return oe=$localize`Loading backups...`,[["option",""],_,t,n,l,M,B,L,y,G,h,v,X,w,z,K,V,j,q,U,W,J,Q,Y,Z,ee,ne,te,oe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["menu",""],["title",""],["type","button",3,"routerLink"],[3,"click"],["type","button",3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(r(0,"app-status-bar"),o(1,"section")(2,"header")(3,"spk-card",29),r(4,"img",30),o(5,"div",31)(6,"h3"),p(7,1),i(),o(8,"p"),p(9,2),i()(),o(10,"button",32),s(11,3),r(12,"spk-icon"),u(),i()(),o(13,"spk-card",29),r(14,"img",33),o(15,"div",31)(16,"h3"),p(17,4),i(),o(18,"p"),p(19,5),i()(),o(20,"button",32),s(21,6),r(22,"spk-icon"),u(),i()()(),o(23,"div",34)(24,"h2"),p(25,7),i(),o(26,"div",35),g(27,we,2,1)(28,ze,5,0),_e(29,27,Oe,null,28),i()()()),t&2&&(c(3),E("routerLink",D(3,me)),c(10),E("routerLink",D(4,Pe)),c(16),ae(!n.backupsLoading()))},dependencies:[R,ke,Me,b,H,Ce],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{x as default};