@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
@@ -0,0 +1 @@
1
+ import {w}from'./chunk-D2P9ER0I.js';import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import {I}from'./chunk-zOY5leQB.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import {c as c$1}from'./chunk-3YzyUT-a.js';import {D}from'./chunk-CKUlUN3q.js';import {T,ax as W,a5 as m,G as Ge,aI as pt$1,N as Nt$1,g as gw,_ as _t$1,a as N,v,aJ as m$1,aK as c,aL as ci,i as ET,d as Ig,Z as Zi,F as Fg,j as jg,W as Wl,al as dm,l as lT,n as lm,o as oC,b as bE,am as GC,c as uT,y as cm,P as Pd,p as qC,L as Ld,ab as J,E as E1,aM as vb,ad as sy,az as Yu,C as Zu,aN as hi,a1 as pT,a2 as hT,s as sC,H as HC,aO as sb,h as aC,ap as zC,aa as Yl,aP as lb,z as vg,ak as l,aq as dT,w as Hg,J as im,aD as sm,K as Kg,aQ as am,aR as zl,aS as Ql,aT as cb,av as Vg,aw as iC,aU as ub}from'./main-2ZYVV4C4.js';import {d}from'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import {L,$}from'./chunk-Cm7JSdTO.js';import'./chunk-CnZx831x.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&&(Zi(0,"details",72)(1,"summary"),Fg(2,15),Ig(3,"sh-icon"),Zi(4,"div",74),Ig(5,"sh-icon",66),Wl(),jg(),Wl(),Zi(6,"div",75)(7,"p"),oC(8,16),sb(9,"date"),Wl(),Zi(10,"p"),oC(11,17),sb(12,"date"),Wl(),Zi(13,"p"),oC(14,18),sb(15,"durationFormat"),Wl(),Zi(16,"p"),oC(17,19),Wl(),Ig(18,"sh-divider"),Zi(19,"p"),oC(20,20),Wl(),Zi(21,"p"),oC(22,21),Wl()()(),Zi(23,"details",72)(24,"summary"),Fg(25,22),Ig(26,"sh-icon"),Zi(27,"div",74),Ig(28,"sh-icon",66),Wl(),jg(),Wl(),Zi(29,"div",75)(30,"p"),oC(31,23),sb(32,"date"),Wl(),Zi(33,"p"),oC(34,24),sb(35,"date"),Wl(),Zi(36,"p"),oC(37,25),sb(38,"durationFormat"),Wl(),Ig(39,"sh-divider"),Zi(40,"p"),oC(41,26),sb(42,"bytes"),Wl(),Zi(43,"p"),oC(44,27),sb(45,"bytes"),Wl(),Zi(46,"p"),oC(47,28),sb(48,"bytes"),Wl(),Ig(49,"sh-divider"),Zi(50,"p"),oC(51,29),Wl(),Zi(52,"p"),oC(53,30),Wl()()()),n&2){let e=aC(2).$implicit;bE(9),Vg(lb(9,17,e.data?.TestResults?.BeginTime,"medium")),iC(8),bE(3),Vg(lb(12,20,e.data?.TestResults?.EndTime,"medium")),iC(11),bE(3),Vg(cb(15,23,e.data?.TestResults?.Duration)),iC(14),bE(2),Vg(e.data?.TestResults?.VerificationsActualLength),iC(17),bE(3),Vg(e.data?.TestResults?.WarningsActualLength),iC(20),bE(2),Vg(e.data?.TestResults?.ErrorsActualLength),iC(22),bE(10),Vg(lb(32,25,e.data?.CompactResults?.BeginTime,"medium")),iC(31),bE(3),Vg(lb(35,28,e.data?.CompactResults?.EndTime,"medium")),iC(34),bE(3),Vg(cb(38,31,e.data?.CompactResults?.Duration)),iC(37),bE(4),Vg(e.data?.CompactResults?.DeletedFileCount)(ub(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),iC(41),bE(3),Vg(e.data?.CompactResults?.DownloadedFileCount)(ub(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),iC(44),bE(3),Vg(e.data?.CompactResults?.UploadedFileCount)(ub(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),iC(47),bE(3),Vg(e.data?.CompactResults?.WarningsActualLength),iC(51),bE(2),Vg(e.data?.CompactResults?.ErrorsActualLength),iC(53);}}function fn(n,t){n&1&&(Zi(0,"p"),HC(1,"No messages"),Wl());}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=ET();Zi(0,"div",76)(1,"code"),HC(2),Wl(),Zi(3,"button",77),Hg("click",function(F){let c=Pd(e).$implicit,L=aC(5);return Ld(L.copyToClipboard(F,c,c))}),Fg(4,43),lT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),jg(),Wl()();}if(n&2){let e=t.$implicit,o=aC(5);bE(2),im(e),bE(3),uT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Zi(0,"p"),HC(1,"No warnings"),Wl());}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=ET();Zi(0,"div",76)(1,"code"),HC(2),Wl(),Zi(3,"button",77),Hg("click",function(F){let c=Pd(e).$implicit,L=aC(5);return Ld(L.copyToClipboard(F,c,c))}),Fg(4,44),lT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),jg(),Wl()();}if(n&2){let e=t.$implicit,o=aC(5);bE(2),im(e),bE(3),uT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Zi(0,"p"),HC(1,"No errors"),Wl());}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=ET();Zi(0,"div",76)(1,"code"),HC(2),Wl(),Zi(3,"button",77),Hg("click",function(F){let c=Pd(e).$implicit,L=aC(5);return Ld(L.copyToClipboard(F,c,c))}),Fg(4,45),lT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),jg(),Wl()();}if(n&2){let e=t.$implicit,o=aC(5);bE(2),im(e),bE(3),uT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Zi(0,"details",72)(1,"summary"),Fg(2,31),Ig(3,"sh-icon"),Zi(4,"div",74),Ig(5,"sh-icon",66),Wl(),jg(),Wl(),Zi(6,"div",75)(7,"p"),oC(8,32),sb(9,"date"),Wl(),Zi(10,"p"),oC(11,33),sb(12,"date"),Wl(),Zi(13,"p"),oC(14,34),sb(15,"durationFormat"),Wl(),Ig(16,"sh-divider"),Zi(17,"p"),oC(18,35),sb(19,"bytes"),Wl(),Zi(20,"p"),oC(21,36),Wl(),Zi(22,"p"),oC(23,37),Wl(),Zi(24,"p"),oC(25,38),Wl(),Zi(26,"p"),oC(27,39),Wl(),Ig(28,"sh-divider"),Zi(29,"details",78)(30,"summary"),Fg(31,40),Ig(32,"sh-icon"),Zi(33,"div",74),Ig(34,"sh-icon",66),Wl(),jg(),Wl(),Zi(35,"div",75),lT(36,fn,2,0,"p"),pT(37,vn,7,2,"div",76,dT),Wl()(),Zi(39,"details",79)(40,"summary"),Fg(41,41),Ig(42,"sh-icon"),Zi(43,"div",74),Ig(44,"sh-icon",66),Wl(),jg(),Wl(),Zi(45,"div",75),lT(46,Bn,2,0,"p"),pT(47,kn,7,2,"div",76,dT),Wl()(),Zi(49,"details",80)(50,"summary"),Fg(51,42),Ig(52,"sh-icon"),Zi(53,"div",74),Ig(54,"sh-icon",66),Wl(),jg(),Wl(),Zi(55,"div",75),lT(56,Kn,2,0,"p"),pT(57,Jn,7,2,"div",76,dT),Wl()(),Ig(59,"sh-divider"),Wl()()),n&2){let e=t.$implicit;bE(5),Vg(e.Destination),iC(2),bE(4),Vg(lb(9,16,e.BeginTime,"medium")),iC(8),bE(3),Vg(lb(12,19,e.EndTime,"medium")),iC(11),bE(3),Vg(cb(15,22,e.Duration)),iC(14),bE(4),Vg(e.CopiedFileCount)(ub(19,24,e.CopiedFileSize,true,true)),iC(18),bE(2),Vg(e.DeletedFileCount),iC(21),bE(2),Vg(e.RenamedFileCount),iC(23),bE(2),Vg(e.VerifiedFileCount),iC(25),bE(2),Vg(e.FailedVerificationCount),iC(27),bE(7),Vg(e.MessagesActualLength),iC(31),bE(2),uT(e.Messages?.length===0?36:-1),bE(),hT(e.Messages),bE(7),Vg(e.WarningsActualLength),iC(41),bE(2),uT(e.Warnings?.length===0?46:-1),bE(),hT(e.Warnings),bE(7),Vg(e.ErrorsActualLength),iC(51),bE(2),uT(e.Errors?.length===0?56:-1),bE(),hT(e.Errors);}}function zn(n,t){if(n&1&&pT(0,Xn,60,28,"details",72,dT),n&2){let e=aC(2).$implicit;hT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Zi(0,"details",72)(1,"summary"),Fg(2,46),Ig(3,"sh-icon"),Zi(4,"div",74),Ig(5,"sh-icon",66),Wl(),jg(),Wl(),Zi(6,"div",75)(7,"p"),oC(8,47),sb(9,"date"),Wl(),Zi(10,"p"),oC(11,48),sb(12,"date"),Wl(),Zi(13,"p"),oC(14,49),sb(15,"durationFormat"),Wl(),Ig(16,"sh-divider"),Zi(17,"p"),oC(18,50),Wl(),Zi(19,"p"),oC(20,51),Wl(),Zi(21,"p"),oC(22,52),Wl()()()),n&2){let e=aC(2).$implicit;bE(9),Vg(lb(9,6,e.data?.LockResults?.BeginTime,"medium")),iC(8),bE(3),Vg(lb(12,9,e.data?.LockResults?.EndTime,"medium")),iC(11),bE(3),Vg(cb(15,12,e.data?.LockResults?.Duration)),iC(14),bE(3),Vg(e.data?.LockResults?.VolumesRead),iC(18),bE(2),Vg(e.data?.LockResults?.VolumesUpdated),iC(20),bE(2),Vg(e.data?.LockResults?.ParsedResult),iC(22);}}function Hn(n,t){if(n&1&&(Zi(0,"code"),HC(1),sb(2,"json"),Wl()),n&2){let e=t.$implicit;bE(),im(cb(2,1,e));}}function Wn(n,t){if(n&1&&(Zi(0,"details",72)(1,"summary"),Fg(2,53),Ig(3,"sh-icon"),Zi(4,"div",74),Ig(5,"sh-icon",66),Wl(),jg(),Wl(),Zi(6,"div",75),pT(7,Hn,3,3,"code",null,dT),Wl()()),n&2){let e=aC(2).$implicit;bE(5),Vg(e.data.VerificationsActualLength),iC(2),bE(2),hT(e.data.Verifications);}}function jn(n,t){n&1&&(Zi(0,"sh-icon"),HC(1,"check"),Wl());}function qn(n,t){n&1&&(Zi(0,"sh-icon"),HC(1,"copy"),Wl());}function Qn(n,t){n&1&&(zl(0),Fg(1,54),Ig(2,"sh-icon"),jg(),Ql());}function Yn(n,t){n&1&&(zl(0),Fg(1,55),Ig(2,"sh-icon"),jg(),Ql());}function Zn(n,t){n&1&&(zl(0),Fg(1,56),Ig(2,"sh-icon"),jg(),Ql());}function et(n,t){if(n&1){let e=ET();Zi(0,"button",82),Hg("click",function(){Pd(e),aC();let F=zC(0),c=aC(3);return Ld(c.toggleWarningSuppression(F.MessageId))}),lT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),Wl();}if(n&2){aC();let e=zC(0),o=aC(3),F=o.isWarningSuppressed(e.MessageId);vg("disabled",o.isSuppressingWarning()),bE(),uT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=ET();dm(0),Zi(1,"div",76)(2,"code"),HC(3),Wl(),Zi(4,"button",77),Hg("click",function(F){let c=Pd(e).$implicit,L=aC(3);return Ld(L.copyToClipboard(F,c,c))}),HC(5," Copy "),lT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),Wl(),lT(8,et,4,2,"button",81),Wl();}if(n&2){let e=t.$implicit,o=aC(3),F=GC(o.parseWarning(e));bE(3),im(e),bE(3),uT(o.copied()==e?6:7),bE(2),uT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Zi(0,"p"),HC(1,"No errors"),Wl());}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=ET();Zi(0,"div",76)(1,"code"),HC(2),Wl(),Zi(3,"button",77),Hg("click",function(F){let c=Pd(e).$implicit,L=aC(3);return Ld(L.copyToClipboard(F,c,c))}),Fg(4,57),lT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),jg(),Wl()();}if(n&2){let e=t.$implicit,o=aC(3);bE(2),im(e),bE(3),uT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Zi(0,"sh-icon"),HC(1,"check"),Wl());}function Ft(n,t){n&1&&(Zi(0,"sh-icon"),HC(1,"copy"),Wl());}function rt(n,t){if(n&1){let e=ET();Zi(0,"section",67)(1,"sh-toggle-card",68),zl(2,69),Zi(3,"h3"),oC(4,0),Wl(),Ql(),zl(5,70),Zi(6,"p"),oC(7,1),sb(8,"date"),Wl(),Zi(9,"p"),oC(10,2),sb(11,"date"),Wl(),Zi(12,"p"),oC(13,3),sb(14,"durationFormat"),Wl(),Ql(),Wl(),Zi(15,"sh-toggle-card",68),zl(16,69),Zi(17,"h3"),oC(18,4),Wl(),Ql(),zl(19,70),Zi(20,"p"),oC(21,5),sb(22,"bytes"),Wl(),Zi(23,"p"),oC(24,6),sb(25,"bytes"),Wl(),Zi(26,"p"),oC(27,7),sb(28,"bytes"),Wl(),Zi(29,"p"),oC(30,8),sb(31,"bytes"),Wl(),Zi(32,"p"),oC(33,9),Wl(),Zi(34,"p"),oC(35,10),Wl(),Zi(36,"p"),oC(37,11),Wl(),Ql(),Wl(),Zi(38,"div",71),Ig(39,"sh-divider"),lT(40,Mn,54,45),lT(41,zn,2,0),lT(42,Vn,23,14,"details",72),lT(43,Wn,9,1,"details",72),Zi(44,"details",73)(45,"summary"),Fg(46,12),Ig(47,"sh-icon"),Zi(48,"div",74),Ig(49,"sh-icon",66),Wl(),jg(),Wl(),Zi(50,"div",75),pT(51,nt,9,4,"div",76,dT),Wl()(),Zi(53,"details",73)(54,"summary"),Fg(55,13),Ig(56,"sh-icon"),Zi(57,"div",74),Ig(58,"sh-icon",66),Wl(),jg(),Wl(),Zi(59,"div",75),lT(60,tt,2,0,"p"),pT(61,_t,7,2,"div",76,dT),Wl()(),Ig(63,"sh-divider"),Zi(64,"details")(65,"summary"),Fg(66,14),Ig(67,"sh-icon"),Zi(68,"div",74),Ig(69,"sh-icon",66),Wl(),jg(),Wl(),Zi(70,"code")(71,"button",77),Hg("click",function(F){Pd(e);let c=aC().$implicit,L=aC();return Ld(L.copyToClipboard(F,L.stringify(c.data),"all"))}),HC(72," Copy "),lT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),Wl(),HC(75),sb(76,"json"),Wl()()()();}if(n&2){let e=aC().$implicit,o=aC();bE(),vg("disableToggle",true),bE(7),Vg(lb(8,27,e.data?.BeginTime,"medium")),iC(7),bE(3),Vg(lb(11,30,e.data?.EndTime,"medium")),iC(10),bE(3),Vg(cb(14,33,e.data?.Duration)),iC(13),bE(),vg("disableToggle",true),bE(7),Vg(e.data?.ExaminedFiles)(ub(22,35,e.data?.SizeOfExaminedFiles,true,true)),iC(21),bE(3),Vg(e.data?.OpenedFiles)(ub(25,39,e.data?.SizeOfOpenedFiles,true,true)),iC(24),bE(3),Vg(e.data?.AddedFiles)(ub(28,43,e.data?.SizeOfAddedFiles,true,true)),iC(27),bE(3),Vg(e.data?.ModifiedFiles)(ub(31,47,e.data?.SizeOfModifiedFiles,true,true)),iC(30),bE(2),Vg(e.data?.DeletedFiles),iC(33),bE(2),Vg(e.data?.TooLargeFiles),iC(35),bE(2),Vg(e.data?.FilesWithError),iC(37),bE(3),uT(e.data?.TestResults?40:-1),bE(),uT(e.data?.RemoteSynchronizationResults?41:-1),bE(),uT(e.data?.LockResults?42:-1),bE(),uT(e.data?.MainOperation==="Test"?43:-1),bE(),vg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),bE(5),Vg(e.data?.WarningsActualLength),iC(46),bE(2),hT(e.data?.Warnings),bE(2),vg("open",e.id===o.openEntry()&&o.openSection()==="errors"),bE(5),Vg(e.data?.ErrorsActualLength),iC(55),bE(2),uT(e.data?.Errors?.length===0?60:-1),bE(),hT(e.data?.Errors),bE(12),uT(o.copied()=="all"?73:74),bE(2),Yl(" ",cb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=ET();Zi(0,"article",59)(1,"header",60),Hg("click",function(){let F=Pd(e).$implicit,c=aC();return Ld(c.toggleOpenEntry(F))}),lT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Zi(6,"h3"),HC(7),sb(8,"date"),Wl(),Zi(9,"p"),HC(10),Wl(),Ig(11,"div",64),Zi(12,"div",65)(13,"sh-icon",66),HC(14,"caret-down"),Wl()()(),lT(15,rt,77,53,"section",67),Wl();}if(n&2){let e=t.$implicit,o=aC(),F=e.data?.ParsedResult||"Unknown";bE(2),uT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),bE(5),im(lb(8,7,e.timestamp,"medium")),bE(3),sm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),bE(3),Kg("open",e.id===o.openEntry()),bE(2),uT(e.id===o.openEntry()?15:-1);}}var Pe=class n{#e=T(J);#n=T(m);#t=new m$1;#i=new c;backupId=E1.required();isSuppressingWarning=Ge(false);copied=Ge(null);backupResource=vb({params:()=>({id:this.backupId()}),loader:({params:t})=>this.#e.getApiV1BackupById({path:{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})=>sy(()=>this.#e.getApiV1BackupByIdLog({path:{id:t.id},query:{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),sy(()=>this.#e.getApiV1BackupById({path:{id:e}})).pipe(Yu(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({path:{id:e},body:{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=gw({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=sC(A);let te;te=$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:`,te=sC(te);let ie;ie=$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:`,ie=sC(ie);let oe;oe=$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:`,oe=sC(oe);let $e;$e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ve;ve=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$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:`,_e=sC(_e);let Be;Be=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let be;be=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let ke;ke=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let we;we=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Je;Je=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$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:`,ae=sC(ae);let Xe;Xe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let He;He=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let We;We=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Qe;Qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Fe;Fe=$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:`,Fe=sC(Fe);let re;re=$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:`,re=sC(re);let le;le=$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:`,le=sC(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=sC(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=sC(ce);let ue;ue=$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:`,ue=sC(ue);let de;de=$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:`,de=sC(de);let Ye;Ye=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let on;on=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$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:`,Ee=sC(Ee);let _n;_n=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Fn;Fn=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ce;return 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=sC(Ce),[t,e,o,F,c,L,G,k,N,v,U,Q,A,te,ie,oe,$e,Me,fe,he,ye,ve,_e,Be,xe,be,ke,Ke,Ue,we,Je,ae,Xe,ze,Ve,He,We,je,qe,Qe,Fe,re,le,se,ce,ue,de,Ye,Ze,en,nn,tn,on,Ee,_n,an,Fn,Ce,[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&&(lT(0,Dn,1,0,"sh-progress-bar",58),pT(1,lt,16,10,"article",59,dT)),e&2&&(uT(o.resource.isLoading()?0:-1),bE(),hT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m$1,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=ET();Zi(0,"section",6)(1,"button",7),Hg("click",function(){Pd(e);let F=aC(),c=F.$implicit,L=F.$index,G=aC();return Ld(G.copyToClipboard(c.data,L))}),Fg(2,0),lT(3,ct,2,0)(4,ut,2,0),jg(),Wl(),Zi(5,"code"),HC(6),sb(7,"json"),Wl()();}if(n&2){let e=aC(),o=e.$implicit,F=e.$index,c=aC();bE(),Kg("success",c.copiedFromIndex()===F),bE(2),uT(c.copiedFromIndex()===F?3:4),bE(3),im(cb(7,4,o.data));}}function Et(n,t){if(n&1){let e=ET();Zi(0,"article",2)(1,"header",3),Hg("click",function(){let F=Pd(e).$implicit,c=aC();return Ld(c.toggleOpenEntry(F.id))}),Zi(2,"h3"),HC(3),sb(4,"date"),Wl(),Zi(5,"div",4)(6,"sh-icon",5),HC(7,"caret-down"),Wl()()(),lT(8,dt,8,6,"section",6),Wl();}if(n&2){let e=t.$implicit,o=aC();bE(3),am("",lb(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),bE(3),Kg("open",e.id===o.openEntry()),bE(2),uT(e.id===o.openEntry()?8:-1);}}var Re=class n{#e=T(J);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})=>sy(()=>this.#e.getApiV1BackupByIdRemotelog({path:{id:t.id},query:{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=gw({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=sC(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&&(lT(0,st,1,0,"sh-progress-bar",1),pT(1,Et,9,9,"article",2,dT)),e&2&&(uT(o.resource.isLoading()?0:-1),bE(),hT(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&&(HC(0," - "),zl(1),oC(2,6),Ql(),HC(3),sb(4,"durationFormat")),n&2){aC(2);let e=zC(6);bE(3),Yl(" ",cb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(zl(0),oC(1,7),Ql());}function Tt(n,t){if(n&1&&(HC(0),sb(1,"bytes")),n&2){aC(2);let e=zC(6);Yl(" ",cb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(zl(0),oC(1,8),Ql());}function St(n,t){if(n&1&&(HC(0),sb(1,"bytes")),n&2){aC(2);let e=zC(6);Yl(" ",cb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(zl(0),oC(1,9),Ql());}function Lt(n,t){if(n&1&&(Zi(0,"sh-chip",20),oC(1,10),Wl()),n&2){aC(2);let e=zC(6);bE(),Vg(e.Backup.Metadata?.BackupListCount),iC(1);}}function Nt(n,t){n&1&&(Zi(0,"sh-chip",21),oC(1,11),Wl());}function mt(n,t){if(n&1&&(Zi(0,"div",14)(1,"div",19)(2,"h3"),HC(3),Zi(4,"sh-icon"),HC(5,"database"),Wl()(),Zi(6,"p")(7,"span"),oC(8,3),Wl(),HC(9),sb(10,"date"),lT(11,Ct,5,3)(12,pt,2,0,"ng-container"),Wl(),Zi(13,"p")(14,"span"),oC(15,4),Wl(),lT(16,Tt,2,3)(17,gt,2,0,"ng-container"),Wl(),Zi(18,"p")(19,"span"),oC(20,5),Wl(),lT(21,St,2,3)(22,Ot,2,0,"ng-container"),Wl()(),lT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),Wl()),n&2){let e=aC(),o=zC(6);bE(3),Yl(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),bE(6),Yl(" ",lb(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),bE(2),uT(o.Backup.Metadata?.LastBackupDuration?11:12),bE(5),uT(o.Backup.Metadata?.SourceFilesSize?16:17),bE(5),uT(o.Backup.Metadata?.TargetFilesSize?21:22),bE(2),uT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&Ig(0,"app-general-log",18),n&2){let e=aC();vg("backupId",e.backupId());}}function At(n,t){if(n&1&&Ig(0,"app-remote-log",18),n&2){let e=aC();vg("backupId",e.backupId());}}var Ie=class n{#e=T(W);#n=T(m);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=gw({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=ET();Ig(0,"app-status-bar"),Zi(1,"section")(2,"div",12)(3,"button",13),Fg(4,0),Ig(5,"sh-icon"),jg(),Wl()(),dm(6),lT(7,mt,25,9,"div",14),Zi(8,"sh-tabs",15),lm("valueChange",function(L){return Pd(F),qC(o.activeTab,L)||(o.activeTab=L),Ld(L)}),Zi(9,"button",16),oC(10,1),Wl(),Zi(11,"button",17),oC(12,2),Wl()(),lT(13,Gt,1,1,"app-general-log",18),lT(14,At,1,1,"app-remote-log",18),Wl();}if(e&2){bE(6);let F=GC(o.backup());bE(),uT(F?7:-1),bE(),cm("value",o.activeTab),bE(5),uT(o.activeTab()==="general"?13:-1),bE(),uT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,Pe,Re,_t$1,te,N,v,D,m$1,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{Ie as default};
@@ -0,0 +1,2 @@
1
+ import {L as L$1}from'./chunk-Cm7JSdTO.js';import {T,ab as J,ad as sy,aI as pt,aj as m,ak as l,G as Ge,Q as Qa,g as gw,a as N,v,a0 as de,i as ET,Z as Zi,o as oC,W as Wl,a1 as pT,n as lm,H as HC,w as Hg,P as Pd,L as Ld,b as bE,a2 as hT,y as cm,z as vg,a3 as XC,J as im,aa as Yl,p as qC,l as lT,d as Ig,h as aC,F as Fg,j as jg,aD as sm,c as uT,as as Yp,a9 as QC,aq as dT}from'./main-2ZYVV4C4.js';var H=()=>({maxWidth:"700px",width:"100%"});function K(s,i){if(s&1&&(Zi(0,"a",9)(1,"sh-icon"),HC(2,"link"),Wl()()),s&2){let e=aC().$implicit;vg("href",QC(e.Url),Yp);}}function Q(s,i){if(s&1){let e=ET();Zi(0,"div",2)(1,"h4"),HC(2),lT(3,K,3,2,"a",9),Wl(),Zi(4,"p"),HC(5),Ig(6,"br"),Zi(7,"i"),HC(8),Wl()(),Zi(9,"div",10)(10,"button",11),Hg("click",function(){let o=Pd(e).$implicit,p=aC();return Ld(p.openLicense(o))}),Fg(11,1),Ig(12,"sh-icon"),jg(),Wl()()();}if(s&2){let e=i.$implicit;bE(2),sm(" ",e.Title," - ",e.data?.license," "),bE(),uT(e.Url?3:-1),bE(2),Yl(" ",e.data?.description," "),bE(3),im(e.data?.notes);}}var L=class s{#e=T(J);licenses=L$1(sy(()=>this.#e.getApiV1Licenses()).pipe(pt(i=>i.map(e=>m(l({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=Ge(false);dialogLicense=Ge(null);#i=Qa(()=>{this.dialogLicense()&&this.dialogIsOpen.set(true);});openLicense(i){this.dialogLicense.set(i);}closeLicense(){this.dialogIsOpen.set(false),this.dialogLicense.set(null);}breakIntoLines(i){let e=i.split(`
2
+ `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=gw({type:s,selectors:[["app-libraries"]],decls:14,vars:5,consts:()=>{let i;i=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`,[i,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["shButton","","type","button",3,"click"],[3,"href"],[1,"actions"],["shButton","",3,"click"]]},template:function(e,n){if(e&1){let o=ET();Zi(0,"h3"),oC(1,0),Wl(),pT(2,Q,13,5,"div",2,dT),Zi(4,"sh-dialog",3),lm("isOpenChange",function(_){return Pd(o),qC(n.dialogIsOpen,_)||(n.dialogIsOpen=_),Ld(_)}),Zi(5,"header",4)(6,"h3"),HC(7),Wl()(),Zi(8,"div",5)(9,"div",6),HC(10),Wl()(),Zi(11,"footer",7)(12,"button",8),Hg("click",function(){return Pd(o),n.dialogLicense.set(null),Ld(n.dialogIsOpen.set(false))}),HC(13,"Close"),Wl()()();}if(e&2){bE(2),hT(n.licenses()),bE(2),cm("isOpen",n.dialogIsOpen),vg("options",XC(4,H)),bE(3),im(n.dialogLicense()?.Title);let o=n.dialogLicense()?.License??"";bE(3),Yl(" ",o," ");}},dependencies:[N,v,de],styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-4)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-1);color:var(--base-12);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-4)}"]})};export{L as default};
@@ -0,0 +1 @@
1
+ import {w}from'./chunk-Brfc2m61.js';import {d}from'./chunk-gId840Er.js';import'./chunk-CSrYlKTK.js';import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import {K as Ke}from'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import'./chunk-Kq2ZFJSk.js';import'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import'./chunk-fDWfSg6Y.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {g as gw,$ as lr,_ as _t,a8 as To,d as Ig,Z as Zi,o as oC,W as Wl,b as bE,z as vg,a3 as XC,aF as JC}from'./main-2ZYVV4C4.js';import'./chunk-CFgDqLU0.js';import'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var S=()=>["/backup/import-destination/destination"],M=()=>["/backup/import-destination/encryption"],g=()=>["/backup/import-destination/select-config"],p=class T{static \u0275fac=function(e){return new(e||T)};static \u0275cmp=gw({type:T,selectors:[["app-import-destination"]],features:[JC([d,Ke])],decls:10,vars:6,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let s;return s=$localize` Select configurations `,[i,e,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,s){e&1&&(Ig(0,"app-status-bar"),Zi(1,"sh-stepper",3)(2,"div",4),oC(3,0),Wl(),Zi(4,"div",4),oC(5,1),Wl(),Zi(6,"div",5),oC(7,2),Wl()(),Zi(8,"section"),Ig(9,"router-outlet"),Wl()),e&2&&(bE(2),vg("routerLink",XC(3,S)),bE(2),vg("routerLink",XC(4,M)),bE(2),vg("routerLink",XC(5,g)));},dependencies:[w,te,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{p as default};
@@ -0,0 +1 @@
1
+ import {OptionsListComponent as Oe}from'./chunk-CSrYlKTK.js';import {K as Ke}from'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import {Z}from'./chunk-Kq2ZFJSk.js';import'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import'./chunk-fDWfSg6Y.js';import'./chunk-DuRr4rDS.js';import {N as Nt}from'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,e as ee,ax as W,B as w1,G as Ge,g as gw,v,a as N,Z as Zi,o as oC,W as Wl,l as lT,n as lm,w as Hg,F as Fg,d as Ig,j as jg,b as bE,c as uT,y as cm,z as vg,a3 as XC,K as Kg,O as qg,R as hC,p as qC,i as ET,P as Pd,h as aC,L as Ld,t as bD,M as MD}from'./main-2ZYVV4C4.js';import'./chunk-CFgDqLU0.js';import'./chunk-BGuvkLC9.js';import {F as Fe}from'./chunk-DBkkb6OR.js';import {B as Bn,Z as Ze,e as en,R as Rn,J as Jt}from'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var oe=["formRef"],ae=()=>["--skip-files-larger-than","encryption-module","no-encryption","--no-encryption","--dbpath","keep-time","keep-versions","retention-policy"];function se(o,_){o&1&&(Zi(0,"p"),oC(1,4),Wl());}function _e(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,5),Wl(),Zi(2,"app-timespan",21),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionTime,n)||(a.optionsFields.backupRetentionTime=n),Ld(n)}),Zi(3,"label",22),oC(4,6),Wl()(),bD();}if(o&2){let e=aC(2);bE(2),vg("customId","backupRetentionTime"),cm("ngModel",e.optionsFields.backupRetentionTime),MD();}}function le(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,7),Wl(),Zi(2,"sh-form-field")(3,"label",23),oC(4,8),Wl(),Zi(5,"input",24),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionVersions,n)||(a.optionsFields.backupRetentionVersions=n),Ld(n)}),Wl(),bD(),Wl();}if(o&2){let e=aC(2);bE(5),cm("ngModel",e.optionsFields.backupRetentionVersions),MD();}}function re(o,_){o&1&&(Zi(0,"p"),oC(1,9),Wl());}function ce(o,_){if(o&1){let e=ET();Zi(0,"p"),oC(1,10),Wl(),Zi(2,"sh-form-field")(3,"p"),oC(4,11),Wl(),Zi(5,"label",25),oC(6,12),Wl(),Zi(7,"input",26),lm("ngModelChange",function(n){Pd(e);let a=aC(2);return qC(a.optionsFields.backupRetentionCustom,n)||(a.optionsFields.backupRetentionCustom=n),Ld(n)}),Wl(),bD(),Wl();}if(o&2){let e=aC(2);bE(7),cm("ngModel",e.optionsFields.backupRetentionCustom),MD();}}function pe(o,_){if(o&1){let e=ET();Zi(0,"sh-select",18)(1,"label",19),oC(2,3),Wl(),Zi(3,"input",20),lm("ngModelChange",function(n){Pd(e);let a=aC();return qC(a.optionsFields.backupRetention,n)||(a.optionsFields.backupRetention=n),Ld(n)}),Wl(),bD(),Wl(),lT(4,se,2,0,"p")(5,_e,5,2)(6,le,6,1)(7,re,2,0,"p")(8,ce,8,1);}if(o&2){let e=aC();vg("options",e.retentionOptions())("inlineSearch",true)("isClearable",false),bE(3),cm("ngModel",e.optionsFields.backupRetention),MD(),bE(),uT(e.optionsFields.backupRetention()==="all"?4:e.optionsFields.backupRetention()==="time"?5:e.optionsFields.backupRetention()==="versions"?6:e.optionsFields.backupRetention()==="smart"?7:e.optionsFields.backupRetention()==="custom"?8:-1);}}var de=[{value:"all",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],y=class o{#e=T(Ke);#n=T(ee);#t=T(W);formRef=w1.required("formRef");isSubmitting=this.#e.isSubmitting;settings=this.#e.settings;optionsFields=this.#e.optionsFields;applicationOptions=this.#e.applicationOptions;isSyncMode=this.#e.isSyncMode;retentionOptions=Ge(de);goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#t.parent});}submit(){switch(this.#e.validateBeforeSubmit()){case "general":this.#n.navigate(["general"],{relativeTo:this.#t.parent});return;case "destination":this.#n.navigate(["destination"],{relativeTo:this.#t.parent});return;case "source":this.#n.navigate(["source-data"],{relativeTo:this.#t.parent});return}this.#e.submit();}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,s){e&1&&qg(s.formRef,oe,5),e&2&&hC();},decls:12,vars:8,consts:()=>{let _;_=$localize`Options`;let e;e=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let s;s=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let n;n=$localize`Backup retention`;let a;a=$localize`Nothing will be deleted. The backup size will grow with each change.`;let b;b=$localize`If at least one newer backup is found, all backups older than this date are deleted.`;let A;A=$localize`Time to keep versions`;let k;k=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let F;F=$localize`Number of versions`;let w;w=$localize` Over time backups will be deleted automatically. There will remain one backup for each of the last 7 days, each of the last 4 weeks, each of the last 12 months. There will always be at least one remaining backup. `;let $;$=$localize` Enter a retention strategy manually. Placeholders are D/W/Y for days/weeks/years and U for unlimited. The syntax is: 7D:1D,4W:1W,36M:1M. This example keeps one backup for each of the next 7 days, one for each of the next 4 weeks, and one for each of the next 36 months. This can also be written as 1W:1D,1M:1W,3Y:1M. `;let L;L=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let G;return G=$localize`Retention expression`,[_,e,s,n,a,b,A,k,F,w,$,L,G,[1,"title-30"],[3,"optionsChange","options","applicationOptions","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click"],["value","value","label","name",3,"options","inlineSearch","isClearable"],["for","size"],["type","text",3,"ngModelChange","ngModel"],[3,"ngModelChange","customId","ngModel"],["for","backupRetentionTime"],["for","backupRetentionVersions"],["type","number","id","backupRetentionVersions",3,"ngModelChange","ngModel"],["for","backupRetentionCustom"],["type","text","id","backupRetentionCustom",3,"ngModelChange","ngModel"]]},template:function(e,s){e&1&&(Zi(0,"section")(1,"h3",13),oC(2,0),Wl(),lT(3,pe,9,5),Zi(4,"app-options-list",14),lm("optionsChange",function(a){return qC(s.settings,a)||(s.settings=a),a}),Wl(),Zi(5,"div",15)(6,"button",16),Hg("click",function(){return s.goBack()}),Fg(7,1),Ig(8,"sh-icon"),jg(),Wl(),Zi(9,"button",17),Hg("click",function(){return s.submit()}),Fg(10,2),Ig(11,"sh-icon"),jg(),Wl()()()),e&2&&(bE(3),uT(s.isSyncMode()?-1:3),bE(),cm("options",s.settings),vg("applicationOptions",s.applicationOptions())("hasFreeTextSettings",true)("hiddenOptions",XC(7,ae)),bE(5),Kg("loading",s.isSubmitting()));},dependencies:[Bn,Ze,en,Rn,Jt,Oe,Z,v,N,Nt,Fe],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:37.5rem;padding:2.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}"]})};export{y as default};
@@ -0,0 +1 @@
1
+ import {ShipTable as ot}from'./chunk-DkVHfoYw.js';import'./chunk-CKUlUN3q.js';import {T,ab as J,a6 as be,a5 as m,e as ee,E as E1,N as Nt,G as Ge,Q as Qa,aj as m$1,ak as l,b5 as Ae$1,b6 as zu,C as Zu,au as h,g as gw,v,_ as _t,aJ as m$2,b3 as m$3,Z as Zi,o as oC,W as Wl,l as lT,w as Hg,b as bE,av as Vg,aw as iC,c as uT,z as vg,a3 as XC,K as Kg,s as sC,ad as sy,d as Ig,i as ET,n as lm,P as Pd,h as aC,p as qC,L as Ld,a1 as pT,y as cm,a2 as hT,H as HC,aO as sb,t as bD,J as im,aP as lb,aT as cb,M as MD}from'./main-2ZYVV4C4.js';import {d}from'./chunk-BGuvkLC9.js';import {F as Fe}from'./chunk-DBkkb6OR.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-iGzJokt-.js';import {$}from'./chunk-Cm7JSdTO.js';var Te=()=>["/"],Pe=(s,i)=>i.Version;function Oe(s,i){s&1&&(Zi(0,"div",11),Ig(1,"sh-progress-bar",17),Zi(2,"p"),oC(3,3),Wl()());}function Re(s,i){s&1&&(Zi(0,"div",12)(1,"p"),oC(2,4),Wl()());}function Ae(s,i){if(s&1){let e=ET();Zi(0,"tr")(1,"td"),HC(2),Wl(),Zi(3,"td"),HC(4),sb(5,"relativeTime"),Wl(),Zi(6,"td"),HC(7),sb(8,"relativeTime"),Wl(),Zi(9,"td"),HC(10),sb(11,"bytes"),Wl(),Zi(12,"td"),HC(13),Wl(),Zi(14,"td")(15,"sh-form-field")(16,"input",24),Hg("ngModelChange",function(_){let E=Pd(e).$implicit,m=aC(2);return Ld(m.updateLabel(E.Version,_))}),Wl(),bD(),Wl()()();}if(s&2){let e=i.$implicit,n=aC(2);bE(2),im(e.Version),bE(2),im(lb(5,7,e.Time,true)),bE(3),im(lb(8,10,e.Time,false)),bE(3),im(cb(11,13,e.FileSizes)),bE(3),im(e.FileCount),bE(3),vg("ngModel",e.EditedLabel)("disabled",n.isSaving()),MD();}}function Ie(s,i){if(s&1){let e=ET();Zi(0,"sh-table",18),lm("sortByColumnChange",function(_){Pd(e);let E=aC();return qC(E.sortByColumn,_)||(E.sortByColumn=_),Ld(_)}),Zi(1,"tr",19)(2,"th",20),oC(3,5),Wl(),Zi(4,"th",20),oC(5,6),Wl(),Zi(6,"th",20),oC(7,7),Wl(),Zi(8,"th",21),oC(9,8),Wl(),Zi(10,"th",22),oC(11,9),Wl(),Zi(12,"th",23),oC(13,10),Wl()(),pT(14,Ae,17,15,"tr",null,Pe),Wl();}if(s&2){let e=aC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),bE(14),hT(e.versions());}}var B=class s{#e=T(J);#i=T(be);#n=T(m);#t=T(ee);id=E1.required();backup=Nt(()=>{this.#n.backups();return this.#n.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:i})=>sy(()=>this.#e.postApiV2BackupListFilesets({body:{BackupId:i.id}}))});isLoading=Nt(()=>this.versionsResource.isLoading());isSaving=Ge(false);versions=Ge([]);constructor(){Qa(()=>{let i=this.versionsResource.value();if(i){let e=(i.Data??[]).slice().sort((n,_)=>n.Time<_.Time?1:n.Time>_.Time?-1:0);this.versions.set(e.map(n=>m$1(l({},n),{EditedLabel:n.Label??""})));}});}changedItems=Nt(()=>this.versions().filter(i=>(i.Label??"")!==i.EditedLabel.trim()));sortByColumn=Ge("version");updateLabel(i,e){this.versions.update(n=>n.map(_=>_.Version===i?m$1(l({},_),{EditedLabel:e}):_));}saveLabels(){let i=this.changedItems();i.length!==0&&(this.isSaving.set(true),Ae$1(i).pipe(zu(e=>this.#e.postApiV2BackupSetVersionLabel({body:{BackupId:this.id(),Version:e.Version,Label:e.EditedLabel.trim()===""?null:e.EditedLabel.trim()}})),Zu(()=>this.isSaving.set(false))).subscribe({complete:()=>{this.#t.navigate(["/"]);},error:e=>{this.#i.open(h,{data:{title:$localize`Failed to set version labels`,message:e.message??$localize`Unknown error`,confirmText:$localize`OK`,cancelText:void 0}});}}));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=gw({type:s,selectors:[["app-version-labels"]],inputs:{id:[1,"id"]},decls:10,vars:10,consts:()=>{let i;i=$localize`Set version labels for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let n;n=$localize`{VAR_PLURAL, plural, =1 {1 label} other {{INTERPOLATION} labels}}`,n=sC(n,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize` Save ${n}:ICU@@198601359091253570: `;let E;E=$localize`Fetching versions from destination...`;let m;m=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let V;V=$localize`Timestamp`;let h;h=$localize`When`;let y;y=$localize`Size`;let $;$=$localize`Files`;let v;v=$localize`Label`;let G;return G=$localize`Add label...`,[i,e,_,E,m,b,V,h,y,$,v,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","primary",3,"click","disabled"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],["type","text","placeholder",G,1,"label",3,"ngModelChange","ngModel","disabled"]]},template:function(e,n){e&1&&(Zi(0,"h3"),oC(1,0),Wl(),lT(2,Oe,4,0,"div",11)(3,Re,3,0,"div",12)(4,Ie,16,3,"sh-table",13),Zi(5,"div",14)(6,"button",15),oC(7,1),Wl(),Zi(8,"button",16),Hg("click",function(){return n.saveLabels()}),oC(9,2),Wl()()),e&2&&(bE(),Vg(n.backup()?.Backup?.Name),iC(1),bE(),uT(n.isLoading()?2:n.versions().length===0?3:4),bE(4),vg("routerLink",XC(9,Te))("disabled",n.isSaving()),bE(2),Kg("loading",n.isSaving()),vg("disabled",n.isSaving()||n.changedItems().length===0||n.isLoading()),bE(),Vg(n.changedItems().length)(n.changedItems().length),iC(9));},dependencies:[Bn,Ze,Rn,Jt,v,d,ot,_t,Fe,m$2,m$3],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.label[_ngcontent-%COMP%]{width:100%}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}"]})};export{B as default};
@@ -0,0 +1,2 @@
1
+ import {d}from'./chunk-gId840Er.js';import'./chunk-CSrYlKTK.js';import {u as un,_ as _n,C as Ct,a as mn,K as Ke}from'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import'./chunk-Kq2ZFJSk.js';import'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import {G,A}from'./chunk-fDWfSg6Y.js';import {v as ve$1}from'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,e as ee,ax as W,a6 as be,by as ve,B as w1,G as Ge,N as Nt,au as h,g as gw,v,a as N,a0 as de,u as ue,i as ET,al as dm,Z as Zi,w as Hg,o as oC,W as Wl,l as lT,n as lm,P as Pd,p as qC,L as Ld,F as Fg,d as Ig,j as jg,am as GC,b as bE,c as uT,y as cm,z as vg,s as sC,aF as JC,O as qg,R as hC,h as aC,H as HC,aR as zl,aS as Ql,ap as zC,t as bD,a3 as XC,M as MD}from'./main-2ZYVV4C4.js';import'./chunk-CFgDqLU0.js';import'./chunk-BGuvkLC9.js';import {F as Fe$1}from'./chunk-DBkkb6OR.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=ET();Zi(0,"button",24),Hg("click",function(){Pd(e);let t=aC();return Ld(t.openTargetUrlDialog())}),Fg(1,5),Ig(2,"sh-icon"),jg(),Wl();}}function fe(o,i){if(o&1){let e=ET();Zi(0,"button",24),Hg("click",function(){Pd(e);let t=aC(2);return Ld(t.copyTargetUrl())}),Fg(1,7),Ig(2,"sh-icon"),jg(),Wl();}}function he(o,i){if(o&1){let e=ET();Zi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),HC(3,"dots-three-vertical"),Wl()(),zl(4,25),Zi(5,"button",24),Hg("click",function(){Pd(e);let t=aC();return Ld(t.openTargetUrlDialog())}),Fg(6,6),Ig(7,"sh-icon"),jg(),Wl(),lT(8,fe,3,0,"button",15),Ql(),Wl();}if(o&2){aC();let e=zC(0);bE(8),uT(e?8:-1);}}function Pe(o,i){if(o&1){let e=ET();Zi(0,"app-destination-list-item",17)(1,"button",20),Hg("click",function(){Pd(e);let t=aC();return Ld(t.removeDestination())}),oC(2,8),Wl()();}if(o&2){aC();let e=zC(12);vg("destination",e);}}function ye(o,i){if(o&1){let e=ET();Zi(0,"app-destination-list",26),Hg("setDestination",function(t){Pd(e);let l=aC();return Ld(l.setDestination(t))}),Wl();}}function Ae(o,i){if(o&1){let e=ET();Zi(0,"app-single-destination",27),lm("targetUrlChange",function(t){Pd(e);let l=aC();return qC(l.targetUrlModel,t)||(l.targetUrlModel=t),Ld(t)}),Wl();}if(o&2){let e=aC();cm("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Fg(0,4,1),Ig(1,"sh-icon",22),jg());}function Re(o,i){o&1&&(Fg(0,4,2),Ig(1,"sh-icon"),jg());}function Ue(o,i){if(o&1){let e=ET();Zi(0,"sh-dialog",28),lm("isOpenChange",function(t){Pd(e);let l=aC();return qC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Ld(t)}),Zi(1,"header",29)(2,"div",30)(3,"h2"),oC(4,9),Wl(),Zi(5,"sh-alert",31),oC(6,10),Wl()()(),Zi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),lm("ngModelChange",function(t){Pd(e);let l=aC();return qC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Ld(t)}),Wl(),bD(),Wl()(),Zi(10,"footer",34)(11,"button",20),Hg("click",function(){Pd(e);let t=aC();return Ld(t.closeTargetUrlDialog(false))}),HC(12,"Cancel"),Wl(),Zi(13,"button",35),Hg("click",function(){Pd(e);let t=aC();return Ld(t.closeTargetUrlDialog(true))}),Fg(14,11),Ig(15,"sh-icon"),jg(),Wl()()();}if(o&2){let e=aC();cm("isOpen",e.targetUrlDialogOpen),vg("options",XC(3,Ee)),bE(9),cm("ngModel",e.targetUrlCtrl),MD();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=w1.required("formRef");testUrlComponent=w1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?G(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=A(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&hC(2);},features:[JC([Ke])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=sC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=ET();dm(0),Zi(1,"form",12,0),Hg("submit",function(){return n.next()}),Zi(3,"header")(4,"h3",13)(5,"span"),oC(6,2),Wl(),Zi(7,"div",14),lT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),Wl()(),Zi(10,"app-test-url",16,1),lm("targetUrlChange",function(g){return Pd(t),qC(n.targetUrlModel,g)||(n.targetUrlModel=g),Ld(g)})("testSignalChange",function(g){return Pd(t),qC(n.testSignal,g)||(n.testSignal=g),Ld(g)}),Wl(),dm(12),lT(13,Pe,3,1,"app-destination-list-item",17),Wl(),lT(14,ye,1,0,"app-destination-list"),lT(15,Ae,1,1,"app-single-destination",18),Zi(16,"div",19)(17,"button",20),Hg("click",function(){return n.goBack()}),Fg(18,3),Ig(19,"sh-icon"),jg(),Wl(),Zi(20,"button",21),Fg(21,4),lT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),jg(),Wl()()(),lT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=GC(!!n.targetUrlModel());bE(8),uT(t?9:8),bE(2),cm("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),vg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),bE(2);let l=GC(n.selectedDestinationTypeOption());bE(),uT(l?13:-1),bE(),uT(t?-1:14),bE(),uT(t?15:-1),bE(5),vg("disabled",n.testSignal()=="testing"||!t),bE(2),uT(n.testSignal()=="testing"?22:23),bE(2),uT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[un,_n,Ct,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,mn],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
2
+ export{w as default};
@@ -1,2 +1,2 @@
1
- import {ba as ue,E as E1,bb as ce,h as hw,bc as sg,S as aC,Y as cC,f as NC,ag as Yg}from'./main-3NL5M6JB.js';var p=["*"],w=(()=>{class t extends ue{constructor(){super("[value], [tab], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("tabs",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275cmp=hw({type:t,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(a,s){a&2&&(NC(s.hostClasses()),Yg("--tabs-id",s.id));},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[sg],ngContentSelectors:p,decls:1,vars:0,template:function(a,s){a&1&&(aC(),cC(0));},styles:[`sh-tabs{--tabs-bc: var(--base-4);--tabs-bg: var(--base-1);--tabs-c: var(--base-12);--tabs-c-hover: var(--base-8);--tabs-c-active: var(--base-12);--tabs-f: var(--paragraph-30);--tabs-sel-bg: var(--base-12);display:flex;gap:1rem;border-bottom:var(--border-10);position:relative;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none}sh-tabs::-webkit-scrollbar{display:none}sh-tabs button,sh-tabs [tab],sh-tabs [value]{display:flex;align-items:center;gap:.5rem;height:3rem;font:var(--tabs-f);background:var(--tabs-bg);border-radius:0;appearance:none;border:0;color:var(--tabs-c);cursor:pointer;position:relative;flex-shrink:0;white-space:nowrap;transition:transform 125ms linear;transform:scale(1)}sh-tabs button:focus-visible,sh-tabs [tab]:focus-visible,sh-tabs [value]:focus-visible{outline:2px solid var(--primary-8);outline-offset:-2px;border-radius:var(--shape-1)}sh-tabs button:active,sh-tabs [tab]:active,sh-tabs [value]:active{transform:scale(.98)}sh-tabs button:hover,sh-tabs [tab]:hover,sh-tabs [value]:hover{color:var(--tabs-c-hover)}sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{color:var(--tabs-c-active)}@supports (anchor-name: --anchor){sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{position:relative;anchor-name:var(--tabs-id)}}@supports not (anchor-name: --anchor){sh-tabs button.active:after,sh-tabs [tab].active:after,sh-tabs [value].active:after{display:block}}sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{content:"";display:none;width:100%;height:.125rem;background:var(--tabs-sel-bg);position:absolute;left:0;bottom:0}@supports (anchor-name: --anchor){sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{display:none}}@supports (anchor-name: --anchor){sh-tabs:after{content:"";background:var(--tabs-sel-bg);pointer-events:none;position:absolute;z-index:10;height:.125rem;bottom:anchor(bottom);left:anchor(left);right:anchor(right);position-anchor:var(--tabs-id);transition:all .175s ease-out}}sh-tabs.primary{--tabs-sel-bg: var(--primary-8);--tabs-c-active: var(--primary-8)}sh-tabs.accent{--tabs-sel-bg: var(--accent-8);--tabs-c-active: var(--accent-8)}sh-tabs.warn{--tabs-sel-bg: var(--warn-8);--tabs-c-active: var(--warn-8)}sh-tabs.error{--tabs-sel-bg: var(--error-8);--tabs-c-active: var(--error-8)}sh-tabs.success{--tabs-sel-bg: var(--success-8);--tabs-c-active: var(--success-8)}
1
+ import {bc as ue,E as E1,bd as ce,g as gw,be as sg,S as lC,Y as uC,x as xC,ah as Yg}from'./main-2ZYVV4C4.js';var p=["*"],w=(()=>{class t extends ue{constructor(){super("[value], [tab], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=E1(null),this.variant=E1(null),this.hostClasses=ce("tabs",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(a,s){a&2&&(xC(s.hostClasses()),Yg("--tabs-id",s.id));},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[sg],ngContentSelectors:p,decls:1,vars:0,template:function(a,s){a&1&&(lC(),uC(0));},styles:[`sh-tabs{--tabs-bc: var(--base-4);--tabs-bg: var(--base-1);--tabs-c: var(--base-12);--tabs-c-hover: var(--base-8);--tabs-c-active: var(--base-12);--tabs-f: var(--paragraph-30);--tabs-sel-bg: var(--base-12);display:flex;gap:1rem;border-bottom:var(--border-10);position:relative;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none}sh-tabs::-webkit-scrollbar{display:none}sh-tabs button,sh-tabs [tab],sh-tabs [value]{display:flex;align-items:center;gap:.5rem;height:3rem;font:var(--tabs-f);background:var(--tabs-bg);border-radius:0;appearance:none;border:0;color:var(--tabs-c);cursor:pointer;position:relative;flex-shrink:0;white-space:nowrap;transition:transform 125ms linear;transform:scale(1)}sh-tabs button:focus-visible,sh-tabs [tab]:focus-visible,sh-tabs [value]:focus-visible{outline:2px solid var(--primary-8);outline-offset:-2px;border-radius:var(--shape-1)}sh-tabs button:active,sh-tabs [tab]:active,sh-tabs [value]:active{transform:scale(.98)}sh-tabs button:hover,sh-tabs [tab]:hover,sh-tabs [value]:hover{color:var(--tabs-c-hover)}sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{color:var(--tabs-c-active)}@supports (anchor-name: --anchor){sh-tabs button.active,sh-tabs [tab].active,sh-tabs [value].active{position:relative;anchor-name:var(--tabs-id)}}@supports not (anchor-name: --anchor){sh-tabs button.active:after,sh-tabs [tab].active:after,sh-tabs [value].active:after{display:block}}sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{content:"";display:none;width:100%;height:.125rem;background:var(--tabs-sel-bg);position:absolute;left:0;bottom:0}@supports (anchor-name: --anchor){sh-tabs button:after,sh-tabs [tab]:after,sh-tabs [value]:after{display:none}}@supports (anchor-name: --anchor){sh-tabs:after{content:"";background:var(--tabs-sel-bg);pointer-events:none;position:absolute;z-index:10;height:.125rem;bottom:anchor(bottom);left:anchor(left);right:anchor(right);position-anchor:var(--tabs-id);transition:all .175s ease-out}}sh-tabs.primary{--tabs-sel-bg: var(--primary-8);--tabs-c-active: var(--primary-8)}sh-tabs.accent{--tabs-sel-bg: var(--accent-8);--tabs-c-active: var(--accent-8)}sh-tabs.warn{--tabs-sel-bg: var(--warn-8);--tabs-c-active: var(--warn-8)}sh-tabs.error{--tabs-sel-bg: var(--error-8);--tabs-c-active: var(--error-8)}sh-tabs.success{--tabs-sel-bg: var(--success-8);--tabs-c-active: var(--success-8)}
2
2
  `],encapsulation:2});}}return t})();export{w};
@@ -1,2 +1,2 @@
1
- import {ba as ue,E as E1,bb as ce,h as hw,bc as sg,S as aC,Y as cC,f as NC,ag as Yg}from'./main-3NL5M6JB.js';var p=["*"],x=(()=>{class o extends ue{constructor(){super("button","active",{hostRole:"group"}),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.hostClasses=ce("buttonGroup",{color:this.color,variant:this.variant,size:this.size});}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=hw({type:o,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,n){t&2&&(NC(n.hostClasses()),Yg("--btng-id",n.id));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[sg],ngContentSelectors:p,decls:1,vars:0,template:function(t,n){t&1&&(aC(),cC(0));},styles:[`sh-button-group{--btng-bg: var(--base-3);--btng-item-bg: var(--base-1);--btng-c: var(--base-12);--btng-ic: var(--base-12);--btng-bc: var(--base-4);--btng-h: 2.5rem;--btng-p: 0 .75rem;--btng-s: var(--shape-2);--btng-s-a: var(--shape-2);--btng-f: var(--paragraph-30);display:inline-flex;height:var(--btng-h);max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}sh-button-group::-webkit-scrollbar{display:none}sh-button-group{background-color:var(--btng-bg);background-image:linear-gradient(90deg,var(--btng-bg) 30%,rgba(255,255,255,0)),linear-gradient(-90deg,var(--btng-bg) 30%,rgba(255,255,255,0)),radial-gradient(farthest-side at 0% 50%,rgb(from var(--base-12) r g b/8%),rgb(from var(--base-12) r g b/0%)),radial-gradient(farthest-side at 100% 50%,rgb(from var(--base-12) r g b/8%),rgb(from var(--base-12) r g b/0%));background-repeat:no-repeat;background-position:left center,right center,left center,right center;background-size:1.5rem 100%,1.5rem 100%,.5rem 100%,.5rem 100%;background-attachment:local,local,scroll,scroll;padding:.1875rem;gap:.25rem;border:0;border-radius:var(--btng-s)}sh-button-group.small{--btng-h: 2rem;--btng-p: 0 .5rem}sh-button-group button{border:0;flex:1 0;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;position:relative;padding:var(--btng-p);min-width:auto;cursor:pointer;outline:none;line-height:inherit;-webkit-user-select:none;user-select:none;overflow:visible;vertical-align:middle;white-space:nowrap;background:transparent;color:var(--btng-c);font:var(--btng-f);border-radius:calc(var(--btng-s) / 3 * 2);transition:color 80ms linear,transform 125ms linear;transform:scale(1)}sh-button-group button:focus-visible{outline:2px solid var(--primary-8);outline-offset:-2px}sh-button-group button:active{transform:scale(.96)}sh-button-group button:hover{--btng-bg: var(--base-2)}sh-button-group button:hover,sh-button-group button.active{--btng-bg: var(--base-1);box-shadow:var(--box-shadow-10)}@supports not (anchor-name: --anchor){sh-button-group button{--btng-item-bg: var(--base-3);background:var(--btng-item-bg)}sh-button-group button:hover,sh-button-group button.active{--btng-c: var(--base-12);--btng-ic: var(--base-12);--btng-bg: var(--base-1);--btng-item-bg: var(--base-1)}}@supports (anchor-name: --anchor){sh-button-group button{z-index:1}sh-button-group button.active{position:relative;anchor-name:var(--btng-id)}}sh-button-group button[disabled]{opacity:.5;pointer-events:none;cursor:not-allowed}@supports (anchor-name: --anchor){sh-button-group:after{content:"";background:var(--btng-item-bg);pointer-events:none;position:absolute;z-index:0;top:anchor(top);bottom:anchor(bottom);left:anchor(left);right:anchor(right);position-anchor:var(--btng-id);transition:left .175s ease-out,right .175s ease-out;border-radius:calc(var(--btng-s) / 3 * 2)}}
1
+ import {bc as ue,E as E1,bd as ce,g as gw,be as sg,S as lC,Y as uC,x as xC,ah as Yg}from'./main-2ZYVV4C4.js';var p=["*"],x=(()=>{class o extends ue{constructor(){super("button","active",{hostRole:"group"}),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.hostClasses=ce("buttonGroup",{color:this.color,variant:this.variant,size:this.size});}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=gw({type:o,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,n){t&2&&(xC(n.hostClasses()),Yg("--btng-id",n.id));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[sg],ngContentSelectors:p,decls:1,vars:0,template:function(t,n){t&1&&(lC(),uC(0));},styles:[`sh-button-group{--btng-bg: var(--base-3);--btng-item-bg: var(--base-1);--btng-c: var(--base-12);--btng-ic: var(--base-12);--btng-bc: var(--base-4);--btng-h: 2.5rem;--btng-p: 0 .75rem;--btng-s: var(--shape-2);--btng-s-a: var(--shape-2);--btng-f: var(--paragraph-30);display:inline-flex;height:var(--btng-h);max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}sh-button-group::-webkit-scrollbar{display:none}sh-button-group{background-color:var(--btng-bg);background-image:linear-gradient(90deg,var(--btng-bg) 30%,rgba(255,255,255,0)),linear-gradient(-90deg,var(--btng-bg) 30%,rgba(255,255,255,0)),radial-gradient(farthest-side at 0% 50%,rgb(from var(--base-12) r g b/8%),rgb(from var(--base-12) r g b/0%)),radial-gradient(farthest-side at 100% 50%,rgb(from var(--base-12) r g b/8%),rgb(from var(--base-12) r g b/0%));background-repeat:no-repeat;background-position:left center,right center,left center,right center;background-size:1.5rem 100%,1.5rem 100%,.5rem 100%,.5rem 100%;background-attachment:local,local,scroll,scroll;padding:.1875rem;gap:.25rem;border:0;border-radius:var(--btng-s)}sh-button-group.small{--btng-h: 2rem;--btng-p: 0 .5rem}sh-button-group button{border:0;flex:1 0;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;position:relative;padding:var(--btng-p);min-width:auto;cursor:pointer;outline:none;line-height:inherit;-webkit-user-select:none;user-select:none;overflow:visible;vertical-align:middle;white-space:nowrap;background:transparent;color:var(--btng-c);font:var(--btng-f);border-radius:calc(var(--btng-s) / 3 * 2);transition:color 80ms linear,transform 125ms linear;transform:scale(1)}sh-button-group button:focus-visible{outline:2px solid var(--primary-8);outline-offset:-2px}sh-button-group button:active{transform:scale(.96)}sh-button-group button:hover{--btng-bg: var(--base-2)}sh-button-group button:hover,sh-button-group button.active{--btng-bg: var(--base-1);box-shadow:var(--box-shadow-10)}@supports not (anchor-name: --anchor){sh-button-group button{--btng-item-bg: var(--base-3);background:var(--btng-item-bg)}sh-button-group button:hover,sh-button-group button.active{--btng-c: var(--base-12);--btng-ic: var(--base-12);--btng-bg: var(--base-1);--btng-item-bg: var(--base-1)}}@supports (anchor-name: --anchor){sh-button-group button{z-index:1}sh-button-group button.active{position:relative;anchor-name:var(--btng-id)}}sh-button-group button[disabled]{opacity:.5;pointer-events:none;cursor:not-allowed}@supports (anchor-name: --anchor){sh-button-group:after{content:"";background:var(--btng-item-bg);pointer-events:none;position:absolute;z-index:0;top:anchor(top);bottom:anchor(bottom);left:anchor(left);right:anchor(right);position-anchor:var(--btng-id);transition:left .175s ease-out,right .175s ease-out;border-radius:calc(var(--btng-s) / 3 * 2)}}
2
2
  `],encapsulation:2});}}return o})();export{x};
@@ -0,0 +1 @@
1
+ var o=[{path:"",loadComponent:()=>import('./chunk-OQ_HQ9EL.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-CdzKkYEw.js')},{path:"live",loadComponent:()=>import('./chunk-CLlZiOaO.js')}]}],t=o;export{t as default};
@@ -0,0 +1,2 @@
1
+ import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import {m as mt,a as mn,C as Ct,_ as _n,u as un}from'./chunk-DWCofCiP.js';import'./chunk-6-sszNfh.js';import'./chunk-Kq2ZFJSk.js';import'./chunk-zOY5leQB.js';import'./chunk-29_4gGIi.js';import'./chunk-BEUeHgR9.js';import'./chunk-CGnjVnmu.js';import'./chunk-BJOhC2d8.js';import {f,A,G}from'./chunk-fDWfSg6Y.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-D38QrkIM.js';import {c}from'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {T,a5 as m,a6 as be$1,B as w1,G as Ge$1,N as Nt,Q as Qa,au as h,g as gw,v,a as N,d as Ig,Z as Zi,l as lT,W as Wl,b as bE,c as uT,s as sC,O as qg,R as hC,o as oC,h as aC,i as ET,w as Hg,P as Pd,L as Ld,H as HC,F as Fg,j as jg,av as Vg,aw as iC,K as Kg,z as vg,a1 as pT,aq as dT,a2 as hT,n as lm,p as qC,t as bD,y as cm,M as MD,J as im}from'./main-2ZYVV4C4.js';import {f as f$1}from'./chunk-CFgDqLU0.js';import {d}from'./chunk-BGuvkLC9.js';import {F as Fe$1}from'./chunk-DBkkb6OR.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';function Ee(n,t){n&1&&(Zi(0,"div",13),Ig(1,"sh-progress-bar",14),Zi(2,"div",15)(3,"h3"),oC(4,2),Wl()()());}function Fe(n,t){n&1&&(Zi(0,"sh-divider"),oC(1,5),Wl());}function Ie(n,t){if(n&1&&(Zi(0,"p",20),HC(1),Wl()),n&2){let e=aC().$implicit;bE(),im(e.Description);}}function Ne(n,t){if(n&1&&(Zi(0,"p",20),HC(1),Wl()),n&2){let e=aC().$implicit,o=aC(3);bE(),im(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=ET();Zi(0,"button",25),Hg("click",function(i){Pd(e);let r=aC().$implicit,f=aC(3);return Ld(f.updateBackupsSync(r,i))}),HC(1," Update backups "),Wl();}if(n&2){let e=aC(4);vg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=ET();Zi(0,"app-destination-list-item",18),Hg("click",function(){let i=Pd(e).$implicit,r=aC(3);return Ld(r.selectDestination(i))}),Zi(1,"h3",19),HC(2),Wl(),lT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Zi(5,"div",21),lT(6,ye,2,1,"button",22),Zi(7,"button",23),Hg("click",function(i){let r=Pd(e).$implicit,f=aC(3);return Ld(f.deleteDestination(r.ID,i))}),Zi(8,"sh-icon"),HC(9,"trash"),Wl()(),Zi(10,"button",24),Fg(11,6),Ig(12,"sh-icon"),jg(),Wl()()();}if(n&2){let e=t.$implicit,o=aC(3);vg("targetUrl",e.BaseUrl),bE(2),im(e.Name||e.BaseUrl),bE(),uT(e.Description?3:4),bE(3),uT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=ET();Zi(0,"sh-card",16),Hg("click",function(){Pd(e);let i=aC(2);return Ld(i.selectDestination("new"))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Zi(1,"sh-icon"),HC(2,"plus-circle"),Wl(),Zi(3,"div",15)(4,"h3"),oC(5,3),Wl(),Zi(6,"p"),oC(7,4),Wl()()(),lT(8,Fe,2,0,"sh-divider"),pT(9,he,13,4,"app-destination-list-item",17,dT);}if(n&2){let e=aC(2);bE(8),uT(e.destinations().length>0?8:-1),bE(),hT(e.destinations());}}function xe(n,t){if(n&1&&(Zi(0,"h2"),oC(1,1),Wl(),lT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=aC();bE(2),uT(e.isLoading()?2:3);}}function Be(n,t){n&1&&oC(0,10,1);}function Pe(n,t){n&1&&oC(0,10,2);}function Ae(n,t){n&1&&oC(0,10,3);}function Me(n,t){if(n&1){let e=ET();Zi(0,"button",37),Hg("click",function(){Pd(e);let i=aC(2);return Ld(i.testDestination())}),Fg(1,10),lT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),jg(),Wl();}if(n&2){let e=aC(2);vg("disabled",e.testSignal()=="testing"),bE(2),uT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=ET();Zi(0,"div",32)(1,"sh-form-field")(2,"label"),oC(3,11),Wl(),Zi(4,"input",38),lm("ngModelChange",function(i){Pd(e);let r=aC(2);return qC(r.editName,i)||(r.editName=i),Ld(i)}),Wl(),bD(),Wl()();}if(n&2){let e=aC(2);bE(4),cm("ngModel",e.editName),MD();}}function $e(n,t){if(n&1){let e=ET();Zi(0,"app-test-url",39,0),lm("targetUrlChange",function(i){Pd(e);let r=aC(2);return qC(r.editBaseUrl,i)||(r.editBaseUrl=i),Ld(i)})("testSignalChange",function(i){Pd(e);let r=aC(2);return qC(r.testSignal,i)||(r.testSignal=i),Ld(i)}),Wl();}if(n&2){let e=aC(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=ET();Zi(0,"app-destination-list-item",40)(1,"button",41),Hg("click",function(){Pd(e);let i=aC(2);return Ld(i.removeDestination())}),oC(2,12),Wl()(),Zi(3,"app-single-destination",42),lm("targetUrlChange",function(i){Pd(e);let r=aC(2);return qC(r.editBaseUrl,i)||(r.editBaseUrl=i),Ld(i)}),Wl();}if(n&2){let e=aC(2);vg("targetUrl",e.editBaseUrl()),bE(3),cm("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=ET();Zi(0,"app-destination-list",43),Hg("setDestination",function(i){Pd(e);let r=aC(2);return Ld(r.setDestination(i))}),Wl();}}function Le(n,t){n&1&&oC(0,9,1);}function we(n,t){n&1&&oC(0,9,2);}function Ue(n,t){n&1&&oC(0,9,3);}function ve(n,t){n&1&&oC(0,9,4);}function Ge(n,t){if(n&1){let e=ET();Zi(0,"header",26)(1,"button",23),Hg("click",function(){Pd(e);let i=aC();return Ld(i.cancelEdit())}),Zi(2,"sh-icon"),HC(3,"arrow-left"),Wl()()(),Zi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),oC(8,7),Wl(),Zi(9,"div",30),lT(10,Me,5,2,"button",31),Wl()(),lT(11,be,5,1,"div",32),lT(12,$e,2,10,"app-test-url",33),lT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),Wl(),Zi(15,"div",34)(16,"button",35),Hg("click",function(){Pd(e);let i=aC();return Ld(i.cancelEdit())}),oC(17,8),Wl(),Zi(18,"button",36),Hg("click",function(){Pd(e);let i=aC();return Ld(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Fg(19,9),lT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),jg(),Wl()()();}if(n&2){let e=aC();bE(8),Vg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),iC(8),bE(2),uT(e.editBaseUrl()?10:-1),bE(),uT(e.selectedDestination()!=="new"?11:-1),bE(),uT(e.editBaseUrl()?12:-1),bE(),uT(e.editBaseUrl()?13:14),bE(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"),bE(2),uT(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(mt);#t=T(m);#n=T(be$1);getSimplePath=f;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=w1(mn);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=Qa(()=>{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=A(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,{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=G(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,{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,{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=gw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&qg(o.testUrl,mn,5),e&2&&hC();},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=sC(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"),Zi(1,"section"),lT(2,xe,4,1)(3,Ge,24,13),Wl()),e&2&&(bE(2),uT(o.selectedDestination()===null?2:3));},dependencies:[Ct,_n,un,te,d,v,N,f$1,Fe$1,c,mn,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};
@@ -1 +1 @@
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'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,n as nC,$ as $l}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'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var l=class s{static \u0275fac=function(o){return new(o||s)};static \u0275cmp=hw({type:s,selectors:[["app-about"]],decls:19,vars:0,consts:()=>{let i;i=$localize`General`;let o;o=$localize`Changelog`;let r;r=$localize`Libraries`;let C;C=$localize`System info`;let a;a=$localize`Server settings`;let E;E=$localize`Logs`;let O;return O=$localize`Crash log`,[i,o,r,C,a,E,O,[1,"content"],[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/server-settings","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"],["tab","","routerLink","/about/crashlogs","routerLinkActive","active"]]},template:function(o,r){o&1&&(Ig(0,"app-status-bar"),Qi(1,"div",7)(2,"sh-tabs",8)(3,"button",9),nC(4,0),$l(),Qi(5,"button",10),nC(6,1),$l(),Qi(7,"button",11),nC(8,2),$l(),Qi(9,"button",12),nC(10,3),$l(),Qi(11,"button",13),nC(12,4),$l(),Qi(13,"button",14),nC(14,5),$l(),Qi(15,"button",15),nC(16,6),$l()(),Qi(17,"section"),Ig(18,"router-outlet"),$l()());},dependencies:[ee,w,lr,_t,To],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 0}.content[_ngcontent-%COMP%] sh-tabs[_ngcontent-%COMP%]{margin:0 2rem 2rem}.content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{padding:0}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem}"]})};export{l as default};
1
+ import {w}from'./chunk-D2P9ER0I.js';import {t as te}from'./chunk-DmCJ7w-M.js';import'./chunk-C1-31fA7.js';import'./chunk-iU19kwHx.js';import'./chunk-C185qUb-.js';import'./chunk-DuRr4rDS.js';import'./chunk-C1py21yb.js';import'./chunk-3YzyUT-a.js';import'./chunk-CKUlUN3q.js';import {g as gw,$ as lr,_ as _t,a8 as To,d as Ig,Z as Zi,o as oC,W as Wl}from'./main-2ZYVV4C4.js';import'./chunk-BGuvkLC9.js';import'./chunk-DBkkb6OR.js';import'./chunk-iGzJokt-.js';import'./chunk-DneBfCBh.js';import'./chunk-Bq_vr6Q3.js';import'./chunk-D9jPw9Ov.js';import'./chunk-CnZx831x.js';import'./chunk-Cm7JSdTO.js';var l=class s{static \u0275fac=function(o){return new(o||s)};static \u0275cmp=gw({type:s,selectors:[["app-about"]],decls:19,vars:0,consts:()=>{let i;i=$localize`General`;let o;o=$localize`Changelog`;let r;r=$localize`Libraries`;let C;C=$localize`System info`;let a;a=$localize`Server settings`;let E;E=$localize`Logs`;let O;return O=$localize`Crash log`,[i,o,r,C,a,E,O,[1,"content"],[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/server-settings","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"],["tab","","routerLink","/about/crashlogs","routerLinkActive","active"]]},template:function(o,r){o&1&&(Ig(0,"app-status-bar"),Zi(1,"div",7)(2,"sh-tabs",8)(3,"button",9),oC(4,0),Wl(),Zi(5,"button",10),oC(6,1),Wl(),Zi(7,"button",11),oC(8,2),Wl(),Zi(9,"button",12),oC(10,3),Wl(),Zi(11,"button",13),oC(12,4),Wl(),Zi(13,"button",14),oC(14,5),Wl(),Zi(15,"button",15),oC(16,6),Wl()(),Zi(17,"section"),Ig(18,"router-outlet"),Wl()());},dependencies:[te,w,lr,_t,To],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 0}.content[_ngcontent-%COMP%] sh-tabs[_ngcontent-%COMP%]{margin:0 2rem 2rem}.content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{padding:0}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem}"]})};export{l as default};
@@ -0,0 +1 @@
1
+ import {T,ab as J,G as Ge,N as Nt,Q as Qa,ad as sy,C as Zu,a_ as ee}from'./main-2ZYVV4C4.js';var v=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],c=class a{#l=T(J);#e=Ge([]);LOG_LEVELS=v;logLevel=Ge("Disabled");logLevelByLabel=Nt(()=>v.find(e=>e.value===this.logLevel())?.label);whenFilter=Ge(null);backupIdFilter=Ge(null);id=Ge(0);logs=Nt(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=Ge(false);isPolling=Ge(false);pagination=Ge({offset:0,pagesize:100});logLevelEffect=Qa(()=>{this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs();},3e3)):this.clearPolling();});setWhenFilter(e){this.whenFilter.set(e);}setBackupIdFilter(e){this.backupIdFilter.set(e);}loadLogs(){this.logsLoading.set(true),sy(()=>this.#l.getApiV1LogdataPoll({query:{id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}})).pipe(Zu(()=>this.logsLoading.set(false))).subscribe({next:e=>{let i=e.reverse(),t=this.#i(i);t>0&&this.id.set(t),this.#e.set([...i,...this.#e()]);}});}updateLogLevel(e){this.logLevel.set(e),e==="Disabled"&&this.clearPolling();}#i(e){return e.reduce((i,t)=>Math.max(i,t.ID),0)}destroy(){this.logLevel.set("Disabled"),this.clearPolling();}clearPolling(){this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0;}static \u0275fac=function(i){return new(i||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{c};
@@ -0,0 +1 @@
1
+ import {m,y,g}from'./chunk-6-sszNfh.js';import {J as J$1}from'./chunk-CGnjVnmu.js';import {x}from'./chunk-D38QrkIM.js';import {T,a6 as be,ab as J,ax as W,e as ee,ay as De,a5 as m$1,G as Ge$1,N as Nt,Q as Qa,au as h,ad as sy,az as Yu,aA as N,aB as y$1,ak as l,aC as b,C as Zu,g as gw,_ as _t,a as N$1,v,u as ue,Z as Zi,H as HC,F as Fg,d as Ig,j as jg,W as Wl,w as Hg,n as lm,t as bD,l as lT,b as bE,z as vg,a3 as XC,K as Kg,aD as sm,y as cm,M as MD,c as uT,s as sC,p as qC,i as ET,P as Pd,h as aC,L as Ld,J as im,o as oC,av as Vg,aw as iC}from'./main-2ZYVV4C4.js';import {d}from'./chunk-BGuvkLC9.js';import {F as Fe}from'./chunk-DBkkb6OR.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze$1,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-iGzJokt-.js';import {a as at}from'./chunk-DneBfCBh.js';import {L}from'./chunk-Cm7JSdTO.js';var Ge=()=>["/"];function Be(t,o){t&1&&(Zi(0,"sh-toggle",25),Fg(1,5),Ig(2,"input",28),bD(),jg(),Wl()),t&2&&(bE(2),MD());}function ve(t,o){t&1&&(Zi(0,"span",31),oC(1,9),Wl());}function ke(t,o){if(t&1&&(Zi(0,"span",31),oC(1,10),Wl()),t&2){let e=aC(2);bE(),Vg(e.exportForm.controls.password.errors?.minlength.requiredLength),iC(1);}}function Ue(t,o){if(t&1&&Ig(0,"sh-progress-bar",38),t&2){let e=aC(2);Kg("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),vg("value",e.calculatePasswordStrength()*(100/5));}}function Ke(t,o){t&1&&(Zi(0,"span",31),oC(1,11),Wl());}function Je(t,o){t&1&&(Zi(0,"span",31),oC(1,12),Wl());}function He(t,o){if(t&1&&(Zi(0,"span",31),oC(1,13),Wl()),t&2){let e=aC(2);bE(),Vg(e.exportForm.controls.repeatPassword.errors?.minlength.requiredLength),iC(1);}}function ze(t,o){t&1&&(Fg(0,7,1),Ig(1,"sh-icon"),jg());}function Ve(t,o){t&1&&(Fg(0,7,2),Ig(1,"sh-icon"),jg());}function qe(t,o){t&1&&(Fg(0,14,1),Ig(1,"sh-icon",40),jg());}function je(t,o){t&1&&(Fg(0,14,2),Ig(1,"sh-icon"),jg());}function We(t,o){if(t&1){let e=ET();Zi(0,"button",39),Hg("click",function(){Pd(e);let a=aC(2);return Ld(a.copyPassword())}),Fg(1,14),lT(2,qe,2,0)(3,je,2,0),jg(),Wl();}if(t&2){let e=aC(2);bE(2),uT(e.copiedPassword()?2:3);}}function Qe(t,o){t&1&&(Zi(0,"sh-alert",37),oC(1,15),Wl());}function Ye(t,o){if(t&1){let e=ET();Zi(0,"div",26)(1,"sh-form-field")(2,"label",29),Fg(3,6),Ig(4,"sup"),jg(),Wl(),Ig(5,"input",30),bD(),lT(6,ve,2,0,"span",31)(7,ke,2,1,"span",31),Wl(),lT(8,Ue,1,9,"sh-progress-bar",32),Zi(9,"sh-form-field"),Ig(10,"input",33),bD(),lT(11,Ke,2,0,"span",31)(12,Je,2,0,"span",31)(13,He,2,1,"span",31),Wl(),Zi(14,"div",34)(15,"button",35),Hg("click",function(){Pd(e);let a=aC();return Ld(a.showPassword.set(!a.showPassword()))}),Fg(16,7),lT(17,ze,2,0)(18,Ve,2,0),jg(),Wl(),Zi(19,"button",35),Hg("click",function(){Pd(e);let a=aC();return Ld(a.generatePassword())}),Fg(20,8),Ig(21,"sh-icon"),jg(),Wl(),lT(22,We,4,1,"button",36),Wl(),lT(23,Qe,2,0,"sh-alert",37),Wl();}if(t&2){let e=aC();bE(5),vg("type",e.showPassword()?"text":"password"),MD(),bE(),uT(e.exportForm.controls.password.errors?.required?6:e.exportForm.controls.password.errors?.minlength?7:-1),bE(2),uT(e.exportForm.value.password?8:-1),bE(2),vg("type",e.showPassword()?"text":"password"),MD(),bE(),uT(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors?.required?12:e.exportForm.controls.repeatPassword.errors?.minlength?13:-1),bE(6),uT(e.showPassword()?17:18),bE(5),uT(e.showCopyPassword()?22:-1),bE(),uT(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1);}}function Ze(t,o){if(t&1&&(Zi(0,"div",27)(1,"code"),HC(2),Wl()()),t&2){let e=aC();bE(2),im(e.exportedCmd());}}var I=new jn,K=class t{#o=T(m);#n=T(be);#t=T(J);#e=T(W);#i=T(ee);#r=T(De);#s=T(m$1);isExporting=Ge$1(false);exportType=Ge$1("file");exportedCmd=Ge$1(null);exportForm=I.group({exportPasswords:I.control(true),encryption:I.control(false,[me.required,g()]),password:I.control("",[y("encryption",true,[me.required,me.minLength(3)])]),repeatPassword:I.control("",[y("encryption",true,[me.required,me.minLength(3)])])});exportFormSignal=L(this.exportForm.valueChanges);encryptionFieldSignal=Nt(()=>(this.exportFormSignal()?.encryption??false)&&this.exportType()==="file");activeBackup=Nt(()=>this.#s.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=Ge$1(false);copiedPassword=Ge$1(false);showCopyPassword=Ge$1(false);calculatePasswordStrength=Nt(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=Qa(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity();});disablePasswordForCommandLine=Qa(()=>{this.exportType()==="cmd"&&this.exportForm.controls.encryption.setValue(false);});submit(){if(this.exportType()==="file"&&this.exportFormSignal()?.exportPasswords===true&&!this.exportFormSignal()?.encryption){this.#n.open(h,{data:{title:$localize`Export without encryption?`,message:$localize`Are you sure you want to export your backup without encryption?`,confirmText:$localize`Yes, write plain-text passwords`,cancelText:$localize`Cancel`},closed:o=>{o&&this.submitApproved();}});return}this.submitApproved();}submitApproved(){this.isExporting.set(true),this.exportType()==="file"?sy(()=>this.#t.postApiV1AuthIssuetokenByOperation({path:{operation:"export"}})).pipe(Yu(o=>{let e=T=>{let h=Object.entries(T);return h?"?"+h.filter(([O,E])=>E!=null).map(([O,E])=>`${encodeURIComponent(O)}=${encodeURIComponent(E)}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0,a=N();return this.#r.get(`${a}/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob",headers:new y$1(l({},b()))})}),Zu(()=>this.isExporting.set(false))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",a=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${a}`),this.#i.navigate(["/"]);},error:o=>{console.error("Failed to export backup",o);}}):sy(()=>this.#t.getApiV1BackupByIdExportCmdline({path:{id:this.#e.snapshot.params.id},query:{"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}})).pipe(Zu(()=>this.isExporting.set(false))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null);},error:o=>{console.error("Failed to export backup as command line",o);}});}downloadFile(o,e){let n=window.URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n);}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#a(o??""),this.copiedPassword.set(true);}async#a(o){try{await navigator.clipboard.writeText(o);}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);}catch(n){console.error("Failed to copy text: ",n);}}}generatePassword(){this.copiedPassword.set(false);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(true);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=gw({type:t,selectors:[["app-export"]],decls:26,vars:13,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let n;n=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: As command line `;let a;a=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: To file `;let T;T=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let h;h=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let O;O=$localize`Password`;let E;E=$localize`Repeat password`;let J;J=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=sC(w);let H;H=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Generate password `;let z;z=$localize`Passwords are required`;let V;V=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let q;q=$localize`Passwords do not match`;let j;j=$localize`Passwords are required`;let W;W=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let D;D=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,D=sC(D);let Q;return Q=$localize` Tip: Be sure to save your password. If you lose it, you will not be able to import the configuration. `,[o,e,n,a,T,h,J,w,H,z,V,q,j,W,D,Q,[1,"actions"],["shButton","",1,"outlined",3,"routerLink"],["shButton","",1,"raised","primary",3,"click","shTooltip","disabled"],["autocomplete","off",3,"formGroup"],[1,"type-b",3,"valueChange","value"],["value","cmd"],["value","file"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",O,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",E,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["shButton","","type","button",1,"small",3,"click"],["shButton","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["shButton","","type","button",1,"small","copy",3,"click"],[1,"sh-success"]]},template:function(e,n){e&1&&(Zi(0,"header")(1,"h3"),HC(2," Export backup configuration "),Zi(3,"div",16)(4,"button",17),Fg(5,0),Ig(6,"sh-icon"),jg(),Wl(),Zi(7,"button",18),Hg("click",function(){return n.submit()}),Fg(8,1),Ig(9,"sh-icon"),jg(),Wl()()(),Zi(10,"p"),HC(11),Wl()(),Zi(12,"form",19)(13,"sh-button-group",20),lm("valueChange",function(T){return qC(n.exportType,T)||(n.exportType=T),T}),Zi(14,"button",21),Fg(15,2),Ig(16,"sh-icon"),jg(),Wl(),Zi(17,"button",22),Fg(18,3),Ig(19,"sh-icon"),jg(),Wl()(),Zi(20,"sh-toggle",23),Fg(21,4),Ig(22,"input",24),bD(),jg(),Wl(),lT(23,Be,3,0,"sh-toggle",25),lT(24,Ye,24,8,"div",26),lT(25,Ze,3,1,"div",27),Wl()),e&2&&(bE(4),vg("routerLink",XC(12,Ge)),bE(3),Kg("loading",n.isExporting()),vg("shTooltip",n.encryptionFieldSignal()?"Remember to copy the password":"")("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()||n.encryptionFieldSignal()&&n.exportForm.value.repeatPassword!==n.exportForm.value.password),bE(4),sm("#",n.activeBackup()?.Backup?.ID,": ",n.activeBackup()?.Backup?.Name),bE(),vg("formGroup",n.exportForm),bE(),cm("value",n.exportType),bE(9),MD(),bE(),uT(n.exportType()==="file"?23:-1),bE(),uT(n.encryptionFieldSignal()?24:-1),bE(),uT(n.exportedCmd()?25:-1));},dependencies:[Gn,Tn,Ze$1,yt,Rn,Pn,gn,hn,_t,x,J$1,N$1,Fe,v,ue,d,at],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] sh-icon.sh-success[_ngcontent-%COMP%]{color:var(--success-8)}.hide[_ngcontent-%COMP%]{display:none}"]})};export{K as default};
@@ -0,0 +1 @@
1
+ import {L as L$1}from'./chunk-Cm7JSdTO.js';import {T as T$1,ab as J,k,bk as B,f,G as Ge,N as Nt,Q as Qa,ad as sy,ak as l,b1 as Bs,a_ as ee}from'./main-2ZYVV4C4.js';var m="shown-welcome-page-v1",A="hide-console-connection-status",C="use-out-of-process-controller",b="disable-console-control",T="disable-tray-icon-login",S="server-listen-interface",D="allowed-hostnames",N="server-passphrase",w="update-channel",y="startup-delay",P="usage-reporter-level",I="power-mode-provider",L="autogenerated-passphrase",O="has-asked-for-password-change",R=class a{#s=T$1(J);#r=T$1(k);#n=T$1(B);#i=T$1(f);#o=L$1(sy(()=>this.#s.getApiV1Serversettings()));#e=Ge(void 0);#t(e,t){if(!t)return false;let s=t[e];if((s??"").trim().length==0)return false;let r=s.trim().toLowerCase();return r==="true"||r==="1"||r==="yes"||r==="on"}serverSettings=Nt(()=>this.#e()||this.#o());askForInitialPasswordConfig=Nt(()=>{let e=(this.#i.systemInfo()?.StartedBy??"").trim().toLowerCase();if(e==="tray icon"||e=="trayicon")return false;let t=this.#e(),s=this.#t(L,t),r=this.#t(O,t);return s&&!r});showWelcomePage=Nt(()=>{let e=this.#e();if(!e)return false;let t=this.#t(O,e),s=this.#t(m,e);return !(t||s)});#c=Qa(()=>{let e=this.#r.serverSettings();e&&this.#e.set(e);});constructor(){this.#r.subscribe("serversettings");}isConsoleConnectionStatusHidden=Nt(()=>this.#t(A,this.serverSettings()));isControllerIpcEnabled=Nt(()=>this.#t(C,this.serverSettings()));refreshServerSettings(){this.#n.getConnectionMethod()!=="websocket"&&sy(()=>this.#s.getApiV1Serversettings()).subscribe({next:e=>{this.#e.set(e);}});}#a(e,t){var s=l({},e);for(let[r,g]of Object.entries(t))g===null?delete s[r]:s[r]=g;return s}patchServerSettings(e){let t=l({},this.serverSettings());return this.#e.set(this.#a(this.serverSettings()??{},e)),sy(()=>this.#s.patchApiV1Serversettings({body:e})).pipe(Bs(s=>{throw this.#e.set(t),s}))}patchServerSetting(e,t){let s={};return s[e]=t,this.patchServerSettings(s)}setShownWelcomePage(){return this.patchServerSetting(m,"true")}setHideConsoleConnectionStatus(e){return this.patchServerSetting(A,e?"True":"False")}setControllerIpcState(e){return this.patchServerSetting(C,e?"True":"False")}setDisableTrayIconLogin(e){return this.patchServerSetting(T,e?"True":"False")}setDisableConsoleControl(e){return this.patchServerSetting(b,e?"True":"False")}setRemoteAccessInterface(e){return this.patchServerSetting(S,e)}setRemoteAccessAllowedHostnames(e){var t={[D]:e};return this.serverSettings()?.[S]==="loopback"&&(t[S]="any"),this.patchServerSettings(t)}setRemoteAccessPassword(e){return this.patchServerSetting(N,e)}setUpdateChannel(e){return this.patchServerSetting(w,e)}setStartupDelay(e){return this.patchServerSetting(y,e)}setUsageReporterLevel(e){return this.patchServerSetting(P,e)}setPowerModeProvider(e){return this.patchServerSetting(I,e)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})};export{R};
@@ -0,0 +1 @@
1
+ import {R}from'./chunk-D9jPw9Ov.js';import {T,g as gw,aN as hi,U as ql,o as oC,X as Gl,H as HC,aO as sb,b as bE,J as im,aT as cb}from'./main-2ZYVV4C4.js';import'./chunk-Cm7JSdTO.js';var i=class o{#e=T(R);serverSettings=this.#e.serverSettings;static \u0275fac=function(e){return new(e||o)};static \u0275cmp=gw({type:o,selectors:[["app-server-settings"]],decls:6,vars:3,consts:()=>{let t;return t=$localize`Server settings`,[t]},template:function(e,E){e&1&&(ql(0,"h3"),oC(1,0),Gl(),ql(2,"code")(3,"pre"),HC(4),sb(5,"json"),Gl()()),e&2&&(bE(4),im(cb(5,1,E.serverSettings())));},dependencies:[hi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{i as default};
@@ -0,0 +1 @@
1
+ import {F as Fe}from'./chunk-DBkkb6OR.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-iGzJokt-.js';import {T,ai as fe,ab as J,e as ee,G as Ge,ad as sy,az as Yu,C as Zu,g as gw,_ as _t,a as N,v,Z as Zi,F as Fg,d as Ig,W as Wl,w as Hg,j as jg,o as oC,H as HC,l as lT,b as bE,z as vg,a3 as XC,K as Kg,c as uT,s as sC,ac as I1,ba as Ew,t as bD,M as MD}from'./main-2ZYVV4C4.js';var K=(()=>{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=Ew({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 W=()=>["/"];function Y(r,o){r&1&&(Zi(0,"sh-form-field")(1,"label",11),oC(2,2),Wl(),Ig(3,"input",12),bD(),Wl()),r&2&&(bE(3),MD());}var p=new jn,D=class r{#t=T(fe);#e=T(J);#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),sy(()=>this.#e.postApiV1BackupsImport({body:this.importForm.value})).pipe(Yu(o=>{let e={Backup:o.data.Backup};return this.#e.postApiV1Backups({body:e,query:{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=gw({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=sC(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&&(Zi(0,"header")(1,"h3"),Fg(2,0),Zi(3,"div",3)(4,"button",4),Ig(5,"sh-icon"),Wl(),Zi(6,"button",5),Hg("click",function(){return e.submit()}),Ig(7,"sh-icon"),Wl()(),jg(),Wl()(),Zi(8,"form",6)(9,"sh-form-field",7),Hg("fileDropped",function(n){return e.onFileDropped(n)}),Zi(10,"label",8),oC(11,1),Wl(),Zi(12,"input",9),Hg("change",function(n){return e.onFileDropped(n)}),Wl(),Zi(13,"sh-icon",10),HC(14,"upload"),Wl()(),lT(15,Y,4,0,"sh-form-field"),Wl()),t&2&&(bE(4),vg("routerLink",XC(6,W)),bE(2),Kg("loading",e.isRestoring()),vg("disabled",e.isRestoring()),bE(2),vg("formGroup",e.importForm),bE(7),uT(e.isSecureFile()?15:-1));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,_t,K,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};
@@ -1,4 +1,4 @@
1
- import {T,ae as eo,E as E1,bb as ce$1,bt as rE,h as hw,S as aC,Y as cC,V as Ul,X as Wl,H as Hg,f as NC,ad as Mr,bu as N,af as D1,ac as I1,N as Nt,aj as l,D as w1,G as Ge,bv as le$1,z as za,an as Bg,W as Eg,d as aT,aC as yg,C as CE,ag as Yg,g as cT,L as Kg,M as qg,R as fC,Q as Qi,p as lm,U as UC,$ as $l,i as Ig,w as cm,y as vg,a3 as KC,l as vT,O as Od,k as iC,P as Pd,bw as _C}from'./main-3NL5M6JB.js';var pe=["triggerRef"],se=["popoverRef"],ne=["popoverContentRef"],fe=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],ae=["[trigger]","button","[shButton]","*"];function le(s,xe){if(s&1){let i=vT();Ul(0,"div",6,1)(2,"div",7),Bg("click",function(r){Od(i);let n=iC();return Pd(n.eventClose(r))}),Wl(),Ul(3,"div",8,2),cC(5,3),Wl()();}if(s&2){let i=iC();yg("id",i.id()+"hello"),CE(3),_C(i.menuStyle()),Yg("position-anchor",i.id());}}var h=4,he=["scroll","auto"],de={width:void 0,height:void 0,closeOnButton:true,closeOnEsc:true},oe=(()=>{class s{constructor(){this.#e=T(Mr),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=E1(false),this.asSheetOnMobile=E1(false),this.disableOpenByClick=E1(false),this.isOpen=D1(false),this.options=E1(),this.closed=I1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=w1.required("triggerRef"),this.popoverRef=w1("popoverRef"),this.popoverContentRef=w1("popoverContentRef"),this.id=Ge("--"+le$1()),this.menuStyle=Ge(null),this.openAbort=null,this.#i=null,this.openEffect=za(()=>{let i=this.isOpen(),e=this.popoverRef()?.nativeElement;queueMicrotask(()=>{if(!e){this.openAbort?.abort(),this.openAbort=null;return}if(i){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",o=>{this.#r.matches(o,"popover.close")&&(this.defaultOptionMerge().closeOnEsc?this.isOpen.set(false):o.preventDefault());},{signal:this.openAbort?.signal}),!e.isConnected)return;e.showPopover();let r=this.#r.getShortcut("popover.close");r&&e.setAttribute("aria-keyshortcuts",this.#r.getDisplayShortcut("popover.close")||r);let n=this.asSheetOnMobile()&&window.innerWidth<=768;n&&(this.#i=this.#e.body.style.overflow,this.#e.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!n&&setTimeout(()=>{this.#u(e).addEventListener("scroll",()=>this.#o(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#o(),{signal:this.openAbort?.signal}),this.#o();});}else this.closed.emit(),e.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#e.body.style.overflow=this.#i,this.#i=null);});});}#e;#r;#i;toggleIsOpen(i){this.disableOpenByClick()||(i.preventDefault(),i.stopPropagation(),this.isOpen.set(!this.isOpen()));}eventClose(i){this.isOpen()&&this.isOpen.set(false);}#u(i){let e=i.parentElement;for(;e;){if(he.indexOf(window?.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement;}return this.#e.documentElement}#t(i,e){return {left:i.left,top:i.bottom+h}}#p(i,e){return {left:i.left,top:i.top-e.height-h}}#s(i,e){return {left:i.right-e.width,top:i.bottom+h}}#n(i,e){return {left:i.right-e.width,top:i.top-e.height-h}}#f(i,e){return {left:i.right+h,top:i.top}}#a(i,e){return {left:i.left-e.width-h,top:i.top}}#l(i,e){return {left:i.right+h,top:i.top+i.height/2-e.height/2}}#h(i,e){return {left:i.left-e.width-h,top:i.top+i.height/2-e.height/2}}#d(i,e){return {left:i.right+h,top:i.bottom-e.height}}#m(i,e){return {left:i.left-e.width-h,top:i.bottom-e.height}}#c(i,e){return i.left>=0&&i.top>=0&&i.left+e.width<=window.innerWidth&&i.top+e.height<=window.innerHeight}#v(i,e){return {left:Math.max(0,Math.min(i.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(i.top,window.innerHeight-e.height))}}#o(){let i=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!i||!e)return;let r=[this.#t,this.#p,this.#s,this.#n,this.#f,this.#a,this.#l,this.#h,this.#d,this.#m],n=[this.#f,this.#d,this.#a,this.#m,this.#l,this.#h,this.#t,this.#p,this.#s,this.#n],o=this.asMultiLayer()?n:r;for(let p of o){let y=p.call(this,i,e);if(this.#c(y,e)){this.menuStyle.set({left:y.left+"px",top:y.top+"px"});return}}let d=this.#v(o[0].call(this,i,e),e);this.menuStyle.set({left:d.left+"px",top:d.top+"px"});}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null;}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&qg(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&fC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Kg("multi-layer",r.asMultiLayer())("as-sheet",r.asSheetOnMobile());},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(e,r){e&1&&(aC(fe),Ul(0,"div",3,0),Bg("click",function(o){return r.toggleIsOpen(o)}),Ul(2,"div",4),cC(3),cC(4,1),cC(5,2),Wl(),Eg(6,"div",5),Wl(),aT(7,le,6,5,"div",6)),e&2&&(yg("popovertarget",r.id()+"hello"),CE(6),Yg("anchor-name",r.id()),CE(),cT(r.isOpen()?7:-1));},styles:[`sh-popover{--po-d: block;display:var(--po-d)}sh-popover.multi-layer .popover-content{position-area:right span-y-end}sh-popover.multi-layer .trigger .trigger-anchor{right:-.25rem;left:-.25rem;top:0;bottom:0}sh-popover .trigger{cursor:pointer;display:var(--po-d);position:relative}sh-popover .trigger .trigger-wrapper{display:var(--po-d)}sh-popover .trigger .trigger-wrapper:empty+*{display:inherit}sh-popover .trigger .trigger-anchor{position:absolute;inset:0;z-index:-1}sh-popover .popover{position:fixed;inset:0;width:100%;height:100%;border:0;opacity:1;background-color:transparent;z-index:-1}sh-popover .popover .overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent}sh-popover [popover]::backdrop{display:none}sh-popover .popover-content{position:fixed;margin:0;min-width:11.25rem;max-width:calc(100vw - .5rem);max-height:calc(100vh - .5rem);overflow:auto;z-index:0;background-color:var(--base-1);border:var(--border-10);border-radius:var(--shape-2);font:var(--paragraph-30);color:var(--base-8);padding:0}@supports (anchor-name: --anchor){sh-popover .popover-content{inset:auto;top:.25rem;position:fixed;position-area:bottom span-right;max-width:unset;max-height:unset;overflow:visible;position-try-fallbacks:--top-span-right,--bottom-span-left,--top-span-left,--right-span-bottom,--left-span-bottom,--right-center,--left-center,--right-span-top,--left-span-top}}@media only screen and (max-width:768px){sh-popover.as-sheet .popover{z-index:9999}sh-popover.as-sheet .popover .overlay{background-color:var(--overlay, rgba(0, 0, 0, .5))}@supports (anchor-name: --anchor){sh-popover.as-sheet .popover-content{position-area:none;position-try-fallbacks:none;inset:auto}}sh-popover.as-sheet .popover-content{position:fixed;top:auto;bottom:0;left:.5rem;right:.5rem;width:calc(100% - 1rem);max-width:unset;height:auto;max-height:calc(100vh - 5rem);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;transform:translateY(0);display:flex;align-items:center;padding:1rem;justify-content:center}}.full-popover sh-popover .popover-content,sh-popover.full .popover-content{width:auto}@supports (anchor-name: --anchor){.full-popover sh-popover .popover-content,sh-popover.full .popover-content{left:anchor(left);right:anchor(right)}}@position-try --bottom-span-right{position-area:bottom span-right;inset:auto;top:.25rem}@position-try --bottom-span-left{position-area:bottom span-left;inset:auto;top:.25rem}@position-try --top-span-right{position-area:top span-right;inset:auto;bottom:.25rem}@position-try --top-span-left{position-area:top span-left;inset:auto;bottom:.25rem}@position-try --right-span-top{position-area:right span-top;inset:auto;left:.25rem}@position-try --left-span-top{position-area:left span-top;inset:auto;right:.25rem}@position-try --right-center{position-area:right center;inset:auto;left:.25rem}@position-try --left-center{position-area:left center;inset:auto;right:.25rem}@position-try --right-span-bottom{position-area:right span-bottom;inset:auto;left:.25rem}@position-try --left-span-bottom{position-area:left span-bottom;inset:auto;right:.25rem}
1
+ import {T,af as eo,E as E1,bd as ce$1,bm as oE,g as gw,S as lC,Y as uC,U as ql,X as Gl,w as Hg,x as xC,ae as Mr,bn as N,ag as D1,ac as I1,N as Nt,ak as l,B as w1,G as Ge,bo as le$1,Q as Qa,ao as Bg,V as Eg,l as lT,aE as yg,b as bE,ah as Yg,c as uT,K as Kg,O as qg,R as hC,Z as Zi,n as lm,p as qC,W as Wl,d as Ig,y as cm,z as vg,a3 as XC,i as ET,P as Pd,h as aC,L as Ld,bp as NC}from'./main-2ZYVV4C4.js';var pe=["triggerRef"],se=["popoverRef"],ne=["popoverContentRef"],fe=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],ae=["[trigger]","button","[shButton]","*"];function le(s,xe){if(s&1){let i=ET();ql(0,"div",6,1)(2,"div",7),Bg("click",function(r){Pd(i);let n=aC();return Ld(n.eventClose(r))}),Gl(),ql(3,"div",8,2),uC(5,3),Gl()();}if(s&2){let i=aC();yg("id",i.id()+"hello"),bE(3),NC(i.menuStyle()),Yg("position-anchor",i.id());}}var h=4,he=["scroll","auto"],de={width:void 0,height:void 0,closeOnButton:true,closeOnEsc:true},oe=(()=>{class s{constructor(){this.#e=T(Mr),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=E1(false),this.asSheetOnMobile=E1(false),this.disableOpenByClick=E1(false),this.isOpen=D1(false),this.options=E1(),this.closed=I1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=w1.required("triggerRef"),this.popoverRef=w1("popoverRef"),this.popoverContentRef=w1("popoverContentRef"),this.id=Ge("--"+le$1()),this.menuStyle=Ge(null),this.openAbort=null,this.#i=null,this.openEffect=Qa(()=>{let i=this.isOpen(),e=this.popoverRef()?.nativeElement;queueMicrotask(()=>{if(!e){this.openAbort?.abort(),this.openAbort=null;return}if(i){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",o=>{this.#r.matches(o,"popover.close")&&(this.defaultOptionMerge().closeOnEsc?this.isOpen.set(false):o.preventDefault());},{signal:this.openAbort?.signal}),!e.isConnected)return;e.showPopover();let r=this.#r.getShortcut("popover.close");r&&e.setAttribute("aria-keyshortcuts",this.#r.getDisplayShortcut("popover.close")||r);let n=this.asSheetOnMobile()&&window.innerWidth<=768;n&&(this.#i=this.#e.body.style.overflow,this.#e.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!n&&setTimeout(()=>{this.#u(e).addEventListener("scroll",()=>this.#o(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#o(),{signal:this.openAbort?.signal}),this.#o();});}else this.closed.emit(),e.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#e.body.style.overflow=this.#i,this.#i=null);});});}#e;#r;#i;toggleIsOpen(i){this.disableOpenByClick()||(i.preventDefault(),i.stopPropagation(),this.isOpen.set(!this.isOpen()));}eventClose(i){this.isOpen()&&this.isOpen.set(false);}#u(i){let e=i.parentElement;for(;e;){if(he.indexOf(window?.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement;}return this.#e.documentElement}#t(i,e){return {left:i.left,top:i.bottom+h}}#p(i,e){return {left:i.left,top:i.top-e.height-h}}#s(i,e){return {left:i.right-e.width,top:i.bottom+h}}#n(i,e){return {left:i.right-e.width,top:i.top-e.height-h}}#f(i,e){return {left:i.right+h,top:i.top}}#a(i,e){return {left:i.left-e.width-h,top:i.top}}#l(i,e){return {left:i.right+h,top:i.top+i.height/2-e.height/2}}#h(i,e){return {left:i.left-e.width-h,top:i.top+i.height/2-e.height/2}}#d(i,e){return {left:i.right+h,top:i.bottom-e.height}}#m(i,e){return {left:i.left-e.width-h,top:i.bottom-e.height}}#c(i,e){return i.left>=0&&i.top>=0&&i.left+e.width<=window.innerWidth&&i.top+e.height<=window.innerHeight}#v(i,e){return {left:Math.max(0,Math.min(i.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(i.top,window.innerHeight-e.height))}}#o(){let i=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!i||!e)return;let r=[this.#t,this.#p,this.#s,this.#n,this.#f,this.#a,this.#l,this.#h,this.#d,this.#m],n=[this.#f,this.#d,this.#a,this.#m,this.#l,this.#h,this.#t,this.#p,this.#s,this.#n],o=this.asMultiLayer()?n:r;for(let p of o){let y=p.call(this,i,e);if(this.#c(y,e)){this.menuStyle.set({left:y.left+"px",top:y.top+"px"});return}}let d=this.#v(o[0].call(this,i,e),e);this.menuStyle.set({left:d.left+"px",top:d.top+"px"});}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null;}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=gw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&qg(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&hC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Kg("multi-layer",r.asMultiLayer())("as-sheet",r.asSheetOnMobile());},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(e,r){e&1&&(lC(fe),ql(0,"div",3,0),Bg("click",function(o){return r.toggleIsOpen(o)}),ql(2,"div",4),uC(3),uC(4,1),uC(5,2),Gl(),Eg(6,"div",5),Gl(),lT(7,le,6,5,"div",6)),e&2&&(yg("popovertarget",r.id()+"hello"),bE(6),Yg("anchor-name",r.id()),bE(),uT(r.isOpen()?7:-1));},styles:[`sh-popover{--po-d: block;display:var(--po-d)}sh-popover.multi-layer .popover-content{position-area:right span-y-end}sh-popover.multi-layer .trigger .trigger-anchor{right:-.25rem;left:-.25rem;top:0;bottom:0}sh-popover .trigger{cursor:pointer;display:var(--po-d);position:relative}sh-popover .trigger .trigger-wrapper{display:var(--po-d)}sh-popover .trigger .trigger-wrapper:empty+*{display:inherit}sh-popover .trigger .trigger-anchor{position:absolute;inset:0;z-index:-1}sh-popover .popover{position:fixed;inset:0;width:100%;height:100%;border:0;opacity:1;background-color:transparent;z-index:-1}sh-popover .popover .overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent}sh-popover [popover]::backdrop{display:none}sh-popover .popover-content{position:fixed;margin:0;min-width:11.25rem;max-width:calc(100vw - .5rem);max-height:calc(100vh - .5rem);overflow:auto;z-index:0;background-color:var(--base-1);border:var(--border-10);border-radius:var(--shape-2);font:var(--paragraph-30);color:var(--base-8);padding:0}@supports (anchor-name: --anchor){sh-popover .popover-content{inset:auto;top:.25rem;position:fixed;position-area:bottom span-right;max-width:unset;max-height:unset;overflow:visible;position-try-fallbacks:--top-span-right,--bottom-span-left,--top-span-left,--right-span-bottom,--left-span-bottom,--right-center,--left-center,--right-span-top,--left-span-top}}@media only screen and (max-width:768px){sh-popover.as-sheet .popover{z-index:9999}sh-popover.as-sheet .popover .overlay{background-color:var(--overlay, rgba(0, 0, 0, .5))}@supports (anchor-name: --anchor){sh-popover.as-sheet .popover-content{position-area:none;position-try-fallbacks:none;inset:auto}}sh-popover.as-sheet .popover-content{position:fixed;top:auto;bottom:0;left:.5rem;right:.5rem;width:calc(100% - 1rem);max-width:unset;height:auto;max-height:calc(100vh - 5rem);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;transform:translateY(0);display:flex;align-items:center;padding:1rem;justify-content:center}}.full-popover sh-popover .popover-content,sh-popover.full .popover-content{width:auto}@supports (anchor-name: --anchor){.full-popover sh-popover .popover-content,sh-popover.full .popover-content{left:anchor(left);right:anchor(right)}}@position-try --bottom-span-right{position-area:bottom span-right;inset:auto;top:.25rem}@position-try --bottom-span-left{position-area:bottom span-left;inset:auto;top:.25rem}@position-try --top-span-right{position-area:top span-right;inset:auto;bottom:.25rem}@position-try --top-span-left{position-area:top span-left;inset:auto;bottom:.25rem}@position-try --right-span-top{position-area:right span-top;inset:auto;left:.25rem}@position-try --left-span-top{position-area:left span-top;inset:auto;right:.25rem}@position-try --right-center{position-area:right center;inset:auto;left:.25rem}@position-try --left-center{position-area:left center;inset:auto;right:.25rem}@position-try --right-span-bottom{position-area:right span-bottom;inset:auto;left:.25rem}@position-try --left-span-bottom{position-area:left span-bottom;inset:auto;right:.25rem}
2
2
  `],encapsulation:2});}}return s})();var me=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],ue=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],ce=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],ve=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],ge=()=>({closeOnButton:false,closeOnEsc:true}),be=`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
3
- `,Fe=(()=>{class s{#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus();}constructor(){this.#e=T(eo),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),rE(()=>{let i=this.#e.nativeElement,e=i.querySelector("input")||i.querySelector("textarea"),r=i.querySelector("label"),n=i.querySelector("[error]"),o=i.querySelector("[hint]");if(e){e.id||(e.id=`sh-input-${Math.random().toString(36).substring(2,9)}`),r&&!r.getAttribute("for")&&r.setAttribute("for",e.id);let m=[];n&&(n.id||(n.id=`sh-error-${Math.random().toString(36).substring(2,9)}`),m.push(n.id)),o&&(o.id||(o.id=`sh-hint-${Math.random().toString(36).substring(2,9)}`),m.push(o.id)),m.length>0&&!e.hasAttribute("aria-describedby")&&e.setAttribute("aria-describedby",m.join(" "));}let d=typeof CSS<"u"&&CSS.supports("field-sizing","content"),p=this.#e.nativeElement.querySelector("textarea");if(!d&&p!==null){let m=function(){p.style.height="auto",p.style.height=p.scrollHeight+"px";},g=function(){setTimeout(m,0);};p.addEventListener("change",m),p.addEventListener("cut",g),p.addEventListener("paste",g),p.addEventListener("drop",g),p.addEventListener("keydown",g),p.focus(),p.select(),m();}});}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(){return r.onClick()}),e&2&&NC(r.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:ue,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(me),cC(0),Ul(1,"div",0)(2,"div",1),cC(3,1),cC(4,2),cC(5,3),Wl(),cC(6,4),cC(7,5),Ul(8,"div",2),cC(9,6),cC(10,7),cC(11,8),Wl()(),Ul(12,"div",3)(13,"div",4),cC(14,9),Wl(),Ul(15,"div",5),cC(16,10),Wl()());},styles:[`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
4
- `],encapsulation:2});}}return s})(),Ae=(()=>{class s{constructor(){this.#e=T(eo),this.isOpen=D1(false),this.closed=I1(),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}#e;onClick(i){i.target.closest(".input-wrap")&&(this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus());}close(){this.closed.emit();}ngOnInit(){let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!i&&e!==null){let d=function(){o.style.height="auto",o.style.height=o.scrollHeight+"px";},p=function(){setTimeout(d,0);};let o=this.#e.nativeElement.querySelector("textarea");o&&(o.addEventListener("change",d),o.addEventListener("cut",p),o.addEventListener("paste",p),o.addEventListener("drop",p),o.addEventListener("keydown",p),o.focus(),o.select(),d());}}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(o){return r.onClick(o)}),e&2&&NC(r.hostClasses());},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ve,decls:18,vars:6,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(ce),cC(0),Qi(1,"sh-popover",0),lm("isOpenChange",function(o){return UC(r.isOpen,o)||(r.isOpen=o),o}),Hg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),cC(4,1),cC(5,2),$l(),Ig(6,"div",3),cC(7,3),cC(8,4),cC(9,5),Ig(10,"div",4),cC(11,6),$l(),cC(12,7),$l(),Qi(13,"div",5)(14,"div",6),cC(15,8),$l(),Qi(16,"div",7),cC(17,9),$l()()),e&2&&(CE(),cm("isOpen",r.isOpen),vg("asSheetOnMobile",true)("options",KC(5,ge)),CE(),Kg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
3
+ `,Fe=(()=>{class s{#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus();}constructor(){this.#e=T(eo),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),oE(()=>{let i=this.#e.nativeElement,e=i.querySelector("input")||i.querySelector("textarea"),r=i.querySelector("label"),n=i.querySelector("[error]"),o=i.querySelector("[hint]");if(e){e.id||(e.id=`sh-input-${Math.random().toString(36).substring(2,9)}`),r&&!r.getAttribute("for")&&r.setAttribute("for",e.id);let m=[];n&&(n.id||(n.id=`sh-error-${Math.random().toString(36).substring(2,9)}`),m.push(n.id)),o&&(o.id||(o.id=`sh-hint-${Math.random().toString(36).substring(2,9)}`),m.push(o.id)),m.length>0&&!e.hasAttribute("aria-describedby")&&e.setAttribute("aria-describedby",m.join(" "));}let d=typeof CSS<"u"&&CSS.supports("field-sizing","content"),p=this.#e.nativeElement.querySelector("textarea");if(!d&&p!==null){let m=function(){p.style.height="auto",p.style.height=p.scrollHeight+"px";},g=function(){setTimeout(m,0);};p.addEventListener("change",m),p.addEventListener("cut",g),p.addEventListener("paste",g),p.addEventListener("drop",g),p.addEventListener("keydown",g),p.focus(),p.select(),m();}});}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=gw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(){return r.onClick()}),e&2&&xC(r.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:ue,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(lC(me),uC(0),ql(1,"div",0)(2,"div",1),uC(3,1),uC(4,2),uC(5,3),Gl(),uC(6,4),uC(7,5),ql(8,"div",2),uC(9,6),uC(10,7),uC(11,8),Gl()(),ql(12,"div",3)(13,"div",4),uC(14,9),Gl(),ql(15,"div",5),uC(16,10),Gl()());},styles:[`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
4
+ `],encapsulation:2});}}return s})(),Ae=(()=>{class s{constructor(){this.#e=T(eo),this.isOpen=D1(false),this.closed=I1(),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}#e;onClick(i){i.target.closest(".input-wrap")&&(this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus());}close(){this.closed.emit();}ngOnInit(){let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!i&&e!==null){let d=function(){o.style.height="auto",o.style.height=o.scrollHeight+"px";},p=function(){setTimeout(d,0);};let o=this.#e.nativeElement.querySelector("textarea");o&&(o.addEventListener("change",d),o.addEventListener("cut",p),o.addEventListener("paste",p),o.addEventListener("drop",p),o.addEventListener("keydown",p),o.focus(),o.select(),d());}}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=gw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(o){return r.onClick(o)}),e&2&&xC(r.hostClasses());},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ve,decls:18,vars:6,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(lC(ce),uC(0),Zi(1,"sh-popover",0),lm("isOpenChange",function(o){return qC(r.isOpen,o)||(r.isOpen=o),o}),Hg("closed",function(){return r.close()}),Zi(2,"div",1)(3,"div",2),uC(4,1),uC(5,2),Wl(),Ig(6,"div",3),uC(7,3),uC(8,4),uC(9,5),Ig(10,"div",4),uC(11,6),Wl(),uC(12,7),Wl(),Zi(13,"div",5)(14,"div",6),uC(15,8),Wl(),Zi(16,"div",7),uC(17,9),Wl()()),e&2&&(bE(),cm("isOpen",r.isOpen),vg("asSheetOnMobile",true)("options",XC(5,ge)),bE(),Kg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
@@ -0,0 +1 @@
1
+ var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-DWCofCiP.js').then(function(n){return n.d})},{path:"source-data",loadComponent:()=>import('./chunk-DWCofCiP.js').then(function(n){return n.e})},{path:"destination",loadComponent:()=>import('./chunk-BEzhTDp8.js')},{path:"schedule",loadComponent:()=>import('./chunk-DWCofCiP.js').then(function(n){return n.f})},{path:"options",loadComponent:()=>import('./chunk-CzoH_Agx.js')}];export{o as default};