@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duplicati/ngclient",
3
- "version": "0.0.233",
3
+ "version": "0.0.235",
4
4
  "license": "MIT",
5
5
  "contributors": [
6
6
  "sp90",
@@ -1,6 +0,0 @@
1
- <svg width="71" height="40" viewBox="0 0 71 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="4.40001" height="4.39988" transform="matrix(4.37114e-08 1 1 -4.37114e-08 65.9334 0)" fill="#C3E500"/>
3
- <rect width="4.40001" height="4.39988" transform="matrix(4.37114e-08 1 1 -4.37114e-08 61.5335 0)" fill="#E50AAE"/>
4
- <rect width="4.40001" height="4.39988" transform="matrix(4.37114e-08 1 1 -4.37114e-08 65.9334 4.39998)" fill="#36D955"/>
5
- <path d="M30.8816 40H37.7877V35.8449H30.8816V40ZM19.3714 40H26.2775V35.8449H19.3714V40ZM56.8227 40H61.4268V35.8449H56.8227V40ZM42.3924 40H52.2186V35.8449H42.3924V40ZM0.449596 40H14.7674V35.8449H0.44896V40H0.449596ZM26.502 7.26534H30.6571V0.134766H26.502V7.26534ZM53.6215 23.9977H52.218V35.8449H56.8221V18.944C56.878 14.733 53.8459 11.9254 49.2419 11.9254H38.1247V15.9679H48.5684C50.9264 15.912 52.4425 17.091 52.4425 19C52.3865 21.0775 51.095 21.8635 47.6699 22.9866L44.6378 23.9971C39.8093 25.569 37.7877 28.3207 37.7877 32.1387V35.8443H42.3917V32.8681C42.3917 30.285 43.4022 29.1626 46.8273 27.8145L49.8594 26.6355C51.3194 26.074 52.667 25.3439 53.6215 23.9964V23.9977ZM26.2769 35.8449H30.8809V11.9254H26.2769V35.8449ZM14.7667 35.8449H19.3708V31.9709C19.3708 28.0968 17.2932 25.6822 12.1836 23.9977L9.15154 22.9872C5.78243 21.8642 4.43491 21.1907 4.43491 18.9447C4.43491 17.2041 6.0635 15.9686 8.14042 15.9686H19.0331V11.926H7.46762C3.14399 11.926 0 14.5651 0 18.8887C0 23.2123 2.30203 25.2899 6.9627 26.8619L9.99477 27.8724C14.1499 29.2758 14.7674 30.1744 14.7674 32.8694V35.8455L14.7667 35.8449Z" fill="#1D2609"/>
6
- </svg>
package/chunk-AuCOjHXM.js DELETED
@@ -1 +0,0 @@
1
- import {a as at}from'./chunk-MDqH8T3Z.js';import {C}from'./chunk-mflQLMHH.js';import {O}from'./chunk-CuJ_uEdr.js';import {T as T$1,e as ee,G as Ge,z as za,h as hw,v,a0 as de,c as N,Q as Qi,H as Hg,n as nC,$ as $l,a1 as dT,p as lm,s as jC,i as Ig,C as CE,a2 as fT,w as cm,y as vg,L as Kg,a3 as KC,a4 as uT,U as UC,K as im}from'./main-3NL5M6JB.js';import {U}from'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var D=()=>({maxWidth:"520px",width:"100%"});function z(r,i){if(r&1&&(Qi(0,"div",11)(1,"sh-icon",26),jC(2,"check-circle"),$l(),Qi(3,"span"),jC(4),$l()()),r&2){let o=i.$implicit;CE(4),im(o);}}function J(r,i){if(r&1&&(Qi(0,"div",11)(1,"sh-icon",26),jC(2,"check-circle"),$l(),Qi(3,"span"),jC(4),$l()()),r&2){let o=i.$implicit;CE(4),im(o);}}var T=class r{#n=T$1(O);#e=T$1(ee);#t=T$1(C);hoveringConnect=Ge(false);skipDialogOpen=Ge(false);hasConnectionLink=Ge(false);primaryBenefits=[$localize`Zero-configuration cloud storage`,$localize`Centralized backup reporting and monitoring`,$localize`Remote management from the dashboard`,$localize`Notifications if backups stop running`];secondaryBenefits=[$localize`Get notified if your backups stop working`,$localize`Access AI powered troubleshooting`,$localize`View all backups from one place`];#i=za(()=>{let i=this.#t.state();i=="unknown"||i=="inactive"||this.setWelcomeShown();});setWelcomeShown(){this.#n.setShownWelcomePage().subscribe(()=>{this.#e.navigate([""]);});}openSkipDialog(){this.skipDialogOpen.set(true);}connect(){let i=this.hasConnectionLink()?"/welcome/connect/link":"/welcome/connect/logon";this.#e.navigate([i]);}static \u0275fac=function(o){return new(o||r)};static \u0275cmp=hw({type:r,selectors:[["app-select"]],decls:36,vars:7,consts:()=>{let i;i=$localize`Proceed without connecting to console`;let o;o=$localize`Connect to console`;let n;n=$localize`Consolidate all your backup reports in one place.`;let l;l=$localize`I have a connection link`;let c;c=$localize`Are you sure?`;let O;O=$localize`Cancel`;let b;return b=$localize`Proceed without connecting`,[i,o,n,l,c,O,b,[1,"left"],[1,"actionables"],[1,"without-connecting",3,"click"],[1,"benefits"],[1,"benefit"],["shButton","",1,"connect","outlined","primary",3,"mouseenter","mouseleave","click"],[1,"action"],[1,"connection-link-label"],[1,"primary","raised","connection-link-check",3,"checkedChange","checked"],[3,"shTooltip"],[1,"right"],["src","assets/images/console.avif","alt",""],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"dialog-benefits-header"],[1,"dialog-benefits"],["footer",""],["type","button","shButton","",1,"outlined",3,"click"],[1,"primary"]]},template:function(o,n){o&1&&(Qi(0,"section",7)(1,"div",8)(2,"div",9),Hg("click",function(){return n.openSkipDialog()}),nC(3,0),$l(),Qi(4,"div",10),dT(5,z,5,1,"div",11,uT),$l(),Qi(7,"button",12),Hg("mouseenter",function(){return n.hoveringConnect.set(true)})("mouseleave",function(){return n.hoveringConnect.set(false)})("click",function(){return n.connect()}),Qi(8,"div",13)(9,"h2"),nC(10,1),$l(),Qi(11,"p"),nC(12,2),$l()()(),Qi(13,"div",14)(14,"sh-checkbox",15),lm("checkedChange",function(c){return UC(n.hasConnectionLink,c)||(n.hasConnectionLink=c),c}),$l(),Qi(15,"span"),nC(16,3),$l(),Qi(17,"sh-icon",16),jC(18," information "),$l()()()(),Qi(19,"section",17),Ig(20,"img",18),$l(),Qi(21,"sh-dialog",19),lm("isOpenChange",function(c){return UC(n.skipDialogOpen,c)||(n.skipDialogOpen=c),c}),Qi(22,"header",20)(23,"h3"),nC(24,4),$l()(),Qi(25,"div",21)(26,"h4",22),jC(27," You can use Duplicati without a Console connection, but connecting to the Console will expand the capabilities of Duplicati. "),$l(),Qi(28,"div",23),dT(29,J,5,1,"div",11,uT),$l()(),Qi(31,"footer",24)(32,"button",25),Hg("click",function(){return n.skipDialogOpen.set(false)}),nC(33,5),$l(),Qi(34,"button",25),Hg("click",function(){return n.setWelcomeShown()}),nC(35,6),$l()()()),o&2&&(CE(5),fT(n.primaryBenefits),CE(9),cm("checked",n.hasConnectionLink),CE(3),vg("shTooltip","Connection links are used for Enterprise and large-scale installations"),CE(2),Kg("hovering",n.hoveringConnect()),CE(2),cm("isOpen",n.skipDialogOpen),vg("options",KC(6,D)),CE(8),fT(n.secondaryBenefits));},dependencies:[v,U,de,N,at],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;height:100vh;overflow:hidden;padding:2rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{display:flex;flex-direction:column-reverse;height:auto;padding:4rem 1rem;gap:2rem}}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%]{align-items:flex-start}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem}@media only screen and (max-width:768px){.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%]{width:100%}}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] sh-divider[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem 0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;color:var(--base-11)}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.left[_ngcontent-%COMP%] .actionables[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 2rem 0}.right.hovering[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-color:var(--primary-8)}.right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:90%;max-height:90%;object-fit:contain;border:1px solid var(--base-3);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20);transition:border-color .2s ease-in-out}.connect[_ngcontent-%COMP%]{height:auto;padding:2rem}.without-connecting[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer;margin:0}.without-connecting[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.dialog-benefits-header[_ngcontent-%COMP%]{margin-bottom:1rem}.dialog-benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem;color:var(--base-11)}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.dialog-benefits[_ngcontent-%COMP%] .benefit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem}.connection-link-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem}"]})};export{T as default};
package/chunk-B1wZ4poV.js DELETED
@@ -1 +0,0 @@
1
- import {G}from'./chunk-DV8bRznt.js';import {w as w$1}from'./chunk-C9OqpwwE.js';import'./chunk-I5dxaHZ4.js';import {e as ee$1}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.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 {T,aw as W,e as ee,G as Ge,z as za,b9 as k$1,h as hw,Z as lr,_ as _t,a8 as To,i as Ig,d as aT,Q as Qi,$ as $l,C as CE,g as cT,aD as YC,L as Kg,k as iC,n as nC,y as vg,a3 as KC,a$ as JC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.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&&(Qi(0,"div",7),nC(1,0),$l(),Qi(2,"div",7),nC(3,1),$l(),Qi(4,"div",8),nC(5,2),$l(),Qi(6,"div",8),nC(7,3),$l()),t&2&&(vg("routerLink",KC(4,w)),CE(2),vg("routerLink",KC(5,k)),CE(2),vg("routerLink",KC(6,x)),CE(2),vg("routerLink",KC(7,J)));}function B(t,n){if(t&1&&(Qi(0,"div",7),nC(1,4),$l(),Qi(2,"div",7),nC(3,5),$l()),t&2){let e=iC(2);vg("routerLink",JC(2,X,e.backupId())),CE(2),vg("routerLink",JC(4,D,e.backupId()));}}function U(t,n){if(t&1&&(Qi(0,"sh-stepper",6),aT(1,z,8,8)(2,B,4,6),$l()),t&2){let e=iC();CE(),cT(e.isFileRestore()?1:2);}}var f=class t{#e=T(W);#n=T(ee);#t=T(G);#i=L(this.#e.params);#o=L(this.#e.url);#r=L(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=Ge(false);paramsChanged=za(()=>{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 k$1){let e=n.urlAfterRedirects;this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"));}});}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,r){e&2&&Kg("full-width",r.isFullWidthPage());},features:[YC([G,Ve])],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&&(Ig(0,"app-status-bar"),aT(1,U,3,1,"sh-stepper",6),Qi(2,"section"),Ig(3,"router-outlet"),$l()),e&2&&(CE(),cT(r.isFullWidthPage()?-1:1));},dependencies:[w$1,ee$1,lr,_t,To],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}"]})};export{f as default};
package/chunk-B5Y6lgE8.js DELETED
@@ -1 +0,0 @@
1
- import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,at as h,J as zu,h as hw,v,c as N,_ as _t,aH as m,ak as dm,Q as Qi,n as nC,$ as $l,d as aT,s as jC,H as Hg,al as WC,C as CE,au as Vg,av as rC,g as cT,y as vg,a$ as JC,a3 as KC,L as Kg,o as oC,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,r as CD,w as cm,x as _D,aM as ob,ao as qC,aS as cb,aG as pt,b0 as Hs,b1 as iy}from'./main-3NL5M6JB.js';import {B as Bn,y as yt,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';import {U}from'./chunk-D1pDZLJ9.js';var Ee=l=>["/backup",l,"export"],ue=()=>["/"];function Ce(l,_){if(l&1){let e=vT();Qi(0,"section")(1,"h4"),nC(2,4),$l(),Qi(3,"p"),nC(4,5),$l(),Qi(5,"sh-checkbox",11),jC(6," Delete local database "),Qi(7,"input",12),lm("ngModelChange",function(t){Od(e);let a=iC();return UC(a.deleteLocalDb,t)||(a.deleteLocalDb=t),Pd(t)}),$l(),CD(),$l()();}if(l&2){let e=iC();CE(7),cm("ngModel",e.deleteLocalDb),_D();}}function de(l,_){if(l&1){let e=vT();Qi(0,"section")(1,"h4"),nC(2,6),$l(),Qi(3,"p"),nC(4,7),ob(5,"bytes"),$l(),Qi(6,"sh-checkbox",11),jC(7," Delete remote files "),Qi(8,"input",12),lm("ngModelChange",function(t){Od(e);let a=iC();return UC(a.deleteRemoteFiles,t)||(a.deleteRemoteFiles=t),Pd(t)}),$l(),CD(),$l()();}if(l&2){let e=iC(),t=qC(0)?.Backup?.Metadata?.TargetFilesSize??0;CE(5),Vg(e.fileCount())(e.fileCount())(cb(5,4,t,true,true)),rC(4),CE(3),cm("ngModel",e.deleteRemoteFiles),_D();}}var R=class l{#t=T(C);#n=T(be);#e=T(g);#o=T(ee);id=E1.required();backup=Nt(()=>this.#e.getBackupById(this.id()));noLocalDbResource=$({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(pt(()=>true),Hs(()=>iy(false)))});fileCount=Nt(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=Ge(false);deleteRemoteFiles=Ge(false);isDeleting=Ge(false);deleteBackup(){let _=this.id(),e=this.deleteLocalDb(),i=this.deleteRemoteFiles();this.isDeleting.set(true),this.#n.open(h,{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:i}).pipe(zu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#o.navigate(["/"]);}});}});}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=hw({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 i;i=$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 O;O=$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 y;y=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=oC(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let k;return k=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,e,i,t,a,O,y,k,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(e,i){if(e&1&&(dm(0),Qi(1,"h3"),nC(2,0),$l(),aT(3,Ce,8,1,"section"),Qi(4,"section")(5,"h4"),nC(6,1),$l(),Qi(7,"p"),nC(8,2),$l(),Qi(9,"button",8),jC(10," Export configuration "),Qi(11,"sh-icon"),jC(12,"caret-right"),$l()()(),aT(13,de,9,8,"section"),Qi(14,"div",9)(15,"button",8),nC(16,3),$l(),Qi(17,"button",10),Hg("click",function(){return i.deleteBackup()}),jC(18,"Delete backup"),$l()()),e&2){let t=WC(i.backup()),a=i.noLocalDbResource.value();CE(2),Vg(t?.Backup?.Name),rC(2),CE(),cT(a?3:-1),CE(6),vg("routerLink",JC(8,Ee,i.id())),CE(4),cT(a?13:-1),CE(2),vg("routerLink",KC(10,ue)),CE(2),Kg("loading",i.isDeleting());}},dependencies:[U,v,N,Bn,yt,Rn,Jt,_t,m],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}"]})};export{R as default};
package/chunk-BZgAzrl9.js DELETED
@@ -1,2 +0,0 @@
1
- import {J}from'./chunk-aCJqF9DH.js';import {c}from'./chunk-DXEgz1tV.js';import {E as Ee,L as Le}from'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {T,ab as C,m,a6 as be,E as E1,ac as I1,G as Ge,D as w1,N as Nt$1,ai as m$1,aj as l,z as za,at as h,aG as pt$1,b0 as Hs,b1 as iy,bK as wy,J as zu,h as hw,v,c as N,a0 as de,bZ as ei,u as ue,aH as m$2,S as aC,d as aT,Q as Qi,Y as cC,bi as cg,$ as $l,c3 as pC,g as cT,C as CE,L as Kg,y as vg,a$ as JC,M as qg,R as fC,p as lm,U as UC,r as CD,aC as yg,w as cm,x as _D,ag as Yg,aD as YC,n as nC,aP as ql,a1 as dT,aQ as Gl,au as Vg,av as rC,a2 as fT,c4 as $s,ay as Qu,l as vT,O as Od,k as iC,P as Pd,i as Ig,b_ as wg,H as Hg,s as jC,K as im,F as Fg,j as jg,a3 as KC,aB as sm,ap as lT,aM as ob,aa as Ql,aS as cb,aF as XC,ar as Zp,c5 as lb}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';function Tt(r){let t=r.replace(/^@/,""),e=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return t=t.replace(e,(n,i,o)=>`(${o})`),t.replace(/\\/g,"\\\\")}function dt(r,t){let e=Tt(t),n=e.startsWith("^")&&e.endsWith("$")?e:`^(${e})$`;return new RegExp(n).test(r)}function Se(r,t){let e=t.replace(/[\\.+^${}()|[\]*?]/g,n=>n==="*"?".*":n==="?"?".":"\\"+n);return new RegExp(`^${e}$`).test(r)}var Et=["treeContainer"],bt=["formRef"],St=[[["label"]],[["label"]],[["input"]]],Nt=["label","label","input"],ut=["ngProjectAs","label",5,["label"]],vt=["ngProjectAs","input",5,["input"]],Ot=r=>({children:r,level:0}),_t=r=>({$implicit:r}),Ft=(r,t)=>({children:r,level:t}),xt=()=>({maxWidth:"700px",width:"100%"}),Rt=(r,t)=>t.id;function Dt(r,t){if(r&1){let e=vT();Qi(0,"sh-button-group",22),lm("valueChange",function(i){Od(e);let o=iC();return UC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),Pd(i)}),Qi(1,"button",23),nC(2,4),$l(),Qi(3,"button",24),nC(4,5),$l()();}if(r&2){let e=iC();cm("value",e.pathDiscoveryMethod);}}function wt(r,t){r&1&&Ig(0,"sh-progress-bar",14);}function It(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"spinner"),$l());}function Lt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"arrow-down"),$l());}function At(r,t){if(r&1){let e=vT();Qi(0,"div",26),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.loadMore(i,o))}),Qi(1,"div",27),Ig(2,"sh-icon",28),aT(3,It,2,0,"sh-icon",29)(4,Lt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l()()();}if(r&2){let e=iC().$implicit,n=iC(2);Kg("loading",n.isLoading()===e.id),CE(3),cT(n.isLoading()===e.id?3:4),CE(4),im(e.text);}}function kt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-down"),$l());}function Bt(r,t){r&1&&Ig(0,"sh-icon",28);}function $t(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"spinner"),$l());}function Wt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-right"),$l());}function Vt(r,t){if(r&1&&Ig(0,"img",34),r&2){let e=iC(3).$implicit;vg("src",e.customIcon,Zp);}}function Gt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-open"),$l());}function zt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-user"),$l());}function jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"file"),$l());}function Ht(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder"),$l());}function Ut(r,t){if(r&1&&(aT(0,kt,2,0,"sh-icon",28)(1,Bt,1,0,"sh-icon",28)(2,$t,2,0,"sh-icon",28)(3,Wt,2,0,"sh-icon",28),aT(4,Vt,1,1,"img",34)(5,Gt,2,0,"sh-icon",29)(6,zt,2,0,"sh-icon",29)(7,jt,2,0,"sh-icon",29)(8,Ht,2,0,"sh-icon",29)),r&2){let e=iC(2).$implicit,n=iC(2);cT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),CE(4),cT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"desktop-tower"),$l());}function Xt(r,t){if(r&1&&(Qi(0,"span",33),jC(1),ob(2,"bytes"),$l()),r&2){let e=iC(2).$implicit;CE(),Ql("\xA0(",cb(2,1,e.fileSize,true,true),")");}}function qt(r,t){r&1&&wg(0);}function Kt(r,t){if(r&1&&cg(0,qt,1,0,"ng-container",15),r&2){let e=iC(2).$implicit,n=iC().$implicit;iC();let i=pC(7);vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,_t,XC(2,Ft,e.children,n.level+1)));}}function Qt(r,t){if(r&1){let e=vT();Qi(0,"div",31,3),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleSelectedNode(i,o))}),Qi(2,"div",32),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleNode(i,o.id,o))}),aT(3,Ut,9,2)(4,Jt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l(),aT(8,Xt,3,5,"span",33),$l()(),aT(9,Kt,1,7,"ng-container");}if(r&2){let e=iC().$implicit,n=iC().$implicit,i=iC();Kg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),CE(2),Kg("file",e.cls==="file"),CE(),cT(e.id!=="/"?3:4),CE(4),im(e.text),CE(),cT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),CE(),cT(e.children.length>0?9:-1);}}function Yt(r,t){if(r&1&&aT(0,At,8,4,"div",25)(1,Qt,10,24),r&2){let e=t.$implicit,n=iC(2);cT(e.isLoadMore?0:e.hidden&&n._showHiddenNodes()||!e.hidden?1:-1);}}function Zt(r,t){if(r&1&&(Qi(0,"sh-list"),dT(1,Yt,2,1,null,null,Rt),$l()),r&2){let e=t.$implicit;Yg("padding-left",e.level*.25,"rem"),CE(),fT(e.children);}}function en(r,t){r&1&&wg(0);}function tn(r,t){if(r&1){let e=vT();Qi(0,"sh-toggle",35),lm("checkedChange",function(i){Od(e);let o=iC();return UC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),Pd(i)}),nC(1,6),$l();}if(r&2){let e=iC();cm("checked",e._showHiddenNodes),CE(),Vg(e.showFiles()?"files":"folders"),rC(1);}}function nn(r,t){if(r&1){let e=vT();Qi(0,"button",36),Hg("click",function(){Od(e);let i=iC();return Pd(i.openCreateFolderDialog())}),nC(1,7),$l();}if(r&2){let e=iC();vg("disabled",!e.isCurrentPathFolder());}}function on(r,t){if(r&1&&(Qi(0,"sh-alert",20),jC(1),$l()),r&2){let e=iC();vg("color","error"),CE(),im(e.errorMessage());}}function rn(r,t){if(r&1){let e=vT();Qi(0,"sh-dialog",37),lm("isOpenChange",function(i){Od(e);let o=iC();return UC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),Pd(i)}),Qi(1,"header",38)(2,"h2"),nC(3,8),$l()(),Qi(4,"div",39)(5,"div",40)(6,"p"),nC(7,9),$l(),Qi(8,"div",41)(9,"pre"),jC(10),$l()()(),Qi(11,"sh-form-field")(12,"textarea",42),lm("ngModelChange",function(i){Od(e);let o=iC();return UC(o.createFolderPath,i)||(o.createFolderPath=i),Pd(i)}),$l(),CD(),$l()(),Qi(13,"footer",43)(14,"button",44),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(false))}),jC(15,"Cancel"),$l(),Qi(16,"button",45),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(true))}),Fg(17,10),Ig(18,"sh-icon"),jg(),$l()()();}if(r&2){let e=iC();cm("isOpen",e.createFolderDialogOpen),vg("options",KC(6,xt)),CE(10),sm("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),CE(2),cm("ngModel",e.createFolderPath),_D(),CE(4),vg("disabled",!e.createFolderPath()?.length);}}var ft=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(ft||{}),E="/",pt="\0load-more",ie=true,Ne=class r{#e=T(C);#t=T(m);#E=T(be);multiSelect=E1(false);disabled=E1(false);showFiles=E1(false);selectFiles=E1(false);onlySelectFolder=E1(false);accepts=E1(null);startingPath=E1(null);rootPaths=E1([]);initialNodes=E1([]);backupSettings=E1(null);pathRefreshTrigger=E1(false);showHiddenNodes=E1(false);enableCreateFolder=E1(false);hideShortcuts=E1(false);resolvePaths=E1(false);customRemoteMode=E1(null);showUnrootedSources=E1(false);backupId=E1("");connectionStringId=E1(null);sourcePrefix=E1("");destinationUrl=E1("");loadExtendedData=E1(true);hasExtendedData=I1();searchMode=E1(false);searchResults=E1([]);_showHiddenNodes=Ge(false);createFolderDialogOpen=Ge(false);createFolderPath=Ge(null);errorMessage=Ge(null);anyRemoteSourcesLoaded=Ge(false);treeContainerRef=w1("treeContainer");formRef=w1("formRef");pathDiscoveryMethod=Ge("browse");isLoading=Ge(null);currentPath=Ge("");#p=Ge(null);treeSearchQuery=Ge("");treeNodes=Ge([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==E));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#c(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],l=e[2]??"";return o==="diskimage"&&!l&&(l=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:l}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[E]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#c(n);return i?{id:n,path:i.mount,displayName:Le(i.url),icon:Ee(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#d(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#c(e);return n?this.#s(n.mount):e})}TreeEvalEnum=ft;#b=Nt$1(()=>{if(!this.#r())return null;let t=this.#d(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().filter(o=>!o.isLoadMore).map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#b()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?iy(null):$s(300).pipe(Qu(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt$1(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Hs(()=>iy(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let s of t){let a=s.Path??"",m=this.#a(a),P=a.split(m).filter(O=>O!==""),y="";for(let O=0;O<P.length;O++){let b=P[O],I=O===P.length-1,U=!I||this.#n(a),Pt=y||E,ve=y?y.endsWith(m)?y.slice(0,-m.length):y:"";if(y=ve?`${ve}${m}${b}`:`${m}${b}`,U&&!y.endsWith(m)&&(y+=m),!i.has(y))i.set(y,{part:b,parentPath:Pt,isFolder:U,match:I?s:null});else if(I){let yt=i.get(y);yt.match=s;}}}let o=new Map;for(let[s,a]of i)o.has(a.parentPath)||o.set(a.parentPath,[]),o.get(a.parentPath).push(s);let l=new Set,d=new Map;for(let[s,a]of i){if(!a.isFolder){l.add(s);continue}let m=o.get(a.parentPath)||[];if(m.length===1&&m[0]===s&&a.parentPath!==E)continue;l.add(s);let y=a.part,O=s;for(;;){let b=o.get(O)||[];if(b.length!==1)break;let I=b[0],U=i.get(I);if(!U||!U.isFolder)break;y+="/"+U.part,O=I;}O!==s&&d.set(s,y);}l.add(E);let c=[],p=new Map,u=Array.from(l).filter(s=>s!==E).sort((s,a)=>s.split("/").length-a.split("/").length||s.localeCompare(a));for(let s of u){let a=i.get(s);if(!a)continue;let m=a.parentPath;for(;m!==E&&!l.has(m);)m=i.get(m)?.parentPath||E;if(p.has(s))continue;let P=this.#g(d.get(s),a.match?.Metadata)??a.part,y=a.match===null,O=a.match!==null&&!a.isFolder&&n?0:this.#r()?this.#h(s,null,e,a.isFolder?"folder":"file"):this.#u(e,s,a.isFolder?"folder":"file",null),b={id:s,resolvedpath:s,text:P,parentPath:m,children:[],evalState:O,isIndeterminate:this.isIndeterminate(e,s),cls:a.isFolder?"folder":"file",isSearchMatch:a.match!==null,isGenerated:y,hasChildrenInSearch:(o.get(s)?.length||0)>0,iconCls:null,check:false,leaf:!a.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:a.match?.Size??0};if(p.set(s,b),m===E)c.push(b);else {let I=p.get(m);I&&I.children.push(b);}}let M=s=>{s.sort((a,m)=>a.cls==="folder"&&m.cls!=="folder"?-1:a.cls!=="folder"&&m.cls==="folder"?1:(a.text??"").localeCompare(m.text??"")),s.forEach(a=>M(a.children));};return M(c),c});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#S(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),l$1=this.accepts(),d=[];o.length>0?d=o.map(p=>{let u=this.#r()?this.#h(p,null,n,"folder"):this.#u(n,p,"folder",null);return {id:p,resolvedpath:p,text:p,parentPath:"",children:[],evalState:u,isIndeterminate:false,cls:this.#n(p)?"folder":"file"}}):d=[{id:E,resolvedpath:E,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let c=this.#m().map(p=>({id:p.path,resolvedpath:p.path,remoteSource:this.#c(p.id),text:p.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:p.icon}));return d=[...d,...c],d.map(p=>{let u=new Map;if(!p.id)return;let M=p.id;l$1&&(p.accepted=true),u.set(M,p);let s=o.length>0?i.filter(a=>a.parentPath.startsWith(M)):i;for(let a of s){if(!a.id)continue;let m=a.id;if(!a.cls||u.has(m))continue;let P=u.get(a.parentPath),y=a.isLoadMore===true,O=y||a.hidden===true&&!e?0:this.#r()?this.#h(m,P,n,a.cls):this.#u(n,m,a.cls,P),b=m$1(l({},a),{isIndeterminate:y?false:this.isIndeterminate(n,m),evalState:O,children:[]});y?b.accepted=true:l$1&&(b.accepted=this.matchAccepts(l$1,b)),u.set(m,b),b.id?.startsWith("%")&&b.id?.endsWith("%")&&u.set(this.#s(m),b),P&&P.children.push(b);}return p}),d});#S(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let l=o.slice(1,-1),d=this.filterGroups?.FilterGroups?.[l];if(d&&d.length){let c=d.map(p=>`-${p}`);e.splice(n,1,...c);}}}return e}#s(t){if(!t)return E;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===E?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#u(n,t,i,e)}#u(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,l=this.#d(t.filter(u=>!this.#i(u))),d=t.filter(u=>this.#i(u)),c=this.multiSelect(),p=this.#f(this.treeNodes().find(u=>u.id===e))??e;if(l.length===0)return o;for(let u=0;u<l.length;u++){let M=l[u];if(e===M||p==M){o=1;break}if(!c||!this.#n(M))continue;if(e?.startsWith(M)||p?.startsWith(M)){o=1;break}}if(d.length===0)return o;for(let u=0;u<d.length;u++){let M=d[u],s=M.slice(1),a=M.startsWith("-")?-1:1;if(this.#n(s)){if(n!=="folder")continue;if(e===s||p==s){o=a;break}}if(s.startsWith("*")&&(s.endsWith("*\\")||s.endsWith("*/"))){if(n!=="folder")continue;let P=s.slice(1,-2);if(P==="")break;if(e?.includes(P+"\\")||e?.includes(P+"/")){o=a;break}}if(s.startsWith("[.*")&&(s.endsWith("[^\\/]*]")||s.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let P=s.slice(3,-7);if(new RegExp(P).test(e)){o=a;break}}if(s.startsWith("[")&&s.endsWith("]")){let P=s.slice(1,-1);if(dt(e,P)){o=a;break}}if(s.startsWith("*.")){if(n!=="file"||s.replace("*.","").length===0)continue;if(Se(e,s)){o=a;break}}if(s==="")continue;if(s===e){o=a;break}if(Se(e,s)){o=a;break}}return o}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=za(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=za(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===E)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=za(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=za(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#N(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#F(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#l(null,e[0])):this.#l(null,E);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?E:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.isLoadMore||e.id===E||this.#m().map(u=>this.#c(u.id)?.mount).filter(u=>u).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#d(i),l=this.isChildOfSelected(e),d=this.#f(e),c=l?`-${d}`:d,p=this.#n(d);if(this.multiSelect())if(o.includes(d))this.currentPath.set(i.filter(u=>u!==d&&!(p&&u.startsWith(c))).join("\0"));else if(o.some(u=>u==c))this.currentPath.set(i.filter(u=>u!==c).join("\0"));else {let u=p?i.filter(M=>!M.startsWith(d)):i;this.currentPath.set([...u,c].join("\0"));}else i.includes(d)?this.currentPath.set(i.filter(u=>u!==d).join("\0")):this.currentPath.set(d);}isChildOfSelected(t){return this.#d(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#l(n,e));}loadMore(t,e){t.stopPropagation(),e.isLoadMore&&this.isLoading()===null&&this.#l(e,e.parentPath||E,e.loadMoreOffset??null);}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#l(null,n),setTimeout(()=>{this.#C();},500),this.createFolderDialogOpen.set(false);},error:d=>{let c=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),p=c?c[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#E.open(h,{data:{title:$localize`Cannot create folder`,message:p,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#C(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#N(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#v(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n,i=null){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:i,Limit:100}}).pipe(pt$1(o=>{let l$1=o.Data?.Items??[];return {items:l$1.map(c=>m$1(l({},c),{Path:(e?.prefix??"")+c.Path})).filter(c=>c.Metadata==null||!c.Metadata.ExtType),hasMore:o.Data?.HasMore??false,nextOffset:(o.Data?.Offset??i??0)+l$1.length}}))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#P(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#y(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt$1(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#O(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt$1(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt$1(i=>i.Files??[]))}}#T(t,e,n=null){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#P(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#P(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#y(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#y(t):this.isByBackupSettings()?this.#O(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend",n):this.#v(t)}#F(t){let n=t.split("\0").filter(l=>!this.#i(l)&&!l.startsWith("@")).filter(Boolean).map(l=>{let d=this.#a(l),c=l.split(d);return c.at(-1)===""&&c.pop(),this.#n(l)||c.pop(),{split:c,sep:d}}),i=[E];n.forEach(({split:l,sep:d})=>{l.forEach((c,p)=>{let u=l.slice(0,p+1).join(d)+d;u===""||u===d||i.includes(u)||i.push(u);});});let o=i.map(l=>(this.isLoading.set(l),this.#T(l,null).pipe(pt$1(d=>({status:"success",value:d,url:l})),Hs(d=>iy({status:"error",value:d,url:l})))));wy(o).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:l$1=>{let d=l$1.filter(p=>p.status==="success");l$1.filter(p=>p.status==="error");this.treeNodes.update(p=>{let u=d.flatMap(s=>(Array.isArray(s.value)?s.value:s.value?.items??[]).map(m=>m$1(l({},m),{parentPath:s.url})));u.length>0&&this.anyRemoteSourcesLoaded.set(true);let M=[...new Map([...p,...u].map(s=>[s.id,s])).values()];return this.#C(),this.hideShortcuts()?M.filter(s=>!s.id.startsWith("%")):M});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0?this.hasExtendedData.emit(t.ExtType):t&&t["diskimage:Type"]&&t["diskimage:Type"].length>0&&this.hasExtendedData.emit("diskimage");}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#R(t,e,n){return {id:`${t}${pt}`,text:$localize`Load more`,cls:"load-more",leaf:true,hidden:false,parentPath:t,remoteSource:e??void 0,isLoadMore:true,loadMoreOffset:n}}#l(t=null,e=E,n=null){let i=t?.remoteSource;this.isLoading.set(t?.isLoadMore?t.id??e:e),this.#T(e,i,n).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:o=>{let l$1=Array.isArray(o)?{items:o,hasMore:false,nextOffset:0}:{items:o?.items??[],hasMore:o?.hasMore??false,nextOffset:o?.nextOffset??0},d=this.isByBackupSettings()||this.customRemoteMode()!==null||i?l$1.items.map(c=>{this.#x(c.Metadata);let p=this.#a(c.Path),u=this.#g(c.Path.split(p).filter(P=>P!=="").pop(),c.Metadata),M=c.Path,s=null,a=this.#n(c.Path)?"folder":"file",m=c.Metadata;return i&&(M=c.Path.substring(1),s=m$1(l({},i),{path:c.Path.substring(i.prefix.length)})),m&&(m["diskimage:Type"]==="geometry"||m["diskimage:Type"]==="partitioninfo"||m["diskimage:Type"]==="filesystem")?null:{text:u,id:M,cls:a,leaf:t!==null,resolvedpath:c.Path,hidden:false,remoteSource:s,fileSize:c.Size}}):l$1.items;d.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(c=>{let p=d.filter(a=>a!==null).map(a=>{let m=a.cls??(this.#n(a.id)?"folder":"file");return m$1(l({},a),{cls:m,parentPath:e})}),u=`${e}${pt}`,M=[...c,...p].filter(a=>a.id!==u);l$1.hasMore&&M.push(this.#R(e,i,l$1.nextOffset));let s=[...new Map(M.map(a=>[a.id,a])).values()];return this.hideShortcuts()?s.filter(a=>!a.id.startsWith("%")):s});},error:o=>{this.errorMessage.set(o.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&qg(n.treeContainerRef,Et,5)(n.formRef,bt,5),e&2&&fC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Kg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Nt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let l;l=$localize`Will be created as:`;let d;return d=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,l,d,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",1,"load-more",3,"loading"],["action","",1,"load-more",3,"click"],[1,"icon","file"],[1,"small"],[1,"primary"],[1,"text"],["action","",3,"click"],[1,"icon",3,"click"],[1,"size"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(aC(St),aT(0,Dt,5,1,"sh-button-group",11),Qi(1,"div",12),cC(2,0,ut),Qi(3,"div",13,0),aT(5,wt,1,0,"sh-progress-bar",14),cg(6,Zt,3,2,"ng-template",null,1,lb)(8,en,1,0,"ng-container",15),$l(),Qi(9,"div",16),aT(10,tn,2,2,"sh-toggle",17),aT(11,nn,2,1,"button",18),$l()(),Qi(12,"div",19,2)(14,"sh-form-field"),cC(15,1,ut),cC(16,2,vt),$l()(),aT(17,on,2,2,"sh-alert",20),aT(18,rn,19,7,"sh-dialog",21)),e&2){let i=pC(7);cT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),CE(),Kg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),CE(2),Kg("visualize-accepted",n.accepts()),CE(2),cT(n.isLoading()!=null?5:-1),CE(3),vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(16,_t,JC(14,Ot,n.treeStructure()))),CE(2),cT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),CE(),cT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),CE(),Kg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),CE(5),cT(n.errorMessage()?17:-1),CE(),cT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].load-more[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-style:italic;opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1&&jC(0),r&2){let e=t.$implicit,n=iC();sm("",e.label,"",n.hasPerSecond()?"/s":"");}}var dn=["throttle-upload","throttle-download"],un=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],pn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},Ct=class r{customId=E1();inputType=E1();timespan=Ge(0);unit=Ge("MB");sizeOptions=Ge(un);readonly=Ge(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&dn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=pn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(aC(sn),Qi(0,"div",0),cC(1,0,ln),$l(),Qi(2,"sh-form-field")(3,"input",1),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(4,1),cC(5,2),$l(),Qi(6,"sh-select",2)(7,"input",3),lm("ngModelChange",function(o){return UC(n.unit,o)||(n.unit=o),o}),$l(),CD(),cg(8,cn,1,2,"ng-template"),$l()),e&2&&(CE(2),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),Yg("--miw",0),vg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),CE(),cm("ngModel",n.unit),_D());},dependencies:[Nt$2,Fe,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var hn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],gn=["label","[prefix]","[suffix]"],mn=["ngProjectAs","label",5,["label"]];function _n(r,t){if(r&1){let e=vT();Qi(0,"button",7),Hg("click",function(){let i=Od(e).$implicit,o=iC();return Pd(o.updateUnit(i.value))}),nC(1,1),$l();}if(r&2){let e=t.$implicit;CE(),Vg(e.label),rC(1);}}var fn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Cn=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Mn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout","long-database-query-threshold"],Mt=class r{customId=E1();inputType=E1();timespan=Ge(0);#e="D";unit=Ge(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&Mn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?fn:Cn);readonly=Ge(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});inputTypeEffect=za(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:gn,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(aC(hn),cC(0,0,mn),Qi(1,"sh-form-field")(2,"input",2),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(3,1),cC(4,2),$l(),Qi(5,"sh-menu",3)(6,"button",4),nC(7,0),$l(),ql(8,5),dT(9,_n,2,1,"button",6,lT),Gl(),$l()),e&2&&(CE(),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),vg("openIndicator",true),CE(2),Vg(n.unitLabel()),rC(7),CE(2),fT(n.timeOptions()));},dependencies:[ve,Fe,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
2
- export{Ct as C,Mt as M,Ne as N,pn as p};
package/chunk-B_cIFQAl.js DELETED
@@ -1 +0,0 @@
1
- import {e as ee,W}from'./chunk-K2iai6rC.js';import {k}from'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {N as Ne,E as Ee}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import {D}from'./chunk-DidJB9ig.js';import {T,ab as C,aX as y,a5 as g,bj as Q,a6 as be,m,N as Nt$1,G as Ge,B as A,z as za,J as zu,h as hw,_ as _t$1,v,c as N,i as Ig,Q as Qi,H as Hg,n as nC,$ as $l,F as Fg,j as jg,aP as ql,aQ as Gl,d as aT,b5 as lg,b6 as oT,bi as cg,c5 as lb,C as CE,y as vg,a3 as KC,g as cT,b7 as iT,o as oC,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,w as cm,s as jC,au as Vg,av as rC,a1 as dT,ap as lT,a2 as fT,L as Kg,c3 as pC,a$ as JC,b_ as wg,ak as dm,aa as Ql,ar as Zp,al as WC,aM as ob,aN as ab,ao as qC,aR as sb,bZ as ei$1,cq as ce,cr as y$1,be as Fi,cs as tn,ct as en,ad as Mr,aJ as ci,bh as pi,cu as A$1,cv as I,cw as fv,cx as Je,aL as hi,cy as Ne$1,cz as U,bf as Jt$1,cA as Ce,bg as Kn$1,cB as ye,cC as qt$1,cD as Ee$1,cE as Qt$1,cF as Ze,cG as ne,cH as m$1,cI as de,cJ as g$1,cK as nn,cL as j,cM as d$1,cN as Rt$1,cO as Zt$1,cP as Gt$1,cQ as Kt$1,cR as Yt$1,cS as zt$1,cT as q,cU as Q$1,cV as Bt$1,cW as Pt$1,cX as kt$1,cY as Ut$1,cZ as jt$1,c_ as Ot$1,c$ as Nt$2,d0 as Fe,d1 as M,d2 as xt$1,d3 as J,d4 as Vt$1,bs as Rr,d5 as Or,d6 as Tr,d7 as f$1,d8 as wi,d9 as Ai,bL as s,da as L,db as k$1,dc as _,aI as c$1,aH as m$2,b2 as m$3}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import {a as at$1}from'./chunk-MDqH8T3Z.js';import {C as C$1}from'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var fn=()=>[_t$1,Promise.resolve().then(function(){return chunkSWVAJ6TW}).then(e=>e.NgTemplateOutlet),v,N,Promise.resolve().then(function(){return chunkJGYPH2BS}).then(e=>e.ShipChip),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipTable),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipSort),at$1,Promise.resolve().then(function(){return chunkAOYFZEXX}).then(e=>e.BackupProgressComponent),Promise.resolve().then(function(){return chunk4HOV3NJV}).then(e=>e.DurationFormatPipe),Promise.resolve().then(function(){return chunkHNLWAJTV}).then(e=>e.BytesPipe),Promise.resolve().then(function(){return chunkDXTOMSER}).then(e=>e.RelativeTimePipe)],hn=()=>["/add-backup"],$n=()=>["/restore"],Dn=e=>({$implicit:e}),yn=()=>["/backup/new"],Rn=e=>["/backup",e,"export"],An=e=>["/backup",e,"delete"],xn=e=>["/backup",e,"database"],Hn=e=>["/backup",e,"commandline"],Ln=e=>["/backup",e,"log"],kn=e=>["/backup",e],Gn=e=>["/restore",e],bn=e=>["/backup",e,"version-labels"],Bn=e=>["/backup",e,"delete-versions"],vn=e=>["/backup",e,"broken-files"];function Jn(e,t){e&1&&nC(0,11,1);}function Xn(e,t){e&1&&nC(0,11,2);}function wn(e,t){if(e&1&&nC(0,11,3),e&2){let n=iC(2);Vg(n.timeType()),rC(0);}}function zn(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){let c=Od(n).$implicit,d=iC(3);return Pd(d.sortByColumn.set(c.value))}),nC(1,15),$l();}if(e&2){let n=t.$implicit,a=iC(3);Kg("active",a.orderBy()===n.value),CE(),Vg(n.label),rC(1);}}function Vn(e,t){if(e&1&&(Qi(0,"sh-menu",68)(1,"button",69),Fg(2,14),Ig(3,"strong")(4,"sh-icon"),jg(),$l(),ql(5,70),dT(6,zn,2,3,"button",72,lT),Gl(),$l()),e&2){let n=iC(2);CE(4),Vg(n.orderBy()),rC(2),CE(2),fT(n.sortOrderOptions());}}function Un(e,t){if(e&1){let n=vT();Qi(0,"div",64)(1,"sh-button-group",65),lm("valueChange",function(c){Od(n);let d=iC();return UC(d.viewMode,c)||(d.viewMode=c),Pd(c)}),Qi(2,"button",66),Fg(3,9),Ig(4,"sh-icon"),jg(),$l(),Qi(5,"button",67),Fg(6,10),Ig(7,"sh-icon"),jg(),$l()(),Qi(8,"sh-menu",68)(9,"button",69),Fg(10,11),Qi(11,"strong"),aT(12,Jn,1,0)(13,Xn,1,0)(14,wn,1,1),$l(),Ig(15,"sh-icon"),jg(),$l(),ql(16,70),Qi(17,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("relative"))}),nC(18,12),$l(),Qi(19,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("actual"))}),nC(20,13),$l(),Gl(),$l(),aT(21,Vn,8,1,"sh-menu",68),$l();}if(e&2){let n=iC();CE(),cm("value",n.viewMode),CE(11),cT(n.timeType()=="relative"?12:n.timeType()=="actual"?13:14),CE(9),cT(n.viewMode()==="list"?21:-1);}}function Kn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,19),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function jn(e,t){if(e&1){let n=vT();Qi(0,"div",77)(1,"div",60)(2,"h3"),jC(3),aT(4,Kn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l()()(),Qi(8,"div",81)(9,"sh-chip",82),nC(10,16),$l()(),Qi(11,"div",64)(12,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.startBackup(c.Backup.ID))}),Fg(13,17),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",84),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.openInConsole(c))}),Fg(16,18),Ig(17,"sh-icon"),jg(),$l()(),Ig(18,"app-backup-progress",85),$l();}if(e&2){let n=iC().$implicit,a=iC(4);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(5),Kg("loading",a.startingBackup()===n.Backup.ID),CE(6),vg("backupId",n.Backup.ID);}}function Wn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,21),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function qn(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(7);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Qn(e,t){if(e&1&&dT(0,qn,3,2,"sh-chip",null,lT),e&2){let n=iC(2).$implicit;fT(n.Backup.AdditionalTargetURLs);}}function Yn(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,26),$l(),jC(3),ob(4,"relativeTime"),$l()),e&2){iC();let n=qC(5),a=iC(6);CE(3),Ql(" ",ab(4,1,n,a.timeType()==="actual")," ");}}function Zn(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC(3).$implicit,a=iC(4);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function et(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function nt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function tt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function it(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function ot(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function _t(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,22),$l(),jC(3),ob(4,"relativeTime"),$l(),dm(5),aT(6,Yn,5,4,"p"),Qi(7,"p")(8,"span"),nC(9,23),$l(),aT(10,Zn,2,4)(11,et,2,0,"ng-container"),$l(),Qi(12,"p")(13,"span"),nC(14,24),$l(),aT(15,nt,2,3)(16,tt,2,0,"ng-container"),$l(),Qi(17,"p")(18,"span"),nC(19,25),$l(),aT(20,it,2,3)(21,ot,2,0,"ng-container"),$l()),e&2){let n=iC(2).$implicit,a=iC(4);CE(3),Ql(" ",ab(4,5,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," "),CE(2);let c=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(c?6:-1),CE(4),cT(n.Backup.Metadata?.LastBackupDuration?10:11),CE(5),cT(n.Backup.Metadata?.SourceFilesSize?15:16),CE(5),cT(n.Backup.Metadata?.TargetFilesSize?20:21);}}function at(e,t){if(e&1&&Ig(0,"app-backup-progress",85),e&2){let n=iC(2).$implicit;vg("backupId",n.Backup.ID);}}function lt(e,t){e&1&&(Qi(0,"sh-chip",82),nC(1,27),$l());}function rt(e,t){e&1&&wg(0);}function ct(e,t){if(e&1&&(Qi(0,"div",78)(1,"div",60)(2,"h3"),jC(3),aT(4,Wn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l(),aT(8,Qn,2,0),$l(),aT(9,_t,22,9)(10,at,1,1,"app-backup-progress",85),$l(),Qi(11,"div",81)(12,"sh-chip",86),nC(13,20),$l(),aT(14,lt,2,0,"sh-chip",82),$l(),Qi(15,"div",64),cg(16,rt,1,0,"ng-container",87),$l()()),e&2){let n=iC().$implicit,a=iC(4),c=pC(33);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(),cT(a.runningBackupId()!==n.Backup.ID?9:10);let d=a.getBackupVersionCount(n);CE(4),Vg(d)(d),rC(13),CE(),cT(n.Backup.ExternalID?14:-1),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,Dn,n));}}function st(e,t){if(e&1&&aT(0,jn,19,7,"div",77)(1,ct,17,13,"div",78),e&2){let n=t.$implicit;cT(n.Backup.ExternalID?0:1);}}function ut(e,t){if(e&1&&dT(0,st,2,1,null,null,lT),e&2){let n=iC(3);fT(n.backups());}}function Ft(e,t){e&1&&(Qi(0,"div",76),Fg(1,28),Qi(2,"button",88),Ig(3,"sh-icon"),$l(),jg(),$l()),e&2&&(CE(2),vg("routerLink",KC(1,yn)));}function Ct(e,t){if(e&1&&(Qi(0,"div",75),aT(1,ut,2,0)(2,Ft,4,2,"div",76),$l()),e&2){let n=iC(2);Kg("fallback",n.backups().length===0),CE(),cT(n.backups().length?1:2);}}function Tt(e,t){e&1&&(Fg(0,29,1),wg(1),jg());}function dt(e,t){e&1&&(Fg(0,30,1),wg(1),jg());}function Et(e,t){e&1&&(Fg(0,31,1),wg(1),jg());}function pt(e,t){e&1&&(Fg(0,32,1),wg(1),jg());}function gt(e,t){e&1&&(Fg(0,33,1),wg(1),jg());}function St(e,t){e&1&&(Fg(0,34,1),wg(1),jg());}function mt(e,t){e&1&&(Fg(0,35,1),wg(1),jg());}function Ot(e,t){e&1&&(Qi(0,"sh-chip",99),Fg(1,39),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function Nt(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(5);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Mt(e,t){if(e&1&&dT(0,Nt,3,2,"sh-chip",null,lT),e&2){let n=iC().$implicit;fT(n.Backup.AdditionalTargetURLs);}}function It(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," ");}}function Pt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Dt(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){iC();let n=qC(13),a=iC(3);Ql(" ",ab(1,1,n,a.timeType()==="actual")," ");}}function ft(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function ht(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function $t(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function yt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function Rt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function At(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function xt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Ht(e,t){e&1&&wg(0);}function Lt(e,t){if(e&1&&(Qi(0,"tr")(1,"td"),jC(2),aT(3,Ot,3,1,"sh-chip",99),$l(),Qi(4,"td")(5,"sh-chip",100),Ig(6,"img",80),jC(7),$l(),aT(8,Mt,2,0),$l(),Qi(9,"td"),aT(10,It,2,4)(11,Pt,2,0,"ng-container"),$l(),Qi(12,"td"),dm(13),aT(14,Dt,2,4)(15,ft,2,0,"ng-container"),$l(),Qi(16,"td"),aT(17,ht,2,4)(18,$t,2,0,"ng-container"),$l(),Qi(19,"td"),aT(20,yt,2,3)(21,Rt,2,0,"ng-container"),$l(),Qi(22,"td"),aT(23,At,2,3)(24,xt,2,0,"ng-container"),$l(),Qi(25,"td")(26,"span"),nC(27,38),$l()(),Qi(28,"td"),cg(29,Ht,1,0,"ng-container",87),$l()()),e&2){let n=t.$implicit,a=iC(3),c=pC(33);CE(2),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?3:-1),CE(3),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(2),cT(n.Backup.Metadata?.LastBackupFinished?10:11),CE(3);let d=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(d?14:15),CE(3),cT(n.Backup.Metadata?.LastBackupDuration?17:18),CE(3),cT(n.Backup.Metadata?.SourceFilesSize?20:21),CE(3),cT(n.Backup.Metadata?.TargetFilesSize?23:24);let R=a.getBackupVersionCount(n);CE(4),Vg(R)(R),rC(27),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(15,Dn,n));}}function kt(e,t){if(e&1){let n=vT();Qi(0,"sh-table",89),lm("sortByColumnChange",function(c){Od(n);let d=iC(2);return UC(d.sortByColumn,c)||(d.sortByColumn=c),Pd(c)}),Qi(1,"tr",90)(2,"th",91),Fg(3,29),cg(4,Tt,2,0,"ng-container",92),jg(),$l(),Qi(5,"th",93),Fg(6,30),cg(7,dt,2,0,"ng-container",92),jg(),$l(),Qi(8,"th",94),Fg(9,31),cg(10,Et,2,0,"ng-container",92),jg(),$l(),Qi(11,"th",95),Fg(12,32),cg(13,pt,2,0,"ng-container",92),jg(),$l(),Qi(14,"th",96),Fg(15,33),cg(16,gt,2,0,"ng-container",92),jg(),$l(),Qi(17,"th",97),Fg(18,34),cg(19,St,2,0,"ng-container",92),jg(),$l(),Qi(20,"th",98),Fg(21,35),cg(22,mt,2,0,"ng-container",92),jg(),$l(),Qi(23,"th"),nC(24,36),$l(),Qi(25,"th"),nC(26,37),$l()(),dT(27,Lt,30,17,"tr",null,lT),$l();}if(e&2){let n=iC(2),a=pC(35);vg("data",n.backups())("loading",n.backupsLoading()),cm("sortByColumn",n.sortByColumn),CE(4),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(5),fT(n.backups());}}function Gt(e,t){if(e&1&&aT(0,Ct,3,3,"div",73)(1,kt,29,10,"sh-table",74),e&2){let n=iC();cT(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1);}}function bt(e,t){e&1&&(Qi(0,"div",101),Ig(1,"sh-progress-bar",102),Qi(2,"div",60)(3,"h3"),nC(4,40),$l()()());}function Bt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.abort())}),Fg(1,42),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function vt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.stop())}),Fg(1,43),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function Jt(e,t){e&1&&(Fg(0,41,1),Ig(1,"sh-icon"),jg());}function Xt(e,t){e&1&&(Fg(0,41,2),Ig(1,"sh-icon"),jg());}function wt(e,t){if(e&1){let n=vT();aT(0,Bt,3,2,"button",103)(1,vt,3,2,"button",103),Qi(2,"button",83),Hg("click",function(){Od(n);let c=iC(2);return Pd(c.pauseResume())}),Fg(3,41),aT(4,Jt,2,0)(5,Xt,2,0),jg(),$l();}if(e&2){let n=iC(2);cT(n.isStopping()?0:1),CE(2),Kg("small",n.viewMode()==="details")("loading",n.isResuming()),CE(2),cT(n.clientIsRunning()?4:5);}}function zt(e,t){e&1&&nC(0,44,1);}function Vt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function Ut(e,t){if(e&1&&(Qi(0,"button",105)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,kn,n.Backup.ID));}}function Kt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"dots-three-vertical"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function jt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Wt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"dots-three-vertical"),$l());}function qt(e,t){if(e&1&&(Qi(0,"button",110),aT(1,jt,2,0,"sh-icon")(2,Wt,2,0,"sh-icon"),$l()),e&2){let n=iC(2).$implicit,a=iC();Kg("loading",a.loadingId()===n.Backup.ID)("success",a.successId()===n.Backup.ID),CE(),cT(a.successId()===n.Backup.ID?1:2);}}function Qt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,52),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,Gn,n.Backup.ID));}}function Yt(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){Od(n);let c=iC(2).$implicit,d=iC();return Pd(d.verifyFiles(c.Backup.ID))}),Fg(1,53),Ig(2,"sh-icon"),jg(),$l();}}function Zt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,54),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(3).$implicit;vg("routerLink",JC(1,bn,n.Backup.ID));}}function ei(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,56),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,Bn,n.Backup.ID));}}function ni(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,57),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,vn,n.Backup.ID));}}function ti(e,t){if(e&1&&(Ig(0,"sh-divider"),Qi(1,"h3",107),nC(2,55),$l(),aT(3,ei,3,3,"button",108),aT(4,ni,3,3,"button",108)),e&2){let n=iC(4);CE(3),cT(n.hasDeleteVersions()?3:-1),CE(),cT(n.hasBrokenFiles()?4:-1);}}function ii(e,t){if(e&1&&(aT(0,Zt,3,3,"button",108),aT(1,ti,5,2)),e&2){let n=iC(3);cT(n.hasSetVersionLabel()?0:-1),CE(),cT(n.hasDeleteVersions()||n.hasBrokenFiles()?1:-1);}}function oi(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC();return Pd(d.startBackup(c.Backup.ID))}),Fg(1,44),Ig(2,"sh-icon"),aT(3,zt,1,0),jg(),$l(),aT(4,Vt,3,2,"button",104)(5,Ut,3,3,"button",105),Qi(6,"sh-menu"),aT(7,Kt,3,2,"button",104)(8,qt,3,5,"button",106),ql(9,70),Qi(10,"h3",107),jC(11,"Operations"),$l(),aT(12,Qt,3,3,"button",108),Qi(13,"button",108),Fg(14,45),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",108),Fg(17,46),Ig(18,"sh-icon"),jg(),$l(),Ig(19,"sh-divider"),Qi(20,"h3",107),nC(21,47),$l(),Qi(22,"button",108),Fg(23,48),Ig(24,"sh-icon"),jg(),$l(),aT(25,Yt,3,0,"button",109),Qi(26,"button",108),Fg(27,49),Ig(28,"sh-icon"),jg(),$l(),aT(29,ii,2,2),Ig(30,"sh-divider"),Qi(31,"h3",107),nC(32,50),$l(),Qi(33,"button",108),Fg(34,51),Ig(35,"sh-icon"),jg(),$l(),Gl(),$l();}if(e&2){let n=iC().$implicit,a=iC();Kg("loading",a.startingBackup()===n.Backup.ID),CE(3),cT(a.viewMode()==="list"?3:-1),CE(),cT(n.Backup.ExternalID?4:5),CE(3),cT(n.Backup.ExternalID?7:8),CE(5),cT(n.Backup.OperationType!=="Sync"?12:-1),CE(),vg("routerLink",JC(13,Rn,n.Backup.ID)),CE(3),vg("routerLink",JC(15,An,n.Backup.ID)),CE(6),vg("routerLink",JC(17,xn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?25:-1),CE(),vg("routerLink",JC(19,Hn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?29:-1),CE(4),vg("routerLink",JC(21,Ln,n.Backup.ID));}}function _i(e,t){if(e&1&&aT(0,wt,6,6)(1,oi,36,23),e&2){let n=t.$implicit,a=iC();cT(a.runningBackupId()===n.Backup.ID?0:1);}}function ai(e,t){e&1&&(Qi(0,"sh-icon",111),jC(1,"funnel-simple"),$l(),Qi(2,"sh-icon",112),jC(3,"sort-ascending"),$l(),Qi(4,"sh-icon",113),jC(5,"sort-descending"),$l());}var le=class e{#t=T(C);#n=T(y);#e=T(g);#_=T(C$1);#a=T(Q);#l=T(be);#i=T(m);hasDeleteVersions=this.#i.hasV2DeleteVersions;hasSetVersionLabel=this.#i.hasV2SetVersionLabel;hasBrokenFiles=this.#i.hasV2BrokenFiles;MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;runningBackupId=this.#n.runningBackupId;getBackendType=Ne;getBackendIcon=Ee;timeType=this.#e.timeType;clientIsRunning=this.#n.clientIsRunning;isResuming=this.#n.isResuming;runningTask=Nt$1(()=>this.#n.serverState()?.ActiveTask?.Item1);isStopping=Nt$1(()=>this.runningTask()==this.#o());scheduledTimes=Nt$1(()=>{let t=this.#a.serverState()?.ProposedSchedule??[],n=this.#e.backups(),a={};return n.forEach(c=>{let d=c.Backup?.ID;if(d){var R=t.find(X=>X.Item1==d);R?.Item2?a[d]=R.Item2:c.Schedule?.Time&&(a[d]=c.Schedule.Time);}}),a});#o=Ge(-1);viewMode=A("viewMode","list");sortByColumn=Ge(this.#e.orderBy());loadingId=Ge(null);successId=Ge(null);sortEffect=za(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(true);}openInConsole(t){let n=t.Backup.ExternalID?.split(":")[1];if(!n){console.error("Backup does not have an external ID");return}this.#_.openConsole("/app/machines/configurations/"+n);}setOrderBy(t){this.#e.setOrderBy(t);}setTimeType(t){this.#e.setTimeType(t);}startBackup(t){this.#n.resumeDialogCheck(()=>this.#e.startBackup(t));}openPauseDialog(){this.#l.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#n.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#t.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#t.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}getBackupVersionCount(t){return parseInt(t?.Backup?.Metadata?.BackupListCount??"",10)||0}verifyFiles(t){this.loadingId.set(t),this.#t.postApiV1BackupByIdVerify({id:t}).pipe(zu(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(t),setTimeout(()=>this.successId.set(null),2e3);}});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=hw({type:e,selectors:[["app-home"]],decls:36,vars:6,consts:()=>{let t;t=$localize`Backups`;let n;n=$localize`Keep your data safe at your chosen destination.`;let a;a=$localize` Create ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let c;c=$localize`Restores`;let d;d=$localize`Recover your files from any backup set.`;let R;R=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let X;X=$localize`My backups`;let re;re=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:rows${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: List `;let ce;ce=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:list${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Details `;let se;se=$localize` Time: ${"\uFFFD#11\uFFFD"}:START_TAG_STRONG:${"\uFFFD*12:1\uFFFD"}:START_BLOCK_IF: Relative ${"\uFFFD/*12:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*13:2\uFFFD"}:START_BLOCK_ELSE_IF: Actual ${"\uFFFD/*13:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*14:3\uFFFD"}:START_BLOCK_ELSE: ${"\uFFFD0:3\uFFFD"}:INTERPOLATION: ${"\uFFFD/*14:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ue;ue=$localize`Relative time`;let Fe;Fe=$localize`Actual time`;let Ce;Ce=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Te;Te=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let de;de=$localize`Externally managed`;let Ee;Ee=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Start `;let pe;pe=$localize` Edit in console ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-up-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ge;ge=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let w;w=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,w=oC(w,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Se;Se=$localize` ${w}:ICU@@6502601490918455200: `;let me;me=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Oe;Oe=$localize`Last successful backup:`;let Ne;Ne=$localize`Duration:`;let Me;Me=$localize`Source:`;let Ie;Ie=$localize`Destination:`;let Pe;Pe=$localize`Next scheduled run:`;let De;De=$localize`Externally managed`;let fe;fe=$localize` No backups found ${"\uFFFD#2\uFFFD"}:START_TAG_BUTTON: Click to create one now ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_BUTTON:`;let he;he=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let $e;$e=$localize` Type ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let ye;ye=$localize` Last backup ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Re;Re=$localize` Next run ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ae;Ae=$localize` Duration ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let xe;xe=$localize` Source ${"\uFFFD*19:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*19:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let He;He=$localize` Destination ${"\uFFFD*22:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*22:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Le;Le=$localize`Version`;let ke;ke=$localize`Actions`;let z;z=$localize`{VAR_PLURAL, plural, =0 {No versions} =1 {1 Version} other {{INTERPOLATION} Versions}}`,z=oC(z,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ge;Ge=$localize` ${z}:ICU@@3521773141017690117: `;let be;be=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Be;Be=$localize`Loading backups...`;let V;V=$localize`${"\uFFFD*4:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*4:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*5:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*5:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,V=oC(V);let ve;ve=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let Je;Je=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `;let Xe;Xe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Start ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:`;let we;we=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let ze;ze=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let Ve;Ve=$localize`Advanced`;let Ue;Ue=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Database `;let Ke;Ke=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Commandline `;let je;je=$localize`Reporting`;let We;We=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:notepad${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SH_ICON: Log `;let qe;qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let Qe;Qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check-square-offset${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Verify files `;let Ye;Ye=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:tag${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Version labels `;let Ze;Ze=$localize`Cleanup`;let en;en=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Delete versions `;let nn;return nn=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:file-x${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Purge broken files `,[["actions",""],["sortIcons",""],t,n,a,c,d,R,X,re,ce,se,ue,Fe,Ce,Te,de,Ee,pe,ge,Se,me,Oe,Ne,Me,Ie,Pe,De,fe,he,$e,ye,Re,Ae,xe,He,Le,ke,Ge,be,Be,V,ve,Je,Xe,we,ze,Ve,Ue,Ke,je,We,qe,Qe,Ye,Ze,en,nn,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","tabindex","-1","shButton",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small","type-b",3,"valueChange","value"],["value","list"],["value","details"],[1,"table-overview"],["type","button","shButton","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups",3,"fallback"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backups"],[1,"no-backups"],[1,"backup","externaly-managed"],[1,"backup"],[1,"simple","accent",3,"shTooltip"],["alt","",1,"provider-icon",3,"src"],[1,"tags"],[1,"simple","primary"],["shButton","",3,"click"],["type","button","shButton","",3,"click"],[3,"backupId"],[1,"simple","success"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["shButton","",1,"primary","raised",3,"routerLink"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["shSort","name"],[4,"ngTemplateOutlet"],["shSort","type"],["shSort","lastrun"],["shSort","nextrun"],["shSort","duration"],["shSort","sourcesize"],["shSort","destinationsize"],[1,"small","accent",3,"shTooltip"],[1,"small"],[1,"loading-list"],[1,"indeterminate","primary"],["shButton","",3,"small"],["type","button","shButton","",3,"shTooltip","disabled"],["type","button","shButton","",3,"routerLink"],["type","button","shButton","",3,"loading","success"],["title",""],["type","button",3,"routerLink"],["type","button"],["type","button","shButton",""],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,a){n&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"header")(3,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(4,"img",59),Qi(5,"div",60)(6,"h3"),nC(7,2),$l(),Qi(8,"p"),nC(9,3),$l()(),Qi(10,"button",61),Fg(11,4),Ig(12,"sh-icon"),jg(),$l()(),Qi(13,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(14,"img",62),Qi(15,"div",60)(16,"h3"),nC(17,5),$l(),Qi(18,"p"),nC(19,6),$l()(),Qi(20,"button",61),Fg(21,7),Ig(22,"sh-icon"),jg(),$l()()(),Qi(23,"div",63)(24,"h2"),ql(25),nC(26,8),Gl(),aT(27,Un,22,3,"div",64),$l(),lg(28,Gt,2,1)(29,bt,5,0),oT(30,28,fn,null,29),$l()(),cg(32,_i,2,1,"ng-template",null,0,lb)(34,ai,6,0,"ng-template",null,1,lb)),n&2&&(CE(3),vg("routerLink",KC(4,hn)),CE(10),vg("routerLink",KC(5,$n)),CE(14),cT(a.backups().length>0?27:-1),CE(3),iT(!a.backupsLoading()));},dependencies:[_t$1,ee,f,v,N,c,ve,d,x,at$1],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}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}@media only screen and (max-width:768px){header[_ngcontent-%COMP%]{grid-template-columns:1fr}}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}@media only screen and (max-width:768px){.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}}sh-menu[_ngcontent-%COMP%]{color:red}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backups.fallback[_ngcontent-%COMP%]{justify-content:center;align-items:center;padding:4rem;border:1px solid var(--base-4);background:var(--base-2);border-radius:var(--shape-2);width:calc(100% - 4rem);margin:0 auto}.no-backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{max-width:initial}}.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%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}.backup[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:.5rem}.provider-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.sortable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.sortable[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) sh-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] sh-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.sortable.sort-desc[_ngcontent-%COMP%] sh-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"]})};var chunkSWVAJ6TW=/*#__PURE__*/Object.freeze({__proto__:null,APP_BASE_HREF:ce,BrowserPlatformLocation:y$1,CommonModule:Fi,DATE_PIPE_DEFAULT_OPTIONS:tn,DATE_PIPE_DEFAULT_TIMEZONE:en,DOCUMENT:Mr,DatePipe:ci,DecimalPipe:pi,FormStyle:A$1,FormatWidth:I,IMAGE_CONFIG:fv,IMAGE_LOADER:Je,JsonPipe:hi,Location:Ne$1,LocationStrategy:U,NgFor:Jt$1,NgForOf:Jt$1,NgForOfContext:Ce,NgIf:Kn$1,NgIfContext:ye,NgLocaleLocalization:qt$1,NgLocalization:Ee$1,NgPlural:Qt$1,NgSwitch:Ze,NgTemplateOutlet:ei$1,NumberFormatStyle:ne,NumberSymbol:m$1,PathLocationStrategy:de,PlatformLocation:g$1,PlatformNavigation:nn,Plural:j,TranslationWidth:d$1,WeekDay:Rt$1,formatCurrency:Zt$1,formatDate:Gt$1,formatNumber:Kt$1,formatPercent:Yt$1,getCurrencySymbol:zt$1,getLocaleDateFormat:q,getLocaleDateTimeFormat:Q$1,getLocaleDayNames:Bt$1,getLocaleDayPeriods:Pt$1,getLocaleEraNames:kt$1,getLocaleExtraDayPeriodRules:Ut$1,getLocaleExtraDayPeriods:jt$1,getLocaleId:Ot$1,getLocaleMonthNames:Nt$2,getLocaleNumberFormat:Fe,getLocaleNumberSymbol:M,getLocalePluralCase:xt$1,getLocaleTimeFormat:J,getNumberOfCurrencyDigits:Vt$1,isPlatformBrowser:Rr,isPlatformServer:Or,registerLocaleData:Tr,ɵDomAdapter:f$1,ɵPLATFORM_BROWSER_ID:wi,ɵPLATFORM_SERVER_ID:Ai,ɵgetDOM:s,ɵnormalizeQueryParams:L,ɵparseCookieValue:k$1,ɵsetRootDomAdapter:_});var chunkJGYPH2BS=/*#__PURE__*/Object.freeze({__proto__:null,ShipChip:D});var chunkAOYFZEXX=/*#__PURE__*/Object.freeze({__proto__:null,BackupProgressComponent:W});var chunk4HOV3NJV=/*#__PURE__*/Object.freeze({__proto__:null,DurationFormatPipe:c$1});var chunkHNLWAJTV=/*#__PURE__*/Object.freeze({__proto__:null,BytesPipe:m$2});var chunkDXTOMSER=/*#__PURE__*/Object.freeze({__proto__:null,RelativeTimePipe:m$3});export{le as default};
package/chunk-BaSm1lsB.js DELETED
@@ -1,2 +0,0 @@
1
- import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {s as sn,o as on,p as pt,_ as _n,V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee,aw as W,a6 as be,bF as ve,D as w1,G as Ge,N as Nt,at as h,h as hw,v,c as N,a0 as de,u as ue,l as vT,ak as dm,Q as Qi,H as Hg,n as nC,$ as $l,d as aT,p as lm,O as Od,U as UC,P as Pd,F as Fg,i as Ig,j as jg,al as WC,C as CE,g as cT,w as cm,y as vg,o as oC,aD as YC,M as qg,R as fC,k as iC,s as jC,aP as ql,aQ as Gl,ao as qC,r as CD,a3 as KC,x as _D}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(1,5),Ig(2,"sh-icon"),jg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC(2);return Pd(t.copyTargetUrl())}),Fg(1,7),Ig(2,"sh-icon"),jg(),$l();}}function he(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(6,6),Ig(7,"sh-icon"),jg(),$l(),aT(8,fe,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function Pe(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);vg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Hg("setDestination",function(t){Od(e);let l=iC();return Pd(l.setDestination(t))}),$l();}}function Ae(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),lm("targetUrlChange",function(t){Od(e);let l=iC();return UC(l.targetUrlModel,t)||(l.targetUrlModel=t),Pd(t)}),$l();}if(o&2){let e=iC();cm("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Fg(0,4,1),Ig(1,"sh-icon",22),jg());}function Re(o,i){o&1&&(Fg(0,4,2),Ig(1,"sh-icon"),jg());}function Ue(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),lm("isOpenChange",function(t){Od(e);let l=iC();return UC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Pd(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),lm("ngModelChange",function(t){Od(e);let l=iC();return UC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Pd(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(true))}),Fg(14,11),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let e=iC();cm("isOpen",e.targetUrlDialogOpen),vg("options",KC(3,Ee)),CE(9),cm("ngModel",e.targetUrlCtrl),_D();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=w1.required("formRef");testUrlComponent=w1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&fC(2);},features:[YC([Ve])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();dm(0),Qi(1,"form",12,0),Hg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),lm("targetUrlChange",function(g){return Od(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Pd(g)})("testSignalChange",function(g){return Od(t),UC(n.testSignal,g)||(n.testSignal=g),Pd(g)}),$l(),dm(12),aT(13,Pe,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Hg("click",function(){return n.goBack()}),Fg(18,3),Ig(19,"sh-icon"),jg(),$l(),Qi(20,"button",21),Fg(21,4),aT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),jg(),$l()()(),aT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),cm("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),vg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let l=WC(n.selectedDestinationTypeOption());CE(),cT(l?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),vg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[sn,on,pt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,_n],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
2
- export{w as default};
package/chunk-Bgw6E0Xu.js DELETED
@@ -1,2 +0,0 @@
1
- import {w}from'./chunk-CS2J-6VZ.js';import {T,e as ee,A as v,B as A,G as Ge,D as w1,z as za,J as zu,h as hw,c as N,v as v$1,u as ue,Q as Qi,H as Hg,d as aT,i as Ig,$ as $l,F as Fg,j as jg,r as CD,s as jC,y as vg,C as CE,g as cT,x as _D,K as im,L as Kg,M as qg,R as fC,n as nC}from'./main-3NL5M6JB.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 {U}from'./chunk-D1pDZLJ9.js';var Y=["passwordInput"];function Z(l,n){l&1&&(Qi(0,"sh-alert",6),nC(1,4),$l());}var h=new jn,C=class l{#e=T(ee);#n=T(v);rememberMe=A("rememberMe",false,true);failedLogin=Ge(false);successLogin=Ge(false);isLoading=Ge(false);loginForm=h.group({pass:h.control("",me.required),rememberMe:h.control(this.rememberMe())});showPassword=Ge(false);passwordInput=w1("passwordInput");passwordEffect=za(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??false)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??false),n&&(this.isLoading.set(true),this.#n.login(n,this.rememberMe()).pipe(zu(()=>{this.isLoading.set(false),this.failedLogin.set(true);})).subscribe({next:()=>{this.successLogin.set(true),this.#e.navigate(["/"]);}}));}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=hw({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&qg(e.passwordInput,Y,5),o&2&&fC();},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 N;return N=$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,N,[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&&(Qi(0,"form",5),Hg("submit",function(){return e.submit()}),aT(1,Z,2,0,"sh-alert",6),Qi(2,"div",7),Ig(3,"app-logo"),$l(),Qi(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),Fg(8,1),Qi(9,"a",11),Ig(10,"sh-icon"),$l(),jg(),$l(),Ig(11,"input",12,0),CD(),Qi(13,"sh-icon",13),Hg("click",function(){return e.showPassword.set(!e.showPassword())}),jC(14),$l()(),Qi(15,"button",14),Fg(16,2),Ig(17,"sh-icon"),jg(),$l()(),Qi(18,"sh-checkbox",15),Fg(19,3),Ig(20,"input",16),CD(),jg(),$l(),Qi(21,"div",17),Ig(22,"label",18),$l()()()),o&2&&(vg("formGroup",e.loginForm),CE(),cT(e.failedLogin()&&!e.successLogin()?1:-1),CE(10),vg("type",e.showPassword()?"text":"password"),_D(),CE(3),im(e.showPassword()?"eye":"eye-slash"),CE(),Kg("loading",e.isLoading()),CE(5),_D());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,w,Fe,N,v$1,ue,U],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}"]})};
2
- export{C as default};
package/chunk-Bj7EyCHb.js DELETED
@@ -1 +0,0 @@
1
- import {T,ab as C,G as Ge,N as Nt,z as za,J as zu,aZ as ee}from'./main-3NL5M6JB.js';var u=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],v=class a{#l=T(C);#e=Ge([]);LOG_LEVELS=u;logLevel=Ge("Disabled");logLevelByLabel=Nt(()=>u.find(e=>e.value===this.logLevel())?.label);whenFilter=Ge(null);backupIdFilter=Ge(null);id=Ge(0);logs=Nt(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=Ge(false);isPolling=Ge(false);pagination=Ge({offset:0,pagesize:100});logLevelEffect=za(()=>{this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs();},3e3)):this.clearPolling();});setWhenFilter(e){this.whenFilter.set(e);}setBackupIdFilter(e){this.backupIdFilter.set(e);}loadLogs(){this.logsLoading.set(true),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(zu(()=>this.logsLoading.set(false))).subscribe({next:e=>{let i=e.reverse(),t=this.#i(i);t>0&&this.id.set(t),this.#e.set([...i,...this.#e()]);}});}updateLogLevel(e){this.logLevel.set(e),e==="Disabled"&&this.clearPolling();}#i(e){return e.reduce((i,t)=>Math.max(i,t.ID),0)}destroy(){this.logLevel.set("Disabled"),this.clearPolling();}clearPolling(){this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0;}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{v};
package/chunk-BrtdRb9j.js DELETED
@@ -1 +0,0 @@
1
- import {w}from'./chunk-C9OqpwwE.js';import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.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 {h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,n as nC,$ as $l,C as CE,y as vg,a3 as KC,aD as YC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var S=()=>["/backup/import-destination/destination"],M=()=>["/backup/import-destination/encryption"],g=()=>["/backup/import-destination/select-config"],p=class T{static \u0275fac=function(e){return new(e||T)};static \u0275cmp=hw({type:T,selectors:[["app-import-destination"]],features:[YC([d,Ve])],decls:10,vars:6,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let s;return s=$localize` Select configurations `,[i,e,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,s){e&1&&(Ig(0,"app-status-bar"),Qi(1,"sh-stepper",3)(2,"div",4),nC(3,0),$l(),Qi(4,"div",4),nC(5,1),$l(),Qi(6,"div",5),nC(7,2),$l()(),Qi(8,"section"),Ig(9,"router-outlet"),$l()),e&2&&(CE(2),vg("routerLink",KC(3,S)),CE(2),vg("routerLink",KC(4,M)),CE(2),vg("routerLink",KC(5,g)));},dependencies:[w,ee,lr,_t,To],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}"]})};export{p as default};
package/chunk-BsNCg00z.js DELETED
@@ -1,2 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';import {T,ab as C,G as Ge,z as za,J as zu,ai as m,aj as l,h as hw,c as N,v,aJ as ci,Q as Qi,n as nC,$ as $l,i as Ig,a1 as dT,H as Hg,F as Fg,d as aT,j as jg,ag as Yg,y as vg,C as CE,a2 as fT,g as cT,l as vT,O as Od,k as iC,P as Pd,s as jC,aM as ob,K as im,aN as ab,L as Kg,ap as lT}from'./main-3NL5M6JB.js';function X(o,e){if(o&1&&(Qi(0,"li"),jC(1),$l()),o&2){let t=e.$implicit;CE(),im(t);}}function j(o,e){if(o&1&&(Qi(0,"tr")(1,"td",12)(2,"code")(3,"ol",13),dT(4,X,2,1,"li",null,lT),$l()()()()),o&2){let t=iC().$implicit,n=iC();CE(),Yg("grid-column","1 / -1")("height","auto"),CE(3),fT(n.breakIntoLines(t.Exception));}}function K(o,e){if(o&1){let t=vT();Qi(0,"tr",9),Hg("click",function(){let _=Od(t).$index,m=iC();return Pd(m.toggleRow(_))}),Qi(1,"td"),jC(2),ob(3,"date"),$l(),Qi(4,"td",10),jC(5),$l(),Qi(6,"td"),jC(7),$l(),Qi(8,"td")(9,"button",11)(10,"sh-icon"),jC(11,"caret-down"),$l()()()(),aT(12,j,6,4,"tr");}if(o&2){let t=e.$implicit,n=e.$index,_=iC();CE(2),im(t.Timestamp?ab(3,6,t.Timestamp*1e3,"medium"):"-"),CE(3),im(t.BackupID>=0?t.BackupID:"-"),CE(2),im(t.Message),CE(2),Kg("rotated-icon",n===_.openRowIndex()),CE(3),cT(n===_.openRowIndex()?12:-1);}}function V(o,e){o&1&&nC(0,4,1);}function q(o,e){o&1&&nC(0,4,2);}var H=["BackupID","Timestamp","Message","actions"],M=class o{#e=T(C);displayedColumns=Ge(H);openRowIndex=Ge(null);noMoreItems=Ge(false);logsIsLoading=Ge(false);logs=Ge([]);pagination=Ge({offsetTime:void 0,pagesize:10});paginationEffect=za(()=>{this.pagination();this.getLogs();});ngOnInit(){this.getLogs();}getLogs(){this.logsIsLoading.set(true);let e=this.pagination();this.#e.getApiV1LogdataLog({pagesize:e.pagesize,offset:e.offsetTime}).pipe(zu(()=>this.logsIsLoading.set(false))).subscribe({next:t=>{t.length===0&&this.noMoreItems.set(true),this.logs.update(n=>[...n,...t]);}});}toggleRow(e){this.openRowIndex.set(e===this.openRowIndex()?null:e);}breakIntoLines(e){return e?e.split(`
2
- `):[]}loadMore(){let e=this.logs().at(-1)?.Timestamp;this.pagination.update(t=>m(l({},t),{offsetTime:e}));}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-logs-stored"]],decls:18,vars:6,consts:()=>{let e;e=$localize`Timestamp`;let t;t=$localize`Backup ID`;let n;n=$localize`Message`;let _;_=$localize`No data available`;let m;return m=$localize`${"\uFFFD*16:1\uFFFD"}:START_BLOCK_IF: No more items ${"\uFFFD/*16:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*17:2\uFFFD"}:START_BLOCK_ELSE: Load more ${"\uFFFD/*17:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,[e,t,n,_,m,[1,"type-b",3,"data","loading"],["thead",""],["table-no-rows",""],["shButton","",1,"primary","raised",3,"click","disabled"],[3,"click"],[1,"id"],["shButton","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]]},template:function(t,n){if(t&1&&(Qi(0,"sh-table",5)(1,"tr",6)(2,"th"),nC(3,0),$l(),Qi(4,"th"),nC(5,1),$l(),Qi(6,"th"),nC(7,2),$l(),Ig(8,"th"),$l(),dT(9,K,13,9,null,null,lT),Qi(11,"div",7),nC(12,3),$l()(),Qi(13,"footer")(14,"button",8),Hg("click",function(){return n.loadMore()}),Fg(15,4),aT(16,V,1,0)(17,q,1,0),jg(),$l()()),t&2){let _=n.logs();Yg("grid-template-columns","1fr 1fr 1fr auto"),vg("data",_)("loading",n.logsIsLoading()),CE(9),fT(_),CE(5),vg("disabled",n.logsIsLoading()||n.noMoreItems()),CE(2),cT(n.noMoreItems()?16:17);}},dependencies:[ot,N,v,ci],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 0 0}"]})};export{M as default};
package/chunk-BxpXVeOr.js DELETED
@@ -1 +0,0 @@
1
- import {d}from'./chunk-DDWDcSq2.js';import {L}from'./chunk-DGvC49aU.js';import {T,ab as C,bj as Q,m,G as Ge,N as Nt,aG as pt,J as zu,h as hw,v,c as N,d as aT,Q as Qi,n as nC,$ as $l,s as jC,g as cT,C as CE,au as Vg,av as rC,K as im,i as Ig,l as vT,H as Hg,O as Od,k as iC,P as Pd,L as Kg,F as Fg,j as jg,y as vg,ar as Zp}from'./main-3NL5M6JB.js';function w(n,t){n&1&&Ig(0,"sh-progress-bar",3);}function V(n,t){if(n&1&&(Qi(0,"a",7),Fg(1,2),Ig(2,"sh-icon"),jg(),$l()),n&2){let e=iC(2);vg("href",e.serverState()?.UpdateDownloadLink,Zp),CE(2),Vg(e.serverState()?.UpdatedVersion),rC(1);}}function B(n,t){if(n&1){let e=vT();Qi(0,"button",6),Hg("click",function(){Od(e);let s=iC();return Pd(s.checkForUpdates())}),jC(1,"Check for updates"),$l(),aT(2,V,3,2,"a",7);}if(n&2){let e=iC();Kg("loading",e.checkingForUpdates()),CE(2),cT(e.serverState()?.UpdateDownloadLink?2:-1);}}function J(n,t){if(n&1){let e=vT();Qi(0,"button",6),Hg("click",function(){Od(e);let s=iC();return Pd(s.checkForUpdates())}),jC(1,"Checking for updates \u2026"),$l();}}function X(n,t){n&1&&Ig(0,"sh-progress-bar",3);}var h=class n{#e=T(C);#n=T(Q);#t=T(m);isLoading=Ge(true);checkingForUpdates=Ge(false);serverState=this.#n.serverState;duplicatiVersion=Nt(()=>this.#t.systemInfo()?.ServerVersionName??"Unknown");generalInfo=L(this.#e.getApiV1Acknowledgements().pipe(pt(t=>t.Acknowledgements),zu(()=>this.isLoading.set(false))));checkForUpdates(){this.checkingForUpdates.set(true),this.#e.postApiV1UpdatesCheck().pipe(zu(()=>this.checkingForUpdates.set(false))).subscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let t;t=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let i;return i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[t,e,i,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,i){e&1&&(aT(0,w,1,0,"sh-progress-bar",3),Qi(1,"section")(2,"h3"),nC(3,0),$l(),Qi(4,"p"),nC(5,1),$l(),Qi(6,"div",4),aT(7,B,3,3)(8,J,2,0,"button",5),aT(9,X,1,0,"sh-progress-bar",3),$l(),Qi(10,"div"),jC(11),$l()()),e&2&&(cT(i.isLoading()?0:-1),CE(5),Vg(i.duplicatiVersion()),rC(5),CE(2),cT(i.serverState()?.UpdaterState==="Waiting"?7:i.serverState()?.UpdaterState==="Checking"?8:-1),CE(2),cT(i.serverState()?.UpdaterState==="Downloading"?9:-1),CE(2),im(i.generalInfo()));},dependencies:[d,v,N],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{h as default};
package/chunk-ByL8ndec.js DELETED
@@ -1 +0,0 @@
1
- import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,aw as W,a5 as g,ab as C,a6 as be,G as Ge,aG as pt,N as Nt,z as za,aE as jo,J as zu,at as h,h as hw,v,c as N$1,_ as _t,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,n as nC,H as Hg,p as lm,r as CD,d as aT,C as CE,au as Vg,av as rC,L as Kg,y as vg,f as NC,w as cm,x as _D,g as cT,U as UC,aU as sy,aV as ay,s as jC}from'./main-3NL5M6JB.js';import'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L,F}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';function ue(_,t){_&1&&(Qi(0,"sh-icon",20),jC(1,"spinner"),$l());}function pe(_,t){_&1&&(Qi(0,"sh-icon",21),jC(1,"check"),$l());}function he(_,t){_&1&&(Qi(0,"sh-icon",22),jC(1,"warning"),$l()),_&2&&vg("shTooltip","File not found");}function Te(_,t){let a=F(_).pipe(sy(t),ay());return L(a,{initialValue:_()})}var N=class _{#o=T(W);#s=T(g);#e=T(C);#a=T(be);#t=Ge("");backupId=L(this.#o.params.pipe(pt(t=>t.id)));activeBackup=Nt(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=Ge("");lastValidatedPath=Ge("");isValidatedPath=Nt(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=Nt(()=>this.backupFilePath()!==this.#t());isValidatingPath=Ge(false);#i=Te(this.backupFilePath,500);#n=Ge(false);isWaitingForValidation=Nt(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=za(()=>{let t=this.#i();this.activeBackup();this.#n();t!==""&&(this.isValidatingPath.set(true),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(jo(1),zu(()=>this.isValidatingPath.set(false))).subscribe(()=>this.lastValidatedPath.set(t)));});isRestoring=Ge(false);isRepairing=Ge(false);isDeleting=Ge(false);isSavingDbPath=Ge(false);isSavingAndRepairing=Ge(false);isMovingDb=Ge(false);isCreatingBugReport=Ge(false);createdReport=Ge(false);isCompacting=Ge(false);activeBackupEffect=za(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a);});repairDatabase(){this.isRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),zu(()=>this.isRepairing.set(false))).subscribe();}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t);}}):this.doDeleteDatabase(t);}doDeleteDatabase(t=null){this.isDeleting.set(true),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(jo(1),zu(()=>this.isDeleting.set(false))).subscribe(()=>{this.lastValidatedPath.set(""),t?.();});}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase();}):this.doRepairDatabase();}doRepairDatabase(){this.isRestoring.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId(),requestBody:{}}).pipe(jo(1),zu(()=>this.isRestoring.set(false))).subscribe();}resetDatabasePath(){this.backupFilePath.set(this.#t());}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t);}}):this.doSaveDatabasePath(t);}doSaveDatabasePath(t=null){this.isSavingDbPath.set(true);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(zu(()=>this.isSavingDbPath.set(false))).subscribe(()=>{this.#t.set(a),t?.();});}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),zu(()=>this.isSavingAndRepairing.set(false))).subscribe()));}moveDatabasePath(){this.isMovingDb.set(true);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(zu(()=>this.isMovingDb.set(false))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t);});}createErrorReport(){this.isCreatingBugReport.set(true),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(zu(()=>this.isCreatingBugReport.set(false))).subscribe({next:()=>{this.createdReport.set(true),window.setTimeout(()=>this.createdReport.set(false),3e3);}});}compactDatabase(){this.isCompacting.set(true),this.#e.postApiV1BackupByIdCompact({id:this.backupId()}).pipe(zu(()=>this.isCompacting.set(false))).subscribe();}static \u0275fac=function(a){return new(a||_)};static \u0275cmp=hw({type:_,selectors:[["app-database"]],decls:53,vars:24,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$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 r;r=$localize`Maintenance`;let S;S=$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. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Recreate (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SH_ICON:file-archive${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SH_ICON: Compact `;let O;O=$localize`Placement`;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let k;k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let y;return y=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,r,S,f,I,M,R,B,O,$,v,k,y,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){a&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",15)(3,"button",16),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),Qi(6,"article")(7,"h1"),nC(8,1),$l(),Qi(9,"p"),nC(10,2),$l()(),Qi(11,"article")(12,"h2"),nC(13,3),$l(),Qi(14,"p"),nC(15,4),$l(),Qi(16,"div",17)(17,"button",18),Hg("click",function(){return e.repairDatabase()}),Fg(18,5),Ig(19,"sh-icon"),jg(),$l(),Qi(20,"button",18),Hg("click",function(){return e.deleteDatabase()}),Fg(21,6),Ig(22,"sh-icon"),jg(),$l(),Qi(23,"button",18),Hg("click",function(){return e.restoreDatabase()}),Fg(24,7),Ig(25,"sh-icon"),jg(),$l(),Qi(26,"button",18),Hg("click",function(){return e.createErrorReport()}),Fg(27,8),Ig(28,"sh-icon"),jg(),$l(),Qi(29,"button",18),Hg("click",function(){return e.compactDatabase()}),Fg(30,9),Ig(31,"sh-icon"),jg(),$l()()(),Qi(32,"article")(33,"h2"),nC(34,10),$l(),Qi(35,"sh-form-field")(36,"input",19),lm("ngModelChange",function(S){return UC(e.backupFilePath,S)||(e.backupFilePath=S),S}),$l(),CD(),aT(37,ue,2,0,"sh-icon",20)(38,pe,2,0,"sh-icon",21)(39,he,2,1,"sh-icon",22),$l(),Qi(40,"div",23)(41,"button",18),Hg("click",function(){return e.resetDatabasePath()}),Fg(42,11),Ig(43,"sh-icon"),jg(),$l(),Qi(44,"button",18),Hg("click",function(){return e.saveDatabasePath()}),Fg(45,12),Ig(46,"sh-icon"),jg(),$l(),Qi(47,"button",18),Hg("click",function(){return e.saveAndRepairDatabasePath()}),Fg(48,13),Ig(49,"sh-icon"),jg(),$l(),Qi(50,"button",18),Hg("click",function(){return e.moveDatabasePath()}),Fg(51,14),Ig(52,"sh-icon"),jg(),$l()()()()),a&2&&(CE(8),Vg(e.activeBackup()?.Backup?.Name),rC(8),CE(9),Kg("loading",e.isRepairing()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isDeleting()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isRestoring()),vg("disabled",e.pathHasChanged()),CE(3),Kg("loading",e.isCreatingBugReport()),vg("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isCompacting()),vg("disabled",e.isCompacting()||!e.isValidatedPath()||e.pathHasChanged()),CE(6),NC(e.isValidatedPath()?"success":"error"),CE(),cm("ngModel",e.backupFilePath),_D(),CE(),cT(e.isWaitingForValidation()?37:e.isValidatedPath()?38:39),CE(4),vg("disabled",!e.pathHasChanged()),CE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),vg("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation()));},dependencies:[Bn,Ze,Rn,Jt,ee,v,Fe,N$1,at,_t],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}"]})};export{N as default};
package/chunk-BzJX1fKw.js DELETED
@@ -1 +0,0 @@
1
- var o=[{path:"",loadComponent:()=>import('./chunk-DM11Gu0H.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-BsNCg00z.js')},{path:"live",loadComponent:()=>import('./chunk-C7AeY2HY.js')}]}],t=o;export{t as default};
package/chunk-C7AeY2HY.js DELETED
@@ -1,2 +0,0 @@
1
- import {v as v$1}from'./chunk-Bj7EyCHb.js';import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import {c}from'./chunk-DXEgz1tV.js';import {T,E as E1,z as za,G as Ge,h as hw,c as N,v as v$2,aJ as ci,d as aT,g as cT,L as Kg,Q as Qi,n as nC,$ as $l,i as Ig,a1 as dT,k as iC,ag as Yg,y as vg,C as CE,a2 as fT,l as vT,H as Hg,O as Od,P as Pd,s as jC,aM as ob,K as im,aN as ab,aa as Ql,ap as lT}from'./main-3NL5M6JB.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),nC(1,0),$l());}function U(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),im(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Exception"),$l(),Qi(2,"ol",15),dT(3,U,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),im(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Message"),$l(),Qi(2,"ol",15),dT(3,j,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),aT(1,X,5,0),aT(2,z,5,0),$l()),t&2){let e=iC(2).$implicit;CE(),cT(e.Exception?1:-1),CE(),cT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),jC(4),$l(),Qi(5,"div",14),jC(6),$l(),Qi(7,"div",14),jC(8),$l(),Qi(9,"div",14),jC(10),$l(),Qi(11,"div",14),jC(12),$l()(),aT(13,W,3,2,"code"),$l()()),t&2){let e=iC().$implicit;CE(4),Ql("ID: ",e.ID),CE(2),Ql("Type: ",e.Type),CE(2),Ql("Tag: ",e.Tag),CE(2),Ql("TaskID: ",e.TaskID),CE(2),Ql("MessageID: ",e.MessageID),CE(),cT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=vT();Qi(0,"tr",10),Hg("click",function(){let u=Od(e).$implicit,g=iC(2);return Pd(g.toggleRow(u.ID))}),Qi(1,"td"),jC(2),ob(3,"date"),$l(),Qi(4,"td"),jC(5),$l(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),jC(9,"caret-down"),$l()()()(),aT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=iC(2);CE(2),im(ab(3,5,e.When,"medium")),CE(3),im(a.subStringMessage(e.Message)),CE(2),Kg("rotated-icon",e.ID===a.openRowId()),CE(3),cT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),nC(3,1),$l(),Qi(4,"th"),nC(5,2),$l(),Ig(6,"th",8),$l(),dT(7,q,11,8,null,null,B),Qi(9,"div",9),nC(10,3),$l()()),t&2){let e=iC();Yg("grid-template-columns","auto 1fr auto"),Kg("type-b",true),vg("data",e.logs())("loading",e.logsLoading()),CE(7),fT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=E1();backupIdFilter=E1();polling=E1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=za(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ge(null);whenEffect=za(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=za(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
2
- `):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Kg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&aT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&cT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
package/chunk-C7gG_Yh_.js DELETED
@@ -1,2 +0,0 @@
1
- import {V as Ve$1,u as ut,s as sn,o as on,p as pt,_ as _n}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import {I}from'./chunk-h6n5A491.js';import {J}from'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,h,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee$1,aw as W,bF as ve,c8 as T1,G as Ge,N as Nt,z as za,h as hw,v,c as N,a0 as de$1,u as ue,ak as dm,Q as Qi,H as Hg,i as Ig,$ as $l,d as aT,F as Fg,j as jg,al as WC,C as CE,g as cT,L as Kg,y as vg,M as qg,R as fC,a1 as dT,k as iC,ao as qC,a2 as fT,l as vT,O as Od,P as Pd,s as jC,p as lm,U as UC,n as nC,r as CD,w as cm,a3 as KC,x as _D,ap as lT,aP as ql,aQ as Gl,K as im}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"}),Vt=(o,e)=>e.uiKey;function Kt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",30)(1,"div",32)(2,"h3"),nC(3,4),$l(),Qi(4,"button",33),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),jC(5," Cancel "),Qi(6,"sh-icon"),jC(7,"x-bold"),$l()()(),Qi(8,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(3);return Pd(_.setDestination(i))}),$l()();}}function Jt(o,e){if(o&1){let t=vT();Qi(0,"div",40)(1,"sh-toggle",43),lm("checkedChange",function(i){Od(t);let _=iC(2).$implicit;return UC(_.save,i)||(_.save=i),Pd(i)}),Qi(2,"span",44),nC(3,8),$l()()();}if(o&2){let t=iC(2).$implicit;CE(),vg("color","primary")("variant","raised"),cm("checked",t.save);}}function Xt(o,e){if(o&1){let t=vT();Qi(0,"sh-toggle-card",31),ql(1,35),Qi(2,"app-destination-list-item",36)(3,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.changeDestination(i))}),jC(4,"Change"),$l(),Qi(5,"sh-menu",37),Hg("click",function(i){return i.stopPropagation()}),Qi(6,"button",38)(7,"sh-icon"),jC(8,"dots-three-vertical"),$l()(),ql(9,39),Qi(10,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.openTargetUrlDialog(i))}),Fg(11,5),Ig(12,"sh-icon"),jg(),$l(),Qi(13,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.copyTargetUrl(i))}),Fg(14,6),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.removeDestination(i))}),Fg(17,7),Ig(18,"sh-icon"),jg(),$l(),Gl(),$l()(),Gl(),aT(19,Jt,4,3,"div",40),Qi(20,"app-test-url",41,1),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTestState(_,i))}),$l(),Qi(22,"app-single-destination",42),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))}),$l()();}if(o&2){let t=iC(),n=t.$implicit,i=t.$index,_=iC(2);vg("disableToggle",true)("isActive",true),CE(2),vg("targetUrl",n.url)("connectionStringId",n.connectionStringId),CE(17),cT(n.connectionStringId?-1:19),CE(),vg("targetUrl",n.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",n.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),CE(2),vg("targetUrl",n.url)("useBackupState",true);}}function zt(o,e){if(o&1&&aT(0,Kt,9,0,"sh-card",30)(1,Xt,23,17,"sh-toggle-card",31),o&2){let t=e.$index,n=iC(2);cT(n.showCustomList()&&n.currentEditingIndex()===t?0:1);}}function Ht(o,e){if(o&1&&dT(0,zt,2,1,null,null,Vt),o&2){iC();let t=qC(0);fT(t);}}function Wt(o,e){o&1&&(Qi(0,"div",45),Ig(1,"sh-progress-bar",46),Qi(2,"div",47)(3,"h3"),nC(4,9),$l()()());}function jt(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,12),$l());}function Qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(4);CE(),im(n.getSimplePath(t.BaseUrl));}}function Yt(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",50),Hg("click",function(){let i=Od(t).$implicit,_=iC(4);return Pd(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"h3",51),jC(2),$l(),aT(3,Qt,2,1,"p",52)(4,qt,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function Zt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",48),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",47)(4,"h3"),nC(5,10),$l(),Qi(6,"p"),nC(7,11),$l()()(),aT(8,jt,2,0,"sh-divider"),dT(9,Yt,5,3,"app-destination-list-item",49,lT);}if(o&2){let t=iC(3);CE(8),cT(t.destinations().length>0?8:-1),CE(),fT(t.destinations());}}function te(o,e){if(o&1&&aT(0,Wt,5,0,"div",45)(1,Zt,11,1),o&2){let t=iC(2);cT(t.isLoadingDestinations()?0:1);}}function ee(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,15),$l());}function ne(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function ie(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(3);CE(),im(n.getSimplePath(t.BaseUrl));}}function oe(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",57),Hg("click",function(){let i=Od(t).$implicit,_=iC(3);return Pd(_.selectSavedDestination(i))}),Qi(1,"h3",51),jC(2),$l(),aT(3,ne,2,1,"p",52)(4,ie,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function ae(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l(),jC(4," Back "),$l()(),Qi(5,"sh-card",55),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.toggleCustomList())}),Qi(6,"sh-icon"),jC(7,"plus-circle"),$l(),Qi(8,"div",47)(9,"h3"),nC(10,13),$l(),Qi(11,"p"),nC(12,14),$l()()(),aT(13,ee,2,0,"sh-divider"),dT(14,oe,5,3,"app-destination-list-item",56,lT);}if(o&2){let t=iC(2);CE(13),cT(t.destinations().length>0?13:-1),CE(),fT(t.destinations());}}function re(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()(),Qi(4,"h3"),nC(5,16),$l()();}}function se(o,e){if(o&1){let t=vT();aT(0,re,6,0,"div",53),Qi(1,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(2);return Pd(_.setDestination(i))}),$l();}if(o&2){let t=iC(2),n=qC(0);cT(t.destinations().length>0||n.length>0?0:-1);}}function _e(o,e){if(o&1&&aT(0,te,2,1)(1,ae,16,1)(2,se,2,1),o&2){let t=iC(),n=qC(1);cT(!t.showCustomList()&&!n&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function le(o,e){if(o&1){let t=vT();Qi(0,"div",25)(1,"button",58),Hg("click",function(){Od(t);let i=iC();return Pd(i.startAddingNew())}),Qi(2,"sh-icon"),jC(3,"plus"),$l(),jC(4," Add another destination "),$l()();}}function ce(o,e){o&1&&(Qi(0,"h2"),nC(1,19),$l());}function de(o,e){o&1&&(Qi(0,"h2"),nC(1,20),$l());}function Ce(o,e){if(o&1){let t=vT();Qi(0,"sh-dialog",59),lm("isOpenChange",function(i){Od(t);let _=iC();return UC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),Pd(i)}),Qi(1,"header",60)(2,"div",61),aT(3,ce,2,0,"h2")(4,de,2,0,"h2"),Qi(5,"sh-alert",62),nC(6,17),$l()()(),Qi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),lm("ngModelChange",function(i){Od(t);let _=iC();return UC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),Pd(i)}),$l(),CD(),$l()(),Qi(10,"footer",65)(11,"button",27),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",66),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(true))}),Fg(14,18),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let t=iC(),n=qC(1);cm("isOpen",t.targetUrlDialogOpen),vg("options",KC(4,Bt)),CE(3),cT(n?4:3),CE(6),cm("ngModel",t.targetUrlCtrl),_D();}}var $=new jn,Be=(o={destinations:[]})=>$.group({destinations:$.array(o.destinations)}),Ve=({key:o,customGroup:e,dynamicGroup:t,advancedGroup:n})=>$.group({destinationType:$.control(o),custom:e,dynamic:t,advanced:n}),B=class o{#n=T(ee$1);#i=T(W);#t=T(Ve$1);#e=T(ut);injector=T(ve);testUrlComponents=T1();testStates=Ge([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);currentEditingIndex=Ge(null);targetUrlDialogOpen=Ge(false);showCustomList=Ge(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let e=this.targetUrlModel();return e?V(e)??null:null});isLoadingDestinationEffect=za(()=>{let e=this.isLoadingDestinations(),t=this.destinations(),n=this.targetUrls();!e&&t.length==0&&n.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let e=this.selectedDestinationType();return e?{key:e.customKey??e.key,customKey:e.customKey??null,displayName:e.displayName,description:e.description,sourceDescription:e.sourceDescription??null,icon:e.icon}:null});getConnectionString(e){let t=this.#e.destinations().find(n=>n.ID===e);return console.log("connection",t),t}getSimplePath(e){return e?h(e):""}copyTargetUrl(e=0){let t=this.targetUrls()[e]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(e=0){let t=this.targetUrls()[e]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(e),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(e=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();if(!e||t===n||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(e){let t=G(e??"");if(!t)return;let n=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${e}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),n,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=za(()=>{let e=this.targetUrls();this.testStates.update(t=>{if(t.length===e.length)return t;let n=[...t];if(n.length<e.length)for(let i=n.length;i<e.length;i++)n.push(null);else n.length=e.length;return n});});selectSavedDestination(e){e.BaseUrl&&e.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(e.BaseUrl,true,e.ID,null):(this.#t.addTargetUrl(e.BaseUrl,e.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ge(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(e){this.currentEditingIndex.set(e),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(e){this.testStates.update(t=>t.filter((n,i)=>i!==e)),this.#t.removeTargetUrl(e);}updateTargetUrl(e,t){if(!t)return;let n=this.targetUrls()[e]?.connectionStringId??null,i=this.targetUrls()[e]?.urlKey??null;this.#t.updateTargetUrl(e,t,n,i),this.updateTestState(e,null);}updateTestState(e,t){this.testStates.update(n=>{let i=[...n];return i[e]=t,i});}toggleSave(e){this.#t.toggleSaveConnectionString(e);}goBack(){this.#n.navigate(["general"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-destination"]],viewQuery:function(t,n){t&1&&qg(n.testUrlComponents,kt,5),t&2&&fC();},decls:19,vars:9,consts:()=>{let e;e=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let b;b=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],e,t,n,i,_,T,b,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1&&(dm(0)(1),Qi(2,"form",21,0),Hg("submit",function(){return n.next()}),Qi(4,"div",22),Ig(5,"input",23)(6,"input",24),$l(),Qi(7,"header"),aT(8,Ht,2,0),$l(),aT(9,_e,3,1),aT(10,le,5,0,"div",25),Qi(11,"div",26)(12,"button",27),Hg("click",function(){return n.goBack()}),Fg(13,2),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",28),Fg(16,3),Ig(17,"sh-icon"),jg(),$l()()(),aT(18,Ce,16,5,"sh-dialog",29)),t&2){let i=WC(n.targetUrls());CE();let _=WC(i.length>0);CE(7),cT(n.currentEditingIndex()!==null||!n.showCustomList()&&!n.isAddingNew()?8:-1),CE(),cT((!_||n.showCustomList()||n.isAddingNew())&&n.currentEditingIndex()===null?9:-1),CE(),cT(_&&!n.showCustomList()&&!n.isAddingNew()?10:-1),CE(5),Kg("loading",n.isNew()&&n.testStates().length>0&&n.testStates()[0]==="testing"),vg("disabled",!_),CE(3),cT(n.targetUrlDialogOpen()?18:-1);}},dependencies:[sn,on,pt,_n,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve$1,N,de$1,ue,f,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
2
- export{Be as createDestinationForm,Ve as createDestinationFormGroup,B as default};
package/chunk-CGsQCBkP.js DELETED
@@ -1 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,z as za,ai as m,aj as l,b3 as Ae$1,b4 as qu,J as zu,at as h,h as hw,v,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,C as CE,au as Vg,av as rC,g as cT,y as vg,a3 as KC,L as Kg,o as oC,i as Ig,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,a1 as dT,w as cm,a2 as fT,s as jC,aM as ob,r as CD,K as im,aN as ab,aR as sb,x as _D}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';var ue=()=>["/"],Te=(s,i)=>i.Version;function Pe(s,i){s&1&&(Qi(0,"div",11),Ig(1,"sh-progress-bar",17),Qi(2,"p"),nC(3,3),$l()());}function Oe(s,i){s&1&&(Qi(0,"div",12)(1,"p"),nC(2,4),$l()());}function Re(s,i){if(s&1){let e=vT();Qi(0,"tr")(1,"td"),jC(2),$l(),Qi(3,"td"),jC(4),ob(5,"relativeTime"),$l(),Qi(6,"td"),jC(7),ob(8,"relativeTime"),$l(),Qi(9,"td"),jC(10),ob(11,"bytes"),$l(),Qi(12,"td"),jC(13),$l(),Qi(14,"td")(15,"sh-form-field")(16,"input",24),Hg("ngModelChange",function(_){let E=Od(e).$implicit,m=iC(2);return Pd(m.updateLabel(E.Version,_))}),$l(),CD(),$l()()();}if(s&2){let e=i.$implicit,n=iC(2);CE(2),im(e.Version),CE(2),im(ab(5,7,e.Time,true)),CE(3),im(ab(8,10,e.Time,false)),CE(3),im(sb(11,13,e.FileSizes)),CE(3),im(e.FileCount),CE(3),vg("ngModel",e.EditedLabel)("disabled",n.isSaving()),_D();}}function Ae(s,i){if(s&1){let e=vT();Qi(0,"sh-table",18),lm("sortByColumnChange",function(_){Od(e);let E=iC();return UC(E.sortByColumn,_)||(E.sortByColumn=_),Pd(_)}),Qi(1,"tr",19)(2,"th",20),nC(3,5),$l(),Qi(4,"th",20),nC(5,6),$l(),Qi(6,"th",20),nC(7,7),$l(),Qi(8,"th",21),nC(9,8),$l(),Qi(10,"th",22),nC(11,9),$l(),Qi(12,"th",23),nC(13,10),$l()(),dT(14,Re,17,15,"tr",null,Te),$l();}if(s&2){let e=iC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),CE(14),fT(e.versions());}}var B=class s{#e=T(C);#i=T(be);#n=T(g);#t=T(ee);id=E1.required();backup=Nt(()=>{this.#n.backups();return this.#n.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:i})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:i.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isSaving=Ge(false);versions=Ge([]);constructor(){za(()=>{let i=this.versionsResource.value();if(i){let e=(i.Data??[]).slice().sort((n,_)=>n.Time<_.Time?1:n.Time>_.Time?-1:0);this.versions.set(e.map(n=>m(l({},n),{EditedLabel:n.Label??""})));}});}changedItems=Nt(()=>this.versions().filter(i=>(i.Label??"")!==i.EditedLabel.trim()));sortByColumn=Ge("version");updateLabel(i,e){this.versions.update(n=>n.map(_=>_.Version===i?m(l({},_),{EditedLabel:e}):_));}saveLabels(){let i=this.changedItems();i.length!==0&&(this.isSaving.set(true),Ae$1(i).pipe(qu(e=>this.#e.postApiV2BackupSetVersionLabel({requestBody:{BackupId:this.id(),Version:e.Version,Label:e.EditedLabel.trim()===""?null:e.EditedLabel.trim()}})),zu(()=>this.isSaving.set(false))).subscribe({complete:()=>{this.#t.navigate(["/"]);},error:e=>{this.#i.open(h,{data:{title:$localize`Failed to set version labels`,message:e.message??$localize`Unknown error`,confirmText:$localize`OK`,cancelText:void 0}});}}));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=hw({type:s,selectors:[["app-version-labels"]],inputs:{id:[1,"id"]},decls:10,vars:10,consts:()=>{let i;i=$localize`Set version labels for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let n;n=$localize`{VAR_PLURAL, plural, =1 {1 label} other {{INTERPOLATION} labels}}`,n=oC(n,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize` Save ${n}:ICU@@198601359091253570: `;let E;E=$localize`Fetching versions from destination...`;let m;m=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let V;V=$localize`Timestamp`;let h;h=$localize`When`;let y;y=$localize`Size`;let $;$=$localize`Files`;let v;v=$localize`Label`;let G;return G=$localize`Add label...`,[i,e,_,E,m,b,V,h,y,$,v,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","primary",3,"click","disabled"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],["type","text","placeholder",G,1,"label",3,"ngModelChange","ngModel","disabled"]]},template:function(e,n){e&1&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,Pe,4,0,"div",11)(3,Oe,3,0,"div",12)(4,Ae,16,3,"sh-table",13),Qi(5,"div",14)(6,"button",15),nC(7,1),$l(),Qi(8,"button",16),Hg("click",function(){return n.saveLabels()}),nC(9,2),$l()()),e&2&&(CE(),Vg(n.backup()?.Backup?.Name),rC(1),CE(),cT(n.isLoading()?2:n.versions().length===0?3:4),CE(4),vg("routerLink",KC(9,ue))("disabled",n.isSaving()),CE(2),Kg("loading",n.isSaving()),vg("disabled",n.isSaving()||n.changedItems().length===0||n.isLoading()),CE(),Vg(n.changedItems().length)(n.changedItems().length),rC(9));},dependencies:[Bn,Ze,Rn,Jt,v,d,ot,_t,Fe,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.label[_ngcontent-%COMP%]{width:100%}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}"]})};export{B as default};
package/chunk-CIe9Bupz.js DELETED
@@ -1 +0,0 @@
1
- import {O}from'./chunk-BmmYJhOf.js';import {B as Bn}from'./chunk-B6c2NXNy.js';import {T,ab as C,G as Ge,ac as I1,J as zu,h as hw,u as ue,v,Q as Qi,n as nC,$ as $l,a1 as dT,p as lm,U as UC,H as Hg,C as CE,a2 as fT,w as cm,L as Kg,ap as lT,l as vT,O as Od,k as iC,P as Pd,s as jC,y as vg,aa as Ql}from'./main-3NL5M6JB.js';import {U}from'./chunk-D1pDZLJ9.js';function z(l,t){if(l&1){let e=vT();Qi(0,"sh-radio",10),Hg("checkedChange",function(){let a=Od(e).$implicit,i=iC();return Pd(i.pauseOption.set(a.value))}),jC(1),$l();}if(l&2){let e=t.$implicit,n=iC();vg("checked",n.pauseOption()===e.value),CE(),Ql(" ",e.label," ");}}var B=[{label:$localize`5 minutes`,value:"5m"},{label:$localize`10 minutes`,value:"10m"},{label:$localize`15 minutes`,value:"15m"},{label:$localize`30 minutes`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],k=class l{#e=T(C);pauseOptions=Ge(B);closed=I1();isSubmitting=Ge(false);pauseTransfers=Ge(false);pauseOption=Ge(void 0);submit(){this.isSubmitting.set(true);let t=this.pauseTransfers()||null,e=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:e,pauseTransfers:t}).pipe(zu(()=>this.isSubmitting.set(false))).subscribe({next:n=>{this.closed.emit();}});}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=hw({type:l,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:3,consts:()=>{let t;t=$localize`Pause settings`;let e;e=$localize`Also pause transfers`;let n;n=$localize`If you pause transfers they could time out and cause retries or failures.`;let a;a=$localize`Cancel`;let i;return i=$localize` Update settings `,[t,e,n,a,i,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"checked"],[1,"check-wrap"],[1,"primary","raised",3,"checkedChange","checked"],["type","warning"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(e,n){e&1&&(Qi(0,"header",5)(1,"h3"),nC(2,0),$l()(),Qi(3,"div",6)(4,"div",7),dT(5,z,2,2,"sh-radio",8,lT),$l(),Qi(7,"div",9)(8,"sh-checkbox",10),lm("checkedChange",function(i){return UC(n.pauseTransfers,i)||(n.pauseTransfers=i),i}),nC(9,1),$l(),Qi(10,"sh-alert",11),nC(11,2),$l()()(),Qi(12,"footer",12)(13,"button",13),Hg("click",function(){return n.closed.emit()}),nC(14,3),$l(),Qi(15,"button",14),Hg("click",function(){return n.submit()}),nC(16,4),$l()()),e&2&&(CE(5),fT(n.pauseOptions()),CE(3),cm("checked",n.pauseTransfers),CE(7),Kg("loading",n.isSubmitting()));},dependencies:[Bn,O,U,ue,v],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"]})};export{k};
package/chunk-CIw_h8oP.js DELETED
@@ -1 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,z as za,ai as m,aj as l,at as h,J as zu,h as hw,v as v$1,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,p as lm,C as CE,au as Vg,av as rC,g as cT,y as vg,a3 as KC,L as Kg,w as cm,o as oC,U as UC,i as Ig,l as vT,O as Od,k as iC,P as Pd,a1 as dT,a2 as fT,s as jC,aM as ob,K as im,aN as ab,aR as sb}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {$}from'./chunk-DGvC49aU.js';import {U}from'./chunk-D1pDZLJ9.js';var Se=()=>["/"],ce=(l,n)=>n.Version;function Ce(l,n){l&1&&(Qi(0,"div",12),Ig(1,"sh-progress-bar",20),Qi(2,"p"),nC(3,4),$l()());}function me(l,n){l&1&&(Qi(0,"div",13)(1,"p"),nC(2,5),$l()());}function pe(l,n){if(l&1){let e=vT();Qi(0,"tr",29),Hg("click",function(i){let r=Od(e).$implicit,C=iC(2);return Pd(C.toggleSelected(r.Version,i))}),Qi(1,"td")(2,"sh-checkbox",24),Hg("click",function(i){let r=Od(e).$implicit,C=iC(2);return Pd(C.toggleSelected(r.Version,i))}),$l()(),Qi(3,"td"),jC(4),$l(),Qi(5,"td"),jC(6),ob(7,"relativeTime"),$l(),Qi(8,"td"),jC(9),ob(10,"relativeTime"),$l(),Qi(11,"td"),jC(12),ob(13,"bytes"),$l(),Qi(14,"td"),jC(15),$l(),Qi(16,"td"),jC(17),$l()();}if(l&2){let e=n.$implicit;CE(2),vg("checked",e.Selected),CE(2),im(e.Version),CE(2),im(ab(7,7,e.Time,true)),CE(3),im(ab(10,10,e.Time,false)),CE(3),im(sb(13,13,e.FileSizes)),CE(3),im(e.FileCount),CE(2),im(e.Label);}}function Te(l,n){if(l&1){let e=vT();Qi(0,"sh-table",21),lm("sortByColumnChange",function(i){Od(e);let r=iC();return UC(r.sortByColumn,i)||(r.sortByColumn=i),Pd(i)}),Qi(1,"tr",22)(2,"th",23)(3,"sh-checkbox",24),Hg("click",function(){Od(e);let i=iC();return Pd(i.toggleSelect())}),$l()(),Qi(4,"th",25),nC(5,6),$l(),Qi(6,"th",25),nC(7,7),$l(),Qi(8,"th",25),nC(9,8),$l(),Qi(10,"th",26),nC(11,9),$l(),Qi(12,"th",27),nC(13,10),$l(),Qi(14,"th",28),nC(15,11),$l()(),dT(16,pe,18,15,"tr",null,ce),$l();}if(l&2){let e=iC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),CE(3),Kg("indeterminate",e.indeterminate()),vg("checked",e.allSelected()),CE(13),fT(e.versions());}}var v=class l$1{#e=T(C);#n=T(be);#t=T(g);#i=T(ee);id=E1.required();backup=Nt(()=>{this.#t.backups();return this.#t.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:n})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:n.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isDeleting=Ge(false);performCompact=Ge(true);versions=Ge([]);constructor(){za(()=>{let n=this.versionsResource.value();if(n){let e=(n.Data??[]).slice().sort((t,i)=>t.Time<i.Time?1:t.Time>i.Time?-1:0);this.versions.set(e.map(t=>m(l({},t),{Selected:false})));}});}selectedItems=Nt(()=>this.versions().filter(n=>n.Selected));allSelected=Nt(()=>this.selectedItems().length===this.versions().length&&this.versions().length>0);noneSelected=Nt(()=>this.selectedItems().length===0);indeterminate=Nt(()=>this.selectedItems().length>0&&!this.allSelected());sortByColumn=Ge("version");toggleSelected(n,e){e?.stopPropagation(),this.versions.update(t=>t.map(i=>i.Version===n?m(l({},i),{Selected:!i.Selected}):i));}toggleSelect(){this.allSelected()?this.selectNone():this.selectAll();}selectAll(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:true})));}selectNone(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:false})));}deleteVersions(){let n=this.selectedItems();if(n.length===0)return;let e=n.length,t=n.map(i=>i.Version);this.#n.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete ${e} version(s)?`,confirmText:$localize`Delete versions`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.isDeleting.set(true),this.#e.postApiV2BackupDeleteVersions({requestBody:{BackupId:this.id(),Versions:t,SuppressCompact:!this.performCompact()}}).pipe(zu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#i.navigate(["/"]);}}));}});}static \u0275fac=function(e){return new(e||l$1)};static \u0275cmp=hw({type:l$1,selectors:[["app-delete-versions"]],inputs:{id:[1,"id"]},decls:13,vars:11,consts:()=>{let n;n=$localize`Delete versions from ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let t;t=$localize`{VAR_PLURAL, plural, =1 {1 version} other {{INTERPOLATION} versions}}`,t=oC(t,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i=$localize` Delete ${t}:ICU@@85461926550041466: `;let r;r=$localize`Compact after deletion`;let C;C=$localize`Fetching versions from destination...`;let $;$=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let B;B=$localize`Timestamp`;let G;G=$localize`When`;let k;k=$localize`Size`;let x;x=$localize`Files`;let F;return F=$localize`Label`,[n,e,i,r,C,$,b,B,G,k,x,F,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","error",3,"click","disabled"],[1,"sub-actions"],[1,"primary","raised",3,"checkedChange","checked"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content"],[1,"primary","raised",3,"click","checked"],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],[3,"click"]]},template:function(e,t){e&1&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,Ce,4,0,"div",12)(3,me,3,0,"div",13)(4,Te,18,6,"sh-table",14),Qi(5,"div",15)(6,"button",16),nC(7,1),$l(),Qi(8,"button",17),Hg("click",function(){return t.deleteVersions()}),nC(9,2),$l()(),Qi(10,"div",18)(11,"sh-checkbox",19),lm("checkedChange",function(r){return UC(t.performCompact,r)||(t.performCompact=r),r}),nC(12,3),$l()()),e&2&&(CE(),Vg(t.backup()?.Backup?.Name),rC(1),CE(),cT(t.isLoading()?2:t.versions().length===0?3:4),CE(4),vg("routerLink",KC(10,Se))("disabled",t.isDeleting()),CE(2),Kg("loading",t.isDeleting()),vg("disabled",t.isDeleting()||t.selectedItems().length===0||t.isLoading()),CE(),Vg(t.selectedItems().length)(t.selectedItems().length),rC(9),CE(2),cm("checked",t.performCompact));},dependencies:[v$1,U,d,ot,_t,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem;padding-bottom:2rem}"]})};export{v as default};
package/chunk-CP6xnjgo.js DELETED
@@ -1,3 +0,0 @@
1
- import {OptionsListComponent as Oe}from'./chunk-I5dxaHZ4.js';import {e as ee$1}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve,e as en}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c as c$1}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,G as Ge,z as za,h as hw,_ as _t,v,c as N,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,d as aT,C as CE,g as cT,aD as YC,aY as x,aZ as ee$2,l as vT,r as CD,n as nC,p as lm,O as Od,k as iC,U as UC,P as Pd,H as Hg,y as vg,a3 as KC,x as _D,w as cm,L as Kg,au as Vg,av as rC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,G as Gn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';var I=class m{#t=new Map;saveState(e){let t=x();return this.#t.set(t,e),t}getState(e){return this.#t.get(e)}static \u0275fac=function(t){return new(t||m)};static \u0275prov=ee$2({token:m,factory:m.\u0275fac,providedIn:"root"})};var Tt=()=>["backup"];function ft(m,e){m&1&&Ig(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=vT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Fg(3,1),Ig(4,"sh-icon",14),jg(),$l(),Ig(5,"input",15),CD(),$l(),Qi(6,"sh-form-field")(7,"label",16),Fg(8,2),Ig(9,"sh-icon",17),jg(),$l(),Ig(10,"textarea",18),CD(),$l(),Qi(11,"sh-form-field")(12,"label",19),Fg(13,3),Ig(14,"sh-icon",20),jg(),$l(),Ig(15,"textarea",21),CD(),$l()(),Qi(16,"sh-divider"),nC(17,4),$l(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Fg(21,5),Ig(22,"sh-icon",23),jg(),$l(),Ig(23,"input",24),CD(),$l(),Qi(24,"sh-form-field")(25,"label",25),Fg(26,6),Ig(27,"sh-icon",26),jg(),$l(),Ig(28,"input",27),CD(),$l(),Qi(29,"app-filters",28),lm("filtersChange",function(i){Od(t);let s=iC();return UC(s.filters,i)||(s.filters=i),Pd(i)}),Hg("filtersChange",function(i){Od(t);let s=iC();return Pd(s.updateFilters(i))}),$l()(),Qi(30,"app-options-list",29),lm("optionsChange",function(i){Od(t);let s=iC();return UC(s.settings,i)||(s.settings=i),Pd(i)}),$l(),Qi(31,"div",30)(32,"button",31),Hg("click",function(){Od(t);let i=iC();return Pd(i.submit())}),Fg(33,7),Ig(34,"sh-icon"),jg(),$l()();}if(m&2){let t=iC();vg("formGroup",t.baseCmdForm),CE(),vg("options",t.commandOptions()??KC(11,Tt))("inlineSearch",true),CE(4),_D(),CE(5),_D(),CE(5),_D(),CE(3),vg("formGroup",t.standardFields),CE(5),_D(),CE(5),_D(),CE(),cm("filters",t.filters),vg("osType",t.osType()??""),CE(),cm("options",t.settings),vg("hasFreeTextSettings",true),CE(2),Kg("loading",t.isSubmitting()),CE(2),Vg(t.baseCmdForm.value.command),rC(33);}}var c=new jn,$=class m$1{#t=T(Ve);#n=T(C);#o=T(ee);#e=T(W);#a=T(G);#s=T(y);#i=T(I);#r=T(m);osType=Nt$1(()=>this.#r.systemInfo()?.OSType);#l=L(this.#e.params);commandOptions=L(this.#a.getApiV1Commandline());isSubmitting=Ge(false);optionsFields=this.#t.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#t.finishedLoading;backupId=this.#t.backupId;filters=Ge([]);settings=this.#t.settings;updateFilters(e){this.standardFields.controls.filters.clear(),e.forEach(t=>this.standardFields.controls.filters.push(c.control(t))),this.filters.set(e);}#m=za(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
2
- `)??[],s=[n,...i].filter(o=>o.length>0),g=this.standardFields.value,N=g.filters??[],E=[t.command,...s,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...N.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#t.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:E}).subscribe({next:o=>{o.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",o.ID],{queryParams:{state:e}});},error:()=>{this.isSubmitting.set(false);}});}mapBaseCmdToForm(e){let t=e.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:e.Sources?.join(`
3
- `)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=hw({type:m$1,selectors:[["app-commandline"]],features:[YC([Ve])],decls:8,vars:1,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let N;N=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let E;return E=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[e,t,n,i,s,g,N,E,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"filtersChange","filters","osType"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),aT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),$l()),t&2&&(CE(6),cT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,en,Gn,gn,hn,_t,Fe,v,c$1,Nt$2,d,N,at],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}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"]})};export{$ as default};