@duplicati/ngclient 0.0.225 → 0.0.227

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 (201) hide show
  1. package/assets/images/backup-from-config.png +0 -0
  2. package/assets/images/backup-from-remote.png +0 -0
  3. package/assets/sh-bold.woff2 +0 -0
  4. package/assets/sh.woff2 +0 -0
  5. package/assets/ship.css +2 -0
  6. package/chunk--rqB0ojD.js +2 -0
  7. package/chunk-5zEiKCqR.js +1 -0
  8. package/chunk-B-ryE8KW.js +2 -0
  9. package/chunk-B6nCQM-G.js +1 -0
  10. package/chunk-B6ugJDDx.js +1 -0
  11. package/chunk-B7PRtY7v.js +1 -0
  12. package/chunk-B88MJ6Up.js +1 -0
  13. package/chunk-BAbAUjHY.js +2 -0
  14. package/chunk-BCT9ajP9.js +1 -0
  15. package/chunk-BKLJMYh2.js +1 -0
  16. package/chunk-BMGXb3gX.js +1 -0
  17. package/chunk-BNf0YAwH.js +2 -0
  18. package/chunk-BOII3Fdm.js +1 -0
  19. package/chunk-BPpheyQK.js +2 -0
  20. package/chunk-BS8yAz3P.js +2 -0
  21. package/chunk-BUF3tczf.js +14 -0
  22. package/chunk-BYoKu9PJ.js +1 -0
  23. package/chunk-BaWD8G-f.js +1 -0
  24. package/chunk-BeAI10wv.js +1 -0
  25. package/chunk-BffC_BAn.js +2 -0
  26. package/chunk-BjNuU0J_.js +2 -0
  27. package/chunk-BlIcwFlf.js +1 -0
  28. package/chunk-BqjWEFHw.js +1 -0
  29. package/chunk-BthLY9tf.js +1 -0
  30. package/chunk-BuyCr2eD.js +1 -0
  31. package/chunk-BxxX98wy.js +2 -0
  32. package/chunk-Bzp0ULy_.js +61 -0
  33. package/chunk-C-G3pKB4.js +2 -0
  34. package/chunk-C08PrcBX.js +1 -0
  35. package/chunk-C4pJCbq-.js +1 -0
  36. package/chunk-CDRHCSvU.js +2 -0
  37. package/chunk-CJRbWZfg.js +2 -0
  38. package/chunk-CM11IMzh.js +1 -0
  39. package/chunk-CMs999gl.js +2 -0
  40. package/chunk-CU-RYihf.js +2 -0
  41. package/chunk-CUxvfCTH.js +2 -0
  42. package/chunk-Cc1_FUvV.js +1 -0
  43. package/chunk-CdZVal1F.js +2 -0
  44. package/chunk-CeFh90sX.js +1 -0
  45. package/chunk-ChwFViRh.js +1 -0
  46. package/chunk-ClHWI9-i.js +2 -0
  47. package/chunk-ClfSJEUJ.js +1 -0
  48. package/chunk-CnAb3OKU.js +1 -0
  49. package/chunk-CtLFpDTP.js +3 -0
  50. package/chunk-CuU6b3lp.js +2 -0
  51. package/chunk-Cw8vFX0e.js +1 -0
  52. package/chunk-CxPG-KgI.js +3 -0
  53. package/chunk-Cz4OqhOZ.js +1 -0
  54. package/chunk-D-epCTmE.js +1 -0
  55. package/chunk-D0t-kgLy.js +2 -0
  56. package/chunk-DNJQ-AbV.js +3 -0
  57. package/chunk-DNSvQk_3.js +2 -0
  58. package/chunk-DWwNINBJ.js +2 -0
  59. package/chunk-DddAUzMY.js +1 -0
  60. package/chunk-DnD9XTM4.js +2 -0
  61. package/chunk-Do6_xsGi.js +4 -0
  62. package/chunk-DofVJ9gn.js +1 -0
  63. package/chunk-Dt8gZPT-.js +2 -0
  64. package/chunk-DtQIjLqL.js +1 -0
  65. package/chunk-DuO9_dH0.js +1 -0
  66. package/chunk-G-I5c1Dk.js +2 -0
  67. package/chunk-IEVZ0UN6.js +1 -0
  68. package/chunk-M5tldLvJ.js +1 -0
  69. package/chunk-N7vpDAsp.js +2 -0
  70. package/chunk-PA5BGFyW.js +1 -0
  71. package/chunk-QlYDF-EM.js +1 -0
  72. package/chunk-SWsliUUy.js +4 -0
  73. package/chunk-SgcWXTYZ.js +2 -0
  74. package/chunk-XMwSOila.js +1 -0
  75. package/chunk-ZVDEaGd0.js +1 -0
  76. package/chunk-birClroL.js +2 -0
  77. package/chunk-bx0aDvCZ.js +2 -0
  78. package/chunk-g_QJ3SVt.js +2 -0
  79. package/chunk-r4LfAQnM.js +3 -0
  80. package/chunk-wycXedbJ.js +2 -0
  81. package/chunk-ySdaWJYB.js +2 -0
  82. package/chunk-ya_5JcKA.js +1 -0
  83. package/index.html +2 -2
  84. package/locale/messages.da.json +11 -20
  85. package/locale/messages.de.json +110 -85
  86. package/locale/messages.de_CH.json +86 -61
  87. package/locale/messages.de_DE.json +160 -92
  88. package/locale/messages.en.json +173 -63
  89. package/locale/messages.en_US.json +922 -0
  90. package/locale/messages.fr.json +86 -61
  91. package/locale/messages.fr_CA.json +160 -92
  92. package/locale/messages.fr_FR.json +160 -92
  93. package/locale/messages.it.json +91 -66
  94. package/locale/messages.it_IT.json +160 -92
  95. package/locale/messages.json +173 -63
  96. package/locale/messages.nl_BE.json +160 -92
  97. package/locale/messages.nl_NL.json +177 -111
  98. package/locale/messages.pl.json +22 -45
  99. package/locale/messages.zh-Hans.json +222 -85
  100. package/locale/messages.zh-Hant.json +222 -85
  101. package/locale/messages.zh.json +222 -85
  102. package/locale/messages.zh_CN.json +225 -88
  103. package/locale/messages.zh_HK.json +222 -85
  104. package/locale/messages.zh_TW.json +643 -19
  105. package/main-TZVLLK67.js +16 -0
  106. package/package.json +1 -1
  107. package/ship-ui-assets/mcp/components.json +4369 -2788
  108. package/styles-WQUFQGYX.css +1 -0
  109. package/chunk-2EX5HS5X.js +0 -1
  110. package/chunk-2KD757N6.js +0 -1
  111. package/chunk-2YUSBRXY.js +0 -1
  112. package/chunk-35FMFK4I.js +0 -1
  113. package/chunk-3DHD6GQL.js +0 -1
  114. package/chunk-3HYQMG65.js +0 -2
  115. package/chunk-3PARK7B7.js +0 -1
  116. package/chunk-3V25RAVK.js +0 -1
  117. package/chunk-4ISFDBI3.js +0 -2
  118. package/chunk-5FQ7HESA.js +0 -1
  119. package/chunk-5QGFYH2A.js +0 -3
  120. package/chunk-5UJN5SN4.js +0 -2
  121. package/chunk-6DX35WDO.js +0 -1
  122. package/chunk-6Q6SSTBK.js +0 -1
  123. package/chunk-6WX2UOAN.js +0 -1
  124. package/chunk-7CGTOI24.js +0 -1
  125. package/chunk-7VQ67PEZ.js +0 -1
  126. package/chunk-A23UTI46.js +0 -1
  127. package/chunk-AR5SEBWX.js +0 -1
  128. package/chunk-B4QFOJXL.js +0 -1
  129. package/chunk-BPHX6VXP.js +0 -1
  130. package/chunk-CJKZ27FM.js +0 -1
  131. package/chunk-COEGVUM3.js +0 -1
  132. package/chunk-CQJRBQ6I.js +0 -1
  133. package/chunk-E4CYVUYG.js +0 -1
  134. package/chunk-EBKOJDCT.js +0 -1
  135. package/chunk-EVEI25GQ.js +0 -2
  136. package/chunk-EXAZ4QZR.js +0 -1
  137. package/chunk-G7TNRWOU.js +0 -1
  138. package/chunk-GA3CAVSK.js +0 -2
  139. package/chunk-GKAMSAN5.js +0 -1
  140. package/chunk-GNKCBZMS.js +0 -1
  141. package/chunk-HDDAGHHE.js +0 -2
  142. package/chunk-HLHUPBCV.js +0 -1
  143. package/chunk-HPXIWKIK.js +0 -1
  144. package/chunk-HS3UDQIJ.js +0 -1
  145. package/chunk-HWOUAWOE.js +0 -1
  146. package/chunk-IDJ52K34.js +0 -1
  147. package/chunk-ITN4L52Q.js +0 -1
  148. package/chunk-J7GH3G72.js +0 -1
  149. package/chunk-JBX7YYME.js +0 -1
  150. package/chunk-JCXT6U5P.js +0 -1
  151. package/chunk-JNZJE3GC.js +0 -1
  152. package/chunk-K5XGRFWJ.js +0 -4
  153. package/chunk-KGK4RY3J.js +0 -1
  154. package/chunk-KNSQLQC6.js +0 -1
  155. package/chunk-KUNX5APQ.js +0 -1
  156. package/chunk-KX3UP3HV.js +0 -1
  157. package/chunk-KZYRTI62.js +0 -1
  158. package/chunk-LXTSZI4K.js +0 -1
  159. package/chunk-MKI54WTC.js +0 -1
  160. package/chunk-MSIH2OJ5.js +0 -1
  161. package/chunk-N5XYG3QW.js +0 -1
  162. package/chunk-NE255HQN.js +0 -1
  163. package/chunk-NQAD2FBX.js +0 -1
  164. package/chunk-NUV5LHQV.js +0 -1
  165. package/chunk-O2HQIEE4.js +0 -1
  166. package/chunk-O2L2FRYE.js +0 -11
  167. package/chunk-OP7MDR2B.js +0 -1
  168. package/chunk-OSGHJCUU.js +0 -1
  169. package/chunk-OYU6OBKA.js +0 -1
  170. package/chunk-P2EIEVFT.js +0 -1
  171. package/chunk-PDZNQW6F.js +0 -1
  172. package/chunk-PEOYNJJM.js +0 -1
  173. package/chunk-PMF4FTBF.js +0 -1
  174. package/chunk-PNQ5BDQN.js +0 -1
  175. package/chunk-PNRFCYAE.js +0 -2
  176. package/chunk-POVWDK74.js +0 -1
  177. package/chunk-QW23XWNE.js +0 -1
  178. package/chunk-SKLSR5GH.js +0 -1
  179. package/chunk-T7RMSUHE.js +0 -1
  180. package/chunk-TSVSMVY4.js +0 -1
  181. package/chunk-TV7OB7Y4.js +0 -1
  182. package/chunk-TWWAK5M6.js +0 -1
  183. package/chunk-TXCVGOPN.js +0 -2
  184. package/chunk-UIVZWXBK.js +0 -1
  185. package/chunk-UNQKMTFM.js +0 -1
  186. package/chunk-V2M5YF4E.js +0 -1
  187. package/chunk-V2UO7ES2.js +0 -1
  188. package/chunk-VOXTAZLZ.js +0 -1
  189. package/chunk-VQLI7RDY.js +0 -60
  190. package/chunk-VTOEFKZG.js +0 -1
  191. package/chunk-VZNLMGYP.js +0 -2
  192. package/chunk-XUCXLLB4.js +0 -1
  193. package/chunk-XWML36YQ.js +0 -1
  194. package/chunk-Y47NRSCA.js +0 -1
  195. package/chunk-YF6JHIN5.js +0 -1
  196. package/chunk-YS4B2B5N.js +0 -1
  197. package/chunk-ZGQ2WCM2.js +0 -1
  198. package/chunk-ZSAEIKEB.js +0 -1
  199. package/chunk-ZXBKGNJU.js +0 -1
  200. package/main-S64CL44W.js +0 -1
  201. package/styles-S2CJL4OY.css +0 -1
package/chunk-OYU6OBKA.js DELETED
@@ -1 +0,0 @@
1
- import{g as q}from"./chunk-6WX2UOAN.js";import{a as K}from"./chunk-3HYQMG65.js";import"./chunk-O2HQIEE4.js";import"./chunk-VZNLMGYP.js";import{b as Z}from"./chunk-3PARK7B7.js";import"./chunk-O2L2FRYE.js";import"./chunk-PNQ5BDQN.js";import"./chunk-2EX5HS5X.js";import"./chunk-EVEI25GQ.js";import"./chunk-NE255HQN.js";import{b as V}from"./chunk-UIVZWXBK.js";import"./chunk-E4CYVUYG.js";import"./chunk-6Q6SSTBK.js";import{a as j}from"./chunk-COEGVUM3.js";import"./chunk-YS4B2B5N.js";import"./chunk-KZYRTI62.js";import"./chunk-TSVSMVY4.js";import"./chunk-2KD757N6.js";import{b as H}from"./chunk-OP7MDR2B.js";import"./chunk-PEOYNJJM.js";import"./chunk-NUV5LHQV.js";import"./chunk-PDZNQW6F.js";import{C as W,L as X,O as z,v as J}from"./chunk-CJKZ27FM.js";import{d as B}from"./chunk-KNSQLQC6.js";import{b as w}from"./chunk-CQJRBQ6I.js";import"./chunk-V2UO7ES2.js";import"./chunk-HDDAGHHE.js";import{ma as k}from"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as S,Db as C,Eb as i,Fb as s,Gb as c,Gc as T,Hc as d,Kb as P,Lb as m,Rc as x,Ta as a,Ub as A,Vb as D,Wb as r,Xb as b,Yb as v,ac as g,ga as u,ha as f,hb as I,oc as M,qa as y,rc as N,xb as O,yb as p}from"./chunk-K5XGRFWJ.js";import"./chunk-7CGTOI24.js";function Q(n,t){n&1&&(i(0,"div",17),u(),i(1,"svg",19),c(2,"circle",20),s(),f(),i(3,"sh-icon",21),r(4,3),s()())}function U(n,t){n&1&&(i(0,"div",18),u(),i(1,"svg",19),c(2,"circle",20),s(),f(),i(3,"sh-icon",22),r(4,4),s()())}function Y(n,t){if(n&1&&(i(0,"sh-card",10),P(1,16),r(2,2),m(),O(3,Q,5,0,"div",17)(4,U,5,0,"div",18),s()),n&2){let e=g();a(3),p(e.restoreResult()=="success"?3:4)}}function ee(n,t){if(n&1&&(M(0),T(1,"number"),T(2,"number")),n&2){let e,o=g(2);N(" ",d(1,2,(e=o.statusData())==null?null:e.ProcessedFileCount)," of ",d(2,4,(e=o.statusData())==null?null:e.TotalFileCount)," ")}}function te(n,t){n&1&&(P(0),r(1,8),m())}function ne(n,t){if(n&1&&(M(0),T(1,"bytes"),T(2,"bytes")),n&2){let e,o=g(2);N(" ",d(1,2,(e=o.statusData())==null?null:e.ProcessedFileSize)," of ",d(2,4,(e=o.statusData())==null?null:e.TotalFileSize)," ")}}function oe(n,t){n&1&&(P(0),r(1,9),m())}function ie(n,t){if(n&1&&(i(0,"sh-card",10)(1,"h3"),A(2,5),c(3,"sh-spinner",23),D(),s(),i(4,"div",24),c(5,"sh-progress-bar",25),i(6,"p")(7,"span"),r(8,6),s(),O(9,ee,3,6)(10,te,2,0,"ng-container"),s(),i(11,"p")(12,"span"),r(13,7),s(),O(14,ne,3,6)(15,oe,2,0,"ng-container"),s()()()),n&2){let e,o,l,E,R=g();a(3),b((e=R.statusData())==null?null:e.statusText),v(2),a(2),C("value",(o=R.statusData())==null?null:o.OverallProgress),a(4),p((l=R.statusData())!=null&&l.ProcessedFileCount?9:10),a(5),p((E=R.statusData())!=null&&E.ProcessedFileSize?14:15)}}var G=class n{#i=S(B);#s=S(H);#t=S(V);#n=S(q);#r=S(w);statusData=this.#t.statusData;backupId=this.#n.backupId;restoreResult=y("");#e=null;lastRestoreStarted=x(()=>{if(this.#e)return this.#e;let t=this.#t.statusData()?.backup?.Backup?.Metadata?.LastRestoreStarted??null;if(!t)return null;let e=this.fixDate(t);return this.#e=e,e});notificationFilterPredicate=()=>{let t=this.lastRestoreStarted();return{predicate:e=>(e.BackupID===this.#n.backupId()&&t&&t.getTime()<=new Date(e.Timestamp).getTime())??!1}};ngOnInit(){let t=this.#r.snapshot.params.taskid?.toString()??"";this.#i.getApiV1TaskByTaskid({taskid:t}).subscribe({next:e=>{if(e.TaskStarted&&(this.#e=new Date(e.TaskStarted)),!e.TaskFinished&&e.ID){this.#_(e.ID);return}this.#o(e)},error:e=>{console.error("Error fetching task:",e),this.restoreResult.set("error"),alert("Failed to fetch task details. Please try again later.")}})}#_(t){this.#s.waitForTaskToComplete(t).subscribe(e=>{this.#o(e)})}#o(t){t.TaskFinished!=null&&this.restoreResult.set(t.Status==="Completed"&&t.ErrorMessage==null?"success":"error")}fixDate(t){return new Date(`${t.slice(0,4)}-${t.slice(4,6)}-${t.slice(6,8)}T${t.slice(9,11)}:${t.slice(11,13)}:${t.slice(13,15)}Z`)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-restore-progress"]],decls:12,vars:5,consts:()=>{let t;t=$localize`Notifications`;let e;e=$localize`Logs`;let o;o=$localize`Restore completed`;let l;l=$localize`check-bold`;let E;E=$localize`warning-octagon`;let R;R=$localize` Restore progress: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_SPINNER:`;let h;h=$localize`Files processed:`;let F;F=$localize`Size processed:`;let L;L=$localize`N/A`;let $;return $=$localize`N/A`,[t,e,o,l,E,R,h,F,L,$,[1,"progress","type-a"],[1,"notifications","type-a"],[1,"notification-list"],[3,"notificationFilterPredicate"],[1,"logs","type-a"],[3,"polling","whenFilter","backupIdFilter"],["title",""],[1,"complete-success"],[1,"complete-failure"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"success"],[1,"error"],[1,"primary"],[1,"progress-content"],[3,"value"]]},template:function(e,o){if(e&1&&(i(0,"section"),O(1,Y,5,1,"sh-card",10)(2,ie,16,4,"sh-card",10),i(3,"sh-card",11)(4,"h3"),r(5,0),s(),i(6,"div",12),c(7,"app-notifications",13),s()(),i(8,"sh-card",14)(9,"h3"),r(10,1),s(),c(11,"app-logs-live",15),s()()),e&2){let l;a(),p(o.restoreResult()!=""?1:2),a(6),C("notificationFilterPredicate",o.notificationFilterPredicate()),a(4),C("polling",o.restoreResult()=="")("whenFilter",(l=o.lastRestoreStarted())==null?null:l.getTime())("backupIdFilter",o.backupId())}},dependencies:[K,X,z,J,W,Z,j,k],styles:['[_nghost-%COMP%]{display:block;padding:0 1.25rem;margin-top:32px}section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;grid-template-columns:2fr 1fr;grid-template-areas:"progress notifications" "logs logs"}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{grid-area:progress}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]:has(.complete-check){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] sh-spinner[_ngcontent-%COMP%]{--spinner-size: 1.25rem;--spinner-thickness: .1875rem}section[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%]{grid-area:notifications}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%]{grid-area:logs}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{max-height:50rem;overflow:auto}.notification-list[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.complete-success[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--success-8)}.complete-success[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-success[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--success-8)}.complete-failure[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--error-8)}.complete-failure[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-failure[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--error-8)}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke-width:.3125rem;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-bottom:.75rem}.progress-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.25rem}'],changeDetection:0})};export{G as default};
package/chunk-P2EIEVFT.js DELETED
@@ -1 +0,0 @@
1
- import{a as z}from"./chunk-O2HQIEE4.js";import{A as X,B as H,K as V,v as J}from"./chunk-CJKZ27FM.js";import"./chunk-KNSQLQC6.js";import{a as x,c as B,d as w,e as U,f as k}from"./chunk-CQJRBQ6I.js";import"./chunk-V2UO7ES2.js";import"./chunk-HDDAGHHE.js";import"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as g,Db as P,Eb as i,Fb as t,Gb as _,Kb as R,Lb as M,Nb as f,Ta as C,Ub as l,Vb as r,Wb as b,Xb as y,Yb as v,_b as T,ac as c,ea as F,fa as a,hb as m,qa as p,xb as $,yb as D}from"./chunk-K5XGRFWJ.js";import"./chunk-7CGTOI24.js";function W(u,S){if(u&1){let n=f();i(0,"sh-menu",16)(1,"button",17),b(2,2),t(),R(3,18),i(4,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Disabled"))}),l(5,3),_(6,"sh-icon"),r(),t(),i(7,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Verbose"))}),l(8,4),_(9,"sh-icon"),r(),t(),i(10,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("ExplicitOnly"))}),l(11,5),_(12,"sh-icon"),r(),t(),i(13,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Profiling"))}),l(14,6),_(15,"sh-icon"),r(),t(),i(16,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Retry"))}),l(17,7),_(18,"sh-icon"),r(),t(),i(19,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Information"))}),l(20,8),_(21,"sh-icon"),r(),t(),i(22,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("DryRun"))}),l(23,9),_(24,"sh-icon"),r(),t(),i(25,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Warning"))}),l(26,10),_(27,"sh-icon"),r(),t(),i(28,"button",19),T("click",function(){F(n);let e=c();return a(e.updateLogLevel("Error"))}),l(29,11),_(30,"sh-icon"),r(),t(),M(),t()}if(u&2){let n=c();P("openIndicator",!0),C(2),y(n.logLevelByLabel()),v(2)}}var O=class u{#n=g(w);#e=g(z);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=p(this.#n.url);constructor(){this.#n.events.subscribe(S=>{S instanceof x&&this.currentUrl.set(S.urlAfterRedirects)})}updateLogLevel(S){this.#e.isPolling.set(!0),this.#e.updateLogLevel(S)}static \u0275fac=function(n){return new(n||u)};static \u0275cmp=m({type:u,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let S;S=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Disabled `;let E;E=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Explicit only `;let N;N=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Profiling `;let I;I=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Retry `;let d;d=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Information `;let h;h=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Dry run `;let G;G=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON: Warning `;let A;return A=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SH_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SH_ICON: Error `,[S,n,o,e,E,L,N,I,d,h,G,A,[1,"filters"],[1,"type-b"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["shButton","","type","button"],["menu",""],["shButton","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(i(0,"div",12)(1,"sh-button-group",13)(2,"button",14),l(3,0),_(4,"sh-icon"),r(),t(),i(5,"button",15),l(6,1),_(7,"sh-icon"),r(),t()(),$(8,W,31,2,"sh-menu",16),t(),_(9,"router-outlet")),n&2&&(C(8),D(o.currentUrl().startsWith("/about/logs/live")?8:-1))},dependencies:[H,X,J,V,B,k,U],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:0 2rem;margin-bottom:1.25rem}"],changeDetection:0})};export{O as default};
package/chunk-PDZNQW6F.js DELETED
@@ -1 +0,0 @@
1
- import{a as l,d as w}from"./chunk-KNSQLQC6.js";import{d as k}from"./chunk-CQJRBQ6I.js";import{a as b,d as O}from"./chunk-HDDAGHHE.js";import{xa as T,ya as s}from"./chunk-YF6JHIN5.js";import{$ as i,Aa as v,B as N,E as u,G as p,K as P,O as f,W as c,f as R,i as y,l as E,q as m,qa as a}from"./chunk-K5XGRFWJ.js";import{a as A}from"./chunk-7CGTOI24.js";var h=class r{platformId=i(v);STORAGE_VERSION="v1";APP_NAME="duplicati";PERSISTED_PREFIX="persist:";getItemParsed(e,t=!1){return s(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${t?this.PERSISTED_PREFIX:""}${this.APP_NAME}:${e}`)??"null")}setItemParsed(e,t,o=!1){if(!s(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${o?this.PERSISTED_PREFIX:""}${this.APP_NAME}:${e}`,JSON.stringify(t))}get length(){return T(this.platformId)?localStorage.length:0}getItem(e){return s(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`)??null}setItem(e,t){if(!s(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`,t)}removeItem(e){s(this.platformId)||(localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`),localStorage.removeItem(`${this.STORAGE_VERSION}:${this.PERSISTED_PREFIX}${this.APP_NAME}:${e}`))}clearAllNotCurrentVersion(){if(!s(this.platformId))for(var e in localStorage)!e.startsWith(this.STORAGE_VERSION)&&e.includes(this.APP_NAME)&&localStorage.removeItem(e)}clearAll(){s(this.platformId)||localStorage.clear()}clear(){if(!s(this.platformId))for(var e in localStorage)e.includes(this.APP_NAME)&&!e.includes(this.PERSISTED_PREFIX)&&localStorage.removeItem(e)}key(e){return s(this.platformId)?null:localStorage.key(e)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac})};function V(){try{let r=document.querySelector('meta[name="duplicati-proxy-config"]');if(r){let e=(r.getAttribute("content")||"").trim();if(e&&e.startsWith("/"))return e}}catch(r){console.warn("Failed to read proxy configuration from meta tag:",r)}return null}function L(){try{let r=document.querySelector('meta[name="duplicati-enable-iframe-hosting"]');if(r){let e=(r.getAttribute("content")||"").trim();if(e&&e.length>0)return e.toLowerCase()!=="true"}}catch(r){console.warn("Failed to read disable relay support configuration from meta tag:",r)}return!0}function $(){try{let r=document.querySelector('meta[name="duplicati-xsrf-config"]');if(r){let e=(r.getAttribute("data-header-name")||"").trim(),t=(r.getAttribute("data-query-name")||"").trim();if(e&&t&&e.length>0&&t.length>0){let n=new URLSearchParams(window.location.search).get(t);if(n)return{headerName:e,queryName:t,headerValue:n}}}}catch(r){console.warn("Failed to read XSRF configuration from meta tags:",r)}return null}function x(){let r=$();return r?`${r.queryName}=${encodeURIComponent(r.headerValue)}`:null}function X(){let r=V();if(r&&r.length>0){let t=r;t.startsWith("/")||(t=`/${t}`),t.endsWith("/")&&(t=t.slice(0,-1)),l.BASE=t}else l.BASE="";let e=$();e&&(l.HEADERS={[e.headerName]:e.headerValue})}var g=class r{#i=i(h);#o=a(null);#t=window.self!==window.top&&L();#r=a(this.#t);relayIsEnabled=this.#r.asReadonly();config=this.#o.asReadonly();configLoaded=this.#t?new y:null;isLoading=a(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#s(),this.#t&&(this.#r.set(!0),this.parentIframeListner=new AbortController,this.#e("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),o=JSON.parse(t);if(!o?.accessToken||!o?.clientId||!o?.machineServerUrl){this.#e("error:invalid-config"),this.#r.set(!1);return}if(typeof o.clientId!="string"){this.#e("error:invalid-config"),this.#r.set(!1);return}if(typeof o.accessToken!="string"){this.#e("error:invalid-config"),this.#r.set(!1);return}if(typeof o.machineServerUrl!="string"){this.#e("error:invalid-config"),this.#r.set(!1);return}let n=this.#i.getItem("locale")??"en-US",I=o.locale??"en-US";n!==I&&(this.#i.setItem("locale",I),window.location.reload()),this.#o.set(o),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#e("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#e(e){window.parent.postMessage(e,"*")}#s(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#o.set(e)}clearConfig(){this.#o.set(null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var D="PROXY_AUTHED_FAKE_TOKEN",d="refreshNonce",S="v1:persist:duplicati:refreshNonce",M=class r{#i=i(k);#o=i(O);#t=i(w);#r=i(g);#e=a(null);#s=a(!1);#a=a(!1);#l=a(x());xsrfQueryParam=this.#l.asReadonly();token=this.#e.asReadonly();isLoggingOut=this.#s.asReadonly();setRefreshNonce(e,t){if(!e){sessionStorage.removeItem(d);return}t?localStorage.setItem(S,e||""):sessionStorage.setItem(d,e||"")}getRefreshNonceBody(){let e=sessionStorage.getItem(d),t=localStorage.getItem(S),o=e||t;return{requestBody:o?{requestBody:{Nonce:o}}:void 0,local:o===t}}login(e,t){return this.#t.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:t}}).pipe(u(1),f(o=>{o.AccessToken?(this.#e.set(o.AccessToken),this.setRefreshNonce(o.RefreshNonce,t)):this.#e.set(null)}))}#n=null;refreshToken(){if(this.#r.relayIsEnabled())return this.#e.set(D),new R(o=>{o.next({AccessToken:D}),o.complete()});if(this.#a())return this.#t.postApiV1AuthIssuetokenByOperation({operation:"websocket"}).pipe(u(1),f(o=>{o.Token&&this.#e.set(o.Token)}),m(o=>({AccessToken:o.Token})));if(this.#n)return this.#n;let{requestBody:e,local:t}=this.getRefreshNonceBody();return this.#n=this.#t.postApiV1AuthRefresh(e).pipe(u(1),f(o=>{o.AccessToken&&(this.#e.set(o.AccessToken),this.setRefreshNonce(o.RefreshNonce,t))}),p(()=>{this.#n=null}),P(1)),this.#n}checkProxyAuthed(){let e=new b(A({"custom-proxy-check":"true"},l.HEADERS??{})),t=l.BASE||"";return this.#o.post(`${t}/api/v1/auth/status`,null,{headers:e}).pipe(m(o=>{let n=o;return n?.authorized&&n?.socketToken?(this.#e.set(n.socketToken),this.#a.set(!0),!0):!1}),N(()=>E(!1)))}logout(){this.#s.set(!0);let{requestBody:e,local:t}=this.getRefreshNonceBody();sessionStorage.removeItem(d),t&&localStorage.removeItem(S),this.#t.postApiV1AuthRefreshLogout(e).pipe(u(1),p(()=>{this.#s.set(!1),this.#e.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};export{h as a,X as b,g as c,D as d,M as e};
package/chunk-PEOYNJJM.js DELETED
@@ -1 +0,0 @@
1
- import{B as y}from"./chunk-CJKZ27FM.js";import{Eb as i,Fb as o,Nb as C,Rc as D,Ta as n,Wc as b,Xc as T,_b as g,ac as r,ea as u,fa as _,hb as x,oc as l,pc as m,xb as s,yb as d}from"./chunk-K5XGRFWJ.js";import{a as f}from"./chunk-7CGTOI24.js";function v(t,a){if(t&1&&(i(0,"p"),l(1),o()),t&2){let e=r();n(),m(e._data().message)}}function S(t,a){if(t&1){let e=C();i(0,"button",5),g("click",function(){u(e);let p=r();return _(p.close("cancel"))}),l(1),o()}if(t&2){let e=r();n(),m(e._data().cancelText)}}function k(t,a){if(t&1){let e=C();i(0,"button",6),g("click",function(){u(e);let p=r();return _(p.close("confirm"))}),l(1),o()}if(t&2){let e=r();n(),m(e._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:void 0,cancelText:$localize`Cancel`},h=class t{data=T();_data=D(()=>f(f({},w),this.data()));closed=b();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=x({type:t,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["shButton","",1,""],["shButton","",1,"raised","primary"],["shButton","",1,"",3,"click"],["shButton","",1,"raised","primary",3,"click"]],template:function(e,c){e&1&&(i(0,"header",0)(1,"h3"),l(2),o()(),i(3,"div",1),s(4,v,2,1,"p"),o(),i(5,"footer",2),s(6,S,2,1,"button",3),s(7,k,2,1,"button",4),o()),e&2&&(n(2),m(c._data().title),n(2),d(c._data().message?4:-1),n(2),d(c._data().cancelText?6:-1),n(),d(c._data().confirmText?7:-1))},dependencies:[y],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{h as a};
package/chunk-PMF4FTBF.js DELETED
@@ -1 +0,0 @@
1
- import{a as Q}from"./chunk-SKLSR5GH.js";import{a as B}from"./chunk-YS4B2B5N.js";import{e as j}from"./chunk-PDZNQW6F.js";import{B as H,D as K,H as V,b as y,c as D,d as R,e as $,f as A,j as v,p as k,q as x,r as J,t as X,v as q,w as z}from"./chunk-CJKZ27FM.js";import"./chunk-KNSQLQC6.js";import{d as G}from"./chunk-CQJRBQ6I.js";import"./chunk-V2UO7ES2.js";import"./chunk-HDDAGHHE.js";import"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as _,Db as d,Eb as t,Fb as i,G as C,Gb as r,Ta as a,Ub as g,Vb as u,Wb as I,Yc as w,_b as p,hb as S,hc as E,ic as M,lc as O,oc as P,pc as b,qa as s,sa as N,xb as T,yb as L}from"./chunk-K5XGRFWJ.js";import"./chunk-7CGTOI24.js";var U=["passwordInput"];function W(l,n){l&1&&(t(0,"sh-alert",6),I(1,4),i())}var f=new J,F=class l{#e=_(G);#n=_(j);rememberMe=B("rememberMe",!1,!0);failedLogin=s(!1);successLogin=s(!1);isLoading=s(!1);loginForm=f.group({pass:f.control("",R.required),rememberMe:f.control(this.rememberMe())});showPassword=s(!1);passwordInput=w("passwordInput");passwordEffect=N(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??!1),n&&(this.isLoading.set(!0),this.#n.login(n,this.rememberMe()).pipe(C(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=S({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&E(e.passwordInput,U,5),o&2&&M()},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let h;return h=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,h,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/configuration-and-management/duplicati-access-password#access-from-the-trayicon","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(t(0,"form",5),p("submit",function(){return e.submit()}),T(1,W,2,0,"sh-alert",6),t(2,"div",7),r(3,"app-logo"),i(),t(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),g(8,1),t(9,"a",11),r(10,"sh-icon"),i(),u(),i(),r(11,"input",12,0),t(13,"sh-icon",13),p("click",function(){return e.showPassword.set(!e.showPassword())}),P(14),i()(),t(15,"button",14),g(16,2),r(17,"sh-icon"),u(),i()(),t(18,"sh-checkbox",15),g(19,3),r(20,"input",16),u(),i(),t(21,"div",17),r(22,"label",18),i()()()),o&2&&(d("formGroup",e.loginForm),a(),L(e.failedLogin()&&!e.successLogin()?1:-1),a(10),d("type",e.showPassword()?"text":"password"),a(3),b(e.showPassword()?"eye":"eye-slash"),a(),O("loading",e.isLoading()))},dependencies:[X,v,D,y,$,A,x,k,Q,V,q,H,z,K],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"],changeDetection:0})};export{F as default};
package/chunk-PNQ5BDQN.js DELETED
@@ -1 +0,0 @@
1
- import{b as s}from"./chunk-6Q6SSTBK.js";import{W as c}from"./chunk-K5XGRFWJ.js";import{a as i}from"./chunk-7CGTOI24.js";var d=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,m=class n{generate(r,t=d){let a;do a=this.generatePassword(r,t);while(this.calculatePasswordStrength(a)<5);return a}generatePassword(r,t=d){return Array.apply(null,{length:r}).map(()=>{let a;for(;;)if(a=String.fromCharCode(s()),t.test(a))return a},this).join("")}calculatePasswordStrength(r){let t=1;return r.length>=8&&t++,r.match(/[a-z]/)&&r.match(/[A-Z]/)&&t++,r.match(/\d+/)&&t++,r.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"})};function y(n,r,t="conditional"){return a=>{if(!a.parent)return null;let e=null;if(n(a.parent)&&(e=(Array.isArray(r)?r:[r]).find(l=>l(a)!==null)??null),t&&e){let o={};o[t]=e,e=o}return e}}function F(){return n=>(n.parent&&Object.values(n.parent.controls).forEach(r=>{r!==n&&r.updateValueAndValidity()}),null)}function C(n,r,t,a="conditional"){return e=>{if(!e.parent)return null;let o={},l=e.parent.get(n);if(!l)return console.warn("Conditional field not found"),null;if(Array.isArray(r)?l.value?.includes(r):l.value===r){let f=Array.isArray(t)?t:[t];for(let A of f){let u=A(e),p=o||{};if(u!==null){o=i(i({},p),u);break}}}return o}}export{m as a,y as b,F as c,C as d};
package/chunk-PNRFCYAE.js DELETED
@@ -1,2 +0,0 @@
1
- import{b as j}from"./chunk-2KD757N6.js";import{B as X,v as U,y as W}from"./chunk-CJKZ27FM.js";import{d as z}from"./chunk-KNSQLQC6.js";import"./chunk-HDDAGHHE.js";import"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as E,Bb as D,Bc as J,Cb as x,Db as m,Eb as o,Fb as r,Gb as u,Nb as C,Qa as R,Ta as a,Ub as A,Vb as y,Wb as w,_b as S,ac as f,ea as p,fa as _,hb as v,oc as s,pc as I,q as O,qa as g,qc as h,rc as B,sa as F,tc as $,uc as k,vc as G,xb as M,yb as N,zb as P,zc as V}from"./chunk-K5XGRFWJ.js";import{a as T,b}from"./chunk-7CGTOI24.js";var q=()=>({maxWidth:"700px",width:"100%"});function H(l,n){if(l&1&&(o(0,"a",9)(1,"sh-icon"),s(2,"link"),r()()),l&2){let e=f().$implicit;m("href",V(e.Url),R)}}function K(l,n){if(l&1){let e=C();o(0,"div",2)(1,"h4"),s(2),M(3,H,3,2,"a",9),r(),o(4,"p"),s(5),u(6,"br"),o(7,"i"),s(8),r()(),o(9,"div",10)(10,"button",11),S("click",function(){let i=p(e).$implicit,c=f();return _(c.openLicense(i))}),A(11,1),u(12,"sh-icon"),y(),r()()()}if(l&2){let e=n.$implicit;a(2),B(" ",e.Title," - ",e.data==null?null:e.data.license," "),a(),N(e.Url?3:-1),a(2),h(" ",e.data==null?null:e.data.description," "),a(3),I(e.data==null?null:e.data.notes)}}var L=class l{#e=E(z);licenses=j(this.#e.getApiV1Licenses().pipe(O(n=>n.map(e=>b(T({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=g(!1);dialogLicense=g(null);#n=F(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(n){this.dialogLicense.set(n)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(n){let e=n.split(`
2
- `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=v({type:l,selectors:[["app-libraries"]],decls:14,vars:5,consts:()=>{let n;n=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`,[n,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["shButton","","type","button",3,"click"],[3,"href"],[1,"actions"],["shButton","",3,"click"]]},template:function(e,t){if(e&1){let i=C();o(0,"h3"),w(1,0),r(),D(2,K,13,5,"div",2,P),o(4,"sh-dialog",3),G("isOpenChange",function(d){return p(i),k(t.dialogIsOpen,d)||(t.dialogIsOpen=d),_(d)}),o(5,"header",4)(6,"h3"),s(7),r()(),o(8,"div",5)(9,"div",6),s(10),r()(),o(11,"footer",7)(12,"button",8),S("click",function(){return p(i),t.dialogLicense.set(null),_(t.dialogIsOpen.set(!1))}),s(13,"Close"),r()()()}if(e&2){let i,c;a(2),x(t.licenses()),a(2),$("isOpen",t.dialogIsOpen),m("options",J(4,q)),a(3),I((i=t.dialogLicense())==null?null:i.Title);let d=((c=t.dialogLicense())==null?null:c.License)??"";a(3),h(" ",d," ")}},dependencies:[U,X,W],styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-4)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-1);color:var(--base-12);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-4)}"],changeDetection:0})};export{L as default};
package/chunk-POVWDK74.js DELETED
@@ -1 +0,0 @@
1
- import{a as le}from"./chunk-E4CYVUYG.js";import"./chunk-6Q6SSTBK.js";import{a as ae}from"./chunk-COEGVUM3.js";import"./chunk-YS4B2B5N.js";import{c as re}from"./chunk-2KD757N6.js";import"./chunk-OP7MDR2B.js";import{a as _e}from"./chunk-PEOYNJJM.js";import"./chunk-NUV5LHQV.js";import"./chunk-PDZNQW6F.js";import{B as ne,D as ie,b as H,e as Q,i as Y,s as Z,v as ee,z as te}from"./chunk-CJKZ27FM.js";import{d as oe}from"./chunk-KNSQLQC6.js";import{d as j,e as q}from"./chunk-CQJRBQ6I.js";import"./chunk-V2UO7ES2.js";import"./chunk-HDDAGHHE.js";import"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as u,B as U,Bc as J,Cc as X,Db as f,Eb as i,Fb as o,G as I,Gc as z,Jc as V,Nb as N,Rc as M,Ta as r,Wb as c,Xb as A,Xc as W,Yb as L,Zb as F,_b as $,ac as C,ea as P,fa as T,hb as K,l as k,lc as x,oc as E,q as y,qa as p,tc as S,uc as D,vc as h,wc as G,xb as g,xc as w,yb as m,yc as v}from"./chunk-K5XGRFWJ.js";import"./chunk-7CGTOI24.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function Ee(l,_){if(l&1){let e=N();i(0,"section")(1,"h4"),c(2,4),o(),i(3,"p"),c(4,5),o(),i(5,"sh-checkbox",11),E(6," Delete local database "),i(7,"input",12),h("ngModelChange",function(t){P(e);let a=C();return D(a.deleteLocalDb,t)||(a.deleteLocalDb=t),T(t)}),o()()()}if(l&2){let e=C();r(7),S("ngModel",e.deleteLocalDb)}}function ue(l,_){if(l&1){let e=N();i(0,"section")(1,"h4"),c(2,6),o(),i(3,"p"),c(4,7),z(5,"bytes"),o(),i(6,"sh-checkbox",11),E(7," Delete remote files "),i(8,"input",12),h("ngModelChange",function(t){P(e);let a=C();return D(a.deleteRemoteFiles,t)||(a.deleteRemoteFiles=t),T(t)}),o()()()}if(l&2){let e=C(),n=v(0),t=(n==null||n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)??0;r(5),A(e.fileCount())(e.fileCount())(V(5,4,t,!0,!0)),L(4),r(3),S("ngModel",e.deleteRemoteFiles)}}var b=class l{#t=u(oe);#n=u(te);#e=u(le);#i=u(j);id=W.required();backup=M(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(y(()=>!0),U(()=>k(!1)))});fileCount=M(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=p(!1);deleteRemoteFiles=p(!1);isDeleting=p(!1);deleteBackup(){let _=this.id(),e=this.deleteLocalDb(),n=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#n.open(_e,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:t=>{t&&this.#e.deleteBackup({id:_,deleteLocalDb:e,deleteRemoteFiles:n}).pipe(I(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#i.navigate(["/"])}})}})}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=K({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Export configuration`;let n;n=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let t;t=$localize`Cancel`;let a;a=$localize`Delete local database`;let B;B=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let R;R=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=F(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let O;return O=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,e,n,t,a,B,R,O,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(e,n){if(e&1&&(G(0),i(1,"h3"),c(2,0),o(),g(3,Ee,8,1,"section"),i(4,"section")(5,"h4"),c(6,1),o(),i(7,"p"),c(8,2),o(),i(9,"button",8),E(10," Export configuration "),i(11,"sh-icon"),E(12,"caret-right"),o()()(),g(13,ue,9,8,"section"),i(14,"div",9)(15,"button",8),c(16,3),o(),i(17,"button",10),$("click",function(){return n.deleteBackup()}),E(18,"Delete backup"),o()()),e&2){let t=w(n.backup()),a=n.noLocalDbResource.value();r(2),A(t==null||t.Backup==null?null:t.Backup.Name),L(2),r(),m(a?3:-1),r(6),f("routerLink",X(8,ce,n.id())),r(4),m(a?13:-1),r(2),f("routerLink",J(10,se)),r(2),x("loading",n.isDeleting())}},dependencies:[ie,ne,ee,Z,H,Q,Y,q,ae],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"],changeDetection:0})};export{b as default};
package/chunk-QW23XWNE.js DELETED
@@ -1 +0,0 @@
1
- import{g}from"./chunk-6WX2UOAN.js";import"./chunk-VZNLMGYP.js";import{a as G}from"./chunk-EXAZ4QZR.js";import"./chunk-TWWAK5M6.js";import"./chunk-6DX35WDO.js";import"./chunk-35FMFK4I.js";import{q as b}from"./chunk-O2L2FRYE.js";import"./chunk-PNQ5BDQN.js";import"./chunk-2EX5HS5X.js";import"./chunk-EVEI25GQ.js";import"./chunk-UIVZWXBK.js";import"./chunk-E4CYVUYG.js";import"./chunk-BPHX6VXP.js";import"./chunk-XWML36YQ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-COEGVUM3.js";import"./chunk-YS4B2B5N.js";import"./chunk-KZYRTI62.js";import"./chunk-TSVSMVY4.js";import{b as u}from"./chunk-2KD757N6.js";import"./chunk-OP7MDR2B.js";import"./chunk-PEOYNJJM.js";import"./chunk-NUV5LHQV.js";import"./chunk-PDZNQW6F.js";import{R as v}from"./chunk-CJKZ27FM.js";import"./chunk-KNSQLQC6.js";import{a as h,b as y,c as I,d as W,e as $,f as A}from"./chunk-CQJRBQ6I.js";import"./chunk-V2UO7ES2.js";import"./chunk-HDDAGHHE.js";import"./chunk-YF6JHIN5.js";import"./chunk-2YUSBRXY.js";import{$ as p,Ac as F,Bc as E,Cc as m,Db as l,Eb as i,Fb as o,Gb as C,Ta as _,Wb as a,ac as T,hb as L,lc as M,qa as P,sa as N,xb as O,yb as S}from"./chunk-K5XGRFWJ.js";import"./chunk-7CGTOI24.js";var w=()=>["/restore-from-files/destination"],k=()=>["/restore-from-files/encryption"],x=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],D=t=>["/restore",t,"options"];function z(t,n){t&1&&(i(0,"div",7),a(1,0),o(),i(2,"div",7),a(3,1),o(),i(4,"div",8),a(5,2),o(),i(6,"div",8),a(7,3),o()),t&2&&(l("routerLink",E(4,w)),_(2),l("routerLink",E(5,k)),_(2),l("routerLink",E(6,x)),_(2),l("routerLink",E(7,J)))}function B(t,n){if(t&1&&(i(0,"div",7),a(1,4),o(),i(2,"div",7),a(3,5),o()),t&2){let e=T(2);l("routerLink",m(2,X,e.backupId())),_(2),l("routerLink",m(4,D,e.backupId()))}}function U(t,n){if(t&1&&(i(0,"sh-stepper",6),O(1,z,8,8)(2,B,4,6),o()),t&2){let e=T();_(),S(e.isFileRestore()?1:2)}}var f=class t{#e=p(y);#n=p(W);#t=p(g);#i=u(this.#e.params);#o=u(this.#e.url);#r=u(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=P(!1);paramsChanged=N(()=>{let n=this.#r(),e=this.#i()?.id,r=!!this.#o()?.find(s=>s.path==="restore-from-files"),d=!!n?.find(s=>s.path==="select-files"),R=!!n?.find(s=>s.path==="progress");this.isFullWidthPage.set(R||d),this.#t.init(e,r)});ngOnInit(){this.#n.events.subscribe(n=>{if(n instanceof h){let e=n.urlAfterRedirects;this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"))}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=L({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,r){e&2&&M("full-width",r.isFullWidthPage())},features:[F([g,b])],decls:4,vars:1,consts:()=>{let n;n=$localize` Destination `;let e;e=$localize` Encryption `;let r;r=$localize` Select files `;let d;d=$localize` Options `;let R;R=$localize` Select files `;let s;return s=$localize`Options`,[n,e,r,d,R,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,r){e&1&&(C(0,"app-status-bar"),O(1,U,3,1,"sh-stepper",6),i(2,"section"),C(3,"router-outlet"),o()),e&2&&(_(),S(r.isFullWidthPage()?-1:1))},dependencies:[v,G,I,$,A],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})};export{f as default};