@duplicati/ngclient 0.0.233 → 0.0.235

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/chunk-29_4gGIi.js +2 -0
  3. package/{chunk-C3gUxHQM.js → chunk-3YzyUT-a.js} +1 -1
  4. package/chunk-6-sszNfh.js +1 -0
  5. package/chunk-7T5O8Syb.js +1 -0
  6. package/{chunk-CS2J-6VZ.js → chunk-B61kkU_h.js} +1 -1
  7. package/chunk-B891gwjc.js +1 -0
  8. package/chunk-BDJqKfxm.js +1 -0
  9. package/chunk-BEUeHgR9.js +1 -0
  10. package/chunk-BEzhTDp8.js +2 -0
  11. package/{chunk-DDWDcSq2.js → chunk-BGuvkLC9.js} +1 -1
  12. package/{chunk-DXEgz1tV.js → chunk-BJOhC2d8.js} +1 -1
  13. package/chunk-BOKNwzSl.js +2 -0
  14. package/chunk-BSCc2xDv.js +1 -0
  15. package/chunk-BWSg9cLt.js +2 -0
  16. package/chunk-BWvawawS.js +2 -0
  17. package/chunk-B_I_9Y7k.js +1 -0
  18. package/chunk-Bgd5lu61.js +1 -0
  19. package/chunk-BjqgOGb9.js +2 -0
  20. package/chunk-Bq_vr6Q3.js +2 -0
  21. package/{chunk-C9OqpwwE.js → chunk-Brfc2m61.js} +1 -1
  22. package/{chunk-C9ecLR93.js → chunk-Btvi2S15.js} +11 -11
  23. package/chunk-C0KXp4hd.js +1 -0
  24. package/chunk-C0XQD9NK.js +1 -0
  25. package/chunk-C1-31fA7.js +1 -0
  26. package/chunk-C185qUb-.js +1 -0
  27. package/{chunk-CyqqlRjO.js → chunk-C1py21yb.js} +2 -2
  28. package/chunk-C4Uv1C-T.js +1 -0
  29. package/{chunk-B1c7h-_w.js → chunk-CFgDqLU0.js} +1 -1
  30. package/{chunk-aCJqF9DH.js → chunk-CGnjVnmu.js} +1 -1
  31. package/{chunk-DidJB9ig.js → chunk-CKUlUN3q.js} +1 -1
  32. package/chunk-CLlZiOaO.js +2 -0
  33. package/chunk-CQVPqpMp.js +2 -0
  34. package/chunk-CSrYlKTK.js +2 -0
  35. package/chunk-CdzKkYEw.js +2 -0
  36. package/chunk-Cj_yOpND.js +1 -0
  37. package/chunk-ClFp7JLZ.js +1 -0
  38. package/{chunk-DGvC49aU.js → chunk-Cm7JSdTO.js} +1 -1
  39. package/{chunk-D1pDZLJ9.js → chunk-CnZx831x.js} +1 -1
  40. package/chunk-CsVpmA6t.js +1 -0
  41. package/chunk-Css7wqTG.js +2 -0
  42. package/chunk-CxbeRJcJ.js +1 -0
  43. package/chunk-CzoH_Agx.js +1 -0
  44. package/chunk-CzsiJ0k-.js +1 -0
  45. package/chunk-D04TnMUn.js +2 -0
  46. package/{chunk-BstaUtD_.js → chunk-D2P9ER0I.js} +1 -1
  47. package/{chunk-mA4J4_nC.js → chunk-D38QrkIM.js} +1 -1
  48. package/chunk-D4g_OF7M.js +1 -0
  49. package/chunk-D5V6OY_2.js +2 -0
  50. package/{chunk-FTZ5atHM.js → chunk-D6IQFx6m.js} +1 -1
  51. package/chunk-D6y9RCQD.js +1 -0
  52. package/chunk-D7UddV5F.js +1 -0
  53. package/chunk-D9jPw9Ov.js +1 -0
  54. package/chunk-DA7rrIf8.js +1 -0
  55. package/chunk-DB0aGcRM.js +1 -0
  56. package/{chunk-DhiIZLrA.js → chunk-DBkkb6OR.js} +3 -3
  57. package/chunk-DE8p9-HP.js +1 -0
  58. package/chunk-DFLxy15J.js +1 -0
  59. package/chunk-DHkdQ4u3.js +3 -0
  60. package/chunk-DKRWta24.js +2 -0
  61. package/chunk-DSeMtMg3.js +1 -0
  62. package/chunk-DWCofCiP.js +14 -0
  63. package/chunk-DXLQftDm.js +1 -0
  64. package/{chunk-lymL5FDY.js → chunk-DYV1Pbu1.js} +1 -1
  65. package/chunk-DaXXLSfy.js +2 -0
  66. package/chunk-Dbq-qyNL.js +3 -0
  67. package/{chunk-8Y8ReLEn.js → chunk-DkVHfoYw.js} +2 -2
  68. package/chunk-DmCJ7w-M.js +1 -0
  69. package/{chunk-MDqH8T3Z.js → chunk-DneBfCBh.js} +2 -2
  70. package/{chunk-CX3Axjpk.js → chunk-DuRr4rDS.js} +1 -1
  71. package/chunk-Dv_fBX0w.js +1 -0
  72. package/chunk-IqMUABbN.js +1 -0
  73. package/chunk-Kq2ZFJSk.js +1 -0
  74. package/chunk-NAAMYA7J.js +1 -0
  75. package/chunk-NiMN4Rl6.js +1 -0
  76. package/chunk-OQ_HQ9EL.js +1 -0
  77. package/chunk-W1dL7dqQ.js +4 -0
  78. package/chunk-_OzpLe0L.js +1 -0
  79. package/chunk-ayE11Iz-.js +1 -0
  80. package/chunk-fDWfSg6Y.js +3 -0
  81. package/chunk-gId840Er.js +1 -0
  82. package/{chunk-B6c2NXNy.js → chunk-iGzJokt-.js} +1 -1
  83. package/{chunk-BmmYJhOf.js → chunk-iU19kwHx.js} +1 -1
  84. package/chunk-m8vMm7S6.js +1 -0
  85. package/chunk-xD8qjoz4.js +1 -0
  86. package/chunk-xI8Kkqgy.js +1 -0
  87. package/{chunk-h6n5A491.js → chunk-zOY5leQB.js} +1 -1
  88. package/index.html +1 -1
  89. package/main-2ZYVV4C4.js +21 -0
  90. package/package.json +1 -1
  91. package/assets/dest-icons/sia_logo_dark.92db63f5.svg +0 -6
  92. package/chunk-AuCOjHXM.js +0 -1
  93. package/chunk-B1wZ4poV.js +0 -1
  94. package/chunk-B5Y6lgE8.js +0 -1
  95. package/chunk-BZgAzrl9.js +0 -2
  96. package/chunk-B_cIFQAl.js +0 -1
  97. package/chunk-BaSm1lsB.js +0 -2
  98. package/chunk-Bgw6E0Xu.js +0 -2
  99. package/chunk-Bj7EyCHb.js +0 -1
  100. package/chunk-BrtdRb9j.js +0 -1
  101. package/chunk-BsNCg00z.js +0 -2
  102. package/chunk-BxpXVeOr.js +0 -1
  103. package/chunk-ByL8ndec.js +0 -1
  104. package/chunk-BzJX1fKw.js +0 -1
  105. package/chunk-C7AeY2HY.js +0 -2
  106. package/chunk-C7gG_Yh_.js +0 -2
  107. package/chunk-CGsQCBkP.js +0 -1
  108. package/chunk-CIe9Bupz.js +0 -1
  109. package/chunk-CIw_h8oP.js +0 -1
  110. package/chunk-CP6xnjgo.js +0 -3
  111. package/chunk-CWgXi-7W.js +0 -1
  112. package/chunk-Ca1aaA1h.js +0 -1
  113. package/chunk-CfxBiw7I.js +0 -1
  114. package/chunk-CgJAbgNN.js +0 -1
  115. package/chunk-ChUm8bnG.js +0 -1
  116. package/chunk-CkRbgemk.js +0 -2
  117. package/chunk-ClRItSzt.js +0 -1
  118. package/chunk-CsIAXoYP.js +0 -1
  119. package/chunk-CuJ_uEdr.js +0 -1
  120. package/chunk-CvSsZZty.js +0 -1
  121. package/chunk-D2G7_0hG.js +0 -2
  122. package/chunk-D3PhthfU.js +0 -2
  123. package/chunk-D55uWC7G.js +0 -1
  124. package/chunk-DD_wKpGc.js +0 -1
  125. package/chunk-DGxk44Me.js +0 -2
  126. package/chunk-DM11Gu0H.js +0 -1
  127. package/chunk-DV8bRznt.js +0 -2
  128. package/chunk-DWiO0A6h.js +0 -2
  129. package/chunk-DbbyVAGl.js +0 -1
  130. package/chunk-DcdpG1YG.js +0 -3
  131. package/chunk-Dk-Wgx3e.js +0 -1
  132. package/chunk-DuYKanVS.js +0 -1
  133. package/chunk-DwmssGG9.js +0 -2
  134. package/chunk-DxFBzFom.js +0 -1
  135. package/chunk-Dz5guW4b.js +0 -3
  136. package/chunk-I5dxaHZ4.js +0 -2
  137. package/chunk-K2iai6rC.js +0 -1
  138. package/chunk-L8hQtTzU.js +0 -1
  139. package/chunk-Y-xXBGKy.js +0 -1
  140. package/chunk-Z81HNfgo.js +0 -1
  141. package/chunk-aYCYzU5Q.js +0 -1
  142. package/chunk-bt6lhYfG.js +0 -1
  143. package/chunk-eiyaQxBt.js +0 -1
  144. package/chunk-jy8x4GhV.js +0 -1
  145. package/chunk-ksSA-rDF.js +0 -1
  146. package/chunk-mflQLMHH.js +0 -2
  147. package/chunk-nuwlP4Wz.js +0 -14
  148. package/chunk-uGh0bVbu.js +0 -4
  149. package/main-3NL5M6JB.js +0 -16
package/chunk-Dk-Wgx3e.js DELETED
@@ -1 +0,0 @@
1
- import {w}from'./chunk-BstaUtD_.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {I}from'./chunk-h6n5A491.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import {c as c$1}from'./chunk-C3gUxHQM.js';import {D}from'./chunk-DidJB9ig.js';import {T,aw as W,a5 as g,G as Ge,aG as pt$1,N as Nt$1,h as hw,_ as _t$1,c as N,v,aH as m,aI as c,aJ as ci,l as vT,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,ak as dm,d as aT,p as lm,n as nC,C as CE,al as WC,g as cT,w as cm,O as Od,U as UC,P as Pd,ab as C,E as E1,aK as mb,ay as Qu,J as zu,aL as hi,a1 as dT,a2 as fT,o as oC,s as jC,aM as ob,k as iC,ao as qC,aa as Ql,aN as ab,y as vg,aj as l,ap as lT,H as Hg,K as im,aB as sm,L as Kg,aO as am,aP as ql,aQ as Gl,aR as sb,au as Vg,av as rC,aS as cb,aT as dy}from'./main-3NL5M6JB.js';import {d}from'./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';function Dn(n,t){n&1&&Ig(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&Ig(0,"div",61);}function Rn(n,t){n&1&&Ig(0,"div",61);}function In(n,t){n&1&&Ig(0,"div",62);}function $n(n,t){n&1&&Ig(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,15),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,16),ob(9,"date"),$l(),Qi(10,"p"),nC(11,17),ob(12,"date"),$l(),Qi(13,"p"),nC(14,18),ob(15,"durationFormat"),$l(),Qi(16,"p"),nC(17,19),$l(),Ig(18,"sh-divider"),Qi(19,"p"),nC(20,20),$l(),Qi(21,"p"),nC(22,21),$l()()(),Qi(23,"details",72)(24,"summary"),Fg(25,22),Ig(26,"sh-icon"),Qi(27,"div",74),Ig(28,"sh-icon",66),$l(),jg(),$l(),Qi(29,"div",75)(30,"p"),nC(31,23),ob(32,"date"),$l(),Qi(33,"p"),nC(34,24),ob(35,"date"),$l(),Qi(36,"p"),nC(37,25),ob(38,"durationFormat"),$l(),Ig(39,"sh-divider"),Qi(40,"p"),nC(41,26),ob(42,"bytes"),$l(),Qi(43,"p"),nC(44,27),ob(45,"bytes"),$l(),Qi(46,"p"),nC(47,28),ob(48,"bytes"),$l(),Ig(49,"sh-divider"),Qi(50,"p"),nC(51,29),$l(),Qi(52,"p"),nC(53,30),$l()()()),n&2){let e=iC(2).$implicit;CE(9),Vg(ab(9,17,e.data?.TestResults?.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,20,e.data?.TestResults?.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,23,e.data?.TestResults?.Duration)),rC(14),CE(2),Vg(e.data?.TestResults?.VerificationsActualLength),rC(17),CE(3),Vg(e.data?.TestResults?.WarningsActualLength),rC(20),CE(2),Vg(e.data?.TestResults?.ErrorsActualLength),rC(22),CE(10),Vg(ab(32,25,e.data?.CompactResults?.BeginTime,"medium")),rC(31),CE(3),Vg(ab(35,28,e.data?.CompactResults?.EndTime,"medium")),rC(34),CE(3),Vg(sb(38,31,e.data?.CompactResults?.Duration)),rC(37),CE(4),Vg(e.data?.CompactResults?.DeletedFileCount)(cb(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),rC(41),CE(3),Vg(e.data?.CompactResults?.DownloadedFileCount)(cb(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),rC(44),CE(3),Vg(e.data?.CompactResults?.UploadedFileCount)(cb(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),rC(47),CE(3),Vg(e.data?.CompactResults?.WarningsActualLength),rC(51),CE(2),Vg(e.data?.CompactResults?.ErrorsActualLength),rC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),jC(1,"No messages"),$l());}function hn(n,t){n&1&&(Fg(0,43,1),Ig(1,"sh-icon"),jg());}function yn(n,t){n&1&&(Fg(0,43,2),Ig(1,"sh-icon"),jg());}function vn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,43),aT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),jC(1,"No warnings"),$l());}function xn(n,t){n&1&&(Fg(0,44,1),Ig(1,"sh-icon"),jg());}function bn(n,t){n&1&&(Fg(0,44,2),Ig(1,"sh-icon"),jg());}function kn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,44),aT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function Un(n,t){n&1&&(Fg(0,45,1),Ig(1,"sh-icon"),jg());}function wn(n,t){n&1&&(Fg(0,45,2),Ig(1,"sh-icon"),jg());}function Jn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,45),aT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,31),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,32),ob(9,"date"),$l(),Qi(10,"p"),nC(11,33),ob(12,"date"),$l(),Qi(13,"p"),nC(14,34),ob(15,"durationFormat"),$l(),Ig(16,"sh-divider"),Qi(17,"p"),nC(18,35),ob(19,"bytes"),$l(),Qi(20,"p"),nC(21,36),$l(),Qi(22,"p"),nC(23,37),$l(),Qi(24,"p"),nC(25,38),$l(),Qi(26,"p"),nC(27,39),$l(),Ig(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Fg(31,40),Ig(32,"sh-icon"),Qi(33,"div",74),Ig(34,"sh-icon",66),$l(),jg(),$l(),Qi(35,"div",75),aT(36,fn,2,0,"p"),dT(37,vn,7,2,"div",76,lT),$l()(),Qi(39,"details",79)(40,"summary"),Fg(41,41),Ig(42,"sh-icon"),Qi(43,"div",74),Ig(44,"sh-icon",66),$l(),jg(),$l(),Qi(45,"div",75),aT(46,Bn,2,0,"p"),dT(47,kn,7,2,"div",76,lT),$l()(),Qi(49,"details",80)(50,"summary"),Fg(51,42),Ig(52,"sh-icon"),Qi(53,"div",74),Ig(54,"sh-icon",66),$l(),jg(),$l(),Qi(55,"div",75),aT(56,Kn,2,0,"p"),dT(57,Jn,7,2,"div",76,lT),$l()(),Ig(59,"sh-divider"),$l()()),n&2){let e=t.$implicit;CE(5),Vg(e.Destination),rC(2),CE(4),Vg(ab(9,16,e.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,19,e.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,22,e.Duration)),rC(14),CE(4),Vg(e.CopiedFileCount)(cb(19,24,e.CopiedFileSize,true,true)),rC(18),CE(2),Vg(e.DeletedFileCount),rC(21),CE(2),Vg(e.RenamedFileCount),rC(23),CE(2),Vg(e.VerifiedFileCount),rC(25),CE(2),Vg(e.FailedVerificationCount),rC(27),CE(7),Vg(e.MessagesActualLength),rC(31),CE(2),cT(e.Messages?.length===0?36:-1),CE(),fT(e.Messages),CE(7),Vg(e.WarningsActualLength),rC(41),CE(2),cT(e.Warnings?.length===0?46:-1),CE(),fT(e.Warnings),CE(7),Vg(e.ErrorsActualLength),rC(51),CE(2),cT(e.Errors?.length===0?56:-1),CE(),fT(e.Errors);}}function zn(n,t){if(n&1&&dT(0,Xn,60,28,"details",72,lT),n&2){let e=iC(2).$implicit;fT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,46),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,47),ob(9,"date"),$l(),Qi(10,"p"),nC(11,48),ob(12,"date"),$l(),Qi(13,"p"),nC(14,49),ob(15,"durationFormat"),$l(),Ig(16,"sh-divider"),Qi(17,"p"),nC(18,50),$l(),Qi(19,"p"),nC(20,51),$l(),Qi(21,"p"),nC(22,52),$l()()()),n&2){let e=iC(2).$implicit;CE(9),Vg(ab(9,6,e.data?.LockResults?.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,9,e.data?.LockResults?.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,12,e.data?.LockResults?.Duration)),rC(14),CE(3),Vg(e.data?.LockResults?.VolumesRead),rC(18),CE(2),Vg(e.data?.LockResults?.VolumesUpdated),rC(20),CE(2),Vg(e.data?.LockResults?.ParsedResult),rC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),jC(1),ob(2,"json"),$l()),n&2){let e=t.$implicit;CE(),im(sb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,53),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75),dT(7,Hn,3,3,"code",null,lT),$l()()),n&2){let e=iC(2).$implicit;CE(5),Vg(e.data.VerificationsActualLength),rC(2),CE(2),fT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function Qn(n,t){n&1&&(ql(0),Fg(1,54),Ig(2,"sh-icon"),jg(),Gl());}function Yn(n,t){n&1&&(ql(0),Fg(1,55),Ig(2,"sh-icon"),jg(),Gl());}function Zn(n,t){n&1&&(ql(0),Fg(1,56),Ig(2,"sh-icon"),jg(),Gl());}function et(n,t){if(n&1){let e=vT();Qi(0,"button",82),Hg("click",function(){Od(e),iC();let F=qC(0),c=iC(3);return Pd(c.toggleWarningSuppression(F.MessageId))}),aT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),$l();}if(n&2){iC();let e=qC(0),o=iC(3),F=o.isWarningSuppressed(e.MessageId);vg("disabled",o.isSuppressingWarning()),CE(),cT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=vT();dm(0),Qi(1,"div",76)(2,"code"),jC(3),$l(),Qi(4,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(3);return Pd(L.copyToClipboard(F,c,c))}),jC(5," Copy "),aT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),$l(),aT(8,et,4,2,"button",81),$l();}if(n&2){let e=t.$implicit,o=iC(3),F=WC(o.parseWarning(e));CE(3),im(e),CE(3),cT(o.copied()==e?6:7),CE(2),cT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function it(n,t){n&1&&(Fg(0,57,1),Ig(1,"sh-icon"),jg());}function ot(n,t){n&1&&(Fg(0,57,2),Ig(1,"sh-icon"),jg());}function _t(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(3);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,57),aT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(3);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function rt(n,t){if(n&1){let e=vT();Qi(0,"section",67)(1,"sh-toggle-card",68),ql(2,69),Qi(3,"h3"),nC(4,0),$l(),Gl(),ql(5,70),Qi(6,"p"),nC(7,1),ob(8,"date"),$l(),Qi(9,"p"),nC(10,2),ob(11,"date"),$l(),Qi(12,"p"),nC(13,3),ob(14,"durationFormat"),$l(),Gl(),$l(),Qi(15,"sh-toggle-card",68),ql(16,69),Qi(17,"h3"),nC(18,4),$l(),Gl(),ql(19,70),Qi(20,"p"),nC(21,5),ob(22,"bytes"),$l(),Qi(23,"p"),nC(24,6),ob(25,"bytes"),$l(),Qi(26,"p"),nC(27,7),ob(28,"bytes"),$l(),Qi(29,"p"),nC(30,8),ob(31,"bytes"),$l(),Qi(32,"p"),nC(33,9),$l(),Qi(34,"p"),nC(35,10),$l(),Qi(36,"p"),nC(37,11),$l(),Gl(),$l(),Qi(38,"div",71),Ig(39,"sh-divider"),aT(40,Mn,54,45),aT(41,zn,2,0),aT(42,Vn,23,14,"details",72),aT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Fg(46,12),Ig(47,"sh-icon"),Qi(48,"div",74),Ig(49,"sh-icon",66),$l(),jg(),$l(),Qi(50,"div",75),dT(51,nt,9,4,"div",76,lT),$l()(),Qi(53,"details",73)(54,"summary"),Fg(55,13),Ig(56,"sh-icon"),Qi(57,"div",74),Ig(58,"sh-icon",66),$l(),jg(),$l(),Qi(59,"div",75),aT(60,tt,2,0,"p"),dT(61,_t,7,2,"div",76,lT),$l()(),Ig(63,"sh-divider"),Qi(64,"details")(65,"summary"),Fg(66,14),Ig(67,"sh-icon"),Qi(68,"div",74),Ig(69,"sh-icon",66),$l(),jg(),$l(),Qi(70,"code")(71,"button",77),Hg("click",function(F){Od(e);let c=iC().$implicit,L=iC();return Pd(L.copyToClipboard(F,L.stringify(c.data),"all"))}),jC(72," Copy "),aT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),$l(),jC(75),ob(76,"json"),$l()()()();}if(n&2){let e=iC().$implicit,o=iC();CE(),vg("disableToggle",true),CE(7),Vg(ab(8,27,e.data?.BeginTime,"medium")),rC(7),CE(3),Vg(ab(11,30,e.data?.EndTime,"medium")),rC(10),CE(3),Vg(sb(14,33,e.data?.Duration)),rC(13),CE(),vg("disableToggle",true),CE(7),Vg(e.data?.ExaminedFiles)(cb(22,35,e.data?.SizeOfExaminedFiles,true,true)),rC(21),CE(3),Vg(e.data?.OpenedFiles)(cb(25,39,e.data?.SizeOfOpenedFiles,true,true)),rC(24),CE(3),Vg(e.data?.AddedFiles)(cb(28,43,e.data?.SizeOfAddedFiles,true,true)),rC(27),CE(3),Vg(e.data?.ModifiedFiles)(cb(31,47,e.data?.SizeOfModifiedFiles,true,true)),rC(30),CE(2),Vg(e.data?.DeletedFiles),rC(33),CE(2),Vg(e.data?.TooLargeFiles),rC(35),CE(2),Vg(e.data?.FilesWithError),rC(37),CE(3),cT(e.data?.TestResults?40:-1),CE(),cT(e.data?.RemoteSynchronizationResults?41:-1),CE(),cT(e.data?.LockResults?42:-1),CE(),cT(e.data?.MainOperation==="Test"?43:-1),CE(),vg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),CE(5),Vg(e.data?.WarningsActualLength),rC(46),CE(2),fT(e.data?.Warnings),CE(2),vg("open",e.id===o.openEntry()&&o.openSection()==="errors"),CE(5),Vg(e.data?.ErrorsActualLength),rC(55),CE(2),cT(e.data?.Errors?.length===0?60:-1),CE(),fT(e.data?.Errors),CE(12),cT(o.copied()=="all"?73:74),CE(2),Ql(" ",sb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=vT();Qi(0,"article",59)(1,"header",60),Hg("click",function(){let F=Od(e).$implicit,c=iC();return Pd(c.toggleOpenEntry(F))}),aT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),jC(7),ob(8,"date"),$l(),Qi(9,"p"),jC(10),$l(),Ig(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),jC(14,"caret-down"),$l()()(),aT(15,rt,77,53,"section",67),$l();}if(n&2){let e=t.$implicit,o=iC(),F=e.data?.ParsedResult||"Unknown";CE(2),cT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),CE(5),im(ab(8,7,e.timestamp,"medium")),CE(3),sm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),CE(3),Kg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=E1.required();isSuppressingWarning=Ge(false);copied=Ge(null);backupResource=mb({params:()=>({id:this.backupId()}),loader:({params:t})=>dy(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ge(null);openSection=Ge(null);pagination=Ge({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe(Qu(o=>{let F=o.Backup?.Settings??[],c=F.findIndex(N=>N.Name==="--suppress-warnings"),L=this.isWarningSuppressed(t),G="";if(c>=0){let v=(F[c].Value??"").split(",").map(U=>U.trim()).filter(Boolean);L?v=v.filter(U=>U!==t):v.includes(t)||v.push(t),G=v.join(",");}else L||(G=t);let k=F.map(N=>({Name:N.Name,Value:N.Value,Filter:N.Filter}));return c>=0?G===""?k.splice(c,1):k[c]={Name:"--suppress-warnings",Value:G,Filter:null}:G!==""&&k.push({Name:"--suppress-warnings",Value:G,Filter:null}),this.#e.putApiV1BackupById({id:e,requestBody:{Backup:{Name:o.Backup?.Name,Description:o.Backup?.Description,DBPath:o.Backup?.DBPath,Tags:o.Backup?.Tags??[],TargetURL:o.Backup?.TargetURL,ConnectionStringID:o.Backup?.ConnectionStringID,Sources:o.Backup?.Sources??[],Settings:k,Filters:o.Backup?.Filters?.map(N=>({Expression:N.Expression,Include:N.Include,Order:N.Order})),Metadata:o.Backup?.Metadata??{},AdditionalTargetURLs:o.Backup?.AdditionalTargetURLs?.map(N=>({TargetUrl:N.TargetUrl,UrlKey:N.UrlKey,Mode:N.Mode,Interval:N.Interval,ConnectionStringID:N.ConnectionStringID,Options:N.Options}))},Schedule:o.Schedule?{Repeat:o.Schedule.Repeat,Time:o.Schedule.Time,AllowedDays:o.Schedule.AllowedDays}:void 0}})}),zu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=oC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=oC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=oC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=oC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=oC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=oC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=oC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=oC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=oC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=oC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=oC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=oC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=oC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=oC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=oC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(aT(0,Dn,1,0,"sh-progress-bar",58),dT(1,lt,16,10,"article",59,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&Ig(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Fg(0,0,1),Ig(1,"sh-icon"),jg());}function ut(n,t){n&1&&(Fg(0,0,2),Ig(1,"sh-icon"),jg());}function dt(n,t){if(n&1){let e=vT();Qi(0,"section",6)(1,"button",7),Hg("click",function(){Od(e);let F=iC(),c=F.$implicit,L=F.$index,G=iC();return Pd(G.copyToClipboard(c.data,L))}),Fg(2,0),aT(3,ct,2,0)(4,ut,2,0),jg(),$l(),Qi(5,"code"),jC(6),ob(7,"json"),$l()();}if(n&2){let e=iC(),o=e.$implicit,F=e.$index,c=iC();CE(),Kg("success",c.copiedFromIndex()===F),CE(2),cT(c.copiedFromIndex()===F?3:4),CE(3),im(sb(7,4,o.data));}}function Et(n,t){if(n&1){let e=vT();Qi(0,"article",2)(1,"header",3),Hg("click",function(){let F=Od(e).$implicit,c=iC();return Pd(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),jC(3),ob(4,"date"),$l(),Qi(5,"div",4)(6,"sh-icon",5),jC(7,"caret-down"),$l()()(),aT(8,dt,8,6,"section",6),$l();}if(n&2){let e=t.$implicit,o=iC();CE(3),am("",ab(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),CE(3),Kg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=E1.required();openEntry=Ge(null);pagination=Ge({offset:0,pagesize:100});copiedFromIndex=Ge(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=oC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(aT(0,st,1,0,"sh-progress-bar",1),dT(1,Et,9,9,"article",2,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(jC(0," - "),ql(1),nC(2,6),Gl(),jC(3),ob(4,"durationFormat")),n&2){iC(2);let e=qC(6);CE(3),Ql(" ",sb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(ql(0),nC(1,7),Gl());}function Tt(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(ql(0),nC(1,8),Gl());}function St(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(ql(0),nC(1,9),Gl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),nC(1,10),$l()),n&2){iC(2);let e=qC(6);CE(),Vg(e.Backup.Metadata?.BackupListCount),rC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),nC(1,11),$l());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),jC(3),Qi(4,"sh-icon"),jC(5,"database"),$l()(),Qi(6,"p")(7,"span"),nC(8,3),$l(),jC(9),ob(10,"date"),aT(11,Ct,5,3)(12,pt,2,0,"ng-container"),$l(),Qi(13,"p")(14,"span"),nC(15,4),$l(),aT(16,Tt,2,3)(17,gt,2,0,"ng-container"),$l(),Qi(18,"p")(19,"span"),nC(20,5),$l(),aT(21,St,2,3)(22,Ot,2,0,"ng-container"),$l()(),aT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),$l()),n&2){let e=iC(),o=qC(6);CE(3),Ql(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),CE(6),Ql(" ",ab(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),CE(2),cT(o.Backup.Metadata?.LastBackupDuration?11:12),CE(5),cT(o.Backup.Metadata?.SourceFilesSize?16:17),CE(5),cT(o.Backup.Metadata?.TargetFilesSize?21:22),CE(2),cT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&Ig(0,"app-general-log",18),n&2){let e=iC();vg("backupId",e.backupId());}}function At(n,t){if(n&1&&Ig(0,"app-remote-log",18),n&2){let e=iC();vg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ge("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=vT();Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),dm(6),aT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),lm("valueChange",function(L){return Od(F),UC(o.activeTab,L)||(o.activeTab=L),Pd(L)}),Qi(9,"button",16),nC(10,1),$l(),Qi(11,"button",17),nC(12,2),$l()(),aT(13,Gt,1,1,"app-general-log",18),aT(14,At,1,1,"app-remote-log",18),$l();}if(e&2){CE(6);let F=WC(o.backup());CE(),cT(F?7:-1),CE(),cm("value",o.activeTab),CE(5),cT(o.activeTab()==="general"?13:-1),CE(),cT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.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)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] 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)}"]})};export{Re as default};
package/chunk-DuYKanVS.js DELETED
@@ -1 +0,0 @@
1
- import {w as w$1}from'./chunk-C9OqpwwE.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 {T,aw as W,a5 as g,ab as C,z as za,aE as jo,h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,d as aT,n as nC,$ as $l,C as CE,g as cT,y as vg,aF as XC,aD as YC,s as jC,k as iC,aa as Ql}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import {d}from'./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 G=(i,e)=>[i,e,"general"],$=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],K=(i,e)=>[i,e,"schedule"],F=(i,e)=>[i,e,"options"];function w(i,e){if(i&1&&(Qi(0,"p"),jC(1),$l()),i&2){let t=iC();CE(),Ql("Editing: ",t.backupName());}}function J(i,e){i&1&&Ig(0,"sh-progress-bar",7);}function X(i,e){i&1&&(Qi(0,"section"),Ig(1,"router-outlet"),$l());}var P=class i{#t=T(W);#e=T(Ve);#i=T(g);#n=T(C);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#a=L(this.#t.params);#o=L(this.#t.url);paramsChanged=za(()=>{let e=this.#a()?.id,t=!!this.#o()?.find(n=>n.path==="backup-draft");e!=this.#e.backupId()&&(this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults());});getDefaults(){this.#n.getApiV1Backupdefaults().pipe(jo(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(true);}});}getBackup(e,t=false){let n=a=>{this.#e.mapScheduleToForm(a.Schedule??null),a.Backup&&(this.#e.mapGeneralToForm(a.Backup),this.#e.mapDestinationToForm(a.Backup),this.#e.mapSourceDataToForm(a.Backup),this.#e.mapOptionsToForms(a.Backup),this.#e.storeMetadata(a.Backup,t)),this.#e.finishedLoading.set(true);};if(t){this.isDraft.set(t);let a=this.#i.draftBackups().find(d=>d.id===e);if(!a){alert("Backup not found");return}n(a.data);}else this.#n.getApiV1BackupById({id:e}).subscribe({next:n});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=hw({type:i,selectors:[["app-backup"]],features:[YC([Ve])],decls:16,vars:22,consts:()=>{let e;e=$localize` General `;let t;t=$localize` Destination `;let n;n=$localize` Source Data `;let a;a=$localize` Schedule `;let d;return d=$localize` Options `,[e,t,n,a,d,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Qi(1,"header"),aT(2,w,2,1,"p"),Qi(3,"sh-stepper",5)(4,"div",6),nC(5,0),$l(),Qi(6,"div",6),nC(7,1),$l(),Qi(8,"div",6),nC(9,2),$l(),Qi(10,"div",6),nC(11,3),$l(),Qi(12,"div",6),nC(13,4),$l()()(),aT(14,J,1,0,"sh-progress-bar",7)(15,X,2,0,"section")),t&2&&(CE(2),cT(n.isNew()?-1:2),CE(2),vg("routerLink",XC(7,G,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(10,$,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(13,U,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(16,K,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(19,F,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),cT(n.finishedLoading()?15:14));},dependencies:[lr,_t,To,ee,w$1,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"]})};export{P as default};
package/chunk-DwmssGG9.js DELETED
@@ -1,2 +0,0 @@
1
- import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {u as ut,_ as _n,p as pt,o as on,s as sn}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 {h,G,V}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,a5 as g,a6 as be$1,D as w1,G as Ge$1,N as Nt,z as za,at as h$1,h as hw,v,c as N,i as Ig,Q as Qi,d as aT,$ as $l,C as CE,g as cT,o as oC,M as qg,R as fC,n as nC,k as iC,l as vT,H as Hg,O as Od,P as Pd,s as jC,F as Fg,j as jg,au as Vg,av as rC,L as Kg,y as vg,a1 as dT,ap as lT,a2 as fT,p as lm,U as UC,r as CD,w as cm,x as _D,K as im}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}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';function Ee(n,t){n&1&&(Qi(0,"div",13),Ig(1,"sh-progress-bar",14),Qi(2,"div",15)(3,"h3"),nC(4,2),$l()()());}function Fe(n,t){n&1&&(Qi(0,"sh-divider"),nC(1,5),$l());}function Ie(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit;CE(),im(e.Description);}}function Ne(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit,o=iC(3);CE(),im(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=vT();Qi(0,"button",25),Hg("click",function(i){Od(e);let r=iC().$implicit,f=iC(3);return Pd(f.updateBackupsSync(r,i))}),jC(1," Update backups "),$l();}if(n&2){let e=iC(4);vg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",18),Hg("click",function(){let i=Od(e).$implicit,r=iC(3);return Pd(r.selectDestination(i))}),Qi(1,"h3",19),jC(2),$l(),aT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Qi(5,"div",21),aT(6,ye,2,1,"button",22),Qi(7,"button",23),Hg("click",function(i){let r=Od(e).$implicit,f=iC(3);return Pd(f.deleteDestination(r.ID,i))}),Qi(8,"sh-icon"),jC(9,"trash"),$l()(),Qi(10,"button",24),Fg(11,6),Ig(12,"sh-icon"),jg(),$l()()();}if(n&2){let e=t.$implicit,o=iC(3);vg("targetUrl",e.BaseUrl),CE(2),im(e.Name||e.BaseUrl),CE(),cT(e.Description?3:4),CE(3),cT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=vT();Qi(0,"sh-card",16),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.selectDestination("new"))})("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",15)(4,"h3"),nC(5,3),$l(),Qi(6,"p"),nC(7,4),$l()()(),aT(8,Fe,2,0,"sh-divider"),dT(9,he,13,4,"app-destination-list-item",17,lT);}if(n&2){let e=iC(2);CE(8),cT(e.destinations().length>0?8:-1),CE(),fT(e.destinations());}}function xe(n,t){if(n&1&&(Qi(0,"h2"),nC(1,1),$l(),aT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=iC();CE(2),cT(e.isLoading()?2:3);}}function Be(n,t){n&1&&nC(0,10,1);}function Pe(n,t){n&1&&nC(0,10,2);}function Ae(n,t){n&1&&nC(0,10,3);}function Me(n,t){if(n&1){let e=vT();Qi(0,"button",37),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.testDestination())}),Fg(1,10),aT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),jg(),$l();}if(n&2){let e=iC(2);vg("disabled",e.testSignal()=="testing"),CE(2),cT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=vT();Qi(0,"div",32)(1,"sh-form-field")(2,"label"),nC(3,11),$l(),Qi(4,"input",38),lm("ngModelChange",function(i){Od(e);let r=iC(2);return UC(r.editName,i)||(r.editName=i),Pd(i)}),$l(),CD(),$l()();}if(n&2){let e=iC(2);CE(4),cm("ngModel",e.editName),_D();}}function $e(n,t){if(n&1){let e=vT();Qi(0,"app-test-url",39,0),lm("targetUrlChange",function(i){Od(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Pd(i)})("testSignalChange",function(i){Od(e);let r=iC(2);return UC(r.testSignal,i)||(r.testSignal=i),Pd(i)}),$l();}if(n&2){let e=iC(2);cm("targetUrl",e.editBaseUrl)("testSignal",e.testSignal),vg("connectionStringId",e.selectedDestinationId())("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",true)("askToCreate",true)("testExpectation","any")("readOnlyTest",false)("moduleType","Backend");}}function ke(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",40)(1,"button",41),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.removeDestination())}),nC(2,12),$l()(),Qi(3,"app-single-destination",42),lm("targetUrlChange",function(i){Od(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Pd(i)}),$l();}if(n&2){let e=iC(2);vg("targetUrl",e.editBaseUrl()),CE(3),cm("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list",43),Hg("setDestination",function(i){Od(e);let r=iC(2);return Pd(r.setDestination(i))}),$l();}}function Le(n,t){n&1&&nC(0,9,1);}function we(n,t){n&1&&nC(0,9,2);}function Ue(n,t){n&1&&nC(0,9,3);}function ve(n,t){n&1&&nC(0,9,4);}function Ge(n,t){if(n&1){let e=vT();Qi(0,"header",26)(1,"button",23),Hg("click",function(){Od(e);let i=iC();return Pd(i.cancelEdit())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()()(),Qi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),nC(8,7),$l(),Qi(9,"div",30),aT(10,Me,5,2,"button",31),$l()(),aT(11,be,5,1,"div",32),aT(12,$e,2,10,"app-test-url",33),aT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),$l(),Qi(15,"div",34)(16,"button",35),Hg("click",function(){Od(e);let i=iC();return Pd(i.cancelEdit())}),nC(17,8),$l(),Qi(18,"button",36),Hg("click",function(){Od(e);let i=iC();return Pd(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Fg(19,9),aT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),jg(),$l()()();}if(n&2){let e=iC();CE(8),Vg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),rC(8),CE(2),cT(e.editBaseUrl()?10:-1),CE(),cT(e.selectedDestination()!=="new"?11:-1),CE(),cT(e.editBaseUrl()?12:-1),CE(),cT(e.editBaseUrl()?13:14),CE(5),Kg("primary",e.testResponse()?.action==="success"||!e.isUrlChanged())("warn",e.isUrlChanged()&&e.testSignal()===null||e.testSignal()==="testing"||e.testResponse()?.action==="missing-folder")("error",e.testResponse()&&e.testResponse()?.action!=="success"&&e.testResponse()?.action!=="missing-folder"),vg("disabled",!e.editBaseUrl()||e.isSaving()||e.testSignal()==="testing"),CE(2),cT(e.isSaving()?20:e.testSignal()==="testing"?21:e.testResponse()?.action==="success"||e.testResponse()?.action==="missing-folder"||!e.isUrlChanged()?22:23);}}var R=class n{#e=T(ut);#t=T(g);#n=T(be$1);getSimplePath=h;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=w1(_n);selectedDestination=Ge$1(null);selectedDestinationId=Nt(()=>this.selectedDestination()!=="new"?this.selectedDestination().ID:null);editName=Ge$1(null);editDescription=Ge$1(null);editBaseUrl=Ge$1(null);initialBaseUrl=Ge$1(null);isUrlChanged=Nt(()=>{let t=this.editBaseUrl(),e=this.initialBaseUrl();return this.selectedDestination()==="new"?true:t!==e});testSignal=Ge$1(null);testResponse=Nt(()=>{let t=this.testSignal();return t&&typeof t!="string"?t:null});getOutOfSyncBackupIds(t){if(!t.Backups)return [];let e=new Map(this.backups().map(o=>[o.Backup?.ID,o.Backup]));return t.Backups.filter(o=>{let i=e.get(o.ID);return i&&i.TargetURL!==t.BaseUrl}).map(o=>o.ID).filter(o=>!!o)}isOutOfSync(t){return this.getOutOfSyncBackupIds(t).length>0}#i=za(()=>{this.editBaseUrl(),this.testSignal.set(null);});selectDestination(t){this.selectedDestination.set(t),this.testSignal.set(null),t==="new"?(this.editName.set(null),this.editDescription.set(null),this.editBaseUrl.set(null),this.initialBaseUrl.set(null)):(this.editName.set(t.Name),this.editDescription.set(t.Description),this.editBaseUrl.set(t.BaseUrl),this.initialBaseUrl.set(t.BaseUrl),this.#e.getById(t.ID).subscribe(e=>{e.Data&&(this.editName.set(e.Data.Name),this.editDescription.set(e.Data.Description),this.editBaseUrl.set(e.Data.BaseUrl??null),this.initialBaseUrl.set(e.Data.BaseUrl??null));}));}cancelEdit(){this.selectedDestination.set(null);}setDestination(t){let e=G(t??"");if(e){if(e.mapper.default){let o=e.mapper.default("");this.editBaseUrl.set(o);return}this.editBaseUrl.set(`${t}://`);}}removeDestination(){this.editBaseUrl.set(null);}async testDestination(){(await this.testUrl()?.testDestination(false))?.action==="missing-folder"&&this.promptCreateFolder();}promptCreateFolder(){this.#n.open(h$1,{data:{title:$localize`Folder missing`,message:$localize`The specified folder does not exist. Would you like to create it now?`,confirmText:$localize`Create Folder`,cancelText:$localize`Dismiss`},closed:t=>{t&&this.testUrl()?.createFolder();}});}save(){let t=this.selectedDestination();t&&this.performSave(t);}performSave(t){let e=this.editName(),o=this.editDescription(),i=this.editBaseUrl();if(t==="new"){let I=V(i??"")?.displayName??"Destination",y=this.destinations().filter(F=>F.Name?.startsWith(I)).length;e=`${I} #${y+1}`,o=null;}let r={Name:e,Description:o,BaseUrl:i};this.#e.save(t,r).subscribe(()=>{this.selectedDestination.set(null),this.#e.reload(),this.#t.getBackups(true);});}updateBackupsSync(t,e){e.stopPropagation();let o=this.getOutOfSyncBackupIds(t);this.#n.open(h$1,{data:{title:$localize`Update backups`,message:$localize`Are you sure you want to update ${o.length} backup(s) to use the current connection string?`,confirmText:$localize`Update`,cancelText:$localize`Cancel`},closed:i=>{i&&this.#e.updateBackups(t.ID,o).subscribe(()=>{this.#e.reload(),this.#t.getBackups(true);});}});}deleteDestination(t,e){e.stopPropagation(),this.#n.open(h$1,{data:{title:$localize`Delete destination`,message:$localize`Are you sure you want to delete this destination?`,confirmText:$localize`Delete`,confirmVariant:"error",cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.delete(t).subscribe(()=>{this.#e.reload();});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&qg(o.testUrl,_n,5),e&2&&fC();},decls:4,vars:1,consts:()=>{let t;t=$localize`Destinations`;let e;e=$localize`Loading destinations...`;let o;o=$localize`Add new destination`;let i;i=$localize`Configure a new storage location.`;let r;r=$localize`Or manage your saved destinations`;let f;f=$localize` Manage ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let I;I=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let y;y=$localize`Cancel`;let F;F=$localize`${"\uFFFD*20:1\uFFFD"}:START_BLOCK_IF: Saving... ${"\uFFFD/*20:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*21:2\uFFFD"}:START_BLOCK_ELSE_IF: Testing... ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*22:3\uFFFD"}:START_BLOCK_ELSE_IF_1: Save Destination ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*23:4\uFFFD"}:START_BLOCK_ELSE: Test & Save ${"\uFFFD/*23:4\uFFFD"}:CLOSE_BLOCK_ELSE:`,F=oC(F);let L;L=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Testing... ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE_IF: Retry test ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*4:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*4:3\uFFFD"}:CLOSE_BLOCK_ELSE:`;let w;w=$localize`Name`;let U;U=$localize`Name`;let v;return v=$localize`Change`,[["testUrl",""],t,e,o,i,r,f,I,y,F,L,U,v,[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",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["displayName",""],["description",""],[1,"manage-actions"],["shButton","","type","button",1,"small","raised","primary",3,"disabled"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],["shButton","","type","button",1,"manage-btn"],["shButton","","type","button",1,"small","raised","primary",3,"click","disabled"],[1,"edit-header"],[1,"edit-form"],[1,"config-section","type-c"],[1,"dest-config-header"],[1,"actions"],["shButton","","type","button",1,"small","ghost",3,"disabled"],[1,"form-row"],[3,"targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"form-footer"],["shButton","","type","button",3,"click"],["shButton","","type","button",1,"raised",3,"click","disabled"],["shButton","","type","button",1,"small","ghost",3,"click","disabled"],["placeholder",w,3,"ngModelChange","ngModel"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"selected-backend",3,"targetUrl"],["shButton","","type","button",1,"ghost",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"setDestination"]]},template:function(e,o){e&1&&(Ig(0,"app-status-bar"),Qi(1,"section"),aT(2,xe,4,1)(3,Ge,24,13),$l()),e&2&&(CE(2),cT(o.selectedDestination()===null?2:3));},dependencies:[pt,on,sn,ee,d,v,N,f,Fe$1,c,_n,Bn,Ze,Rn,Jt],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}h3[_ngcontent-%COMP%]{font:var(--paragraph-10)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-info[_ngcontent-%COMP%]{flex:1}.custom-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--body-10);color:var(--base-7);margin:.25rem 0 0}.manage-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}@media(max-width:600px){.manage-actions[_ngcontent-%COMP%] .manage-btn[_ngcontent-%COMP%]{display:none}}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:var(--base-1);color:var(--primary-8)}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.edit-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.edit-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}@media(max-width:600px){.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%] .dest-config-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.edit-form[_ngcontent-%COMP%] .form-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1.5rem;border-top:1px solid var(--base-3)}.selected-backend[_ngcontent-%COMP%]{margin-bottom:.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}"]})};
2
- export{R as default};
package/chunk-DxFBzFom.js DELETED
@@ -1 +0,0 @@
1
- var t=[{path:"",redirectTo:"destination",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-BaSm1lsB.js')},{path:"encryption",loadComponent:()=>import('./chunk-ksSA-rDF.js').then(function(n){return n.c})},{path:"select-config",loadComponent:()=>import('./chunk-ChUm8bnG.js')}],o=t;export{o as default};
package/chunk-Dz5guW4b.js DELETED
@@ -1,3 +0,0 @@
1
- import {j as jn,m as me}from'./chunk-B6c2NXNy.js';import {aj as l$1,T,ab as C,ax as De,I,N as Nt,aG as pt,az as t,aZ as ee$1,G as Ge,ai as m$1,J as zu,b$ as n$1}from'./main-3NL5M6JB.js';var y=class{constructor(t){this.loader=t;}loader;_data=Ge(void 0);_isLoading=false;_loaded=false;load(){return !this._loaded&&!this._isLoading&&(this._isLoading=true,this.loader().pipe(zu(()=>this._isLoading=false)).subscribe(t=>{this._data.set(t),this._loaded=true;})),this._data.asReadonly()}value(){return this._data.asReadonly()}isLoading(){return this._isLoading}isLoaded(){return this._loaded}reset(){this._data.set(void 0),this._loaded=false;}};function K(e){return !("personalLicensedUser"in e)}function q(e){if(K(e))return m$1(l$1({},e),{personal:e.personal,personalLicensedUser:null,personalUnlicensedUser:null});let s=e,{personalLicensedUser:t,personalUnlicensedUser:o}=s,r=n$1(s,["personalLicensedUser","personalUnlicensedUser"]);return m$1(l$1({},r),{personal:t+o,personalLicensedUser:t,personalUnlicensedUser:o})}var d=class e{#e=T(C);#s=T(De);#n=T(I);#o=new y(()=>this.getS3Config("Providers"));#i=new y(()=>this.getS3Config("Regions"));#r=new y(()=>this.getS3Config("RegionHosts"));#a=new y(()=>this.getS3Config("StorageClasses"));#l=Nt(()=>{let t=this.#o.value()(),o=this.#r.value()(),r=[...t??[],...o?.map(s=>({key:`Amazon ${s.key}`,value:s.value}))??[]];return Array.from(new Map(r.map(s=>[s.value,s])).values())});#c=new y(()=>this.getStorjConfig("Satellites"));#u=new y(()=>this.getStorjConfig("AuthenticationMethods"));#p=new y(()=>this.getOpenstackConfig("Providers"));#m=new y(()=>this.getOpenstackConfig("Versions"));#d=new y(()=>this.getGcsConfig("Locations"));#g=new y(()=>this.getGcsConfig("StorageClasses"));getS3AllProviders(){return this.#o.load(),this.#r.load(),this.#l}getS3ProvidersFiltered(t){return Nt(()=>this.getS3AllProviders()().filter(t))}getS3Providers(){return this.#o.load()}getS3Regions(){return this.#i.load()}getS3RegionHosts(){return this.#r.load()}getS3StorageClasses(){return this.#a.load()}getStorjSatellites(){return this.#c.load()}getStorjAuthenticationMethods(){return this.#u.load()}getOpenstackProviders(){return this.#p.load()}getOpenstackVersions(){return this.#m.load()}getGcsLocations(){return this.#d.load()}getGcsStorageClasses(){return this.#g.load()}getS3Config(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":t}}).pipe(pt(o=>this.#t(o)))}createS3IamUser(t,o){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":t,"s3-password":o}})}createS3PolicyIAM(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:t}})}getStorjConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":t}}).pipe(pt(o=>this.#t(o)))}getOpenstackConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":t}}).pipe(pt(o=>this.#t(o)))}getGcsConfig(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":t}}).pipe(pt(o=>this.#t(o)))}#t(t){return (t.Result&&typeof t.Result=="object"&&Object.entries(t.Result).map(([o,r])=>({key:o,value:r})))??[]}getDuplicatiStorageBackups(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"duplicati-list-backups",requestBody:{action:"ListBackups",url:t}}).pipe(pt(o=>this.#t(o)),pt(o=>o.find(r=>r.key==="folders")?.value),pt(o=>JSON.parse(o)))}getFilenApiKey(t,o){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"filen-get-api-key",requestBody:{"filen-operation":"GetApiKey","backup-id":o??"",url:t}}).pipe(pt(r=>this.#t(r)),pt(r=>r.find(s=>s.key==="api-key")?.value))}getOffice365Counts(t$1,o,r){let s={"Content-Type":"application/json"};return this.#n.relayIsEnabled()&&(s.timeout=`${300*1e3}`),this.#s.post(`${t.BASE}/api/v1/webmodule/office365`,JSON.stringify({"backup-id":r??"","source-prefix":o,operation:"CountItems",url:t$1}),{headers:s}).pipe(pt(i=>this.#t(i)),pt(i=>i.find(u=>u.key==="counts")?.value),pt(i=>{let u=JSON.parse(i);return {users:u.users,groups:u.groups,sites:q(u.sites)}}))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=ee$1({token:e,factory:e.\u0275fac,providedIn:"root"})};var n=new jn,p={type:"error",message:$localize`Using a leading slash is most likely wrong, and will result in objects being created with a leading slash in the name.`},L={description:$localize`Unknown destination type`,sourceDescription:null,icon:"assets/dest-icons/file-system.png",isDefaultEntry:true,customFields:{path:{type:"String",name:"path",doubleSlash:p,shortDescription:$localize`Path`,formElement:e=>n.control(e??"")}},mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>{let s=o.startsWith(`${e}:///`)?o.split(`${e}:///`)[1]:o.split(`${e}://`)[1];return l$1({destinationType:e,custom:{path:s.split("?")[0]}},l(e,t))}}},F={key:"s3",displayName:$localize`S3 Compatible`,description:$localize`Store backups in any S3 compatible bucket.`,sourceDescription:$localize`Use files from any S3 compatible bucket as a remote source.`,icon:"assets/dest-icons/s3compat.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3AllProviders(),isMandatory:true,formElement:e=>n.control(e??"")},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},{name:"use-ssl"}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ge([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}]),validate:e=>({type:"warning",message:$localize`Invalid client selected`})}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))}}},P=[{key:"file",displayName:$localize`File system`,description:$localize`Store backups on your local file system.`,sourceDescription:$localize`Use files from your local file system as a remote source.`,icon:"assets/dest-icons/file-system.png",searchTerms:"local disk harddrive localdisk filesystem unc server share drive",sortOrder:110,customFields:{path:{type:"FolderTree",name:"path",doubleSlash:p,shortDescription:$localize`File path`,longDescription:$localize`The path to store the backup`,formElement:e=>n.control(e??""),isMandatory:true}},mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>{let r=o.startsWith("file:///"),s=decodeURIComponent(r?o.split("file:///")[1]:o.split("file://")[1]),u=s.slice(1).startsWith(":\\")||s.slice(1).startsWith(":/")||s.startsWith("\\\\")?s:"/"+s;return l$1({destinationType:e,custom:{path:u.split("?")[0]}},l(e,t))}}},{key:"duplicati",displayName:$localize`Duplicati Storage`,description:$localize`Store backups with Duplicati Storage.`,sourceDescription:$localize`Use files from Duplicati Storage as a remote source.`,icon:"assets/dest-icons/duplicati.png",searchTerms:"duplicati internal built-in",sortOrder:100,dynamicFields:[{name:"duplicati-backup-id",type:"DuplicatiBackupId",isMandatory:true,shortDescription:$localize`Unique Backup ID`,longDescription:$localize`A unique identifier for the backup job. It is recommended to not change this value.`}],mapper:{to:e=>c(e,null,null,null),from:(e,t,o)=>l$1({destinationType:e},l(e,t)),default:e=>e&&e.length>0?`duplicati://?duplicati-backup-id=${encodeURIComponent(e)}`:"duplicati://"}},{key:"ssh",displayName:$localize`SFTP (SSH)`,description:$localize`Store backups with SFTP (SSH).`,sourceDescription:$localize`Use files from SFTP (SSH) as a remote source.`,icon:"assets/dest-icons/ssh.png",searchTerms:"sftp scp secure shell",sortOrder:80,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`The server to connect to`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`The port to connect to`,formElement:e=>n.control(e??"",[me.required,me.max(65535)])},path:{type:"Path",name:"path",shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,longDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,longDescription:$localize`Password`}],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:$localize`This is a path to a private key file locally on the machine`,longDescription:$localize`This is a path to a private key file locally on the machine`},{type:"FreeText",name:"ssh-key",shortDescription:$localize`SSH private key`,longDescription:$localize`An SSH private key. Supported formats are OpenSSL, OpenSSH, PuTTY, and PEM.`}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"s3",displayName:$localize`S3 Compatible`,description:$localize`Store backups in any S3 compatible bucket.`,sourceDescription:$localize`Use files from any S3 compatible bucket as a remote source.`,icon:"assets/dest-icons/s3compat.png",searchTerms:"spaces cloud digitalocean cloudian minio linode bunnycdn oracle cloudflare alibaba huawei tencent baidu jd ucloud qiniu aliyun tcloud tencent ",sortOrder:90,customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3AllProviders(),isMandatory:true,formElement:e=>n.control(e??"")},{name:"use-ssl",order:2},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ge([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}])},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3StorageClasses()},{name:"s3-location-constraint",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3Regions()}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))}}},{key:"s3",customKey:"s3-aws",displayName:$localize`Amazon S3`,description:$localize`Store backups in Amazon S3.`,sourceDescription:$localize`Use files from Amazon S3 as a remote source.`,icon:"assets/dest-icons/aws.png",searchTerms:"amazon aws",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the S3 compatible server to connect to`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3ProvidersFiltered(t=>t.value.endsWith(".amazonaws.com")),isMandatory:true,formElement:e=>n.control(e??"")},{name:"use-ssl",order:2},{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true}],advancedFields:[{name:"s3-client",type:"Enumeration",loadOptions:()=>Ge([{key:"AWS Library",value:"aws"},{key:"MinIO Library",value:"minio"}])},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3StorageClasses()},{name:"s3-location-constraint",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getS3Regions()}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return e.dynamic["s3-server-name"]?.endsWith(".amazonaws.com")&&(e.destinationType="s3"),c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))},default:e=>"s3-aws://?use-ssl=true",intercept:e=>e.searchParams.get("s3-server-name")?.endsWith(".amazonaws.com")??false}},{key:"gcs",displayName:$localize`Google Cloud Storage`,description:$localize`Store backups in Google Cloud Storage.`,sourceDescription:$localize`Use files from Google Cloud Storage as a remote source.`,icon:"assets/dest-icons/google-cloud.png",oauthField:"authid",searchTerms:"gcp googlecloud",sortOrder:70,customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true,longDescription:$localize`An OAuth token with access to the Google Cloud Storage. Not required if service account JSON is provided.`}],advancedFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getGcsLocations()},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getGcsStorageClasses()},{name:"gcs-service-account-file",type:"FileTree",accepts:".json,",shortDescription:$localize`Service account JSON file`,longDescription:$localize`Pick the path to a file with service account JSON.`},{name:"gcs-service-account-json",type:"FreeText",shortDescription:$localize`Service account JSON`,longDescription:$localize`Paste the service account JSON here.`}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))}}},{key:"googledrive",displayName:$localize`Google Drive`,description:$localize`Store backups in Google Drive.`,sourceDescription:$localize`Use files from Google Drive as a remote source.`,icon:"assets/dest-icons/google-drive.png",oauthField:"authid",searchTerms:"gdrive",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",type:"Password",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"pcloud",displayName:$localize`pCloud`,description:$localize`Store backups in pCloud.`,sourceDescription:$localize`Use files from pCloud as a remote source.`,icon:"assets/dest-icons/pcloud.png",oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>Ge([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Folder path`,longDescription:$localize`Folder path`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",type:"Password",oauthVersion:2,isMandatory:true}],mapper:{to:e=>{let{server:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{server:r,path:s}=m(t);return l$1({destinationType:e,custom:{server:r,path:s}},l(e,t))}}},{key:"azure",displayName:$localize`Azure Blob Storage`,description:$localize`Store backups in Azure Blob Storage.`,sourceDescription:$localize`Use files from Azure Blob Storage as a remote source.`,icon:"assets/dest-icons/azure.png",searchTerms:"microsoft ms",sortOrder:60,customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Container name`,longDescription:$localize`Container name`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"onedrivev2",displayName:$localize`OneDrive`,description:$localize`Store backups in OneDrive.`,sourceDescription:$localize`Use files from OneDrive as a remote source.`,icon:"assets/dest-icons/one-drive.png",oauthField:"authid",searchTerms:"micorsoft ms",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"od4b",displayName:$localize`OneDrive Business (deprecated)`,description:$localize`Store backups in OneDrive Business. Deprecated, use Sharepoint instead.`,sourceDescription:$localize`Use files from OneDrive Business as a remote source. Deprecated, use SharePoint instead.`,icon:"assets/dest-icons/one-drive.png",searchTerms:"microsoft ms",sortOrder:-1,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"mssp",displayName:$localize`Microsoft SharePoint (deprecated)`,description:$localize`Store backups in Microsoft SharePoint using legacy API.`,sourceDescription:$localize`Use files from Microsoft SharePoint as a remote source using the legacy API.`,icon:"assets/dest-icons/sharepoint.png",searchTerms:"microsoft ms",sortOrder:-1,customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"String",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Account name`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access key`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"sharepoint",displayName:$localize`Microsoft SharePoint`,description:$localize`Store backups in Microsoft SharePoint.`,sourceDescription:$localize`Use files from Microsoft SharePoint as a remote source.`,icon:"assets/dest-icons/sharepoint.png",oauthField:"authid",searchTerms:"microsoft ms",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"site-id",isMandatory:true},{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"dropbox",displayName:$localize`Dropbox`,description:$localize`Store backups in Dropbox.`,sourceDescription:$localize`Use files from Dropbox as a remote source.`,icon:"assets/dest-icons/dropbox.png",oauthField:"authid",searchTerms:"dbx",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"box",displayName:$localize`Box.com`,description:$localize`Store backups in Box.com.`,sourceDescription:$localize`Use files from Box.com as a remote source.`,icon:"assets/dest-icons/box-com.png",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"jottacloud",displayName:$localize`Jottacloud`,description:$localize`Store backups in Jottacloud.`,sourceDescription:$localize`Use files from Jottacloud as a remote source.`,icon:"assets/dest-icons/jottacloud.png",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"b2",displayName:$localize`B2 Cloud Storage`,description:$localize`Store backups in B2 Cloud Storage.`,sourceDescription:$localize`Use files from B2 Cloud Storage as a remote source.`,icon:"assets/dest-icons/backblaze.png",searchTerms:"backblaze",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true,validate:e=>{function t(o){if(!o)return false;let r=o.length;return !(r<6||r>63||!/^[a-zA-Z0-9.-]+$/.test(o)||!/^[a-zA-Z0-9]/.test(o)||!/[a-zA-Z0-9]$/.test(o)||/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||/(\.\.)|(\.-)|(-\.)/.test(o)||o.toLowerCase().startsWith("b2-"))}return t(e)?null:{type:"error",message:$localize`Invalid bucket name.`}}},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Application ID`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Application Key`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))}}},{key:"e2",displayName:$localize`IDrive e2`,description:$localize`Store backups in IDrive e2.`,sourceDescription:$localize`Use files from IDrive e2 as a remote source.`,icon:"assets/dest-icons/idrive-e2.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,longDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"String",name:"path",doubleSlash:p,shortDescription:$localize`Path in the bucket`,longDescription:$localize`Path in the bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Access ID`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Access Secret`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom;return c(e,t,null,o)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{bucket:r,path:s}},l(e,t))}}},{key:"mega",displayName:$localize`Mega.nz`,description:$localize`Store backups in Mega.nz.`,sourceDescription:$localize`Use files from Mega.nz as a remote source.`,icon:"assets/dest-icons/mega-nz.png",sortOrder:-1,customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let t=e.custom.path;return c(e,null,null,t)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"msgroup",displayName:$localize`Microsoft Office 365 Group`,description:$localize`Store backups in Microsoft Office 365 Group.`,sourceDescription:$localize`Use files from Microsoft Office 365 Group as a remote source.`,icon:"assets/dest-icons/office-365.png",oauthField:"authid",searchTerms:"ms",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:$localize`Group email`,longDescription:$localize`Group email`,formElement:e=>n.control(e??"",[me.email]),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"authid",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"cloudfiles",displayName:$localize`Rackspace CloudFiles`,description:$localize`Store backups in Rackspace CloudFiles.`,sourceDescription:$localize`Use files from Rackspace CloudFiles as a remote source.`,icon:"assets/dest-icons/rackspace.png",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"rclone",displayName:$localize`Rclone`,description:$localize`Store backups in Rclone.`,sourceDescription:$localize`Use files from Rclone as a remote source.`,icon:"assets/dest-icons/rclone.png",searchTerms:"rcl",dynamicFields:[{name:"rclone-local-repository",shortDescription:$localize`Local repository`,defaultValue:""},{name:"rclone-remote-repository",shortDescription:$localize`Remote repository`,defaultValue:""},{name:"rclone-remote-path",type:"Path",shortDescription:$localize`Path on remote repository`,defaultValue:""}],mapper:{to:e=>{let t=e.dynamic["rclone-remote-repository"],o=e.dynamic["rclone-remote-path"],r=Object.entries(e.dynamic).filter(([s])=>!["rclone-remote-repository","rclone-remote-path"].includes(s));return U(e.destinationType??"rclone",t,null,o,[...Object.entries(e.advanced??{}),...r])},from:(e,t,o)=>{let{advanced:r,dynamic:s}=l(e,t),{bucket:i,path:u}=m(t);return {destinationType:e,dynamic:l$1({"rclone-remote-repository":i,"rclone-remote-path":u},s),advanced:l$1({},r)}}}},{key:"openstack",displayName:$localize`OpenStack Object Storage`,description:$localize`Store backups in OpenStack Object Storage.`,sourceDescription:$localize`Use files from OpenStack Object Storage as a remote source.`,icon:"assets/dest-icons/open-stack.png",searchTerms:"swift",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket`,longDescription:$localize`Bucket`,formElement:e=>n.control(e??""),isMandatory:true}},dynamicFields:[{name:"openstack-authuri",shortDescription:$localize`Auth URI`,type:"Enumeration",loadOptions:e=>e.get(d).getOpenstackProviders(),isMandatory:true},{name:"openstack-version",shortDescription:$localize`Version`,type:"Enumeration",loadOptions:e=>e.get(d).getOpenstackVersions()},{name:"openstack-domain-name",type:"Hostname",shortDescription:$localize`Domain name`},{name:"openstack-tenant-name",shortDescription:$localize`Tenant name`},{name:"openstack-region",shortDescription:$localize`Region`}],mapper:{to:e=>{let{bucket:t}=e.custom;return c(e,t,null,null)},from:(e,t,o)=>{let{bucket:r,path:s}=m(t);return l$1({destinationType:e,custom:{path:s,bucket:r}},l(e,t))}}},{key:"webdav",displayName:$localize`WebDAV`,description:$localize`Store backups in WebDAV.`,sourceDescription:$localize`Use files from WebDAV as a remote source.`,icon:"assets/dest-icons/webdav.png",searchTerms:"web dav",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`},{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],advancedFields:[{type:"FileTree",name:"debug-propfind-file",accepts:".txt,.log"}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"aftp",displayName:$localize`Alternative FTP`,description:$localize`Store backups in FTP.`,sourceDescription:$localize`Use files from FTP as a remote source.`,icon:"assets/dest-icons/ftp.png",searchTerms:"alt file transfer protocol ftps",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"ftp",displayName:$localize`FTP`,description:$localize`Store backups in FTP.`,sourceDescription:$localize`Use files from FTP as a remote source.`,icon:"assets/dest-icons/ftp.png",searchTerms:"file transfer protocol ftps",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,doubleSlash:{type:"warning",message:$localize`Using a leading slash makes the path absolute, pointing to the root of the filesystem.`},formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:$localize`Username`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Password`,isMandatory:true}],mapper:{to:e=>{let{port:t,server:o,path:r}=e.custom;return c(e,o,t,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"sia",displayName:$localize`Sia Decentrilized Cloud`,description:$localize`Store backups in Sia Decentrilized Cloud.`,sourceDescription:$localize`Use files from Sia Decentralized Cloud as a remote source.`,icon:"assets/dest-icons/sia-cloud.png",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let t=e.custom.server,o=e.dynamic["sia-targetpath"],r=[...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([s])=>s!=="sia-targetpath")];return U(e.destinationType??"sia",t,null,o,r)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"cos",displayName:$localize`Tencent COS`,description:$localize`Store backups in Tencent COS.`,sourceDescription:$localize`Use files from Tencent COS as a remote source.`,icon:"assets/dest-icons/tencent-cloud.png",customFields:{bucket:{name:"bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"cos-region",shortDescription:$localize`Region`},{name:"cos-app-id",shortDescription:$localize`COS App Id`,isMandatory:true},{name:"cos-secret-id",shortDescription:$localize`COS Secret Id`,isMandatory:true},{name:"cos-secret-key",shortDescription:$localize`COS Secret Key`,isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=m$1(l$1({},e),{advanced:m$1(l$1({},e.advanced),{"cos-bucket":t})});return c(r,null,null,o)},from:(e,t,o)=>{let r=l(e,t),s=r.advanced["cos-bucket"];return delete r.advanced["cos-bucket"],l$1({destinationType:e,custom:{path:h(t),bucket:s}},r)}}},{key:"tahoe",displayName:$localize`Tahoe LAFS`,description:$localize`Store backups in Tahoe LAFS.`,sourceDescription:$localize`Use files from Tahoe LAFS as a remote source.`,icon:"assets/dest-icons/tahoelafs.png",searchTerms:"least authority file system",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},port:{type:"Integer",name:"port",shortDescription:$localize`Port`,longDescription:$localize`Port`,formElement:e=>n.control(e??"")},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:$localize`Use SSL`}],mapper:{to:e=>{let{server:t,port:o,path:r}=e.custom;return c(e,t,o,r)},from:(e,t,o)=>{let{server:r,port:s,path:i}=m(t);return l$1({destinationType:e,custom:{server:r,port:s,path:i}},l(e,t))}}},{key:"smb",displayName:$localize`Windows Share (SMB)`,description:$localize`Store backups on SMB storage.`,sourceDescription:$localize`Use files from SMB storage as a remote source.`,icon:"assets/dest-icons/smb.png",searchTerms:"cifs samba",customFields:{server:{type:"Hostname",name:"server",shortDescription:$localize`Server`,longDescription:$localize`Server`,formElement:e=>n.control(e??""),isMandatory:true},share:{type:"Hostname",name:"share",shortDescription:$localize`Share Name`,longDescription:$localize`Share Name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on server`,longDescription:$localize`Path on server`,formElement:e=>n.control(e??"")}},dynamicFields:["transport",{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},"auth-domain"],mapper:{to:e=>{let{share:t,server:o,path:r}=e.custom;return c(e,o,null,N(t,r))},from:(e,t,o)=>{let{server:r,path:s}=m(t),i=s.split("/")[0],u=s.split("/").slice(1).join("/");return l$1({destinationType:e,custom:{server:r,share:i,path:u}},l(e,t))}}},{key:"cifs",displayName:$localize`CIFS (deprecated)`,description:$localize`Same as SMB backend, but with a different name. Use SMB instead.`,sourceDescription:$localize`Use files from CIFS storage as a remote source. Deprecated, use SMB instead.`,icon:"assets/dest-icons/smb.png",sortOrder:-1,mapper:L.mapper},{key:"filen",displayName:$localize`Filen.io`,description:$localize`Store backups in Filen.io.`,sourceDescription:$localize`Use files from Filen.io as a remote source.`,icon:"assets/dest-icons/filen.png",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on Filen`,longDescription:$localize`Path on Filen`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"auth-username",isMandatory:true},{name:"auth-password",isMandatory:true},{name:"two-factor-code",type:"Filen2FACode"}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"filejump",displayName:$localize`Filejump`,description:$localize`Store backups in Filejump.`,sourceDescription:$localize`Use files from Filejump as a remote source.`,icon:"assets/dest-icons/file-jump.png",sortOrder:-1,customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path on Filejump`,longDescription:$localize`Path on Filejump`,formElement:e=>n.control(e??"")}},dynamicFields:[{type:"Password",name:"api-token",shortDescription:$localize`API Token`,longDescription:$localize`Filejump API Token`,formElement:e=>n.control(e??""),isMandatory:true}],mapper:{to:e=>{let{path:t}=e.custom;return c(e,null,null,t)},from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},{key:"storj",customKey:"storjAccessGrant",displayName:$localize`Storj Access Grant`,description:$localize`Store backups in Storj Access Grant.`,sourceDescription:$localize`Use files from Storj with an access grant as a remote source.`,icon:"assets/dest-icons/storj.png",dynamicFields:[{name:"storj-shared-access",shortDescription:$localize`Access Grant`,isMandatory:true},{name:"storj-bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true},{name:"storj-folder",type:"Path",shortDescription:$localize`Path on server`,doubleSlash:p},{name:"storj-satellite",shortDescription:$localize`Satellite`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getStorjSatellites(),isMandatory:true}],mapper:{to:e=>{let t={"storj-auth-method":"Acccess grant"};return `storj://storj.io/config${b([...Object.entries(e.advanced),...Object.entries(e.dynamic),...Object.entries(t)])}`},from:(e,t,o)=>{let r=l(e,t);return delete r.advanced["storj-auth-method"],l$1({destinationType:e},r)},intercept:e=>e.protocol!=="storj:"?false:!!(e.searchParams.get("storj-shared-access")||e.searchParams.get("storj-auth-method")==="Acccess grant"),default:()=>"storj://?storj-shared-access=&storj-auth-method=Acccess+grant"}},{key:"storj",customKey:"storjApiKey",displayName:$localize`Storj API Key`,description:$localize`Store backups in Storj API Key.`,sourceDescription:$localize`Use files from Storj with an API key as a remote source.`,icon:"assets/dest-icons/storj.png",dynamicFields:[{name:"storj-satellite",shortDescription:$localize`Satellite`,type:"NonValidatedSelectableString",loadOptions:e=>e.get(d).getStorjSatellites(),isMandatory:true},{name:"storj-api-key",shortDescription:$localize`API Key`,isMandatory:true},{name:"storj-secret",shortDescription:$localize`Secret`,isMandatory:true},{name:"storj-bucket",type:"Bucketname",shortDescription:$localize`Bucket`,isMandatory:true},{name:"storj-folder",type:"Path",shortDescription:$localize`Path on server`,doubleSlash:p}],mapper:{to:e=>{let t={"storj-auth-method":"API key"};return `storj://storj.io/config${b([...Object.entries(e.advanced),...Object.entries(e.dynamic),...Object.entries(t)])}`},from:(e,t,o)=>{let r=l("storjApiKey",t);return delete r.advanced["storj-auth-method"],l$1({destinationType:e},r)},intercept:e=>e.protocol!=="storj:"?false:!!(e.searchParams.get("storj-api-key")||e.searchParams.get("storj-secret")||e.searchParams.get("storj-auth-method")==="API key"),default:()=>"storj://?storj-api-key=&storj-secret=&storj-auth-method=API+key"}},{key:"aliyunoss",displayName:$localize`Aliyun OSS`,description:$localize`Store backups in Aliyun OSS`,sourceDescription:$localize`Use files from Aliyun OSS as a remote source.`,icon:"assets/dest-icons/aliyun.png",customFields:{bucket:{type:"Bucketname",name:"bucket",shortDescription:$localize`Bucket name`,formElement:e=>n.control(e??""),isMandatory:true},path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path in bucket`,longDescription:$localize`Path in bucket`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"oss-endpoint",isMandatory:true},{name:"oss-access-key-id",isMandatory:true},{name:"oss-access-key-secret",isMandatory:true}],mapper:{to:e=>{let{bucket:t,path:o}=e.custom,r=m$1(l$1({},e),{advanced:m$1(l$1({},e.advanced),{"oss-bucket-name":t})});return c(r,null,null,o)},from:(e,t,o)=>{let r=l(e,t),s=r.advanced["oss-bucket-name"];return delete r.advanced["oss-bucket-name"],l$1({destinationType:e,custom:{path:h(t),bucket:s}},r)}}},{key:"office365",displayName:$localize`Microsoft 365`,description:$localize`Create backups of Microsoft 365 data.`,sourceDescription:$localize`Use Microsoft 365 data as a remote source.`,searchTerms:"office o365 office365 m365 ms365",icon:"assets/dest-icons/office365.png",isNonFree:true,dynamicFields:[{name:"auth-username",shortDescription:$localize`Client ID`,longDescription:$localize`Application (client) ID from your Azure AD app registration.`,isMandatory:true},{name:"auth-password",shortDescription:$localize`Client Secret`,longDescription:$localize`Client Secret from your Azure AD app registration.`,isMandatory:true},{name:"office365-tenant-id",shortDescription:$localize`Tenant ID`,isMandatory:true}],advancedFields:[{name:"office365-certificate-path",type:"FileTree"}],mapper:{to:e=>`office365://${b([...Object.entries(e.advanced),...Object.entries(e.dynamic)])}`,from:(e,t,o)=>{let{advanced:r,dynamic:s}=l(e,t);return {destinationType:e,advanced:l$1({},r),dynamic:l$1({},s)}}}},{key:"googleworkspace",displayName:$localize`Google Workspace`,description:$localize`Create backups of Google Workspace data.`,sourceDescription:$localize`Use Google Workspace data as a remote source.`,icon:"assets/dest-icons/googleworkspace.png",isNonFree:true,dynamicFields:[{name:"google-admin-email",type:"Email",shortDescription:$localize`Admin Email`,longDescription:$localize`Email address of the Google Workspace admin user.`,isMandatory:true},{name:"google-service-account-json",type:"FreeText",shortDescription:$localize`Service account JSON`,longDescription:$localize`Paste the service account JSON here.`,isMandatory:true}],advancedFields:[{name:"google-service-account-file",type:"FileTree",accepts:".json,",shortDescription:$localize`Service account JSON file`,longDescription:$localize`Pick the path to a file with service account JSON.`}],mapper:{to:e=>`googleworkspace://${b([...Object.entries(e.advanced),...Object.entries(e.dynamic)])}`,from:(e,t,o)=>{let{advanced:r,dynamic:s}=l(e,t);return {destinationType:e,advanced:l$1({},r),dynamic:l$1({},s)}}}},{key:"drimecloud",displayName:$localize`Drime Cloud`,description:$localize`Store backups in Drime Cloud.`,sourceDescription:$localize`Use files from Drime Cloud as a remote source.`,icon:"assets/dest-icons/drime.png",customFields:{path:{type:"Path",name:"path",doubleSlash:p,shortDescription:$localize`Path in Drime Cloud`,longDescription:$localize`Path in Drime Cloud`,formElement:e=>n.control(e??"")}},dynamicFields:[{name:"api-token",isMandatory:true}],mapper:{to:e=>c(e,null,null,e.custom.path),from:(e,t,o)=>l$1({destinationType:e,custom:{path:h(t)}},l(e,t))}},g("rabata","Rabata.io",null,"assets/dest-icons/rabata.png",[".rabata.io"]),g("wasabi","Wasabi Hot Storage",null,"assets/dest-icons/wasabi.png",[".wasabisys.com"]),g("impossiblecloud","Impossible Cloud",null,"assets/dest-icons/impossiblecloud.png",[".impossibleapi.net"]),g("scaleway","Scaleway",null,"assets/dest-icons/scaleway.png",[".scw.cloud"]),g("hosteurope","Hosteurope",null,"assets/dest-icons/hosteurope.png",[".hosteurope.de"]),g("dunkel","Dunkel",null,"assets/dest-icons/dunkel.png",[".dunkel.de"]),g("dreamhost","DreamHost",null,"assets/dest-icons/dreamhost.png",[".dreamhost.com"]),g("dincloud","dinCloud",null,"assets/dest-icons/dincloud.png",[".dincloud.com"]),g("polisystems","Poli Systems",null,"assets/dest-icons/polisystems.png",[".polisystems.ch"]),g("ibmcos","IBM COS",null,"assets/dest-icons/ibmcos.png",[".softlayer.net"]),g("storadera","Storadera",null,"assets/dest-icons/storadera.png",[".storadera.com"]),g("infomaniak","Infomaniak",null,"assets/dest-icons/infomaniak.png",[".infomaniak.com",".infomaniak.cloud"]),g("sakuracloud","\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9",null,"assets/dest-icons/sakuracloud.png",[".sakurastorage.jp"]),g("seagatelyve","Seagate Lyve",null,"assets/dest-icons/seagatelyve.png",[".lyvecloud.seagate.com"]),g("internxt","Internxt",null,"assets/dest-icons/internxt.png",[".internxt.com"]),g("selectel","Selectel",null,"assets/dest-icons/selectel.png",[".storage.selcloud.ru",".srvstorage.uz",".srvstorage.kz"])],H={".amazonaws.com":"Amazon S3",".impossibleapi.net":"Impossible Cloud S3",".scw.cloud":"Scaleway S3",".hosteurope.de":"Hosteurope S3",".dunkel.de":"Dunkel S3",".dreamhost.com":"DreamHost S3",".dincloud.com":"dinCloud S3",".polisystems.ch":"Poli Systems S3",".softlayer.net":"IBM COS (S3)",".storadera.com":"Storadera S3",".wasabisys.com":"Wasabi S3",".infomaniak.com":"Infomaniak S3",".infomaniak.cloud":"Infomaniak S3",".sakurastorage.jp":"\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9 S3",".lyvecloud.seagate.com":"Seagate Lyve S3",".digitaloceanspaces.com":"DigitalOcean S3",".backblazeb2.com":"Backblaze B2 S3",".cloudian.com":"Cloudian S3",".min.io":"MinIO S3",".linodeobjects.com":"Linode S3",".bunnycdn.com":"BunnyCDN S3",".azure.com":"Microsoft Azure S3",".googleapis.com":"Google Cloud Storage S3",".ibm.com":"IBM Cloud S3",".oracle.com":"Oracle Cloud S3",".cloudflare.com":"Cloudflare S3",".alibaba.com":"Alibaba Cloud S3",".huawei.com":"Huawei Cloud S3",".tencent.com":"Tencent Cloud S3",".baidu.com":"Baidu Cloud S3",".jd.com":"JD Cloud S3",".ucloud.cn":"UCloud S3",".qiniu.com":"Qiniu Cloud S3",".aliyuncs.com":"Aliyun S3",".tcloud.com":"TCloud S3",".tencentcloudapi.com":"Tencent Cloud S3",".rabata.io":"Rabata S3",".internxt.com":"Internxt S3",".storage.selcloud.ru":"Selectel S3",".srvstorage.uz":"Selectel S3",".srvstorage.kz":"Selectel S3"};var J=new jn,v=class{host;hostname;exactHostname;pathname;port;protocol;search;username;password;searchParams;originalUrl;constructor(t){let o=new URL(t);this.originalUrl=t,this.host=o.host,this.hostname=o.hostname,this.exactHostname=this.extractExactHostname(t),this.pathname=o.pathname,this.port=o.port,this.protocol=o.protocol,this.search=o.search,this.username=o.username,this.password=o.password,this.searchParams=o.searchParams;}extractExactHostname(t){let o=t.match(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/(?:[^@\/?#]*@)?(\[[a-fA-F0-9:.]+\]|[^:\/?#]+)/);return o?o[1]:""}};function c(e,t,o,r){return U(e.destinationType??"file",t,o,r,[...Object.entries(e.advanced),...Object.entries(e.dynamic)])}function U(e,t,o,r,s){let i=b(s),u=encodeURIComponent(X(t)),S=u==""?"":u+Y(o),k=r??"",w=k.slice(1).startsWith(":\\")&&e=="file"?"file:///":`${e}://`,$=N(S,Q(k));return `${w}${$}${i}`}function Z(e){return e==null||e===""?"":e.startsWith("/")?e.substring(1):e}function N(...e){if(e.length===0)return "";if(e.length===1)return e[0]??"";let t="";for(let o of e)o==null||o===""||(t+=t.endsWith("/")||t==""?o:"/"+o);return t}function Q(e){return e.split("/").map(encodeURIComponent).join("/")}function h(e){if(e==null||e==="")return "";if(typeof e=="string")try{e=new v(e);}catch{return ""}return decodeURIComponent(e.exactHostname??"")+decodeURIComponent(e.pathname=="/"?"":e.pathname??"")}function X(e){return e==null||e===""?"":e.endsWith("/")?e.substring(0,e.length-1):e}function Y(e){return e==null||e===""?"":":"+e.toString()}function Ee(e){return e?e.startsWith("diskimage:")?"assets/dest-icons/external-harddrive.png":V(e).icon:""}function Le(e){if(!e)return "";if(e.startsWith("diskimage:"))return $localize`Local disk`;let t=V(e);return t?t.displayName:"Unknown"}function V(e){try{let o=new v(e),r=P.find(s=>s.mapper.intercept?.(o));if(r)return r}catch{}let t=e.split("://")[0];return G(t)}var ee={file:{Display:$localize`Local`,Icon:null}};function Ne(e){if(!e)return "";let t=V(e);if(!t)return "";let o=ee[t.key];if(o?.Display)return o.Display;if(t.key==="s3"){let r="http://null?"+e.split("?")[1],i=new URL(r).searchParams.get("s3-server-name")?.toLowerCase()??"";for(let[u,S]of Object.entries(H))if(i.endsWith(u))return S}return t.displayName}function G(e){return P.find(o=>o.key===e||o.customKey===e)??P.find(o=>`${o.key}s`===e)??null??l$1({key:e,displayName:e},L)}function Ie(e){return P.filter(t=>t.key===e||t.customKey===e)}function m(e){return {bucket:decodeURIComponent(e.exactHostname),server:decodeURIComponent(e.exactHostname||e.hostname),port:e.port,path:Z(decodeURIComponent(e.pathname))}}function l(e,t){let o={},r={},s=G(e);return t.searchParams.forEach((i,u)=>{s?.dynamicFields?.some(k=>k===u||k?.name===u)?r[u]=decodeURIComponent(i):o[u]=decodeURIComponent(i);}),{advanced:o,dynamic:r}}function b(e,t=false){let o=e.map(([s,i])=>`${s}=${i?encodeURIComponent(i.toString()):""}`).join("&");return o?(t?"":"?")+o:""}function Be(e){let t=e.destinationType??"";return G(t)?.mapper.to(e)??""}function xe(e){let t=e.split("://")[0],o=e.split("://")[1],r=t==="file"?"http://dummy":o==""||o.startsWith("?")?`${t}://`+o:"http://"+o;if(!o)return null;let s=V(e),i="";if(`${s.key}s`===t&&(i+=r.indexOf("?")===-1?"?":"&",i+="use-ssl=true",e=s.key+e.substring(t.length)),t==="file"&&o.indexOf("?")!==-1&&(i+=i.indexOf("?")===-1?"?":"&",i+=o.split("?")[1]??""),t==="file"&&o.startsWith("%")&&!o.startsWith("%5C"))return G(t).mapper.from(t,new v("http://localhost"+i),e);try{let u=new v(r+i);if(u.host==="undefined")return null;let S=o.split("?")[0].split("/")[0],k=u.host!=""&&!isNaN(Number(u.host.replaceAll(".",""))),A=S.split("."),w=A.length===4&&A.every($=>$.length&&$.length<=3&&!isNaN(Number($))&&parseInt($)<=255);return k&&!w?null:s.mapper.from(s.key,u,e)}catch(u){return console.error("Error while parsing target path",e,r+i,u),null}}function _(e){return typeof e!="string"||!e.trim()?[]:e.split(`
2
- `).map(t=>t.trim()).filter(t=>t).map(t=>{let[o,...r]=t.split("="),s=r.join("=").trim();return o.trim()?[o.trim(),s]:null}).filter(t=>t!==null)}function je(e){return _(e).map(([t,o])=>({Name:t,Value:o}))}function Te(e){return Object.fromEntries(_(e))}function Re(e){if(!e)return false;let t=e.length;return !(t<3||t>63||!/^[a-z0-9.-]+$/.test(e)||!/^[a-z0-9]/.test(e)||!/[a-z0-9]$/.test(e)||/^\d{1,3}(\.\d{1,3}){3}$/.test(e)||/(\.\.)|(\.-)|(-\.)/.test(e))}function We(e){if(!e||e.length>253)return false;let t=e.split(".");for(let o of t)if(!o||o.length>63||!/^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?$/.test(o))return false;return true}function g(e,t,o,r,s){return m$1(l$1({},F),{customKey:`s3-${e}`,icon:r??F.icon,displayName:$localize`${t} (S3)`,description:$localize`Store backups in ${t} storage.`,dynamicFields:[...(F.dynamicFields??[]).filter(i=>i?.name!=="s3-server-name"),{name:"s3-server-name",order:1,shortDescription:$localize`Server`,longDescription:$localize`The hostname of the ${t} endpoint`,type:"NonValidatedSelectableString",loadOptions:i=>i.get(d).getS3ProvidersFiltered(u=>s.some(S=>u.value.endsWith(S))),isMandatory:true,formElement:i=>J.control(i??"")}],mapper:m$1(l$1({},F.mapper),{to:i=>{let{bucket:u,path:S}=i.custom;return s.some(k=>i.dynamic["s3-server-name"]?.endsWith(k))&&(i.destinationType="s3"),c(i,u,null,S)},default:i=>`s3-${e}://?use-ssl=true`,intercept:i=>s.some(u=>i.searchParams.get("s3-server-name")?.endsWith(u))??false})})}
3
- export{Be as B,Ee as E,G,Ie as I,Le as L,Ne as N,Re as R,Te as T,V,We as W,d,h,je as j,xe as x};
package/chunk-I5dxaHZ4.js DELETED
@@ -1,2 +0,0 @@
1
- import {N as Ne$1,C as Ct$1,M as Mt}from'./chunk-BZgAzrl9.js';import {I as I$1}from'./chunk-h6n5A491.js';import {J}from'./chunk-aCJqF9DH.js';import {j as je$1}from'./chunk-Dz5guW4b.js';import {N as Nt$1}from'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze$1,e as en,y as yt$1,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {a as at$1}from'./chunk-MDqH8T3Z.js';import {T,m,af as D1,E as E1,G as Ge$1,N as Nt,aj as l,ai as m$1,h as hw,bZ as ei,v,c as N,Q as Qi,aP as ql,n as nC,aQ as Gl,d as aT,$ as $l,bi as cg,y as vg,C as CE,g as cT,l as vT,H as Hg,O as Od,k as iC,P as Pd,F as Fg,i as Ig,j as jg,a1 as dT,ap as lT,a2 as fT,r as CD,a3 as KC,x as _D,s as jC,K as im,ak as dm,al as WC,L as Kg,aa as Ql,ao as qC,c3 as pC,a$ as JC,b_ as wg,c5 as lb}from'./main-3NL5M6JB.js';import'./chunk-DXEgz1tV.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var Se=[{name:"send-mail-to",type:"Email"},{name:"send-mail-from",type:"Email"},{name:"log-file",type:"FileTree"},{name:"compression-extension-file",type:"FileTree"},{name:"dbpath",type:"FileTree"},{name:"restore-path",type:"FileTree"},{name:"gpg-program-path",type:"FileTree"}];var he=()=>({updateOn:"blur"}),I=t=>({formView:t}),V=t=>({$implicit:t});function we(t,i){if(t&1){let e=vT();Qi(0,"button",15),Hg("click",function(){Od(e);let n=iC();return Pd(n.showTextArea.set(false))}),Fg(1,6),Ig(2,"sh-icon"),jg(),$l();}}function Le(t,i){if(t&1){let e=vT();Qi(0,"button",19,1),Hg("click",function(){let n=Od(e).$implicit,a=iC(3);return Pd(a.addSetting(n))}),Qi(2,"div",20),jC(3),Qi(4,"p"),jC(5),$l()()();}if(t&2){let e=i.$implicit;Kg("deprecated",e.deprecatedDescription),CE(3),Ql(" ",e.shortDescription," "),CE(2),im(e.name);}}function Ie(t,i){if(t&1&&(Qi(0,"h3",11),jC(1),$l(),dT(2,Le,6,4,"button",18,lT)),t&2){let e=i.$implicit;CE(),im(e.displayName),CE(),fT(e.options);}}function Ve(t,i){if(t&1){let e=vT();Qi(0,"sh-menu")(1,"button",21)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,17),Qi(5,"button",15),Hg("click",function(){Od(e);let n=iC(2);return Pd(n.addFreeTextSetting())}),Fg(6,8),Ig(7,"sh-icon"),jg(),$l(),Qi(8,"button",22),Hg("click",function(){Od(e);let n=iC(2);return Pd(n.showTextArea.set(true))}),Qi(9,"sh-icon"),jC(10,"link"),$l(),jC(11," Edit contents as text "),$l(),Qi(12,"button",15),Hg("click",function(){Od(e);let n=iC(2);return Pd(n.showOptionNames.set(!n.showOptionNames()))}),Fg(13,9),Ig(14,"sh-icon"),jg(),$l(),Gl(),$l();}}function Ne(t,i){if(t&1&&(Qi(0,"sh-menu",16)(1,"button",13),Fg(2,7),Ig(3,"sh-icon"),jg(),$l(),ql(4,17),dT(5,Ie,4,1,null,null,lT),Gl(),$l(),aT(7,Ve,15,0,"sh-menu")),t&2){let e=iC();vg("searchable",true),CE(5),fT(e.nonSelectedOptionsGrouped()),CE(2),cT(e.hasFreeTextSettings()?7:-1);}}function be(t,i){if(t&1){let e=vT();Qi(0,"textarea",23),Hg("ngModelChange",function(n){Od(e);let a=iC();return Pd(a.updateSettingsFromText(n))}),$l(),CD();}if(t&2){let e=iC();vg("ngModel",e.settingsAsText())("ngModelOptions",KC(2,he)),_D();}}function Ee(t,i){t&1&&(Qi(0,"div",24),jC(1,"Add a setting above to get started."),$l());}function Me(t,i){t&1&&(Qi(0,"sh-icon",32),jC(1," warning-octagon "),$l());}function Pe(t,i){if(t&1&&(Qi(0,"span",33),jC(1),$l()),t&2){let e=iC(2).$implicit;CE(),Ql("--",e.FormView.name);}}function ve(t,i){if(t&1&&jC(0),t&2){let e=iC(2).$implicit;Ql(" ",e.FormView.shortDescription," ");}}function $e(t,i){if(t&1&&(Qi(0,"sh-icon",34),jC(1,"archive"),$l()),t&2){let e=iC(2).$implicit;vg("shTooltip",e.FormView.deprecatedDescription);}}function Ae(t,i){if(t&1&&(Qi(0,"sh-icon",35),jC(1,"question"),$l()),t&2){let e=iC(2).$implicit;vg("shTooltip",e.FormView.longDescription);}}function De(t,i){if(t&1&&(aT(0,Me,2,0,"sh-icon",32),Qi(1,"span"),aT(2,Pe,2,1,"span",33)(3,ve,1,1),$l(),aT(4,$e,2,1,"sh-icon",34)(5,Ae,2,1,"sh-icon",35)),t&2){let e=iC().$implicit,o=qC(1),n=iC(2);cT(o?0:-1),CE(),Kg("deprecated",e.FormView.deprecatedDescription),CE(),cT(n.showOptionNames()?2:3),CE(2),cT(e.FormView.deprecatedDescription?4:e.FormView.longDescription?5:-1);}}function Re(t,i){t&1&&wg(0);}function Ge(t,i){if(t&1){let e=vT();Qi(0,"div",26)(1,"label"),cg(2,Re,1,0,"ng-container",36),$l(),Qi(3,"div")(4,"sh-form-field")(5,"input",37),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateFreeTextSettingName(a,n))}),$l(),CD(),Qi(6,"sh-icon",38),jC(7,"rectangle-dashed"),$l()()(),Qi(8,"div")(9,"sh-form-field")(10,"input",37),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),Qi(11,"sh-icon",38),jC(12,"textbox"),$l()()()();}if(t&2){let e=iC().$implicit,o=pC(3);CE(2),vg("ngTemplateOutlet",o),CE(3),vg("ngModel",e.Name),_D(),CE(5),vg("ngModel",e.Value()),_D();}}function ke(t,i){t&1&&wg(0);}function Be(t,i){if(t&1){let e=vT();Qi(0,"app-file-tree",27)(1,"label",39),cg(2,ke,1,0,"ng-container",36),$l(),Qi(3,"input",40),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);vg("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",true)("showHiddenNodes",true)("selectFiles",true)("hideShortcuts",false)("resolvePaths",true),CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("id",n)("ngModel",e.Value()),_D();}}function ze(t,i){if(t&1){let e=vT();Qi(0,"app-file-tree",28),Ig(1,"label",39),Qi(2,"input",40),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=qC(0);vg("startingPath",e.Value())("hideShortcuts",false)("resolvePaths",true),CE(),vg("for",o),CE(),vg("id",o)("ngModel",e.Value()),_D();}}function Ue(t,i){t&1&&wg(0);}function Ke(t,i){t&1&&wg(0);}function He(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"link"),$l());}function Je(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"hard-drives"),$l());}function Xe(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"jar"),$l());}function je(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"envelope"),$l());}function qe(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"textbox"),$l());}function Qe(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),cg(2,Ue,1,0,"ng-container",36)(3,Ke,1,0,"ng-container",41),$l(),Qi(4,"input",42),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),aT(5,He,2,0,"sh-icon",38)(6,Je,2,0,"sh-icon",38)(7,Xe,2,0,"sh-icon",38)(8,je,2,0,"sh-icon",38)(9,qe,2,0,"sh-icon",38),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(10,V,JC(8,I,e.FormView))),CE(),vg("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),_D(),CE(),cT(e.FormView.type==="Path"?5:e.FormView.type==="Hostname"?6:e.FormView.type==="Bucketname"?7:e.FormView.type==="Email"?8:9);}}function We(t,i){t&1&&wg(0);}function Ye(t,i){t&1&&wg(0);}function Ze(t,i){if(t&1){let e=vT();Qi(0,"sh-icon",45),Hg("click",function(){Od(e);let n=iC(2).$implicit;return Pd(n.showPassword=!n.showPassword)}),jC(1," eye "),$l();}}function et(t,i){if(t&1){let e=vT();Qi(0,"sh-icon",45),Hg("click",function(){Od(e);let n=iC(2).$implicit;return Pd(n.showPassword=!n.showPassword)}),jC(1," eye-slash "),$l();}}function tt(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),cg(2,We,1,0,"ng-container",36)(3,Ye,1,0,"ng-container",41),$l(),Qi(4,"input",43),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),Qi(5,"sh-icon",38),jC(6,"password"),$l(),aT(7,Ze,2,0,"sh-icon",44)(8,et,2,0,"sh-icon",44),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(10,V,JC(8,I,e.FormView))),CE(),vg("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),_D(),CE(3),cT(e.showPassword?7:8);}}function nt(t,i){t&1&&wg(0);}function it(t,i){t&1&&wg(0);}function ot(t,i){if(t&1&&jC(0),t&2){let e=i.$implicit;Ql(" ",e," ");}}function at(t,i){if(t&1){let e=vT();Qi(0,"sh-select",46)(1,"label",39),cg(2,nt,1,0,"ng-container",36)(3,it,1,0,"ng-container",41),$l(),Qi(4,"input",40),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),$l(),cg(5,ot,1,1,"ng-template",null,3,lb);}if(t&2){let e=pC(6),o=iC().$implicit,n=pC(3),a=qC(0);iC(2);let c=pC(10);vg("options",o.FormView.options)("isClearable",false)("optionTemplate",e),CE(),vg("for",a),CE(),vg("ngTemplateOutlet",n),CE(),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,V,JC(9,I,o.FormView))),CE(),vg("id",a)("ngModel",o.Value()),_D();}}function rt(t,i){t&1&&wg(0);}function lt(t,i){t&1&&wg(0);}function _t(t,i){if(t&1){let e=vT();Qi(0,"app-size",47),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),Qi(1,"label",39),cg(2,rt,1,0,"ng-container",36)(3,lt,1,0,"ng-container",41),$l()(),CD();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);vg("inputType",e.Name)("ngModel",e.Value())("customId",n),_D(),CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(9,V,JC(7,I,e.FormView)));}}function st(t,i){t&1&&wg(0);}function pt(t,i){t&1&&wg(0);}function ct(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),cg(2,st,1,0,"ng-container",36)(3,pt,1,0,"ng-container",41),$l(),Qi(4,"input",48),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),Qi(5,"sh-icon",38),jC(6,"numpad"),$l()();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(8,V,JC(6,I,e.FormView))),CE(),vg("id",n)("ngModel",e.Value()),_D();}}function mt(t,i){t&1&&wg(0);}function dt(t,i){t&1&&wg(0);}function ut(t,i){if(t&1){let e=vT();Qi(0,"sh-toggle",30)(1,"label",39),cg(2,mt,1,0,"ng-container",36)(3,dt,1,0,"ng-container",41),$l(),Qi(4,"input",49),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(8,V,JC(6,I,e.FormView))),CE(),vg("id",n)("ngModel",e.Value()),_D();}}function Ct(t,i){t&1&&wg(0);}function gt(t,i){t&1&&wg(0);}function ft(t,i){if(t&1&&jC(0),t&2){let e=i.$implicit;Ql(" ",e," ");}}function yt(t,i){if(t&1){let e=vT();Qi(0,"sh-select",50)(1,"label",39),cg(2,Ct,1,0,"ng-container",36)(3,gt,1,0,"ng-container",41),$l(),Qi(4,"input",51),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),$l(),CD(),$l(),cg(5,ft,1,1,"ng-template",null,4,lb);}if(t&2){let e=pC(6),o=iC().$implicit,n=pC(3),a=qC(0);iC(2);let c=pC(10);vg("options",o.FormView.options)("selectMultiple",true)("optionTemplate",e),CE(),vg("for",a),CE(),vg("ngTemplateOutlet",n),CE(),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(10,V,JC(8,I,o.FormView))),CE(),vg("ngModel",o.Value()),_D();}}function Tt(t,i){t&1&&wg(0);}function xt(t,i){t&1&&wg(0);}function St(t,i){if(t&1){let e=vT();Qi(0,"app-timespan",47),Hg("ngModelChange",function(n){Od(e);let a=iC().$implicit,c=iC(2);return Pd(c.updateSettingValue(a,n))}),Qi(1,"label",39),cg(2,Tt,1,0,"ng-container",36)(3,xt,1,0,"ng-container",41),$l()(),CD();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);vg("inputType",e.Name)("ngModel",e.Value())("customId",n),_D(),CE(),vg("for",n),CE(),vg("ngTemplateOutlet",o),CE(),vg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(9,V,JC(7,I,e.FormView)));}}function Ot(t,i){if(t&1){let e=vT();dm(0)(1),cg(2,De,6,5,"ng-template",null,2,lb),Qi(4,"div",25),aT(5,Ge,13,3,"div",26)(6,Be,4,11,"app-file-tree",27)(7,ze,3,6,"app-file-tree",28)(8,Qe,10,12,"sh-form-field")(9,tt,9,12,"sh-form-field")(10,at,7,13)(11,_t,4,11,"app-size",29)(12,ct,7,10,"sh-form-field")(13,ut,5,10,"sh-toggle",30)(14,yt,7,12)(15,St,4,11,"app-timespan",29),Qi(16,"button",31),Hg("click",function(){let n=Od(e).$implicit,a=iC(2);return Pd(a.removeSetting(n))}),Qi(17,"sh-icon"),jC(18,"x-bold"),$l()()();}if(t&2){let e=i.$implicit,o=i.$index,n=iC(2);WC("destination-"+e.Name+o),CE(),WC(n.inAppOptions(e.Name)),CE(3),Kg("align-remove-start",e.FormView.type==="FolderTree"||e.FormView.type==="FileTree"||e.FormView.type==="Boolean"),CE(),cT(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"||e.FormView.type==="Email"||e.FormView.type==="Hostname"||e.FormView.type==="Bucketname"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1);}}function Ft(t,i){if(t&1&&(aT(0,Ee,2,0,"div",24),dT(1,Ot,19,5,null,null,lT)),t&2){let e=iC();cT(e.selectedSettings().length===0?0:-1),CE(),fT(e.selectedSettings());}}function ht(t,i){if(t&1&&(Qi(0,"sh-icon",52),jC(1,"x-circle"),$l()),t&2){iC();let e=qC(0);vg("shTooltip",e?.message??"Invalid value");}}function wt(t,i){if(t&1&&(Qi(0,"sh-icon",34),jC(1,"warning"),$l()),t&2){iC();let e=qC(0);vg("shTooltip",e?.message??"Invalid value");}}function Lt(t,i){if(t&1&&(dm(0),aT(1,ht,2,1,"sh-icon",52)(2,wt,2,1,"sh-icon",34)),t&2){iC();let e=qC(0),o=iC().$implicit,n=WC(o.formView.validate(e));CE(),cT(n?.type==="error"?1:n?.type==="warning"?2:-1);}}function It(t,i){if(t&1&&(dm(0),aT(1,Lt,3,2)),t&2){let e=iC().$implicit,n=(WC(e.Value())??"").toString().trim()==="";CE(),cT(!n&&e.formView.validate?1:-1);}}function Vt(t,i){if(t&1&&aT(0,It,2,2),t&2){let e=i.$implicit;cT(e.Value?0:-1);}}var Oe=class t{#e=T(m);options=D1.required();hiddenOptions=E1([]);hasFreeTextSettings=E1(false);applicationOptions=E1();showTextArea=Ge$1(false);showOptionNames=Ge$1(false);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=Nt(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let a=this.allOptions().find(L=>L.name===n.Name?.replace("--","")),c=n.Value??"";if(a&&i.includes(a.name))return null;if(a){if(a.type==="Boolean"&&(c=this.isTrue(c)),a.type==="Integer"&&(c=parseInt(c)||0),a.type==="Enumeration"&&a.options){let M=c?.trim().toLowerCase(),q=a.options.find(Fe=>(Fe??"").trim().toLocaleLowerCase()===M);q&&(c=q);}let L=Se.find(M=>M.name===a?.name);return L&&(a=l(l({},a),L)),m$1(l({},n),{Value:Ge$1(c),FormView:a})}else if(this.hasFreeTextSettings())return m$1(l({},n),{Value:Ge$1(c),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=Nt(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>m$1(l({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=Nt(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
2
- `));updateSettingsFromText(i){if(typeof i!="string")return;let e=je$1(i);this.options.update(()=>e);}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return false}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?false:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}]);}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]});}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);if(i.FormView.type==="Boolean")return n[a].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[a].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let c=e?.trim().toLowerCase()??"",L=i.FormView.options.find(M=>(M??"").trim().toLocaleLowerCase()===c);if(L)return n[a].Value=L,n}return n[a].Value=e,n});}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);return n[a].Name=e,n});}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name));}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:11,vars:4,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let a;a=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Toggle option names `;let c;return c=$localize`By adding this option it will override the matching global option`,[["validateTemplate",""],["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,a,[3,"disableToggle","isActive"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],[1,"option-col"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles","hideShortcuts","resolvePaths"],[3,"startingPath","hideShortcuts","resolvePaths"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","small","remove-btn",3,"click"],["shTooltip",c,1,"error"],[1,"optionname"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngModelChange","type","id","ngModel"],["autocomplete","new-password",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"],[1,"error",3,"shTooltip"]]},template:function(e,o){e&1&&(Qi(0,"sh-toggle-card",10),ql(1,11)(2),nC(3,5),Gl(),Qi(4,"div",12),aT(5,we,3,0,"button",13)(6,Ne,8,2),$l(),Gl(),aT(7,be,1,3,"textarea",14)(8,Ft,3,1),$l(),cg(9,Vt,1,1,"ng-template",null,0,lb)),e&2&&(vg("disableToggle",true)("isActive",true),CE(5),cT(o.showTextArea()?5:6),CE(2),cT(o.showTextArea()?7:8));},dependencies:[Bn,Ze$1,en,yt$1,Rn,Jt,Ne$1,Ct$1,Mt,ei,I$1,Fe,v,ve$1,at$1,N,Nt$1,J],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;position:relative;z-index:1;max-width:32.5rem;width:100%}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{max-width:28rem;width:100%}.field-row.align-remove-start[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-start}.option-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.option-col[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{color:var(--base-12)}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.optionname[_ngcontent-%COMP%]{font-family:monospace}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"]})};export{Oe as OptionsListComponent};
package/chunk-K2iai6rC.js DELETED
@@ -1 +0,0 @@
1
- import {k}from'./chunk-CIe9Bupz.js';import {m as m$4}from'./chunk-CvSsZZty.js';import {m,N as Nt$1}from'./chunk-CyqqlRjO.js';import {E as E1,T,aX as y,a5 as g,N as Nt,G as Ge$1,z as za,h as hw,c as N,v,b2 as m$1,aJ as ci,d as aT,g as cT,aD as YC,aH as m$2,L as Kg,Q as Qi,$ as $l,k as iC,C as CE,s as jC,i as Ig,aa as Ql,y as vg,F as Fg,aM as ob,j as jg,au as Vg,aR as sb,aN as ab,av as rC,n as nC,ag as Yg,bi as cg,c3 as pC,l as vT,H as Hg,O as Od,P as Pd,K as im,c5 as lb,ab as C,a6 as be$1,bj as Q$1,I,m as m$3,aP as ql,aQ as Gl,o as oC,ac as I1,J as zu,p as lm,U as UC,r as CD,w as cm,x as _D,_ as _t,a3 as KC}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {a as at}from'./chunk-MDqH8T3Z.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze$1,e as en,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {C as C$1}from'./chunk-mflQLMHH.js';import {O}from'./chunk-CuJ_uEdr.js';function Y(t,n){if(t&1&&jC(0),t&2){let e=iC(3);Ql(" ",e.statusData().actionText," - ");}}function Z$1(t,n){t&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function ee$1(t,n){t&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function te(t,n){if(t&1){let e=vT();Qi(0,"div",9)(1,"button",10),Hg("click",function(u){Od(e);let F=iC(4);return Pd(F.copyToClipboard(u,F.tooltipText()))}),aT(2,Z$1,2,0,"sh-icon")(3,ee$1,2,0,"sh-icon"),jC(4," Copy "),$l(),Qi(5,"p",11),jC(6),$l()();}if(t&2){let e=iC(4);CE(),vg("color",e.copied()?"success":null),CE(),cT(e.copied()===true?2:3),CE(4),im(e.tooltipText());}}function ne(t,n){if(t&1&&(Qi(0,"div",8),jC(1),$l(),cg(2,te,7,3,"ng-template",null,0,lb)),t&2){let e=pC(3),s=iC(3);vg("shTooltip",e),CE(),Ql(" ",s.statusData().fileStatusText," ");}}function ie(t,n){if(t&1&&(Qi(0,"div"),aT(1,Y,1,1),jC(2),$l(),aT(3,ne,4,2),Ig(4,"sh-progress-bar",7)),t&2){let e=iC(2);CE(),cT(e.backupId()===null?1:-1),CE(),Ql(" ",e.statusData().statusText," "),CE(),cT(e.statusData()?.BackendFileSize?3:-1),CE(),vg("value",e.statusData().progress*100);}}function oe(t,n){if(t&1&&(Qi(0,"div",5),Fg(1,1),Ig(2,"sh-icon"),ob(3,"relativeTime"),ob(4,"date"),jg(),$l()),t&2){let e=iC(2);CE(4),Vg(e.nextBackup().backup?.Backup?.Name)(sb(3,3,e.nextBackup().time))(ab(4,5,e.nextBackup().time,"shortTime")),rC(1);}}function ae(t,n){t&1&&(Qi(0,"div",5),nC(1,2),$l());}function se(t,n){t&1&&(Qi(0,"div",6),Fg(1,3),Ig(2,"sh-spinner"),jg(),$l()),t&2&&(CE(2),Yg("--spinner-size","12px")("--spinner-thickness","2px"));}function re(t,n){if(t&1&&(Qi(0,"div",4),aT(1,ie,5,4)(2,oe,5,8,"div",5)(3,ae,2,0,"div",5)(4,se,3,4,"div",6),$l()),t&2){let e=iC();CE(),cT(e.isActive()?1:!e.backupId()&&(e.nextBackup().backup||e.nextBackup().time)?2:!e.backupId()&&!e.serverState()?.ActiveTask?3:e.backupId()?-1:4);}}var W$1=class t{backupId=E1(null);#e=T(y);#t=T(g);statusData=this.#e.statusData;serverState=this.#e.serverState;isActive=Nt(()=>this.#e.runningBackupId()!==null);isTargetRunningTask=Nt(()=>{let n=this.backupId();return n?String(this.#e.runningBackupId())===String(n):true});isVisible=Nt(()=>this.backupId()?this.isActive()?this.isTargetRunningTask():false:true);nextBackup=Nt(()=>{this.#t.backups();return {backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});tooltipText=Nt(()=>{let n=this.statusData();return n?.CurrentFilename?`${n.CurrentFilename}`:""});copied=Ge$1(false);copiedTimeout;copyToClipboard(n,e){n.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(true),this.copiedTimeout=setTimeout(()=>{this.copied.set(false);},2e3);}tooltipTrigger=Ge$1(true);tooltipTriggerEffect=za(()=>{this.tooltipText(),this.tooltipTrigger.update(n=>!n),this.copiedTimeout&&(clearTimeout(this.copiedTimeout),this.copiedTimeout=void 0,this.copied.set(false));});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-backup-progress"]],hostVars:2,hostBindings:function(e,s){e&2&&Kg("is-visible",s.isVisible());},inputs:{backupId:[1,"backupId"]},features:[YC([m$2])],decls:1,vars:1,consts:()=>{let n;n=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let e;e=$localize`No scheduled tasks`;let s;return s=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`,[["fileStatusTooltip",""],n,e,s,[1,"progress-section"],[1,"label"],[1,"label","label-loading"],[1,"raised","primary",3,"value"],[1,"file-status-text",3,"shTooltip"],[1,"tooltip-status-content"],["shButton","","size","small",3,"click","color"],[1,"tooltip-file-status-text"]]},template:function(e,s){e&1&&aT(0,re,5,1,"div",4),e&2&&cT(s.isVisible()?0:-1);},dependencies:[N,v,m,d,at,m$1,ci],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}[_nghost-%COMP%]:not(.is-visible){display:none}.file-status-text[_ngcontent-%COMP%]{color:var(--base-8)}.file-status-text[_ngcontent-%COMP%]:empty{display:none}.tooltip-file-status-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word;display:inline-block;margin-bottom:.25rem}.tooltip-status-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;min-width:18.75rem;flex:1 0}.progress-section[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-top:.25rem}app-status-bar[_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%], app-status-bar [_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;max-width:initial;margin-top:0}.label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"]})};function he(o,t){o&1&&(Qi(0,"sh-icon",2),jC(1,"x-bold"),$l());}function ye(o,t){o&1&&(Qi(0,"sh-icon",3),jC(1,"list-bold"),$l());}function be(o,t){if(o&1){let n=vT();Qi(0,"button",1),Hg("click",function(){Od(n);let i=iC();return Pd(i.toggleNav())}),aT(1,he,2,0,"sh-icon",2)(2,ye,2,0,"sh-icon",3),$l();}if(o&2){let n=iC();CE(),cT(n.isNavOpen()?1:2);}}var w=class o{#e=T(m$4);isNavOpen=this.#e.isNavOpen;isMobile=this.#e.isMobile;toggleNav(){this.#e.toggleNav();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=hw({type:o,selectors:[["app-mobile-menu-toggle"]],decls:1,vars:1,consts:[["shButton","",1,"small","toggle-sidebar","ghost"],["shButton","",1,"small","toggle-sidebar","ghost",3,"click"],[1,"cross"],[1,"burger"]],template:function(n,e){n&1&&aT(0,be,3,1,"button",0),n&2&&cT(e.isMobile()?0:-1);},dependencies:[v,N],styles:["[_nghost-%COMP%]{display:contents}.toggle-sidebar[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center}.toggle-sidebar[_ngcontent-%COMP%] .cross[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger[_ngcontent-%COMP%]{opacity:1;transition:opacity 124ms linear;margin:0}.toggle-sidebar[_ngcontent-%COMP%] .cross.hidden[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger.hidden[_ngcontent-%COMP%]{opacity:0}"]})};var Ie=()=>["/connect/logon"];function ve(o,t){o&1&&(Fg(0,0,1),Ig(1,"div",9),jg());}function Be(o,t){o&1&&(Fg(0,0,2),Ig(1,"div",10),jg());}function ke(o,t){if(o&1){let n=vT();Qi(0,"div",8),Hg("click",function(){Od(n);let i=iC();return Pd(i.resetAndRetry())}),Fg(1,0),aT(2,ve,2,0)(3,Be,2,0),jg(),$l();}if(o&2){let n=iC();CE(2),cT(n.resetting()?2:3);}}function Le(o,t){o&1&&(Qi(0,"div",6),Fg(1,1),Ig(2,"div",11),jg(),$l()),o&2&&vg("routerLink",KC(1,Ie));}function Ge(o,t){o&1&&(Qi(0,"div",6),Fg(1,2),Ig(2,"div",10),jg(),$l()),o&2&&vg("routerLink",KC(1,Ie));}function xe(o,t){if(o&1){let n=vT();Qi(0,"div",7),Fg(1,3),Qi(2,"sh-icon",12),Hg("click",function(){Od(n);let i=iC();return Pd(i.cancel())}),$l(),Qi(3,"div",13),Hg("click",function(){Od(n);let i=iC();return Pd(i.claim())}),$l(),Ig(4,"div",14),jg(),$l();}}function $e(o,t){if(o&1){let n=vT();Qi(0,"div",8),Hg("click",function(){Od(n);let i=iC();return Pd(i.openConsole())}),Fg(1,4),Ig(2,"div",15),jg(),$l();}}var G=class o{#e=T(C$1);state=this.#e.state;resetting=Ge$1(false);stateEffect=za(()=>{let t=this.#e.state(),n=this.resetting();t==="registered"&&n&&(this.resetting.set(false),this.#e.beginRemoteRegistration());});ngOnInit(){this.#e.refreshRemoteControlStatus();}claim(){let t=this.#e.claimUrl();t&&window.open(t,"_blank");}cancel(){this.#e.cancelRemoteRegistration();}resetAndRetry(){this.resetting.set(true),this.#e.cancelRemoteRegistration();}openConsole(){this.#e.openConsole();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=hw({type:o,selectors:[["app-remote-connectivity-status"]],decls:5,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Resetting ${"\uFFFD#1:1\uFFFD"}:START_TAG_DIV:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Click to connect ${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=oC(t);let n;n=$localize` Connecting ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let e;e=$localize` Click to register ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let i;i=$localize`Cancel registration`;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:Click to claim${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:`,a=oC(a);let u;return u=$localize` Connected ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`,[t,n,e,a,u,[1,"connectivity-status"],[1,"connectivity-status",3,"routerLink"],[1,"connectivity-status","claim"],[1,"connectivity-status",3,"click"],[1,"status","blinking"],[1,"status"],[1,"status","warning","blinking"],["shTooltip",i,3,"click"],[1,"claim",3,"click"],[1,"status","success","blinking"],[1,"status","success"]]},template:function(n,e){if(n&1&&aT(0,ke,4,1,"div",5)(1,Le,3,2,"div",6)(2,Ge,3,2,"div",6)(3,xe,5,0,"div",7)(4,$e,3,0,"div",5),n&2){let i=e.state()==="unknown"||e.state()==="inactive"||e.state()==="registeringfaulted",a=e.state()==="registeringfaulted",u=e.state()==="registering",r=e.state()==="registered",M=e.state()==="connected"||e.state()==="disabled"||e.state()==="connecting";cT(a?0:u?1:i?2:r?3:M?4:-1);}},dependencies:[_t,N,at],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 .75rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{padding:0}}.hide-text[_nghost-%COMP%]{font-size:0}.in-menu[_nghost-%COMP%]{padding:.75rem;border-bottom:1px solid var(--base-4)}.connectivity-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.connectivity-status[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%]{display:flex;gap:.5rem;cursor:pointer}.connectivity-status.claim[_ngcontent-%COMP%]:hover{color:inherit}.connectivity-status.claim[_ngcontent-%COMP%] .claim[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]:hover{color:var(--error-8)}.status[_ngcontent-%COMP%]{width:.625rem;height:.625rem;border-radius:50%;background-color:var(--base-4)}.status.success[_ngcontent-%COMP%]{background-color:var(--success-8)}.status.warning[_ngcontent-%COMP%]{background-color:var(--warn-8)}.status.blinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking 1s infinite}@keyframes _ngcontent-%COMP%_blinking{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}"]})};var Re={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ue=["mbps","gbps"],Pe=8,Z=1024,V=Z*1024,q=V*1024,Q=q*1024,Ae=Q*1024,we={B:1,KB:Z,MB:V,GB:q,TB:Q,PB:Ae},Ve=1e3,j=Ve*1e3,W=j*1e3,He=[{threshold:Ae,unitPrefix:"PByte"},{threshold:Q,unitPrefix:"TByte"},{threshold:q,unitPrefix:"GByte"},{threshold:V,unitPrefix:"MByte"},{threshold:Z,unitPrefix:"KByte"},{threshold:1,unitPrefix:"Byte"}],x=class o{#e=T(C);closed=I1();isSubmitting=Ge$1(false);sizeOptions=Ge$1([...Ue]);maxUpload=Ge$1(0);maxDownload=Ge$1(0);maxUploadUnit=Ge$1("mbps");maxDownloadUnit=Ge$1("mbps");ngOnInit(){this.init();}convertToBitsPerSecondUnits(t,n){let i=t*(we[n.toUpperCase()]||V)*Pe;return i===0?{value:0,unit:"mbps"}:i>=W?{value:parseFloat((i/W).toFixed(2)),unit:"gbps"}:{value:parseFloat((i/j).toFixed(2)),unit:"mbps"}}convertFromBitsPerSecondUnits(t,n){let e=0;switch(n){case "gbps":e=t*W;break;case "mbps":e=t*j;break}let i=e/Pe;if(i===0)return {valueForApi:0,unitPrefixForApi:"Byte"};for(let{threshold:a,unitPrefix:u}of He)if(i>=a)return {valueForApi:Math.round(i/a),unitPrefixForApi:u};return {valueForApi:Math.round(i),unitPrefixForApi:"Byte"}}init(){this.#e.getApiV1Serversettings().subscribe({next:t=>{let n=t?.["max-upload-speed"],e=t?.["max-download-speed"];if(n&&n!==""){let i=n.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxUpload.set(r.value),this.maxUploadUnit.set(r.unit);}else console.warn("Unexpected max-upload-speed format from API:",n),this.resetUpload();}else this.resetUpload();if(e&&e!==""){let i=e.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxDownload.set(r.value),this.maxDownloadUnit.set(r.unit);}else console.warn("Unexpected max-download-speed format from API:",e),this.resetDownload();}else this.resetDownload();},error:t=>{console.error("Failed to get server settings:",t),this.resetDownload(),this.resetUpload();}});}resetDownload(){this.maxDownload.set(0),this.maxDownloadUnit.set("mbps");}resetUpload(){this.maxUpload.set(0),this.maxUploadUnit.set("mbps");}blockDecimalKeys(t){if([".",","].includes(t.key))return t.preventDefault()}cleanupInputAfterPasting(t){t.preventDefault();let n=t.clipboardData?.getData("text/plain");if(!n)return;let e=n.replaceAll(/[\.,]/g,"");t.target.value=e;}submit(){this.isSubmitting.set(true);let t="",n="",e=this.maxUpload()??0,i=this.maxUploadUnit(),a=this.maxDownload()??0,u=this.maxDownloadUnit();if(e>0){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(e,i),h=Re[M];h?t=`${r}${h}`:console.error(`Invalid unit prefix for API submission (upload): ${M}. Defaulting to empty string.`);}if(a){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(a,u),h=Re[M];h?n=`${r}${h}`:console.error(`Invalid unit prefix for API submission (download): ${M}. Defaulting to empty string.`);}this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":t,"max-download-speed":n}}).pipe(zu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.closed.emit(true);},error:r=>{console.error("Failed to submit throttle settings:",r);}});}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=hw({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:10,consts:()=>{let t;t=$localize`Throttle network speed`;let n;n=$localize`We will round bits to the nearest byte value.`;let e;e=$localize`Max upload speed`;let i;i=$localize`Max download speed`;let a;a=$localize`Cancel`;let u;return u=$localize` Update settings `,[t,n,e,i,a,u,["content",""],[1,"column"],[1,"field-row"],["type","number",3,"paste","keydown","ngModelChange","ngModel"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(n,e){n&1&&(Qi(0,"header")(1,"h3"),nC(2,0),$l(),Qi(3,"p"),nC(4,1),$l()(),Qi(5,"div",6)(6,"div",7)(7,"div",8)(8,"label"),nC(9,2),$l(),Qi(10,"sh-form-field")(11,"input",9),Hg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),lm("ngModelChange",function(a){return UC(e.maxUpload,a)||(e.maxUpload=a),a}),$l(),CD(),$l(),Qi(12,"sh-select",10)(13,"input",11),lm("ngModelChange",function(a){return UC(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),$l(),CD(),$l()(),Qi(14,"div",8)(15,"label"),nC(16,3),$l(),Qi(17,"sh-form-field")(18,"input",9),Hg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),lm("ngModelChange",function(a){return UC(e.maxDownload,a)||(e.maxDownload=a),a}),$l(),CD(),$l(),Qi(19,"sh-select",10)(20,"input",11),lm("ngModelChange",function(a){return UC(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),$l(),CD(),$l()()()(),Qi(21,"footer",12)(22,"button",13),Hg("click",function(){return e.closed.emit(false)}),nC(23,4),$l(),Qi(24,"button",14),Hg("click",function(){return e.submit()}),nC(25,5),$l()()),n&2&&(CE(11),cm("ngModel",e.maxUpload),_D(),CE(),vg("isClearable",false)("options",e.sizeOptions()),CE(),cm("ngModel",e.maxUploadUnit),_D(),CE(5),cm("ngModel",e.maxDownload),_D(),CE(),vg("isClearable",false)("options",e.sizeOptions()),CE(),cm("ngModel",e.maxDownloadUnit),_D(),CE(4),Kg("loading",e.isSubmitting()));},dependencies:[Bn,Ze$1,en,Rn,Jt,Fe,Nt$1,v],styles:['[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;gap:.5rem;margin-bottom:1rem}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-areas:"label label" "input select";grid-template-columns:1fr auto;align-items:center;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}.field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:select}']})};function Ye(o,t){o&1&&Ig(0,"app-remote-connectivity-status");}function ze(o,t){if(o&1){let n=vT();Qi(0,"button",7),Hg("click",function(){Od(n);let i=iC(2);return Pd(i.abort())}),Fg(1,1),Ig(2,"sh-icon"),jg(),$l();}}function Je(o,t){if(o&1){let n=vT();Qi(0,"button",7),Hg("click",function(){Od(n);let i=iC(2);return Pd(i.stop())}),Fg(1,2),Ig(2,"sh-icon"),jg(),$l();}}function Xe(o,t){if(o&1&&aT(0,ze,3,0,"button",14)(1,Je,3,0,"button",14),o&2){let n=iC();cT(n.isStopping()?0:1);}}function Ke(o,t){o&1&&(Fg(0,0,1),Ig(1,"sh-icon"),jg());}function We(o,t){o&1&&(Fg(0,0,2),Ig(1,"sh-icon"),jg());}function je(o,t){o&1&&Ig(0,"app-remote-connectivity-status",10);}function Ze(o,t){o&1&&Ig(0,"app-remote-connectivity-status",12);}function qe(o,t){if(o&1){let n=vT();Qi(0,"button",13),Hg("click",function(){Od(n);let i=iC();return Pd(i.isStopping()?i.abort():i.stop())}),Qi(1,"sh-icon"),jC(2),$l(),jC(3),$l();}if(o&2){let n=iC();CE(2),im(n.isStopping()?"skull":"stop"),CE(),Ql(" ",n.isStopping()?"Abort":"Stop"," ");}}var ee=class o{#e=T(C);#t=T(y);#n=T(be$1);#a=T(Q$1);#i=T(I);#s=T(m$3);#l=T(O);clientIsRunning=this.#t.clientIsRunning;isResuming=this.#t.isResuming;runningTask=Nt(()=>this.#a.serverState()?.ActiveTask?.Item1);isStopping=Nt(()=>this.runningTask()==this.#o());#o=Ge$1(-1);isUsingRelay=this.#i.relayIsEnabled;hideConsoleConnectionStatus=this.#l.isConsoleConnectionStatusHidden;openThrottleSettingsDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"});}openPauseDialog(){this.#n.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#t.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#e.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#e.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}ngAfterViewInit(){let t=this.#i.relayIsEnabled()||!this.#s.hasWebSocket()?"longpoll":"websocket";this.#t.setConnectionMethod(t);}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=hw({type:o,selectors:[["app-status-bar"]],decls:31,vars:10,consts:()=>{let t;t=$localize`${"\uFFFD*9: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/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10: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/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=oC(t);let n;n=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let e;return e=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `,[t,n,e,[1,"current-backup"],[1,"global-progress"],[1,"current-backup-actions"],[1,"desktop-actions"],["shButton","",3,"click"],[1,"mobile-actions"],["shButton","",1,"small","menu-mobile-toggle"],[1,"hide-text"],["menu",""],[1,"in-menu"],[3,"click"],["shButton",""]]},template:function(n,e){n&1&&(Qi(0,"div",3),Ig(1,"app-mobile-menu-toggle")(2,"app-backup-progress",4),Qi(3,"div",5)(4,"div",6),aT(5,Ye,1,0,"app-remote-connectivity-status"),aT(6,Xe,2,1),Qi(7,"button",7),Hg("click",function(){return e.pauseResume()}),Fg(8,0),aT(9,Ke,2,0)(10,We,2,0),jg(),$l(),Qi(11,"button",7),Hg("click",function(){return e.openThrottleSettingsDialog()}),Qi(12,"sh-icon"),jC(13,"speedometer"),$l()()(),Qi(14,"div",8)(15,"sh-menu")(16,"button",9),aT(17,je,1,0,"app-remote-connectivity-status",10),Qi(18,"sh-icon"),jC(19,"dots-three-vertical-bold"),$l()(),ql(20,11),aT(21,Ze,1,0,"app-remote-connectivity-status",12),aT(22,qe,4,2,"button"),Qi(23,"button",13),Hg("click",function(){return e.pauseResume()}),Qi(24,"sh-icon"),jC(25),$l(),jC(26),$l(),Qi(27,"button",13),Hg("click",function(){return e.openThrottleSettingsDialog()}),Qi(28,"sh-icon"),jC(29,"speedometer"),$l(),jC(30," Throttle Settings "),$l(),Gl(),$l()()()()),n&2&&(CE(5),cT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?5:-1),CE(),cT(e.runningTask()?6:-1),CE(),Kg("loading",e.isResuming()),CE(2),cT(e.clientIsRunning()?9:10),CE(8),cT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?17:-1),CE(4),cT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?21:-1),CE(),cT(e.runningTask()?22:-1),CE(3),im(e.clientIsRunning()?"pause":"play"),CE(),Ql(" ",e.clientIsRunning()?"Pause":"Resume"," "));},dependencies:[G,N,v,ve$1,w,W$1],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-4);position:sticky;top:0;z-index:2000;background:var(--base-1)}[_nghost-%COMP%]:has(sh-progress-bar){padding:1rem 1rem 1.5rem}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.global-progress[_ngcontent-%COMP%]{flex:1 0;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%], .current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:none}}.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:none}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:flex}}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%]{position:relative}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%] app-remote-connectivity-status[_ngcontent-%COMP%]{position:absolute;top:-.25rem;right:-.25rem}.menu-status-item[_ngcontent-%COMP%]{padding:.5rem 1rem;display:flex;flex-direction:column;gap:.25rem;border-bottom:1px solid var(--base-4);margin-bottom:.25rem}.menu-status-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.875rem}"]})};export{W$1 as W,ee as e};
package/chunk-L8hQtTzU.js DELETED
@@ -1 +0,0 @@
1
- import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {T,ah as fe,ab as C,e as ee,G as Ge,ay as Qu,J as zu,h as hw,_ as _t,c as N,v,Q as Qi,F as Fg,i as Ig,$ as $l,H as Hg,j as jg,n as nC,s as jC,d as aT,C as CE,y as vg,a3 as KC,L as Kg,g as cT,o as oC,ac as I1,b8 as Iw,r as CD,x as _D}from'./main-3NL5M6JB.js';var q=(()=>{class r{constructor(){this.filesOver=Ge(false),this.filesDropped=I1();}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(true);}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(false);}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(false);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e);}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275dir=Iw({type:r,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&Hg("dragover",function(c){return i.onDragOver(c)})("dragleave",function(c){return i.onDragLeave(c)})("drop",function(c){return i.ondrop(c)}),e&2&&Kg("filesover",i.filesOver());},outputs:{filesDropped:"filesDropped"}});}}return r})();var Q=()=>["/"];function W(r,o){r&1&&(Qi(0,"sh-form-field")(1,"label",11),nC(2,2),$l(),Ig(3,"input",12),CD(),$l()),r&2&&(CE(3),_D());}var p=new jn,D=class r{#t=T(fe);#e=T(C);#o=T(ee);isRestoring=Ge(false);isSecureFile=Ge(false);importForm=p.group({config:p.control(""),cmdline:p.control(false),importMetadata:p.control(false),direct:p.control(false),passphrase:p.control("")});selectedFile=Ge(null);onFileDropped(o){let e=o.target?.files?.item(0);if(e){let i=new FileReader;this.isSecureFile.set(e.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(e);}}#i(o){let t=o.target?.result;this.importForm.patchValue({config:this.#r(t)});}#r(o){let t=new Uint8Array(o),e=t.byteLength,i="";for(let n=0;n<e;n++)i+=String.fromCharCode(t[n]);return btoa(i)}submit(){this.isRestoring.set(true),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(Qu(o=>{let e={Backup:o.data.Backup};return this.#e.postApiV1Backups({requestBody:e,temporary:true})}),zu(()=>this.isRestoring.set(false))).subscribe({next:o=>{this.#o.navigate(["/restore-draft",o.ID]);},error:o=>{this.#t.error(o.message);}});}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=hw({type:r,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let o;o=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,o=oC(o);let t;t=$localize`Select a configuration file`;let e;return e=$localize`Passphrase`,[o,t,e,[1,"actions"],["shButton","","type","button",1,"outlined",3,"routerLink"],["shButton","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["shDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","autocomplete","disabled","formControlName","passphrase"]]},template:function(t,e){t&1&&(Qi(0,"header")(1,"h3"),Fg(2,0),Qi(3,"div",3)(4,"button",4),Ig(5,"sh-icon"),$l(),Qi(6,"button",5),Hg("click",function(){return e.submit()}),Ig(7,"sh-icon"),$l()(),jg(),$l()(),Qi(8,"form",6)(9,"sh-form-field",7),Hg("fileDropped",function(n){return e.onFileDropped(n)}),Qi(10,"label",8),nC(11,1),$l(),Qi(12,"input",9),Hg("change",function(n){return e.onFileDropped(n)}),$l(),Qi(13,"sh-icon",10),jC(14,"upload"),$l()(),aT(15,W,4,0,"sh-form-field"),$l()),t&2&&(CE(4),vg("routerLink",KC(6,Q)),CE(2),Kg("loading",e.isRestoring()),vg("disabled",e.isRestoring()),CE(2),vg("formGroup",e.importForm),CE(7),cT(e.isSecureFile()?15:-1));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,_t,q,Fe,N,v],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"]})};export{D as default};
package/chunk-Y-xXBGKy.js DELETED
@@ -1 +0,0 @@
1
- import {G}from'./chunk-DV8bRznt.js';import v from'./chunk-C7AeY2HY.js';import'./chunk-Bj7EyCHb.js';import'./chunk-I5dxaHZ4.js';import {i as ie$1}from'./chunk-D2G7_0hG.js';import'./chunk-8Y8ReLEn.js';import'./chunk-BmmYJhOf.js';import'./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 {m}from'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,ab as C,bj as Q$1,aX as y,aw as W,G as Ge,N as Nt,h as hw,c as N,aH as m$1,bh as pi,Q as Qi,d as aT,n as nC,$ as $l,i as Ig,C as CE,g as cT,y as vg,aP as ql,aQ as Gl,k as iC,F as Fg,j as jg,au as Vg,av as rC,as as qd,bk as Gd,s as jC,aM as ob,aB as sm,aR as sb}from'./main-3NL5M6JB.js';import {f as f$1}from'./chunk-B1c7h-_w.js';import {d}from'./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';function Q(n,t){n&1&&(Qi(0,"div",17),qd(),Qi(1,"svg",19),Ig(2,"circle",20),$l(),Gd(),Qi(3,"sh-icon",21),nC(4,3),$l()());}function U(n,t){n&1&&(Qi(0,"div",18),qd(),Qi(1,"svg",19),Ig(2,"circle",20),$l(),Gd(),Qi(3,"sh-icon",22),nC(4,4),$l()());}function Y(n,t){if(n&1&&(Qi(0,"sh-card",10),ql(1,16),nC(2,2),Gl(),aT(3,Q,5,0,"div",17)(4,U,5,0,"div",18),$l()),n&2){let e=iC();CE(3),cT(e.restoreResult()=="success"?3:4);}}function ee(n,t){if(n&1&&(jC(0),ob(1,"number"),ob(2,"number")),n&2){let e=iC(2);sm(" ",sb(1,2,e.statusData()?.ProcessedFileCount)," of ",sb(2,4,e.statusData()?.TotalFileCount)," ");}}function te(n,t){n&1&&(ql(0),nC(1,8),Gl());}function ne(n,t){if(n&1&&(jC(0),ob(1,"bytes"),ob(2,"bytes")),n&2){let e=iC(2);sm(" ",sb(1,2,e.statusData()?.ProcessedFileSize)," of ",sb(2,4,e.statusData()?.TotalFileSize)," ");}}function oe(n,t){n&1&&(ql(0),nC(1,9),Gl());}function ie(n,t){if(n&1&&(Qi(0,"sh-card",10)(1,"h3"),Fg(2,5),Ig(3,"sh-spinner",23),jg(),$l(),Qi(4,"div",24),Ig(5,"sh-progress-bar",25),Qi(6,"p")(7,"span"),nC(8,6),$l(),aT(9,ee,3,6)(10,te,2,0,"ng-container"),$l(),Qi(11,"p")(12,"span"),nC(13,7),$l(),aT(14,ne,3,6)(15,oe,2,0,"ng-container"),$l()()()),n&2){let e=iC();CE(3),Vg(e.statusData()?.statusText),rC(2),CE(2),vg("value",e.statusData()?.OverallProgress),CE(4),cT(e.statusData()?.ProcessedFileCount?9:10),CE(5),cT(e.statusData()?.ProcessedFileSize?14:15);}}var f=class n{#i=T(C);#r=T(Q$1);#t=T(y);#n=T(G);#s=T(W);statusData=this.#t.statusData;backupId=this.#n.backupId;restoreResult=Ge("");#e=null;lastRestoreStarted=Nt(()=>{if(this.#e)return this.#e;let t=this.#t.statusData()?.backup?.Backup?.Metadata?.LastRestoreStarted??null;if(!t)return null;let e=this.fixDate(t);return this.#e=e,e});notificationFilterPredicate=()=>{let t=this.lastRestoreStarted();return {predicate:e=>(e.BackupID===this.#n.backupId()&&t&&t.getTime()<=new Date(e.Timestamp).getTime())??false}};ngOnInit(){let t=this.#s.snapshot.params.taskid?.toString()??"";this.#i.getApiV1TaskByTaskid({taskid:t}).subscribe({next:e=>{if(e.TaskStarted&&(this.#e=new Date(e.TaskStarted)),!e.TaskFinished&&e.ID){this.#_(e.ID);return}this.#o(e);},error:e=>{console.error("Error fetching task:",e),this.restoreResult.set("error"),alert("Failed to fetch task details. Please try again later.");}});}#_(t){this.#r.waitForTaskToComplete(t).subscribe(e=>{this.#o(e);});}#o(t){t.TaskFinished!=null&&this.restoreResult.set(t.Status==="Completed"&&t.ErrorMessage==null?"success":"error");}fixDate(t){return new Date(`${t.slice(0,4)}-${t.slice(4,6)}-${t.slice(6,8)}T${t.slice(9,11)}:${t.slice(11,13)}:${t.slice(13,15)}Z`)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-restore-progress"]],decls:12,vars:5,consts:()=>{let t;t=$localize`Notifications`;let e;e=$localize`Logs`;let a;a=$localize`Restore completed`;let M;M=$localize`check-bold`;let N;N=$localize`warning-octagon`;let G;G=$localize` Restore progress: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_SPINNER:`;let h;h=$localize`Files processed:`;let F;F=$localize`Size processed:`;let L;L=$localize`N/A`;let y;return y=$localize`N/A`,[t,e,a,M,N,G,h,F,L,y,[1,"progress","type-a"],[1,"notifications","type-a"],[1,"notification-list"],[3,"notificationFilterPredicate"],[1,"logs","type-a"],[3,"polling","whenFilter","backupIdFilter"],["title",""],[1,"complete-success"],[1,"complete-failure"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"success"],[1,"error"],[1,"primary"],[1,"progress-content"],[3,"value"]]},template:function(e,a){e&1&&(Qi(0,"section"),aT(1,Y,5,1,"sh-card",10)(2,ie,16,4,"sh-card",10),Qi(3,"sh-card",11)(4,"h3"),nC(5,0),$l(),Qi(6,"div",12),Ig(7,"app-notifications",13),$l()(),Qi(8,"sh-card",14)(9,"h3"),nC(10,1),$l(),Ig(11,"app-logs-live",15),$l()()),e&2&&(CE(),cT(a.restoreResult()!=""?1:2),CE(6),vg("notificationFilterPredicate",a.notificationFilterPredicate()),CE(4),vg("polling",a.restoreResult()=="")("whenFilter",a.lastRestoreStarted()?.getTime())("backupIdFilter",a.backupId()));},dependencies:[v,d,m,N,f$1,ie$1,m$1,pi],styles:['[_nghost-%COMP%]{display:block;padding:0 1.25rem;margin-top:32px}section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;grid-template-columns:2fr 1fr;grid-template-areas:"progress notifications" "logs logs"}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{grid-area:progress}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]:has(.complete-check){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] sh-spinner[_ngcontent-%COMP%]{--spinner-size: 1.25rem;--spinner-thickness: .1875rem}section[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%]{grid-area:notifications}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%]{grid-area:logs}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{max-height:50rem;overflow:auto}.notification-list[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.complete-success[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--success-8)}.complete-success[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-success[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--success-8)}.complete-failure[_ngcontent-%COMP%]{position:relative;width:6.25rem;height:6.25rem;display:flex;justify-content:center;align-items:center;color:var(--error-8)}.complete-failure[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.complete-failure[_ngcontent-%COMP%] .border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--error-8)}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke-width:.3125rem;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-bottom:.75rem}.progress-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.25rem}']})};export{f as default};
package/chunk-Z81HNfgo.js DELETED
@@ -1 +0,0 @@
1
- import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {T,e as ee,I,m,a as T$1,G as Ge,E as E1,N as Nt,q as qe,z as za,b as me$1,h as hw,_ as _t,v,u as ue$1,c as N,Q as Qi,d as aT,$ as $l,f as NC,t as tb,C as CE,g as cT,o as oC,F as Fg,j as jg,i as Ig,k as iC,l as vT,n as nC,p as lm,O as Od,U as UC,P as Pd,r as CD,s as jC,H as Hg,w as cm,x as _D,y as vg}from'./main-3NL5M6JB.js';import {S,C}from'./chunk-mflQLMHH.js';import {O}from'./chunk-CuJ_uEdr.js';import'./chunk-DGvC49aU.js';var re=(n,t,e,i,o)=>({"loading-state":n,"ready-to-add-link":t,"is-connected":e,"failed-to-connect":i,"is-registered":o});function ae(n,t){n&1&&nC(0,0,1);}function le(n,t){n&1&&nC(0,0,2);}function se(n,t){if(n&1){let e=vT();Qi(0,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.cancel())}),jC(1,"Cancel registration"),$l();}}function ce(n,t){if(n&1&&(Qi(0,"div",7)(1,"p"),Fg(2,0),aT(3,ae,1,0)(4,le,1,0),jg(),$l(),Ig(5,"sh-progress-bar",8),aT(6,se,2,0,"button",9),$l()),n&2){let e=iC();CE(3),cT(e.state()==="unknown"?3:4),CE(3),cT((e.registeringCounter()??0)>=5&&e.state()==="registering"?6:-1);}}function de(n,t){if(n&1){let e=vT();Qi(0,"sh-form-field")(1,"label",11),nC(2,1),$l(),Qi(3,"input",12),lm("ngModelChange",function(o){Od(e);let C=iC();return UC(C.customRegisterUrl,o)||(C.customRegisterUrl=o),Pd(o)}),$l(),CD(),$l(),Qi(4,"div",13)(5,"button",14),jC(6,"Go back"),$l(),Qi(7,"button",15),Hg("click",function(){Od(e);let o=iC();return Pd(o.registerViaCustomUrl())}),nC(8,2),$l()();}if(n&2){let e=iC();CE(3),cm("ngModel",e.customRegisterUrl),_D(),CE(4),vg("disabled",!e.customRegisterUrlValid());}}function _e(n,t){if(n&1){let e=vT();Qi(0,"p"),nC(1,3),$l(),Ig(2,"sh-progress-bar",8),Qi(3,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.retryWhenFaulted())}),jC(4,"Cancel"),$l();}}function ue(n,t){if(n&1){let e=vT();Qi(0,"p"),nC(1,4),$l(),Qi(2,"button",10),Hg("click",function(){Od(e);let o=iC(2);return Pd(o.retryWhenFaulted())}),jC(3,"Retry"),$l();}}function Ce(n,t){if(n&1&&aT(0,_e,5,0)(1,ue,4,0),n&2){let e=iC();cT(e.claimUrl()!==null?0:1);}}function ge(n,t){n&1&&(Fg(0,5,1),Ig(1,"p"),jg());}function me(n,t){n&1&&(Fg(0,5,2),Ig(1,"p"),jg());}function Fe(n,t){if(n&1){let e=vT();Qi(0,"sh-alert",16),Fg(1,5),aT(2,ge,2,0,"p")(3,me,2,0,"p"),jg(),$l(),Qi(4,"button",10),Hg("click",function(){Od(e);let o=iC();return Pd(o.retryWhenFaulted())}),jC(5," Retry "),Qi(6,"sh-icon"),jC(7,"arrow-arc-left"),$l()();}if(n&2){let e=iC();CE(2),cT(e.typeParam()==="link"?2:3);}}function fe(n,t){n&1&&(Qi(0,"h3"),jC(1,"Successfully connected"),$l(),Qi(2,"p"),jC(3,"We're going to redirect you to the home page"),$l());}var R=class n{#n=T(ee);#a=T(S);#e=T(C);#i=T(O);#l=T(I);#s=T(m);#c=T(T$1);isOldOpen=Ge(false);typeParam=E1.required();state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;customRegisterUrl=this.#e.customRegisterUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=Ge(false);customRegisterUrlValid=Nt(()=>{let t=this.customRegisterUrl(),e=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;return !(t.length===0||!e.test(t))});registeringCounter=Ge(null);didTry=false;triedFinishConnection=false;#t=null;#d=T(qe);constructor(){this.#d.onDestroy(()=>{this.#r();});}ngAfterViewInit(){(this.#l.relayIsEnabled()||!this.#s.hasWebSocket()?"longpoll":"websocket")==="websocket"&&this.#c.reconnectIfNeeded();}stateEffect=za(()=>{let t=this.#e.registerUrl(),e=this.state(),i=this.typeParam();e==="inactive"&&i==="logon"&&t!==""&&(this.didTry||(this.didTry=true,queueMicrotask(()=>this.#e.beginRemoteRegistration()))),e==="registered"&&(this.triedFinishConnection||me$1(()=>this.claimUrl())!==null&&(this.triedFinishConnection=true,this.#_())),e==="registering"?me$1(()=>{this.registeringCounter()===null&&this.registeringCounter.set(0),this.#o();}):(this.#r(),me$1(()=>this.registeringCounter.set(null))),(e==="connected"||e==="disabled"||e==="connecting")&&queueMicrotask(()=>{this.#i.setShownWelcomePage().subscribe(()=>{this.#n.navigate([""]);});});});#o(){this.#t!==null&&clearTimeout(this.#t),this.#t=setTimeout(()=>{this.#t=null;let t=this.registeringCounter()??0;this.registeringCounter.set(t+1),this.state()==="registering"&&this.#o();},1e3);}#r(){this.#t!==null&&(clearTimeout(this.#t),this.#t=null);}ngOnInit(){this.#e.refreshRemoteControlStatus();}#_(){let t=this.#e.claimUrl();this.#a.open(`${t}?closeAfterConnection=true`,"_blank");}registerViaCustomUrl(){this.#e.beginRemoteRegistration(true);}retryWhenFaulted(){this.#e.cancelRemoteRegistration(),this.customRegisterUrl.set(""),this.didTry=false,this.triedFinishConnection=false,this.typeParam()==="logon"&&this.#n.navigate(["/welcome/select"]);}cancel(){this.#e.cancelRemoteRegistration();}register(){this.#e.beginRemoteRegistration();}disable(){this.#e.disableRemoteControl();}enable(){this.#e.enableRemoteControl();}delete(){this.#e.deleteRemoteControl();}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(true),setTimeout(()=>this.copiedReportingUrl.set(false),2e3),navigator.clipboard.writeText(t));}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-connect"]],inputs:{typeParam:[1,"typeParam"]},decls:6,vars:13,consts:()=>{let t;t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Loading... ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE: Connecting to console ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let e;e=$localize`Paste registration URL here`;let i;i=$localize` Connect machine to console `;let o;o=$localize`We're now connecting you to the console`;let C;C=$localize`Something failed during registration we're missing claimUrl, please try again`;let m;return m=$localize` Failed to register ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: Check if the connection link are correct, alternatively it could be your internet connection or the service might be down ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: There might be a problem with your internet connection or the service might be down, please try again later ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,m=oC(m),[t,e,i,o,C,m,[1,"main-card","type-b"],[1,"loader-content"],[1,"primary","indeterminate"],["shButton",""],["shButton","",3,"click"],["for","remoteControlRegisterUrl"],["type","text","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],[1,"nav-buttons"],["type","button","shButton","","routerLink","/welcome",1,"raised"],["type","button","shButton","",1,"raised","primary",3,"click","disabled"],[1,"error"]]},template:function(e,i){if(e&1&&(Qi(0,"sh-card",6),aT(1,ce,7,2,"div",7),aT(2,de,9,2),aT(3,Ce,2,1),aT(4,Fe,8,1),aT(5,fe,4,0),$l()),e&2){let o=i.state()==="unknown"||i.typeParam()!=="link"&&i.state()==="inactive"||i.state()==="registering",C=i.typeParam()==="link"&&i.state()==="inactive",m=i.state()==="connected"||i.state()==="disabled"||i.state()==="connecting",g=i.state()==="registeringfaulted";NC(tb(7,re,o,C,m,g,i.state()==="registered")),CE(),cT(o?1:-1),CE(),cT(C?2:-1),CE(),cT(i.state()==="registered"?3:-1),CE(),cT(g?4:-1),CE(),cT(m?5:-1);}},dependencies:[_t,Bn,Ze,Rn,Jt,Fe$1,v,d,f,ue$1,N],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:100%;width:100%;flex:1 0;overflow:hidden;padding:2rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{padding:1rem}}.main-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:31.25rem;max-height:min-content;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem;padding:2rem}.main-card.failed-to-connect[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}.main-card.failed-to-connect[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.main-card.is-registered[_ngcontent-%COMP%], .main-card.is-connected[_ngcontent-%COMP%]{align-items:center}.loader-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:100%}.loader-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{--pb-b: var(--base-3);border:1px solid var(--pb-b)}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}.state[_ngcontent-%COMP%]{position:fixed;top:1rem;right:1rem;margin:0;color:var(--base-7);font-size:.75rem}.old[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;gap:.5rem;padding:1rem;border:1px solid var(--base-4);background:var(--base-1);position:fixed;top:0;right:0;bottom:0;width:35rem;transform:translate(100%)}.old.open[_ngcontent-%COMP%]{transform:translate(0)}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;position:absolute;background-color:var(--base-1);border:1px solid var(--base-4);border-width:.0625rem 0 .0625rem .0625rem;width:2rem;height:2.5rem;border-radius:var(--shape-2) 0 0 var(--shape-2);top:3.75rem;left:-2rem;-webkit-user-select:none;user-select:none}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.nav-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-direction:row}"]})};export{R as default};
package/chunk-aYCYzU5Q.js DELETED
@@ -1 +0,0 @@
1
- import {e as ee$1}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 {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,a5 as g,ab as C,h as hw,v,c as N,_ as _t,i as Ig,Q as Qi,n as nC,$ as $l,b5 as lg,b6 as oT,d as aT,H as Hg,F as Fg,j as jg,C as CE,b7 as iT,g as cT,y as vg,a3 as KC,s as jC,k as iC,a1 as dT,ap as lT,a2 as fT,a$ as JC,au as Vg,av as rC,aB as sm}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'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var V=()=>[f,v,N,_t],K=()=>["/restore-from-files"],Q=()=>["/restore/from-config"],U=n=>["/restore",n];function Y(n,i){if(n&1&&(Qi(0,"sh-card",10),Hg("keydown.enter",function(r){return r.target.click()})("keydown.space",function(r){return r.target.click()}),Ig(1,"img",16),Qi(2,"div",12)(3,"h3"),nC(4,7),$l(),Qi(5,"p"),jC(6),$l()(),Qi(7,"button",13),Fg(8,8),Ig(9,"sh-icon"),jg(),$l()()),n&2){let e=i.$implicit;vg("routerLink",JC(4,U,e.Backup.ID)),CE(4),Vg(e.Backup.Name??"Backup name missing"),rC(4),CE(2),sm(" ",e.Backup.Metadata?.SourceSizeString??"-"," / ",e.Backup.Metadata?.BackupListCount??"-"," ");}}function Z(n,i){if(n&1&&dT(0,Y,10,6,"sh-card",15,lT),n&2){let e=iC(2);fT(e.backups());}}function ee(n,i){if(n&1&&aT(0,Z,2,0),n&2){let e=iC();cT(e.backups().length?0:-1);}}function ne(n,i){n&1&&(Qi(0,"div",17),Ig(1,"sh-progress-bar",18),Qi(2,"div",12)(3,"h3"),nC(4,9),$l()()());}function te(n,i){n&1&&(Qi(0,"sh-divider"),jC(1,"Or without a local configuration"),$l());}var M=class n{#e=T(g);#n=T(C);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups(true);}restoreNow(i){this.#n.postApiV1BackupByIdRestore({id:i.Backup?.ID,requestBody:{}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-restore"]],decls:29,vars:6,consts:()=>{let i;i=$localize`Where do you want to restore from?`;let e;e=$localize`Direct restore from backup files`;let r;r=$localize`Point to your backup files and restore from there.`;let E;E=$localize` Start ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _;_=$localize`Restore from configuration`;let h;h=$localize`Load destination from an exported job`;let I;I=$localize` Start ${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON:`;let y;y=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $;$=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let k;return k=$localize`Loading backups...`,[i,e,r,E,_,h,I,y,$,k,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["shButton","","tabindex","-1"],["src","assets/images/restore.png","alt","","width","48px"],[1,"type-a","actionable",3,"routerLink"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(e,r){e&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"h2"),nC(3,0),$l(),lg(4,ee,1,1)(5,ne,5,0),oT(6,4,V,null,5),aT(8,te,2,0,"sh-divider"),Qi(9,"sh-card",10),Hg("keydown.enter",function(_){return _.target.click()})("keydown.space",function(_){return _.target.click()}),Ig(10,"img",11),Qi(11,"div",12)(12,"h3"),nC(13,1),$l(),Qi(14,"p"),nC(15,2),$l()(),Qi(16,"button",13),Fg(17,3),Ig(18,"sh-icon"),jg(),$l()(),Qi(19,"sh-card",10),Hg("keydown.enter",function(_){return _.target.click()})("keydown.space",function(_){return _.target.click()}),Ig(20,"img",14),Qi(21,"div",12)(22,"h3"),nC(23,4),$l(),Qi(24,"p"),nC(25,5),$l()(),Qi(26,"button",13),Fg(27,6),Ig(28,"sh-icon"),jg(),$l()()()),e&2&&(CE(6),iT(!r.backupsLoading()),CE(2),cT(r.backups().length?8:-1),CE(),vg("routerLink",KC(4,K)),CE(10),vg("routerLink",KC(5,Q)));},dependencies:[ee$1,f,v,c,N,d,_t],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}sh-divider[_ngcontent-%COMP%]{color:var(--base-8)}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"]})};export{M as default};
package/chunk-bt6lhYfG.js DELETED
@@ -1 +0,0 @@
1
- import {c2 as e,aZ as ee,aj as l}from'./main-3NL5M6JB.js';var d=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,m=class n{generate(r,t=d){let a;do a=this.generatePassword(r,t);while(this.calculatePasswordStrength(a)<5);return a}generatePassword(r,t=d){return Array.apply(null,{length:r}).map(()=>{let a;for(;;)if(a=String.fromCharCode(e()),t.test(a))return a},this).join("")}calculatePasswordStrength(r){let t=1;return r.length>=8&&t++,r.match(/[a-z]/)&&r.match(/[A-Z]/)&&t++,r.match(/\d+/)&&t++,r.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ee({token:n,factory:n.\u0275fac,providedIn:"root"})};function y(n,r,t="conditional"){return a=>{if(!a.parent)return null;let e=null;if(n(a.parent)&&(e=(Array.isArray(r)?r:[r]).find(l=>l(a)!==null)??null),t&&e){let o={};o[t]=e,e=o;}return e}}function F(){return n=>(n.parent&&Object.values(n.parent.controls).forEach(r=>{r!==n&&r.updateValueAndValidity();}),null)}function C(n,r,t,a="conditional"){return e=>{if(!e.parent)return null;let o={},l$1=e.parent.get(n);if(!l$1)return console.warn("Conditional field not found"),null;if(Array.isArray(r)?l$1.value?.includes(r):l$1.value===r){let f=Array.isArray(t)?t:[t];for(let A of f){let u=A(e),p=o||{};if(u!==null){o=l(l({},p),u);break}}}return o}}export{C,F,m,y};
package/chunk-eiyaQxBt.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,ab as C,aw as W,N as Nt,G as Ge,D as w1,a_ as x1,h as hw,c as N,v,_ as _t,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,H as Hg,d as aT,a1 as dT,C as CE,y as vg,a$ as JC,g as cT,a2 as fT,o as oC,M as qg,R as fC,n as nC,s as jC,aa as Ql,ap as lT}from'./main-3NL5M6JB.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 G=["logOutput"],K=n=>({state:n});function w(n,t){n&1&&nC(0,3,1);}function x(n,t){n&1&&nC(0,3,2);}function q(n,t){n&1&&nC(0,3,3);}function H(n,t){n&1&&nC(0,3,4);}function J(n,t){if(n&1&&(jC(0),Ig(1,"br")),n&2){let e=t.$implicit;Ql(" ",e," ");}}var p=class n{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ge(0);status=Ge("starting");messageLog=Ge([]);logOutput=w1.required("logOutput");autoScrollEnabled=Ge(true);scrollToBottomEffect=x1(()=>{if(this.messageLog(),!this.autoScrollEnabled())return;let t=this.logOutput().nativeElement;t.scrollTop=t.scrollHeight;});interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(e=>[...e,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}updateAutoScroll(){let t=this.logOutput().nativeElement,e=t.scrollHeight-t.scrollTop-t.clientHeight;this.autoScrollEnabled.set(e<=2);}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-commandline-result"]],viewQuery:function(e,o){e&1&&qg(o.logOutput,G,5),e&2&&fC();},decls:19,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=oC(o),[["logOutput",""],t,e,o,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"],[3,"scroll"]]},template:function(e,o){e&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",4)(3,"button",5),Fg(4,1),Ig(5,"sh-icon"),jg(),$l()(),Qi(6,"h3"),Fg(7,2),Qi(8,"button",6),Hg("click",function(){return o.abort()}),$l(),jg(),$l(),Qi(9,"div",7),Fg(10,3),aT(11,w,1,0),aT(12,x,1,0),aT(13,q,1,0),aT(14,H,1,0),jg(),$l(),Qi(15,"code",8,0),Hg("scroll",function(){return o.updateAutoScroll()}),dT(17,J,2,1,null,null,lT),$l()()),e&2&&(CE(3),vg("queryParams",JC(5,K,o.stateId())),CE(8),cT(o.status()==="starting"?11:-1),CE(),cT(o.status()==="started"?12:-1),CE(),cT(o.status()==="finished"?13:-1),CE(),cT(o.status()==="aborted"?14:-1),CE(3),fT(o.messageLog()));},dependencies:[ee,N,v,_t],styles:["[_nghost-%COMP%]{display:block;height:100%;min-height:0;width:100%}section[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;width:100%;padding:2.5rem;gap:1.25rem}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);flex:1 1 auto;min-height:0;overflow:auto;white-space:pre}"]})};export{p as default};