@duplicati/ngclient 0.0.233 → 0.0.235

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 (149) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/chunk-29_4gGIi.js +2 -0
  3. package/{chunk-C3gUxHQM.js → chunk-3YzyUT-a.js} +1 -1
  4. package/chunk-6-sszNfh.js +1 -0
  5. package/chunk-7T5O8Syb.js +1 -0
  6. package/{chunk-CS2J-6VZ.js → chunk-B61kkU_h.js} +1 -1
  7. package/chunk-B891gwjc.js +1 -0
  8. package/chunk-BDJqKfxm.js +1 -0
  9. package/chunk-BEUeHgR9.js +1 -0
  10. package/chunk-BEzhTDp8.js +2 -0
  11. package/{chunk-DDWDcSq2.js → chunk-BGuvkLC9.js} +1 -1
  12. package/{chunk-DXEgz1tV.js → chunk-BJOhC2d8.js} +1 -1
  13. package/chunk-BOKNwzSl.js +2 -0
  14. package/chunk-BSCc2xDv.js +1 -0
  15. package/chunk-BWSg9cLt.js +2 -0
  16. package/chunk-BWvawawS.js +2 -0
  17. package/chunk-B_I_9Y7k.js +1 -0
  18. package/chunk-Bgd5lu61.js +1 -0
  19. package/chunk-BjqgOGb9.js +2 -0
  20. package/chunk-Bq_vr6Q3.js +2 -0
  21. package/{chunk-C9OqpwwE.js → chunk-Brfc2m61.js} +1 -1
  22. package/{chunk-C9ecLR93.js → chunk-Btvi2S15.js} +11 -11
  23. package/chunk-C0KXp4hd.js +1 -0
  24. package/chunk-C0XQD9NK.js +1 -0
  25. package/chunk-C1-31fA7.js +1 -0
  26. package/chunk-C185qUb-.js +1 -0
  27. package/{chunk-CyqqlRjO.js → chunk-C1py21yb.js} +2 -2
  28. package/chunk-C4Uv1C-T.js +1 -0
  29. package/{chunk-B1c7h-_w.js → chunk-CFgDqLU0.js} +1 -1
  30. package/{chunk-aCJqF9DH.js → chunk-CGnjVnmu.js} +1 -1
  31. package/{chunk-DidJB9ig.js → chunk-CKUlUN3q.js} +1 -1
  32. package/chunk-CLlZiOaO.js +2 -0
  33. package/chunk-CQVPqpMp.js +2 -0
  34. package/chunk-CSrYlKTK.js +2 -0
  35. package/chunk-CdzKkYEw.js +2 -0
  36. package/chunk-Cj_yOpND.js +1 -0
  37. package/chunk-ClFp7JLZ.js +1 -0
  38. package/{chunk-DGvC49aU.js → chunk-Cm7JSdTO.js} +1 -1
  39. package/{chunk-D1pDZLJ9.js → chunk-CnZx831x.js} +1 -1
  40. package/chunk-CsVpmA6t.js +1 -0
  41. package/chunk-Css7wqTG.js +2 -0
  42. package/chunk-CxbeRJcJ.js +1 -0
  43. package/chunk-CzoH_Agx.js +1 -0
  44. package/chunk-CzsiJ0k-.js +1 -0
  45. package/chunk-D04TnMUn.js +2 -0
  46. package/{chunk-BstaUtD_.js → chunk-D2P9ER0I.js} +1 -1
  47. package/{chunk-mA4J4_nC.js → chunk-D38QrkIM.js} +1 -1
  48. package/chunk-D4g_OF7M.js +1 -0
  49. package/chunk-D5V6OY_2.js +2 -0
  50. package/{chunk-FTZ5atHM.js → chunk-D6IQFx6m.js} +1 -1
  51. package/chunk-D6y9RCQD.js +1 -0
  52. package/chunk-D7UddV5F.js +1 -0
  53. package/chunk-D9jPw9Ov.js +1 -0
  54. package/chunk-DA7rrIf8.js +1 -0
  55. package/chunk-DB0aGcRM.js +1 -0
  56. package/{chunk-DhiIZLrA.js → chunk-DBkkb6OR.js} +3 -3
  57. package/chunk-DE8p9-HP.js +1 -0
  58. package/chunk-DFLxy15J.js +1 -0
  59. package/chunk-DHkdQ4u3.js +3 -0
  60. package/chunk-DKRWta24.js +2 -0
  61. package/chunk-DSeMtMg3.js +1 -0
  62. package/chunk-DWCofCiP.js +14 -0
  63. package/chunk-DXLQftDm.js +1 -0
  64. package/{chunk-lymL5FDY.js → chunk-DYV1Pbu1.js} +1 -1
  65. package/chunk-DaXXLSfy.js +2 -0
  66. package/chunk-Dbq-qyNL.js +3 -0
  67. package/{chunk-8Y8ReLEn.js → chunk-DkVHfoYw.js} +2 -2
  68. package/chunk-DmCJ7w-M.js +1 -0
  69. package/{chunk-MDqH8T3Z.js → chunk-DneBfCBh.js} +2 -2
  70. package/{chunk-CX3Axjpk.js → chunk-DuRr4rDS.js} +1 -1
  71. package/chunk-Dv_fBX0w.js +1 -0
  72. package/chunk-IqMUABbN.js +1 -0
  73. package/chunk-Kq2ZFJSk.js +1 -0
  74. package/chunk-NAAMYA7J.js +1 -0
  75. package/chunk-NiMN4Rl6.js +1 -0
  76. package/chunk-OQ_HQ9EL.js +1 -0
  77. package/chunk-W1dL7dqQ.js +4 -0
  78. package/chunk-_OzpLe0L.js +1 -0
  79. package/chunk-ayE11Iz-.js +1 -0
  80. package/chunk-fDWfSg6Y.js +3 -0
  81. package/chunk-gId840Er.js +1 -0
  82. package/{chunk-B6c2NXNy.js → chunk-iGzJokt-.js} +1 -1
  83. package/{chunk-BmmYJhOf.js → chunk-iU19kwHx.js} +1 -1
  84. package/chunk-m8vMm7S6.js +1 -0
  85. package/chunk-xD8qjoz4.js +1 -0
  86. package/chunk-xI8Kkqgy.js +1 -0
  87. package/{chunk-h6n5A491.js → chunk-zOY5leQB.js} +1 -1
  88. package/index.html +1 -1
  89. package/main-2ZYVV4C4.js +21 -0
  90. package/package.json +1 -1
  91. package/assets/dest-icons/sia_logo_dark.92db63f5.svg +0 -6
  92. package/chunk-AuCOjHXM.js +0 -1
  93. package/chunk-B1wZ4poV.js +0 -1
  94. package/chunk-B5Y6lgE8.js +0 -1
  95. package/chunk-BZgAzrl9.js +0 -2
  96. package/chunk-B_cIFQAl.js +0 -1
  97. package/chunk-BaSm1lsB.js +0 -2
  98. package/chunk-Bgw6E0Xu.js +0 -2
  99. package/chunk-Bj7EyCHb.js +0 -1
  100. package/chunk-BrtdRb9j.js +0 -1
  101. package/chunk-BsNCg00z.js +0 -2
  102. package/chunk-BxpXVeOr.js +0 -1
  103. package/chunk-ByL8ndec.js +0 -1
  104. package/chunk-BzJX1fKw.js +0 -1
  105. package/chunk-C7AeY2HY.js +0 -2
  106. package/chunk-C7gG_Yh_.js +0 -2
  107. package/chunk-CGsQCBkP.js +0 -1
  108. package/chunk-CIe9Bupz.js +0 -1
  109. package/chunk-CIw_h8oP.js +0 -1
  110. package/chunk-CP6xnjgo.js +0 -3
  111. package/chunk-CWgXi-7W.js +0 -1
  112. package/chunk-Ca1aaA1h.js +0 -1
  113. package/chunk-CfxBiw7I.js +0 -1
  114. package/chunk-CgJAbgNN.js +0 -1
  115. package/chunk-ChUm8bnG.js +0 -1
  116. package/chunk-CkRbgemk.js +0 -2
  117. package/chunk-ClRItSzt.js +0 -1
  118. package/chunk-CsIAXoYP.js +0 -1
  119. package/chunk-CuJ_uEdr.js +0 -1
  120. package/chunk-CvSsZZty.js +0 -1
  121. package/chunk-D2G7_0hG.js +0 -2
  122. package/chunk-D3PhthfU.js +0 -2
  123. package/chunk-D55uWC7G.js +0 -1
  124. package/chunk-DD_wKpGc.js +0 -1
  125. package/chunk-DGxk44Me.js +0 -2
  126. package/chunk-DM11Gu0H.js +0 -1
  127. package/chunk-DV8bRznt.js +0 -2
  128. package/chunk-DWiO0A6h.js +0 -2
  129. package/chunk-DbbyVAGl.js +0 -1
  130. package/chunk-DcdpG1YG.js +0 -3
  131. package/chunk-Dk-Wgx3e.js +0 -1
  132. package/chunk-DuYKanVS.js +0 -1
  133. package/chunk-DwmssGG9.js +0 -2
  134. package/chunk-DxFBzFom.js +0 -1
  135. package/chunk-Dz5guW4b.js +0 -3
  136. package/chunk-I5dxaHZ4.js +0 -2
  137. package/chunk-K2iai6rC.js +0 -1
  138. package/chunk-L8hQtTzU.js +0 -1
  139. package/chunk-Y-xXBGKy.js +0 -1
  140. package/chunk-Z81HNfgo.js +0 -1
  141. package/chunk-aYCYzU5Q.js +0 -1
  142. package/chunk-bt6lhYfG.js +0 -1
  143. package/chunk-eiyaQxBt.js +0 -1
  144. package/chunk-jy8x4GhV.js +0 -1
  145. package/chunk-ksSA-rDF.js +0 -1
  146. package/chunk-mflQLMHH.js +0 -2
  147. package/chunk-nuwlP4Wz.js +0 -14
  148. package/chunk-uGh0bVbu.js +0 -4
  149. package/main-3NL5M6JB.js +0 -16
package/chunk-jy8x4GhV.js DELETED
@@ -1 +0,0 @@
1
- import {m,C as C$1,F}from'./chunk-bt6lhYfG.js';import {J}from'./chunk-aCJqF9DH.js';import {x}from'./chunk-mA4J4_nC.js';import {T,a6 as be$1,ab as C,aw as W,e as ee,ax as De,a5 as g,G as Ge$1,N as Nt,z as za,at as h,ay as Qu,az as t,aA as y,aj as l,J as zu,h as hw,_ as _t,c as N,v,u as ue,Q as Qi,s as jC,F as Fg,i as Ig,j as jg,$ as $l,H as Hg,p as lm,r as CD,d as aT,C as CE,y as vg,a3 as KC,L as Kg,aB as sm,w as cm,x as _D,g as cT,o as oC,U as UC,l as vT,O as Od,k as iC,P as Pd,K as im,n as nC,au as Vg,av as rC}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import {L}from'./chunk-DGvC49aU.js';var Xe=()=>["/"];function be(t,o){t&1&&(Qi(0,"sh-toggle",25),Fg(1,5),Ig(2,"input",28),CD(),jg(),$l()),t&2&&(CE(2),_D());}function Ge(t,o){t&1&&(Qi(0,"span",31),nC(1,9),$l());}function Be(t,o){if(t&1&&(Qi(0,"span",31),nC(1,10),$l()),t&2){let e=iC(2);CE(),Vg(e.exportForm.controls.password.errors?.minlength.requiredLength),rC(1);}}function ve(t,o){if(t&1&&Ig(0,"sh-progress-bar",38),t&2){let e=iC(2);Kg("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),vg("value",e.calculatePasswordStrength()*(100/5));}}function ke(t,o){t&1&&(Qi(0,"span",31),nC(1,11),$l());}function Ue(t,o){t&1&&(Qi(0,"span",31),nC(1,12),$l());}function Ke(t,o){if(t&1&&(Qi(0,"span",31),nC(1,13),$l()),t&2){let e=iC(2);CE(),Vg(e.exportForm.controls.repeatPassword.errors?.minlength.requiredLength),rC(1);}}function Je(t,o){t&1&&(Fg(0,7,1),Ig(1,"sh-icon"),jg());}function He(t,o){t&1&&(Fg(0,7,2),Ig(1,"sh-icon"),jg());}function ze(t,o){t&1&&(Fg(0,14,1),Ig(1,"sh-icon",40),jg());}function Ve(t,o){t&1&&(Fg(0,14,2),Ig(1,"sh-icon"),jg());}function qe(t,o){if(t&1){let e=vT();Qi(0,"button",39),Hg("click",function(){Od(e);let a=iC(2);return Pd(a.copyPassword())}),Fg(1,14),aT(2,ze,2,0)(3,Ve,2,0),jg(),$l();}if(t&2){let e=iC(2);CE(2),cT(e.copiedPassword()?2:3);}}function je(t,o){t&1&&(Qi(0,"sh-alert",37),nC(1,15),$l());}function We(t,o){if(t&1){let e=vT();Qi(0,"div",26)(1,"sh-form-field")(2,"label",29),Fg(3,6),Ig(4,"sup"),jg(),$l(),Ig(5,"input",30),CD(),aT(6,Ge,2,0,"span",31)(7,Be,2,1,"span",31),$l(),aT(8,ve,1,9,"sh-progress-bar",32),Qi(9,"sh-form-field"),Ig(10,"input",33),CD(),aT(11,ke,2,0,"span",31)(12,Ue,2,0,"span",31)(13,Ke,2,1,"span",31),$l(),Qi(14,"div",34)(15,"button",35),Hg("click",function(){Od(e);let a=iC();return Pd(a.showPassword.set(!a.showPassword()))}),Fg(16,7),aT(17,Je,2,0)(18,He,2,0),jg(),$l(),Qi(19,"button",35),Hg("click",function(){Od(e);let a=iC();return Pd(a.generatePassword())}),Fg(20,8),Ig(21,"sh-icon"),jg(),$l(),aT(22,qe,4,1,"button",36),$l(),aT(23,je,2,0,"sh-alert",37),$l();}if(t&2){let e=iC();CE(5),vg("type",e.showPassword()?"text":"password"),_D(),CE(),cT(e.exportForm.controls.password.errors?.required?6:e.exportForm.controls.password.errors?.minlength?7:-1),CE(2),cT(e.exportForm.value.password?8:-1),CE(2),vg("type",e.showPassword()?"text":"password"),_D(),CE(),cT(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors?.required?12:e.exportForm.controls.repeatPassword.errors?.minlength?13:-1),CE(6),cT(e.showPassword()?17:18),CE(5),cT(e.showCopyPassword()?22:-1),CE(),cT(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1);}}function Qe(t,o){if(t&1&&(Qi(0,"div",27)(1,"code"),jC(2),$l()()),t&2){let e=iC();CE(2),im(e.exportedCmd());}}var I=new jn,K=class t$1{#o=T(m);#n=T(be$1);#t=T(C);#e=T(W);#i=T(ee);#r=T(De);#s=T(g);isExporting=Ge$1(false);exportType=Ge$1("file");exportedCmd=Ge$1(null);exportForm=I.group({exportPasswords:I.control(true),encryption:I.control(false,[me.required,F()]),password:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])]),repeatPassword:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])])});exportFormSignal=L(this.exportForm.valueChanges);encryptionFieldSignal=Nt(()=>(this.exportFormSignal()?.encryption??false)&&this.exportType()==="file");activeBackup=Nt(()=>this.#s.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=Ge$1(false);copiedPassword=Ge$1(false);showCopyPassword=Ge$1(false);calculatePasswordStrength=Nt(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=za(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity();});disablePasswordForCommandLine=za(()=>{this.exportType()==="cmd"&&this.exportForm.controls.encryption.setValue(false);});submit(){if(this.exportType()==="file"&&this.exportFormSignal()?.exportPasswords===true&&!this.exportFormSignal()?.encryption){this.#n.open(h,{data:{title:$localize`Export without encryption?`,message:$localize`Are you sure you want to export your backup without encryption?`,confirmText:$localize`Yes, write plain-text passwords`,cancelText:$localize`Cancel`},closed:o=>{o&&this.submitApproved();}});return}this.submitApproved();}submitApproved(){this.isExporting.set(true),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(Qu(o=>{let e=T=>{let O=Object.entries(T);return O?"?"+O.filter(([h,E])=>E!=null).map(([h,E])=>`${encodeURIComponent(h)}=${encodeURIComponent(E)}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0,a=t.BASE||"";return this.#r.get(`${a}/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob",headers:new y(l({},t.HEADERS??{}))})}),zu(()=>this.isExporting.set(false))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",a=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${a}`),this.#i.navigate(["/"]);},error:o=>{console.error("Failed to export backup",o);}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(zu(()=>this.isExporting.set(false))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null);},error:o=>{console.error("Failed to export backup as command line",o);}});}downloadFile(o,e){let n=window.URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n);}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#a(o??""),this.copiedPassword.set(true);}async#a(o){try{await navigator.clipboard.writeText(o);}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);}catch(n){console.error("Failed to copy text: ",n);}}}generatePassword(){this.copiedPassword.set(false);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(true);}static \u0275fac=function(e){return new(e||t$1)};static \u0275cmp=hw({type:t$1,selectors:[["app-export"]],decls:26,vars:13,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let n;n=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: As command line `;let a;a=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: To file `;let T;T=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let O;O=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let h;h=$localize`Password`;let E;E=$localize`Repeat password`;let J;J=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=oC(w);let H;H=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Generate password `;let z;z=$localize`Passwords are required`;let V;V=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let q;q=$localize`Passwords do not match`;let j;j=$localize`Passwords are required`;let W;W=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let D;D=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,D=oC(D);let Q;return Q=$localize` Tip: Be sure to save your password. If you lose it, you will not be able to import the configuration. `,[o,e,n,a,T,O,J,w,H,z,V,q,j,W,D,Q,[1,"actions"],["shButton","",1,"outlined",3,"routerLink"],["shButton","",1,"raised","primary",3,"click","shTooltip","disabled"],["autocomplete","off",3,"formGroup"],[1,"type-b",3,"valueChange","value"],["value","cmd"],["value","file"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",h,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",E,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["shButton","","type","button",1,"small",3,"click"],["shButton","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["shButton","","type","button",1,"small","copy",3,"click"],[1,"sh-success"]]},template:function(e,n){e&1&&(Qi(0,"header")(1,"h3"),jC(2," Export backup configuration "),Qi(3,"div",16)(4,"button",17),Fg(5,0),Ig(6,"sh-icon"),jg(),$l(),Qi(7,"button",18),Hg("click",function(){return n.submit()}),Fg(8,1),Ig(9,"sh-icon"),jg(),$l()()(),Qi(10,"p"),jC(11),$l()(),Qi(12,"form",19)(13,"sh-button-group",20),lm("valueChange",function(T){return UC(n.exportType,T)||(n.exportType=T),T}),Qi(14,"button",21),Fg(15,2),Ig(16,"sh-icon"),jg(),$l(),Qi(17,"button",22),Fg(18,3),Ig(19,"sh-icon"),jg(),$l()(),Qi(20,"sh-toggle",23),Fg(21,4),Ig(22,"input",24),CD(),jg(),$l(),aT(23,be,3,0,"sh-toggle",25),aT(24,We,24,8,"div",26),aT(25,Qe,3,1,"div",27),$l()),e&2&&(CE(4),vg("routerLink",KC(12,Xe)),CE(3),Kg("loading",n.isExporting()),vg("shTooltip",n.encryptionFieldSignal()?"Remember to copy the password":"")("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()||n.encryptionFieldSignal()&&n.exportForm.value.repeatPassword!==n.exportForm.value.password),CE(4),sm("#",n.activeBackup()?.Backup?.ID,": ",n.activeBackup()?.Backup?.Name),CE(),vg("formGroup",n.exportForm),CE(),cm("value",n.exportType),CE(9),_D(),CE(),cT(n.exportType()==="file"?23:-1),CE(),cT(n.encryptionFieldSignal()?24:-1),CE(),cT(n.exportedCmd()?25:-1));},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,x,J,N,Fe,v,ue,d,at],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}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] sh-icon.sh-success[_ngcontent-%COMP%]{color:var(--success-8)}.hide[_ngcontent-%COMP%]{display:none}"]})};export{K as default};
package/chunk-ksSA-rDF.js DELETED
@@ -1 +0,0 @@
1
- import {OptionsListComponent as Oe}from'./chunk-I5dxaHZ4.js';import {I}from'./chunk-h6n5A491.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {L}from'./chunk-DGvC49aU.js';import {T,ab as C,e as ee$1,aw as W,G as Ge,N as Nt,J as zu,h as hw,c as N,v,Q as Qi,H as Hg,d as aT,aP as ql,n as nC,aQ as Gl,p as lm,$ as $l,F as Fg,i as Ig,j as jg,y as vg,C as CE,g as cT,w as cm,a6 as be,at as h,aZ as ee$2,U as UC,r as CD,x as _D}from'./main-3NL5M6JB.js';import'./chunk-BZgAzrl9.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';import'./chunk-MDqH8T3Z.js';import'./chunk-D1pDZLJ9.js';var d=class r{#t=T(be);destinationTargetUrl=Ge(null);destinationTestSignal=Ge(null);encryptionForm=Z();temporaryBackupId=Ge(null);updateTargetUrl(e){this.destinationTargetUrl.set(e);}showErrorDialog(e){this.#t.open(h,{data:{title:$localize`Error occured`,message:e,confirmText:$localize`OK`,cancelText:void 0},closed:n=>{}});}static \u0275fac=function(n){return new(n||r)};static \u0275prov=ee$2({token:r,factory:r.\u0275fac,providedIn:"root"})};function ne(r,e){r&1&&(Qi(0,"p"),nC(1,3),$l());}function oe(r,e){r&1&&(Qi(0,"sh-form-field")(1,"label",11),nC(2,4),$l(),Ig(3,"input",12),CD(),$l()),r&2&&(CE(3),_D());}var ee=new jn,Z=()=>ee.group({passphrase:ee.control("")}),f=class r{#t=T(C);#e=T(d);#n=T(ee$1);#o=T(W);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=Ge(false);settings=Ge([]);hasEncryptedBackup=Nt(()=>{let e=this.#e.destinationTestSignal();return e==="testing"||typeof e=="string"?true:e?.containsEncryptedBackupFiles??true});passphraseSignal=L(this.encryptionForm.controls.passphrase.valueChanges);showEncryptionField=Ge(false);isValidConfig=Nt(()=>{if(!this.#e.destinationTargetUrl())return false;let n=this.#e.destinationTestSignal();return !(typeof n!="string"&&(n?.containsEncryptedBackupFiles??false)&&!this.passphraseSignal())});next(){let e=this.#e.destinationTargetUrl();if(!e)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let n=this.encryptionForm.value?.passphrase??null,t=[];n?t.push({Name:"--passphrase",Value:n}):t.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(i=>{let o=i.Name?.trim();o&&o!=="--"&&(o.startsWith("--")||(o=`--${o}`),t.push({Name:o,Value:i.Value??""}));}),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:e,Settings:t}},temporary:true}).pipe(zu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:i=>{let o=i.ID;this.#e.temporaryBackupId.set(o),this.#n.navigate(["../select-config"],{relativeTo:this.#o});},error:i=>{console.error(i);}});}back(){this.#n.navigate(["../destination"],{relativeTo:this.#o});}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=hw({type:r,selectors:[["app-import-destination-encryption"]],decls:14,vars:6,consts:()=>{let e;e=$localize`Advanced options`;let n;n=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let i;i=$localize`The backup does not contain encrypted files.`;let o;o=$localize`Enter backup passphrase if defined.`;let P;return P=$localize`Password`,[e,n,t,i,P,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",o,"formControlName","passphrase"]]},template:function(n,t){n&1&&(Qi(0,"form",5),Hg("submit",function(){return t.next()}),aT(1,ne,2,0,"p"),aT(2,oe,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),ql(4,6),nC(5,0),Gl(),Qi(6,"app-options-list",7),lm("optionsChange",function(o){return UC(t.settings,o)||(t.settings=o),o}),$l()(),Qi(7,"div",8)(8,"button",9),Hg("click",function(){return t.back()}),Fg(9,1),Ig(10,"sh-icon"),jg(),$l(),Qi(11,"button",10),Fg(12,2),Ig(13,"sh-icon"),jg(),$l()()()),n&2&&(vg("formGroup",t.encryptionForm),CE(),cT(t.hasEncryptedBackup()?-1:1),CE(),cT(t.hasEncryptedBackup()||t.showEncryptionField()?2:-1),CE(4),cm("options",t.settings),vg("hasFreeTextSettings",true),CE(5),vg("disabled",!t.isValidConfig()));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe,N,v,I,Oe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var chunk7BT3TBKR=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:Z,default:f});export{chunk7BT3TBKR as c,d};
package/chunk-mflQLMHH.js DELETED
@@ -1,2 +0,0 @@
1
- import {O}from'./chunk-CuJ_uEdr.js';import {by as x,T,a6 as be,ab as C$1,m,a as T$1,bj as Q,G as Ge,N as Nt,z as za,at as h,aZ as ee}from'./main-3NL5M6JB.js';var S=new x("WindowToken",{providedIn:"root",factory:()=>typeof window<"u"?window:{}});var C=class l{#c=T(S);#g=T(be);#t=T(C$1);#o=T(m);#l=T(T$1);#n=T(Q);#u=T(O);constructor(){this.#l.subscribe("remotecontrol");}repeatRegisterTimer=null;#s=null;#r=0;#h=5;#m=2e3;pendingRefresh=false;state=Ge("unknown");claimUrl=Ge(null);registerUrl=Ge("");customRegisterUrl=Ge("");statusMessage=Nt(()=>{let e=this.state();return e==="connecting"?$localize`Console connection is enabled but not connected`:e==="connected"?$localize`Connected to console`:e==="registering"?$localize`Registering machine...`:e==="registeringfaulted"?$localize`Registration failed`:e==="registered"?$localize`Registered, waiting for accept`:e==="disabled"?$localize`Console connection is configured but not enabled`:e==="unknown"?$localize`...loading...`:$localize`Console connection is not set up`});sysInfoEffect=za(()=>{let e=this.#o.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"");});remoteEffect=za(()=>{let e=this.#l.remoteControlState();e&&this.#e(e);});pendingRefreshEffect=za(()=>{this.#n.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.refreshRemoteControlStatus());});#a=Nt(()=>{let e=this.#n.getConnectionMethod()==="websocket",i=this.#o.hasWsRemoteControl();return e&&i});#f(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("connecting"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");}#e(e){if(this.#r=0,this.#f(e),this.#a())return;let i=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),i==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.postApiV1RemotecontrolRegisterWait().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),(i==="connecting"||i==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),e.IsRegistering&&e.CanEnable&&this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#e(t)});}#i(e){if(this.#s!==null&&(clearTimeout(this.#s),this.#s=null),this.#r>=this.#h){this.state.set("registeringfaulted"),this.#r=0;return}let i=this.#m*Math.pow(2,this.#r);this.#r++,this.#s=setTimeout(()=>{this.#s=null,this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},i);}refreshRemoteControlStatus(){if(!this.#a()){if(!this.#n.isConnectionMethodSet()){this.pendingRefresh=true;return}this.#t.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}}beginRemoteRegistration(e=false){this.state.set("registering"),this.#t.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e?this.customRegisterUrl():this.registerUrl()}}).subscribe({next:i=>this.#e(i),error:i=>this.#i(i)});}cancelRemoteRegistration(){this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}enableRemoteControl(){this.#t.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}disableRemoteControl(){this.#t.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}deleteRemoteControl(){let e=this;this.#g.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete the console registration?`,confirmText:$localize`Delete registration`,cancelText:$localize`Cancel`},closed:i=>{i&&e.#t.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#e(t),error:t=>e.#i(t)});}});}openConsole(e="/app/machines",i){let t=this.#u.serverSettings(),y=this.#o.systemInfo(),r="https://app.duplicati.com",c=y?.RemoteControlDashboardUrl??"";if(c.length>0&&(r=c),t&&t["remote-control-dashboard-url"]&&(r=t["remote-control-dashboard-url"]),r=new URL(r).origin+e,i){let v=new URLSearchParams(i);r+=`?${v.toString()}`;}this.#c.open(r,"_blank");}static \u0275fac=function(i){return new(i||l)};static \u0275prov=ee({token:l,factory:l.\u0275fac,providedIn:"root"})};
2
- export{C,S};